/* =========================================================
   Valley Thyroid Institute — Spec preview by Woodcrest
   Design system + editorial layout
   ========================================================= */

:root {
  /* Brand palette */
  --teal-900: #123a37;
  --teal-800: #164541;
  --teal-700: #1f5f5b;   /* primary */
  --teal-500: #3a807a;
  --teal-300: #7fada8;
  --sand-100: #f6f2e9;
  --sand-200: #e9e2d4;   /* secondary */
  --sand-300: #ddd2bd;
  --clay-500: #c9714f;   /* accent */
  --clay-600: #b45f3f;
  --ink: #1c2523;
  --ink-soft: #47534f;
  --paper: #fbf9f3;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --line: rgba(28, 37, 35, 0.12);

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --step-3:  clamp(1.95rem, 1.68rem + 1.35vw, 2.9rem);
  --step-4:  clamp(2.5rem, 2.05rem + 2.25vw, 4rem);
  --step-5:  clamp(3.1rem, 2.4rem + 3.5vw, 5.4rem);

  /* Space scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 6rem;
  --sp-7: 9rem;

  --wrap: 1200px;
  --radius: 18px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }

::selection { background: var(--clay-500); color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--teal-700); color: #fff; padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--clay-500); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--teal-700);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.01em; text-decoration: none;
  padding: 0.95rem 1.5rem; border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 0.7rem 1.2rem; }
.btn-primary { box-shadow: 0 10px 24px -12px rgba(31,95,91,0.85); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(31,95,91,0.9); }
.btn-accent { --btn-bg: var(--clay-500); box-shadow: 0 12px 26px -12px rgba(201,113,79,0.9); }
.btn-accent:hover { --btn-bg: var(--clay-600); transform: translateY(-2px); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--teal-800); border-color: rgba(31,95,91,0.35); }
.btn-ghost:hover { --btn-bg: rgba(31,95,91,0.07); transform: translateY(-2px); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { --btn-bg: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}
.site-header.scrolled {
  background: rgba(251, 249, 243, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -26px rgba(18,58,55,0.6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--teal-800); min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; color: var(--teal-700);
  background: var(--sand-200); border-radius: 12px; flex: none; transition: transform 0.4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-type { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: clamp(1rem, 3.6vw, 1.12rem); letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .brand-sub { display: none; } }

.site-nav { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.9rem); }
.site-nav a { text-decoration: none; font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); position: relative; padding: 0.3rem 0; transition: color 0.2s; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--clay-500); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav a:not(.nav-cta):hover { color: var(--teal-800); }
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--teal-700); color: #fff !important; padding: 0.6rem 1.15rem !important;
  border-radius: 100px; font-weight: 600; white-space: nowrap; flex: none;
  transition: transform 0.3s var(--ease), background 0.25s;
}
@media (max-width: 420px) { .nav-cta { padding: 0.55rem 0.95rem !important; } }
.nav-cta:hover { transform: translateY(-2px); background: var(--teal-800); }
.site-nav a:not(.nav-cta) { display: none; }
@media (min-width: 900px) { .site-nav a:not(.nav-cta) { display: inline-block; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
  background: radial-gradient(120% 90% at 82% -10%, #1c5a55 0%, rgba(28,90,85,0) 55%),
              linear-gradient(168deg, var(--teal-900) 0%, var(--teal-800) 46%, #13403c 100%);
  color: var(--sand-100); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 120% at 50% 20%, transparent 52%, rgba(6,20,19,0.55) 100%); }
.hero-field { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(24px); opacity: 0.55; }
.orb-a { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -16%; right: -8%;
  background: radial-gradient(circle at 32% 32%, rgba(201,113,79,0.7), rgba(201,113,79,0) 66%); mix-blend-mode: screen; }
.orb-b { width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; bottom: -20%; left: -14%;
  background: radial-gradient(circle at 50% 50%, rgba(127,173,168,0.55), rgba(127,173,168,0) 70%); mix-blend-mode: screen; }
.grain { position: absolute; inset: 0; opacity: 0.9; mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(115deg, rgba(246,242,233,0.05) 0 1px, transparent 1px 46px),
    radial-gradient(rgba(255,255,255,0.13) 0.7px, transparent 0.7px);
  background-size: auto, 4px 4px; }

/* signature ECG trace — echoes the emblem heartbeat, ties the medical theme */
.hero-trace { position: absolute; left: 0; right: 0; bottom: 2%; width: 100%; height: 34%;
  color: rgba(201,113,79,0.34); }
.hero-trace path { filter: drop-shadow(0 0 9px rgba(201,113,79,0.28)); }
@media (min-width: 940px) { .hero-trace { bottom: 6%; height: 40%; color: rgba(201,113,79,0.4); } }
.js-anim .hero-trace path { stroke-dasharray: 3600; stroke-dashoffset: 3600;
  animation: traceDraw 3.4s var(--ease) 0.5s forwards; }
@keyframes traceDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .js-anim .hero-trace path { stroke-dashoffset: 0; animation: none; } }

