/* ============================================================
   B2 CREATE · WEB — Vol. 02, The Build Issue
   The other face of the B2 coin: the Brand Issue (site-popup/) is
   paper with deep ink; the Build Issue is the deep field with paper,
   mist and blush as the light, warmed by sand. Same magazine grammar,
   plus the web side's details: browser frames, layout-grid guides,
   a selection-box cursor, spec labels. Project boards wear the client.
   ============================================================ */
:root {
  --deep: #051414; --char: #2b2c2b; --stone: #d8d3d1; --mist: #c8dbdc; --blush: #FFE9E0; --paper: #f3efe7;
  --bg: #051414; --bg-2: #0b1f1f; --bg-3: #112828; --fg: #f3efe7;
  --ink: var(--fg); --ink-2: rgba(243,239,231,0.74); --mute: #8fa3a3; --line: rgba(243,239,231,0.14); --glass: rgba(255,255,255,0.05); --glass-b: rgba(255,255,255,0.11);
  --sand: #b5793f; --sand-2: #d9c7b4;
  --gutter: clamp(16px, 5vw, 72px); --head: "Poppins", system-ui, sans-serif; --label: "Montserrat", "Poppins", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 22px; --shadow: 0 30px 60px -28px rgba(0,0,0,0.7), 0 8px 18px -10px rgba(0,0,0,0.45);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.6 var(--head); overflow-x: hidden;
  background: var(--bg);
  background-image:
    radial-gradient(60vw 50vw at 88% 4%, rgba(200,219,220,0.13), transparent 60%),
    radial-gradient(55vw 45vw at 0% 38%, rgba(181,121,63,0.14), transparent 62%),
    radial-gradient(60vw 50vw at 100% 82%, rgba(255,233,224,0.08), transparent 60%);
  background-attachment: fixed;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--sand); color: var(--bg); }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 6px; }

