/* ============================================================
   Clinical A&F — landing page
   Design language pulled directly from the IC deck:
   - Cream/parchment background (#EFE6D2)
   - Instrument Serif for editorial display + italic emphasis
   - Inter for eyebrows, body, UI (letter-spaced small caps)
   - Palette: ink, clay, olive-green, mustard-gold, brown-black
   - Thin horizontal rules top/bottom of every section
   - Numbered cards with a colored top-border tab
   - Dark chocolate callout strip for punchlines
   ============================================================ */

:root {
  /* palette — from the deck */
  --bg: #efe6d2;               /* cream background */
  --bg-warm: #ece2ca;          /* slightly darker card fill */
  --ink: #241e17;              /* near-black warm */
  --muted: #6b5f4d;
  --faint: #a89a80;
  --rule: #241e17;             /* section rules */
  --rule-faint: #b8ac91;

  --clay: #b94f2a;             /* rust red — italic + accents */
  --green: #5a6d2a;            /* olive */
  --gold: #b58a2c;             /* mustard */
  --darkbrown: #2b211a;        /* dark chocolate for callouts */

  /* type */
  --f-serif: "Instrument Serif", "Cormorant Garamond", "Playfair Display",
    Georgia, serif;
  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --text-eyebrow: 11px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: clamp(22px, 2vw, 26px);
  --text-2xl: clamp(30px, 3.4vw, 44px);
  --text-display: clamp(48px, 7vw, 108px);
  --text-hero: clamp(72px, 11vw, 180px);

  /* spacing */
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  --wrap: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  font-feature-settings: "ss01", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg { display: block; max-width: 100%; }
a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--darkbrown); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.serif { font-family: var(--f-serif); font-weight: 400; }
.italic { font-style: italic; }
.clay { color: var(--clay); }

em { font-style: italic; color: var(--clay); font-family: var(--f-serif); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--sp-4);
  top: var(--sp-4);
  background: var(--ink);
  color: var(--bg);
  padding: var(--sp-3) var(--sp-4);
  z-index: 100;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 56px);
}

/* eyebrow — letter-spaced small caps, clay */
.eyebrow {
  font-family: var(--f-sans);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
}

