/* ==========================================================================
   FIRST. — Longevity Gladiators | LG26
   Palette: warm ivory, champagne gold, soft taupe, deep espresso.
   Gold is an accent only — never a background texture.
   ========================================================================== */

:root {
  --ivory:      #FAF7F0;
  --cream:      #F4EDE1;
  --cream-deep: #EFE6D6;
  --gold:       #B08D4F;
  --gold-light: #D4BA85;
  --gold-pale:  #EADCC0;
  --taupe:      #A99887;
  --taupe-line: #DCD1BF;
  --espresso:   #2B241C;
  --ink:        #1A1614;
  --body:       #4A4038;

  --wrap: 1180px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --gap: clamp(1.5rem, 3vw, 2.75rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; }

a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-pale); transition: border-color .2s, color .2s; }
a:hover { color: var(--espresso); border-color: var(--gold); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--espresso); color: var(--ivory); padding: .75rem 1.25rem;
  border: 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; color: var(--ivory); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }

/* ============================ HEADER ============================ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, .93);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-stuck { border-bottom-color: var(--taupe-line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}

.brand { display: flex; align-items: center; gap: .7rem; border: 0; color: var(--espresso); }
.brand:hover { color: var(--espresso); }
.brand-mark { width: 34px; height: auto; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-first { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: .08em; color: var(--ink); }
.brand-sub { font-size: .58rem; letter-spacing: .19em; text-transform: uppercase; color: var(--taupe); font-weight: 500; }

.primary-nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.85rem); }
.primary-nav a {
  border: 0; color: var(--body); font-size: .74rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase; padding: .35rem 0;
  border-bottom: 1px solid transparent; white-space: nowrap;
}
.primary-nav a:hover { color: var(--ink); border-bottom-color: var(--gold-light); }
.primary-nav a.is-active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none; align-items: center; gap: .55rem; background: none;
  border: 1px solid var(--taupe-line); border-radius: 2px; padding: .5rem .75rem;
  color: var(--espresso); font-family: var(--sans); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
}
.nav-toggle-bars { display: flex; flex-direction: column; gap: 3px; width: 15px; }
.nav-toggle-bars i { display: block; height: 1px; background: var(--espresso); transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* ============================ HERO ============================ */

.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem); text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.hero-mark {
  display: block; width: clamp(120px, 20vw, 210px); height: auto;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.hero-wordmark {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.4rem, 11vw, 6.5rem); line-height: .95;
  letter-spacing: .1em; color: var(--ink); text-indent: .1em;
}
.hero-tagline {
  margin: .85rem 0 0; font-size: clamp(.72rem, 1.8vw, .88rem); font-weight: 500;
  letter-spacing: .42em; text-transform: uppercase; color: var(--gold); text-indent: .42em;
}

.hero-heading {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0; max-width: 100%;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.15rem, 6vw, 3.55rem); line-height: 1.18;
  letter-spacing: -.01em; color: var(--ink);
  text-wrap: balance;
}
.hero-heading em { font-style: italic; color: var(--gold); }

.hero-lede { margin: 1.5rem 0 0; max-width: 46ch; font-size: clamp(1rem, 2vw, 1.1rem); color: var(--body); }

.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: clamp(2rem, 4vw, 2.75rem); }

.hero-rule { width: min(100% - 3rem, var(--wrap)); height: 1px; margin: clamp(3rem, 6vw, 5rem) auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent); }

/* ============================ BUTTONS ============================ */

.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 2px;
  padding: .95rem 1.9rem; font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.btn-primary:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-ghost { background: none; color: var(--espresso); border-color: var(--taupe-line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); background: none; }
.btn-ghost-light { color: var(--cream); border-color: rgba(244, 237, 225, .35); }
.btn-ghost-light:hover:not(:disabled) { color: var(--gold-light); border-color: var(--gold-light); }
.btn:disabled { opacity: .38; cursor: not-allowed; }

/* ============================ SECTION SHELL ============================ */

.section { padding: var(--section-y) 0; }
.section-tint { background: var(--cream); }
.section-deep { background: var(--espresso); color: var(--cream); }