/* ---------- type ---------- */
.kicker, .label { font: 600 11px/1.3 var(--label); letter-spacing: 0.26em; text-transform: uppercase; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.6; }
.spec { font: 500 11px/1.4 var(--mono); letter-spacing: 0.02em; color: var(--mute); }
.headline { font-weight: 600; font-size: clamp(46px, 8.6vw, 132px); line-height: 0.92; letter-spacing: -0.045em; margin: 18px 0 22px; }
.headline .o { font-weight: 300; font-style: italic; letter-spacing: -0.03em; position: relative; white-space: nowrap; }
.headline .o::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.12em; background: rgba(181,121,63,0.6); z-index: -1; border-radius: 4px; }
.h-l { font-weight: 600; font-size: clamp(34px, 5.4vw, 76px); line-height: 0.98; letter-spacing: -0.035em; margin: 14px 0 18px; }
.h-m { font-weight: 600; font-size: clamp(24px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 12px; }
.h-l em, .h-m em { font-weight: 300; font-style: italic; }
.deck, .lead { font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
p { margin: 0 0 14px; }

/* ---------- buttons, chips, stickers ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--fg); background: var(--fg); color: var(--bg); font: 600 15px var(--head); text-decoration: none; cursor: pointer; transition: transform 0.4s var(--spring), background 0.3s, color 0.3s; }
.btn:hover { transform: translateY(-3px); }
.btn.ghost { background: transparent; color: var(--fg); border-color: rgba(243,239,231,0.45); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font: 500 12.5px/1.2 var(--head); white-space: nowrap; }
.sticker { position: absolute; z-index: 3; display: inline-grid; place-items: center; text-align: center; font: 700 15px/1.05 var(--head); letter-spacing: -0.01em; padding: 14px 16px; border-radius: 18px; transform: rotate(var(--r, 0deg)); box-shadow: 0 14px 28px -12px rgba(0,0,0,0.6); pointer-events: none; color: var(--deep); }
.sticker small { display: block; margin-top: 4px; font: 600 9px var(--label); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; }
.sticker.blush { background: var(--blush); }
.sticker.mist { background: var(--mist); }
.sticker.deep { background: var(--sand); color: var(--deep); }
.sticker.paper { background: #fffaf3; }
.sticker.round { width: 104px; height: 104px; border-radius: 50%; padding: 0; }
.sticker.tag { font: 600 11px var(--label); letter-spacing: 0.16em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; }
.badge-spin { position: absolute; width: 132px; height: 132px; z-index: 2; pointer-events: none; animation: spin 22s linear infinite; }
.badge-spin text { font: 600 10.5px var(--label); letter-spacing: 0.32em; text-transform: uppercase; fill: var(--fg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- grid guides (the "inspect" toggle) ---------- */
.guides { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease); }
.guides .wrap { height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.guides i { background: rgba(181,121,63,0.07); border-inline: 1px solid rgba(181,121,63,0.22); }
body.show-grid .guides { opacity: 1; }
@media (max-width: 820px) { .guides .wrap { grid-template-columns: repeat(4, 1fr); gap: 14px; } .guides i:nth-child(n+5) { display: none; } }

/* ---------- cursor: a selection box ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; width: 28px; height: 28px; pointer-events: none; transform: translate(-50%, -50%); transition: width 0.35s var(--spring), height 0.35s var(--spring), opacity 0.3s; opacity: 0; }
.cursor i { position: absolute; width: 8px; height: 8px; border: 1.5px solid var(--fg); }
.cursor i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.cursor i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.cursor i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.cursor i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.cursor span { position: absolute; left: 100%; top: 100%; margin: 4px 0 0 4px; font: 500 10px var(--mono); background: var(--fg); color: var(--bg); padding: 3px 6px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: opacity 0.2s; }
.cursor.on { opacity: 1; }
.cursor.big { width: 64px; height: 64px; }
.cursor.big span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- header ---------- */
.masthead { font: 600 10px var(--label); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); }
.masthead .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.masthead .grid-toggle { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.masthead .grid-toggle b { display: inline-block; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px); }
.nav { position: sticky; top: 0; z-index: 60; transition: background 0.4s, box-shadow 0.4s; }
.nav.scrolled { background: rgba(5,20,20,0.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font: 300 22px var(--head); letter-spacing: 0.02em; text-decoration: none; color: var(--fg); }
.brand b { font-weight: 700; }
.brand .side { margin-inline-start: 10px; font: 600 10px var(--label); letter-spacing: 0.24em; padding: 4px 8px; border-radius: 6px; background: var(--sand); color: var(--bg); transform: translateY(-3px); }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { font: 500 14.5px var(--head); text-decoration: none; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 10px; }
/* Brand ⇄ Web: the two faces of B2 Create (wired to the brand side in phase two) */
.side-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font: 600 10px var(--label); letter-spacing: 0.18em; text-transform: uppercase; }
.side-switch a, .side-switch span { padding: 8px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.side-switch span { background: var(--fg); color: var(--bg); }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--glass); cursor: pointer; place-items: center; }
.nav-burger i { display: block; width: 18px; height: 1.5px; background: var(--fg); position: relative; transition: transform 0.3s; }
.nav-burger i::before, .nav-burger i::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--fg); transition: transform 0.3s, top 0.3s; }
.nav-burger i::before { top: -6px; } .nav-burger i::after { top: 6px; }
.nav-burger[aria-expanded="true"] i { background: transparent; }
.nav-burger[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 55; padding: 100px var(--gutter) 120px; background: rgba(5,20,20,0.97); backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 6px; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; overflow-y: auto; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a.mm-link { font: 600 clamp(34px, 9vw, 54px)/1.15 var(--head); letter-spacing: -0.03em; text-decoration: none; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding: 8px 0; }
.mobile-menu a.mm-link small { font: 500 12px var(--mono); color: var(--mute); }
.mobile-menu .mm-foot { margin-top: 24px; display: grid; gap: 10px; }
@media (max-width: 980px) { .nav-links { display: none; } .nav-burger { display: grid; } .nav-right { margin-inline-start: auto; } }
@media (max-width: 560px) { .masthead .wrap span:nth-child(2) { display: none; } .side-switch a, .side-switch span { padding: 7px 9px; } .brand { font-size: 19px; } .brand .side { display: none; } }

/* ---------- page wipe + reveals ---------- */
.wipe { position: fixed; inset: 0; z-index: 150; background: var(--fg); color: var(--bg); display: grid; place-items: center; transform: translateY(100%); pointer-events: none; visibility: hidden; }
.wipe.in { transition: transform 0.55s var(--ease); transform: translateY(0); visibility: visible; }
.wipe .brand { color: var(--bg); font-size: 30px; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
body.instant [data-reveal] { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } .badge-spin { animation: none; } html { scroll-behavior: auto; } }

/* ---------- entry gate: hold to build ---------- */
.entry { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: grid; overflow: hidden; transition: transform 0.9s var(--ease), opacity 0.6s; }
.entry::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50vw 40vw at 85% 10%, rgba(200,219,220,0.14), transparent 60%), radial-gradient(50vw 40vw at 5% 75%, rgba(181,121,63,0.2), transparent 60%); }
.entry canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry.done { transform: translateY(-100%); pointer-events: none; }
.entry-bar span:nth-child(2) { white-space: nowrap; }
.entry-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 18px var(--gutter); font: 600 10px var(--label); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); z-index: 2; }
.entry-copy { position: absolute; left: var(--gutter); right: var(--gutter); top: 13vh; z-index: 2; text-align: center; pointer-events: none; transition: opacity 0.5s; }
.entry-copy .line { font: 300 clamp(26px, 4.4vw, 58px)/1.08 var(--head); letter-spacing: -0.03em; margin: 14px 0 0; }
.entry-copy .line b { font-weight: 600; }
.entry.building .entry-copy { opacity: 0.15; }
.entry-hold { position: absolute; left: 50%; bottom: max(22vh, 150px); transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 12px; }
.hold-btn { position: relative; width: 92px; height: 92px; border-radius: 50%; border: 1px solid var(--glass-b); background: rgba(255,255,255,0.07); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hold-btn .illo { width: 44px; height: 50px; pointer-events: none; }
.hold-btn svg.ring { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); transform: rotate(-90deg); pointer-events: none; }
.ring circle { fill: none; stroke-width: 2.5; }
.ring .track { stroke: rgba(243,239,231,0.16); }
.ring .prog { stroke: var(--sand); stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.hold-label { font: 600 11px var(--label); letter-spacing: 0.2em; text-transform: uppercase; background: var(--blush); color: var(--deep); padding: 9px 14px; border-radius: 999px; transform: rotate(-2deg); pointer-events: none; }
.entry-skip { position: absolute; right: var(--gutter); bottom: 26px; z-index: 3; border: 0; background: none; font: 600 12px var(--label); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; padding: 12px; }

/* ---------- browser frame (shared by cover, cards, boards) ---------- */
.browser { position: relative; border-radius: 16px; background: var(--bg-2); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--glass-b); }
.browser .bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.browser .dots { display: flex; gap: 5px; } .browser .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--stone); }
.browser .dots i:first-child { background: #e8b4a2; } .browser .dots i:nth-child(2) { background: #e9d3a4; } .browser .dots i:nth-child(3) { background: #b9d2c9; }
.browser .url { flex: 1; min-width: 0; height: 22px; border-radius: 7px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); display: flex; align-items: center; gap: 6px; padding: 0 10px; font: 500 11.5px var(--mono); color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.browser .url::before { content: ""; width: 7px; height: 9px; border: 1.5px solid var(--mute); border-radius: 2px 2px 1px 1px; flex: none; }
.browser .screen { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.browser .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity 0.6s var(--ease), transform 1.2s var(--ease); }
.phone { position: relative; width: 100%; aspect-ratio: 9 / 19; border-radius: 30px; padding: 8px; background: #121818; box-shadow: var(--shadow); }
.phone::before { content: ""; position: absolute; top: 13px; left: 50%; width: 30%; height: 14px; transform: translateX(-50%); border-radius: 10px; background: #121818; z-index: 2; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 23px; overflow: hidden; background: #000; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- cover ---------- */
.cover { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(24px, 5vw, 60px); padding-bottom: clamp(40px, 7vw, 100px); }
.cover-lines { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 0; max-width: 34em; }
.cover-lines li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cover-lines li b { font: 600 11px/1.9 var(--label); letter-spacing: 0.14em; color: var(--sand); }
.cover-lines a { text-decoration: none; } .cover-lines a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cover-art { position: relative; padding: 40px 10px 30px; }
.cover-art .sticker.blush { padding: 10px 14px; font-size: 14px; }
.build-frame .screen { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: grab; }
.build-frame .screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.build-frame .screen img { opacity: 0; }
.build-frame.built .screen img { opacity: 1; }
.build-frame .screen .scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--sand), transparent); opacity: 0; pointer-events: none; }
.build-frame.building .screen .scan { opacity: 0.8; top: calc(var(--c, 0) * 100%); }
.build-frame .hud { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.build-frame .hud .hold-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(5,20,20,0.86); color: var(--fg); padding: 8px 12px 8px 8px; border-radius: 999px; font: 600 11px var(--label); letter-spacing: 0.14em; text-transform: uppercase; box-shadow: 0 6px 16px -8px rgba(5,20,20,0.4); }
.hold-pill .mini { width: 22px; height: 22px; position: relative; }
.hold-pill .mini svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.build-frame .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; align-items: baseline; }
.build-frame .meta .name { font: 600 18px var(--head); letter-spacing: -0.01em; }
.build-frame .meta a { font: 600 12px var(--label); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.build-frame .meta a:hover { text-decoration: underline; }
.build-count { display: flex; gap: 6px; margin-top: 10px; }
.build-count i { width: 22px; height: 3px; border-radius: 2px; background: var(--line); transition: background 0.4s; }
.build-count i.on { background: var(--fg); }
@media (max-width: 980px) { .cover { grid-template-columns: 1fr; } .cover-art { order: -1; padding: 30px 6px 10px; } }

/* ---------- ticker (light, never a black bar) ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,0.03); padding: 14px 0; }
.ticker-track { display: flex; width: max-content; gap: 0; animation: tick 46s linear infinite; }
.ticker-track span { font: 500 clamp(15px, 1.6vw, 20px) var(--head); white-space: nowrap; padding: 0 22px; display: inline-flex; align-items: center; gap: 22px; }
.ticker-track span::after { content: "✦"; font-size: 0.7em; color: var(--sand); }
@keyframes tick { to { transform: translateX(-50%); } }
[dir="rtl"] .ticker-track { animation-name: tick-rtl; } @keyframes tick-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- sections ---------- */
section.block { padding-block: clamp(64px, 10vw, 140px); position: relative; }
.spread-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 24px 60px; align-items: end; margin-bottom: clamp(30px, 5vw, 64px); }
@media (max-width: 860px) { .spread-head { grid-template-columns: 1fr; } }

