/* ==========================================================================
   JVS CPA — Site Stylesheet
   Brand: Navy #19293b · Steel #6d99b6 · Near-white #fcfcfc
   ========================================================================== */

:root {
  /* Brand palette */
  --bg: #FFFFFF;
  --bg-subtle: #F6F7F9;
  --surface: #FFFFFF;
  --surface-muted: #FBFBFC;
  --border: #E2E5EA;
  --border-soft: #EFF1F4;
  --border-strong: #C9CFD7;
  --text: #19293b;
  --text-secondary: #4F5B6B;
  --text-tertiary: #8893A2;

  /* Brand accents */
  --brand: #6d99b6;         /* steel blue — decorative, dark-bg text */
  --brand-strong: #4a7592;  /* darker steel — text on white, hover */
  --brand-deep: #19293b;    /* navy — buttons, headings */
  --brand-soft: #ecf1f6;    /* very light tint — soft fill backgrounds */
  --brand-glow: rgba(109, 153, 182, 0.22);

  /* Inverse (dark sections) */
  --inverse-bg: #19293b;
  --inverse-surface: #233448;
  --inverse-surface-2: #2c3f55;
  --inverse-text: #fcfcfc;
  --inverse-text-muted: #a8b8c8;
  --inverse-border: #2c3f55;
  --inverse-accent: #6d99b6;

  /* Type scale */
  --display-1: clamp(2.75rem, 6.5vw + 0.5rem, 5.75rem);
  --display-2: clamp(2.25rem, 4.5vw + 0.5rem, 3.75rem);
  --display-3: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  --heading-1: clamp(1.5rem, 1.5vw + 0.75rem, 2rem);
  --heading-2: clamp(1.25rem, 1vw + 0.625rem, 1.5rem);
  --body-lg: 1.125rem;
  --body: 1rem;
  --body-sm: 0.9375rem;
  --caption: 0.8125rem;
  --micro: 0.6875rem;

  /* Spacing */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;

  /* Radii */
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 12px; --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 600ms;

  /* Layout */
  --container: 1280px;
  --container-narrow: 920px;
  --container-tight: 720px;
  --header-h: 72px;
}

[data-theme="dark"] {
  --bg: #19293b;
  --bg-subtle: #1d2f43;
  --surface: #233448;
  --surface-muted: #1f3144;
  --border: #2c3f55;
  --border-soft: #243648;
  --border-strong: #3d5673;
  --text: #fcfcfc;
  --text-secondary: #a8b8c8;
  --text-tertiary: #7a8ea3;
  --brand: #9eb9cf;
  --brand-strong: #b8cddc;
  --brand-deep: #fcfcfc;
  --brand-soft: rgba(109, 153, 182, 0.15);
  --brand-glow: rgba(158, 185, 207, 0.28);
  --inverse-bg: #fcfcfc;
  --inverse-surface: #FFFFFF;
  --inverse-surface-2: #F6F7F9;
  --inverse-text: #19293b;
  --inverse-text-muted: #4F5B6B;
  --inverse-border: #E2E5EA;
  --inverse-accent: #4a7592;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: var(--body);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  overflow-x: hidden;
  -webkit-font-feature-settings: "ss01", "cv11";
  font-feature-settings: "ss01", "cv11";
}
::selection { background: var(--brand); color: var(--brand-deep); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border: 3px solid var(--bg-subtle); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.display-1, .display-2, .display-3, h1, h2, h3, h4 {
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}
.display-1 { font-size: var(--display-1); font-weight: 500; line-height: 1.0; letter-spacing: -0.04em; }
.display-2 { font-size: var(--display-2); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; }
.display-3 { font-size: var(--display-3); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; }
h1 { font-size: var(--heading-1); font-weight: 500; }
h2 { font-size: var(--heading-2); font-weight: 500; }
h3 { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.005em; }

.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
  flex-shrink: 0;
}

.lead {
  font-size: clamp(1.125rem, 0.7vw + 0.95rem, 1.3125rem);
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.01em;
}