.eyebrow {
  margin: 0 0 1.2rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.eyebrow-light { color: var(--gold-light); }

.display-heading {
  margin: 0 0 1.5rem; max-width: none;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 5.6vw, 3.9rem); line-height: 1.16;
  letter-spacing: -.01em; color: var(--ink);
  text-wrap: balance;
}
.display-heading em { font-style: italic; color: var(--gold); }
.display-light { color: var(--ivory); }
.display-light em { color: var(--gold-light); }

.section-lede { margin: 0 0 clamp(2.25rem, 5vw, 3.25rem); max-width: 68ch; font-size: clamp(1rem, 1.9vw, 1.08rem); }

.fineprint { margin: 2.25rem 0 0; max-width: 74ch; font-size: .82rem; line-height: 1.65; color: var(--taupe); }

/* ============================ TILE GRID ============================ */

.tile-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--taupe-line); border-radius: 3px; background: var(--ivory);
}
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) .75rem; text-align: center;
  border-right: 1px solid var(--taupe-line);
}
.tile:last-child { border-right: 0; }
.tile-icon { width: 40px; height: 40px; color: var(--gold); }
.tile-label { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--espresso); line-height: 1.7; }

/* ============================ TWO COLUMN ============================ */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.col-body > p:first-child { margin-top: 0; }
.col-body p { max-width: 60ch; }
.mini-h { margin: 2rem 0 .5rem; font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.col-body .mini-h:first-child { margin-top: 0; }

.def-list { margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--taupe-line); }
.def-list > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--taupe-line); }
.def-list dt { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--espresso); padding-top: .2rem; }
.def-list dd { margin: 0; font-size: .95rem; }

.col-figure { margin: 0; }
.span-diagram { width: 100%; height: auto; }
.dg-label { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .18em; fill: var(--taupe); }
.dg-good { fill: var(--gold-pale); stroke: var(--gold); stroke-width: 1; }
.dg-decline { fill: none; stroke: var(--taupe-line); stroke-width: 1; }
.dg-in { font-family: var(--sans); font-size: 10.5px; font-weight: 500; fill: var(--espresso); }
.dg-in-alt { fill: var(--taupe); }
.dg-axis { stroke: var(--taupe-line); stroke-width: 1; }
.dg-axis-label { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .16em; fill: var(--taupe); }
.col-figure figcaption { margin-top: 1.25rem; font-size: .8rem; line-height: 1.6; color: var(--taupe); max-width: 46ch; }

/* ============================ EVIDENCE PILLS ============================ */

.pill {
  display: inline-block; padding: .3rem .7rem; border-radius: 2px;
  font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; border: 1px solid;
}
.pill-established    { color: #4C6B4F; border-color: #C3D3C0; background: #EFF4EE; }
.pill-emerging       { color: #8A6A2F; border-color: var(--gold-pale); background: #FBF4E6; }
.pill-investigational{ color: #7A4A3C; border-color: #E3CAC0; background: #FAF0EB; }

/* ============================ KLOTHO PATHWAY ============================ */

.pathway-title {
  margin: 0 0 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid var(--taupe-line);
  font-size: .7rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--taupe);
}
/* The diagram, plain: width:100% + height:auto keeps the source proportions exactly. */
.pathway-image { margin: 0; }
.pathway-image img { display: block; width: 100%; height: auto; }

.pathway-labels {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem;
  margin: 2rem 0 0;
}
.pathway-labels .pill { text-align: center; white-space: normal; padding: .45rem .6rem; }

.pathway-note {
  margin: 1.5rem 0 0; max-width: 82ch;
  font-size: .86rem; line-height: 1.7; color: var(--taupe);
}

/* ============================ 72-HOUR EXECUTION PLAN ============================ */

.exec-plan { margin-top: clamp(3rem, 6vw, 4.5rem); border: 1px solid var(--taupe-line); border-radius: 3px; background: var(--ivory); padding: clamp(1.75rem, 4vw, 2.75rem); }
.exec-title { margin: 0 0 1.5rem; padding-bottom: .9rem; border-bottom: 1px solid var(--taupe-line);
  font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--espresso); }
.exec-rows { list-style: none; margin: 0; padding: 0; }
.exec-row {
  display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem;
  padding: 1.25rem 0 1.25rem 1.25rem; border-bottom: 1px solid var(--taupe-line);
  border-left: 2px solid var(--gold-pale);
}
.exec-row:last-child { border-bottom: 0; }
.exec-hours { display: flex; flex-direction: column; gap: .3rem; }
.exec-range { font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.exec-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--ink); line-height: 1.2; }
.exec-row p { margin: 0; font-size: .93rem; line-height: 1.62; }