.hero-grid { position: relative; z-index: 2; display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.35fr 0.9fr; } }

.eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal-300); font-weight: 600; margin-bottom: 1.4rem; }
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--clay-500); flex: none; }
.hero-title { font-size: var(--step-5); color: #fff; max-width: 15ch; margin-bottom: 1.5rem; line-height: 1.02; letter-spacing: -0.028em; text-shadow: 0 2px 40px rgba(10,26,25,0.35); }
.hero-lede { font-size: var(--step-1); line-height: 1.55; color: rgba(246,242,233,0.86); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.1rem; }
.hero-note { font-size: var(--step--1); color: var(--teal-300); display: flex; align-items: center; gap: 0.5rem; }

.hero-card {
  position: relative; background: linear-gradient(160deg, rgba(246,242,233,0.11), rgba(246,242,233,0.04));
  border: 1px solid rgba(246,242,233,0.18);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.1rem); backdrop-filter: blur(8px);
  box-shadow: 0 30px 60px -40px rgba(6,20,19,0.9), inset 0 1px 0 rgba(246,242,233,0.14);
}
.hero-card::before { content: ""; position: absolute; top: -1px; left: 1.6rem; right: 1.6rem; height: 2px;
  background: linear-gradient(90deg, transparent, var(--clay-500), transparent); opacity: 0.7; }
.card-detail { padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid rgba(246,242,233,0.16); }
.detail-kicker { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 0.55rem; }
.detail-line { font-family: var(--serif); font-size: var(--step-1); color: #fff; line-height: 1.25; }
.hero-stats { list-style: none; padding: 0; display: grid; gap: 0; }
.hero-stats li { display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline; gap: 0.9rem; padding-block: 1rem; }
.hero-stats li + li { border-top: 1px solid rgba(246,242,233,0.14); }
.hero-stats li:first-child { padding-top: 0.2rem; }
.hero-stats li:last-child { padding-bottom: 0.2rem; }
.stat-num { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.6rem); color: var(--clay-500); font-weight: 600; line-height: 1;
  font-variant-numeric: lining-nums; }
.stat-plus { font-size: 0.6em; vertical-align: super; }
.stat-label { font-size: var(--step--1); color: rgba(246,242,233,0.9); line-height: 1.4; text-wrap: balance; }

.hero-scroll { position: relative; z-index: 2; display: none; margin-top: 3rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-300); align-items: center; gap: 0.6rem; }
.hero-scroll span { width: 1px; height: 34px; background: linear-gradient(var(--teal-300), transparent); animation: scrollpulse 2.2s var(--ease) infinite; }
@media (min-width: 940px) { .hero-scroll { display: inline-flex; } }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Ticker ---------- */
.ticker { position: relative; color: #fff; padding-block: 0.95rem; overflow: hidden;
  background: linear-gradient(180deg, var(--clay-600) 0%, var(--clay-500) 46%, var(--clay-600) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), inset 0 -1px 0 rgba(6,20,19,0.22),
              0 18px 34px -30px rgba(180,95,63,0.9);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.ticker-track { display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap;
  font-family: var(--serif); font-size: var(--step-1); font-style: italic;
  animation: marquee 34s linear infinite; will-change: transform; }
.ticker-track > span:not([aria-hidden]) { opacity: 0.96; text-shadow: 0 1px 0 rgba(6,20,19,0.18); }
.ticker-track > span[aria-hidden] { color: rgba(255,255,255,0.55); font-style: normal; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, var(--sp-7)); }
.section-kicker { display: inline-flex; align-items: center; gap: 0.7rem; font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay-600); font-weight: 600; margin-bottom: 1.1rem; }
.section-kicker::before { content: ""; width: 2rem; height: 2px; background: currentColor; opacity: 0.75; flex: none; }
.section-kicker.light { color: var(--teal-300); }
.section-title { font-size: var(--step-3); color: var(--teal-900); max-width: 20ch; }
.section-title.light { color: #fff; }
.section-lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; margin-top: 1.3rem; max-width: 52ch; }

