/* ==========================================================================
  Simplified RCM — Global Stylesheet
  Structure: 1) Tokens  2) Reset/base  3) Layout  4) Header/Nav  5) Footer
              6) Buttons  7) Components  8) Page sections  9) Article
              10) Forms  11) Utilities  12) Responsive
  All design tokens live in :root. No inline styles anywhere.
   ========================================================================== */

/* 1) DESIGN TOKENS ---------------------------------------------------------- */
:root {
  /* Color */
  --paper: #FAFAF7;
  --surface: #FFFFFF;
  --surface-alt: #FBFCFB;
  --ink: #0C1D18;
  --body: #3E4E48;
  --body-muted: #566862;
  --accent: #39598C;
  --accent-strong: #2E4A78;
  --accent-glow: rgba(57, 89, 140, 0.10);
  --accent-glow-soft: rgba(57, 89, 140, 0.06);
  --muted: #7A8983;
  --muted-light: #9AA6A2;
  --hairline: rgba(12, 29, 24, 0.10);
  --hairline-soft: rgba(12, 29, 24, 0.07);

  /* Type */
  --font-sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --container-narrow: 1080px;
  --reading: 760px;
  --gutter: 40px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 99px;

  /* Shadow */
  --shadow-card: 0 24px 60px -46px rgba(12, 29, 24, 0.34);
  --shadow-lift: 0 30px 60px -24px rgba(57, 89, 140, 0.6);
  --shadow-btn: 0 20px 46px -22px rgba(57, 89, 140, 0.5);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2) RESET / BASE ----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

button {
  font-family: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(57, 89, 140, 0.18);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 3) LAYOUT ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--reading {
  max-width: var(--reading);
}

.section {
  padding: clamp(56px, 8vh, 104px) 0;
  position: relative;
  overflow: hidden;
}

.section--alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline-soft);
}

.section--tint {
  background: #EEF2EE;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--accent);
}

.lead {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.64;
  color: var(--body-muted);
}

.accent-text {
  color: var(--accent);
}

/* 4) HEADER / NAV ----------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(250, 250, 247, 0.82);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  border-bottom-color: var(--hairline-soft);
  box-shadow: 0 8px 32px -18px rgba(12, 29, 24, 0.22);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  transition: height 0.35s var(--ease);
}

.site-header.is-scrolled .site-header__inner {
  height: 64px;
}

.site-header__logo {
  flex: none;
  display: flex;
  align-items: center;
}

.site-header__logo img {
  height: 48px;
}

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 30px);
}

.site-nav li {
  list-style-type: none;
}
.site-nav li::marker {
  display: none !important;
}

.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body-muted);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a.is-active {
  font-weight: 700;
  color: var(--ink);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--accent);
}

.phone-link svg {
  flex: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

body.nav-open .nav-toggle span {
  background: transparent;
}

body.nav-open .nav-toggle span::before {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* 5) FOOTER ----------------------------------------------------------------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline-soft);
  position: relative;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(56px, 7vh, 80px) 0 0;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 380px;
}

.site-footer__brand img {
  height: 40px;
}

.site-footer__brand p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body-muted);
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(12, 29, 24, 0.42);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 15px;
  color: var(--body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-col a:hover {
  color: var(--accent);
}

.site-footer__legal {
  margin-top: clamp(48px, 6vh, 68px);
  border-top: 1px solid var(--hairline);
  padding: 24px 0 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-footer__legal span {
  font-size: 13.5px;
  color: var(--body-muted);
}

.site-footer__legal .muted {
  color: var(--muted);
}

/* 6) BUTTONS ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), filter 0.22s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  filter: brightness(1.08);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(57, 89, 140, 0.4);
}

.btn--ghost:hover {
  background: var(--accent-glow);
  color: var(--accent);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.5);
  color: var(--ink);
}

.btn--sm {
  font-size: 14.5px;
  padding: 10px 22px;
}

/* 7) COMPONENTS ------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 2.4vw, 34px);
}

.grid-tiles {
  display: grid;
  gap: 16px;
}

.tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -28px rgba(12, 29, 24, 0.34);
  border-color: rgba(57, 89, 140, 0.4);
}

.tile__kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.tile h3 {
  font-size: 18px;
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
}

.tile p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body-muted);
}

/* Service list */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.service-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.service-list .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.service-list .note {
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
  text-align: right;
}

.service-list .dot {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

/* Callout */
.callout {
  padding: 20px 26px;
  border-left: 3px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 14px 14px 0;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Coming soon */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--muted-light);
  text-transform: uppercase;
}

