:root {
  --bg: #f2f4f1;
  --bg-raised: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f8f6;
  --surface-3: #eef0ec;
  --ink: #181a18;
  --ink-2: #555b54;
  --muted: #676d66;
  --line: #e2e5df;
  --line-strong: #d4d9d1;
  --line-soft: rgba(24, 26, 24, 0.08);
  --accent: #15803d;
  --accent-strong: #166534;
  --accent-deep: #14532d;
  --accent-soft: #eaf6ee;
  --accent-line: #b9d8c2;
  --accent-ink: #ffffff;
  --danger: #a32c2c;
  --font-sans: 'Geist', 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'Cascadia Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 5.2vw, 84px);
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 18px;
  --shadow-soft: 0 1px 2px rgba(24, 26, 24, 0.04), 0 10px 30px rgba(24, 26, 24, 0.06);
  --shadow-lift: 0 2px 4px rgba(24, 26, 24, 0.04), 0 20px 50px rgba(24, 26, 24, 0.09);
  --shadow-float: 0 4px 10px rgba(24, 26, 24, 0.05), 0 34px 90px rgba(24, 26, 24, 0.13);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #141815;
  --bg-raised: #1c221e;
  --surface: #1c221e;
  --surface-2: #242c26;
  --surface-3: #303a32;
  --ink: #eef2ed;
  --ink-2: #c0cabe;
  --muted: #a2afa0;
  --line: #38443a;
  --line-strong: #536353;
  --line-soft: rgba(238, 242, 237, 0.08);
  --accent: #63c58b;
  --accent-strong: #79d79e;
  --accent-deep: #b5ecc8;
  --accent-soft: #253e2e;
  --accent-line: #45674e;
  --accent-ink: #102317;
  --danger: #ffaaa3;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 4px 10px rgba(0, 0, 0, 0.5), 0 34px 90px rgba(0, 0, 0, 0.65);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #141815;
    --bg-raised: #1c221e;
    --surface: #1c221e;
    --surface-2: #242c26;
    --surface-3: #303a32;
    --ink: #eef2ed;
    --ink-2: #c0cabe;
    --muted: #a2afa0;
    --line: #38443a;
    --line-strong: #536353;
    --line-soft: rgba(238, 242, 237, 0.08);
    --accent: #63c58b;
    --accent-strong: #79d79e;
    --accent-deep: #b5ecc8;
    --accent-soft: #253e2e;
    --accent-line: #45674e;
    --accent-ink: #102317;
    --danger: #ffaaa3;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-float: 0 4px 10px rgba(0, 0, 0, 0.5), 0 34px 90px rgba(0, 0, 0, 0.65);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
  background: var(--bg);
}

:root[data-theme='dark'] ::selection {

    background: #253e2e;
    color: #b5ecc8;
  
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) ::selection {

    background: #253e2e;
    color: #b5ecc8;
  
  }
}

:root[data-theme='dark'] .stage-dots {

    background-image: radial-gradient(rgba(238, 242, 237, 0.14) 1.1px, transparent 1.1px);
  
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .stage-dots {

    background-image: radial-gradient(rgba(238, 242, 237, 0.14) 1.1px, transparent 1.1px);
  
  }
}

:root[data-theme='dark'] .stage-vignette {

    background:
      linear-gradient(90deg, rgba(20, 24, 21, 0.72) 0%, transparent 34%, transparent 70%, rgba(20, 24, 21, 0.52) 100%),
      linear-gradient(180deg, rgba(20, 24, 21, 0.6) 0%, transparent 20%, transparent 76%, rgba(20, 24, 21, 0.78) 100%);
  
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .stage-vignette {

    background:
      linear-gradient(90deg, rgba(20, 24, 21, 0.72) 0%, transparent 34%, transparent 70%, rgba(20, 24, 21, 0.52) 100%),
      linear-gradient(180deg, rgba(20, 24, 21, 0.6) 0%, transparent 20%, transparent 76%, rgba(20, 24, 21, 0.78) 100%);
  
  }
}