p { color: var(--text-secondary); line-height: 1.6; }
p strong { color: var(--text); font-weight: 500; }

code, .mono {
  font-family: 'Geist Mono', monospace;
  font-size: 0.85em;
  letter-spacing: 0;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.container-tight { width: 100%; max-width: var(--container-tight); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
section.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
section.section-subtle { background: var(--bg-subtle); }
section.section-inverse { background: var(--inverse-bg); color: var(--inverse-text); }
section.section-inverse h1, section.section-inverse h2, section.section-inverse h3 { color: var(--inverse-text); }
section.section-inverse p { color: var(--inverse-text-muted); }
section.section-inverse .eyebrow { color: var(--inverse-accent); }
section.section-inverse .eyebrow::before { background: var(--inverse-accent); box-shadow: 0 0 0 4px rgba(109, 153, 182, 0.18); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.header.scrolled { border-color: var(--border); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}
.logo {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease);
}
.logo:hover { opacity: 0.7; }
.logo img { display: block; height: 38px; width: auto; }
.logo .logo-light { display: block; }
.logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark { display: block; }

.nav-main { display: flex; align-items: center; gap: clamp(0.5rem, 1.2vw, 1.25rem); }
.nav-main a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
  padding: 0.4rem 0.6rem;
  border-radius: var(--r-md);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  letter-spacing: -0.005em;
}
.nav-main a:hover { color: var(--text); background: var(--bg-subtle); }
.nav-main a.active { color: var(--text); background: var(--bg-subtle); }

.header-actions { display: flex; align-items: center; gap: var(--s2); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 2px;
  position: relative;
  font-family: 'Geist Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}
.lang-toggle a {
  position: relative;
  z-index: 2;
  padding: 0.35rem 0.625rem;
  border-radius: var(--r-sm);
  color: var(--text-tertiary);
  transition: color var(--dur-fast) var(--ease);
  font-weight: 500;
  text-transform: uppercase;
}
.lang-toggle a.active { color: var(--text); }
.lang-toggle .lang-pill {
  position: absolute;
  top: 2px; left: 2px;
  height: calc(100% - 4px);
  width: calc(50% - 2px);
  background: var(--surface);
  border-radius: var(--r-sm);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform var(--dur) var(--ease);
  z-index: 1;
}
.lang-toggle[data-lang="en"] .lang-pill { transform: translateX(100%); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 14px; height: 14px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
  font-family: 'Geist', sans-serif;
}
.btn-primary {
  background: var(--brand-deep);
  color: #fcfcfc;
  border-color: var(--brand-deep);
}
[data-theme="dark"] .btn-primary { background: #fcfcfc; color: var(--brand-deep); border-color: #fcfcfc; }
.btn-primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  box-shadow: 0 0 0 4px var(--brand-glow);
}
[data-theme="dark"] .btn-primary:hover { background: var(--brand); color: var(--brand-deep); border-color: var(--brand); }
.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--text);
  background: var(--bg-subtle);
}
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 0.5rem 0.75rem; }
.btn-ghost:hover { color: var(--text); }
.btn-arrow svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease); }
.btn-arrow:hover svg { transform: translateX(2px); }
.btn-large { padding: 0.85rem 1.25rem; font-size: 0.9375rem; border-radius: var(--r-md); }

.menu-toggle { display: none; }

@media (max-width: 980px) {
  .nav-main, .header-actions .btn-primary, .header-actions .lang-toggle { display: none; }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 36px; height: 36px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    color: var(--text);
  }
  .mobile-nav-open .nav-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: var(--s5);
    gap: var(--s2);
  }
  .mobile-nav-open .nav-main a { padding: var(--s3) var(--s4); border-radius: var(--r-md); font-size: 1rem; background: transparent; }
  .mobile-nav-open .nav-main a:hover { background: var(--bg-subtle); }
  .mobile-nav-open .header-actions .lang-toggle,
  .mobile-nav-open .header-actions .btn-primary { display: inline-flex; }
}

