/* Truax Creative — immersive journey
   Default styles are a readable editorial page (no-JS, reduced motion, no WebGL).
   html.is-journey switches the beats into fixed overlays driven by js/journey.js. */

:root {
  --ink: #0b0c0e;
  --char: #15171b;
  --char-2: #1d2025;
  --paper: #f3f1ea;
  --paper-2: #e7e4da;
  --muted: #8d9097;
  --muted-dark: #5b5e66;
  --lime: #d4f53c;
  --coral: #ff5a3c;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(11, 12, 14, 0.14);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
#viewport-guide { position: fixed; width: 0; height: 100svh; visibility: hidden; pointer-events: none; }
button, a, input, select, textarea { touch-action: manipulation; }
button, .header-cta, .chapter-nav a, .mobile-menu-list a {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}
button:active, .header-cta:active, .button:active { filter: brightness(0.88); }
html.is-journey { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter);
  color: var(--paper);
  transition: color 0.6s var(--ease);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header.is-light { color: var(--ink); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.03em;
}
.brand, .header-cta, .menu-toggle { flex-shrink: 0; }
.brand { min-height: 44px; }
.header-cta { white-space: nowrap; }
.brand-light { font-weight: 400; opacity: 0.6; }
.brand-mark { width: 34px; height: 34px; fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark path:first-child { stroke: currentColor; }
.brand-mark path:last-child { stroke: var(--lime); }
.site-header.is-light .brand-mark path:last-child { stroke: #0b57d0; }

.chapter-nav { margin-left: auto; display: flex; gap: 6px; }
.chapter-nav a {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0.55; transition: opacity 0.3s, background 0.3s;
}
.chapter-nav a i { font-style: normal; font-size: 10px; opacity: 0.7; }
.chapter-nav a.is-active { opacity: 1; }
.chapter-nav a.is-active { background: rgba(255, 255, 255, 0.08); }
.site-header.is-light .chapter-nav a.is-active { background: rgba(11, 12, 14, 0.06); }

.header-cta {
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
  font-size: 14px; font-weight: 600;
  background: var(--paper); color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.site-header.is-light .header-cta { background: var(--ink); color: var(--paper); }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; display: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }
html.is-journey .progress { display: block; }

/* ---------- Canvas + atmosphere ---------- */
#world { display: none; }
html.is-journey #world {
  display: block; position: fixed; inset: 0; width: 100%; height: 100dvh; z-index: 0;
}
.flash, .grain { display: none; }
html.is-journey .flash {
  display: block; position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f7ffd6 35%, var(--lime) 70%, #0b0c0e 100%);
}
/* The grain stays inside the viewport and shifts its tile instead of the box: an oversized
   fixed layer widens the layout viewport on phones and pushes every panel off-screen. */
html.is-journey .grain {
  display: block; position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -48px 32px; } 40% { background-position: 32px -48px; }
  60% { background-position: -32px -16px; } 80% { background-position: 48px 48px; } 100% { background-position: 0 0; }
}
html, body { overflow-x: clip; }

/* ---------- Beats: static (fallback) layout ---------- */
.beats { position: relative; z-index: 5; }
.beat {
  max-width: 1180px; margin: 0 auto; padding: clamp(80px, 12vh, 140px) var(--gutter);
  border-bottom: 1px solid var(--line);
}
.beat-hero { padding-top: 160px; min-height: 90svh; display: flex; flex-direction: column; justify-content: center; }
.motion-choice, .motion-toggle { display: none; }
html.js .motion-toggle { display: inline-flex; }
html.js.calm-view:not(.is-journey) .motion-choice { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 28px; font-size: 14px; }
.fallback-nav { padding: 100px var(--gutter) 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fallback-nav a { padding: 12px; }
.beat-portal, .beat-tunnel { display: none; }
.static-only { display: block; }
.portrait { margin-top: 32px; width: min(360px, 100%); border-radius: 18px; filter: grayscale(0.2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(212, 245, 60, 0.6); animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(212, 245, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 245, 60, 0); } }

h1 { font-size: clamp(54px, 9vw, 148px); }
h2 { font-size: clamp(44px, 6.2vw, 96px); }
h2.h-mid { font-size: clamp(34px, 4.4vw, 64px); }
h2.h-big { font-size: clamp(60px, 10vw, 170px); }
h3 { font-size: clamp(36px, 4.6vw, 68px); }
.beat h2 + p, .beat h3 + p, .beat h1 + p { margin-top: 26px; }
.beat p + p { margin-top: 14px; }
.beat p:not(.eyebrow):not(.statement):not(.tag-line):not(.kicker) { max-width: 520px; color: rgba(243, 241, 234, 0.78); font-size: clamp(16px, 1.2vw, 19px); }
.lede { font-size: clamp(17px, 1.35vw, 21px) !important; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 44px !important;
  font-size: 12px !important; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
.scroll-cue span { width: 1px; height: 38px; background: currentColor; position: relative; overflow: hidden; opacity: 0.4; }
.scroll-cue span::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: currentColor;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { to { top: 110%; } }

.text-link {
  display: inline-flex; gap: 8px; margin-top: 22px; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}

.button {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  padding: 16px 28px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lime); color: var(--ink); text-decoration: none;
  font: 600 16px/1 var(--sans);
  transition: box-shadow 0.2s var(--ease);
  box-shadow: 0 0 0 0 rgba(212, 245, 60, 0.35);
}
.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.tag-line { font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -0.03em; }
.chapter-tag .eyebrow { margin-bottom: 8px; }

.kicker { font-size: clamp(30px, 4vw, 60px); font-weight: 600; letter-spacing: -0.03em; }
.kicker-2 { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime); }

.steps, .service-list { list-style: none; margin: 34px 0 0; padding: 0; max-width: 560px; }
.steps li, .service-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 8px;
  padding: 14px 0; border-top: 1px solid var(--line);
  color: rgba(243, 241, 234, 0.74); font-size: 15.5px;
}
.steps li span, .service-list li span { color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; padding-top: 3px; }
.steps b, .service-list b { color: var(--paper); font-weight: 600; margin-right: 6px; }
@media (max-height: 820px) {
  html.is-journey .steps li div, html.is-journey .service-list li div { font-size: 0; }
  html.is-journey .steps b, html.is-journey .service-list b { font-size: 15px; }
  html.is-journey .steps li, html.is-journey .service-list li { padding: 8px 0; }
}
.service-list b { display: block; margin-bottom: 2px; }

