/* =============================================================
   Pooldeck — styles
   AI Operations Studio. Solid ultramarine + cream only.
   No mustard accent. Hand-drawn marks via SVG chalk filter.
   ============================================================= */

/* -------- TOKENS -------- */
:root {
  --cobalt:        #033399;
  --cobalt-deep:   #022680;
  --cobalt-soft:   #1A4DAD;
  --cobalt-lift:   #2658BA;
  --cream:         #F5F1E8;
  --cream-2:       #EDE7D8;
  --sky:           #A8C5E8;
  --sky-soft:      #C6DAEE;
  --rule:          rgba(245, 241, 232, 0.18);
  --rule-strong:   rgba(245, 241, 232, 0.34);

  --display: 'Fraunces', 'Newsreader', 'Tiempos Headline', Georgia, serif;
  --body: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px;
  --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px; --s10: 192px;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur: 700ms;
}

/* -------- RESET / BASE -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--cream);
  background: var(--cobalt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--cream); color: var(--cobalt-deep); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
  border-radius: 2px;
}
.btn:focus-visible { outline-offset: 4px; }

main, .nav, .footer { position: relative; z-index: 2; }

/* -------- TYPOGRAPHY -------- */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0;
  color: var(--cream);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
}
em {
  font-style: italic;
  font-family: var(--display);
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 0;
}
strong { font-weight: 500; }
p { margin: 0 0 1em; }

.section-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 var(--s4);
  display: block;
  font-weight: 400;
}

/* -------- NAV -------- */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) var(--gutter);
  background: transparent;
}
.nav__mark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.nav__logo {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--cream);
  font-variation-settings: 'opsz' 96, 'SOFT' 30;
}
.nav__logo-mark {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--cream);
  margin-bottom: 4px;
  opacity: 0.7;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.nav__links a {
  font-family: var(--body);
  font-size: 15px;
  color: var(--cream);
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: opacity 200ms var(--ease);
}
.nav__links a:not(.nav__cta):hover { opacity: 0.7; }
.nav__cta {
  border: 1px solid var(--cream);
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.nav__cta:hover { background: var(--cream); color: var(--cobalt) !important; }
@media (max-width: 720px) {
  .nav__logo-mark { display: none; }
  .nav__links { gap: var(--s3); }
  .nav__links a:not(.nav__cta):not(.nav__manifesto) { display: none; }
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.012em;
  border-radius: 999px;
  transition: transform 150ms var(--ease), background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--cream);
  user-select: none;
}
.btn--primary { background: var(--cream); color: var(--cobalt); }
.btn--primary:hover {
  background: var(--sky-soft);
  border-color: var(--sky-soft);
  color: var(--cobalt-deep);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--cobalt); transform: translateY(-1px); }