.coming-soon::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C7CEC9;
}

/* Image placeholders / assets */
.media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #EDEFEC;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide {
  aspect-ratio: 16 / 8;
  box-shadow: 0 40px 90px -60px rgba(12, 29, 24, 0.5);
}

.media--169 {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hairline-soft);
}

.figcaption {
  margin: 12px 2px 0;
  font-size: 12.5px;
  color: var(--muted-light);
  font-style: italic;
}

/* Reveal on scroll (progressive enhancement; content shows without JS) */
.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: 0.01s !important;
  }
}

/* Back to top */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(12, 29, 24, 0.12);
  background: rgba(250, 250, 247, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 12px 30px -12px rgba(12, 29, 24, 0.35);
  display: grid;
  place-items: center;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), color 0.2s var(--ease), visibility 0.35s;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  color: var(--accent);
}

/* 8) PAGE SECTIONS ---------------------------------------------------------- */
.hero {
  padding-top: clamp(128px, 16vh, 180px);
  padding-bottom: clamp(48px, 8vh, 88px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1000px 560px at 24% 24%, var(--accent-glow) 0%, rgba(250, 250, 247, 0) 60%);
}

.hero__inner {
  position: relative;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.hero .lead {
  margin-top: 22px;
  max-width: 640px;
}

.rule {
  width: 88px;
  height: 2px;
  background: var(--accent);
  margin: 24px 0;
  transform-origin: left;
  animation: grow 0.9s var(--ease) 0.2s both;
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.section__head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vh, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section__head h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -0.032em;
}

/* Split CTA band */
.cta-band {
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline-soft);
}

.cta-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
}

.cta-band__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 740px;
}

.cta-band__copy h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  letter-spacing: -0.032em;
}

.cta-band__copy p {
  font-size: 16px;
  line-height: 1.66;
  color: var(--body-muted);
  max-width: 600px;
}

/* Checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

.checklist .check {
  flex: none;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: grid;
  place-items: center;
}

/* Diagnostic (tabs) */
.diagnostic {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.diagnostic__options {
  display: flex;
  flex-direction: column;
}

.diagnostic__opt {
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 20px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.28s var(--ease);
  width: 100%;
}

.diagnostic__opt:hover {
  background: var(--accent-glow-soft);
}

.diagnostic__opt .marker {
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid rgba(12, 29, 24, 0.28);
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.diagnostic__opt .q {
  flex: 1;
  font-size: clamp(15.5px, 1.3vw, 18.5px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--body-muted);
}

.diagnostic__opt .arrow {
  flex: none;
  font-size: 17px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.diagnostic__opt.is-active .marker {
  background: var(--accent);
  border-color: var(--accent);
}

.diagnostic__opt.is-active .q {
  font-weight: 700;
  color: var(--ink);
}

.diagnostic__opt.is-active .arrow {
  opacity: 1;
}

.diagnostic__opt.is-active {
  background: var(--accent-glow-soft);
}

.diagnostic__note {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: 0 34px 80px -58px rgba(12, 29, 24, 0.4);
  padding: clamp(24px, 2.4vw, 34px);
}

.diagnostic__lead {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.55;
  font-style: italic;
  color: var(--body);
}

.reading-item {
  display: block;
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px;
}

.reading-item .meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.reading-item .meta .time {
  color: var(--muted);
  letter-spacing: 0.06em;
}

.reading-item h3 {
  font-size: clamp(19px, 1.8vw, 25px);
  margin-bottom: 9px;
  letter-spacing: -0.026em;
}

.reading-item p {
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--body-muted);
  margin-bottom: 11px;
}

.reading-item .go {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent);
}

.reading-item[data-soon="true"] {
  border-left-color: rgba(12, 29, 24, 0.14);
}

.reading-item[data-soon="true"] h3 {
  color: var(--body);
}

.diagnostic__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}

.reading-more {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.reading-more__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(12, 29, 24, 0.42);
  margin-bottom: 10px;
}

.reading-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 8px 8px 2px;
  border-radius: var(--r-sm);
  transition: background 0.24s var(--ease), transform 0.24s var(--ease);
}

.reading-row:hover {
  background: var(--accent-glow-soft);
  transform: translateX(4px);
}

.reading-row .time {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  width: 64px;
}

.reading-row .title {
  flex: 1;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
}

.reading-row .go {
  flex: none;
  font-size: 15px;
  color: var(--accent);
}

