@font-face {
  font-family: "Manrope Local";
  src: url("/assets/fonts/Manrope-Variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces Local";
  src: url("/assets/fonts/Fraunces-Variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces Local";
  src: url("/assets/fonts/Fraunces-Italic-Variable.woff2") format("woff2-variations");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --amber-25: #fffdf9;
  --amber-50: #fff9ef;
  --amber-100: #fff0d7;
  --amber-200: #ffdfb0;
  --amber-300: #ffc777;
  --amber-400: #ffa13b;
  --amber-500: #f47a16;
  --amber-600: #d95b0a;
  --amber-700: #a93d08;
  --amber-800: #72300c;
  --ink: #211914;
  --ink-soft: #453930;
  --muted: #76675d;
  --line: #e9d3b9;
  --line-strong: #d9ad7e;
  --paper: #fffdf9;
  --teal: #147f80;
  --teal-dark: #105e60;
  --teal-soft: #e2f1ef;
  --violet: #8051a7;
  --violet-dark: #63407d;
  --violet-soft: #f0e9f7;
  --terminal: #171311;
  --terminal-raised: #211b18;
  --green: #64c488;
  --serif: "Fraunces Local", Georgia, serif;
  --sans: "Manrope Local", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shadow-sm: 0 12px 34px rgba(93, 50, 20, 0.08);
  --shadow-md: 0 24px 70px rgba(93, 50, 20, 0.13);
  --shadow-lg: 0 38px 100px rgba(68, 34, 13, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 177, 71, 0.1), transparent 24rem),
    var(--amber-50);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(120, 72, 36, 0.08) 0.65px, transparent 0.65px);
  background-size: 25px 25px;
  content: "";
  pointer-events: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--amber-700);
  text-underline-offset: 0.18em;
}

button,
select {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(20, 127, 128, 0.45);
  outline-offset: 3px;
}

code,
pre {
  font-family: var(--mono);
}

.site-container {
  width: min(1200px, calc(100% - 44px));
  margin-inline: auto;
}

.content-narrow {
  width: min(790px, calc(100% - 44px));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(205, 157, 113, 0.48);
  background: rgba(255, 249, 239, 0.98);
}

.nav-inner {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.26rem;
  font-weight: 730;
  line-height: 1;
  text-decoration: none;
}

.brand-lockup img {
  width: 29px;
  height: 39px;
}

.brand-lockup .brand-character-mark {
  width: 38px;
  height: 48px;
  margin-block: -8px;
  object-fit: contain;
}

.brand-version {
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--amber-700);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.site-menu > a {
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 670;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-menu > a:hover,
.site-menu > a[aria-current="page"] {
  background: rgba(255, 223, 176, 0.58);
  color: var(--amber-700);
}

.menu-button {
  display: none;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.button,
.site-menu .button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary,
.site-menu .button-primary {
  border-color: var(--amber-600);
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  box-shadow: 0 9px 25px rgba(217, 91, 10, 0.23);
  color: #fff;
}

.button-primary:hover,
.site-menu .button-primary:hover {
  background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.84);
  color: var(--ink);
}

.text-link {
  color: var(--amber-700);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.release-strip {
  border-bottom: 1px solid var(--line);
  background: var(--amber-100);
}

.release-strip .site-container {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
}

.preview-strip {
  background: repeating-linear-gradient(135deg, #fff0d7 0 14px, #ffe6c1 14px 28px);
}

.release-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.release-pill {
  padding: 3px 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.59rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--amber-700);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-v2 {
  --field-x: 0px;
  --field-y: 0px;
  min-height: 760px;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 45%, rgba(255, 192, 99, 0.18), transparent 31rem),
    linear-gradient(105deg, rgba(255, 253, 249, 0.98), rgba(255, 247, 234, 0.88));
}

.crystal-field {
  position: absolute;
  inset: 0;
  contain: paint;
  pointer-events: none;
  transform: translateZ(0);
}

.field-crystal {
  position: absolute;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(217, 91, 10, 0.43);
  background: linear-gradient(145deg, rgba(255, 224, 176, 0.8), rgba(244, 122, 22, 0.2));
  clip-path: polygon(50% 0, 100% 35%, 78% 82%, 50% 100%, 22% 82%, 0 35%);
  filter: drop-shadow(0 8px 10px rgba(217, 91, 10, 0.1));
  transform: translate3d(calc(var(--field-x) * var(--depth, 0.4)), calc(var(--field-y) * var(--depth, 0.4)), 0) rotate(var(--rotation, 8deg));
  transition: transform 800ms cubic-bezier(.2,.8,.2,1);
}

.field-crystal-a { top: 12%; left: 4%; --depth: .3; --rotation: -12deg; }
.field-crystal-b { top: 72%; left: 8%; width: 13px; height: 22px; --depth: .7; --rotation: 18deg; }
.field-crystal-c { top: 15%; right: 6%; width: 16px; height: 27px; --depth: .6; --rotation: 13deg; }
.field-crystal-d { right: 3%; bottom: 15%; width: 29px; height: 45px; --depth: .9; --rotation: -8deg; }
.field-crystal-e { top: 43%; left: 44%; width: 10px; height: 17px; --depth: .5; --rotation: 24deg; }

.field-orbit {
  position: absolute;
  border: 1px solid rgba(217, 91, 10, 0.18);
  border-radius: 50%;
  transform: translate3d(calc(var(--field-x) * -0.14), calc(var(--field-y) * -0.14), 0) rotate(-12deg);
}

.field-orbit-a { top: 5%; right: -8%; width: 620px; height: 620px; }
.field-orbit-b { right: 10%; bottom: -42%; width: 450px; height: 240px; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1480px, calc(100% - 56px));
  min-height: 760px;
  align-items: center;
  grid-template-columns: minmax(0, 1.04fr) minmax(560px, 0.96fr);
  gap: 18px;
  padding-block: 76px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.character-profile h1,
.brand-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 0.97;
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(3.8rem, 5.7vw, 6.65rem);
  letter-spacing: -0.026em;
  font-variation-settings: "opsz" 72, "SOFT" 45, "WONK" 1;
}

.hero h1 em {
  color: var(--amber-600);
  font-style: italic;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-weight: 520;
}

.hero-lead {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.17rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-proof-row > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.68);
  color: var(--muted);
  font-size: 0.66rem;
}

.hero-proof-row strong { color: var(--ink); }
.hero-proof-row img { width: 26px; height: 23px; object-fit: contain; }
.hero-proof-row > span:nth-child(2) img { height: 28px; margin-block: -4px; }
.hero-proof-symbol { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid var(--amber-300); border-radius: 7px; background: var(--amber-100); color: var(--amber-700); font-family: var(--mono); font-size: .72rem; font-weight: 850; }

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 560px;
}

.hero-art-amber > picture {
  position: absolute;
  inset: 0;
}

.hero-art-amber > picture > img {
  position: absolute;
  right: -13%;
  bottom: -76px;
  width: 150%;
  height: auto;
  max-width: none;
  filter: drop-shadow(0 28px 40px rgba(113, 56, 16, 0.1));
}