/* the issue: one spread per site */
.issue { display: grid; gap: clamp(70px, 10vw, 150px); }
.spread { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(26px, 5vw, 80px); align-items: center; }
.spread:nth-child(even) { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.spread:nth-child(even) > a { order: 2; }
.stack { position: relative; padding: 0 12% 8% 0; }
.stack::before { content: ""; position: absolute; inset: 8% 4% 0 6%; border-radius: 32px; background: var(--tint, var(--mist)); opacity: 0.4; transform: rotate(-2deg); }
.stack .browser { position: relative; }
.stack .phone { position: absolute; right: 0; bottom: 0; width: 24%; }
.stack .flip img { opacity: 0; }
.stack .flip img.on { opacity: 1; }
.stack:hover .browser .screen img.on { transform: scale(1.02); }
.spread .n { font: 600 12px var(--label); letter-spacing: 0.2em; color: var(--sand); }
.spread .title { font-weight: 600; font-size: clamp(32px, 4.2vw, 58px); line-height: 1; letter-spacing: -0.035em; margin: 10px 0 8px; }
.spread .hook { font: 300 italic clamp(19px, 2vw, 24px)/1.3 var(--head); margin: 0 0 16px; }
.spread .tags { margin: 16px 0 20px; }
.spread .links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.spread .links a.live { font: 600 12px var(--label); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.pal { display: flex; gap: 0; margin-top: 18px; } .pal i { width: 26px; height: 26px; border-radius: 50%; margin-inline-end: -6px; border: 2px solid var(--bg); }
@media (max-width: 860px) {
  .spread, .spread:nth-child(even) { grid-template-columns: 1fr; }
  .spread:nth-child(even) > a { order: 0; }
}

/* capabilities wall */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cap { position: relative; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--glass-b); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: 0 20px 40px -32px rgba(0,0,0,0.6); overflow: hidden; }
.cap .no { font: 500 11px var(--mono); color: var(--mute); }
.cap h3 { font: 600 22px/1.15 var(--head); letter-spacing: -0.015em; margin: 14px 0 8px; }
.cap p { color: var(--ink-2); font-size: 15px; }
.cap .illo-slot { position: absolute; right: 16px; top: 16px; width: 54px; height: 54px; opacity: 0.9; }
.cap .seen { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--mute); }
.cap .seen a { color: var(--ink); text-decoration: none; font-weight: 500; } .cap .seen a:hover { text-decoration: underline; }
@media (max-width: 980px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .caps { grid-template-columns: 1fr; } }

/* process stages */
.stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stage { position: relative; padding: 26px 18px 20px 0; border-inline-end: 1px solid var(--line); margin-inline-end: 18px; }
.stage:last-child { border: 0; margin: 0; }
.stage .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fg); position: absolute; top: -8px; left: 0; transition: background 0.5s, transform 0.5s var(--spring); }
[dir="rtl"] .stage .dot { left: auto; right: 0; }
.stage.is-in .dot { background: var(--sand); border-color: var(--sand); transform: scale(1.2); }
.stage .no { font: 500 11px var(--mono); color: var(--mute); }
.stage h3 { font: 600 19px/1.2 var(--head); margin: 8px 0 6px; }
.stage p { font-size: 14px; color: var(--ink-2); margin: 0; }
@media (max-width: 980px) {
  .stages { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .stages::-webkit-scrollbar { display: none; }
  .stage { scroll-snap-align: start; }
}

/* shipped with every site */
.ships { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--glass); }
.ships > div { padding: 22px 20px; border-inline-end: 1px solid var(--line); }
.ships > div:last-child { border: 0; }
.ships b { display: block; font: 600 16px var(--head); margin: 8px 0 4px; }
.ships span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .ships { grid-template-columns: 1fr 1fr; } .ships > div { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .ships { grid-template-columns: 1fr; } .ships > div { border-inline-end: 0; } }

/* call to action band */
.cta-band { position: relative; border-radius: 36px; padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px); background: var(--fg); color: var(--bg); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 30px; align-items: end; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(181,121,63,0.45), transparent); }
.cta-band .kicker { color: #8a5a2c; }
.cta-band .lead { color: rgba(5,20,20,0.72); }
.cta-band .h-l { color: var(--bg); }
.cta-band .btn { background: var(--bg); color: var(--fg); border-color: var(--bg); }
.cta-band .btn.ghost { background: transparent; color: var(--bg); border-color: rgba(5,20,20,0.35); }
.cta-band .btn.ghost:hover { background: var(--bg); color: var(--fg); }
.cta-band .actions { display: grid; gap: 10px; position: relative; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; border-radius: 28px; } }