.standard-quote {
  margin: 1.75rem 0 0; padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold); background: var(--cream); border-radius: 0 3px 3px 0;
  font-family: var(--serif); font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-style: italic;
  line-height: 1.5; color: var(--ink);
}
.standard-quote-tag {
  display: block; margin-bottom: .5rem; font-family: var(--sans); font-style: normal;
  font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}

/* ============================ KLOTHOSOME FLOW ============================ */

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: flow; }
.flow-step { position: relative; padding: clamp(1.5rem, 2.6vw, 2rem); border: 1px solid var(--taupe-line); border-radius: 3px; background: var(--ivory); }
.flow-step::after {
  content: "→"; position: absolute; right: -1.05rem; top: 50%; transform: translateY(-50%);
  color: var(--gold-light); font-size: 1rem; line-height: 1;
}
.flow-step:last-child::after { content: none; }
.flow-step h3 { margin: 0 0 .5rem; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); }
.flow-step p { margin: 0; font-size: .92rem; line-height: 1.6; }
.flow-step-final { border-color: var(--gold-light); background: #FCF8F0; }
.flow-step-final h3 { color: var(--gold); }

/* ============================ CALLOUT ============================ */

.callout {
  margin: clamp(2.25rem, 4vw, 3rem) 0 0; padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid #E3CAC0; border-left: 3px solid #B5705B; border-radius: 3px;
  background: #FBF3EF; max-width: 76ch;
}
.callout-tag { margin: 0 0 .7rem; font-size: .64rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #7A4A3C; }
.callout p:last-child { margin: 0; font-size: .95rem; line-height: 1.7; }

/* ============================ FIRST. CAMPAIGN (dark) ============================ */

.section-deep .fineprint { color: var(--taupe); }
.section-deep a { color: var(--gold-light); border-bottom-color: rgba(212, 186, 133, .4); }
.section-deep a:hover { color: var(--ivory); border-bottom-color: var(--ivory); }

.manifesto { max-width: 62ch; }
.manifesto p { color: #D8CEC0; font-size: clamp(1rem, 1.9vw, 1.08rem); }
.manifesto-lede { font-family: var(--serif); font-size: clamp(1.25rem, 2.8vw, 1.7rem) !important; line-height: 1.45; color: var(--ivory) !important; font-style: italic; margin-top: 0; }
.manifesto strong { color: var(--ivory); font-weight: 600; }
.manifesto-close {
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(212, 186, 133, .28);
  font-family: var(--serif); font-size: clamp(1.35rem, 3.2vw, 2rem) !important;
  line-height: 1.3; color: var(--gold-light) !important; letter-spacing: .01em;
}

.card-tool {
  margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid rgba(212, 186, 133, .3); border-radius: 3px;
  background: rgba(250, 247, 240, .04); max-width: 760px;
}
.card-tool-title { margin: 0 0 .6rem; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 500; color: var(--ivory); }
.card-tool-sub { margin: 0 0 1.5rem; font-size: .88rem; line-height: 1.65; color: var(--taupe); max-width: 56ch; }

.card-input {
  width: 100%; padding: 1rem 1.1rem; border: 1px solid rgba(212, 186, 133, .35); border-radius: 2px;
  background: rgba(0, 0, 0, .18); color: var(--ivory);
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; resize: vertical;
}
.card-input::placeholder { color: rgba(169, 152, 135, .7); font-style: italic; }
.card-input:focus { outline: none; border-color: var(--gold-light); }
.char-count { margin: .5rem 0 0; text-align: right; font-size: .7rem; letter-spacing: .1em; color: var(--taupe); }

.card-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.card-actions .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.card-actions .btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }

.card-preview { margin-top: 2rem; display: none; }
.card-preview.is-visible { display: block; }
.card-preview canvas { width: 100%; max-width: 420px; height: auto; border: 1px solid rgba(212, 186, 133, .3); border-radius: 3px; display: block; }
.card-note { margin: .9rem 0 0; font-size: .78rem; color: var(--taupe); }

/* ============================ EVIDENCE TABLE ============================ */

.label-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: clamp(2.25rem, 4vw, 3rem); }
.key-item p { margin: .75rem 0 0; font-size: .88rem; line-height: 1.6; color: var(--body); }

.table-scroll { overflow-x: auto; border: 1px solid var(--taupe-line); border-radius: 3px; background: var(--ivory); -webkit-overflow-scrolling: touch; }
.evidence-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .87rem; }
.evidence-table th {
  text-align: left; padding: 1rem 1.1rem; background: var(--cream-deep);
  font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--espresso); border-bottom: 1px solid var(--taupe-line); white-space: nowrap;
}
.evidence-table td { padding: 1.1rem; border-bottom: 1px solid var(--taupe-line); vertical-align: top; line-height: 1.55; }
.evidence-table tr:last-child td { border-bottom: 0; }
.evidence-table td:first-child { color: var(--espresso); font-weight: 500; min-width: 20rem; }
.evidence-table cite { font-style: italic; }
.evidence-table a { font-size: .82rem; word-break: break-word; }
.row-investigational { background: #FBF3EF; }

/* ============================ UPLOAD ARC ============================ */

.arc { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; margin: 0 0 clamp(2.25rem, 4vw, 3rem); }
.arc span { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe); }
.arc .arc-sep { color: var(--gold-light); letter-spacing: 0; }
.arc .arc-end { color: var(--gold); }