:root[data-theme='dark'] .scene-fallback {

    background:
      radial-gradient(ellipse at 66% 30%, rgba(45, 85, 58, 0.35), transparent 41%),
      radial-gradient(ellipse at 30% 90%, rgba(25, 45, 33, 0.5), transparent 52%),
      radial-gradient(rgba(238, 242, 237, 0.14) 1.1px, transparent 1.1px) 0 0 / 24px 24px,
      var(--bg);
  
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .scene-fallback {

    background:
      radial-gradient(ellipse at 66% 30%, rgba(45, 85, 58, 0.35), transparent 41%),
      radial-gradient(ellipse at 30% 90%, rgba(25, 45, 33, 0.5), transparent 52%),
      radial-gradient(rgba(238, 242, 237, 0.14) 1.1px, transparent 1.1px) 0 0 / 24px 24px,
      var(--bg);
  
  }
}

:root[data-theme='dark'] .site-header.is-scrolled {

    background: rgba(28, 34, 30, 0.85);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
  
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .site-header.is-scrolled {

    background: rgba(28, 34, 30, 0.85);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
  
  }
}

:root[data-theme='dark'] .menu-button {

    background: rgba(28, 34, 30, 0.75);
  
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .menu-button {

    background: rgba(28, 34, 30, 0.75);
  
  }
}

:root[data-theme='dark'] .journey-dock {

    background: rgba(28, 34, 30, 0.94);
  
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .journey-dock {

    background: rgba(28, 34, 30, 0.94);
  
  }
}

:root[data-theme='dark'] .brief-console {

    background: rgba(28, 34, 30, 0.88);
  
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brief-console {

    background: rgba(28, 34, 30, 0.88);
  
  }
}

:root[data-theme='dark'] .delivery-card {

    background: rgba(28, 34, 30, 0.8);
  
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .delivery-card {

    background: rgba(28, 34, 30, 0.8);
  
  }
}

:root[data-theme='dark'] .studio::before {

    background: linear-gradient(180deg, transparent 0%, rgba(20, 24, 21, 0.56) 44%, rgba(20, 24, 21, 0.9) 78%, var(--bg) 100%);
  
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .studio::before {

    background: linear-gradient(180deg, transparent 0%, rgba(20, 24, 21, 0.56) 44%, rgba(20, 24, 21, 0.9) 78%, var(--bg) 100%);
  
  }
}

:root[data-theme='dark'] .brief-dialog::backdrop,
:root[data-theme='dark'] .menu-dialog::backdrop {

    background: rgba(0, 0, 0, 0.7);
  
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brief-dialog::backdrop,
  :root:not([data-theme='light']) .menu-dialog::backdrop {

    background: rgba(0, 0, 0, 0.7);
  
  }
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.theme-toggle-btn:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line-strong);
}
.theme-icon-light { display: none; }
.theme-icon-dark { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-icon-light { display: block; }
  :root:not([data-theme='light']) .theme-icon-dark { display: none; }
}
:root[data-theme='dark'] .theme-icon-dark { display: none !important; }
:root[data-theme='dark'] .theme-icon-light { display: block !important; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: #ccebd6;
  color: var(--accent-deep);
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:where(a, button, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.stage-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(24, 26, 24, 0.12) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.55));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.55));
}

#scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}

.scene-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 66% 30%, rgba(185, 216, 194, 0.35), transparent 41%),
    radial-gradient(ellipse at 30% 90%, rgba(234, 246, 238, 0.6), transparent 52%),
    radial-gradient(rgba(24, 26, 24, 0.12) 1.1px, transparent 1.1px) 0 0 / 24px 24px,
    var(--bg);
  transition: opacity 500ms var(--ease);
}

body.no-webgl .scene-fallback {
  opacity: 1;
}

body.no-webgl #scene {
  display: none;
}

.fallback-ring {
  position: absolute;
  top: 48%;
  left: 64%;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(21, 128, 61, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: fallback-drift 16s linear infinite;
}

.fallback-ring--two {
  width: min(33vw, 450px);
  border-color: rgba(21, 128, 61, 0.14);
  animation-duration: 12s;
  animation-direction: reverse;
}

.fallback-ring--three {
  width: min(21vw, 290px);
  border-color: rgba(21, 128, 61, 0.09);
  animation-duration: 9s;
}

.fallback-glow {
  position: absolute;
  top: 48%;
  left: 64%;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(185, 216, 194, 0.55);
  filter: blur(50px);
  transform: translate(-50%, -50%);
}

@keyframes fallback-drift {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.stage-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(242, 244, 241, 0.72) 0%, transparent 34%, transparent 70%, rgba(242, 244, 241, 0.52) 100%),
    linear-gradient(180deg, rgba(242, 244, 241, 0.6) 0%, transparent 20%, transparent 76%, rgba(242, 244, 241, 0.78) 100%);
}

