@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fcfaf6;
  --paper: #fff;
  --ink: #2b2a28;
  --muted: #65635e;
  --clay: #db4c02;
  --clay-deep: #b83e00;
  --clay-hover: #9f3500;
  --peach: #faae71;
  --linen: #eed5b9;
  --tan: #f8e5cf;
  --sage: #7a7d6a;
  --sage-deep: #4f5145;
  --line: rgb(43 42 40 / 14%);
  --line-strong: rgb(43 42 40 / 28%);
  --shadow: 0 28px 70px rgb(43 42 40 / 14%), 0 5px 16px rgb(43 42 40 / 9%);
  --page: min(88rem, calc(100vw - 3rem));
  --copy: 68ch;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", "Avenir Next", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-overture-open { overflow: hidden; }

button,
input,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; }
img { display: block; max-width: 100%; }

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

::selection {
  background: var(--clay-deep);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--clay-deep);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-150%);
  background: var(--ink);
  color: #fff;
}

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

.text-button,
.primary-link,
.button,
.library-toolbar button,
.stage-nav button {
  min-height: 44px;
}

.text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
}

.text-button--light { color: #fff; }

.overture {
  position: fixed;
  z-index: 900;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  transition: transform 1.1s var(--ease), visibility 1.1s;
}

.overture.is-closed {
  visibility: hidden;
  transform: translateY(-102%);
}

.overture__frames,
.overture__frames::after,
.overture__frames img {
  position: absolute;
  inset: 0;
}

.overture__frames { background: var(--ink); }

.overture__frames::after {
  z-index: 2;
  background: linear-gradient(90deg, rgb(43 42 40 / 76%) 0%, rgb(43 42 40 / 14%) 55%, rgb(43 42 40 / 44%) 100%);
  content: "";
}

.overture__frames img {
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transform: scale(1.025);
  transition: opacity 80ms linear, transform 900ms var(--ease);
}

.overture__frames img.is-active {
  opacity: 1;
  transform: scale(1);
}

.overture__hud {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.overture__mark {
  width: clamp(9rem, 16vw, 15rem);
  filter: brightness(0) invert(1);
}

.overture__hud p {
  margin: 1.25rem 0 0.75rem;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.overture__hud .text-button {
  justify-self: start;
  font-size: 0.9rem;
}

.masthead {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem clamp(1rem, 3vw, 3rem);
  background: rgb(252 249 246 / 90%);
  backdrop-filter: blur(18px);
}

.masthead__brand {
  display: flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-self: start;
  gap: 0.75rem;
  text-decoration: none;
}

.masthead__brand img { width: 2.7rem; }

.masthead__brand span,
.masthead > p {
  color: var(--muted);
  font-size: 0.72rem;
}

.masthead > p { margin: 0; }
.masthead .text-button { justify-self: end; }

.chapter-nav {
  position: fixed;
  z-index: 70;
  top: 50%;
  right: clamp(0.75rem, 1.25vw, 1.5rem);
  width: 10.75rem;
  transform: translateY(-50%);
}

.chapter-nav__toggle { display: none; }

.chapter-nav__panel {
  overflow: hidden;
  border: 1px solid rgb(43 42 40 / 12%);
  border-radius: 16px;
  background: rgb(252 250 246 / 96%);
  box-shadow: 0 20px 42px -30px rgb(43 42 40 / 60%);
  backdrop-filter: blur(16px);
}

.chapter-nav__header {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.chapter-nav__header span:last-child { font-variant-numeric: tabular-nums; }

.chapter-nav__progress {
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.chapter-nav__progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--clay-deep);
}

.chapter-nav ol {
  position: relative;
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0.55rem;
  list-style: none;
}

.chapter-nav ol::before {
  position: absolute;
  top: 1.55rem;
  bottom: 1.55rem;
  left: 1.72rem;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.chapter-nav a {
  position: relative;
  display: grid;
  min-height: 2.75rem;
  grid-template-columns: 1.7rem 1fr;
  align-items: center;
  gap: 0.55rem;
  border-radius: 10px;
  padding: 0.25rem 0.55rem;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.chapter-nav__index {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.58rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.chapter-nav a:hover { background: rgb(238 213 185 / 38%); }

.chapter-nav a.is-active {
  background: var(--tan);
  color: var(--clay-deep);
  font-weight: 800;
}

.chapter-nav a.is-active .chapter-nav__index {
  border-color: var(--clay-deep);
  background: var(--clay-deep);
  color: #fff;
}

.chapter { scroll-margin-top: 4rem; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  place-items: center start;
  padding: 7rem max(1.5rem, calc((100vw - 88rem) / 2)) 4rem;
  background: var(--cream);
}

.hero__image {
  position: absolute;
  inset: 0 0 0 40%;
  background: url("/brand/illustrations/hero/pool-house-exterior.png") center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 92%, transparent 100%);
}

.hero__image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 72%, var(--cream) 100%);
  content: "";
}

.hero__sun,
.rollout__sun {
  position: absolute;
  width: clamp(7rem, 13vw, 12rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--clay);
}

.hero__sun {
  z-index: 1;
  top: 13%;
  left: 48%;
  mix-blend-mode: multiply;
}

.hero__copy {
  position: relative;
  z-index: 3;
  width: min(43rem, 51vw);
}

.chapter-label {
  margin: 0 0 1rem;
  color: var(--clay-deep);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1,
.chapter-heading h2,
.marketing h2,
.mobile h2,
.system h2,
.rollout h2 {
  margin: 0;
  font-size: clamp(3.4rem, 7.8vw, 7.5rem);
  font-weight: 770;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-wrap: balance;
}

.hero__lede {
  width: min(34rem, 88%);
  margin: 2rem 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--clay-deep);
  padding: 0.5rem 0;
  color: var(--clay-deep);
  font-weight: 700;
  text-decoration: none;
}

.primary-link span { transition: transform 220ms var(--ease); }
.primary-link:hover span { transform: translateY(0.25rem); }

.hero__caption {
  position: absolute;
  z-index: 3;
  right: clamp(1.5rem, 5vw, 5rem);
  bottom: 2rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.chapter-heading {
  width: var(--page);
  margin: 0 auto clamp(3.5rem, 7vw, 7rem);
}

.chapter-heading h2,
.marketing h2,
.mobile h2,
.system h2,
.rollout h2 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 5.6vw, 5.7rem);
  line-height: 0.94;
}

.chapter-heading > p,
.chapter-heading--split > p,
.marketing__copy > p,
.mobile__copy > p,
.system__field > p,
.rollout__intro > p {
  max-width: var(--copy);
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
}

.chapter-heading--split,
.system__field {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.7fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 8rem);
}

.identity {
  padding: clamp(7rem, 12vw, 12rem) 0 0;
}

.mark-stage {
  position: relative;
  display: grid;
  width: var(--page);
  min-height: 38rem;
  grid-template-columns: 1fr 18rem;
  align-items: center;
  gap: 4rem;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5rem 0;
}

.mark-stage > img { width: min(48rem, 100%); }

.mark-stage > p {
  align-self: end;
  margin: 0 0 1rem;
  color: var(--muted);
}

.mark-stage__icons {
  position: absolute;
  top: 2rem;
  right: 0;
  display: flex;
  gap: 0.8rem;
}

.mark-stage__icons img {
  width: 5rem;
  border-radius: 18%;
  box-shadow: 0 8px 18px rgb(43 42 40 / 9%);
}

.brand-pillars {
  width: var(--page);
  margin: 0 auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.brand-pillars > p {
  margin: 0;
  padding: 0.7rem 1.4rem;
  background: var(--cream);
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.brand-pillars__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.brand-pillars__list span {
  min-width: 0;
  padding: 1.2rem 1.4rem;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.brand-pillars__list span::before {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--clay);
  content: "";
}

.palette-strip {
  display: grid;
  grid-template-columns: 2fr 1.25fr repeat(6, 1fr);
  min-height: 19rem;
  margin-top: 1px;
}

.palette-strip > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
  min-width: 0;
  padding: 1.4rem;
  background: linear-gradient(to bottom, var(--swatch) 0 calc(100% - 5rem), var(--cream) calc(100% - 5rem));
  color: var(--ink);
  box-shadow: inset -1px 0 var(--line), inset 0 -1px var(--line);
}

.palette-strip span { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.67rem; }
.palette-strip strong { font-size: clamp(0.8rem, 1.2vw, 1rem); }
.palette-strip__clay { --swatch: var(--clay); }
.palette-strip__clay-deep { --swatch: var(--clay-deep); }
.palette-strip__ink { --swatch: var(--ink); }
.palette-strip__sage { --swatch: var(--sage); }
.palette-strip__peach { --swatch: var(--peach); }
.palette-strip__linen { --swatch: var(--linen); }
.palette-strip__tan { --swatch: var(--tan); }
.palette-strip__cream { --swatch: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }

.motif-run {
  display: grid;
  width: var(--page);
  grid-template-columns: 0.7fr 1.5fr 0.8fr 0.8fr 1.25fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  margin: 0 auto;
  padding: 8rem 0;
}

.motif-run img { width: 100%; max-height: 14rem; }

.marketing {
  position: relative;
  display: grid;
  min-height: 110svh;
  grid-template-columns: minmax(20rem, 0.95fr) minmax(0, 1.15fr);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.marketing__scene {
  min-height: 100%;
  background: url("/brand/illustrations/hero/family-approaching-house.png") center / cover no-repeat;
}

.marketing__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 10vw, 11rem) clamp(3rem, 7vw, 9rem);
}

.marketing h2 { max-width: 10ch; }
.marketing__copy > p { color: #d8dde2; }

.marketing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 680;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--ease);
}