/* footer */
.footer { padding: 60px 0 calc(110px + env(safe-area-inset-bottom)); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; border-top: 1px solid var(--line); padding-top: 34px; }
.footer h4 { font: 600 11px var(--label); letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 12px; color: var(--mute); }
.footer a { display: block; text-decoration: none; padding: 3px 0; }
.footer a:hover { text-decoration: underline; }
.footer .fine { grid-column: 1 / -1; font-size: 13px; color: var(--mute); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .footer .wrap { grid-template-columns: 1fr 1fr; } .footer .wrap > div:first-child { grid-column: 1 / -1; } }
@media (min-width: 981px) { .footer { padding-bottom: 60px; } }

/* ---------- work index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter { border: 1.5px solid var(--line); background: var(--glass); border-radius: 999px; padding: 10px 16px; font: 500 14px var(--head); cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 4vw, 54px) clamp(18px, 3vw, 40px); }
.work-card { text-decoration: none; display: block; }
.work-card[hidden] { display: none; }
.work-card .stack { padding: 0 9% 7% 0; }
.work-card .head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 16px; }
.work-card h3 { font: 600 clamp(22px, 2.4vw, 30px)/1.1 var(--head); letter-spacing: -0.02em; margin: 0; }
.work-card .line { color: var(--ink-2); margin: 6px 0 0; font-size: 15px; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- services page ---------- */
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc .no { font: 500 12px var(--mono); color: var(--mute); padding-top: 8px; }
.svc h3 { font: 600 clamp(22px, 2.6vw, 32px)/1.1 var(--head); letter-spacing: -0.02em; margin: 0; }
.svc p { color: var(--ink-2); margin: 0 0 12px; }
@media (max-width: 760px) { .svc { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); }
.form { display: grid; gap: 12px; }
.form input, .form textarea, .form select { width: 100%; font: 400 16px var(--head); color: var(--ink); background: rgba(255,255,255,0.05); border: 1.5px solid var(--line); border-radius: 16px; padding: 15px 16px; transition: border-color 0.3s, background 0.3s; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--sand); background: rgba(255,255,255,0.08); }
.form .pick { display: flex; flex-wrap: wrap; gap: 8px; }
.form .pick label { cursor: pointer; }
.form .pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form .pick span { display: inline-flex; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--glass); font-size: 14px; transition: background 0.25s, color 0.25s; }
.form .pick input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.form .pick input:focus-visible + span { outline: 2px solid var(--sand); outline-offset: 2px; }
.channels { display: grid; gap: 10px; }
.channel { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-b); text-decoration: none; transition: transform 0.35s var(--spring); }
.channel:hover { transform: translateY(-3px); }
.channel b { font: 600 17px var(--head); display: block; }
.channel span { font-size: 14px; color: var(--ink-2); }
.send-card { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-b); }
.send-card .sc-k { margin: 0 0 6px; font: 600 10px var(--label); letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.7; }
.send-card .sc-msg { margin: 0 0 12px; padding: 12px; max-height: 180px; overflow: auto; border-radius: 12px; background: rgba(255,255,255,0.06); font: 13px/1.5 var(--head); white-space: pre-wrap; }
.send-card .sc-a { display: flex; flex-wrap: wrap; gap: 8px; }
.send-card .sc-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; font: 600 13.5px var(--head); text-decoration: none; cursor: pointer; }
.send-card .sc-btn.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- phone action bar ---------- */
.m-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; display: none; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 6px; border-radius: 22px; background: rgba(11,31,31,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 14px 30px -16px rgba(0,0,0,0.7); border: 1px solid var(--glass-b); transform: translateY(140%); transition: transform 0.5s var(--ease); }
.m-bar.on { transform: none; }
.m-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 16px; text-decoration: none; font: 600 14px var(--head); background: rgba(255,255,255,0.07); }
.m-bar a.primary { background: var(--fg); color: var(--bg); }
@media (max-width: 980px) { .m-bar { display: grid; } }