.reading-row[data-soon="true"] .title {
  color: var(--body-muted);
}

.reading-row .soon-tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted-light);
}

/* Section pinned to viewport on desktop only (released on mobile via media query) */
.section--tall {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* 9) ARTICLE ---------------------------------------------------------------- */
.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 101;
  pointer-events: none;
}

.reading-progress__bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.1s linear;
}

.article-hero {
  padding-top: clamp(116px, 14vh, 160px);
  padding-bottom: clamp(20px, 3vh, 30px);
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1000px 540px at 26% 22%, var(--accent-glow) 0%, rgba(250, 250, 247, 0) 60%);
}

.breadcrumb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 24px;
}

.breadcrumb .sep {
  color: rgba(12, 29, 24, 0.28);
}

.breadcrumb .here {
  color: var(--muted);
}

.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
}

.article-hero h1 {
  position: relative;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.article-hero__sub {
  position: relative;
  margin-top: 22px;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--body-muted);
  max-width: 680px;
}

.byline {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.byline__author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  flex: none;
}

.byline__name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.byline__role {
  font-size: 13px;
  color: var(--muted);
}

.share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted-light);
}

.share a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  color: var(--body-muted);
}

.share a:hover {
  color: var(--accent);
  border-color: rgba(57, 89, 140, 0.4);
  background: var(--accent-glow-soft);
}

.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(12, 29, 24, 0.42);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.toc a {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.4;
  color: var(--body-muted);
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--hairline);
}

.toc a:hover,
.toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc a .n {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  flex: none;
}

.prose {
  min-width: 0;
}

.prose>*+* {
  margin-top: 20px;
}

.prose p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.72;
  color: var(--body);
}

.prose .lede {
  font-size: clamp(17px, 1.5vw, 19.5px);
}

.prose .lede::first-letter {
  font-size: 3.5em;
  font-weight: 800;
  float: left;
  line-height: 0.78;
  padding: 8px 14px 0 0;
  color: var(--accent);
}

.takeaways {
  margin-top: clamp(28px, 4vh, 40px);
  border: 1px solid rgba(57, 89, 140, 0.25);
  background: linear-gradient(180deg, var(--accent-glow-soft) 0%, rgba(57, 89, 140, 0.02) 100%);
  border-radius: var(--r-md);
  padding: clamp(22px, 2.4vw, 30px);
}

.takeaways__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}

.takeaways ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.takeaways li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

.takeaways .check {
  flex: none;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.q-section {
  position: relative;
  padding-top: clamp(34px, 4.6vh, 52px);
  margin-top: clamp(30px, 4vh, 44px);
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 96px;
}

.q-section__num {
  position: absolute;
  top: clamp(20px, 3vh, 34px);
  right: 0;
  font-family: var(--font-mono);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.8;
  color: rgba(57, 89, 140, 0.08);
  letter-spacing: -0.04em;
  pointer-events: none;
}

.q-section__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.q-section__label .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 6px;
}

.q-section__label .line {
  height: 1px;
  flex: 1;
  background: var(--hairline-soft);
}

.q-section h2 {
  position: relative;
  font-size: clamp(23px, 2.5vw, 33px);
  line-height: 1.12;
  max-width: 640px;
}

.q-section .body {
  position: relative;
}

.q-section .body>*+* {
  margin-top: 18px;
}

.article-close {
  padding-top: clamp(34px, 4.6vh, 52px);
  margin-top: clamp(30px, 4vh, 44px);
  border-top: 2px solid var(--accent);
}

.article-close>*+* {
  margin-top: 18px;
}

.author-card {
  margin-top: clamp(34px, 4.6vh, 52px);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.author-card .avatar {
  width: 56px;
  height: 56px;
  font-size: 17px;
}

.author-card__kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  text-transform: uppercase;
}

.author-card h3 {
  font-size: 17px;
  margin: 4px 0;
  letter-spacing: -0.02em;
}

.author-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body-muted);
}

/* 10) FORMS ----------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--body);
}

.field .req {
  color: var(--accent);
}

.field .opt {
  color: var(--muted-light);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid rgba(12, 29, 24, 0.18);
  border-radius: 10px;
  background: #FBFCFB;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #A6AFAB;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  cursor: pointer;
}

.consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex: none;
}

.consent span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--body-muted);
}

.form-note {
  font-size: 12.5px;
  color: var(--muted);
}

/* 11) UTILITIES ------------------------------------------------------------- */
.stack {
  display: flex;
  flex-direction: column;
}