.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--clay-deep); color: #fff; }
.button--primary:hover { background: var(--clay-hover); }
.button--outline { border-color: var(--clay-deep); background: transparent; color: var(--clay-deep); }
.button--quiet { border-color: var(--line-strong); background: transparent; color: currentColor; }
.marketing .button--quiet { border-color: rgb(255 255 255 / 36%); }
.button--full { width: 100%; }

.marketing__proof {
  position: absolute;
  right: clamp(2rem, 5vw, 5rem);
  bottom: 2rem;
  left: calc(50% + 4rem);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgb(255 255 255 / 24%);
  padding-top: 1rem;
  color: #d8dde2;
  font-size: 0.68rem;
}

.product {
  padding: clamp(7rem, 12vw, 12rem) 0;
  background: var(--tan);
}

.product-stage {
  display: grid;
  width: var(--page);
  min-height: 46rem;
  grid-template-columns: 16rem 1fr;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-stage__sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 2rem 1.2rem 1.2rem;
  background: #f5f0e8;
}

.product-stage__sidebar > img { width: 4rem; margin: 0 0 2rem 0.2rem; }
.product-stage__label { margin: 0 0 0.8rem 0.2rem; color: var(--muted); font-size: 0.7rem; }

.stage-nav { display: grid; gap: 0.25rem; }