.project .eyebrow { color: var(--lime); }

.statement { font-size: clamp(64px, 11vw, 200px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.88; }
.statement em { color: var(--lime); }
.statement-sub { margin-top: 28px !important; font-size: 13px !important; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--muted) !important; }

.beat-finale p:not(.eyebrow) { margin-left: auto; margin-right: auto; }

/* Light tone beats in static mode sit on a paper band */
.tone-light { color: var(--ink); }
.beats > .tone-light { background: var(--paper); max-width: none; }
.beats > .tone-light > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.tone-light p:not(.eyebrow) { color: var(--muted-dark) !important; }
.tone-light .eyebrow { color: var(--muted-dark); }
.tone-light em { color: inherit; }

/* ---------- Beats: journey (fixed overlay) layout ---------- */
html.is-journey .journey { height: var(--journey-h, 1700vh); position: relative; }
html.is-journey .beats { position: fixed; inset: 0; height: 100dvh; pointer-events: none; }
html.is-journey .static-only { display: none; }
html.is-journey .beat-portal, html.is-journey .beat-tunnel { display: block; }
html.is-journey .beats > .tone-light { background: none; }
/* the static band centres its children; in the journey they hang from the beat's left edge */
html.is-journey .beats > .tone-light > * { margin-left: 0; margin-right: 0; }