.upload-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.upload-card { padding: clamp(1.6rem, 3vw, 2.25rem); border: 1px solid var(--taupe-line); border-top: 2px solid var(--gold); border-radius: 3px; background: var(--ivory); }
.upload-num { display: block; margin-bottom: .9rem; font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.upload-card h3 { margin: 0 0 .65rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--ink); }
.upload-card p { margin: 0; font-size: .93rem; line-height: 1.62; }

/* ============================ CHECKLIST ============================ */


/* ============================ ABOUT ============================ */

.about-tagline { margin: -.5rem 0 clamp(2.25rem, 4vw, 3rem); font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.6vw, 1.5rem); color: var(--gold); }

/* ============================ FOOTER ============================ */

.site-footer { background: var(--espresso); color: var(--cream); padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-mark { display: block; width: 66px; height: auto; margin-bottom: 1.75rem; }
.footer-wordmark { margin: 0; font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 500; letter-spacing: .1em; color: var(--ivory); text-indent: .1em; line-height: 1; }
.footer-tagline { margin: 1.1rem 0 0; font-size: clamp(.66rem, 1.6vw, .78rem); font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-light); text-indent: .34em; }
.footer-rule { width: min(100%, 460px); height: 1px; margin: clamp(2.5rem, 5vw, 3.5rem) 0; background: linear-gradient(90deg, transparent, rgba(212, 186, 133, .5), transparent); }
.footer-lockup { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory); }
.footer-motto { margin: .7rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-light); }
.footer-triad { margin: 1.75rem 0 0; font-size: .64rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--taupe); }
.footer-disclaimer { margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; max-width: 72ch; font-size: .74rem; line-height: 1.75; color: rgba(169, 152, 135, .9); }

/* ==========================================================================
   MOTION LAYER
   Everything below animates presentation only — no content depends on it.
   All of it is disabled under prefers-reduced-motion (see the end of file).
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);      /* soft, confident settle */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* slight overshoot */
}

/* ---------- scroll progress ---------- */

.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 150;
  pointer-events: none; background: transparent;
}
.scroll-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 12px rgba(176, 141, 79, .55);
  transition: width .12s linear;
}