.stage-nav button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.stage-nav button small { color: var(--muted); font-size: 0.62rem; }
.stage-nav button.is-active { background: var(--ink); color: #fff; }
.stage-nav button.is-active small { color: #d8dde2; }

.prototype-note {
  margin: auto 0.2rem 0;
  color: var(--muted);
  font-size: 0.65rem;
}

.product-stage__main { padding: clamp(1.5rem, 3vw, 3rem); }

.workspace-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.workspace-header p { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.72rem; }
.workspace-header h3 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.4rem); letter-spacing: -0.025em; }

.status-chip {
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  background: #e1e8dc;
  color: var(--sage-deep);
  font-size: 0.7rem;
  font-weight: 700;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 0.72fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-top: 2rem;
}

.assistant-thread { display: flex; flex-direction: column; gap: 1rem; }

.assistant-thread__illustration {
  position: relative;
  height: 14rem;
  overflow: hidden;
  background: var(--tan);
}

.assistant-thread__illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease, transform 420ms var(--ease);
}

.assistant-thread__illustration img.is-changing { opacity: 0; transform: translateY(0.6rem); }

.message {
  max-width: 80%;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-size: 0.84rem;
}

.message p { margin: 0.3rem 0 0; }
.message__author { color: var(--muted); font-size: 0.65rem; font-weight: 700; }
.message--ike { align-self: start; background: #eef0e9; }
.message--agent { align-self: end; background: var(--ink); color: #fff; }
.message--agent .message__author { color: #cbd1d7; }

.file-panel {
  align-self: start;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.file-panel__header { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; font-weight: 700; }
.file-panel__header img { width: 1.25rem; }
.file-panel dl { margin: 1.5rem 0; }
.file-panel dl div { display: grid; grid-template-columns: 0.8fr 1fr; gap: 1rem; border-top: 1px solid var(--line); padding: 0.75rem 0; }
.file-panel dt { color: var(--muted); font-size: 0.68rem; }
.file-panel dd { margin: 0; font-size: 0.72rem; font-weight: 650; }

.mobile {
  display: grid;
  min-height: 105svh;
  grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  padding: 9rem max(1.5rem, calc((100vw - 88rem) / 2));
  background: linear-gradient(90deg, var(--sage) 0 1.25rem, var(--ink) 1.25rem);
  color: #fff;
}

.mobile__copy { align-self: center; }
.mobile h2 { max-width: 10ch; }
.mobile__copy > p { color: #eef1ec; }
.mobile .chapter-label { color: #fff; }

.phone-run {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  perspective: 1200px;
}

.phone {
  position: relative;
  width: min(18rem, 29%);
  min-width: 13rem;
  min-height: 36rem;
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 2.4rem;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 32px 62px rgb(43 42 40 / 28%);
}

.phone:nth-child(1) { transform: rotateY(8deg) translateY(1.8rem); }
.phone:nth-child(3) { transform: rotateY(-8deg) translateY(1.8rem); }

.phone::before {
  position: absolute;
  z-index: 2;
  top: 0.45rem;
  left: 50%;
  width: 4rem;
  height: 1rem;
  border-radius: 1rem;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

.phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 1rem 0.7rem;
  font-size: 0.6rem;
}

.phone__bar img { width: 2.2rem; }
.phone__art { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.phone__content { padding: 1.2rem; }
.phone__content h3 { margin: 0.3rem 0 1rem; font-size: 1.3rem; line-height: 1.05; letter-spacing: -0.025em; }
.phone__content > p:not(.phone__meta) { color: var(--muted); font-size: 0.75rem; }
.phone__meta { margin: 0; color: var(--clay-deep); font-size: 0.62rem; font-weight: 750; text-transform: uppercase; }
.phone__content .button { margin-top: 1rem; }
.phone__content--timeline { padding-top: 2rem; }
.phone__content--timeline ol { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.phone__content--timeline li { position: relative; display: flex; justify-content: space-between; min-height: 4rem; margin-left: 0.35rem; border-left: 1px solid var(--line-strong); padding: 0.15rem 0 1.5rem 1.4rem; font-size: 0.76rem; }
.phone__content--timeline li::before { position: absolute; top: 0.1rem; left: -0.35rem; width: 0.7rem; height: 0.7rem; border: 1px solid var(--muted); border-radius: 50%; background: var(--cream); content: ""; }
.phone__content--timeline li.is-done::before { border-color: var(--sage); background: var(--sage); }
.phone__content--timeline li.is-current::before { border-color: var(--clay-deep); background: var(--clay-deep); }
.phone__content--timeline li span { color: var(--muted); font-size: 0.6rem; }

.people { padding: clamp(8rem, 12vw, 12rem) 0 0; }

.character-run {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--clay-deep) transparent;
  scroll-snap-type: x mandatory;
}

.character-run figure {
  position: relative;
  min-width: min(22rem, 66vw);
  height: min(39rem, 80vh);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.character-run figure:nth-child(3n + 1) { background: var(--tan); }
.character-run figure:nth-child(3n + 2) { background: #e3e7dc; }
.character-run figure:nth-child(3n) { background: #e8e9e8; }
.character-run img { width: 100%; height: 100%; object-fit: cover; object-position: top center; mix-blend-mode: multiply; }
.character-run figcaption { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; color: var(--muted); font-size: 0.65rem; }

.ui-art-run {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
}

.ui-art-run figure { margin: 0; background: var(--cream); }
.ui-art-run img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.system { padding: 0 0 9rem; background: var(--ink); color: #fff; }

.system__field {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(7rem, 12vw, 12rem) 0 6rem;
}

.system__field > p { color: #d8dde2; }

.component-bench {
  display: grid;
  width: var(--page);
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(3rem, 7vw, 8rem);
  margin: 0 auto;
  border-top: 1px solid rgb(255 255 255 / 20%);
  padding-top: 3rem;
}

.component-bench__controls { display: grid; align-content: start; gap: 2rem; }
.control-group { display: grid; gap: 0.7rem; }
.control-group > span,
.control-group > label { color: #cbd1d7; font-size: 0.68rem; }
.control-group .button { justify-self: start; }
.component-bench .button { border-radius: 999px; padding-inline: 1.15rem; }
.component-bench .button--outline { border-color: var(--peach); color: var(--peach); }
.component-bench .button--quiet { border-color: rgb(255 255 255 / 42%); color: #fff; }
.system :focus-visible { outline-color: var(--peach); }
.control-group--fields { gap: 0.9rem; }
.component-field { display: grid; gap: 0.4rem; }
.component-field label { color: #cbd1d7; font-size: 0.68rem; }
.component-field input,
.component-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 12px;
  padding: 0 0.8rem;
  background: rgb(255 255 255 / 5%);
  color: #fff;
}
.component-field input::placeholder { color: #cbd1d7; }
.component-field select option { color: var(--ink); }

.chip-run { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: #e3e7dc;
  color: var(--sage-deep);
  font-size: 0.68rem;
  font-weight: 700;
}
.state-chip::before { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--sage); content: ""; }
.state-chip--progress { background: var(--tan); color: #7f2a00; }
.state-chip--progress::before { background: var(--clay-deep); }
.state-chip--documents { background: #dfe5ea; color: #273746; }
.state-chip--documents::before { background: #536a79; }
.state-chip--completed::before { background: var(--sage-deep); }

.component-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
}

.component-timeline li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: #cbd1d7;
  font-size: 0.62rem;
  text-align: center;
}

.component-timeline li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 0.7rem;
  left: calc(50% + 0.7rem);
  width: calc(100% - 1.4rem);
  height: 1px;
  background: rgb(255 255 255 / 34%);
  content: "";
}

.component-timeline__marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  border: 1px solid #cbd1d7;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 750;
}

.component-timeline li.is-complete .component-timeline__marker {
  border-color: var(--sage-deep);
  background: var(--sage-deep);
}

.component-timeline li[aria-current="step"] { color: #fff; font-weight: 750; }
.component-timeline li[aria-current="step"] .component-timeline__marker { border-color: var(--clay-deep); background: var(--clay-deep); }

.data-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgb(255 255 255 / 16%);
}

.data-wall figure { min-width: 0; margin: 0; padding: 1.5rem; background: var(--cream); color: var(--ink); }
.data-wall figure:first-child { grid-column: 1 / -1; }
.data-wall img { width: 100%; height: 9rem; object-fit: contain; }
.data-wall figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.65rem; }

.icon-ribbon {
  display: grid;
  width: var(--page);
  grid-template-columns: repeat(12, 1fr);
  margin: 7rem auto 0;
  border-top: 1px solid rgb(255 255 255 / 20%);
  border-left: 1px solid rgb(255 255 255 / 20%);
}

.icon-ribbon figure {
  display: grid;
  min-height: 6rem;
  place-items: center;
  margin: 0;
  border-right: 1px solid rgb(255 255 255 / 20%);
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.icon-ribbon img { width: 1.45rem; filter: brightness(0) invert(1); }
.icon-ribbon figcaption { color: #cbd1d7; font-size: 0.52rem; }

.library { padding: clamp(8rem, 12vw, 12rem) 0; }

.library-toolbar {
  position: sticky;
  z-index: 20;
  top: 3.5rem;
  display: flex;
  width: var(--page);
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto 2rem;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  background: rgb(252 249 246 / 94%);
  backdrop-filter: blur(16px);
}

.library-toolbar button {
  flex: none;
  min-width: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
}

.library-toolbar button.is-active { background: var(--ink); color: #fff; }
.library-toolbar span { margin-left: auto; color: var(--muted); font-size: 0.65rem; white-space: nowrap; }

.asset-wall {
  width: var(--page);
  columns: 4 16rem;
  column-gap: 0.75rem;
  margin: 0 auto;
}

.asset-wall figure {
  position: relative;
  break-inside: avoid;
  margin: 0 0 0.75rem;
  overflow: hidden;
  background: #f3eee7;
}

.asset-wall figure[hidden] { display: none; }
.asset-wall img { width: 100%; height: auto; transition: transform 500ms var(--ease); }
.asset-wall figure:hover img { transform: scale(1.025); }
.asset-wall figcaption { position: absolute; right: 0.5rem; bottom: 0.5rem; left: 0.5rem; padding: 0.5rem 0.6rem; background: rgb(43 42 40 / 84%); color: #fff; font-size: 0.58rem; opacity: 0; transition: opacity 160ms ease; }
.asset-wall figure:hover figcaption,
.asset-wall figure:focus-within figcaption { opacity: 1; }

.rollout {
  position: relative;
  overflow: hidden;
  padding: clamp(8rem, 12vw, 12rem) max(1.5rem, calc((100vw - 88rem) / 2)) 4rem;
  background: var(--tan);
}

.rollout__sun { top: 8rem; right: 7%; opacity: 0.9; }
.rollout__intro { position: relative; z-index: 1; max-width: 64rem; }
.rollout__intro > p { max-width: 48rem; }

.rollout-map {
  position: relative;
  z-index: 1;
  margin: 6rem 0 8rem;
  padding: 0;
  list-style: none;
}

.rollout-map li {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(18rem, 1fr) minmax(14rem, 0.7fr);
  gap: 2rem;
  border-top: 1px solid var(--line-strong);
  padding: 1.4rem 0;
}

.rollout-map span { color: var(--clay-deep); font-size: 0.72rem; font-weight: 750; text-transform: uppercase; }
.rollout-map strong { font-size: clamp(1rem, 1.8vw, 1.4rem); }
.rollout-map small { color: var(--muted); font-size: 0.74rem; }

.rollout__close {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  align-items: end;
  gap: 2rem;
  border-top: 1px solid var(--line-strong);
  padding-top: 2rem;
}

.rollout__close img { width: 8rem; }
.rollout__close p { margin: 0; font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.2; }

.toast {
  position: fixed;
  z-index: 200;
  right: 1.5rem;
  bottom: 1.5rem;
  max-width: min(24rem, calc(100vw - 3rem));
  padding: 0.85rem 1rem;
  transform: translateY(150%);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  transition: transform 420ms var(--ease);
}

.toast.is-visible { transform: none; }

@media (max-width: 88rem) {
  .chapter-nav {
    top: auto;
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: min(20rem, calc(100vw - 1.5rem));
    transform: none;
  }

  .chapter-nav__toggle {
    display: grid;
    width: 100%;
    min-height: 3.5rem;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid rgb(43 42 40 / 14%);
    border-radius: 14px;
    padding: 0.45rem 0.55rem 0.45rem 0.85rem;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 18px 38px -24px rgb(43 42 40 / 72%);
    text-align: left;
  }

  .chapter-nav__toggle-label { color: #cbd1d7; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
  .chapter-nav__toggle strong { overflow: hidden; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
  .chapter-nav__toggle [data-current-count] { color: #cbd1d7; font-size: 0.68rem; font-variant-numeric: tabular-nums; }
  .chapter-nav__chevron { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: 50%; background: var(--clay-deep); font-size: 0.8rem; transition: transform 180ms ease; }
  .chapter-nav.is-open .chapter-nav__chevron { transform: rotate(180deg); }

  .chapter-nav__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.5rem);
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transform: translateY(0.5rem);
    transition: opacity 180ms ease, transform 180ms var(--ease), visibility 180ms;
  }

  .chapter-nav.is-open .chapter-nav__panel { visibility: visible; opacity: 1; transform: none; }
  .rollout { padding-bottom: max(8rem, calc(6rem + env(safe-area-inset-bottom))); }
}

@media (max-width: 75rem) {
  .hero__image { left: 34%; }
  .icon-ribbon { grid-template-columns: repeat(8, 1fr); }
  .phone-run { margin-right: -8rem; }
  .palette-strip { grid-template-columns: repeat(4, 1fr); min-height: auto; }
  .palette-strip > div { min-height: 13rem; }
}

@media (max-width: 58rem) {
  .masthead { grid-template-columns: 1fr auto; }
  .masthead > p { display: none; }
  .hero { min-height: 52rem; align-items: start; }
  .hero__image { inset: 44% 0 0; mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 100%); }
  .hero__sun { top: 47%; right: -2rem; left: auto; }
  .hero__copy { width: 100%; }
  .hero__caption { display: none; }
  .chapter-heading--split,
  .system__field,
  .marketing,
  .mobile,
  .component-bench { grid-template-columns: 1fr; }
  .marketing__scene { min-height: 70svh; }
  .marketing__copy { min-height: 70svh; }
  .marketing__proof { right: 2rem; left: 2rem; }
  .product-stage { grid-template-columns: 12rem 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .mobile { padding-block: 8rem; }
  .phone-run { margin: 2rem -8rem 0 0; }
  .phone { width: 15rem; min-width: 15rem; }
  .ui-art-run { grid-template-columns: repeat(3, 1fr); }
  .icon-ribbon { grid-template-columns: repeat(6, 1fr); }
  .rollout-map li { grid-template-columns: 8rem 1fr; }
  .rollout-map small { grid-column: 2; }
}

@media (max-width: 42rem) {
  :root { --page: calc(100vw - 2rem); }
  .masthead { padding-inline: 1rem; }
  .masthead__brand span { display: none; }
  .overture__frames::after { background: linear-gradient(180deg, rgb(43 42 40 / 18%), rgb(43 42 40 / 78%)); }
  .hero { min-height: 48rem; padding: 6rem 1rem 2rem; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 4.8rem); }
  .hero__lede { width: 100%; }
  .chapter-heading h2,
  .marketing h2,
  .mobile h2,
  .system h2,
  .rollout h2 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .mark-stage { display: block; min-height: 30rem; padding-top: 9rem; }
  .mark-stage > p { max-width: 17rem; margin-top: 4rem; }
  .mark-stage__icons { top: 1.5rem; right: auto; left: 0; }
  .brand-pillars__list { grid-template-columns: 1fr 1fr; }
  .palette-strip { grid-template-columns: repeat(2, 1fr); min-height: auto; }
  .palette-strip > div { min-height: 9rem; }
  .motif-run { grid-template-columns: repeat(2, 1fr); }
  .motif-run img:nth-child(2) { grid-column: 1 / -1; }
  .marketing__scene { min-height: 32rem; }
  .marketing__copy { min-height: auto; padding: 6rem 1rem 9rem; }
  .marketing__proof { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .product-stage { display: block; min-height: auto; border-radius: 0; }
  .product-stage__sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-stage__sidebar > img,
  .product-stage__label,
  .prototype-note { display: none; }
  .stage-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow-x: auto; }
  .stage-nav button { display: block; min-width: 7rem; }
  .stage-nav button small { display: block; margin-top: 0.2rem; }
  .product-stage__main { padding: 1.2rem; }
  .workspace-header { display: block; }
  .status-chip { display: inline-block; margin-top: 1rem; }
  .assistant-thread__illustration { height: 11rem; }
  .phone-run { justify-content: start; margin: 2rem -1rem 0; overflow-x: auto; padding: 2rem 2rem 4rem; scroll-snap-type: x mandatory; }
  .phone { flex: none; scroll-snap-align: center; transform: none !important; }
  .ui-art-run { grid-template-columns: repeat(2, 1fr); }
  .component-bench { gap: 4rem; }
  .data-wall { grid-template-columns: 1fr; }
  .data-wall figure:first-child { grid-column: auto; }
  .icon-ribbon { grid-template-columns: repeat(4, 1fr); }
  .library-toolbar span { display: none; }
  .asset-wall { columns: 2 9rem; }
  .rollout-map li { display: block; }
  .rollout-map strong,
  .rollout-map small { display: block; margin-top: 0.5rem; }
  .rollout__close { grid-template-columns: 1fr; align-items: start; }
  .rollout__sun { top: 4rem; right: -3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .overture { display: none; }
  body.is-overture-open { overflow: auto; }
  .phone { transform: none !important; }
}