html.is-journey .beat {
  position: absolute; margin: 0; max-width: none; border: 0;
  padding: 0; min-height: 0;
  opacity: 0; visibility: hidden;
  transform: translate3d(var(--bx, 0), calc(var(--by, 0%) + var(--dy, 0px)), 0) scale(var(--s, 1));
  will-change: opacity, transform;
}
html.is-journey .beat.is-on { visibility: visible; pointer-events: auto; }
html.is-journey .beat-hero { left: var(--gutter); width: min(52vw, 820px); top: 52%; --by: -50%; padding: 0; display: block; }
html.is-journey .pos-left { left: var(--gutter); top: 50%; --by: -50%; width: min(600px, 44vw); }
html.is-journey .pos-right { right: var(--gutter); top: 50%; --by: -50%; width: min(560px, 42vw); }
html.is-journey .pos-center { left: 50%; top: 50%; --bx: -50%; --by: -50%; width: min(1100px, 92vw); text-align: center; }
html.is-journey .beat-finale { top: 70%; }
html.is-journey .beat-finale h2.h-big { font-size: clamp(52px, 7.4vw, 124px); }
html.is-journey .pos-bottom { left: var(--gutter); bottom: 9vh; }
html.is-journey .pos-center .eyebrow { justify-content: center; }

/* Legibility: every block of copy in the dark world sits on its own solid, blurred panel,
   so it reads cleanly no matter which 3D content is passing behind it. */
html.is-journey .tone-dark.pos-left,
html.is-journey .tone-dark.pos-right,
html.is-journey .tone-dark.pos-bottom {
  padding: clamp(24px, 2.6vw, 40px);
  background: rgba(11, 12, 14, 0.84);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
  backdrop-filter: blur(22px) saturate(115%);
  border: 1px solid rgba(243, 241, 234, 0.1);
  border-left: 2px solid var(--lime);
  border-radius: 22px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
html.is-journey .tone-dark.pos-bottom { padding: 18px 26px; border-radius: 16px; }
html.is-journey .tone-dark.pos-left p:not(.eyebrow),
html.is-journey .tone-dark.pos-right p:not(.eyebrow) { color: rgba(243, 241, 234, 0.86); }
/* big centred lines get a dark halo instead of a box */
html.is-journey .pos-center.tone-dark:not(.beat-finale)::before {
  content: ""; position: absolute; inset: -18% -12%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 12, 14, 0.85), rgba(11, 12, 14, 0.55) 55%, rgba(11, 12, 14, 0));
}
/* keep the header readable over bright letterforms */
html.is-journey .site-header:not(.is-light)::before {
  content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.85), rgba(11, 12, 14, 0));
}
html.is-journey .beat-portal h2 { color: var(--paper); text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6); }
/* the screen's own headline is zooming past behind this line: give it a dark pool to sit in */
html.is-journey .beat-portal::before {
  content: ""; position: absolute; inset: -60% -8%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 12, 14, 0.82), rgba(11, 12, 14, 0.5) 55%, rgba(11, 12, 14, 0));
}
html.is-journey .beat-hero h1 { font-size: clamp(48px, 5.9vw, 104px); max-width: none; }
html.is-journey .beat-hero .lede { max-width: 440px; }
html.is-journey .beat-statement .statement { text-shadow: 0 10px 60px rgba(0, 0, 0, 0.6); }
html.is-journey .beat-finale h2 { text-shadow: 0 10px 60px rgba(0, 0, 0, 0.7); }