.character-callout {
  position: absolute;
  right: 2%;
  bottom: 5%;
  z-index: 2;
  display: grid;
  min-width: 215px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.character-callout::before {
  position: absolute;
  top: -7px;
  right: 18px;
  width: 13px;
  height: 13px;
  background: var(--amber-500);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  content: "";
}

.callout-kicker {
  color: var(--amber-700);
  font-size: 0.57rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.character-callout strong {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.character-callout span:last-child {
  color: var(--muted);
  font-size: 0.66rem;
}

.section,
.demo-section {
  padding-block: 100px;
}

.demo-section {
  background: var(--paper);
}

.section-tinted {
  border-block: 1px solid var(--line);
  background: rgba(255, 240, 215, 0.5);
}

.section-heading {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr 0.72fr;
  gap: 42px;
  margin-bottom: 44px;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.6rem);
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.compact-heading {
  margin-bottom: 34px;
}

.build-demo {
  --terminal-window-width: calc(54% - 24px);
  position: relative;
  min-height: 508px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(135deg, #2a211d, #171311);
  box-shadow: var(--shadow-lg);
  contain: paint;
}

.terminal,
.app-preview-window {
  overflow: hidden;
  border: 1px solid #4b3b32;
  border-radius: 13px;
  background: var(--terminal);
}

.terminal-demo {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: var(--terminal-window-width);
  min-width: 0;
  transform: translateX(-50%);
  transition: left 760ms cubic-bezier(.22,.9,.24,1), transform 760ms cubic-bezier(.22,.9,.24,1);
  will-change: left, transform;
}

.build-demo.is-browser-open .terminal-demo {
  left: 16px;
  transform: translateX(0);
}

.terminal-toolbar,
.browser-toolbar {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid #3b2e29;
  background: var(--terminal-raised);
}

.terminal-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ef6b58;
}

.terminal-dot:nth-child(2) { background: #e7af4b; }
.terminal-dot:nth-child(3) { background: #60ab77; }

.terminal-title {
  margin-left: 7px;
  color: #aa9a90;
  font-family: var(--mono);
  font-size: 0.66rem;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.terminal-controls button,
.terminal-controls a {
  padding: 5px 8px;
  border: 1px solid #55443b;
  border-radius: 7px;
  background: #2b231f;
  color: #d9cac0;
  font-family: var(--mono);
  font-size: 0.59rem;
  text-decoration: none;
  cursor: pointer;
}

.terminal-screen {
  height: 430px;
  overflow: hidden;
  padding: 22px 25px;
  color: #f7ede4;
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.1vw, 0.84rem);
  line-height: 1.68;
}

.terminal-line {
  min-height: 1.68em;
  white-space: pre-wrap;
  transition: opacity 220ms ease, transform 220ms ease;
}

.terminal-demo.is-animating .terminal-line:not(.is-active):not(.is-complete) {
  opacity: 0;
  transform: translateY(5px);
}

.terminal-line.is-active,
.terminal-line.is-complete {
  opacity: 1;
  transform: translateY(0);
}

.terminal-prompt { color: #f3a348; }
.terminal-command { color: #fff6ed; }
.terminal-success { color: var(--green); }
.terminal-muted { color: #aa9b92; }
.terminal-accent { color: #8ed5d3; }
.terminal-comment { color: #887b73; transition: opacity 120ms ease; }
.terminal-line:not(.is-complete) .terminal-comment { opacity: 0; }

.terminal-state {
  display: inline-block;
  width: 1.2rem;
  color: #e7af4b;
  text-align: center;
}

.terminal-line.is-complete .terminal-state { color: var(--green); }
.terminal-line.is-complete .terminal-state:not(.terminal-state-ready)::before { content: "✓"; }
.terminal-line.is-complete .terminal-state:not(.terminal-state-ready) { font-size: 0; }
.terminal-line.is-complete .terminal-state:not(.terminal-state-ready)::before { font-size: 0.84rem; }

.terminal-cursor {
  display: none;
  width: 0.58em;
  height: 1.08em;
  margin-left: 2px;
  vertical-align: -0.16em;
  background: #f3a348;
  animation: terminal-cursor-blink 760ms steps(1) infinite;
}

.terminal-line.is-active .terminal-cursor { display: inline-block; }

@keyframes terminal-cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.terminal-url {
  padding: 1px 4px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #80d6a3;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  opacity: 0;
  transition: background 120ms ease, color 120ms ease, opacity 120ms ease;
}

.terminal-line.is-complete .terminal-url { opacity: 1; }
.terminal-url:hover,
.terminal-url:focus-visible { background: #80d6a3; color: #171311; outline: 0; }
.terminal-url.is-activated { background: #f7ede4; color: #171311; text-decoration: none; }

.demo-pointer {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 20px;
  margin-left: 7px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-18px, 12px) rotate(-10deg);
  transition: opacity 180ms ease, transform 320ms cubic-bezier(.2,.8,.2,1);
  vertical-align: -8px;
}

.demo-pointer > span {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 13px;
  height: 17px;
  border: 1px solid #171311;
  background: #fff;
  clip-path: polygon(0 0, 0 100%, 32% 71%, 51% 100%, 67% 90%, 48% 63%, 100% 62%);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.34));
}

.demo-pointer::after {
  position: absolute;
  top: -7px;
  left: -8px;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(128, 214, 163, 0.9);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transform: scale(0.25);
}

.terminal-line.is-complete .demo-pointer { opacity: 1; }
.terminal-url.is-activated + .demo-pointer { transform: translate(-2px, 2px) rotate(-4deg); }
.terminal-url.is-activated + .demo-pointer::after { animation: pointer-ping 620ms ease-out; }

@keyframes pointer-ping {
  0% { opacity: 0.95; transform: scale(0.25); }
  100% { opacity: 0; transform: scale(1.35); }
}

.app-preview-window {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: calc(100% - var(--terminal-window-width) - 48px);
  min-width: 0;
  background: #f5f5f5;
  opacity: 0;
  pointer-events: none;
  transform: translateX(48%) scaleX(0.04);
  transform-origin: left center;
  transition: opacity 760ms ease, transform 760ms cubic-bezier(.22,.9,.24,1);
  will-change: opacity, transform;
}

.build-demo.is-browser-open .app-preview-window {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scaleX(1);
}

.browser-toolbar {
  border-color: #d8d8d8;
  background: #ececec;
}

.browser-address {
  min-width: 0;
  flex: 1;
  margin-left: 8px;
  overflow: hidden;
  padding: 5px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  background: #fff;
  color: #676767;
  font-family: var(--sans);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-app-page {
  min-height: 430px;
  overflow: auto;
  padding: 0;
  color: #261913;
  background: #fffaf2;
  container-type: inline-size;
}

.generated-app-page .amber-starter {
  --starter-line: #dec9b4;
  --starter-muted: #745e52;
  --starter-orange: #e96918;
  --starter-orange-deep: #a93d08;
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: #261913;
  background:
    radial-gradient(circle at 78% 18%, rgba(243, 163, 72, 0.24), transparent 13rem),
    linear-gradient(145deg, #fffdf9 0%, #fffaf2 52%, #f7ead7 100%);
  font-family: var(--sans);
}

.generated-app-page .amber-starter::before {
  position: absolute;
  top: 40px;
  right: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(169, 61, 8, 0.12);
  border-radius: 50%;
  content: "";
}

.generated-app-page .starter-nav,
.generated-app-page .starter-main,
.generated-app-page .starter-footer {
  position: relative;
  z-index: 1;
  width: calc(100% - 36px);
  margin-inline: auto;
}

.generated-app-page .starter-nav {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--starter-line);
}

.generated-app-page .starter-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--serif);
  font-size: 0.74rem;
  font-weight: 850;
}

.generated-app-page .starter-crystal {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 19px;
  background: linear-gradient(145deg, #ffc36b 0 28%, var(--starter-orange) 29% 68%, var(--starter-orange-deep) 69%);
  clip-path: polygon(50% 0, 93% 24%, 78% 79%, 50% 100%, 18% 79%, 5% 24%);
  filter: drop-shadow(0 2px 3px rgba(169, 61, 8, 0.2));
}

.generated-app-page .starter-crystal::after {
  position: absolute;
  inset: 22% 25% 17% 49%;
  background: rgba(255, 248, 225, 0.52);
  clip-path: polygon(0 0, 100% 8%, 70% 100%, 0 74%);
  content: "";
}

.generated-app-page .starter-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--starter-line);
  border-radius: 999px;
  color: var(--starter-muted);
  background: rgba(255, 253, 249, 0.7);
  font-size: 0.45rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.generated-app-page .starter-status > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #377a55;
}

.generated-app-page .starter-main {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(170px, 0.95fr);
  gap: 20px;
  padding-block: 34px 31px;
}

.generated-app-page .starter-eyebrow,
.generated-app-page .starter-section-heading p {
  margin: 0 0 9px;
  color: var(--starter-orange-deep);
  font-size: 0.46rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.generated-app-page .starter-eyebrow::before {
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 6px;
  background: currentColor;
  content: "";
  vertical-align: 0.25em;
}

.generated-app-page .starter-hero h1,
.generated-app-page .starter-section-heading h2 {
  margin: 0;
  color: #261913;
  font-family: var(--serif);
  letter-spacing: -0.045em;
}

.generated-app-page .starter-hero h1 {
  font-size: clamp(2.1rem, 5.3vw, 3.35rem);
  line-height: 0.84;
}

.generated-app-page .starter-hero h1 em {
  color: var(--starter-orange);
  font-weight: 650;
}

.generated-app-page .starter-intro {
  max-width: 390px;
  margin: 17px 0 0;
  color: var(--starter-muted);
  font-size: 0.64rem;
  line-height: 1.55;
}

.generated-app-page .starter-intro strong { color: #261913; }

.generated-app-page .starter-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.generated-app-page .starter-proof span {
  padding: 4px 6px;
  border: 1px solid var(--starter-line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.76);
  color: var(--starter-muted);
  font-size: 0.43rem;
  font-weight: 750;
}

.generated-app-page .starter-proof b { margin-right: 3px; color: var(--starter-orange); }

.generated-app-page .starter-next {
  padding: 18px;
  border: 1px solid var(--starter-line);
  border-radius: 13px;
  background: rgba(255, 253, 249, 0.8);
  box-shadow: 0 12px 34px rgba(74, 42, 23, 0.12);
}

.generated-app-page .starter-section-heading h2 {
  font-size: 1.55rem;
  line-height: 0.98;
}

.generated-app-page .starter-steps {
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.generated-app-page .starter-steps li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  padding-block: 8px;
  border-top: 1px solid var(--starter-line);
}

.generated-app-page .starter-steps li > span {
  color: var(--starter-orange-deep);
  font: 800 0.42rem/1.5 var(--mono);
}

.generated-app-page .starter-steps strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.53rem;
}

.generated-app-page .starter-steps code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--starter-muted);
  font: 0.43rem/1.45 var(--mono);
}

.generated-app-page .starter-footer {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--starter-line);
  color: var(--starter-muted);
  font-size: 0.45rem;
}

@container (max-width: 470px) {
  .generated-app-page .starter-main { grid-template-columns: 1fr; }
  .generated-app-page .starter-hero h1 { font-size: 2.7rem; }
}

.feature-grid,
.app-type-grid,
.crew-roster,
.principles-grid,
.profile-details-grid,
.brand-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.principle-card,
.profile-memo,
.brand-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--shadow-sm);
}

[data-tilt] {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  transform: perspective(850px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--tilt-lift));
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

[data-tilt]:hover {
  --tilt-lift: -5px;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(.2,.8,.2,1);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card::after,
.principle-card::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 58px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: linear-gradient(135deg, transparent 49%, var(--amber-100) 50%);
  content: "";
}

.feature-icon,
.app-type-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--amber-300);
  border-radius: 11px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 800;
}

.feature-icon { margin-bottom: 38px; }

.feature-card h3,
.app-type-card h3,
.personnel-card h2,
.personnel-card h3,
.principle-card h2,
.profile-memo h2 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.18;
}