/* ==========================================================================
   ANIMATION
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(8px); animation: staggerIn 600ms var(--ease) forwards; }
.stagger > *:nth-child(1) { animation-delay: 60ms; }
.stagger > *:nth-child(2) { animation-delay: 140ms; }
.stagger > *:nth-child(3) { animation-delay: 220ms; }
.stagger > *:nth-child(4) { animation-delay: 300ms; }
@keyframes staggerIn { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: end;
  position: relative;
  z-index: 1;
}
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.5fr 1fr; } }
.hero-headline {
  font-family: 'Geist', sans-serif;
  font-size: var(--display-1);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
}
.hero-headline em { font-style: normal; color: var(--brand-strong); font-weight: 500; }
[data-theme="dark"] .hero-headline em { color: var(--brand); }
.hero-sub {
  margin-top: var(--s5);
  font-size: clamp(1rem, 0.5vw + 0.875rem, 1.1875rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 38rem;
  font-weight: 400;
}
.hero-actions { margin-top: var(--s7); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.hero-meta { display: grid; gap: var(--s4); align-content: end; padding-bottom: var(--s2); }
.hero-meta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
}
.hero-meta-label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}
.hero-meta-value {
  font-family: 'Geist', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section-head { display: grid; gap: var(--s4); margin-bottom: var(--s7); max-width: 64rem; }
.section-head .eyebrow { margin-bottom: var(--s2); }
.section-head h2 {
  font-family: 'Geist', sans-serif;
  font-size: var(--display-2);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 28ch;
}
.section-head .lead { max-width: 56ch; }
.section-head-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin-bottom: var(--s7);
  align-items: end;
}
@media (min-width: 920px) { .section-head-grid { grid-template-columns: 1fr 1fr; gap: var(--s7); } }

/* ==========================================================================
   BENTO
   ========================================================================== */
.bento { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(6, 1fr); gap: var(--s4); }
  .bento-feature { grid-column: span 6; }
  .bento-half { grid-column: span 3; }
  .bento-third { grid-column: span 2; }
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative;
  min-height: 220px;
  text-decoration: none;
}
.bento-card:hover { border-color: var(--brand-deep); background: var(--bg-subtle); }
[data-theme="dark"] .bento-card:hover { border-color: var(--brand); }
.bento-card .num {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.bento-card h3 {
  font-family: 'Geist', sans-serif;
  font-size: 1.375rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.bento-card p { font-size: 0.9375rem; line-height: 1.55; color: var(--text-secondary); }
.bento-card .arrow {
  margin-top: auto;
  padding-top: var(--s4);
  font-family: 'Geist', sans-serif;
  font-size: 0.8125rem;
  letter-spacing: -0.005em;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}
.bento-card:hover .arrow { color: var(--brand-strong); }

.bento-card-featured {
  background: var(--inverse-bg);
  border-color: var(--inverse-bg);
  color: var(--inverse-text);
  padding: clamp(2rem, 3.5vw, 3rem);
  position: relative;
  overflow: hidden;
}
.bento-card-featured::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(109, 153, 182, 0.28) 0%, transparent 60%);
  pointer-events: none;
}
.bento-card-featured > * { position: relative; }
.bento-card-featured h3, .bento-card-featured h2 { color: var(--inverse-text); }
.bento-card-featured p { color: var(--inverse-text-muted); }
.bento-card-featured .arrow { color: var(--inverse-accent); }
.bento-card-featured:hover { border-color: var(--inverse-bg); background: var(--inverse-surface); }

/* ==========================================================================
   FEATURE BLOCK
   ========================================================================== */