/* ---------- Contact ---------- */
.contact {
  position: relative; z-index: 6;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px);
  max-width: 1280px; margin: 0 auto; padding: clamp(100px, 16vh, 180px) var(--gutter);
}
html.is-journey .contact::before {
  content: ""; position: absolute; inset: 0 -100vw; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0) 0%, rgba(11, 12, 14, 0.92) 18%, var(--ink) 40%);
}
.contact-copy h2 { font-size: clamp(44px, 4.3vw, 72px); }
.contact-copy p:not(.eyebrow) { margin-top: 24px; color: rgba(243, 241, 234, 0.74); max-width: 420px; }
.contact-direct { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 14px; color: var(--muted); }
.contact-card {
  background: var(--char); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: 0 40px 120px -40px rgba(212, 245, 60, 0.12);
}
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.form-field label span { color: var(--muted); font-weight: 400; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ink); color: var(--paper);
  font: 400 16px/1.4 var(--sans); transition: border-color 0.25s, box-shadow 0.25s;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(212, 245, 60, 0.18);
}
.form-help { font-size: 13px; color: var(--muted); }
.form-submit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-submit .button { margin-top: 0; }
.form-submit p { font-size: 13px; color: var(--muted); }
.form-status { margin-top: 16px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.form-status.is-success { color: var(--lime); }
.form-status.is-error { color: var(--coral); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 6; background: var(--ink);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 28px var(--gutter); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.site-footer a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .chapter-nav a:hover { opacity: 1; }
  .header-cta:hover { background: var(--lime); }
  .site-header.is-light .header-cta:hover { background: var(--ink); color: var(--lime); }
  .text-link:hover, .site-footer a:hover { color: var(--lime); }
  .button:hover { box-shadow: 0 14px 40px -10px rgba(212, 245, 60, 0.55); }
}

/* ---------- Loader ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loader { display: none; }
html.js-loading .loader, .loader.is-leaving {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.loader em { color: var(--lime); }
.loader p { opacity: 0; animation: loader-in 0.8s 0.5s var(--ease) forwards; }
.loader-mark { width: 64px; height: 64px; fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.loader-mark path { stroke-dasharray: 90; stroke-dashoffset: 90; animation: loader-draw 1.1s var(--ease) forwards; }
.loader-mark path:first-child { stroke: var(--paper); }
.loader-mark path:last-child { stroke: var(--lime); animation-delay: 0.25s; }
.loader.is-leaving { animation: loader-out 0.7s var(--ease) forwards; pointer-events: none; }
@keyframes loader-draw { to { stroke-dashoffset: 0; } }
@keyframes loader-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Mobile menu ---------- */
.menu-toggle, .mobile-menu { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 860px), (max-width: 1180px) and (pointer: coarse) {
  :root {
    --gutter: clamp(16px, 5vw, 24px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --edge-l: max(var(--gutter), env(safe-area-inset-left, 0px));
    --edge-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
  .site-header { gap: 10px; padding: calc(12px + env(safe-area-inset-top, 0px)) var(--edge-r) 12px var(--edge-l); }
  .chapter-nav { display: none; }
  .header-cta { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; font-size: 14px; }
  .brand span { font-size: 17px; }

  /* menu button + full-screen sheet */
  html.js .menu-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(243, 241, 234, 0.1); color: inherit; cursor: pointer; z-index: 2;
    transition: background 0.3s, transform 0.3s var(--ease);
  }
  .menu-toggle:active { transform: scale(0.92); }
  .site-header.is-light .menu-toggle { background: rgba(11, 12, 14, 0.07); }
  .menu-lines, .menu-lines::before, .menu-lines::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform 0.45s var(--ease), opacity 0.2s;
  }
  .menu-lines { position: relative; background: transparent; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { transform: translateY(-4px); }
  .menu-lines::after { transform: translateY(4px); }
  .menu-open .menu-lines::before { transform: rotate(45deg); }
  .menu-open .menu-lines::after { transform: rotate(-45deg); }
  html.menu-open .site-header { color: var(--paper); }
  html.menu-open .site-header .header-cta { background: var(--lime); color: var(--ink); }
  html.menu-open .site-header .menu-toggle { background: rgba(243, 241, 234, 0.12); }
  html.menu-open .site-header .brand-mark path:last-child { stroke: var(--lime); }

  .mobile-menu {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0; height: 100dvh; z-index: 45; background: var(--ink);
    overflow-y: auto; overscroll-behavior: contain; gap: 24px;
    padding: calc(92px + env(safe-area-inset-top, 0px)) var(--edge-r) calc(24px + var(--safe-b)) var(--edge-l);
    clip-path: circle(0 at calc(100% - 42px) 34px);
    transition: clip-path 0.7s var(--ease), visibility 0s 0.7s; visibility: hidden;
  }
  .mobile-menu[hidden] { display: none; }
  html.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 42px) 34px); visibility: visible; transition: clip-path 0.7s var(--ease); }
  .mobile-menu-list { list-style: none; margin: 0; padding: 0; }
  .mobile-menu-list a {
    display: flex; align-items: baseline; gap: 14px; padding: 10px 0; text-decoration: none;
    font-size: clamp(32px, min(12vw, 7svh), 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1;
    opacity: 0; transform: translateY(28px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.2s;
  }
  .mobile-menu-list a i { font-style: normal; font-size: 13px; letter-spacing: 0.08em; color: var(--lime); transform: translateY(-1.6em); }
  .mobile-menu-list a:active, .mobile-menu-list a.is-active { color: var(--lime); }
  html.menu-open .mobile-menu-list a { opacity: 1; transform: none; }
  html.menu-open .mobile-menu-list li:nth-child(1) a { transition-delay: 0.12s; }
  html.menu-open .mobile-menu-list li:nth-child(2) a { transition-delay: 0.17s; }
  html.menu-open .mobile-menu-list li:nth-child(3) a { transition-delay: 0.22s; }
  html.menu-open .mobile-menu-list li:nth-child(4) a { transition-delay: 0.27s; }
  html.menu-open .mobile-menu-list li:nth-child(5) a { transition-delay: 0.32s; }
  .mobile-menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
  .mobile-menu-list, .mobile-menu-foot { flex-shrink: 0; }
  .mobile-menu-foot > span { display: inline-flex; align-items: center; gap: 10px; }
  .mobile-menu-foot a { color: var(--paper); text-decoration: none; padding: 12px 0; }

  .contact { grid-template-columns: 1fr; padding-left: var(--edge-l); padding-right: var(--edge-r); padding-bottom: calc(80px + var(--safe-b)); }
  .contact > *, .form-field { min-width: 0; }
  .contact h2 { font-size: clamp(42px, 11vw, 76px); }
  .contact-card { border-radius: 22px; padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-submit .button { width: 100%; justify-content: center; min-height: 54px; }
  .site-footer { padding-bottom: calc(28px + var(--safe-b)); }
  .site-footer a { min-height: 44px; align-items: center; }
  html.is-journey .beat[data-lenis-prevent] { overscroll-behavior: auto; }

  /* copy panels dock to the bottom of the screen, above the home indicator */
  html.is-journey .pos-left,
  html.is-journey .pos-right {
    left: var(--edge-l); right: var(--edge-r); width: auto;
    top: auto; bottom: calc(4svh + var(--safe-b)); --by: 0%;
  }
  html.is-journey .tone-dark.pos-left, html.is-journey .tone-dark.pos-right {
    padding: 22px 22px 24px; max-height: min(68svh, calc(100dvh - 110px - env(safe-area-inset-top, 0px) - var(--safe-b)));
    overflow-y: auto; border-radius: 20px;
    background: rgba(11, 12, 14, 0.9);
  }
  html.is-journey .pos-bottom { bottom: calc(4svh + var(--safe-b)); left: var(--edge-l); right: var(--edge-r); }

  /* hero: full-width, two-line title over a soft paper scrim, the desk above it */
  html.is-journey .beat-hero {
    top: auto; bottom: calc(4svh + var(--safe-b)); --by: 0%;
    left: var(--edge-l); right: var(--edge-r); width: auto;
    max-height: calc(100dvh - 112px - env(safe-area-inset-top, 0px) - var(--safe-b));
  }
  html.is-journey .beat-hero::before {
    content: ""; position: absolute; inset: -90px calc(var(--gutter) * -1) -10vh; z-index: -1;
    background: linear-gradient(180deg, rgba(241, 239, 232, 0) 0%, rgba(241, 239, 232, 0.92) 34%, #f1efe8 70%);
  }
  html.is-journey .beat-hero h1 { font-size: clamp(40px, 11.6vw, 64px); max-width: none; line-height: 0.96; }
  html.is-journey .beat-hero .eyebrow { margin-bottom: 16px; }
  html.is-journey .beat-hero .lede { margin-top: 18px; font-size: 16px !important; max-width: 34ch; }
  html.is-journey .beat-hero .scroll-cue { margin-top: 24px !important; }
  html.is-journey .beats > .tone-light.pos-left::before {
    content: ""; position: absolute; inset: -60px calc(var(--gutter) * -1) -12vh; z-index: -1;
    background: linear-gradient(180deg, rgba(241, 239, 232, 0) 0%, rgba(241, 239, 232, 0.9) 40%);
  }
  /* the portal line sits under the screen it is about to enter, not on top of it */
  html.is-journey .beat-portal { top: auto; bottom: calc(8svh + var(--safe-b)); --by: 0%; }
  html.is-journey .beat-finale { top: auto; bottom: calc(4svh + var(--safe-b)); --by: 0%; }
  html.is-journey .beat-finale h2.h-big { font-size: clamp(48px, 14vw, 72px); }
  html.is-journey .beat-finale .eyebrow { display: none; }

  h1 { font-size: clamp(46px, 13vw, 80px); }
  .steps li, .service-list li { padding: 9px 0; font-size: 14px; }
  .steps, .service-list { margin-top: 20px; }
  html.is-journey .steps li div, html.is-journey .service-list li div { font-size: 14px; }
  .service-list li b { font-size: 15px; margin: 0 0 4px; }
  html.is-journey .beat h2 { font-size: clamp(36px, 9.6vw, 52px); }
  html.is-journey .beat h2.h-mid { font-size: clamp(28px, 7.6vw, 40px); }
  html.is-journey .beat h3 { font-size: clamp(32px, 9vw, 44px); }
  html.is-journey .project .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
  html.is-journey .beat-founder p:not(.eyebrow) { font-size: 15px; }
  html.is-journey .statement { font-size: clamp(56px, 17vw, 90px); }
}

@media (max-width: 374px) {
  .brand { gap: 6px; }
  .brand-mark { width: 28px; height: 28px; }
  .brand span { font-size: 15px; }
  .header-cta { padding-inline: 12px; font-size: 13px; }
  .site-header { gap: 8px; }
  html.is-journey .beat-hero h1 { font-size: 10.5vw; }
  html.is-journey .beat-hero .eyebrow { font-size: 10px; letter-spacing: 0.08em; }
}

@media (max-height: 500px) and (max-width: 1180px) {
  html.is-journey .beat-hero { left: var(--edge-l, var(--gutter)); width: min(60vw, 600px); }
  html.is-journey .beat-hero h1 { font-size: clamp(28px, 5vw, 46px); }
  html.is-journey .beat-hero .eyebrow { margin-bottom: 10px; font-size: 10px; }
  html.is-journey .beat-hero .lede { margin-top: 12px; font-size: 14px !important; max-width: 48ch; }
  html.is-journey .beat-hero .scroll-cue { margin-top: 12px !important; }
  .scroll-cue span { height: 20px; }
  .mobile-menu { padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
  .mobile-menu-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

/* Keep native touch scrolling in the menu without moving the page behind it. */
html.menu-open { overflow: hidden; }
html.menu-open body { position: fixed; top: var(--menu-scroll-top); width: 100%; }
html.is-contact .site-header, html:not(.is-journey) .site-header {
  background: rgba(11, 12, 14, 0.94); color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader p { opacity: 1; }
  .loader-mark path { stroke-dashoffset: 0; }
  .loader.is-leaving { display: none; }
}
.mobile-menu:focus { outline: none; }

/* Keep the final scene out of the way while the contact form is on screen. */
html.is-journey.is-contact .beats { visibility: hidden; }
html.is-journey.is-contact .beat.is-on { visibility: hidden; pointer-events: none; }