/* ---------- project page: the client's own brand, three boards ---------- */
body.project { --p-bg: var(--bg-2); --p-paper: var(--bg-3); --p-ink: var(--ink); --p-mute: var(--mute); --p-accent: var(--sand); --p-accent2: var(--mist); --p-head: var(--head); --p-body: var(--head); }
.p-hero { padding-top: clamp(30px, 5vw, 70px); padding-bottom: clamp(30px, 5vw, 60px); }
.p-hero .crumbs { display: flex; gap: 10px; align-items: center; font: 500 12px var(--mono); color: var(--mute); margin-bottom: 24px; }
.p-hero .crumbs a { text-decoration: none; } .p-hero .crumbs a:hover { text-decoration: underline; }
.p-title { font-family: var(--p-head); font-weight: 600; font-size: clamp(48px, 9vw, 140px); line-height: 0.9; letter-spacing: -0.045em; margin: 14px 0 20px; }
.p-hero .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 60px; align-items: end; }
@media (max-width: 860px) { .p-hero .grid { grid-template-columns: 1fr; } }
.board { position: relative; margin: 0 auto clamp(26px, 4vw, 48px); border-radius: clamp(24px, 3vw, 40px); background: var(--p-bg); color: var(--p-ink); font-family: var(--p-body); overflow: hidden; box-shadow: 0 40px 80px -50px rgba(5,20,20,0.5); }
.board-in { padding: clamp(26px, 5vw, 70px); }
.board-tab { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px clamp(26px, 5vw, 70px); border-bottom: 1px solid color-mix(in srgb, var(--p-ink) 14%, transparent); font: 600 11px var(--label); letter-spacing: 0.22em; text-transform: uppercase; }
.board-tab .spec { color: var(--p-mute); text-transform: none; letter-spacing: 0.02em; }
.board h2 { font-family: var(--p-head); font-weight: 600; font-size: clamp(30px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 18px; }
.board .lead { color: color-mix(in srgb, var(--p-ink) 78%, transparent); }
.board .kicker { color: var(--p-accent); }
.b-structure { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(26px, 5vw, 70px); }
.sitemap { display: grid; gap: 10px; counter-reset: dl; }
.sitemap .node { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--p-paper); border: 1px solid color-mix(in srgb, var(--p-ink) 10%, transparent); }
.sitemap .node .i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--p-accent); color: var(--p-bg); font: 600 12px var(--mono); }
.sitemap .node b { display: block; font: 600 16px/1.25 var(--p-body); margin-bottom: 4px; }
.sitemap .node span { font-size: 14px; color: color-mix(in srgb, var(--p-ink) 72%, transparent); line-height: 1.5; }
.board .chip { background: color-mix(in srgb, var(--p-paper) 70%, transparent); border-color: color-mix(in srgb, var(--p-ink) 14%, transparent); color: var(--p-ink); }
.b-interface { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(20px, 4vw, 50px); align-items: start; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.feat-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--p-ink) 14%, transparent); cursor: pointer; transition: opacity 0.3s; }
.feat-list li .no { font: 500 11px/1.9 var(--mono); color: var(--p-mute); }
.feat-list li b { display: block; font: 600 16px/1.3 var(--p-body); }
.feat-list li span { font-size: 14px; color: color-mix(in srgb, var(--p-ink) 72%, transparent); }
.feat-list li[aria-current="true"] b { color: var(--p-accent); }
.shots { display: grid; gap: 16px; }
.shots .browser .bar { background: color-mix(in srgb, var(--p-paper) 90%, #000 4%); }
.b-live { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 0.9fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.b-live .phone { max-width: 230px; margin: 0 auto; }
.b-live h2 { font-size: clamp(28px, 3.2vw, 46px); overflow-wrap: anywhere; }
.facts { display: grid; gap: 0; margin: 0; }
.facts div { padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--p-ink) 14%, transparent); }
.facts dt { font: 600 10px var(--label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--p-mute); }
.facts dd { margin: 4px 0 0; font-size: 15px; }
.board .btn { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-bg); }
.board .btn.ghost { background: transparent; color: var(--p-ink); border-color: color-mix(in srgb, var(--p-ink) 40%, transparent); }
.p-pal { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.p-pal span { display: grid; gap: 6px; font: 500 10.5px var(--mono); color: var(--p-mute); }
.p-pal i { width: 46px; height: 46px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--p-ink) 12%, transparent); }
.proj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 0; }
.proj-nav a { display: block; padding: 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-b); text-decoration: none; transition: transform 0.35s var(--spring); }
.proj-nav a:hover { transform: translateY(-3px); }
.proj-nav a.next { text-align: end; }
.proj-nav small { display: block; font: 600 10px var(--label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.proj-nav b { font: 600 clamp(18px, 2.2vw, 26px) var(--head); letter-spacing: -0.02em; }
@media (max-width: 980px) {
  .b-structure, .b-interface { grid-template-columns: 1fr; }
  .b-live { grid-template-columns: 1fr; }
  .b-live .phone { max-width: 200px; }
}
[dir="rtl"] .stack { padding: 0 0 8% 12%; } [dir="rtl"] .stack .phone { right: auto; left: 0; }

@media (max-width: 600px) {
  .entry-bar span:nth-child(2) { display: none; }
  .cover-art .sticker.paper { display: none; }
  .cover-art .sticker.round { width: 84px; height: 84px; font-size: 13px; }
}

/* ---------- the immersive case: arrive · enter · live ---------- */
.arrive { position: relative; min-height: calc(100svh - 110px); display: grid; align-items: end; overflow: hidden; isolation: isolate; color: #fff; }
.arrive canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.arrive::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg) 0%, rgba(5,20,20,0.72) 26%, rgba(5,20,20,0) 62%); pointer-events: none; }
.arrive-copy { position: relative; padding-top: 18vh; padding-bottom: clamp(70px, 12vh, 130px); }
.arrive .crumbs { display: flex; gap: 10px; font: 500 12px var(--mono); color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.arrive .crumbs a { text-decoration: none; } .arrive .crumbs a:hover { text-decoration: underline; }
.arrive .kicker { color: rgba(255,255,255,0.8); }
.arrive .p-title { color: #fff; text-shadow: 0 10px 40px rgba(0,0,0,0.35); margin: 12px 0 14px; }
.arrive .lead { color: rgba(255,255,255,0.86); max-width: 34em; }
.arrive .cta-row { margin-top: 26px; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 600 10px var(--label); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.75); pointer-events: none; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,0), #fff); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.world-theme { position: absolute; right: var(--gutter); top: 22px; z-index: 2; border: 1px solid rgba(255,255,255,0.35); background: rgba(0,0,0,0.25); color: #fff; border-radius: 999px; padding: 9px 14px; font: 600 10px var(--label); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.arrive.is-light { color: #14130f; }
.arrive.is-light .p-title, .arrive.is-light .lead, .arrive.is-light .kicker, .arrive.is-light .crumbs, .arrive.is-light .scroll-cue { color: #14130f; text-shadow: none; }
.arrive.is-light::after { background: linear-gradient(to top, var(--bg) 0%, rgba(250,247,240,0.4) 30%, rgba(250,247,240,0) 62%); }
.arrive.is-light .world-theme { color: #14130f; border-color: rgba(20,19,15,0.3); background: rgba(255,255,255,0.4); }
@media (prefers-reduced-motion: reduce) { .scroll-cue i { animation: none; } }

.enter { position: relative; height: var(--len, 700vh); }
.enter-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.enter-hello { position: absolute; top: 9vh; left: 0; right: 0; display: grid; justify-items: center; gap: 6px; margin: 0; pointer-events: none; }
.enter-hello b { font: 600 clamp(22px, 3vw, 36px) var(--head); letter-spacing: -0.02em; }
.enter-frame { --r: 16px; position: relative; width: min(1060px, 84vw); aspect-ratio: 16 / 10.6; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 50px 100px -40px rgba(0,0,0,0.8), 0 0 0 1px var(--glass-b); transform: scale(0.74); transform-origin: 50% 50%; will-change: transform; }
.enter-frame .bar { position: absolute; top: 0; left: 0; right: 0; height: 34px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: rgba(11,31,31,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.enter-frame .dots { display: flex; gap: 5px; } .enter-frame .dots i { width: 9px; height: 9px; border-radius: 50%; background: #e8b4a2; } .enter-frame .dots i:nth-child(2) { background: #e9d3a4; } .enter-frame .dots i:nth-child(3) { background: #b9d2c9; }
.enter-frame .url { flex: 1; height: 22px; border-radius: 7px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; font: 500 11.5px var(--mono); color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.enter-pct { min-width: 3.4em; text-align: end; }
.enter-screen { position: absolute; top: 34px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.enter-strip { will-change: transform; }
.enter-strip img { width: 100%; height: auto; display: block; }
.enter-note { position: absolute; left: var(--gutter); bottom: clamp(18px, 5vh, 46px); z-index: 3; width: min(360px, calc(100vw - 2 * var(--gutter))); padding: 16px 18px 18px; border-radius: 18px; background: rgba(5,20,20,0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--glass-b); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7); display: grid; gap: 6px; opacity: 0; transform: translateY(14px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.enter-note::before { content: ""; position: absolute; left: 22px; top: -28px; width: 1px; height: 28px; background: linear-gradient(transparent, var(--sand)); }
.enter-note.on { opacity: 1; transform: none; }
.enter-note .spec b { color: var(--sand); font-weight: 600; }
.enter-note .t { font: 600 18px/1.2 var(--head); }
.enter-note .d { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.enter-rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.enter-rail li { width: 4px; height: 26px; border-radius: 2px; background: rgba(243,239,231,0.22); transition: background 0.4s; }
.enter-rail li.on { background: var(--sand); }
.enter-end { position: absolute; left: 0; right: 0; bottom: 9vh; z-index: 3; display: grid; justify-items: center; gap: 12px; opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.enter-end.on { opacity: 1; transform: none; pointer-events: auto; }
.enter.inside .enter-frame { box-shadow: none; }
/* phones: their phone site, full screen */
.enter.is-phone .enter-frame { width: min(78vw, 340px); aspect-ratio: 9 / 18.5; border-radius: 34px; }
.enter.is-phone .enter-frame .bar { height: 30px; justify-content: center; }
.enter.is-phone .enter-frame .dots, .enter.is-phone .enter-pct { display: none; }
.enter.is-phone .enter-frame .url { flex: 0 1 auto; justify-content: center; font-size: 11px; }
.enter.is-phone .enter-screen { top: 30px; }
.enter.is-phone .enter-note { left: 12px; right: 12px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 12px 14px; }
.enter.is-phone .enter-note .t { font-size: 16px; }
.enter.is-phone .enter-note .d { font-size: 13px; }
.enter.is-phone .enter-rail { right: 6px; gap: 5px; }
.enter.is-phone .enter-rail li { height: 16px; width: 3px; }
/* reduced motion: a still frame you can scroll inside */
.enter.static { height: auto; padding: 40px 0; }
.enter.static .enter-stage { position: relative; height: auto; display: grid; gap: 20px; padding: 0 var(--gutter); }
.enter.static .enter-frame { transform: none; }
.enter.static .enter-screen { overflow-y: auto; }
.enter.static .enter-hello, .enter.static .enter-rail { display: none; }
.enter.static .enter-note, .enter.static .enter-end { position: relative; opacity: 1; transform: none; left: auto; bottom: auto; pointer-events: auto; }

/* the live site, inside the page */
.live-view { position: fixed; inset: 0; z-index: 180; display: grid; grid-template-rows: auto 1fr; background: rgba(5,20,20,0.92); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.4s var(--ease); }
.live-view.on { opacity: 1; }
.live-bar { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); }
.live-bar .dots { display: flex; gap: 6px; }
.live-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #e8b4a2; } .live-bar .dots i:nth-child(2) { background: #e9d3a4; } .live-bar .dots i:nth-child(3) { background: #b9d2c9; }
.live-bar .url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 10px; background: rgba(255,255,255,0.07); border: 1px solid var(--line); font: 500 13px var(--mono); overflow: hidden; white-space: nowrap; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 0 4px rgba(95,211,141,0.18); flex: none; }
.live-tab { font: 600 11px var(--label); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.live-x { border: 1px solid var(--glass-b); background: var(--fg); color: var(--bg); border-radius: 999px; padding: 9px 16px; font: 600 12px var(--label); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.live-body { position: relative; margin: 0 var(--gutter) var(--gutter); border-radius: 18px; overflow: hidden; background: #fff; transform: scale(0.96); transition: transform 0.6s var(--ease); }
.live-view.on .live-body { transform: none; }
.live-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.6s; }
.live-view.loaded iframe { opacity: 1; }
.live-load { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg-2); }
.live-view.loaded .live-load { display: none; }
@media (max-width: 700px) { .live-tab, .live-bar .dots { display: none; } .live-body { margin: 0; border-radius: 0; } }
.case-head { padding-top: clamp(50px, 8vw, 100px); padding-bottom: 26px; }

.nav { transition: background 0.4s, box-shadow 0.4s, transform 0.5s var(--ease); }
/* immersive moments (a case's stage, walking the desert cover): the header steps aside,
   but the menu button stays with you, floating at the top right; opening the menu brings the header back */
body.immersed:not(.menu-open) .nav, body.desert-walk:not(.menu-open) .nav { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
body.immersed:not(.menu-open) .nav .wrap > :not(.nav-right), body.desert-walk:not(.menu-open) .nav .wrap > :not(.nav-right),
body.immersed:not(.menu-open) .nav-right > :not(.nav-burger), body.desert-walk:not(.menu-open) .nav-right > :not(.nav-burger) { opacity: 0; visibility: hidden; }
.nav .wrap > *, .nav-right > * { transition: opacity 0.4s, visibility 0.4s; }
body.immersed .nav-burger, body.desert-walk .nav-burger { display: grid; pointer-events: auto; background: rgba(5,20,20,0.55); border-color: rgba(243,239,231,0.32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.immersed .nav-right, body.desert-walk .nav-right { margin-inline-start: auto; }
body.immersed .m-bar, body.desert-walk .m-bar { transform: translateY(140%); pointer-events: none; }   /* out of the way during the immersive moments */

/* the cover opens the real website (sites that are online) */
.arrive.is-link { cursor: pointer; }
.arrive-link { position: absolute; inset: 0; z-index: 0; }
.arrive.is-link .arrive-copy { pointer-events: none; z-index: 1; }
.arrive.is-link .arrive-copy a, .arrive.is-link .arrive-copy button { pointer-events: auto; }
.arrive .world-theme { z-index: 2; }
.arrive-open { position: absolute; right: var(--gutter); bottom: 26px; z-index: 1; pointer-events: none; display: inline-flex; gap: 6px; align-items: center; padding: 9px 14px; border-radius: 999px; background: rgba(5,20,20,0.55); border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 600 11px var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; opacity: 0.75; transform: translateY(0); transition: opacity 0.3s, transform 0.4s var(--ease), background 0.3s; }
.arrive.is-link:hover .arrive-open { opacity: 1; background: rgba(5,20,20,0.8); transform: translateY(-3px); }
.arrive-open b { font-weight: 600; text-transform: none; letter-spacing: 0.02em; font-family: var(--mono); }
.arrive.is-light .arrive-open { color: #14130f; background: rgba(255,255,255,0.55); border-color: rgba(20,19,15,0.2); }
.live-view.is-local .dot-live { display: none; }
@media (max-width: 760px) { .arrive-open { bottom: auto; top: 16px; right: 12px; } .arrive .world-theme { top: 60px; } .scroll-cue { display: none; } }

/* the cover as an activation: the name over the client's world, one ring to hold */
.arrive { align-items: center; justify-items: center; min-height: calc(100svh - 72px); }
.arrive-mark { position: relative; z-index: 1; pointer-events: none; text-align: center; padding: 0 var(--gutter); display: grid; justify-items: center; gap: 6px; margin-top: -6vh;
  transform: scale(calc(1 + var(--hc, 0) * 0.07)); filter: blur(calc(var(--hc, 0) * 1.6px)); opacity: calc(1 - var(--hc, 0) * 0.45); transition: transform 0.15s linear; }
.arrive-mark .p-title { font-size: clamp(56px, 12.5vw, 200px); line-height: 0.92; margin: 0; letter-spacing: -0.045em; }
.arrive-n { color: rgba(255,255,255,0.7); letter-spacing: 0.2em; }
.arrive.is-light .arrive-n { color: rgba(20,19,15,0.6); }
.arrive-hold { position: absolute; left: 50%; bottom: clamp(40px, 10vh, 96px); transform: translateX(-50%); z-index: 2; display: grid; justify-items: center; gap: 12px; }
.arrive-ring { width: 84px; height: 84px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.arrive-ring .core { width: 14px; height: 14px; border-radius: 50%; background: var(--p-accent, var(--sand)); pointer-events: none;
  box-shadow: 0 0 0 calc(var(--hc, 0) * 22px) color-mix(in srgb, var(--p-accent, #b5793f) 28%, transparent), 0 0 30px var(--p-accent, #b5793f); animation: breathe 2.4s var(--ease) infinite; }
.arrive-ring .ring .prog { stroke: var(--p-accent, var(--sand)); }
@keyframes breathe { 50% { transform: scale(1.35); } }
.arrive.charging .arrive-ring .core { animation: none; }
.arrive-hold .hold-label { transition: opacity 0.3s; }
.arrive.charging .hold-label { opacity: 0; }
.arrive.activated .arrive-mark { opacity: 0; transform: scale(1.3); filter: blur(8px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), filter 0.6s; }
.arrive.activated .arrive-hold { opacity: 0; transition: opacity 0.4s; }
@media (prefers-reduced-motion: reduce) { .arrive-ring .core { animation: none; } }
@media (max-width: 760px) { .arrive-hold { bottom: calc(86px + env(safe-area-inset-bottom)); } .arrive-mark { margin-top: -10vh; } }

/* cover polish: ring glow per world, legible names on light worlds */
.arrive-ring .core { background: var(--glow, var(--sand)); box-shadow: 0 0 0 calc(var(--hc, 0) * 22px) color-mix(in srgb, var(--glow, #b5793f) 28%, transparent), 0 0 30px var(--glow, #b5793f); }
.arrive-ring .ring .prog { stroke: var(--glow, var(--sand)); }
.arrive-mark::before { content: ""; position: absolute; inset: -40% -14%; z-index: -1; background: radial-gradient(closest-side, rgba(5,20,20,0.34), rgba(5,20,20,0)); pointer-events: none; }
.arrive-mark .p-title { text-shadow: 0 6px 30px rgba(0,0,0,0.35); }
.arrive[data-world="light"] .arrive-mark::before { background: radial-gradient(closest-side, rgba(255,248,236,0.5), rgba(255,248,236,0)); }
.arrive[data-world="light"] .arrive-mark .p-title { color: var(--p-ink, #30221f); text-shadow: none; }
.arrive[data-world="light"] .arrive-n { color: rgba(48,34,31,0.65); }
.arrive.is-light .arrive-mark::before { background: radial-gradient(closest-side, rgba(250,247,240,0.55), rgba(250,247,240,0)); }
.arrive-hold .hold-label { white-space: nowrap; }

/* ---------- cover · a desert of websites ---------- */
.desert { position: relative; height: 1080vh; margin-top: -1px; }
.desert-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #24302e; }
.desert-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.desert-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(5,20,20,0.55)), linear-gradient(to top, rgba(5,20,20,0.6), transparent 30%); }
.desert-intro, .desert-awake { position: absolute; left: 0; right: 0; top: 16vh; z-index: 2; text-align: center; padding: 0 var(--gutter); pointer-events: none; transition: opacity 0.9s var(--ease), transform 1.2s var(--ease), filter 0.9s; }
.desert-intro .kicker { color: rgba(243,239,231,0.75); justify-content: center; }
.desert-line { font: 300 clamp(30px, 5vw, 72px)/1.08 var(--head); letter-spacing: -0.03em; margin: 16px 0 0; color: #f3efe7; text-shadow: 0 10px 40px rgba(0,0,0,0.35);
  opacity: calc(1 - var(--c, 0) * 0.6); filter: blur(calc(var(--c, 0) * 2px)); }
.desert-line b { font-weight: 600; }
.desert.awake .desert-intro { opacity: 0; transform: translateY(-30px); }
.desert-awake { opacity: 0; transform: translateY(24px); }
.desert.awake .desert-awake { opacity: 1; transform: none; transition-delay: 0.9s; }
.desert.walking .desert-awake { opacity: 0; transform: translateY(-30px); transition-delay: 0s; }
.desert-title { font: 600 clamp(40px, 7.4vw, 116px)/0.95 var(--head); letter-spacing: -0.045em; margin: 0 0 14px; color: #f3efe7; text-shadow: 0 12px 50px rgba(0,0,0,0.4); }
.desert-title em { font-weight: 300; }
.desert-awake .spec { color: rgba(243,239,231,0.75); letter-spacing: 0.12em; }
.desert-hold { position: absolute; left: 50%; bottom: clamp(48px, 13vh, 130px); transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 12px; transition: opacity 0.6s, transform 0.8s var(--ease); }
.desert.awake .desert-hold { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
.desert-ring { width: 88px; height: 88px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.desert-ring .core { width: 14px; height: 14px; border-radius: 50%; background: #e7b98f; pointer-events: none; box-shadow: 0 0 0 calc(var(--c, 0) * 26px) rgba(231,185,143,0.22), 0 0 30px #e7b98f; animation: breathe 2.4s var(--ease) infinite; }
.desert-ring .ring .prog { stroke: #e7b98f; }
.desert.charging .desert-ring .core { animation: none; }
.desert.charging .hold-label { opacity: 0; }
.desert-hud { position: absolute; left: var(--gutter); bottom: clamp(34px, 8vh, 80px); z-index: 3; max-width: 420px; display: grid; gap: 6px; justify-items: start; opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); pointer-events: none; }
.desert-hud.on { opacity: 1; transform: none; pointer-events: auto; }
.desert-hud .spec { color: #e7b98f; letter-spacing: 0.16em; }
.desert-hud .t { font: 600 clamp(34px, 4.6vw, 64px)/0.98 var(--head); letter-spacing: -0.035em; margin: 0; color: #f3efe7; }
.desert-hud .h { font: 300 italic clamp(17px, 1.6vw, 21px)/1.35 var(--head); margin: 0 0 8px; color: rgba(243,239,231,0.85); }
.desert-dots { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; opacity: 0; transition: opacity 0.6s; }
.desert.awake .desert-dots { opacity: 1; transition-delay: 1.2s; }
.desert-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(243,239,231,0.6); background: transparent; padding: 0; cursor: pointer; transition: background 0.3s, transform 0.3s var(--spring); }
.desert-dots button.on { background: #e7b98f; border-color: #e7b98f; transform: scale(1.3); }
.desert-sound { position: absolute; left: var(--gutter); top: 18px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(243,239,231,0.25); background: rgba(5,20,20,0.35); color: #f3efe7; border-radius: 999px; padding: 8px 13px; font: 600 10px var(--label); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(8px); }
.desert-sound i { width: 14px; height: 10px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px); opacity: 0.5; }
.desert-sound[aria-pressed="true"] i { opacity: 1; animation: eq 0.9s ease-in-out infinite alternate; }
@keyframes eq { to { transform: scaleY(0.4); } }
.desert-skip { position: absolute; right: var(--gutter); bottom: 22px; z-index: 3; font: 600 10px var(--label); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(243,239,231,0.7); text-decoration: none; }
.desert-skip:hover { color: #f3efe7; }
.desert-static { display: none; }
/* still version: no WebGL, or reduced motion */
.desert.static { height: auto; }
.desert.static .desert-stage { position: relative; height: auto; padding: 120px var(--gutter) 70px; background: radial-gradient(80% 60% at 50% 0%, #0e3236, #051414); }
.desert.static .desert-gl, .desert.static .desert-hold, .desert.static .desert-hud, .desert.static .desert-dots, .desert.static .desert-sound, .desert.static .desert-intro, .desert.static .desert-skip { display: none; }
.desert.static .desert-awake { position: relative; top: auto; opacity: 1; transform: none; margin-bottom: 40px; }
.desert.static .desert-static { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; max-width: 1200px; margin: 0 auto; }
.mono-card { position: relative; display: grid; gap: 4px; text-decoration: none; color: #f3efe7; }
.mono-card img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 10px; border: 1px solid var(--glass-b); box-shadow: 0 30px 50px -30px var(--tint); }
.mono-card b { font: 600 16px var(--head); } .mono-card span:last-child { font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) { .desert.static .desert-static { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .desert-intro, .desert-awake { top: 13vh; }
  .desert-hold { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .desert-hud { right: var(--gutter); bottom: calc(92px + env(safe-area-inset-bottom)); }
  .desert-dots { right: 10px; gap: 8px; }
  .desert-skip { bottom: auto; top: 30px; right: calc(var(--gutter) + 56px); }   /* left of the menu button, which stays on screen */
}

.hold-label { white-space: nowrap; }

.desert-hud { max-width: min(30vw, 380px); }
.desert-hud .t { font-size: clamp(30px, 3.4vw, 52px); }
@media (max-width: 760px) { .desert-hud { max-width: none; } .desert-hud .t { font-size: clamp(30px, 8.5vw, 40px); }
  /* on a phone the tall screen runs behind the name: a soft shade keeps the words readable */
  .desert-hud::before { content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: -56px; bottom: -120px; background: linear-gradient(to top, rgba(5,20,20,0.92) 45%, rgba(5,20,20,0.6) 75%, transparent); pointer-events: none; } }

/* avenue cover: the label takes the open side, away from the wide screen */
@media (min-width: 761px) {
  .desert-hud.flip { left: auto; right: calc(var(--gutter) + 34px); justify-items: end; text-align: end; }
  .desert-hud { max-width: min(26vw, 340px); }
}

/* cover v3 · the gem: Zarra, the guide, stands beside it */
.desert-guide { position: absolute; right: clamp(8px, 3vw, 46px); bottom: 54px; width: 250px; height: 300px; z-index: 3; pointer-events: none; opacity: 0.0; transition: opacity 0.8s var(--ease); }
.desert .desert-guide { opacity: 1; }
.desert.static .desert-guide { display: none; }
@media (max-width: 760px) { .desert-guide { width: 150px; height: 180px; right: 0; bottom: calc(150px + env(safe-area-inset-bottom)); } }

/* the journey (desert-journey.js): the client's one line, mid-way to its screen */
.journey-line { position: absolute; left: 50%; top: clamp(96px, 18vh, 190px); z-index: 3; width: min(88vw, 760px); text-align: center; color: #f3efe7; pointer-events: none; opacity: 0; transform: translate(-50%, 10px); text-shadow: 0 2px 26px rgba(5,20,20,0.55); }
.journey-line .spec { color: #e7b98f; letter-spacing: 0.16em; }
.journey-line p { margin: 0.35em 0 0; font: 300 italic clamp(26px, 3.6vw, 50px)/1.12 var(--head); letter-spacing: -0.02em; }

/* work · section 02: software & systems */
.sys-card .sys-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 8px 0 12px; max-width: 56ch; }
.sys-card .chips { margin: 0; }
.sys-card .sys-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#systems { scroll-margin-top: 90px; }