.btn--ghost:active { transform: translateY(0); }
.btn--large { padding: 16px 32px; font-size: 16px; }
.arrow { display: inline-block; transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  padding: var(--s8) var(--gutter) var(--s7);
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hero__h1 {
  font-size: clamp(52px, 7.2vw, 116px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1;
  max-width: 16ch;
  margin: var(--s5) auto var(--s5);
  position: relative;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
}
.hero__h1 em {
  position: relative;
  font-style: italic;
  display: inline-block;
}
/* Hand-drawn circle around the emphasized word — inline SVG with stroke-dashoffset
   draw-in matching the arrow animation system. Open-ended path (no Z) so the
   draw reads as a real handwritten loop with overshoot. */
/* Span wrapper handles all positioning + sizing (HTML element percentages
   work reliably). SVG inside fills the span completely. */
.hero__h1-circle-frame {
  position: absolute;
  top: 0em;
  left: -0.3em;
  width: calc(100% + 0.6em);
  height: 1.2em;
  pointer-events: none;
  z-index: -1;
  display: block;
}
.hero__h1-circle {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero__h1-circle path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition:
    stroke-dashoffset 900ms cubic-bezier(0.65, 0, 0.35, 1) 200ms,
    opacity 200ms ease-out 320ms;
}
.hero__h1.is-visible .hero__h1-circle path {
  stroke-dashoffset: 0;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hero__h1-circle path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transition: none;
  }
}

.hero__sub {
  font-family: var(--display);
  font-size: clamp(17px, 1.6vw, 23px);
  font-style: italic;
  line-height: 1.45;
  max-width: 42ch;
  color: var(--sky-soft);
  margin: 0 auto var(--s8);
  font-weight: 300;
  font-variation-settings: 'opsz' 72, 'SOFT' 50;
}
/* ----- BOUTIQUE LINE HIGHLIGHT — shared across hero/statement/approach/scenarios ----- */
.hero__sub u,
.statement__h u,
.engagements__deck u,
.scenarios__h u {
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.hero__sub u::after,
.statement__h u::after,
.engagements__deck u::after,
.scenarios__h u::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -8px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'><path d='M 4 9 Q 50 3 100 7 T 196 5 T 236 6' stroke='%23F5F1E8' stroke-width='2.4' fill='none' stroke-linecap='round'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  /* Boutique draw-in: clip slides open left-to-right after parent reveals */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1100ms cubic-bezier(0.2, 0.6, 0.2, 1) 600ms;
}
/* Trigger drawing when parent (data-reveal) is visible */
.hero__sub.is-visible u::after,
.statement.is-visible .statement__h u::after,
.engagements__head.is-visible .engagements__deck u::after,
.scenarios__head.is-visible .scenarios__h u::after {
  clip-path: inset(0 0 0 0);
}
/* Engagements deck text is sky-soft; line stroke matches that color (was cream) */
.engagements__deck u::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'><path d='M 4 9 Q 50 3 100 7 T 196 5 T 236 6' stroke='%23C6DAEE' stroke-width='2.4' fill='none' stroke-linecap='round'/></svg>");
}
/* Hero sub also sky-soft text — line matches */
.hero__sub u::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'><path d='M 4 9 Q 50 3 100 7 T 196 5 T 236 6' stroke='%23C6DAEE' stroke-width='2.4' fill='none' stroke-linecap='round'/></svg>");
}
@media (prefers-reduced-motion: reduce) {
  .hero__sub u::after,
  .statement__h u::after,
  .engagements__deck u::after,
  .scenarios__h u::after {
    clip-path: inset(0 0 0 0) !important;
    transition: none !important;
  }
}

.hero__cta-row {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__swoosh {
  position: relative;
  margin: var(--s8) auto calc(-1 * var(--s7));
  width: 100%;
  max-width: 600px;
  height: 420px;
  pointer-events: none;
  z-index: 1;
}
.hero__swoosh svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* =============================================================
   STATEMENT
   ============================================================= */
.statement {
  padding: var(--s8) var(--gutter);
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.statement__h {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.018em;
}
.statement__h u {
  text-decoration: none;
  position: relative;
}
.statement__h u::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -8px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'><path d='M 4 10 Q 60 2 120 8 T 236 5' stroke='%23F5F1E8' stroke-width='2.4' fill='none' stroke-linecap='round'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* =============================================================
   THESIS — refined spacing, more breathing room
   ============================================================= */
.thesis {
  padding: var(--s10) var(--gutter) var(--s9);
  max-width: var(--max);
  margin: 0 auto;
}
.thesis__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s7);
  align-items: center;
}
.thesis__col h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 var(--s5);
  max-width: 18ch;
}
.thesis__col p:not(.section-num) {
  font-size: 17px;
  line-height: 1.7;
  max-width: 56ch;
  margin-bottom: 1.3em;
}
.thesis__art {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
}
.thesis__art svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 900px) {
  .thesis__grid { grid-template-columns: 1fr; gap: var(--s7); }
  .thesis__art { margin: 0 auto; max-width: 320px; }
}

/* =============================================================
   ENGAGEMENTS — linear 3-step path
   ============================================================= */