/* ---------- Approach ---------- */
.approach { background:
  radial-gradient(120% 60% at 100% 0%, rgba(31,95,91,0.05), transparent 60%), var(--paper); }
.approach-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 940px) { .approach-grid { grid-template-columns: 0.92fr 1.08fr; align-items: start; } }
.approach-head { position: sticky; top: 100px; align-self: start; }

.marker-panel { margin-top: 2.4rem; padding-top: 1.9rem; border-top: 1px solid var(--line); }
.marker-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-700); font-weight: 600; margin-bottom: 1rem; }
.marker-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.marker-tags li { font-size: var(--step--1); font-weight: 500; color: var(--teal-800);
  background: var(--white); border: 1px solid var(--line); border-radius: 100px; padding: 0.5rem 0.95rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, color 0.3s; }
.marker-tags li:hover { transform: translateY(-2px); border-color: rgba(201,113,79,0.55); color: var(--clay-600); }

/* Timeline spine + editorial ghost numerals */
.steps { list-style: none; padding: 0; display: grid; gap: 1.1rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: clamp(2.45rem, 5vw, 2.95rem); top: 1.5rem; bottom: 1.5rem;
  width: 2px; transform: translateX(-1px); border-radius: 2px; z-index: 0;
  background: linear-gradient(rgba(201,113,79,0.15), var(--clay-500) 12%, var(--clay-500) 88%, rgba(201,113,79,0.15));
  box-shadow: 0 0 12px -2px rgba(201,113,79,0.45); }
.step {
  position: relative; z-index: 1; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fdfbf6);
  padding: clamp(1.5rem, 3vw, 2.1rem); padding-left: clamp(4.6rem, 9vw, 6rem);
  box-shadow: 0 1px 0 rgba(18,58,55,0.03); overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
}
/* persistent hairline accent that grows on hover */
.step::after { content: ""; position: absolute; left: 0; top: clamp(1.5rem, 3.2vw, 2rem); bottom: clamp(1.5rem, 3.2vw, 2rem);
  width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(var(--clay-500), rgba(201,113,79,0.35));
  transform: scaleY(0.18); transform-origin: top; opacity: 0.55; transition: transform 0.45s var(--ease), opacity 0.4s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(18,58,55,0.55); border-color: rgba(31,95,91,0.3); }
.step:hover::after { transform: scaleY(1); opacity: 1; }
.step-num { position: absolute; left: clamp(1.05rem, 2.6vw, 1.5rem); top: clamp(1.5rem, 3.4vw, 2.15rem);
  display: grid; place-items: center; width: clamp(2.5rem, 5vw, 2.9rem); height: clamp(2.5rem, 5vw, 2.9rem);
  border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fff, var(--sand-100)); border: 1px solid var(--sand-300);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--clay-600);
  box-shadow: 0 6px 16px -10px rgba(180,95,63,0.6), inset 0 0 0 3px rgba(255,255,255,0.6);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s, transform 0.4s var(--ease), box-shadow 0.35s var(--ease); }
.step:hover .step-num { box-shadow: 0 0 0 6px rgba(201,113,79,0.12), 0 10px 22px -10px rgba(180,95,63,0.7), inset 0 0 0 3px rgba(255,255,255,0.35); }
.step:hover .step-num { background: linear-gradient(150deg, var(--clay-500), var(--clay-600)); color: #fff; border-color: var(--clay-500); transform: scale(1.06); }
.step-title { font-size: var(--step-1); color: var(--teal-800); margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: var(--step-0); }

/* ---------- Story ---------- */
.story { background: linear-gradient(180deg, var(--sand-100), var(--sand-200)); }
.story-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 940px) { .story-grid { grid-template-columns: 0.85fr 1.15fr; } }
.story-visual { position: relative; }
.emblem {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background:
    radial-gradient(130% 100% at 50% 20%, rgba(201,113,79,0.28), transparent 58%),
    radial-gradient(90% 60% at 50% 118%, rgba(31,95,91,0.55), transparent 60%),
    linear-gradient(155deg, #1a504b 0%, var(--teal-800) 45%, #0f332f 100%);
  overflow: hidden;
  box-shadow: 0 44px 80px -42px rgba(18,58,55,0.8), inset 0 1px 0 rgba(246,242,233,0.14), inset 0 0 0 1px rgba(246,242,233,0.06);
}
/* engraved inner frame */
.emblem::before { content: ""; position: absolute; inset: clamp(1rem, 2.6vw, 1.5rem); z-index: 3;
  border: 1px solid rgba(246,242,233,0.24); border-radius: 10px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(6,20,19,0.25); }
/* fine grain */
.emblem::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.11) 0.6px, transparent 0.6px); background-size: 5px 5px; mix-blend-mode: soft-light; }
.emblem-rings { position: absolute; z-index: 0; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 128%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 28%, rgba(246,242,233,0.07) 28.4%, transparent 29%),
    radial-gradient(circle, transparent 40%, rgba(246,242,233,0.06) 40.4%, transparent 41%),
    radial-gradient(circle, transparent 52%, rgba(201,113,79,0.16) 52.4%, transparent 53%),
    radial-gradient(circle, transparent 64%, rgba(246,242,233,0.04) 64.4%, transparent 65%);
}
/* corner ticks: deliberate, crest-like framing */
.emblem-corner { position: absolute; z-index: 4; width: 18px; height: 18px; pointer-events: none;
  border-color: rgba(201,113,79,0.7); border-style: solid; border-width: 0; }
