@font-face {
  font-family: "Archivo Chalky";
  src: url("/images/chalky-case-study/archivo-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --mint: #38d1ad;
  --mint-soft: #9aead7;
  --ink: #0f1110;
  --rubber: #121412;
  --plate: #202321;
  --plate-2: #292d2a;
  --chalk: #f1f4f1;
  --steel: #a8afaa;
  --steel-dim: #767d78;
  --line: rgba(214, 232, 222, 0.14);
  --line-strong: rgba(214, 232, 222, 0.22);
  --page: 1240px;
  --copy: 680px;
  --radius: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(70rem 48rem at 76% -8%, rgba(56, 209, 173, 0.1), transparent 58%),
    var(--ink);
  color: var(--chalk);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 750;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.case-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0.55rem max(1rem, env(safe-area-inset-right)) 0.55rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: rgba(15, 17, 16, 0.86);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  transition: background-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.case-nav.is-scrolled { background: rgba(15, 17, 16, 0.96); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18); }

.reading-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--mint);
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left center;
  transition: transform 90ms linear;
}

.case-nav a {
  width: fit-content;
  color: var(--steel);
  font-size: 0.83rem;
  font-weight: 680;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms var(--ease);
}

.nav-mark { display: flex; align-items: center; gap: 0.65rem; color: var(--chalk) !important; }
.nav-mark img { border-radius: 8px; transition: transform 220ms var(--ease); }
.case-nav.is-scrolled .nav-mark img { transform: scale(0.9); }
.nav-live { justify-self: end; }

.hero,
.section,
.loop-section,
.interface-intro,
.product-chapter,
.system-section,
.launch-section,
.closing,
.case-footer {
  width: min(calc(100% - 3rem), var(--page));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25rem;
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  min-height: calc(100svh - 64px);
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.chapter-index {
  margin: 0 0 1.2rem;
  color: var(--mint);
  font-family: "Archivo Chalky", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--chalk);
  font-family: "Archivo Chalky", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.1rem, 6vw, 6.25rem);
  line-height: 0.94;
}

h2 {
  max-width: 15ch;
  font-size: clamp(2.35rem, 4.8vw, 4.9rem);
  line-height: 0.98;
}

h3 {
  margin: 0;
  color: var(--chalk);
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p { color: var(--steel); }

.hero-dek {
  max-width: 35rem;
  margin: 1.7rem 0 0;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-top: 2rem;
}

.hero-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 42rem;
  margin: 2.4rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
}
.hero-ledger div { padding-right: 1rem; }
.hero-ledger div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.hero-ledger dt { color: var(--steel-dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.61rem; letter-spacing: 0.09em; text-transform: uppercase; }
.hero-ledger dd { margin: 0.35rem 0 0; color: var(--steel); font-size: 0.75rem; line-height: 1.4; }

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0.45rem 0.45rem 0.45rem 1.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid transparent;
  border-radius: 16px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms var(--ease), background-color 180ms ease;
}

.button-primary { background: var(--mint); color: #0a1712; }
.button:active { transform: scale(0.97); transition-duration: 120ms; }
.button-icon { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 12px; background: rgba(11, 21, 17, 0.1); font-style: normal; transition: transform 180ms var(--ease), background-color 180ms ease; }
.button:focus-visible .button-icon { transform: translate(2px, -2px); background: rgba(11, 21, 17, 0.16); }

.text-link {
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 680;
  text-decoration: none;
  background-image: linear-gradient(var(--mint), var(--mint));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color 180ms ease, background-size 240ms var(--ease);
}

.hero-screen {
  position: relative;
  width: min(100%, 27rem);
  margin: 0;
}

.hero-screen img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 2.75rem 3.5rem rgba(0, 0, 0, 0.42));
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 1500px);
  margin-inline: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof div { padding: 1.5rem clamp(1rem, 3vw, 2.5rem); }