.stage-grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 210 210' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 260ms var(--ease), border-color 260ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.84);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(24, 26, 24, 0.02), 0 10px 30px rgba(24, 26, 24, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

/* Brand artwork: one lockup element renders the light or dark rendition for the active theme. */
:root {
  --brand-lockup: url('/assets/brand/logo-full-light.png');
}

:root[data-theme='dark'] {
  --brand-lockup: url('/assets/brand/logo-full-dark.png');
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brand-lockup: url('/assets/brand/logo-full-dark.png');
  }
}

.brand-lockup {
  display: block;
  width: 146px;
  flex: none;
  aspect-ratio: 2322 / 739;
  background: var(--brand-lockup) left center / contain no-repeat;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.primary-nav a {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.primary-nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

/* The page ships the signed-out header; account-header.js flips data-auth when a session exists. */
.header-actions .account-only {
  display: none;
}

:root[data-auth='in'] .guest-only {
  display: none;
}

:root[data-auth='in'] .header-actions .account-only {
  display: inline-flex;
}

.account-menu {
  position: relative;
  align-items: center;
}

.avatar-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}

.avatar-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.avatar-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.account-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: 232px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-float);
}

.account-popover[hidden] {
  display: none;
}

.account-identity {
  display: grid;
  gap: 2px;
  padding: 10px 12px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}

.account-identity strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity span {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 12px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-item:hover,
.account-item:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
}

.account-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}


.header-link {
  color: var(--ink-2);
  font-size: 12px;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.header-link:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.button--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 12px;
}

.button--large {
  min-height: 56px;
  padding: 0 28px;
  font-size: 14px;
}

.button--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(24, 26, 24, 0.1), 0 10px 24px rgba(21, 128, 61, 0.16);
}

.button--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(24, 26, 24, 0.1), 0 14px 32px rgba(21, 128, 61, 0.22);
}

.button--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button--ghost:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.menu-button span {
  display: block;
  width: 15px;
  height: 1px;
  background: currentColor;
}

.chapter-rail {
  position: fixed;
  top: 50%;
  right: 22px;
  z-index: 40;
  display: grid;
  gap: 11px;
  transform: translateY(-50%);
}

.chapter-rail a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: color 220ms var(--ease);
}

.chapter-rail span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.chapter-rail i {
  display: block;
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 240ms var(--ease), background 240ms var(--ease);
}

.chapter-rail a:hover span,
.chapter-rail a.is-active span {
  opacity: 1;
}

.chapter-rail a:hover i {
  width: 22px;
}

.chapter-rail a.is-active {
  color: var(--accent);
}

.chapter-rail a.is-active i {
  width: 28px;
  background: var(--accent);
}