.emblem-corner.tl { top: clamp(1.6rem, 4vw, 2.2rem); left: clamp(1.6rem, 4vw, 2.2rem); border-top-width: 2px; border-left-width: 2px; }
.emblem-corner.tr { top: clamp(1.6rem, 4vw, 2.2rem); right: clamp(1.6rem, 4vw, 2.2rem); border-top-width: 2px; border-right-width: 2px; }
.emblem-corner.bl { bottom: clamp(1.6rem, 4vw, 2.2rem); left: clamp(1.6rem, 4vw, 2.2rem); border-bottom-width: 2px; border-left-width: 2px; }
.emblem-corner.br { bottom: clamp(1.6rem, 4vw, 2.2rem); right: clamp(1.6rem, 4vw, 2.2rem); border-bottom-width: 2px; border-right-width: 2px; }
.emblem-inner { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: clamp(2rem, 5vw, 2.8rem); }
.emblem-eyebrow { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--teal-300); font-weight: 600; margin-bottom: clamp(0.8rem, 2vw, 1.2rem); }
.emblem-mono { font-family: var(--serif); font-size: clamp(4.2rem, 15vw, 7.4rem);
  color: rgba(246,242,233,0.97); font-weight: 600; letter-spacing: 0.02em; line-height: 0.86;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25), 0 -1px 0 rgba(6,20,19,0.55), 0 10px 34px rgba(6,20,19,0.55); }
.emblem-pulse { width: clamp(7rem, 22vw, 10rem); height: 26px; margin: clamp(0.7rem, 1.8vw, 1.05rem) 0;
  color: var(--clay-500); opacity: 0.92; }
.js-anim .emblem-pulse path { stroke-dasharray: 340; stroke-dashoffset: 340; }
.js-anim .emblem.is-lit .emblem-pulse path { animation: pulseTrace 1.6s var(--ease) 0.3s forwards; }
@keyframes pulseTrace { to { stroke-dashoffset: 0; } }
.emblem-name { font-family: var(--serif); font-size: var(--step-1); color: #fff; font-weight: 600; letter-spacing: 0.01em; }
.emblem-role { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(246,242,233,0.78); font-weight: 500; margin-top: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .emblem-pulse path { stroke-dashoffset: 0; }
}
.story-badge {
  position: absolute; right: -8px; bottom: -22px; background: var(--white);
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.85rem;
  max-width: 250px; box-shadow: 0 24px 44px -26px rgba(18,58,55,0.55); border: 1px solid var(--line);
}
.badge-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--clay-500); line-height: 1; }
.badge-text { font-size: 0.82rem; color: var(--muted); line-height: 1.3; }
.story-copy p { color: var(--ink-soft); margin-top: 1.15rem; max-width: 56ch; }
.story-copy .section-title { margin-top: 0; }
.cred-list { list-style: none; padding: 0; margin: 1.7rem 0 1.9rem; display: grid; gap: 0.75rem; }
.cred-list li { position: relative; padding-left: 1.7rem; color: var(--teal-800); font-weight: 500; font-size: var(--step-0); }
.cred-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--clay-500); box-shadow: 0 0 0 4px rgba(201,113,79,0.16); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none;
  color: var(--teal-700); border-bottom: 2px solid rgba(31,95,91,0.25); padding-bottom: 2px; transition: gap 0.3s var(--ease), border-color 0.3s; }
.link-arrow:hover { gap: 0.9rem; border-color: var(--clay-500); }