/* ---------- scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* staggered children */
[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(1) { transition-delay: .05s; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: .12s; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: .19s; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: .26s; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: .33s; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: .40s; }
[data-stagger].is-in > *:nth-child(n+7) { transition-delay: .47s; }

/* image wipe */
[data-wipe] img { clip-path: inset(0 100% 0 0); transform: scale(1.04); transition: clip-path 1.15s var(--ease-out), transform 1.4s var(--ease-out); }
[data-wipe].is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* ---------- hero entrance ---------- */

@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes markIn { from { opacity: 0; transform: translateY(18px) scale(.86) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes glowPulse { 0%, 100% { opacity: .28; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .5; transform: translate(-50%, -50%) scale(1.12); } }

.hero-inner { position: relative; }
/* soft gold aura behind the mark */
.hero-inner::before {
  content: ""; position: absolute; left: 50%; top: clamp(70px, 11vw, 120px);
  width: clamp(260px, 34vw, 420px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 186, 133, .45), rgba(212, 186, 133, 0) 68%);
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none; z-index: 0;
  animation: glowPulse 7s ease-in-out 1.1s infinite;
}
.hero-inner > * { position: relative; z-index: 1; }

.hero-mark { animation: markIn 1.15s var(--ease-spring) both, floatY 6.5s ease-in-out 1.3s infinite; }
.hero-tagline { animation: riseIn .9s var(--ease-out) .55s both; }
.hero-heading { animation: riseIn 1s var(--ease-out) .7s both; }
.hero-lede { animation: riseIn 1s var(--ease-out) .82s both; }
.cta-row { animation: riseIn 1s var(--ease-out) .94s both; }

/* wordmark: letters rise individually, then a gold sheen sweeps across */
.hero-wordmark span { display: inline-flex; }
.hero-wordmark i {
  font-style: normal; display: inline-block;
  animation: riseIn .85s var(--ease-spring) both;
  background: linear-gradient(100deg, var(--ink) 38%, var(--gold-light) 50%, var(--ink) 62%);
  background-size: 300% 100%; background-position: 130% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-position 1.6s ease;
}
.hero-wordmark i:nth-child(1) { animation-delay: .26s; }
.hero-wordmark i:nth-child(2) { animation-delay: .32s; }
.hero-wordmark i:nth-child(3) { animation-delay: .38s; }
.hero-wordmark i:nth-child(4) { animation-delay: .44s; }
.hero-wordmark i:nth-child(5) { animation-delay: .50s; }
/* the full stop stays gold — it echoes the mark */
.hero-wordmark i:nth-child(6) {
  animation-delay: .56s; background: none;
  -webkit-background-clip: initial; background-clip: initial; color: var(--gold);
}
.hero-wordmark.is-lit i { background-position: -30% 0; }

/* ---------- buttons ---------- */

.btn { position: relative; overflow: hidden; isolation: isolate; will-change: transform; }
.btn > span { position: relative; z-index: 2; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn-primary:hover, .btn-ghost:hover { color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); }
.magnetic { transition: transform .35s var(--ease-out), color .25s, border-color .25s; }

/* ---------- eyebrow rule draws out ---------- */

.eyebrow { position: relative; display: inline-block; padding-bottom: .55rem; }
.eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-out) .15s;
}
.eyebrow.is-in::after { transform: scaleX(1); }

/* ---------- tiles ---------- */