.feature-card p,
.app-type-card p,
.personnel-card p,
.principle-card p,
.profile-memo p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.app-type-grid {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.application-types-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff5e5;
}

.application-types-content {
  position: relative;
  z-index: 2;
}

.application-type-scenes,
.application-type-scene {
  position: absolute;
  inset: 0;
}

.application-type-scenes { z-index: 0; }

.application-type-scene {
  opacity: 0;
  transition: opacity 640ms ease, transform 900ms cubic-bezier(.2,.8,.2,1);
}

.application-type-scene-web {
  background:
    linear-gradient(110deg, rgba(255, 247, 232, 0.74), rgba(255, 240, 215, 0.92)),
    radial-gradient(circle at 76% 34%, rgba(244, 122, 22, 0.34), transparent 23rem);
  opacity: 1;
}

.application-type-scene-web::before,
.application-type-scene-web::after {
  position: absolute;
  border: 1px solid rgba(169, 61, 8, 0.14);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.28);
  content: "";
}

.application-type-scene-web::before { top: 18%; right: 8%; width: 36%; height: 42%; transform: rotate(3deg); }
.application-type-scene-web::after { right: 26%; bottom: 11%; width: 28%; height: 31%; transform: rotate(-4deg); }

.application-type-scene-native {
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(255, 247, 232, 0.92), rgba(255, 239, 217, 0.58)),
    radial-gradient(circle at 76% 43%, rgba(233, 105, 24, 0.32), transparent 25rem),
    radial-gradient(circle at 88% 12%, rgba(128, 81, 167, 0.16), transparent 20rem);
  transform: scale(1.025);
}

.application-type-scene-native::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 246, 230, 0.94) 0, rgba(255, 246, 230, 0.67) 44%, rgba(255, 246, 230, 0.22));
  content: "";
}

.native-platform-map {
  position: absolute;
  top: 10%;
  right: 4%;
  width: min(54vw, 680px);
  height: 78%;
  opacity: 0.62;
  transform: rotate(-2deg);
}

.native-orbit,
.native-device,
.native-crystal {
  position: absolute;
}

.native-orbit {
  border: 1px solid rgba(169, 61, 8, 0.2);
  border-radius: 50%;
}

.native-orbit::before,
.native-orbit::after {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid #fff6e8;
  border-radius: 50%;
  background: #e96918;
  box-shadow: 0 3px 12px rgba(169, 61, 8, 0.3);
  content: "";
}