/* ---------- Care ---------- */
.care { position: relative; overflow: hidden;
  background: radial-gradient(110% 80% at 85% 0%, #1a504b, transparent 55%), var(--teal-900); color: var(--sand-100); }
.care::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: repeating-linear-gradient(115deg, rgba(246,242,233,0.035) 0 1px, transparent 1px 52px); }
.care > .wrap { position: relative; z-index: 1; }
.care .section-title { color: #fff; max-width: 24ch; }
.care-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.care-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .care-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .care-grid { grid-template-columns: repeat(3, 1fr); } }
.care-card {
  background: rgba(246,242,233,0.05); border: 1px solid rgba(246,242,233,0.14); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.care-card:hover { transform: translateY(-5px); background: rgba(246,242,233,0.09); border-color: rgba(201,113,79,0.5); }
.care-index { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-300); font-weight: 600; }
.care-card .care-title { font-size: var(--step-1); color: #fff; }
.care-card p { font-size: var(--step-0); color: rgba(246,242,233,0.78); }
.care-lead { background: linear-gradient(155deg, var(--clay-500), var(--clay-600)); border-color: transparent; }
@media (min-width: 640px) { .care-lead { grid-column: span 2; } }
@media (min-width: 1000px) { .care-lead { grid-column: span 1; grid-row: span 2; justify-content: space-between; } }
.care-lead .care-index { color: rgba(255,255,255,0.85); }
.care-lead p { color: rgba(255,255,255,0.92); }
.care-lead .btn { align-self: flex-start; margin-top: 0.6rem; --btn-bg: #fff; --btn-fg: var(--clay-600); }
.care-lead .btn:hover { transform: translateY(-2px); }

/* ---------- Voices ---------- */
.voices { background: var(--sand-100); }
.voices-head { margin-bottom: clamp(2.2rem, 4vw, 3rem); }
.voices .section-title { color: var(--teal-900); }
.voices-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .voices-grid { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.1rem); position: relative; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: 0 30px 55px -38px rgba(18,58,55,0.55); }
.quote::before { content: "\201C"; font-family: var(--serif); font-size: 3.4rem; line-height: 0.7; color: var(--clay-500); opacity: 0.4; margin-bottom: 0.4rem; }
.quote blockquote { font-family: var(--serif); font-size: var(--step-1); line-height: 1.5; color: var(--teal-900); }
.quote figcaption { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-weight: 600; color: var(--teal-700); display: flex; flex-direction: column; gap: 0.2rem; }
.disclaimer { font-family: var(--sans); font-weight: 400; font-size: 0.72rem; font-style: italic; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(158deg, var(--teal-800) 0%, var(--teal-900) 100%); color: var(--sand-100); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 40vw; height: 40vw; max-width: 480px; max-height: 480px;
  right: -10%; top: -20%; border-radius: 50%; background: radial-gradient(circle, rgba(201,113,79,0.4), transparent 68%); filter: blur(10px); }
.contact-grid { position: relative; z-index: 2; display: grid; gap: clamp(2.2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr 0.85fr; } }
.contact .section-title { max-width: 22ch; }
.contact-lede { font-size: var(--step-1); color: rgba(246,242,233,0.85); margin-top: 1.3rem; max-width: 48ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.contact-info dl { display: grid; gap: 1.4rem; background: rgba(246,242,233,0.06); border: 1px solid rgba(246,242,233,0.16);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem); }
.info-row dt { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 0.3rem; }
.info-row dd { font-size: var(--step-0); color: rgba(246,242,233,0.92); }
.info-row dd a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); transition: border-color 0.2s; }
.info-row dd a:hover { border-color: var(--clay-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(246,242,233,0.7); padding-block: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid rgba(246,242,233,0.12); }
.footer-inner { display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; }
.footer-brand p { margin-top: 0.6rem; max-width: 42ch; font-size: var(--step--1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem 1.6rem; align-content: start; }
.footer-nav a { text-decoration: none; color: rgba(246,242,233,0.82); font-size: var(--step--1); font-weight: 500; transition: color 0.2s; }
.footer-nav a:hover { color: var(--clay-500); }
.footer-legal { grid-column: 1 / -1; margin-top: 0.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(246,242,233,0.12); font-size: 0.74rem; color: rgba(246,242,233,0.5); max-width: 80ch; }

/* ---------- Spec footer (mandatory) ---------- */
.spec-footer { background: #10201e; color: rgba(246,242,233,0.62); text-align: center; padding: 1.1rem 1.25rem; font-size: 0.8rem; font-family: var(--sans); }
.spec-footer a { color: var(--clay-500); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Reveal animation ---------- */
/* Hidden state applies ONLY when app.js has added .js-anim — so no-JS = fully visible */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
[data-reveal] { transition-delay: var(--rd, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .step, .care-card, .quote { transition: none; }
}