.tile { transition: background .4s var(--ease-out), transform .4s var(--ease-out); position: relative; }
.tile::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .45s var(--ease-out);
}
.tile:hover { background: #FCF8F0; transform: translateY(-5px); }
.tile:hover::after { transform: scaleX(1); }
.tile-icon { transition: transform .5s var(--ease-spring), color .35s; }
.tile:hover .tile-icon { transform: translateY(-4px) scale(1.12); color: var(--gold); }

/* ---------- cards, flow steps, uploads ---------- */

.flow-step, .upload-card { transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s var(--ease-out); }
.flow-step:hover, .upload-card:hover {
  transform: translateY(-5px); border-color: var(--gold-light);
  box-shadow: 0 14px 34px -22px rgba(43, 36, 28, .55);
}

/* ---------- pills shimmer in ---------- */

.pill { transition: transform .35s var(--ease-out); }
.pathway-labels .pill:hover { transform: translateY(-2px); }

/* ---------- evidence table ---------- */

.evidence-table tbody tr { transition: background .3s; }
.evidence-table tbody tr:hover { background: #FCF8F0; }
.row-investigational:hover { background: #F7ECE6; }

/* ---------- dark section spotlight ---------- */

.has-spotlight { position: relative; overflow: hidden; }
.spotlight {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  left: 0; top: 0; margin: -310px 0 0 -310px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(212, 186, 133, .16), rgba(212, 186, 133, 0) 65%);
  opacity: 0; transition: opacity .6s ease;
  will-change: transform;
}
.has-spotlight:hover .spotlight { opacity: 1; }
.has-spotlight > .wrap { position: relative; z-index: 1; }

/* ---------- exec plan rows ---------- */

.exec-row { transition: border-left-color .4s, background .4s; }
.exec-row:hover { border-left-color: var(--gold); background: #FCF8F0; }

/* ---------- nav underline ---------- */

.primary-nav a { position: relative; }
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* ---------- footer mark ---------- */

.footer-mark { transition: transform .6s var(--ease-spring); }
.site-footer:hover .footer-mark { transform: translateY(-6px) rotate(6deg); }

/* ---------- card tool ---------- */

.card-input { transition: border-color .3s, background .3s, box-shadow .3s; }
.card-input:focus { box-shadow: 0 0 0 3px rgba(212, 186, 133, .18); }
.card-preview canvas { animation: riseIn .8s var(--ease-out) both; }

/* ============================ RESPONSIVE ============================ */

@media (max-width: 1020px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .tile:nth-child(3n) { border-right: 0; }
  .tile:nth-child(-n+3) { border-bottom: 1px solid var(--taupe-line); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { content: none; }
  .label-key { grid-template-columns: 1fr; gap: 1.5rem; }
  .upload-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }

  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-top: 1px solid var(--taupe-line);
    border-bottom: 1px solid var(--taupe-line);
    padding: .5rem clamp(1.25rem, 5vw, 3rem) 1.25rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .9rem 0; border-bottom: 1px solid var(--taupe-line); font-size: .78rem; }
  .primary-nav a:last-child { border-bottom: 0; }
  .primary-nav a.is-active { border-bottom-color: var(--taupe-line); }

  .two-col { grid-template-columns: 1fr; }
  .br-md { display: none; }
  .exec-row { grid-template-columns: 1fr; gap: .5rem; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .tile { border-right: 1px solid var(--taupe-line); border-bottom: 1px solid var(--taupe-line); }
  .tile:nth-child(2n) { border-right: 0; }
  .tile:nth-child(n+5) { border-bottom: 0; }
  .flow { grid-template-columns: 1fr; }
  .pathway-labels { grid-template-columns: 1fr; }
  .flow-step::after { content: none !important; }
  .def-list > div { grid-template-columns: 1fr; gap: .25rem; }
  .cta-row .btn { width: 100%; text-align: center; }
  .card-actions .btn { flex: 1 1 100%; }
  .hero-heading { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-wipe] img { clip-path: none !important; transform: none !important; }
  .eyebrow::after, .tile::after { transform: scaleX(1) !important; }
  .hero-inner::before, .spotlight { display: none; }
  .hero-wordmark i {
    background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ink);
  }
  .hero-wordmark i:nth-child(6) { color: var(--gold); }
  .scroll-progress { display: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================ PRINT ============================ */

@media print {
  .site-header, .cta-row, .card-tool, .hero-mark, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .section-tint, .section-deep, .site-footer { background: #fff !important; color: #000 !important; padding: 1.5rem 0 !important; }
  .display-heading, .display-light, .manifesto p, .footer-wordmark { color: #000 !important; }
  .pathway-image img { max-width: 100%; page-break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .table-scroll { overflow: visible; }
  .evidence-table { min-width: 0; font-size: 8pt; }
  a { color: #000; border: 0; }
}