.feature {
  padding: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--inverse-bg);
  color: var(--inverse-text);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(109, 153, 182, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.feature-inner { position: relative; z-index: 1; }
.feature h2 {
  font-family: 'Geist', sans-serif;
  font-size: var(--display-2);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--inverse-text);
  max-width: 24ch;
}
.feature p {
  margin-top: var(--s5);
  max-width: 54ch;
  color: var(--inverse-text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.feature .eyebrow { color: var(--inverse-accent); }
.feature .eyebrow::before { background: var(--inverse-accent); box-shadow: 0 0 0 4px rgba(109, 153, 182, 0.18); }
.feature-list { margin-top: var(--s7); display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: feat; }
@media (min-width: 720px) { .feature-list { grid-template-columns: 1fr 1fr; column-gap: var(--s8); } }
.feature-list li {
  list-style: none;
  padding: 0.875rem 0;
  border-top: 1px solid var(--inverse-border);
  font-size: 0.9375rem;
  color: var(--inverse-text);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-weight: 400;
}
.feature-list li::before {
  content: counter(feat, decimal-leading-zero);
  counter-increment: feat;
  font-family: 'Geist Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--inverse-accent);
  flex-shrink: 0;
  width: 28px;
}
.feature-actions { margin-top: var(--s7); }
.feature .btn-secondary {
  border-color: var(--inverse-border);
  color: var(--inverse-text);
  background: transparent;
}
.feature .btn-secondary:hover {
  border-color: var(--inverse-text);
  background: var(--inverse-surface);
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 720px) { .process { grid-template-columns: 1fr 1fr 1fr; } }
.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.process-num {
  font-family: 'Geist', sans-serif;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--brand-strong);
  line-height: 1;
  margin-bottom: var(--s3);
}
.process-step h3 { font-family: 'Geist', sans-serif; font-size: 1.25rem; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.process-step p { font-size: 0.9375rem; line-height: 1.6; }

/* ==========================================================================
   ABOUT BLOCK
   ========================================================================== */
.about-block { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 920px) { .about-block { grid-template-columns: 1fr 1.6fr; } }
.about-aside { position: sticky; top: calc(var(--header-h) + var(--s5)); }
.about-aside .eyebrow { margin-bottom: var(--s4); }
.about-aside h2 { font-family: 'Geist', sans-serif; font-size: var(--display-3); line-height: 1.05; letter-spacing: -0.025em; font-weight: 500; margin-bottom: var(--s4); }
.about-body p { font-size: 1.0625rem; line-height: 1.65; }
.about-body p + p { margin-top: var(--s4); }

.founder-photo {
  margin-bottom: var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-subtle);
  max-width: 280px;
  transition: border-color var(--dur) var(--ease);
}
.founder-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.92);
  transition: filter var(--dur) var(--ease);
}
.founder-photo:hover { border-color: var(--brand-deep); }
.founder-photo:hover img { filter: saturate(1); }

/* ==========================================================================
   TRIGGERS
   ========================================================================== */