.engagements {
  padding: var(--s9) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.engagements__head {
  text-align: center;
  margin-bottom: var(--s8);
}
.engagements__h {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin-bottom: var(--s5);
}
.engagements__deck {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  max-width: 56ch;
  margin: 0 auto;
  color: var(--sky-soft);
  font-weight: 300;
  font-variation-settings: 'opsz' 72, 'SOFT' 50;
}

.engagements__list {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0 var(--s6);
  max-width: 920px;
  margin: var(--s7) auto 0;
}
@media (max-width: 720px) {
  .engagements__list { grid-template-columns: 1fr; }
}

.engagement { display: contents; }
.engagement__index {
  grid-column: 1;
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.012em;
  color: var(--sky);
  font-weight: 400;
  padding: var(--s4) 0 var(--s5);
  border-top: 1px solid var(--rule);
  transition:
    color 520ms cubic-bezier(0.16, 1, 0.3, 1),
    border-top-color 520ms cubic-bezier(0.16, 1, 0.3, 1);
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
}
.engagement__body {
  grid-column: 2;
  border-top: 1px solid var(--rule);
  padding: var(--s4) 0 var(--s5);
  transition: border-top-color 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.engagement:hover .engagement__index,
.engagement:hover .engagement__body { border-top-color: var(--cream); }
.engagement:hover .engagement__index { color: var(--cream); }
.engagement__h {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 var(--s3);
}
.engagement__lede {
  font-size: 16px;
  line-height: 1.65;
  max-width: 60ch;
  color: rgba(245, 241, 232, 0.85);
  margin: 0 0 var(--s4);
}
.engagement__meta {
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: -0.008em;
  color: var(--sky);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-weight: 400;
}
.engagement__meta .price { color: var(--cream); font-weight: 500; }
.engagement__meta .sep { opacity: 0.5; }
/* Editorial entry — the X-ray on-ramp */
.engagements__entry {
  max-width: 760px;
  margin: var(--s8) auto 0;
  padding: var(--s7) 0 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.engagements__entry-lede {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  color: var(--cream);
  margin: 0 0 var(--s6);
  font-weight: 400;
  font-variation-settings: 'opsz' 96, 'SOFT' 50;
}
.engagements__entry-lede em { font-style: italic; }
.engagements__entry-spec {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  line-height: 1.7;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
}
.engagements__entry-spec .dot { opacity: 0.4; }
.engagements__entry-spec .entry-amt {
  color: var(--cream);
  font-weight: 500;
}

/* =============================================================
   SCENARIOS
   ============================================================= */
.scenarios {
  padding: var(--s9) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.scenarios__head {
  text-align: center;
  margin-bottom: var(--s7);
}
.scenarios__h {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin-bottom: var(--s4);
}
.scenarios__sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--sky-soft);
  margin: 0;
  font-weight: 300;
  font-variation-settings: 'opsz' 72, 'SOFT' 50;
}
/* Mirrors .engagements__list — single grid, display:contents per row, line-on-top with hover shift */
.scenarios__list {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0 var(--s6);
  max-width: 920px;
  margin: 0 auto;
}
.scenario { display: contents; }
.scenario__meta {
  grid-column: 1;
  padding: var(--s4) 0 var(--s5);
  border-top: 1px solid var(--rule);
  transition: border-top-color 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.scenario__body {
  grid-column: 2;
  padding: var(--s4) 0 var(--s5);
  border-top: 1px solid var(--rule);
  transition: border-top-color 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.scenario:hover .scenario__meta,
.scenario:hover .scenario__body { border-top-color: var(--cream); }
/* Body content right-aligned within column, text left-aligned */
.scenario__body > * {
  max-width: 56ch;
  margin-left: auto;
  text-align: left;
}
@media (max-width: 720px) {
  .scenarios__list { grid-template-columns: 1fr; }
  .scenario__meta { padding-bottom: var(--s2); }
  .scenario__body { padding-top: var(--s2); border-top: 0; }
  .scenario__body > * { margin-left: 0; }
}
.scenario__industry {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--cream);
  margin: 0 0 var(--s2);
  font-weight: 500;
}
.scenario__size {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--sky);
  margin: 0 0 var(--s5);
  font-weight: 300;
}
.scenario__stack {
  margin: 0;
  padding: var(--s4) 0 0;
  border-top: 1px dashed var(--rule);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px var(--s4);
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.5;
}
.scenario__stack dt {
  color: var(--sky);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  font-style: italic;
  font-family: var(--display);
  font-size: 14px;
}
.scenario__stack dd { margin: 0; color: var(--cream); letter-spacing: 0; font-weight: 400; }
.scenario__h {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 var(--s3);
  font-variation-settings: 'opsz' 96, 'SOFT' 30;
}
.scenario__body p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.85);
  max-width: 56ch;
  margin: 0;
}