.journey-dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 55;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.journey-dock.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body.is-locked .journey-dock {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.journey-now {
  display: grid;
  gap: 2px;
  min-width: 0;
  max-width: 132px;
  text-decoration: none;
}

.journey-now .mono {
  color: var(--accent-strong);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.journey-now strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-steps {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.journey-steps a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 40px;
}

.journey-steps i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: width 220ms var(--ease), border-radius 220ms var(--ease), background 220ms var(--ease);
}

.journey-steps a[aria-current="step"] i {
  width: 18px;
  border-radius: 999px;
  background: var(--accent);
}

.journey-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.journey-next span:last-child {
  color: var(--accent);
  font-size: 12px;
}

main,
.site-footer {
  position: relative;
  z-index: 3;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: clamp(132px, 16vh, 210px) var(--gutter) clamp(90px, 12vh, 140px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(48px, 8vw, 150px);
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 870px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow--hero {
  margin-bottom: clamp(24px, 4vh, 48px);
}

.signal {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.12);
}

.hero-title {
  margin: 0;
  font-size: clamp(58px, 7.6vw, 118px);
  font-weight: 500;
  letter-spacing: -0.072em;
  line-height: 0.88;
  text-wrap: balance;
}

.hero-title span {
  display: block;
  padding-top: 0.08em;
  color: var(--ink);
}

.hero-title em {
  color: var(--accent);
  font-style: normal;
}

.hero-lede {
  max-width: 52ch;
  margin: clamp(30px, 4.4vh, 52px) 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  letter-spacing: -0.015em;
}

.hero-journey {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 30px;
  margin-top: clamp(30px, 4.4vh, 48px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 26, 24, 0.2);
  transition: color 180ms var(--ease), border-color 180ms var(--ease);
}

.text-link span {
  color: var(--accent);
  transition: transform 180ms var(--ease);
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link:hover span {
  transform: translateY(2px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: clamp(34px, 4.8vh, 54px) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-meta li + li::before {
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

.hero-brief-wrap {
  justify-self: end;
  align-self: end;
  width: 100%;
  max-width: 390px;
  padding-bottom: clamp(12px, 5vh, 64px);
}

.brief-console {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brief-console::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 22px;
  width: 86px;
  height: 1px;
  background: var(--accent);
  box-shadow: none;
}

.brief-console::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 17px;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(21, 128, 61, 0.45);
  border-bottom: 1px solid rgba(21, 128, 61, 0.45);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
  animation: signal-pulse 2.6s ease-in-out infinite;
}

@keyframes signal-pulse {
  50% {
    opacity: 0.35;
  }
}

.console-label {
  margin: 34px 0 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-prompt {
  min-height: 5.1em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 1.25vw, 19px);
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.console-prompt::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.14em;
  background: var(--accent);
  animation: caret 1.2s steps(1, end) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.console-spec {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.console-spec .mono {
  font-size: 9px;
}

.console-mark {
  margin-left: auto;
  color: var(--accent);
  font-size: 16px;
}

.console-caption {
  margin: 12px 2px 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: right;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.scroll-line {
  position: relative;
  display: block;
  width: 84px;
  height: 1px;
  background: rgba(24, 26, 24, 0.12);
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 34px;
  background: var(--accent);
  animation: scroll-trace 2.8s var(--ease) infinite;
}

@keyframes scroll-trace {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(280%);
  }
}

.chapter {
  position: relative;
  display: flex;
  min-height: 128svh;
  align-items: center;
  padding: 18vh var(--gutter);
}

.chapter-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

.chapter-copy {
  grid-column: 1 / 7;
  max-width: 720px;
}

.chapter--reverse .chapter-copy {
  grid-column: 7 / 13;
}

.chapter--delivery .chapter-copy {
  grid-column: 1 / 8;
}

.chapter-aside {
  grid-column: 9 / 13;
  width: 100%;
  max-width: 350px;
  justify-self: end;
  align-self: end;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.chapter--reverse .chapter-aside {
  grid-column: 1 / 5;
  grid-row: 1;
  justify-self: start;
}

.chapter--delivery .chapter-aside {
  grid-column: 10 / 13;
}

.chapter-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(26px, 3.4vw, 42px);
}

.chapter-count {
  flex: none;
  color: var(--accent);
  font-size: 9px;
}

.chapter-kicker {
  flex: none;
  color: var(--ink-2);
  font-size: 9px;
}

.chapter-rule {
  width: 46px;
  height: 1px;
  background: var(--line);
}

.chapter h2,
.studio h2 {
  margin: 0;
  font-size: clamp(48px, 6.1vw, 96px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

.chapter h2 em,
.studio h2 em {
  color: var(--accent);
  font-style: normal;
}

.chapter-lede {
  max-width: 47ch;
  margin: clamp(25px, 3.2vw, 40px) 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.62;
  letter-spacing: -0.012em;
}

.chapter-points {
  display: grid;
  gap: 0;
  max-width: 480px;
  margin: clamp(32px, 4vw, 54px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.chapter-points li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.chapter-points li span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.aside-label {
  display: block;
  color: var(--accent);
  font-size: 9px;
}

.chapter-aside blockquote {
  margin: 22px 0 18px;
  color: var(--ink);
  font-size: clamp(20px, 1.55vw, 24px);
  font-weight: 450;
  line-height: 1.32;
  letter-spacing: -0.03em;
}

.chapter-aside > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.direction-list {
  margin-top: 20px;
}

.direction-list div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.direction-list span {
  color: var(--muted);
  font-size: 9px;
}

.direction-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}

.finish-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.finish-list span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chapter-ghost {
  position: absolute;
  right: clamp(10px, 3vw, 54px);
  bottom: -0.12em;
  z-index: 0;
  color: transparent;
  font-size: clamp(210px, 29vw, 520px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.7;
  -webkit-text-stroke: 1px rgba(24, 26, 24, 0.07);
  pointer-events: none;
  user-select: none;
}

.chapter--reverse .chapter-ghost {
  right: auto;
  left: clamp(10px, 3vw, 54px);
}

.chapter--delivery .chapter-ghost {
  right: clamp(10px, 3vw, 54px);
  left: auto;
}

.delivery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 30px;
  margin-top: clamp(30px, 4vw, 46px);
}

.delivery-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.delivery-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.ready-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ready-dot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}

.delivery-spec {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
}

.delivery-spec div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.delivery-spec dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.delivery-spec dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
}

.delivery-progress {
  height: 2px;
  margin-top: 22px;
  background: rgba(24, 26, 24, 0.08);
  overflow: hidden;
}

.delivery-progress span {
  display: block;
  width: 72%;
  height: 100%;
  background: var(--accent);
  box-shadow: none;
}

.studio {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 18vh var(--gutter) 0;
}

.studio::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(242, 244, 241, 0.56) 44%, rgba(242, 244, 241, 0.9) 78%, var(--bg) 100%);
  pointer-events: none;
}

.studio-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: auto auto 0;
  padding-bottom: clamp(80px, 12vh, 150px);
  text-align: center;
}

.studio-inner .eyebrow {
  justify-content: center;
  margin-bottom: 28px;
}

.studio h2 {
  font-size: clamp(56px, 7.4vw, 116px);
}

.studio-lede {
  max-width: 52ch;
  margin: clamp(28px, 3.6vw, 42px) auto 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.62;
  letter-spacing: -0.012em;
}

.studio .button {
  margin-top: clamp(34px, 4.6vw, 52px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  width: min(1480px, 100%);
  margin: auto auto 0;
  padding: 26px 0 30px;
  border-top: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-brand .brand-lockup {
  width: 116px;
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: auto;
}

.footer-nav a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms var(--ease);
}

.footer-nav a:hover {
  color: var(--accent);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

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

.brief-dialog,
.menu-dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.brief-dialog {
  width: min(620px, calc(100vw - 32px));
}

.dialog-shell,
.menu-shell {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.dialog-shell {
  padding: clamp(22px, 4vw, 34px);
}

.brief-dialog::backdrop,
.menu-dialog::backdrop {
  background: rgba(24, 26, 24, 0.46);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-label {
  color: var(--accent);
  font-size: 9px;
}

.dialog-head h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.dialog-close:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.icon {
  width: 18px;
  height: 18px;
}

.dialog-intro {
  max-width: 46ch;
  margin: 20px 0 26px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

.dialog-label-text {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dialog-input {
  display: block;
  width: 100%;
  min-height: 150px;
  padding: 14px 15px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  caret-color: var(--accent);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

.dialog-input::placeholder {
  color: var(--muted);
}

.dialog-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.sample {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.sample:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(24, 26, 24, 0.035);
}

.dialog-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.dialog-status {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.dialog-actions .button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
}

.menu-dialog {
  width: min(360px, calc(100vw - 32px));
  margin: auto 16px auto auto;
}

.menu-shell {
  padding: 22px;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.menu-head .mono {
  color: var(--accent);
  font-size: 9px;
}

.menu-nav {
  display: grid;
  padding: 10px 0 18px;
}

.menu-nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-nav a span {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: none;
}

.menu-shell > .button {
  width: 100%;
}

@media (max-width: 1160px) {
  .chapter-rail {
    display: none;
  }

  .journey-dock {
    display: flex;
  }

  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .header-link {
    display: none;
  }

  .hero-grid {
    gap: clamp(36px, 5vw, 72px);
  }

  .hero-brief-wrap {
    max-width: 350px;
  }
}

@media (max-width: 900px) {
  #scene {
    opacity: 0.72;
  }

  .hero-journey {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
  }

  .hero-journey a {
    display: grid;
    gap: 3px;
    min-height: 44px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    text-decoration: none;
  }

  .hero-journey a span {
    color: var(--accent-strong);
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .hero-journey a strong {
    overflow: hidden;
    color: var(--ink-2);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .primary-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .header-actions {
    gap: 10px;
  }

  .hero {
    min-height: 100svh;
    align-items: center;
    padding-top: 124px;
    padding-bottom: 92px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-title {
    max-width: 11ch;
    font-size: clamp(56px, 11.4vw, 92px);
  }

  .hero-lede {
    max-width: 42ch;
  }

  .hero-brief-wrap {
    justify-self: start;
    align-self: start;
    max-width: 430px;
    padding-bottom: 0;
  }

  .console-prompt {
    min-height: 4.4em;
  }

  .scroll-cue {
    bottom: 22px;
  }

  .chapter {
    min-height: 112svh;
    padding-top: 16vh;
    padding-bottom: 16vh;
  }

  .chapter-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .chapter-copy,
  .chapter--reverse .chapter-copy,
  .chapter--delivery .chapter-copy {
    grid-column: 1;
    max-width: 680px;
  }

  .chapter-aside,
  .chapter--reverse .chapter-aside,
  .chapter--delivery .chapter-aside {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    max-width: 420px;
    margin-left: auto;
  }

  .chapter--reverse .chapter-aside {
    margin-left: 0;
    margin-right: auto;
  }

  .chapter-ghost {
    bottom: 0;
    font-size: clamp(160px, 34vw, 330px);
    opacity: 0.8;
  }

  .studio {
    min-height: 92svh;
  }

  .site-footer {
    gap: 14px 24px;
  }

  .footer-note {
    order: 3;
    width: 100%;
  }

  .footer-nav {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
  }

  #scene {
    opacity: 0.55;
  }

  .site-header {
    gap: 12px;
  }

  .brand-lockup {
    width: 132px;
  }

  .header-actions > .button {
    display: none;
  }

  :root[data-auth='in'] .header-actions > .button.account-only {
    display: none;
  }

  .hero {
    padding-top: 112px;
    padding-bottom: 72px;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(52px, 14.1vw, 76px);
    letter-spacing: -0.075em;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero-meta {
    gap: 8px 14px;
    font-size: 9px;
  }

  .hero-brief-wrap {
    max-width: 100%;
  }

  .brief-console {
    padding: 18px;
  }

  .console-prompt {
    min-height: 5.6em;
    font-size: 16px;
  }

  .console-caption {
    text-align: left;
  }

  .scroll-cue {
    display: none;
  }

  .chapter {
    min-height: auto;
    padding-top: 15vh;
    padding-bottom: 15vh;
  }

  .chapter-head {
    gap: 10px;
    margin-bottom: 26px;
  }

  .chapter-rule {
    flex: 1;
    width: auto;
  }

  .chapter h2,
  .studio h2 {
    font-size: clamp(43px, 12.5vw, 62px);
  }

  .chapter-lede {
    font-size: 16px;
  }

  .chapter-points li {
    font-size: 14px;
  }

  .chapter-aside {
    max-width: 100%;
  }

  .chapter-ghost {
    display: none;
  }

  .delivery-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .delivery-card {
    padding: 18px;
  }

  .studio {
    padding-top: 14vh;
  }

  .studio-inner {
    padding-bottom: 80px;
  }

  .studio-lede {
    font-size: 15px;
  }

  .site-footer {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .footer-nav {
    width: 100%;
    margin-left: 0;
  }

  .dialog-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-actions {
    margin-left: 0;
  }

  .dialog-actions .button {
    flex: 1;
  }

  .menu-dialog {
    margin: auto 16px 16px auto;
  }
}

@media (max-width: 400px) {
  .journey-now {
    max-width: 100px;
  }

  .journey-steps {
    gap: 0;
  }

  .journey-steps a {
    width: 24px;
  }

  .journey-next {
    padding: 0 11px;
  }
}

@media (max-width: 360px) {
  .journey-now {
    max-width: 88px;
  }

  .journey-next span:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-line::after,
  .console-live i,
  .console-prompt::after,
  .fallback-ring {
    animation: none;
  }
}