.triggers { border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr; }
.trigger-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: var(--s4);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--border);
  transition: padding var(--dur-fast) var(--ease);
}
.trigger-item:hover { padding-left: var(--s2); }
.trigger-num {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 500;
}
.trigger-text { font-family: 'Geist', sans-serif; font-size: 1.125rem; line-height: 1.35; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
@media (min-width: 720px) { .trigger-text { font-size: 1.25rem; } }
.trigger-item .arrow-icon {
  color: var(--text-tertiary);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.trigger-item:hover .arrow-icon { opacity: 1; transform: translateX(0); color: var(--brand-strong); }

/* ==========================================================================
   CLINIC TYPES
   ========================================================================== */
.clinic-types { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 720px) { .clinic-types { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .clinic-types { grid-template-columns: 1fr 1fr 1fr; } }
.clinic-type {
  padding: var(--s6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.clinic-type:hover { border-color: var(--brand-deep); background: var(--bg-subtle); }
[data-theme="dark"] .clinic-type:hover { border-color: var(--brand); }
.clinic-type h3 { font-family: 'Geist', sans-serif; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: var(--s3); }
.clinic-type p { font-size: 0.9375rem; line-height: 1.55; }

/* ==========================================================================
   SERVICE DETAIL
   ========================================================================== */
.service-detail { display: grid; grid-template-columns: 1fr; gap: var(--s7); padding: var(--s8) 0; border-top: 1px solid var(--border); }
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 920px) { .service-detail { grid-template-columns: 1fr 1.6fr; gap: var(--s9); } }
.service-detail-head .service-id {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--brand-strong);
  margin-bottom: var(--s3);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.service-detail-head .service-id::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.service-detail-head h2 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(1.625rem, 2.5vw + 0.5rem, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.service-detail-body p { font-size: 1.0625rem; line-height: 1.6; }
.service-detail-body h3 {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: var(--s6) 0 var(--s4);
}
.service-detail-body ul { list-style: none; display: grid; gap: var(--s3); }
.service-detail-body ul li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.55;
}
.service-detail-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px; height: 1px;
  background: var(--brand);
}

/* ==========================================================================
   QUESTIONS
   ========================================================================== */
.questions { display: grid; gap: var(--s3); }
.question {
  padding: var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  font-family: 'Geist', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--s4);
  transition: border-color var(--dur) var(--ease);
}
.question:hover { border-color: var(--brand-deep); }
[data-theme="dark"] .question:hover { border-color: var(--brand); }
.question::before {
  content: 'Q';
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  color: var(--brand-strong);
  font-size: 0.875rem;
  line-height: 1.4;
  align-self: center;
  background: var(--brand-soft);
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
}

/* ==========================================================================
   LEAD MAGNET
   ========================================================================== */
.lead-magnet {
  padding: clamp(2rem, 4vw, 3.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.lead-magnet::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 60%);
  pointer-events: none;
}
.lead-magnet > * { position: relative; }
@media (min-width: 920px) { .lead-magnet { grid-template-columns: 1.5fr 1fr; gap: var(--s8); } }
.lead-magnet h2 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(1.625rem, 2vw + 0.5rem, 2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin-bottom: var(--s4);
}
.lead-magnet p { font-size: 1rem; line-height: 1.6; max-width: 50ch; }
.lead-form { display: grid; gap: var(--s3); }
.lead-form input, .lead-form textarea {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  font-family: 'Geist', sans-serif;
}
.lead-form textarea { resize: vertical; min-height: 80px; }
.lead-form input:focus, .lead-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

/* ==========================================================================
   ARTICLES
   ========================================================================== */
.article-cluster + .article-cluster { margin-top: var(--s7); }
.article-cluster-head {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-strong);
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.article-cluster-head::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.article-list { display: grid; gap: 0; }
.article-row {
  padding: var(--s4) var(--s2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--s4);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), padding var(--dur-fast) var(--ease);
  border-radius: var(--r-md);
  margin: 0 calc(var(--s2) * -1);
}
.article-row:hover { background: var(--bg-subtle); padding-left: var(--s4); padding-right: var(--s4); }
.article-row .article-title { font-family: 'Geist', sans-serif; font-size: 1.0625rem; line-height: 1.3; font-weight: 500; flex: 1; letter-spacing: -0.015em; color: var(--text); }
.article-row .article-meta { font-family: 'Geist Mono', monospace; font-size: 0.6875rem; color: var(--text-tertiary); letter-spacing: 0.06em; text-transform: uppercase; flex-shrink: 0; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--s7); }
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: var(--s8); } }
.contact-form {
  display: grid;
  gap: var(--s4);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.field { display: grid; gap: var(--s2); }
.field label {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: 0.9375rem;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  font-family: 'Geist', sans-serif;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; gap: var(--s4); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

.contact-aside { display: grid; gap: var(--s4); align-content: start; }
.contact-aside-card {
  padding: var(--s5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.contact-aside-label { font-family: 'Geist Mono', monospace; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: var(--s3); }
.contact-aside-value { font-family: 'Geist', sans-serif; font-size: 1rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
.contact-aside-value.mono { font-family: 'Geist Mono', monospace; font-size: 0.875rem; letter-spacing: 0; font-weight: 400; }

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final-cta { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.final-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse at top, var(--brand-glow) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta-inner { position: relative; text-align: center; }
.final-cta h2 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(1.875rem, 3.5vw + 0.5rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  max-width: 24ch;
  margin: 0 auto var(--s5);
}
.final-cta-actions { display: flex; justify-content: center; gap: var(--s3); flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--bg-subtle); border-top: 1px solid var(--border); padding: var(--s8) 0 var(--s5); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--s6); padding-bottom: var(--s7); border-bottom: 1px solid var(--border); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s7); } }
.footer-brand .logo { margin-bottom: var(--s4); }
.footer-brand p { font-size: 0.875rem; line-height: 1.55; max-width: 32ch; }
.footer-col h4 { font-family: 'Geist Mono', monospace; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: var(--s4); }
.footer-col ul { list-style: none; display: grid; gap: var(--s2); }
.footer-col li a { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--dur-fast) var(--ease); }
.footer-col li a:hover { color: var(--text); }
.footer-bottom { padding-top: var(--s5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s4); font-family: 'Geist Mono', monospace; font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--text-tertiary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   ARTICLE PAGES
   ========================================================================== */
.article-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.article-hero > * { position: relative; z-index: 1; }
.breadcrumb {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: var(--s5);
  display: flex;
  gap: var(--s2);
  align-items: center;
}
.breadcrumb a { color: var(--text-tertiary); transition: color var(--dur-fast) var(--ease); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text-tertiary); opacity: 0.55; }
.article-title {
  font-family: 'Geist', sans-serif;
  font-size: clamp(1.875rem, 3.5vw + 0.5rem, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-top: var(--s4);
  max-width: 32ch;
}
.article-meta {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.article-meta a {
  color: var(--brand-strong);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}
.article-meta a:hover { color: var(--brand-deep); }
.article-body { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem); }
.article-prose { color: var(--text-secondary); }
.article-lead {
  font-size: clamp(1.125rem, 0.8vw + 0.95rem, 1.3125rem);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: var(--s7);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.article-lead em { font-style: italic; color: var(--text); }
.article-prose h2 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(1.25rem, 1.2vw + 0.625rem, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin-top: var(--s8);
  margin-bottom: var(--s4);
  max-width: 36ch;
}
.article-prose h2:first-of-type { margin-top: 0; }
.article-prose p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--s4);
  color: var(--text-secondary);
}
.article-prose p strong { color: var(--text); font-weight: 500; }
.article-prose ul, .article-prose ol {
  margin: var(--s4) 0 var(--s5);
  padding-left: 0;
  list-style: none;
}
.article-prose li {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: var(--s3);
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}
.article-prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 10px;
  height: 1px;
  background: var(--brand);
}
.article-prose .disclaimer {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.article-cta {
  margin-top: var(--s6);
  padding: var(--s6);
  background: var(--brand-soft);
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in oklab, var(--brand) 25%, transparent);
}
.article-cta p {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.article-cta a {
  color: var(--brand-strong);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-cta a:hover { color: var(--brand-deep); }
.related-articles {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}
.related-articles-head {
  font-family: 'Geist Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-strong);
  margin-bottom: var(--s5);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.related-articles-head::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.related-grid { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 720px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-link {
  display: block;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  text-decoration: none;
}
.related-link:hover { border-color: var(--brand-deep); background: var(--bg); }
[data-theme="dark"] .related-link:hover { border-color: var(--brand); }
.related-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: var(--s3);
}
.related-link h3 {
  font-family: 'Geist', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
}

/* Article rows: distinguish published from upcoming */
.article-row.published { cursor: pointer; }
.article-row.upcoming { cursor: default; opacity: 0.6; }
.article-row.upcoming:hover { background: transparent; padding-left: var(--s2); padding-right: var(--s2); }
.article-row a {
  color: inherit;
  display: contents;
}