.gap-sm {
  gap: 12px;
}

.gap-md {
  gap: 20px;
}

.gap-lg {
  gap: 30px;
}

.mono-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 12) RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
  }

  .toc a {
    border-left: none;
    border: 1px solid var(--hairline);
    border-radius: var(--r-pill);
    padding: 6px 14px;
  }
}

@media (max-width: 900px) {

  /* Release any viewport-pinned sections so stacked content is never clipped */
  .section--tall {
    min-height: 0;
    display: block;
  }
}

@media (max-width: 880px) {
  :root {
    --gutter: 22px;
  }

  /* Mobile navigation: hide inline nav, show hamburger + drawer */
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: 96px 24px 32px;
    background: var(--paper);
    box-shadow: 0 24px 60px -24px rgba(12, 29, 24, 0.3);
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    border-bottom: 1px solid var(--hairline);
  }

  body.nav-open .site-nav {
    transform: translateY(0);
  }

  .site-nav a {
    font-size: 18px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--hairline-soft);
  }

  .site-header__actions .phone-link span {
    display: none;
  }

  .cta-band__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .diagnostic {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .byline {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1,
  .article-hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }
}

/* 13) SHARED LAYOUT HELPERS (replace inline styles) ------------------------- */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.phone-link svg {
  stroke: var(--accent);
}

.tiles-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tiles-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.logo-grid li {
  text-align: center;
}

.logo-grid .name {
  font-weight: 700;
  color: var(--ink);
}

.blog-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.blog-head .eyebrow {
  flex: none;
}

.blog-head .divider {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.blog-head .more {
  margin-left: auto;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.blog-head .more:hover {
  color: var(--accent);
}

.cta-band__grid--spaced {
  margin-bottom: clamp(52px, 7vh, 88px);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

/* Q-row layout (About) */
.q-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 40px);
  padding-top: clamp(30px, 3.6vh, 46px);
  border-top: 1px solid var(--hairline);
}

.q-row+.q-row {
  margin-top: clamp(30px, 4vh, 44px);
}

.q-row__index {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-row__index .n {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--accent);
}

.q-row__index .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted-light);
  text-transform: uppercase;
}

.q-row__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.q-row__body h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.03em;
}

.q-row__body p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--body);
}

.founder {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 2.6vw, 32px);
  flex-wrap: wrap;
}

.founder__photo {
  flex: none;
  width: 150px;
  height: 188px;
  border-radius: 14px;
  overflow: hidden;
  background: #EDEFEC;
}

.founder__body {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.founder__name {
  width: fit-content;
}

.founder__name h3 {
  font-size: clamp(23px, 2.1vw, 28px);
  letter-spacing: -0.026em;
  line-height: 1.05;
}

.founder__name .underline {
  display: block;
  height: 2px;
  background: var(--accent);
  margin-top: 6px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
}

/* Legal layout */
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.legal-index {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-index__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(12, 29, 24, 0.42);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.legal-index a {
  font-size: 14px;
  font-weight: 600;
  color: var(--body-muted);
  padding: 7px 0 7px 12px;
  border-left: 2px solid transparent;
}

.legal-index a:hover {
  color: var(--accent);
  border-left-color: var(--accent);
}

.legal-article {
  padding: clamp(26px, 3.4vh, 42px) 0;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 100px;
}

.legal-article:first-child {
  border-top: none;
}

.legal-article__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}

.legal-article__head .n {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  flex: none;
}

.legal-article__head h2 {
  font-size: clamp(20px, 2vw, 27px);
  letter-spacing: -0.026em;
}

.legal-article__body {
  padding-left: 29px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.legal-article__body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body);
}

.legal-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--body);
}

.legal-list .dot {
  flex: none;
  margin-top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Contact layout */
.contact-grid {
  display: flex;
  
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.contact-aside {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.contact-direct a:hover {
  color: var(--accent);
}

.contact-direct .ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(57, 89, 140, 0.35);
  background: var(--accent-glow);
  display: grid;
  place-items: center;
  flex: none;
}

.form-card {
  width: 50%;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -60px rgba(12, 29, 24, 0.42);
  padding: clamp(26px, 2.8vw, 40px);
}

@media (max-width: 1024px) {
  .tiles-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .legal-index a {
    border-left: none;
    border: 1px solid var(--hairline);
    border-radius: var(--r-pill);
    padding: 6px 14px;
  }
}

@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .tiles-3,
  .tiles-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .q-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {

  .tiles-3,
  .tiles-4,
  .logo-grid.tiles-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}