/* horizontal rules — thin ink line under eyebrow, thin rule above footer */
hr, .hr {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 0;
}
.rule-top { margin-top: 12px; opacity: 0.85; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  padding: 22px 0 0;
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--sp-6);
  padding-bottom: 16px;
}
.header-rule hr { border-top-color: var(--ink); opacity: 0.85; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--ink);
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
}
.site-nav a:hover { color: var(--clay); text-decoration: none; }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 16px;
  border-radius: 0;
  font-weight: 500;
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; text-decoration: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 0;                 /* deck is square-edged */
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--clay); color: #fff; border-color: var(--clay); }
.btn-primary:hover { background: var(--darkbrown); border-color: var(--darkbrown); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-lg { padding: 18px 32px; font-size: var(--text-base); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: clamp(56px, 9vw, 140px) 0 clamp(64px, 10vw, 160px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.kicker { margin-bottom: clamp(24px, 3vw, 40px); }

.hero-title {
  font-size: var(--text-hero);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: clamp(24px, 3vw, 40px);
  color: var(--ink);
}
.hero-title .serif { display: block; }
.hero-title .italic {
  display: block;
  color: var(--clay);
  font-style: italic;
  margin-top: -0.04em;
}
.amp-hero {
  font-family: var(--f-serif);
  font-style: italic;
  padding: 0 0.05em;
}

.lede {
  font-family: var(--f-serif);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 22ch;
}
.lede em { color: var(--clay); }

.sub {
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.sub-wide { max-width: 68ch; margin-top: 12px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-mark {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  aspect-ratio: 1 / 1;
}

/* ============================================================
   Section framing (eyebrow + thin rule, footer rule per section)
   ============================================================ */
.section {
  padding: clamp(64px, 8vw, 128px) 0;
  border-top: 1px solid var(--ink);
}
.section-head {
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section .display {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: var(--text-display);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.section .display-sm {
  font-size: clamp(40px, 5.5vw, 76px);
  max-width: 32ch;
}
.section .display .clay { color: var(--clay); }
.section .display .italic { font-style: italic; }

/* ============================================================
   The Moment — three tabbed items + dark callout
   ============================================================ */
.moment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
  margin: clamp(24px, 3vw, 40px) 0 clamp(40px, 5vw, 64px);
}
.moment-item { display: flex; flex-direction: column; gap: 10px; }
.tab {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--ink);
  margin-bottom: 6px;
}
.tab-green { background: var(--green); }
.tab-gold  { background: var(--gold); }
.tab-clay  { background: var(--clay); }
.tab-label {
  font-family: var(--f-sans);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}
.moment-item p {
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.5;
  max-width: 30ch;
}

/* dark callout strip — used under The Moment and the pipeline */
.callout {
  padding: clamp(20px, 2.4vw, 32px) clamp(24px, 3vw, 40px);
  margin-top: clamp(24px, 3vw, 40px);
}
.callout-dark {
  background: var(--darkbrown);
  color: #f0e6cf;
}
.callout-h {
  font-family: var(--f-sans);
  font-weight: 600;
  color: #f0e6cf;
  font-size: var(--text-lg);
  margin-bottom: 4px;
}
.callout-s {
  font-family: var(--f-sans);
  color: #d6c9a8;
  font-size: var(--text-sm);
  line-height: 1.6;
}
.callout-em { color: var(--gold); font-weight: 500; margin-left: 6px; }

/* ============================================================
   Cards — numbered, colored top-border, cream fill
   Matches "The Gap" and "What We Are Building"
   ============================================================ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.card {
  background: var(--bg-warm);
  border-top: 3px solid var(--ink);
  padding: clamp(20px, 2vw, 28px);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-green { border-top-color: var(--green); }
.card-gold  { border-top-color: var(--gold); }
.card-clay  { border-top-color: var(--clay); }
.card-num {
  font-size: clamp(38px, 3.4vw, 56px);
  line-height: 1;
  color: var(--clay);
  font-family: var(--f-serif);
  margin-bottom: 4px;
}
.card-label {
  font-family: var(--f-sans);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.card p {
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.5;
}

.pull-italic {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--ink);
  margin-top: clamp(28px, 3vw, 40px);
}

/* ============================================================
   Pipeline — clean numbered list, no gate arrows
   ============================================================ */
.pipeline-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(28px, 3vw, 44px) 0 0;
  counter-reset: step;
  border-top: 1px solid var(--ink);
}
.pipeline-list li {
  counter-increment: step;
  padding: clamp(20px, 2.2vw, 28px) clamp(16px, 1.6vw, 24px) clamp(24px, 2.6vw, 32px);
  border-bottom: 1px solid var(--rule-faint);
  border-right: 1px solid var(--rule-faint);
  position: relative;
}
.pipeline-list li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--f-serif);
  font-size: clamp(30px, 2.6vw, 40px);
  color: var(--clay);
  line-height: 1;
  margin-bottom: 12px;
}
.pipeline-list li:nth-child(3n) { border-right: 0; }
.pipeline-list li:nth-last-child(-n+3) { border-bottom: 0; }
.pl-label {
  font-family: var(--f-sans);
  font-size: var(--text-eyebrow);
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.pipeline-list p {
  font-size: var(--text-base);
  color: var(--ink);
  line-height: 1.5;
  max-width: 34ch;
}

/* ============================================================
   Insight — two-quote row
   ============================================================ */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(24px, 3vw, 40px);
}
.quote {
  background: var(--darkbrown);
  color: #f0e6cf;
  padding: clamp(24px, 2.6vw, 36px);
  margin: 0;
}
.quote blockquote {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: var(--text-lg);
  line-height: 1.4;
  color: #f5edd7;
}
.quote figcaption {
  margin-top: 12px;
  font-family: var(--f-sans);
  font-size: var(--text-sm);
  color: var(--gold);
}

/* ============================================================
   CTA
   ============================================================ */
.section-cta .display { max-width: 24ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--ink);
  padding: clamp(24px, 3vw, 40px) 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.big-amp {
  font-size: 32px;
  line-height: 1;
  font-style: italic;
}
.big-amp .amp { padding: 0 2px; }
.footer-word {
  font-size: var(--text-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.footer-meta {
  display: flex;
  gap: 24px;
  font-size: var(--text-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-mark { max-width: 300px; justify-self: start; }
  .moment-grid, .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .pipeline-list { grid-template-columns: 1fr 1fr; }
  .pipeline-list li { border-right: 1px solid var(--rule-faint) !important; border-bottom: 1px solid var(--rule-faint) !important; }
  .pipeline-list li:nth-child(2n) { border-right: 0 !important; }
  .pipeline-list li:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .moment-grid, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .pipeline-list { grid-template-columns: 1fr; }
  .pipeline-list li { border-right: 0 !important; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