.native-orbit-wide { inset: 2% 0 3% 8%; }
.native-orbit-wide::before { top: 22%; left: -5px; }
.native-orbit-wide::after { right: 7%; bottom: 12%; }
.native-orbit-tight { inset: 17% 14% 18% 24%; border-color: rgba(128, 81, 167, 0.22); }
.native-orbit-tight::before { top: -5px; left: 47%; background: #8051a7; }
.native-orbit-tight::after { right: -5px; bottom: 34%; background: #d78a28; }

.native-device {
  border: 2px solid rgba(74, 42, 23, 0.58);
  background: rgba(255, 253, 249, 0.7);
  box-shadow: 0 18px 46px rgba(74, 42, 23, 0.16);
}

.native-device i {
  position: absolute;
  inset: 8px;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(150deg, rgba(255,255,255,0.7), transparent 48%),
    linear-gradient(135deg, #f8c77f, #e96918 52%, #8051a7);
}

.native-device i::before {
  position: absolute;
  right: 16%;
  bottom: -24%;
  width: 68%;
  height: 78%;
  border: 1px solid rgba(255,255,255,0.54);
  border-radius: 50%;
  content: "";
}

.native-device::after {
  position: absolute;
  color: #6a3b24;
  content: attr(data-platform);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.native-device-macos {
  top: 4%;
  left: 3%;
  width: 52%;
  height: 37%;
  border-radius: 13px;
}

.native-device-macos::before {
  position: absolute;
  bottom: -14px;
  left: 38%;
  width: 24%;
  height: 14px;
  border-inline: 2px solid rgba(74, 42, 23, 0.58);
  border-bottom: 2px solid rgba(74, 42, 23, 0.58);
  border-radius: 0 0 4px 4px;
  content: "";
}

.native-device-macos::after { top: calc(100% + 20px); left: 0; }

.native-device-ios {
  top: 24%;
  right: 5%;
  width: 19%;
  height: 46%;
  border-radius: 19px;
}

.native-device-ios::after { right: 0; bottom: -21px; }

.native-device-android {
  bottom: 1%;
  left: 24%;
  width: 21%;
  height: 42%;
  border-radius: 16px;
  transform: rotate(5deg);
}

.native-device-android::after { bottom: -22px; left: 0; }

.native-crystal {
  top: 43%;
  left: 53%;
  width: 64px;
  height: 84px;
  background: linear-gradient(145deg, #ffc36b 0 27%, #e96918 28% 66%, #a93d08 67%);
  clip-path: polygon(50% 0, 93% 24%, 78% 79%, 50% 100%, 18% 79%, 5% 24%);
  filter: drop-shadow(0 14px 22px rgba(169, 61, 8, 0.3));
  transform: translate(-50%, -50%);
}

.native-crystal::after {
  position: absolute;
  inset: 20% 24% 18% 49%;
  background: rgba(255, 248, 225, 0.5);
  clip-path: polygon(0 0, 100% 8%, 70% 100%, 0 74%);
  content: "";
}

.application-types-section[data-active-application="native"] .application-type-scene-web { opacity: 0; }
.application-types-section[data-active-application="native"] .application-type-scene-native { opacity: 1; transform: scale(1); }

.app-type-card {
  position: relative;
  z-index: 2;
  min-height: 430px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: var(--shadow-sm);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.app-type-default {
  background:
    radial-gradient(circle at 90% 0, rgba(244, 122, 22, 0.2), transparent 17rem),
    rgba(255, 253, 249, 0.94);
}

.app-type-preview {
  border-color: #cdbada;
  background:
    radial-gradient(circle at 90% 0, rgba(128, 81, 167, 0.18), transparent 17rem),
    rgba(255, 253, 249, 0.94);
}

.app-type-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 46px;
}

.app-type-card .status-badge {
  padding: 5px 9px;
  border: 1px solid currentColor;
  color: var(--amber-700);
  font-size: 0.58rem;
}

.app-type-preview .status-badge { color: var(--violet-dark); }

.app-type-card h3 {
  font-size: 2rem;
}

.app-type-card pre {
  margin: 28px 0 22px;
  overflow-x: auto;
  padding: 17px;
  border-radius: 11px;
  background: var(--terminal);
  color: #f7ede4;
  font-size: 0.76rem;
}

.app-type-card a {
  font-size: 0.8rem;
  font-weight: 820;
}

.app-type-card:hover,
.app-type-card:focus-within,
.app-type-card.is-centered {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.app-type-cta {
  display: inline-flex;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.app-type-card:hover .app-type-cta,
.app-type-card:focus-within .app-type-cta,
.app-type-card.is-centered .app-type-cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.boundary-copy {
  display: block;
  margin-top: 4px;
  color: var(--violet-dark);
  font-size: 0.74rem;
  font-weight: 720;
}

.grant-spotlight-section { padding-top: 0; }

.grant-spotlight {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid #8fc4c2;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 12%, rgba(73, 173, 169, 0.22), transparent 21rem),
    linear-gradient(135deg, var(--teal-soft), var(--paper) 60%);
  box-shadow: var(--shadow-md);
}

.grant-spotlight-art {
  position: relative;
  min-height: 390px;
  border-right: 1px solid #8fc4c2;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.32), rgba(65, 157, 154, 0.12));
}

.grant-spotlight-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.grant-file-stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 7px 10px;
  border: 1px solid var(--teal-dark);
  border-radius: 7px;
  background: rgba(247, 255, 253, 0.9);
  color: var(--teal-dark);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.grant-spotlight-copy {
  align-self: center;
  padding: clamp(34px, 5vw, 68px);
}

.grant-spotlight-copy h2 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.grant-spotlight-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.grant-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.grant-capabilities span {
  padding: 7px 10px;
  border: 1px solid #8fc4c2;
  border-radius: 999px;
  background: rgba(247, 255, 253, 0.82);
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 760;
}

.grant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.crew-section {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 253, 249, 0.88), rgba(255, 253, 249, 0.88)),
    radial-gradient(circle at 50% 20%, rgba(255, 166, 65, 0.18), transparent 35rem);
}

.crew-roster {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.personnel-card {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 510px;
  grid-template-rows: 255px 1fr;
  border: 1px solid currentColor;
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--amber-700);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.personnel-grant { color: var(--teal-dark); }
.personnel-gemma { color: var(--violet-dark); }

.personnel-photo {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid currentColor;
  background: var(--amber-100);
}

.personnel-grant .personnel-photo { background: var(--teal-soft); }
.personnel-gemma .personnel-photo { background: var(--violet-soft); }

.personnel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), filter 420ms ease;
}

.personnel-card:hover .personnel-photo img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.personnel-file {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 24px;
  background:
    linear-gradient(transparent 94%, rgba(169, 61, 8, 0.08) 94%),
    var(--paper);
  background-size: 100% 24px;
}

.file-label {
  display: block;
  margin-bottom: 10px;
  color: currentColor;
  font-family: var(--mono);
  font-size: 0.59rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.personnel-card h2,
.personnel-card h3 {
  color: var(--ink);
  font-size: 1.75rem;
}

.personnel-card .status-badge {
  align-self: flex-start;
  margin-top: 16px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  font-size: 0.54rem;
}

.file-link {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 820;
}

.crew-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.72rem;
}

.amber-way-panel {
  display: grid;
  min-height: 420px;
  align-items: center;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 38px;
  overflow: hidden;
  padding: 34px 58px 0;
  border: 1px solid var(--amber-700);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 16% 60%, rgba(255, 184, 80, 0.27), transparent 18rem),
    var(--amber-100);
  box-shadow: var(--shadow-md);
}

.amber-way-panel img {
  align-self: end;
  max-height: 390px;
  object-fit: contain;
}

.amber-way-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.amber-way-panel p:not(.eyebrow) {
  max-width: 620px;
  color: var(--ink-soft);
}

.page-hero {
  padding-block: 82px;
  background:
    linear-gradient(115deg, rgba(255, 238, 211, 0.92), rgba(255, 250, 243, 0.72)),
    radial-gradient(circle at 80% 20%, rgba(244, 119, 22, 0.22), transparent 22rem);
}

.page-hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
}

.page-hero h1 {
  max-width: 880px;
  font-size: clamp(3.1rem, 5.4vw, 5.5rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.page-hero-character,
.guide-amber {
  width: min(100%, 340px);
  max-height: 330px;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.guide-amber {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.guide-amber-hero { max-height: 390px; }

.open-role-panel {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  padding: 34px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--paper);
}

.open-role-mark {
  display: grid;
  width: 86px;
  height: 112px;
  place-items: center;
  border: 1px dashed var(--muted);
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 2.4rem;
}

.open-role-panel h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 2rem;
}

.open-role-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.character-profile-hero {
  padding-block: 74px;
  border-bottom: 1px solid var(--line);
}

.character-amber .character-profile-hero { background: linear-gradient(120deg, var(--amber-100), var(--amber-25)); }
.character-grant .character-profile-hero { background: linear-gradient(120deg, var(--teal-soft), var(--amber-25)); }
.character-gemma .character-profile-hero { background: linear-gradient(120deg, var(--violet-soft), var(--amber-25)); }

.character-profile-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr minmax(360px, 0.72fr);
  gap: 70px;
}

.character-profile-copy .eyebrow { margin-top: 30px; }

.character-profile h1 {
  font-size: clamp(5rem, 11vw, 10rem);
}

.character-deck {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 1.16rem;
}

.character-portrait-frame {
  position: relative;
  padding: 14px;
  border: 1px solid currentColor;
  border-radius: 18px;
  background: var(--paper);
  color: var(--amber-700);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}

.character-grant .character-portrait-frame { color: var(--teal-dark); transform: rotate(-1.2deg); }
.character-gemma .character-portrait-frame { color: var(--violet-dark); }

.character-portrait-frame img {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 11px;
  object-fit: cover;
}

.portrait-stamp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 0;
  font-family: var(--mono);
}

.portrait-stamp span { font-size: 0.57rem; letter-spacing: 0.09em; }

.profile-details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-memo {
  min-height: 360px;
}

.profile-memo h2 { font-size: 2.05rem; }

.profile-memo blockquote {
  margin: 36px 0 0;
  padding: 20px;
  border-left: 4px solid currentColor;
  background: var(--amber-100);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
}

.responsibility-list {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.responsibility-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--amber-25);
  font-size: 0.82rem;
}

.responsibility-list span { color: currentColor; }
.boundary-note { padding-top: 15px; border-top: 1px solid var(--line); }

.role-analogy-section { padding-top: 0; }

.role-analogy-panel {
  display: grid;
  min-height: 520px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.role-analogy-scene {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-right: 1px solid var(--line-strong);
  background: var(--amber-100);
}

.role-analogy-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-analogy-amber .role-analogy-scene {
  background:
    radial-gradient(circle at 70% 34%, rgba(244, 122, 22, 0.22), transparent 20rem),
    var(--amber-100);
}

.role-analogy-amber .role-analogy-scene img {
  object-fit: contain;
  object-position: right bottom;
}

.role-analogy-grant { border-color: #8fc4c2; }
.role-analogy-grant .role-analogy-scene { border-color: #8fc4c2; background: var(--teal-soft); }
.role-analogy-grant .role-analogy-scene img { object-position: 68% center; }
.role-analogy-gemma { border-color: #cdbada; }
.role-analogy-gemma .role-analogy-scene { border-color: #cdbada; background: var(--violet-soft); }
.role-analogy-gemma .role-analogy-scene img { object-position: 15% center; }

.role-analogy-copy {
  align-self: center;
  padding: clamp(34px, 5vw, 64px);
}

.role-analogy-copy h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 3.3vw, 3.55rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.role-analogy-copy > p:not(.file-label),
.responsibility-result > p { color: var(--ink-soft); }

.responsibility-picker {
  display: grid;
  gap: 7px;
  margin: 21px 0 30px;
}

.responsibility-picker label,
.responsibility-result-kicker {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.responsibility-picker select {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--amber-700) 50%) calc(100% - 17px) 20px / 5px 5px no-repeat,
    linear-gradient(135deg, var(--amber-700) 50%, transparent 50%) calc(100% - 12px) 20px / 5px 5px no-repeat,
    var(--amber-25);
  color: var(--ink);
  font: inherit;
  font-size: .78rem;
  font-weight: 760;
}

.responsibility-picker select:focus-visible { border-color: var(--amber-500); outline: 3px solid rgba(244, 122, 22, .18); }
.responsibility-result h2 { margin-top: 8px; }

.role-analogy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}

.role-analogy-chips span {
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 760;
}

.role-analogy-copy .boundary-note { margin-bottom: 0; color: var(--muted); font-size: 0.72rem; }

.crew-next-section { padding-top: 20px; }
.crew-next-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.crew-next-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 4.1rem); letter-spacing: -.04em; line-height: 1; }
.crew-next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.crew-next-card { display: grid; min-height: 220px; overflow: hidden; grid-template-columns: 190px 1fr; border: 1px solid currentColor; border-radius: var(--radius-md); background: var(--paper); color: var(--amber-700); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform 180ms ease, box-shadow 180ms ease; }
.crew-next-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.crew-next-grant { color: var(--teal-dark); }
.crew-next-gemma { color: var(--violet-dark); }
.crew-next-card img { width: 100%; height: 100%; border-right: 1px solid currentColor; object-fit: cover; }
.crew-next-card > span { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 24px; }
.crew-next-card small { font-size: .61rem; font-style: normal; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.crew-next-card strong { margin: 8px 0 18px; color: var(--ink); font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.crew-next-card em { margin-top: auto; color: currentColor; font-size: .7rem; font-style: normal; font-weight: 800; }

.principles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.principle-card {
  min-height: 320px;
}

.principle-card > span {
  display: block;
  margin-bottom: 58px;
  color: var(--amber-600);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 800;
}

.principle-card h2 { font-size: 2rem; }

.opinionated-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(38px, 7vw, 90px); padding: clamp(34px, 5vw, 68px); border: 1px solid var(--amber-700); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-md); }
.opinionated-intro h2 { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(3rem, 5.2vw, 5.3rem); letter-spacing: -.05em; line-height: .94; }
.opinionated-intro > p:not(.eyebrow) { color: var(--ink-soft); }
.opinionated-intro .boundary-note { margin-top: 28px; color: var(--muted); font-size: .74rem; }
.opinionated-practices { display: grid; align-content: center; gap: 12px; }
.opinionated-practices article { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--amber-25); }
.opinionated-practices span { color: var(--amber-600); font-family: var(--mono); font-size: .62rem; font-weight: 850; }
.opinionated-practices h3 { margin: 7px 0 8px; font-family: var(--serif); font-size: 1.35rem; }
.opinionated-practices p { margin: 0; color: var(--muted); font-size: .77rem; }

.way-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.way-jump-nav a {
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.7);
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 780;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.way-jump-nav a:hover,
.way-jump-nav a:focus-visible {
  border-color: var(--amber-600);
  color: var(--amber-700);
  transform: translateY(-1px);
}

.way-values-heading { margin-bottom: 34px; }

.section-dark {
  background: #241a15;
  color: #fff7ed;
}

.way-code-intro { padding-block: clamp(62px, 8vw, 104px); }

.way-code-intro-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: clamp(36px, 8vw, 110px);
}