.proof div + div { border-left: 1px solid var(--line); }
.proof strong, .proof span { display: block; }
.proof strong { font-family: "Archivo Chalky", sans-serif; font-size: 1.05rem; }
.proof span { margin-top: 0.15rem; color: var(--steel-dim); font-size: 0.78rem; }

.origin-story {
  display: grid;
  grid-template-columns: minmax(19rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(4rem, 9vw, 8rem);
  align-items: start;
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(6rem, 11vw, 9rem);
}
.origin-copy { position: sticky; top: 7rem; }
.origin-copy h2 { max-width: 11ch; }
.origin-copy p:not(.eyebrow) { max-width: 48ch; margin: 1.5rem 0 0; color: var(--steel); }
.origin-path { border-top: 1px solid var(--line); }
.origin-path article {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.2rem;
  padding: 1.8rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.origin-path article > span { padding-top: 0.15rem; color: var(--steel-dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; }
.origin-path small { display: block; margin-bottom: 0.55rem; color: var(--mint); font-family: "Archivo Chalky", sans-serif; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; }
.origin-path h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.origin-path p { max-width: 50ch; margin: 0.55rem 0 0; color: var(--steel); font-size: 0.86rem; }

.section { padding: clamp(6.5rem, 12vw, 11rem) 0; }
.section-heading { max-width: var(--copy); }
.section-heading > p:not(.eyebrow) { max-width: 56ch; margin: 1.5rem 0 0; font-size: 1.04rem; }

.problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.7fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.lede {
  margin: 0;
  color: var(--chalk);
  font-family: "Archivo Chalky", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.body-copy { padding-top: 0.4rem; border-top: 1px solid var(--line); }
.body-copy p { margin: 1.2rem 0 0; }

.jobs { padding-top: 2rem; }
.job-list { margin-top: 3.25rem; border-top: 1px solid var(--line); }
.job-list article {
  display: grid;
  grid-template-columns: minmax(9rem, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
}
.job-list span { color: var(--mint); font-family: "Archivo Chalky", sans-serif; }
.job-list p { max-width: 56ch; margin: 0; color: var(--chalk); font-size: 1.04rem; }

.comparison {
  margin-top: 3.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--rubber);
}

table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
th, td { padding: 1.3rem 1.45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--steel-dim); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
tbody th { color: var(--chalk); }
tbody td { color: var(--steel); font-size: 0.9rem; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.chalky-row { background: rgba(56, 209, 173, 0.08); }
.chalky-row th { color: var(--mint); }

.loop-section {
  display: grid;
  grid-template-columns: minmax(20rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 84% 18%, rgba(56, 209, 173, 0.12), transparent 36%),
    linear-gradient(145deg, #242825, #1c201d);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.16);
}

.loop-heading h2 { max-width: 11ch; font-size: clamp(2.2rem, 3.6vw, 3.5rem); }
.loop-visual { position: relative; min-width: 0; padding: 1.5rem 0 4.25rem; }
.loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.loop::before {
  position: absolute;
  top: 1.25rem;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: rgba(214, 232, 222, 0.18);
  content: "";
}
.loop li { position: relative; min-width: 0; padding: 0 0.55rem; text-align: center; opacity: 0.58; transition: opacity 220ms ease, transform 260ms var(--ease); }
.loop li:not(:last-child)::after {
  position: absolute;
  top: 1.1rem;
  left: calc(50% + 1.4rem);
  width: calc(100% - 2.8rem);
  height: 0.3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 209, 173, 0.7), rgba(56, 209, 173, 0.08));
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 180ms ease, transform 520ms var(--ease);
}
.loop b,
.loop span,
.loop small { display: block; }
.loop b {
  position: relative;
  z-index: 2;
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  margin: 0 auto 1rem;
  place-items: center;
  border: 1px solid rgba(214, 232, 222, 0.2);
  border-radius: 50%;
  background: #171a18;
  color: var(--steel-dim);
  box-shadow: 0 0 0 0.45rem #202421;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 260ms var(--ease), transform 260ms var(--ease);
}
.loop span { color: var(--chalk); font-family: "Archivo Chalky", sans-serif; font-size: 1rem; letter-spacing: -0.025em; }
.loop small { margin-top: 0.2rem; color: var(--steel-dim); font-size: 0.7rem; white-space: nowrap; }
.loop li.is-complete { opacity: 0.78; }
.loop li.is-complete b { border-color: rgba(56, 209, 173, 0.45); color: var(--mint-soft); }
.loop li.is-complete::after { opacity: 1; transform: scaleX(1); }
.loop li.is-active { opacity: 1; transform: translateY(-0.22rem); }
.loop li.is-active b { border-color: var(--mint); background: var(--mint); color: #0b1511; box-shadow: 0 0 0 0.45rem rgba(56, 209, 173, 0.09), 0 0 1.5rem rgba(56, 209, 173, 0.3); transform: scale(1.05); }
.loop-return {
  position: absolute;
  right: 12.5%;
  bottom: 0.8rem;
  left: 12.5%;
  height: 2.15rem;
  border-right: 1px solid rgba(56, 209, 173, 0.24);
  border-bottom: 1px solid rgba(56, 209, 173, 0.24);
  border-left: 1px solid rgba(56, 209, 173, 0.24);
  border-radius: 0 0 1.25rem 1.25rem;
}
.loop-return::before,
.loop-return::after { position: absolute; top: -0.23rem; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--mint); content: ""; }
.loop-return::before { left: -0.24rem; }
.loop-return::after { right: -0.24rem; }
.loop-return span { position: absolute; top: 100%; left: 50%; padding: 0 0.7rem; background: #1e221f; color: var(--steel-dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.55rem; letter-spacing: 0.06em; text-transform: uppercase; transform: translate(-50%, -45%); white-space: nowrap; }

.interface-section {
  margin-top: clamp(8rem, 14vw, 13rem);
  padding: clamp(7rem, 12vw, 11rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0b0d0c;
}

.interface-intro > p:last-child { color: var(--steel-dim); }

.product-chapter {
  display: grid;
  grid-template-columns: minmax(17rem, 0.68fr) minmax(32rem, 1.32fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
  padding: clamp(6rem, 11vw, 10rem) 0;
}

.product-chapter + .product-chapter { border-top: 1px solid var(--line); }
.product-chapter:nth-of-type(odd) { grid-template-columns: minmax(32rem, 1.32fr) minmax(17rem, 0.68fr); }
.product-chapter:nth-of-type(odd) .chapter-copy { order: 2; }
.product-chapter:nth-of-type(odd) .ui-stage { order: 1; }

.chapter-copy { align-self: center; }
.chapter-copy h3 {
  max-width: 13ch;
  font-family: "Archivo Chalky", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.chapter-copy > p:not(.chapter-index) { max-width: 45ch; margin: 1.25rem 0 0; }
.chapter-copy ul { margin: 1.8rem 0 0; padding: 0; list-style: none; }
.chapter-copy li { position: relative; padding: 0.72rem 0 0.72rem 1.35rem; border-top: 1px solid var(--line); color: var(--steel); font-size: 0.88rem; }
.chapter-copy li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.chapter-copy li b { display: block; margin-bottom: 0.18rem; color: var(--chalk); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

.ui-stage {
  position: relative;
  display: flex;
  min-height: 41rem;
  padding: 1.5rem 0;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.6rem);
  overflow: visible;
}

.screen {
  --screen-y: 0rem;
  position: relative;
  z-index: 1;
  margin: 0;
  transform: translateY(var(--screen-y));
  transition: transform 260ms var(--ease), filter 220ms ease, opacity 220ms ease;
}
.screen img {
  display: block;
  width: 100%;
  filter: drop-shadow(0 2rem 2.5rem rgba(0, 0, 0, 0.42));
}
.screen-primary { width: min(57%, 23rem); }
.screen-secondary { --screen-y: 3.5rem; width: min(44%, 18rem); }
.ui-stage.is-visible .screen-primary img { animation: screen-arrive 900ms var(--ease) both; }
.ui-stage.is-visible .screen-secondary img { animation: screen-arrive 1050ms 90ms var(--ease) both; }

.decisions { padding-bottom: 4rem; }
.decision-grid { margin-top: 4rem; border-bottom: 1px solid var(--line); }
.decision-grid article {
  display: grid;
  grid-template-columns: 2.5rem minmax(14rem, 0.9fr) minmax(18rem, 1.15fr) minmax(14rem, 0.85fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: start;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  transition: border-color 220ms ease, transform 420ms var(--ease);
}
.decision-grid span { padding-top: 0.18rem; color: var(--steel-dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; }
.decision-grid small { display: block; margin-bottom: 0.65rem; color: var(--mint); font-family: "Archivo Chalky", sans-serif; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; }
.decision-grid h3 { max-width: 22ch; font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
.decision-grid p { margin: 0; font-size: 0.92rem; }
.decision-grid .decision-cost { color: var(--steel-dim); }

.system-section {
  margin-top: 7rem;
  padding: clamp(4rem, 8vw, 7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--plate);
}
.system-intro { max-width: var(--copy); }
.system-intro > p:last-child { max-width: 56ch; }

.brain-map {
  margin-top: 4rem;
  overflow: hidden;
  border: 1px solid rgba(214, 232, 222, 0.17);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 46%, rgba(56, 209, 173, 0.09), transparent 31%),
    linear-gradient(180deg, rgba(12, 15, 13, 0.98), rgba(16, 19, 17, 0.98));
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
}

.brain-map-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.brain-map-head h3 { margin-top: 0.35rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.brain-map-head p { max-width: 34ch; margin: 0; color: var(--steel-dim); font-size: 0.72rem; text-align: right; }
.brain-live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--mint-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brain-live i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0.28rem rgba(56, 209, 173, 0.11); }

.brain-stage { position: relative; height: clamp(35rem, 50vw, 40rem); isolation: isolate; }
.brain-stage::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(214, 232, 222, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 232, 222, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 88%, transparent);
}
.brain-stage::after {
  position: absolute;
  inset: 25% 31%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(56, 209, 173, 0.08);
  filter: blur(54px);
  content: "";
}
.brain-links { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; }
.brain-link,
.brain-return { fill: none; vector-effect: non-scaling-stroke; }
.brain-link { stroke: url(#brainFlowIn); stroke-width: 1.25; transition: opacity 180ms ease, stroke-width 180ms ease; }
.brain-link-out { stroke: url(#brainFlowOut); }
.brain-return { stroke: rgba(154, 234, 215, 0.19); stroke-width: 1; stroke-dasharray: 4 7; }
.brain-map.has-selection .brain-link,
.brain-map.has-selection .brain-return { opacity: 0.17; }
.brain-map.has-selection .brain-link.is-related,
.brain-map.has-selection .brain-return.is-related { opacity: 1; stroke-width: 2; }
.brain-pulse { fill: var(--mint); filter: drop-shadow(0 0 4px rgba(56, 209, 173, 0.9)); }
.brain-pulse-out { fill: var(--mint-soft); }
.brain-lane-label { position: absolute; z-index: 2; top: 7.5%; color: var(--steel-dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.58rem; letter-spacing: 0.11em; text-transform: uppercase; }
.brain-lane-input { left: 3.5%; }
.brain-lane-output { right: 3.5%; }

.brain-node {
  position: absolute;
  z-index: 2;
  display: flex;
  min-height: 4.5rem;
  padding: 0.72rem;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(214, 232, 222, 0.15);
  border-radius: 13px;
  background: rgba(29, 33, 30, 0.92);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.18);
  color: var(--chalk);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: transform 220ms var(--ease), border-color 180ms ease, background-color 180ms ease, box-shadow 220ms var(--ease), opacity 180ms ease;
}
.brain-node small { display: block; color: var(--steel-dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.55rem; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; transition: color 180ms ease; }
.brain-node b { display: block; margin-top: 0.25rem; font-size: 0.82rem; line-height: 1.15; }
.brain-node-icon { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: rgba(9, 12, 10, 0.55); color: var(--mint-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.59rem; }
.brain-node:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.brain-node.is-active { border-color: rgba(56, 209, 173, 0.72); background: rgba(37, 52, 45, 0.96); box-shadow: 0 0 0 1px rgba(56, 209, 173, 0.12), 0 1rem 3rem rgba(0, 0, 0, 0.28); }
.brain-node.is-active small { color: var(--mint-soft); }
.brain-map.has-selection .brain-node:not(.is-active):not(.is-related) { opacity: 0.52; }
.brain-node-input,
.brain-node-output { width: 22%; }
.brain-node-logbook,
.brain-node-action { top: 19.8%; }
.brain-node-watch,
.brain-node-state { top: 44%; }
.brain-node-form,
.brain-node-explain { top: 68.2%; }
.brain-node-input { left: 0; }
.brain-node-output { right: 0; }
.brain-node-context { top: 15.5%; left: 40%; width: 20%; min-height: 4rem; justify-content: center; }
.brain-node-dot { width: 0.52rem; height: 0.52rem; flex: 0 0 auto; border: 1px solid rgba(56, 209, 173, 0.6); border-radius: 50%; background: rgba(56, 209, 173, 0.24); }

.brain-core {
  top: 28.5%;
  left: 34%;
  display: grid;
  width: 32%;
  min-height: 43%;
  padding: 1rem;
  align-content: start;
  gap: 0;
  border-color: rgba(56, 209, 173, 0.45);
  background: linear-gradient(145deg, rgba(43, 62, 53, 0.96), rgba(21, 27, 23, 0.98));
  overflow: hidden;
}
.brain-core-orbit { position: absolute; top: -4rem; right: -3.5rem; width: 10rem; height: 10rem; border: 1px solid rgba(56, 209, 173, 0.18); border-radius: 50%; }
.brain-core-orbit::before { position: absolute; top: 50%; left: -0.22rem; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 1rem rgba(56, 209, 173, 0.8); content: ""; }
.brain-core-head { position: relative; display: flex; padding-bottom: 0.65rem; align-items: end; justify-content: space-between; border-bottom: 1px solid rgba(214, 232, 222, 0.12); }
.brain-core-head b { margin-top: 0.28rem; font-family: "Archivo Chalky", sans-serif; font-size: clamp(1rem, 1.7vw, 1.35rem); letter-spacing: -0.035em; }
.brain-core-head > i { display: flex; align-items: center; gap: 0.35rem; color: var(--mint-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.48rem; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; }
.brain-core-head > i::before { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0.7rem rgba(56, 209, 173, 0.85); content: ""; }
.brain-core-mesh { position: relative; display: block; height: 9.5rem; margin: 0.2rem -0.2rem 0; }
.brain-core-mesh svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.brain-core-mesh path { fill: none; stroke: rgba(154, 234, 215, 0.27); stroke-width: 0.75; vector-effect: non-scaling-stroke; }
.brain-core-mesh .brain-mesh-loop { stroke: rgba(154, 234, 215, 0.15); stroke-dasharray: 3 5; }
.mesh-node { position: absolute; display: flex; align-items: center; gap: 0.25rem; color: var(--steel); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.46rem; letter-spacing: 0.02em; transform: translate(-50%, -50%); }
.mesh-node i { width: 0.38rem; height: 0.38rem; flex: 0 0 auto; border: 1px solid rgba(154, 234, 215, 0.55); border-radius: 50%; background: #1c2822; box-shadow: 0 0 0 0.2rem rgba(56, 209, 173, 0.05); }
.mesh-node b { margin: 0; font-size: inherit; font-weight: 560; white-space: nowrap; }
.mesh-input { left: 11%; }
.mesh-a { top: 19%; }
.mesh-b { top: 50%; }
.mesh-c { top: 81%; }
.mesh-process { color: var(--mint-soft); }
.mesh-process i { background: var(--mint); box-shadow: 0 0 0.7rem rgba(56, 209, 173, 0.55); }
.mesh-d { top: 38%; left: 41%; }
.mesh-e { top: 50%; left: 59%; }
.mesh-f { top: 69%; left: 41%; }
.mesh-output { top: 49%; left: 86%; color: var(--chalk); }
.mesh-output i { border-color: var(--mint); background: rgba(56, 209, 173, 0.3); }
.brain-core-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; padding-top: 0.6rem; border-top: 1px solid rgba(214, 232, 222, 0.1); }
.brain-core-foot i { display: block; color: var(--steel-dim); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.43rem; font-style: normal; letter-spacing: 0.03em; line-height: 1.25; text-align: center; }

.brain-inspector {
  display: grid;
  grid-template-columns: 0.7fr 1.25fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  min-height: 8.5rem;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  background: rgba(23, 27, 24, 0.82);
}
.brain-inspector small { display: block; color: var(--mint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.57rem; letter-spacing: 0.09em; text-transform: uppercase; }
.brain-inspector b { display: block; margin-top: 0.35rem; font-size: 0.95rem; }
.brain-inspector p { margin: 0; color: var(--steel); font-size: 0.78rem; line-height: 1.55; }
.brain-inspector > * { transition: opacity 140ms ease, filter 140ms ease; }
.brain-inspector.is-changing > * { opacity: 0.42; filter: blur(1px); }
.brain-guardrail { display: flex; gap: 0.65rem; }
.brain-guardrail i { width: 0.48rem; height: 0.48rem; margin-top: 0.32rem; flex: 0 0 auto; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0.25rem rgba(56, 209, 173, 0.09); }
.architecture-note { max-width: 72ch; margin: 1.25rem 0 0; color: var(--steel-dim); font-size: 0.76rem; }

.engineering-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3.5rem; margin-top: 4rem; }
.engineering-grid article { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.engineering-grid p { margin: 0.55rem 0 0; }
.system-note { max-width: 75ch; margin: 2.5rem 0 0; color: var(--steel-dim); font-size: 0.82rem; }

.visual-system { padding-bottom: 5rem; }
.design-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); margin-top: 4rem; }
.tokens { display: grid; grid-template-columns: 1fr 1fr; }
.token { display: flex; min-height: 9.5rem; padding: 1rem; flex-direction: column; justify-content: space-between; }
.token span { font-weight: 750; }
.token code { font-size: 0.72rem; }
.token.mint { border-radius: 20px 0 0; background: #38d1ad; color: #0b1511; }
.token.rubber { border: 1px solid var(--line); border-radius: 0 20px 0 0; background: #121212; }
.token.plate { border-radius: 0 0 0 20px; background: #2a2a2a; }
.token.steel { border-radius: 0 0 20px; background: #a6a6a6; color: #121212; }
.design-rules article { padding: 1.35rem 0; border-top: 1px solid var(--line); }
.design-rules p { margin: 0.45rem 0 0; }

.coach-detail {
  display: grid;
  grid-template-columns: minmax(17rem, 0.7fr) minmax(16rem, 0.45fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
  margin: 6rem 0 0;
  padding: 1rem 0;
  overflow: visible;
}
.coach-detail img { display: block; width: min(100%, 23rem); margin-inline: auto; filter: drop-shadow(0 2rem 2.5rem rgba(0,0,0,0.42)); transition: transform 500ms var(--ease); }
.coach-detail figcaption { color: var(--steel); font-size: 1rem; }
.coach-detail figcaption span { display: block; margin-bottom: 0.8rem; color: var(--chalk); font-family: "Archivo Chalky", sans-serif; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -0.04em; line-height: 1.05; }

@keyframes screen-arrive {
  from { opacity: 0; transform: translateY(2.5rem) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes phone-enter {
  from { opacity: 0; transform: translateY(1.5rem) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes boundary-enter {
  from { opacity: 0; transform: translateY(0.8rem) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes boundary-arrow {
  from { opacity: 0; transform: translateX(-0.4rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes brain-orbit {
  to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > .eyebrow { animation: hero-enter 620ms 40ms var(--ease) both; }
  .hero-copy > h1 { animation: hero-enter 700ms 100ms var(--ease) both; }
  .hero-copy > .hero-dek { animation: hero-enter 700ms 160ms var(--ease) both; }
  .hero-copy > .hero-actions { animation: hero-enter 700ms 220ms var(--ease) both; }
  .hero-copy > .hero-ledger { animation: hero-enter 700ms 280ms var(--ease) both; }
  .hero-screen { animation: phone-enter 800ms 150ms var(--ease) both; }
  .brain-core-orbit { animation: brain-orbit 14s linear infinite; }
}

@media (hover: hover) and (pointer: fine) {
  .case-nav a:hover { color: var(--chalk); }
  .nav-live:hover { transform: translate(1px, -1px); }
  .button-primary:hover { background: var(--mint-soft); }
  .button:hover .button-icon { transform: translate(2px, -2px); background: rgba(11, 21, 17, 0.16); }
  .text-link:hover { color: var(--chalk); background-size: 100% 1px; }
  .ui-stage:has(.screen:hover) .screen:not(:hover) { opacity: 0.64; transform: translateY(var(--screen-y)) scale(0.985); }
  .ui-stage .screen:hover { transform: translateY(calc(var(--screen-y) - 0.35rem)) scale(1.012); filter: brightness(1.035); }
  .brain-node:hover { transform: translateY(-0.2rem); border-color: rgba(56, 209, 173, 0.46); background: rgba(37, 44, 40, 0.98); }
  .brain-node:active { transform: translateY(0) scale(0.98); }
  .coach-detail:hover img { transform: translateY(-0.5rem); }
}

.launch-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(3rem, 9vw, 9rem); padding: clamp(7rem, 13vw, 11rem) 0; }
.launch-copy p:not(.eyebrow) { max-width: 52ch; }
.launch-facts { align-self: start; border-top: 1px solid var(--line); }
.launch-facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.launch-facts strong { font-family: "Archivo Chalky", sans-serif; font-size: 1.25rem; }
.launch-facts span { color: var(--steel); }

.lessons { padding-top: 2rem; }
.lesson-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0 4rem; margin-top: 3.5rem; }
.lesson-grid article { padding: 1.8rem 0; border-top: 1px solid var(--line); }
.lesson-grid article:first-child { grid-row: span 2; }
.lesson-grid article:first-child h3 { max-width: 15ch; font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.lesson-grid p { max-width: 45ch; margin: 0.55rem 0 0; }

.closing {
  display: flex;
  min-height: 35rem;
  margin-top: 2rem;
  padding: 4rem 1.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 35%, rgba(56,209,173,0.2), transparent 22rem), var(--plate);
  text-align: center;
}
.closing img { margin-bottom: 1.5rem; border-radius: 18px; }
.closing .eyebrow { margin-bottom: 0.8rem; }
.closing h2 { font-size: clamp(2.7rem, 6vw, 5rem); }
.closing p:not(.eyebrow) { margin: 1rem 0 1.6rem; }

.case-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2.5rem 0 max(2.5rem, env(safe-area-inset-bottom)); color: var(--steel-dim); font-size: 0.8rem; }
.case-footer a { color: var(--steel); text-underline-offset: 0.25em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  h1 { margin-inline: auto; }
  .hero-dek { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-screen { width: min(100%, 25rem); margin-inline: auto; }
  .problem-grid, .origin-story, .loop-section, .launch-section { grid-template-columns: 1fr; }
  .origin-copy { position: static; }
  .product-chapter,
  .product-chapter:nth-of-type(odd) { grid-template-columns: 1fr; }
  .product-chapter:nth-of-type(odd) .chapter-copy,
  .product-chapter:nth-of-type(odd) .ui-stage { order: initial; }
  .chapter-copy { max-width: 36rem; }
  .ui-stage { min-height: 43rem; }
  .brain-stage { display: grid; height: auto; padding: 2rem; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .brain-stage::after { inset: 24% 18%; }
  .brain-links,
  .brain-lane-label { display: none; }
  .brain-node { position: relative; inset: auto; width: auto; min-height: 4.7rem; }
  .brain-node-context { justify-content: flex-start; }
  .brain-core { grid-column: 1 / -1; min-height: 14rem; }
  .brain-node-output { background: rgba(34, 45, 39, 0.92); }
  .brain-inspector { grid-template-columns: 0.7fr 1.3fr; }
  .brain-guardrail { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .case-nav { grid-template-columns: 1fr auto; min-height: 60px; }
  .nav-mark { display: none; }
  .case-nav a { font-size: 0.76rem; }

  .hero,
  .section,
  .loop-section,
  .interface-intro,
  .product-chapter,
  .system-section,
  .launch-section,
  .closing,
  .case-footer { width: min(calc(100% - 1.5rem), var(--page)); }

  .hero { min-height: auto; padding: 4rem 0 3rem; }
  h1 { width: 100%; max-width: 9.5ch; font-size: clamp(2.6rem, 12vw, 3.7rem); text-wrap: balance; }
  h2 { font-size: clamp(2.15rem, 10vw, 3.25rem); }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: min(100%, 22rem); margin-inline: auto; }
  .hero-ledger { grid-template-columns: 1fr; width: min(100%, 22rem); margin-inline: auto; text-align: left; }
  .hero-ledger div { padding: 0.75rem 0; }
  .hero-ledger div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .hero-screen { width: min(100%, 24rem); }

  .proof { grid-template-columns: 1fr 1fr; }
  .proof div:nth-child(3) { border-left: 0; }
  .proof div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proof div { padding: 1.2rem 1rem; }

  .problem-grid { gap: 2.5rem; }
  .job-list article { grid-template-columns: 1fr; gap: 0.5rem; }
  .loop-section { padding: 2rem 1.25rem; }
  .loop-visual { padding-top: 0.5rem; }
  .loop small { white-space: normal; }

  .interface-section { margin-top: 7rem; }
  .product-chapter { padding: 6rem 0; gap: 2.5rem; }
  .ui-stage { min-height: 31rem; padding: 1rem 0; gap: 0.25rem; }
  .screen-primary { width: 60%; }
  .screen-secondary { --screen-y: 2.5rem; width: 43%; }

  .engineering-grid, .design-grid, .lesson-grid { grid-template-columns: 1fr; }
  .decision-grid article { grid-template-columns: 2rem 1fr; gap: 1rem 0.85rem; }
  .decision-grid article > p { grid-column: 2; }
  .lesson-grid article:first-child { grid-row: auto; }
  .system-section { margin-top: 4rem; padding: 2rem 1.2rem; }
  .brain-map { margin-top: 2.5rem; border-radius: 16px; }
  .brain-map-head { display: block; padding: 1.2rem; }
  .brain-map-head p { margin-top: 0.65rem; text-align: left; }
  .brain-stage { grid-template-columns: 1fr; padding: 1rem; }
  .brain-core { grid-column: auto; }
  .brain-inspector { grid-template-columns: 1fr; gap: 1rem; min-height: 0; padding: 1.2rem; }
  .brain-guardrail { grid-column: auto; }
  .tokens { grid-template-columns: 1fr 1fr; }
  .token { min-height: 7.5rem; font-size: 0.78rem; }

  .coach-detail { grid-template-columns: 1fr; gap: 2rem; padding: 1rem 0; }
  .coach-detail figcaption { order: -1; padding: 0; }
  .coach-detail img { width: min(100%, 19rem); }
  .launch-facts div { grid-template-columns: 6.5rem 1fr; gap: 1rem; }
  .case-footer { flex-direction: column; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .case-nav { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
