@font-face {
  font-family: "Blackout";
  src: url("assets/brand/Blackout-Midnight.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #1c1c1e;
  --black: #000;
  --cream: #fffaf3;
  --paper: #f7f3ec;
  --muted: #71717a;
  --line: #ded8ce;
  --yellow: #ffe816;
  --teal: #164e63;
  --cyan: #08a1b7;
  --orange: #f35a32;
  --green: #22c55e;
  --red: #ef4444;
  --ease: cubic-bezier(.2,.8,.3,1);
  --gutter: clamp(20px, 4vw, 72px);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; background: var(--cream); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Plus Jakarta Sans", "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.brain-phase { --header-color: #fff; }
body:not(.brain-phase) { --header-color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--yellow);
  color: #000;
  border-radius: 8px;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 20px; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 86px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 0 var(--gutter);
  color: var(--header-color);
  transition: color .3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(0,0,0,.2), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.brain-phase .site-header::before { opacity: 1; }
.brand {
  justify-self: start;
  width: 116px;
  height: 40px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
}
.brand img { width: 116px; height: 40px; object-fit: cover; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--yellow);
  transition: right .18s var(--ease);
}
.site-header nav a:hover::after,
.site-header nav a:focus-visible::after { right: 0; }
.header-cta {
  justify-self: end;
  background: var(--yellow);
  color: #000;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.header-cta:hover { background: #f4db00; transform: translateY(-2px); }
.header-cta:active { transform: translateY(0); }

.film-shell { position: relative; min-height: 100vh; background: var(--cream); }
.film-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
}
.world-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.world {
  width: 100%;
  height: 100%;
  min-width: 1150px;
  object-fit: cover;
  transform-origin: 50% 50%;
}
.film-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(58% 64% at 21% 52%, rgba(255,250,243,.94), rgba(255,250,243,.58) 52%, transparent 78%),
    linear-gradient(to right, rgba(255,250,243,.5), transparent 48%);
  transition: opacity .25s ease;
}
.brain-phase .film-shade {
  background:
    radial-gradient(58% 62% at 21% 52%, rgba(0,0,0,.84), rgba(0,0,0,.46) 54%, transparent 78%),
    linear-gradient(to right, rgba(0,0,0,.4), transparent 52%);
}
.film-copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.film-beat {
  position: absolute;
  left: var(--gutter);
  top: 27%;
  width: min(630px, 44vw);
  transform: translateY(30px);
  opacity: 0;
  visibility: hidden;
  color: var(--ink);
}
.brain-phase .beat-memory,
.brain-phase .beat-agents { color: #fff; }
.film-beat.is-visible { visibility: visible; }
.film-beat .eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brain-phase .film-beat .eyebrow { color: var(--yellow); }
.film-beat h1,
.film-beat h2 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(48px, 6.2vw, 104px);
  line-height: .93;
  letter-spacing: -.055em;
  font-weight: 800;
}
.film-beat h1 span,
.film-beat h2 span { color: var(--teal); }
.beat-hero { width: min(700px, 49vw); }
.beat-hero h1 { font-size: clamp(48px, 5vw, 82px); }
.brain-phase .film-beat h2 span { color: var(--yellow); }
.film-beat > p:last-child {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
  color: color-mix(in srgb, currentColor 76%, transparent);
}
.beat-result { left: auto; right: var(--gutter); width: min(620px, 43vw); }
.beat-result h2 { font-size: clamp(48px, 5.8vw, 92px); }
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 30px;
  padding: 16px 24px;
  border-radius: 10px;
  color: #000;
  background: var(--yellow);
  font-weight: 800;
  pointer-events: auto;
  box-shadow: 0 14px 38px rgba(255,232,22,.22);
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.primary-cta:hover {
  background: #f4db00;
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(255,232,22,.28);
}
.primary-cta:active { transform: translateY(0); }
.primary-cta.dark { background: #000; color: #fff; box-shadow: none; }
.primary-cta.dark:hover { background: #27272a; }

.chapter-meter {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  bottom: 34px;
  display: grid;
  grid-template-columns: 28px auto minmax(120px, 240px);
  align-items: center;
  gap: 12px;
  color: var(--header-color);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chapter-index { color: var(--orange); }
.brain-phase .chapter-index { color: var(--yellow); }
.chapter-track {
  height: 2px;
  background: color-mix(in srgb, currentColor 22%, transparent);
  overflow: hidden;
}
.chapter-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.section {
  min-height: min(92vh, 940px);
  display: grid;
  align-items: center;
  padding: clamp(90px, 12vw, 180px) var(--gutter);
  overflow: hidden;
}
.wrap { width: min(100%, var(--max)); margin: 0 auto; }
.section .wrap > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.section.in .wrap > * { opacity: 1; transform: none; }
.section.in .wrap > *:nth-child(2) { transition-delay: .09s; }
.section.in .wrap > *:nth-child(3) { transition-delay: .18s; }
.section h2 {
  margin: 0;
  max-width: 1150px;
  font-size: clamp(52px, 7.4vw, 126px);
  line-height: .9;
  letter-spacing: -.06em;
}
.problem-section { background: #000; color: #fff; }
.problem-section .section-kicker { color: var(--yellow); }
.problem-section h2 { max-width: 1200px; }
.loss-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(65px, 8vw, 120px);
  background: rgba(255,255,255,.14);
}
.loss-grid article {
  min-height: 300px;
  padding: 28px;
  background: #000;
}
.loss-grid strong { color: var(--orange); font-size: 13px; letter-spacing: .14em; }
.loss-grid h3 { margin: 62px 0 18px; font-size: clamp(24px, 2vw, 34px); line-height: 1; }
.loss-grid p { margin: 0; color: #aaa; font-size: 16px; line-height: 1.6; }

.system-section { background: #eef8f8; color: var(--teal); }
.system-section .section-kicker { color: var(--cyan); }
.section-heading {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 9vw;
  align-items: end;
}
.section-heading h2 { font-size: clamp(60px, 8vw, 132px); }
.section-heading > p {
  max-width: 540px;
  margin: 0 0 12px;
  color: #44666f;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.6;
}
.product-showcase {
  position: relative;
  min-height: 760px;
  margin-top: clamp(80px, 10vw, 150px);
}
.product-frame {
  position: absolute;
  margin: 0;
  width: min(72%, 940px);
  border: 1px solid rgba(22,78,99,.22);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(22,78,99,.12);
}
.workspace-frame { left: 0; top: 0; transform: rotate(-1.5deg); }
.reputation-frame { right: 0; bottom: 0; transform: rotate(1.5deg); }
.product-frame figcaption {
  display: grid;
  grid-template-columns: 34px auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #e8efef;
  color: var(--teal);
  font-size: 13px;
}
.product-frame figcaption span { color: var(--cyan); font-weight: 800; }
.product-frame figcaption strong { font-size: 14px; }
.product-frame figcaption em { justify-self: end; color: #71858a; font-style: normal; }

.agents-section { background: var(--cream); }
.agents-section h2 { max-width: 1050px; }
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(70px, 9vw, 130px);
}
.agent-grid article {
  min-height: 380px;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}
.agent-grid article:nth-child(even) { margin-top: 46px; }
.agent-dot { width: 15px; height: 15px; border-radius: 50%; }
.agent-dot.yellow { background: var(--yellow); }
.agent-dot.teal { background: var(--cyan); }
.agent-dot.green { background: var(--green); }
.agent-dot.orange { background: var(--orange); }
.agent-grid h3 { margin: 64px 0 16px; font-size: 30px; letter-spacing: -.04em; }
.agent-grid p { margin: 0; color: var(--muted); line-height: 1.7; }
.agent-grid b { margin-top: auto; padding-top: 28px; color: var(--teal); }

.promise-section { min-height: 100vh; background: var(--yellow); color: #000; }
.promise-section blockquote {
  margin: 0;
  max-width: 1250px;
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .88;
}
.promise-section blockquote span {
  font-family: Blackout, sans-serif;
  font-weight: 400;
  letter-spacing: -.025em;
}
.promise-copy {
  max-width: 620px;
  margin: 70px 0 0 auto;
  font-size: clamp(18px, 1.5vw, 24px);
}

.final-section { background: var(--orange); color: #000; }
.final-section .wrap {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 8vw;
  align-items: end;
}
.final-section .section-kicker { color: #000; }
.final-section h2 { font-size: clamp(56px, 7.4vw, 118px); }
.final-action p { margin: 0 0 30px; font-size: clamp(18px, 1.4vw, 22px); }

footer {
  min-height: 240px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 56px var(--gutter);
  background: #000;
  color: #fff;
}
footer img { width: 116px; height: 40px; object-fit: cover; }
footer p { margin: 0; color: #8f8f94; }
footer p:last-child { justify-self: end; }

:focus-visible { outline: 3px solid rgba(37,99,235,.5); outline-offset: 4px; }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .world { min-width: 1060px; transform: translateX(9%); }
  .film-beat { width: min(580px, 56vw); }
  .loss-grid, .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-grid article:nth-child(even) { margin-top: 0; }
  .section-heading, .final-section .wrap { grid-template-columns: 1fr; gap: 48px; }
  .product-showcase { min-height: 650px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .site-header { height: 70px; gap: 16px; }
  .brand, .brand img { width: 94px; height: 32px; }
  .header-cta { padding: 10px 12px; font-size: 11px; }
  .film-stage { min-height: 640px; }
  .world-wrap { align-items: end; }
  .world {
    width: 1120px;
    height: 630px;
    min-width: 1120px;
    transform: translate(-20%, 4%);
  }
  .film-shade {
    background:
      linear-gradient(to bottom, rgba(255,250,243,.96) 0%, rgba(255,250,243,.7) 33%, transparent 58%),
      linear-gradient(to top, rgba(255,250,243,.78), transparent 40%);
  }
  .brain-phase .film-shade {
    background:
      linear-gradient(to bottom, rgba(0,0,0,.91) 0%, rgba(0,0,0,.66) 35%, transparent 60%),
      linear-gradient(to top, rgba(0,0,0,.55), transparent 42%);
  }
  .film-beat, .beat-result {
    top: 105px;
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    transform: translateY(18px);
  }
  .film-beat h1, .film-beat h2, .beat-result h2 {
    font-size: clamp(38px, 11vw, 58px);
    max-width: 520px;
  }
  .film-beat > p:last-child { margin-top: 18px; font-size: 15px; max-width: 500px; }
  .film-beat .eyebrow { margin-bottom: 12px; }
  .primary-cta { min-height: 52px; margin-top: 18px; padding: 13px 17px; font-size: 14px; }
  .chapter-meter {
    bottom: 18px;
    grid-template-columns: 24px auto 1fr;
    width: calc(100% - 40px);
  }
  .section { min-height: auto; padding-top: 110px; padding-bottom: 110px; }
  .section h2 { font-size: clamp(48px, 15vw, 72px); }
  .loss-grid, .agent-grid { grid-template-columns: 1fr; }
  .loss-grid article, .agent-grid article { min-height: 260px; }
  .loss-grid h3, .agent-grid h3 { margin-top: 42px; }
  .section-heading h2 { font-size: clamp(54px, 16vw, 80px); }
  .product-showcase {
    min-height: auto;
    display: grid;
    gap: 24px;
  }
  .product-frame {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }
  .product-frame figcaption { grid-template-columns: 28px 1fr; }
  .product-frame figcaption em { display: none; }
  .promise-section blockquote { font-size: clamp(58px, 17vw, 88px); }
  .final-section h2 { font-size: clamp(52px, 15vw, 78px); }
  footer { grid-template-columns: 1fr; gap: 22px; }
  footer p:last-child { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .section .wrap > * { opacity: 1; transform: none; }
}