.way-code-intro h2,
.way-section-heading h2,
.way-belief-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.1rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.way-code-intro h2 { max-width: 770px; }
.way-code-intro-grid > p { margin: 0; color: #cdbeb4; font-size: 0.96rem; }
.way-code-intro code { color: #ffbd74; }

.way-belief-section { scroll-margin-top: 86px; }

.way-belief-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(46px, 8vw, 116px);
}

.way-belief-number {
  margin: 0 0 24px;
  color: var(--amber-600);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.way-belief-copy > p:not(.eyebrow):not(.way-belief-number) {
  color: var(--ink-soft);
}

.way-belief-copy code,
.way-section-heading code,
.way-file-roles code,
.way-view-rules code,
.way-platform-grid code,
.site-is-proof code {
  color: var(--amber-700);
  font-family: var(--mono);
  font-size: 0.88em;
}

.way-contract-list {
  display: grid;
  gap: 9px;
  margin: 28px 0;
}

.way-contract-list span {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
}

.way-contract-list strong { color: var(--ink); }
.way-code-stack { min-width: 0; }

.way-code-window { margin: 0; }

.way-code-window pre {
  margin: 0;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: var(--terminal);
  color: #f5e8dc;
}

.way-code-window pre code {
  display: block;
  min-width: max-content;
  padding: 1.2rem 1.3rem;
  color: inherit;
  font: 0.78rem/1.72 var(--mono);
}

.mini-request-proof {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px 14px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.mini-request-proof code { color: var(--ink-soft); font: 0.64rem/1.55 var(--mono); }
.mini-request-proof > span { color: var(--amber-600); }
.mini-request-proof strong { color: var(--teal-dark); font-size: 0.69rem; }

.way-section-heading {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 7vw, 92px);
  margin-bottom: 42px;
}

.way-section-heading > p { margin: 0; color: var(--ink-soft); }

.way-filesystem-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.way-tree-window pre code { line-height: 1.64; }

.way-file-roles {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow-sm);
  list-style: none;
}

.way-file-roles li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.way-file-roles li:last-child { border-bottom: 0; }
.way-file-roles li > span { color: var(--amber-600); font-family: var(--mono); font-size: 0.61rem; font-weight: 850; }
.way-file-roles strong { color: var(--ink); font-size: 0.8rem; }
.way-file-roles p { margin: 5px 0 0; color: var(--muted); font-size: 0.73rem; }

.way-inline-note {
  margin: 22px 0 0;
  padding: 15px 18px;
  border-left: 3px solid var(--amber-500);
  background: var(--amber-100);
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.way-inline-note a { color: var(--amber-700); font-weight: 780; }

.way-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.way-view-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 26px;
}

.way-view-rules span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.way-view-rules strong,
.way-view-rules code { display: block; }
.way-view-rules strong { margin-bottom: 8px; color: var(--ink); font-size: 0.67rem; }
.way-view-rules code { overflow-wrap: anywhere; font-size: 0.61rem; }

.way-platform-section { scroll-margin-top: 86px; }
.way-section-heading-light h2 { color: #fff7ed; }
.way-section-heading-light > p { color: #cdbeb4; }
.way-section-heading-light .way-belief-number { color: #ffad5c; }

.way-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.way-platform-grid article {
  min-height: 235px;
  padding: 26px;
  border: 1px solid #534239;
  border-radius: 13px;
  background: #2c211c;
}

.way-platform-grid article > span { color: #ffad5c; font-family: var(--mono); font-size: 0.61rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.way-platform-grid h3 { margin: 34px 0 10px; color: #fff7ed; font-family: var(--serif); font-size: 1.45rem; line-height: 1.08; }
.way-platform-grid p { margin: 0; color: #bbaaa0; font-size: 0.76rem; }
.way-platform-grid code, .site-is-proof code { color: #ffbd74; }

.site-is-proof {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(30px, 7vw, 86px);
  margin: 18px 0 26px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid #76513a;
  border-radius: 14px;
  background: linear-gradient(135deg, #33231b, #251c17);
}

.site-is-proof h3 { margin: 0; color: #fff7ed; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.15rem); line-height: 1; }
.site-is-proof ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-is-proof li { color: #cdbeb4; font-size: 0.74rem; }
.site-is-proof li::before { margin-right: 9px; color: #80d6a3; content: "◆"; }
.text-link-light { color: #ffbd74; }

.way-performance-section { scroll-margin-top: 86px; }
.benchmark-result-panel { display: grid; overflow: hidden; grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr); border: 1px solid var(--amber-700); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-md); }
.benchmark-headline { display: flex; min-height: 310px; justify-content: center; flex-direction: column; padding: clamp(28px, 5vw, 52px); background: #241a15; color: #fff7ed; }
.benchmark-headline > span { color: #ffad5c; font-family: var(--mono); font-size: 0.64rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.benchmark-headline strong { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; font: 750 1rem/1 var(--mono); }
.benchmark-headline strong b { font-family: var(--serif); font-size: clamp(3.8rem, 6vw, 6.8rem); letter-spacing: -0.06em; }
.benchmark-headline p { margin: 15px 0 0; color: #bbaaa0; font-size: 0.7rem; }
.benchmark-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 22px 34px; }
.benchmark-facts div { display: flex; justify-content: center; flex-direction: column; padding: 20px; border-bottom: 1px solid var(--line); }
.benchmark-facts div:nth-last-child(-n + 2) { border-bottom: 0; }
.benchmark-facts dt { color: var(--amber-600); font-family: var(--mono); font-size: 0.59rem; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.benchmark-facts dd { margin: 7px 0 0; color: var(--ink); font-size: 0.78rem; font-weight: 730; }
.benchmark-boundary { margin: 22px 0 0; color: var(--muted); font-size: 0.76rem; }
.benchmark-boundary strong { color: var(--ink); }
.benchmark-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.privacy-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 50px;
}

.privacy-summary strong {
  padding: 8px 11px;
  border: 1px solid #9ccab5;
  border-radius: 999px;
  background: #e8f6ee;
  color: #1f623f;
  font-size: 0.69rem;
}

.policy-copy h2 {
  margin: 2.2em 0 0.5em;
  font-family: var(--serif);
  font-size: 1.8rem;
}

.policy-copy p { color: var(--ink-soft); }
.policy-date { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: 0.72rem; }

/* Documentation */
.docs-page-banner {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, rgba(255, 238, 211, .8), rgba(255, 250, 243, .72));
}

.docs-page-banner-inner {
  display: flex;
  min-height: 156px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 28px;
}

.docs-page-banner .eyebrow { margin-bottom: 8px; }
.docs-page-banner h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.15rem, 4.2vw, 4rem); letter-spacing: -.04em; line-height: 1; }
.docs-page-banner-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; color: var(--amber-700); font-size: .68rem; font-weight: 800; }

.docs-shell {
  display: grid;
  width: min(1340px, calc(100% - 44px));
  margin-inline: auto;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  gap: 52px;
  padding-block: 44px 96px;
}

.docs-sidebar {
  min-width: 0;
  overflow: visible;
}

.docs-sidebar-inner {
  position: relative;
  max-height: none;
  overflow: visible;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 249, 0.88);
}

.version-selector {
  min-width: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.version-selector label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.version-select-wrap {
  position: relative;
  min-width: 0;
}

.version-select-wrap::after {
  position: absolute;
  top: 50%;
  right: 11px;
  color: var(--amber-700);
  content: "▾";
  transform: translateY(-54%);
  pointer-events: none;
}

.version-selector select {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 42px;
  overflow: hidden;
  padding: 0 34px 0 11px;
  border: 1px solid var(--amber-300);
  border-radius: 9px;
  appearance: none;
  background: var(--amber-100);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-notice {
  margin: 10px 0 0;
  color: var(--amber-700);
  font-size: 0.67rem;
  line-height: 1.45;
}

.sidebar-heading {
  margin: 18px 8px 8px;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nav-tree,
.nav-tree ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-tree a {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.nav-tree a:hover,
.nav-tree a.active {
  background: var(--amber-100);
  color: var(--amber-700);
}

.nav-tree a.active { font-weight: 800; }

.nav-group > summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  overflow-wrap: anywhere;
}

.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover,
.nav-group > summary:focus-visible,
.nav-group.active-branch > summary { background: var(--amber-100); color: var(--amber-700); outline: 0; }

.nav-group-meta { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; }
.nav-tree a > span:first-child,
.nav-group > summary > span:first-child { min-width: 0; }
.nav-chevron { font-size: 1rem; line-height: 1; transition: transform 160ms ease; }
.nav-group[open] > summary .nav-chevron { transform: rotate(90deg); }
.nav-group-nested > summary { font-size: 0.71rem; }
.nav-tree .nav-overview { color: var(--amber-700); font-size: 0.67rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }

.nav-children {
  margin-left: 9px !important;
  padding-left: 9px !important;
  border-left: 1px solid var(--line);
}

.docs-main {
  width: min(100%, 880px);
  min-width: 0;
}

.docs-toolbar {
  display: flex;
  min-width: 0;
  align-items: stretch;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 8px;
}

.breadcrumbs {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px 8px;
  color: var(--muted);
  font-size: 0.73rem;
}

.breadcrumbs a { color: var(--amber-700); text-decoration: none; }
.breadcrumbs .separator { color: var(--line-strong); }

.docs-actions-list { display: flex; flex-wrap: wrap; gap: 7px; }
.docs-action-button { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink-soft); font: inherit; font-size: .66rem; font-weight: 760; text-decoration: none; cursor: pointer; }
.docs-action-button:hover, .docs-action-button:focus-visible { border-color: var(--amber-400); background: var(--amber-100); color: var(--amber-700); outline: 0; }
.docs-action-button img { width: 18px; height: 18px; object-fit: contain; }
.docs-markdown-icon { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--amber-700); font-family: var(--mono); font-size: .54rem; font-weight: 900; }
.openai-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #111; }
.openai-icon img { width: 15px; height: 15px; filter: invert(1); }
.gemini-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #5b7cfa, #b45ee5 52%, #ef7b50); color: white; font-size: .78rem; line-height: 1; }
.docs-tools-note { margin: 0 0 25px; color: var(--muted); font-size: .65rem; }

.docs-guide-moment {
  display: grid;
  align-items: center;
  grid-template-columns: 86px 1fr;
  gap: 15px;
  margin: 0 0 24px;
  padding: 12px 16px 12px 8px;
  border: 1px solid var(--amber-200);
  border-radius: 13px;
  background: linear-gradient(90deg, var(--amber-100), var(--paper));
}

.docs-guide-moment img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.docs-guide-moment strong {
  color: var(--amber-700);
  font-family: var(--serif);
}

.docs-guide-moment p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin-left: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--amber-100);
  color: var(--amber-700);
  font-size: 0.57rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-success { background: #dff2e5; color: #22633b; }
.badge-info { background: var(--teal-soft); color: var(--teal-dark); }

.docs-content {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.78;
}

.docs-content > :first-child { margin-top: 0; }

.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4 {
  color: var(--ink);
  font-family: var(--serif);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.docs-content h1 { display: none; }
.docs-content h2 { margin: 2.6em 0 0.8em; padding-bottom: 0.32em; border-bottom: 1px solid var(--line); font-size: 2rem; }
.docs-content h3 { margin: 2em 0 0.65em; font-size: 1.45rem; }
.docs-content p, .docs-content ul, .docs-content ol { margin-block: 1em; }
.docs-content li + li { margin-top: 0.32em; }

.docs-content :not(pre) > code {
  padding: 0.16em 0.4em;
  border: 1px solid #efd8c2;
  border-radius: 5px;
  background: var(--amber-100);
  color: #8b3308;
  font-size: 0.87em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.code-window,
.code-block-titled {
  margin: 1.5em 0;
  overflow: hidden;
  border: 1px solid #3d302a;
  border-radius: 12px;
  background: var(--terminal);
  box-shadow: 0 12px 32px rgba(46, 25, 15, 0.14);
}

.code-window-toolbar,
.code-block-titled .code-title {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid #3d302a;
  background: var(--terminal-raised);
  color: #c9b9af;
  font-family: var(--mono);
  font-size: 0.63rem;
}

.code-window-terminal .code-window-toolbar::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef6b58;
  box-shadow: 14px 0 #e7af4b, 28px 0 #60ab77;
  content: "";
}

.code-window-terminal .code-window-language { margin-left: 34px; }

.code-window-editor,
.code-block-titled {
  border-color: #4a3931;
  background: #211a17;
}

.code-window-editor .code-window-toolbar,
.code-block-titled .code-title {
  border-bottom-color: #cdbdaf;
  background: #f3ece4;
  color: #5f493e;
  font-weight: 780;
}

.code-window-editor .code-window-toolbar::before,
.code-block-titled .code-title::before {
  width: 11px;
  height: 13px;
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--amber-300), var(--amber-600));
  clip-path: polygon(50% 0, 100% 30%, 78% 100%, 22% 100%, 0 30%);
  content: "";
}

.code-window-editor .code-window-language { margin-left: 3px; }

.docs-content pre,
.post-article pre {
  margin: 1.45em 0;
  overflow-x: auto;
  padding: 0;
  border: 1px solid #3d302a;
  border-radius: 11px;
  background: var(--terminal);
  color: #f5e8dc;
}

.code-window pre,
.code-block-titled pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.docs-content pre code,
.post-article pre code {
  display: block;
  min-width: max-content;
  padding: 1.15rem 1.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.81rem;
  line-height: 1.72;
}

.token-comment { color: #8f847c; font-style: italic; }
.token-keyword { color: #ffad5c; font-weight: 720; }
.token-constant { color: #ffd38b; }
.token-string { color: #9bd9b0; }
.token-symbol { color: #b9a7ee; }
.token-variable { color: #8ed5d3; }
.token-number { color: #f3b6a8; }
.token-function { color: #f8e5c6; }
.token-operator { color: #e999cb; }

.docs-content blockquote,
.hint {
  margin: 1.5em 0;
  padding: 15px 18px;
  border: 1px solid var(--amber-200);
  border-left: 4px solid var(--amber-500);
  border-radius: 8px;
  background: var(--amber-100);
  color: var(--ink-soft);
}

.docs-content blockquote > :first-child, .hint > :first-child { margin-top: 0; }
.docs-content blockquote > :last-child, .hint > :last-child { margin-bottom: 0; }
.hint-info { border-color: #9bc9c8; border-left-color: var(--teal); background: var(--teal-soft); }
.hint-warning { border-color: var(--amber-300); border-left-color: var(--amber-600); background: var(--amber-100); }
.hint-success { border-color: #a5d8b3; border-left-color: #32814c; background: #eaf7ed; }
.hint-danger { border-color: #e7aaa0; border-left-color: #ad3927; background: #fbeae7; }

.table-scroll {
  width: 100%;
  margin: 1.5em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.docs-content table {
  display: table;
  width: 100%;
  min-width: 620px;
  margin: 0;
  border-spacing: 0;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.docs-content th,
.docs-content td {
  padding: 11px 13px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-content tr:last-child td { border-bottom: 0; }
.docs-content th:last-child, .docs-content td:last-child { border-right: 0; }
.docs-content th { background: var(--amber-100); color: var(--ink); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; }
.docs-content tbody tr:nth-child(even) { background: rgba(255, 240, 215, 0.32); }

.page-ref { margin: 1.5em 0; padding: 15px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }

.version-timeline { margin: 0 0 28px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.version-timeline-track { display: flex; gap: 8px; }
.version-timeline-segment { min-width: 0; flex: 1; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--amber-50); text-align: center; }
.version-timeline-segment.current { border-color: var(--amber-500); background: var(--amber-100); }
.segment-link { color: inherit; text-decoration: none; }
.segment-bar { height: 5px; margin-bottom: 5px; border-radius: 99px; background: var(--teal); }
.segment-bar.replacement { background: var(--violet); }
.segment-bar.unavailable { background: #c9bdb4; }
.segment-label { color: var(--muted); font-size: 0.61rem; font-weight: 750; }
.segment-note { margin-top: 3px; color: var(--muted); font-size: 0.54rem; line-height: 1.25; }
.replacement-link:hover .segment-note { color: var(--violet-dark); }

.prev-next-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.prev-next-link { display: block; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-decoration: none; }
.prev-next-link.next { text-align: right; }
.prev-next-link small { display: block; color: var(--muted); }
.prev-next-link strong { color: var(--ink); font-family: var(--serif); }
.docs-mobile-nav { display: none; }

/* Blog and brand */
.blog-hero-grid {
  display: grid;
  align-items: end;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
}

.blog-hero-art {
  position: relative;
  min-height: 330px;
}

.blog-hero-art img {
  position: absolute;
  right: -3%;
  bottom: -68px;
  width: 370px;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 190px 190px 24px 24px;
  box-shadow: var(--shadow-md);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.post-card:first-child {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1.15fr 0.85fr;
}

.post-card-image {
  min-height: 220px;
  overflow: hidden;
  background: var(--amber-100);
}

.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-body { padding: 24px; }
.post-meta { color: var(--muted); font-size: 0.7rem; }
.post-card h2 { margin: 9px 0 12px; font-family: var(--serif); font-size: 1.65rem; line-height: 1.12; }
.post-card:first-child h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card p { color: var(--muted); font-size: 0.8rem; }
.post-author { display: flex; align-items: center; gap: 9px; margin-top: 20px; color: var(--muted); font-size: 0.68rem; }
.post-author img { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }

.post-article { color: var(--ink-soft); }
.post-article h1, .post-article h2, .post-article h3 { color: var(--ink); font-family: var(--serif); }

.brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.brand-card h2 { font-size: 2.2rem; }
.brand-card-wide { grid-column: 1 / -1; }
.logo-stage { display: grid; min-height: 440px; grid-template-columns: 1fr .8fr; gap: 26px; }
.logo-scale-row { display: flex; align-items: flex-end; justify-content: center; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--amber-100); }
.logo-scale-row img:first-child { width: 122px; height: 164px; }
.character-mark-scale-row { display: grid; align-items: end; grid-template-columns: minmax(0, 1fr) 48px; grid-template-rows: 1fr auto; gap: 10px 14px; }
.character-mark-scale-row img { object-fit: contain; }
.character-mark-scale-row img:first-child { width: min(100%, 150px); height: 190px; grid-row: 1 / 3; justify-self: center; }
.character-mark-scale-row img:nth-child(2) { width: 48px; height: 48px; }
.character-mark-scale-row img:nth-child(3) { width: 32px; height: 32px; justify-self: center; }
.crystal-motif-card { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.crystal-motif-card > div { max-width: 720px; }
.crystal-motif-card > img { width: 72px; height: 96px; flex: 0 0 auto; }
.type-specimen { min-height: 440px; }
.display-sample { margin: 30px 0; font-family: var(--serif); font-size: clamp(3rem, 5vw, 5.3rem); letter-spacing: -.05em; line-height: .96; }
.display-sample em { color: var(--amber-600); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 26px; }
.swatch { min-height: 110px; padding: 10px; border: 1px solid rgba(50, 30, 20, 0.16); border-radius: 9px; font-family: var(--mono); font-size: 0.61rem; }
.component-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.component-demo { min-height: 180px; padding: 25px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.component-demo-wide { grid-column: 1 / -1; }
.component-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.badge-preview, .badge-supported { padding: 5px 9px; border: 1px solid currentColor; font-size: .58rem; }
.badge-preview { color: var(--violet-dark); background: var(--violet-soft); }
.badge-supported { color: #22633b; background: #e8f6ee; }
.mini-terminal { margin-top: 16px; }
.mini-terminal .terminal-screen { height: auto; min-height: 128px; }
.motion-spec { display: grid; align-items: start; grid-template-columns: 1fr 1fr; gap: 44px; padding: 46px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--paper); }
.motion-spec h2 { margin: 0; font-family: var(--serif); font-size: 3rem; line-height: 1; }
.motion-spec ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.motion-spec li { padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

.sponsor-feature,
.showcase-feature,
.community-invite {
  display: grid;
  align-items: center;
  gap: 34px;
  padding: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.sponsor-feature {
  grid-template-columns: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(125deg, rgba(255, 253, 249, 0.98), rgba(255, 236, 205, 0.72)),
    var(--paper);
}

.sponsor-feature h2,
.showcase-copy h2,
.community-invite h2,
.community-card h3 {
  margin: 10px 0 12px;
  font-family: var(--serif);
  line-height: 1;
}

.sponsor-feature h2,
.showcase-copy h2,
.community-invite h2 {
  font-size: clamp(2rem, 3.4vw, 3.45rem);
  letter-spacing: -0.04em;
}

.sponsor-feature p,
.showcase-copy > p,
.community-invite p,
.community-card p {
  color: var(--ink-soft);
}

.sponsor-crystal {
  display: grid;
  width: 126px;
  height: 150px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 253, 249, 0.74);
}

.sponsor-crystal img {
  width: 64px;
  height: 88px;
}

.contributor-grid,
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.showcase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow-sm);
}

.community-card h3 {
  font-size: 2rem;
}

.community-card .text-link {
  margin-top: auto;
  padding-top: 20px;
}

.community-invite {
  grid-template-columns: minmax(0, 1fr) auto;
}

.community-invite p {
  max-width: 760px;
  margin-bottom: 0;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-feature {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
}

.showcase-site-preview {
  overflow: hidden;
  min-height: 460px;
  border: 1px solid #4b3b32;
  border-radius: 15px;
  background: #fffaf3;
  box-shadow: var(--shadow-lg);
}

.showcase-browser-bar {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid #4b3b32;
  background: #2b211c;
  color: #decfc4;
}

.showcase-browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f07b26;
}

.showcase-browser-bar span:nth-child(2) { background: #e3bd52; }
.showcase-browser-bar span:nth-child(3) { background: #5aa47a; }

.showcase-browser-bar b {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
}

.showcase-preview-body {
  display: grid;
  min-height: 416px;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
  padding: 32px 14px 14px 34px;
  background:
    radial-gradient(circle at 82% 36%, rgba(244, 122, 22, 0.2), transparent 13rem),
    linear-gradient(120deg, #fffdf9, #fff0d8);
}

.showcase-preview-body strong {
  display: block;
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(2.45rem, 4vw, 4.35rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.showcase-preview-body em {
  color: var(--amber-600);
}

.showcase-preview-body img {
  width: min(100%, 280px);
  align-self: end;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-copy .status-badge {
  align-self: flex-start;
}

.evidence-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.showcase-metric {
  margin: 22px 0 8px;
}

.showcase-metric strong {
  display: block;
  color: var(--amber-700);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6vw, 6.2rem);
  letter-spacing: -0.055em;
  line-height: 0.8;
}

.benchmark-caveat {
  padding: 12px;
  border-left: 3px solid var(--amber-500);
  background: var(--amber-100);
  font-size: 0.72rem;
}

.site-footer {
  padding-block: 70px 38px;
  border-top: 1px solid var(--line);
  background: #241a15;
  color: #e6d8ce;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.55fr);
  gap: 44px;
}

.site-footer .brand-lockup { color: #fff; }
.site-footer p { max-width: 410px; color: #ad9d92; font-size: 0.78rem; }
.site-footer h2 { margin: 0 0 14px; color: #fff; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.site-footer a { display: block; margin: 7px 0; color: #cdbeb4; font-size: 0.76rem; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid #45362e; color: #8f7d72; font-size: 0.68rem; }

@media (min-width: 1500px) {
  .hero-v2,
  .hero-grid { min-height: 800px; }
  .hero-grid { width: min(1560px, calc(100% - 80px)); grid-template-columns: minmax(0, 1.08fr) minmax(650px, 0.92fr); }
  .hero-art-amber > picture > img { right: -16%; bottom: -88px; width: 158%; }
  .character-callout { right: 1%; bottom: 4%; }
}

@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: minmax(0, .93fr) minmax(460px, 1.07fr); }
  .hero-art-amber > picture > img { right: -18%; bottom: -62px; width: 133%; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew-roster { grid-template-columns: 1fr; }
  .personnel-card { min-height: 300px; grid-template-columns: 260px 1fr; grid-template-rows: 1fr; }
  .personnel-photo { border-right: 1px solid currentColor; border-bottom: 0; }
  .build-demo { display: grid; min-height: 0; grid-template-columns: 1fr; grid-template-rows: auto 0fr; gap: 0; }
  .build-demo.is-browser-open { grid-template-rows: auto 1fr; gap: 16px; }
  .terminal-demo,
  .build-demo.is-browser-open .terminal-demo { position: relative; top: auto; bottom: auto; left: auto; width: 100%; transform: none; }
  .terminal-screen, .generated-app-page { height: auto; min-height: 360px; }
  .app-preview-window { position: relative; top: auto; right: auto; bottom: auto; width: 100%; min-height: 0; max-height: 0; border-width: 0; transform: translateY(18px) scaleY(0.02); transform-origin: top center; }
  .build-demo.is-browser-open .app-preview-window { min-height: 405px; max-height: 520px; border-width: 1px; }
  .grant-spotlight { grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr); }
  .grant-spotlight-art { min-height: 340px; }
  .docs-shell { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 30px; }
  .way-belief-grid { grid-template-columns: minmax(0, 0.75fr) minmax(470px, 1.25fr); gap: 44px; }
  .way-view-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.3fr repeat(2, .65fr); }
  .footer-grid > :last-child { display: none; }
}

@media (max-width: 820px) {
  .nav-inner { min-height: 67px; }
  .brand-lockup { font-size: 1.06rem; }
  .brand-lockup img { width: 24px; height: 32px; }
  .brand-lockup .brand-character-mark { width: 33px; height: 42px; }
  .brand-version { display: none; }
  .menu-button { display: inline-flex; }

  .site-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 0 0 13px 13px;
    background: var(--paper);
    box-shadow: var(--shadow-md);
  }

  .site-menu[data-open] { display: flex; }
  .site-menu > a { padding: 11px 12px; }

  .hero-v2 { min-height: 0; }
  .hero-grid { display: block; min-height: 0; padding-block: 60px 0; }
  .hero h1 { font-size: clamp(3.4rem, 12vw, 5.4rem); }
  .hero-art { min-height: 520px; margin-top: -10px; }
  .hero-art-amber > picture > img { right: -8%; bottom: -58px; width: 116%; }
  .character-callout { right: 1%; bottom: 8%; }

  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .app-type-grid, .profile-details-grid, .principles-grid, .brand-grid { grid-template-columns: 1fr; }
  .brand-card-wide { grid-column: auto; }
  .logo-stage, .motion-spec { grid-template-columns: 1fr; }
  .sponsor-feature { grid-template-columns: auto minmax(0, 1fr); }
  .sponsor-feature .button { grid-column: 1 / -1; justify-self: start; }
  .contributor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-feature { grid-template-columns: 1fr; }
  .app-type-card { min-height: 0; }
  .native-platform-map { top: 16%; right: -10%; width: 76vw; opacity: 0.48; }
  .character-profile-grid { grid-template-columns: 1fr; }
  .role-analogy-panel { grid-template-columns: 1fr; }
  .role-analogy-scene { min-height: 430px; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .crew-next-grid, .opinionated-panel { grid-template-columns: 1fr; }
  .way-code-intro-grid,
  .way-belief-grid,
  .way-section-heading,
  .way-filesystem-grid,
  .site-is-proof,
  .benchmark-result-panel { grid-template-columns: 1fr; }
  .way-code-intro-grid,
  .way-section-heading { align-items: start; }
  .way-template-grid { grid-template-columns: 1fr; }
  .benchmark-headline { min-height: 250px; }
  .character-portrait-frame { width: min(520px, 100%); }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-character, .guide-amber { justify-self: center; }
  .amber-way-panel { grid-template-columns: .85fr 1.15fr; padding-inline: 28px; }
  .open-role-panel { grid-template-columns: auto 1fr; }
  .open-role-panel .button { grid-column: 1 / -1; }

  .docs-shell { display: block; width: min(100% - 30px, 1200px); padding-block: 24px 70px; }
  .docs-page-banner-inner { min-height: 132px; }
  .docs-shell > .docs-sidebar { display: none; }
  .docs-mobile-nav { display: block; margin-bottom: 24px; }
  .docs-mobile-nav summary { padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 0.76rem; font-weight: 800; cursor: pointer; }
  .docs-mobile-nav[open] summary { border-radius: 9px 9px 0 0; }
  .docs-mobile-nav .docs-sidebar-inner { position: static; max-height: none; border-radius: 0 0 9px 9px; }
  .docs-main { width: 100%; }

  .blog-hero-grid { grid-template-columns: 1fr; }
  .blog-hero-art { min-height: 240px; }
  .blog-hero-art img { right: 50%; bottom: -62px; width: 300px; transform: translateX(50%); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card:first-child { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-container,
  .content-narrow { width: min(100% - 28px, 1200px); }

  .release-strip .site-container { min-height: 54px; gap: 7px; font-size: 0.64rem; }
  .release-strip a { display: none; }
  .hero-grid { padding-top: 52px; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 4.5rem); }
  .hero-proof-row { display: grid; }
  .hero-proof-row > span { justify-content: flex-start; }
  .hero-art { min-height: 440px; }
  .hero-art-amber > picture > img { right: -9%; bottom: -42px; width: 116%; }
  .character-callout { right: 0; bottom: 4%; min-width: 190px; }

  .section, .demo-section { padding-block: 72px; }
  .section-heading h2 { font-size: 2.85rem; }
  .build-demo { margin-inline: -8px; padding: 8px; }
  .terminal-screen { min-height: 350px; height: 350px; padding: 18px; font-size: 0.66rem; }
  .generated-app-page { min-height: 350px; padding: 0; }
  .terminal-title { display: none; }
  .terminal-controls { gap: 5px; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 245px; }
  .application-type-scene-native::before { background: rgba(255, 246, 230, 0.64); }
  .native-platform-map { top: 34%; right: -34%; width: 112vw; height: 58%; opacity: 0.42; }
  .app-type-cta { display: inline-flex; }
  .grant-spotlight { grid-template-columns: 1fr; }
  .grant-spotlight-art { min-height: 330px; border-right: 0; border-bottom: 1px solid #8fc4c2; }
  .grant-spotlight-copy { padding: 30px 24px 34px; }
  .grant-actions { align-items: stretch; flex-direction: column; }
  .grant-actions .button { width: 100%; text-align: center; }
  .personnel-card { display: grid; min-height: 0; grid-template-columns: 1fr; grid-template-rows: 250px 1fr; }
  .personnel-photo { border-right: 0; border-bottom: 1px solid currentColor; }
  .crew-actions { align-items: stretch; flex-direction: column; text-align: center; }
  .amber-way-panel { display: flex; padding: 26px 24px 0; flex-direction: column-reverse; }
  .amber-way-panel img { max-height: 280px; }
  .open-role-panel { grid-template-columns: 1fr; }
  .open-role-mark { width: 68px; height: 88px; }
  .sponsor-feature,
  .community-invite { grid-template-columns: 1fr; padding: 28px 22px; }
  .sponsor-feature .button { width: 100%; }
  .sponsor-crystal { width: 88px; height: 104px; }
  .sponsor-crystal img { width: 48px; height: 66px; }
  .contributor-grid,
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-feature { padding: 12px; }
  .showcase-site-preview { min-height: 370px; }
  .showcase-preview-body { min-height: 326px; grid-template-columns: 1fr; padding: 26px 24px 0; }
  .showcase-preview-body img { max-height: 180px; justify-self: end; object-fit: contain; }
  .showcase-copy { padding: 18px 10px 14px; }

  .page-hero { padding-block: 62px; }
  .page-hero h1 { font-size: 3.3rem; }
  .character-profile h1 { font-size: 5rem; }
  .character-profile-grid { gap: 40px; }
  .profile-memo { min-height: 0; }
  .role-analogy-scene { min-height: 330px; }
  .role-analogy-copy { padding: 30px 24px 34px; }
  .crew-next-heading { align-items: flex-start; flex-direction: column; }
  .crew-next-card { min-height: 160px; grid-template-columns: 120px 1fr; }
  .crew-next-card > span { padding: 18px; }
  .crew-next-card strong { font-size: 1.8rem; }
  .opinionated-panel { padding: 28px 22px; }
  .opinionated-intro h2 { font-size: 3rem; }
  .way-jump-nav { gap: 6px; }
  .way-code-intro h2,
  .way-section-heading h2,
  .way-belief-copy h2 { font-size: 3rem; }
  .way-platform-grid,
  .way-view-rules,
  .benchmark-facts { grid-template-columns: 1fr; }
  .way-platform-grid article { min-height: 0; }
  .site-is-proof { padding: 26px 22px; }
  .benchmark-facts div,
  .benchmark-facts div:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .benchmark-facts div:last-child { border-bottom: 0; }
  .mini-request-proof { grid-template-columns: 1fr auto auto; }

  .docs-page-banner-inner { min-height: 0; align-items: flex-start; flex-direction: column; gap: 14px; padding-block: 24px; }
  .docs-page-banner h1 { font-size: 2.45rem; }
  .docs-toolbar { align-items: stretch; }
  .docs-actions-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-action-button { justify-content: flex-start; }
  .breadcrumbs { font-size: 0.65rem; }
  .copy-page { font-size: 0.62rem; }
  .docs-content { font-size: 0.9rem; }
  .docs-content pre code, .post-article pre code { padding: 1rem; font-size: 0.74rem; }
  .prev-next-nav { grid-template-columns: 1fr; }
  .version-timeline { overflow-x: auto; }
  .version-timeline-track { min-width: 290px; }

  .post-grid { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .component-shelf { grid-template-columns: 1fr; }
  .component-demo-wide { grid-column: auto; }
  .crystal-motif-card { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@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; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  [data-tilt] { transform: none !important; }
}