/* =============================================================
   ABOUT
   ============================================================= */
.about {
  padding: var(--s9) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.about__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s7);
  align-items: start;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: var(--s5); }
}
.about__col h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 var(--s4);
}
.about__col p:not(.section-num):not(.about__signoff) {
  font-size: 18px;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 1.2em;
}
.about__col p.lede { font-size: 18px; line-height: 1.6; }
.about__mark {
  position: relative;
  aspect-ratio: 5 / 7;
  max-width: 560px;
  width: 100%;
  margin-left: auto;
  margin-right: -24px;
  margin-bottom: -32px;
  margin-top: -32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
@media (max-width: 900px) {
  .about__mark {
    margin: 0 auto;
    max-width: 420px;
    width: 100%;
  }
}
.about__signoff {
  font-family: var(--display);
  font-style: normal;
  font-size: 15px;
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  color: var(--sky-soft);
}

/* =============================================================
   POV / FAQ
   ============================================================= */
.pov {
  padding: var(--s9) var(--gutter);
  max-width: 920px;
  margin: 0 auto;
}
.pov__head { text-align: center; margin-bottom: var(--s7); }
.pov__h { font-size: clamp(36px, 4.4vw, 56px); font-weight: 400; }
.pov__list {}
/* FAQ — button + grid-template-rows toggle. Replaces native <details>
   which fights smooth transitions. Open/close is symmetric and clean. */
.pov__item {
  border-top: 1px solid var(--rule-strong);
}
.pov__item:last-child { border-bottom: 1px solid var(--rule-strong); }

.pov__toggle {
  width: 100%;
  background: transparent;
  border: 0;
  padding: var(--s4) 0;
  font: inherit;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  cursor: pointer;
  text-align: left;
}
.pov__toggle:focus { outline: none; }
.pov__toggle:focus-visible .pov__q { color: var(--cream); }

.pov__q {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.018em;
  flex: 1;
  transition: color 200ms var(--ease);
}
.pov__item:hover .pov__q { color: var(--sky-soft); }

.pov__plus {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 300;
  transition: transform 320ms var(--ease), color 200ms var(--ease);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  color: var(--sky);
}
.pov__item:hover .pov__plus { color: var(--sky-soft); }
.pov__item.is-open .pov__plus { transform: rotate(45deg); color: var(--cream); }

/* Panel — JS sets explicit height on toggle. CSS just provides
   the transition + collapsed state. Bulletproof cross-browser. */
.pov__panel {
  height: 0;
  overflow: hidden;
  transition: height 420ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.pov__a {
  max-width: 70ch;
  padding: 0 0 var(--s4);
}
.pov__a p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.85);
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .pov__panel { transition: none; }
  .pov__plus { transition: none; }
}

/* =============================================================
   CTA
   ============================================================= */
.cta {
  padding: var(--s9) var(--gutter);
  text-align: center;
  position: relative;
}
.cta__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.cta__h {
  font-size: clamp(48px, 6.4vw, 100px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.024em;
  margin: var(--s4) 0 var(--s5);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}
.cta__h em { font-style: italic; }
.cta__sub {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  margin: 0 auto var(--s7);
  max-width: 56ch;
  color: var(--sky-soft);
  font-weight: 300;
  font-variation-settings: 'opsz' 72, 'SOFT' 50;
}
.cta__row {
  display: flex;
  gap: var(--s3);
  justify-content: center;
  flex-wrap: wrap;
}
.cta__flourish {
  margin: 0 auto;
  width: 280px;
  height: 180px;
  pointer-events: none;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  padding: var(--s7) var(--gutter) var(--s5);
  border-top: 1px solid var(--rule);
  margin-top: var(--s5);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s5);
  align-items: end;
}
.footer__wordmark {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 var(--s2);
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 96, 'SOFT' 30;
}
.footer__location {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0;
}
.footer__links {
  display: flex;
  gap: var(--s3);
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.footer__links a {
  font-family: var(--body);
  font-size: 13px;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.footer__links a:hover { border-bottom-color: var(--cream); color: var(--cream); opacity: 0.8; }
.footer__copy {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.5);
  margin: var(--s5) 0 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

/* =============================================================
   PAGE TRANSITIONS — JS-only, predictable timing
   Body fades + drifts on enter, fades + drifts on click.
   No View Transitions API (browser inconsistency was causing jank).
   ============================================================= */
body {
  animation: pdEnter 580ms cubic-bezier(0.2, 0.6, 0.2, 1) both;
}
@keyframes pdEnter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
html.is-leaving body {
  animation: pdLeave 280ms cubic-bezier(0.4, 0, 1, 1) both;
}
@keyframes pdLeave {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  body, html.is-leaving body { animation: none !important; }
}

/* =============================================================
   REVEAL ANIMATION
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__h1 em::before { animation: none !important; background: none !important; }
  .pov__panel { transition: none !important; }
}

/* =============================================================
   ARROWS + LINE-ART
   Static SVGs with chalk filter applied at the <g> level (in HTML).
   Subtle fade-in on viewport entry; no scroll-coupled animation.
   ============================================================= */
.hero__swoosh,
.cta__flourish,
.thesis__art,
.bridge {
  opacity: 0;
  transition: opacity 800ms var(--ease) 200ms;
}
.hero__swoosh.is-visible,
.cta__flourish.is-visible,
.thesis__art.is-visible,
.bridge.is-visible {
  opacity: 1;
}

/* ----- ANIMATED ARROW DRAW-IN -----
   Lines draw via stroke-dashoffset. Filled triangle heads fade in via opacity
   (filled shapes don't dash). pathLength="1" normalizes any line path. */
.hero__swoosh .arrow-line,
.cta__flourish .arrow-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 700ms cubic-bezier(0.65, 0, 0.35, 1) 0ms;
}
.hero__swoosh .arrow-head,
.cta__flourish .arrow-head {
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1) 600ms;
}
.hero__swoosh.is-visible .arrow-line,
.cta__flourish.is-visible .arrow-line {
  stroke-dashoffset: 0;
}
.hero__swoosh.is-visible .arrow-head,
.cta__flourish.is-visible .arrow-head {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero__swoosh, .cta__flourish, .thesis__art, .bridge { opacity: 1; transition: none; }
  .hero__swoosh .arrow-line, .cta__flourish .arrow-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transition: none;
  }
  .hero__swoosh .arrow-head, .cta__flourish .arrow-head {
    opacity: 1;
    transition: none;
  }
}

/* ----- BRIDGE ARROWS (experimental threaded version) -----
   Bridges sit between sections and alternate sides to create a zig-zag
   thread through the page. Same chalk-bold filter as hero/CTA arrows. */
.bridge {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s5) var(--gutter);
  pointer-events: none;
  display: flex;
}
.bridge--right { justify-content: flex-end; }
.bridge--left  { justify-content: flex-start; }
.bridge--center { justify-content: center; }
.bridge svg {
  width: clamp(220px, 30vw, 380px);
  height: auto;
  overflow: visible;
}
