/* ============================================================
   SOFT ERROR® — a vibe-code atelier
   A five-plate transmission. No templates were harmed.
   ============================================================ */

:root{
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --pad: clamp(18px, 2.6vw, 42px);
  --top: 64px;
  --bottom: 88px;
  --accent: #d8ff45;
  --page-bg: #07060b;
  --chrome: #f3ecdf;
  --chrome-dim: rgba(243, 236, 223, .5);
  --chrome-line: rgba(243, 236, 223, .16);
  --chrome-bg: rgba(7, 6, 11, .6);
  --orbit-line: rgba(243, 236, 223, .22);
  --orbit-dot: #d8ff45;
  --orb-x: 67%;
  --orb-y: 46%;
  --orb-s: 1;
}

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

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--page-bg);
  color: var(--chrome);
  font-family: var(--sans);
  overflow: hidden;
  transition: background-color .7s var(--ease), color .5s var(--ease);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-theme="dark"]{
  --page-bg: #07060b;
  --chrome: #f3ecdf;
  --chrome-dim: rgba(243, 236, 223, .5);
  --chrome-line: rgba(243, 236, 223, .16);
  --chrome-bg: rgba(7, 6, 11, .62);
  --orbit-line: rgba(243, 236, 223, .2);
}

body[data-theme="light"]{
  --page-bg: #e9e1d2;
  --chrome: #17131a;
  --chrome-dim: rgba(23, 19, 26, .56);
  --chrome-line: rgba(23, 19, 26, .18);
  --chrome-bg: rgba(233, 225, 210, .74);
  --orbit-line: rgba(23, 19, 26, .2);
}

/* plate-chrome accents */
body[data-plate="0"]{ --accent: #d8ff45; --orbit-dot: #d8ff45; --orb-x: 68%; --orb-y: 45.5%; --orb-s: 1; }
body[data-plate="1"]{ --accent: #ff7b5e; --orbit-dot: #ff7b5e; --orb-x: 83%; --orb-y: 50%; --orb-s: .8; }
body[data-plate="2"]{ --accent: #8ef2ff; --orbit-dot: #8ef2ff; --orb-x: 82%; --orb-y: 66%; --orb-s: .62; }
body[data-plate="3"]{ --accent: #a3412f; --orbit-dot: #a3412f; --orb-x: 75%; --orb-y: 47%; --orb-s: .86; }
body[data-plate="4"]{ --accent: #d8ff45; --orbit-dot: #ff5c8a; --orb-x: 80%; --orb-y: 50%; --orb-s: .78; }

::selection{ background: var(--accent); color: var(--page-bg); }

button, input{ font: inherit; color: inherit; }
button{ background: none; border: 0; padding: 0; }
a{ color: inherit; }
canvas{ display: block; }
h1, h2, h3, p, blockquote, ol, ul{ margin: 0; }
sup{ line-height: 0; }

:focus-visible{
  outline: 1px solid var(--pa, var(--accent));
  outline-offset: 4px;
}
.project-head:focus-visible,
.vibe-row input:focus-visible{ outline-offset: -3px; }


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

.skip-link{
  position: fixed; left: 16px; top: 16px; z-index: 10000;
  background: var(--accent); color: #07060b; font-family: var(--mono);
  font-size: 11px; letter-spacing: .08em; padding: 10px 14px;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus{ transform: none; }

@media (pointer: fine){
  body{ cursor: none; }
  a, button{ cursor: none; }
  input{ cursor: text; }
}

/* ------------------------------------------------------------
   Stage / world
   ------------------------------------------------------------ */
.stage{
  position: fixed; inset: 0; z-index: 0;
  background: var(--page-bg);
  transition: background-color .7s var(--ease);
}
#gl{
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
body.ready #gl{ opacity: 1; }

.no-webgl #gl{ display: none; }
.no-webgl .stage::before{
  content: "";
  position: absolute; left: var(--orb-x); top: var(--orb-y);
  width: min(52vw, 720px); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--orb-s));
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,.9), transparent 16%),
    conic-gradient(from 210deg, #d8ff45, #8f7bff, #ff7259, #8ef2ff, #d8ff45);
  filter: blur(18px) saturate(1.15);
  opacity: .72;
  transition: left .9s var(--ease), top .9s var(--ease), transform .9s var(--ease), background .7s;
}

.orbit{
  position: fixed; left: var(--orb-x); top: var(--orb-y); z-index: 1;
  width: min(62vw, 880px); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(var(--orb-s));
  color: var(--orbit-line);
  mix-blend-mode: screen;
  opacity: var(--orbit-opacity, .55);
  pointer-events: none;
  transition: left 1.1s var(--ease), top 1.1s var(--ease), transform 1.1s var(--ease), opacity .7s, color .5s;
}
body[data-theme="light"] .orbit{ mix-blend-mode: multiply; }
.orbit svg{ width: 100%; height: 100%; overflow: visible; display: block; }
.orbit-slow{ transform-origin: 400px 400px; animation: orbitDrift 80s linear infinite; }
.orbit-spin{ transform-origin: 400px 400px; animation: orbitDrift 26s linear infinite; }
.orbit-cross{ opacity: .45; }

@keyframes orbitDrift{ to{ transform: rotate(360deg); } }

.grain{
  position: fixed; inset: -40px; z-index: 90; pointer-events: none;
  opacity: .055;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
  animation: grainShift .45s steps(2) infinite;
}
body[data-theme="light"] .grain{ opacity: .09; mix-blend-mode: multiply; }
@keyframes grainShift{
  0%{ transform: translate(0, 0); }
  25%{ transform: translate(-12px, 8px); }
  50%{ transform: translate(10px, -10px); }
  75%{ transform: translate(-6px, -6px); }
  100%{ transform: translate(8px, 12px); }
}

.vignette{
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.016) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 46%, transparent 42%, rgba(0,0,0,.38) 100%);
}
body[data-theme="light"] .vignette{
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.014) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 46%, transparent 45%, rgba(70,45,30,.18) 100%);
}

/* ------------------------------------------------------------
   Custom cursor
   ------------------------------------------------------------ */
.cursor{
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 0; height: 0;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
  opacity: 0;
  transition: opacity .25s;
}
body.pointer-seen .cursor{ opacity: 1; }
.cursor-ring{
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border: 1px solid currentColor; border-radius: 50%;
  opacity: .55;
  transition: width .32s var(--ease), height .32s var(--ease), margin .32s var(--ease), opacity .32s, border-radius .32s;
}
.cursor-dot{
  position: absolute; left: 0; top: 0;
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  background: currentColor; border-radius: 50%;
  transition: transform .2s;
}
.cursor-label{
  position: absolute; left: 24px; top: 16px;
  padding: 3px 6px; background: #fff; color: #000;
  font-family: var(--mono); font-size: 8px; letter-spacing: .14em;
  white-space: nowrap; opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s, transform .25s var(--ease);
}
.cursor.is-hover .cursor-ring{ width: 54px; height: 54px; margin: -27px 0 0 -27px; opacity: .95; }
.cursor.is-hover .cursor-label{ opacity: 1; transform: none; }
.cursor.is-down .cursor-ring{ width: 20px; height: 20px; margin: -10px 0 0 -10px; opacity: 1; }
.cursor.is-hidden{ opacity: 0; }

@media (pointer: coarse){
  .cursor{ display: none; }
}

/* ------------------------------------------------------------
   Chrome — topbar
   ------------------------------------------------------------ */
.topbar{
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  height: var(--top);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  color: var(--chrome);
  background: var(--chrome-bg);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--chrome-line);
  transition: color .5s, background-color .6s, border-color .5s;
}
.topbar::after{
  content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 26%, transparent 74%, var(--accent));
  opacity: .5;
}

.brand{
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex: none;
}
.brand-mark{ width: 18px; height: 18px; transition: transform .8s var(--ease); color: var(--accent); }
.brand:hover .brand-mark{ transform: rotate(90deg); }
.brand-name{
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .04em; white-space: nowrap;
}
.brand-name sup{ font-size: 7px; vertical-align: super; opacity: .7; }
.brand-sub{
  font-family: var(--mono); font-size: 8px; letter-spacing: .16em;
  color: var(--chrome-dim); white-space: nowrap;
  padding-left: 10px; border-left: 1px solid var(--chrome-line);
  line-height: 1.2;
}

.top-mid{
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em;
  color: var(--chrome-dim);
  white-space: nowrap;
}
.top-mid .sep{ opacity: .45; }

.top-right{ display: flex; align-items: center; gap: 8px; flex: none; }

.status{
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 8px; letter-spacing: .13em;
  color: var(--chrome-dim); margin-right: 10px;
  white-space: nowrap;
}
.status-dot{
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: statusPulse 2.4s ease-out infinite;
}
@keyframes statusPulse{
  0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70%{ box-shadow: 0 0 0 7px transparent; }
  100%{ box-shadow: 0 0 0 0 transparent; }
}

.chrome-btn{
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 10px;
  border: 1px solid var(--chrome-line);
  font-family: var(--mono); font-size: 8px; letter-spacing: .12em;
  color: var(--chrome-dim);
  transition: color .25s, border-color .25s, background-color .25s;
}
.chrome-btn:hover{ color: var(--page-bg); background: var(--accent); border-color: var(--accent); }
.chrome-btn[aria-pressed="true"]{ color: var(--accent); border-color: var(--accent); }
.chrome-btn[aria-pressed="true"]:hover{ color: var(--page-bg); }

.audio-bars{ display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.audio-bars i{ display: block; width: 2px; height: 3px; background: currentColor; transition: height .2s; }
body.audio-on .audio-bars i{ animation: audioBar .9s ease-in-out infinite alternate; }
body.audio-on .audio-bars i:nth-child(2){ animation-delay: .18s; }
body.audio-on .audio-bars i:nth-child(3){ animation-delay: .34s; }
body.audio-on .audio-bars i:nth-child(4){ animation-delay: .52s; }
@keyframes audioBar{ from{ height: 2px; } to{ height: 10px; } }

/* ------------------------------------------------------------
   Chrome — transport
   ------------------------------------------------------------ */
.transport{
  position: fixed; inset: auto 0 0 0; z-index: 80;
  height: var(--bottom);
  color: var(--chrome);
  background: var(--chrome-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-top: 1px solid var(--chrome-line);
  transition: color .5s, background-color .6s, border-color .5s;
}
.transport-progress{
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--chrome-line);
}
.transport-fill{
  height: 100%; width: 20%;
  background: var(--accent);
  transition: width .8s var(--ease), background-color .5s;
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.transport-row{
  height: 100%;
  display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center; gap: 20px;
  padding: 0 var(--pad);
}

.transport-id{ display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.live{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 8px; letter-spacing: .16em; color: var(--accent);
}
.live i{ width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: liveBlink 1.6s steps(2) infinite; }
@keyframes liveBlink{ 50%{ opacity: .15; } }
.uptime{ font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--chrome-dim); }

.stops{ display: flex; align-items: stretch; gap: clamp(6px, 1.4vw, 22px); justify-content: center; }
.stop{
  position: relative;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 2px;
  color: var(--chrome-dim);
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em;
  white-space: nowrap;
  transition: color .3s;
}
.stop::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.stop:hover{ color: var(--chrome); }
.stop:hover::after{ transform: scaleX(1); }
.stop.is-active{ color: var(--accent); }
.stop.is-active::after{ transform: scaleX(1); }
.stop-num{ font-weight: 500; }
.stop-name{ opacity: .75; font-size: 7.5px; }
.stop.is-active .stop-name{ opacity: 1; }

.transport-meta{ display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.wave{ width: 104px; height: 24px; opacity: .85; }
.signal-label{ font-family: var(--mono); font-size: 7.5px; letter-spacing: .14em; color: var(--chrome-dim); white-space: nowrap; }
.arrows{ display: flex; gap: 4px; }
.arrow{
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--chrome-line);
  font-family: var(--mono); font-size: 13px;
  color: var(--chrome-dim);
  transition: color .25s, border-color .25s, background-color .25s, opacity .25s;
}
.arrow:hover:not(:disabled){ color: var(--page-bg); background: var(--accent); border-color: var(--accent); }
.arrow:disabled{ opacity: .28; }

/* ------------------------------------------------------------
   Hint + toast
   ------------------------------------------------------------ */
.hint{
  position: fixed; left: 50%; bottom: calc(var(--bottom) + 18px); z-index: 60;
  display: flex; align-items: center; gap: 10px;
  color: var(--chrome-dim);
  font-family: var(--mono); font-size: 8px; letter-spacing: .14em;
  pointer-events: none;
  transform: translateX(-50%);
  transition: transform .6s var(--ease), opacity .6s;
}
.hint-icon svg{ width: 14px; height: 20px; display: block; }
.hint-text{ position: relative; }
.hint-text::after{
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 100%;
  background: var(--chrome-line);
  transform: scaleX(1); transform-origin: right; transition: transform .5s;
}
body.has-tuned .hint{ opacity: 0; transform: translate(-50%, 8px); }

.toast{
  position: fixed; right: var(--pad); bottom: calc(var(--bottom) + 18px); z-index: 70;
  padding: 9px 12px;
  border: 1px solid var(--chrome-line);
  background: var(--chrome-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--chrome-dim);
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em;
  opacity: 0; transform: translateY(12px);
  transition: opacity .3s, transform .4s var(--ease);
  pointer-events: none;
  max-width: 70vw;
}
.toast.is-visible{ opacity: 1; transform: none; }
.toast b{ color: var(--accent); font-weight: 500; }

/* ------------------------------------------------------------
   Shared plate anatomy
   ------------------------------------------------------------ */
.deck{
  position: fixed; inset: var(--top) 0 var(--bottom) 0; z-index: 5;
  overflow: hidden;
  pointer-events: none;
}


.plate{
  position: absolute; inset: 0;
  visibility: hidden;
  clip-path: inset(0);
  pointer-events: none;
  z-index: 1;
}
.plate a,
.plate button,
.plate input,
.plate label,
.plate form,
.plate .project{ pointer-events: auto; }

.plate.is-active{ visibility: visible; z-index: 3; }
.plate.is-leaving{
  visibility: visible; z-index: 2;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}

.plate[data-theme="dark"]{
  --fg: #f3ecdf;
  --dim: rgba(243, 236, 223, .54);
  --line: rgba(243, 236, 223, .17);
  --plate-bg: #07060b;
}
.plate[data-theme="light"]{
  --fg: #17131a;
  --dim: rgba(23, 19, 26, .6);
  --line: rgba(23, 19, 26, .19);
  --plate-bg: #e9e1d2;
}

#plate-0{ --pa: #d8ff45; --pa2: #8f7bff; --orbit-opacity: .55; }
#plate-1{ --pa: #ff7b5e; --pa2: #ffb98f; --orbit-opacity: .26; }
#plate-2{ --pa: #8ef2ff; --pa2: #8f7bff; --orbit-opacity: .2; }
#plate-3{ --pa: #a3412f; --pa2: #6a6494; --orbit-opacity: .28; }
#plate-4{ --pa: #d8ff45; --pa2: #ff5c8a; --orbit-opacity: .24; }

.plate-inner{
  position: absolute; inset: 0;
  padding: 22px var(--pad) 16px;
  color: var(--fg);
}

.plate-head{
  position: relative; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  color: var(--dim);
  font-family: var(--mono); font-size: 8px; letter-spacing: .15em;
  text-transform: uppercase;
}
.kicker{ display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.kicker-star{ color: var(--pa); font-size: 11px; line-height: 1; }
.head-meta{ display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); text-align: right; white-space: nowrap; }
.head-meta span:last-child{ opacity: .65; }

.display{
  font-family: var(--serif);
  font-weight: 420;
  font-optical-sizing: auto;
  letter-spacing: -.035em;
  line-height: .84;
  color: var(--fg);
  text-transform: uppercase;
  position: relative; z-index: 3;
}
.display em{ font-style: italic; font-weight: 380; text-transform: none; }
.display .line{ display: block; overflow: hidden; padding-top: .1em; margin-top: -.1em; padding-bottom: .04em; margin-bottom: -.04em; }
.display .line-i{ display: block; transform: translateY(118%) rotate(2.4deg); transform-origin: left 80%; will-change: transform; }
.is-active .display .line-i{ animation: lineIn 1.05s var(--ease) both; animation-delay: calc(.16s + var(--d, 0) * .075s); }

@keyframes lineIn{
  0%{ transform: translateY(118%) rotate(2.4deg); }
  100%{ transform: translateY(0) rotate(0); }
}

.line--quiet{ color: var(--pa); padding-left: .4em; }
.line--quiet .line-i{ font-size: .92em; }
.sup-star, .end-dot{ color: var(--pa); }
.sup-star{ font-size: .34em; vertical-align: super; letter-spacing: 0; margin-left: .05em; }
.end-dot{ display: inline-block; }

.lede{
  color: var(--dim);
  font-family: var(--sans);
  font-size: clamp(13px, 1.02vw, 16px);
  line-height: 1.55;
  max-width: 46ch;
  position: relative; z-index: 3;
}

.label{
  font-family: var(--mono); font-size: 8px; letter-spacing: .16em;
  color: var(--pa); text-transform: uppercase;
}

.rise{ opacity: 0; transform: translateY(16px); }
.is-active .rise{ animation: riseIn .9s var(--ease) both; animation-delay: calc(.34s + var(--d, 0) * .07s); }
@keyframes riseIn{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: none; }
}

/* buttons */
.btn{
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 18px;
  height: 44px; padding: 0 16px;
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color .3s, border-color .3s, transform .35s var(--ease);
}
.btn::before{
  content: ""; position: absolute; inset: 0;
  background: var(--pa); transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: 0;
}
.btn:hover::before{ transform: none; }
.btn:hover{ color: #08070d; border-color: var(--pa); }
.btn span{ position: relative; z-index: 1; }
.btn-arrow{ transition: transform .35s var(--ease); }
.btn:hover .btn-arrow{ transform: translate(3px, -2px); }
.btn--primary{ background: var(--pa); border-color: var(--pa); color: #08070d; }
.btn--primary::before{ background: var(--fg); }
.btn--primary:hover{ color: var(--plate-bg); }
.btn--ghost:hover{ color: #08070d; }
#plate-3 .btn--ghost:hover{ color: #e9e1d2; }

/* figures / annotations */
.fig{
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  color: var(--dim);
  font-family: var(--mono); font-size: 7.5px; letter-spacing: .13em; line-height: 1.55;
  text-transform: uppercase;
  white-space: nowrap;
}
.fig-dot{ width: 5px; height: 5px; border-radius: 50%; background: var(--pa); flex: none; box-shadow: 0 0 8px var(--pa); }
.fig-line{ width: 64px; height: 1px; background: var(--line); flex: none; transform: scaleX(0); transform-origin: right center; }
.is-active .fig-line{ animation: drawLine .9s var(--ease) .85s forwards; }
@keyframes drawLine{ to{ transform: scaleX(1); } }
.fig-body{ display: flex; flex-direction: column; }
.fig-title{ color: var(--fg); }
.fig-meta{ opacity: .6; }

.fig--a{ top: 19%; right: 2.2vw; }
.fig--b{ bottom: 22%; right: 3vw; }
.fig--c{ top: 18%; right: 2.4vw; }
.fig--d{ top: 19%; right: 2.4vw; }

.drag-cue{
  position: absolute; right: 17%; bottom: 13%;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 7px; letter-spacing: .14em; line-height: 1.6;
  color: var(--dim); text-transform: uppercase;
  opacity: .7;
}
.drag-ring{
  width: 34px; height: 34px; border: 1px dashed var(--line); border-radius: 50%;
  position: relative; display: block;
  animation: orbitDrift 18s linear infinite;
}
.drag-ring::after{
  content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px;
  margin: -2px; border-radius: 50%; background: var(--pa);
}

.ghost-index{
  position: absolute; right: -.045em; top: -.1em; z-index: 0;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(200px, 33vw, 520px);
  line-height: .72; letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--fg);
  opacity: .13;
  pointer-events: none; user-select: none;
}
#plate-3 .ghost-index{ opacity: .13; -webkit-text-stroke-color: var(--fg); }

.v-label{
  position: absolute; z-index: 4;
  writing-mode: vertical-rl;
  font-family: var(--mono); font-size: 7.5px; letter-spacing: .22em;
  color: var(--dim); text-transform: uppercase;
  opacity: .7;
  pointer-events: none;
}
.v-label--right{ right: calc(var(--pad) - 2px); top: 25%; transform: rotate(180deg); }
.v-label--left{ display: none; }
#plate-1 .v-label,
#plate-2 .v-label,
#plate-3 .v-label{ display: none; }

/* ------------------------------------------------------------
   Plate 00 — hero
   ------------------------------------------------------------ */
.hero{
  position: absolute; left: var(--pad); bottom: clamp(14px, 4vh, 42px);
  width: min(60vw, 940px);
  z-index: 4;
}
.display--hero{
  font-size: clamp(58px, min(9.8vw, 15.3vh), 152px);
  letter-spacing: -.045em;
  line-height: .8;
}
.hero-bottom{
  margin-top: clamp(16px, 2.8vh, 30px);
  max-width: 560px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.cta-row{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footnote{
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em;
  color: var(--dim);
}
.footnote .sup-star{ font-size: 1.4em; margin-right: 2px; }

/* ------------------------------------------------------------
   Plate 01 — practice
   ------------------------------------------------------------ */
.practice{
  position: absolute; inset: clamp(18px, 5vh, 54px) var(--pad) 0;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 110px);
  z-index: 3;
}
.practice-left{
  display: flex; flex-direction: column; justify-content: space-between;
  padding-bottom: clamp(4px, 1.5vh, 16px);
}
.display--stack{
  font-size: clamp(54px, min(8.4vw, 13.3vh), 132px);
}
.display--stack .line:first-child{ padding-left: .06em; }
.display--stack em{ color: var(--pa); }

.pull{
  margin-top: auto; padding-top: 20px;
  color: var(--fg);
}
.pull p{
  font-family: var(--serif); font-style: italic; font-weight: 360;
  font-size: clamp(26px, min(2.9vw, 4.6vh), 44px);
  line-height: 1.03; letter-spacing: -.02em;
}
.pull cite{
  display: block; margin-top: 12px;
  font-family: var(--mono); font-style: normal; font-size: 8px;
  letter-spacing: .14em; color: var(--dim);
}
.services{ margin-top: clamp(18px, 3.5vh, 34px); }
.services .label{ display: block; margin-bottom: 9px; }
.services p{ font-family: var(--sans); font-size: 12px; line-height: 1.55; color: var(--dim); }

.practice-right{ padding-top: clamp(0px, 1vh, 10px); display: flex; flex-direction: column; }
.practice-right > .lede{ max-width: 48ch; }

.moves{ margin-top: clamp(16px, 3.4vh, 36px); list-style: none; padding: 0; }
.move{
  position: relative;
  display: grid; grid-template-columns: 38px minmax(0, 1fr) 34px; gap: 16px;
  padding: clamp(10px, 1.7vh, 19px) 0;
  border-top: 1px solid var(--line);
}
.move:last-child{ border-bottom: 1px solid var(--line); }
.move::before{
  content: ""; position: absolute; inset: 0 -12px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--pa) 7%, transparent));
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.move:hover::before{ opacity: 1; }
.move-num{ font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--dim); padding-top: 9px; }
.move-body h3{
  font-family: var(--serif); font-weight: 430;
  font-size: clamp(23px, min(2.2vw, 3.4vh), 34px);
  line-height: 1; letter-spacing: .01em;
  transition: color .3s, transform .45s var(--ease);
}
.move-body p{
  margin-top: 7px;
  font-size: clamp(11px, .86vw, 13.5px); line-height: 1.5; color: var(--dim);
  max-width: 48ch;
}
.move-glyph{
  justify-self: end; align-self: center;
  font-family: var(--serif); font-size: 26px; color: var(--pa);
  opacity: 0; transform: translateX(-8px) rotate(-20deg);
  transition: opacity .35s, transform .45s var(--ease);
}
.move:hover h3{ color: var(--pa); transform: translateX(4px); }
.move:hover .move-glyph{ opacity: 1; transform: none; }
.move:hover .move-num{ color: var(--fg); }

/* ------------------------------------------------------------
   Plate 02 — transmissions
   ------------------------------------------------------------ */
.work{ position: absolute; inset: clamp(18px, 5vh, 54px) var(--pad) 0; z-index: 3; }
#plate-2 .plate-annotations{ display: none; }

.work-title{ position: absolute; left: 0; top: 0; bottom: 0; width: 23%; }
.display--vertical{
  position: absolute; left: 1.05em; bottom: .55em;
  transform: rotate(-90deg); transform-origin: left bottom;
  font-size: clamp(38px, min(4.5vw, 7.4vh), 76px);
  letter-spacing: -.03em; line-height: .9; white-space: nowrap;
}
.work-note{
  position: absolute; left: clamp(92px, 8vw, 136px); top: clamp(6px, 2.8vh, 26px);
  width: 17ch;
  font-family: var(--sans); font-size: clamp(11px, .83vw, 13px);
  line-height: 1.5; color: var(--dim);
}

.work-list{
  position: absolute; left: 26%; right: 0; top: clamp(0px, 2vh, 20px);
  display: flex; flex-direction: column;
}
.project{
  position: relative;
  border-top: 1px solid var(--line);
  pointer-events: auto;
}
.project:last-of-type{ border-bottom: 1px solid var(--line); }
.project::before{
  content: ""; position: absolute; inset: 0 -14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pa) 6%, transparent), transparent 65%);
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.project.is-hot::before{ opacity: 1; }

.project-head{
  position: relative; z-index: 1;
  width: 100%;
  display: grid; grid-template-columns: 42px minmax(0, 1fr) 168px 54px 34px;
  align-items: center; gap: 14px;
  padding: clamp(9px, 1.6vh, 17px) 0;
  text-align: left;
  color: var(--fg);
}
.p-index{ font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--dim); transition: color .3s; }
.p-name{
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, min(3.5vw, 5.5vh), 56px);
  letter-spacing: -.02em; line-height: .96;
  transition: transform .5s var(--ease), color .3s;
}
.p-kind{ font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: var(--dim); text-align: right; }
.p-year{ font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--dim); text-align: right; }
.p-toggle{
  position: relative; justify-self: end;
  width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%;
  transition: border-color .3s, transform .45s var(--ease), background-color .3s;
}
.p-toggle::before, .p-toggle::after{
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--dim);
  transition: transform .35s var(--ease), background-color .3s;
}
.p-toggle::before{ width: 8px; height: 1px; margin: -0.5px 0 0 -4px; }
.p-toggle::after{ width: 1px; height: 8px; margin: -4px 0 0 -0.5px; }
.project:hover .p-name{ transform: translateX(9px); color: var(--pa); }
.project:hover .p-index{ color: var(--pa); }
.project:hover .p-toggle{ border-color: var(--pa); }
.project:hover .p-toggle::before, .project:hover .p-toggle::after{ background: var(--pa); }
.project.is-open .p-toggle{ transform: rotate(45deg); background: var(--pa); border-color: var(--pa); }
.project.is-open .p-toggle::before, .project.is-open .p-toggle::after{ background: #08070d; }
.project.is-open .p-name{ color: var(--pa); }

.project-detail{
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease), visibility 0s .55s;
  visibility: hidden;
  position: relative; z-index: 1;
}
.project.is-open .project-detail{ grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s var(--ease), visibility 0s 0s; }
.p-detail-inner{
  overflow: hidden; min-height: 0;
  padding-left: 56px;
}
.p-detail-inner > *{ opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.project.is-open .p-detail-inner > *{ opacity: 1; transform: none; }
.project.is-open .p-detail-inner > *:nth-child(1){ transition-delay: .1s; }
.project.is-open .p-detail-inner > *:nth-child(2){ transition-delay: .16s; }
.project.is-open .p-detail-inner > *:nth-child(3){ transition-delay: .22s; }
.p-detail-inner p{
  font-family: var(--sans); font-size: clamp(12px, .92vw, 14px);
  line-height: 1.55; color: var(--dim); max-width: 62ch;
  padding: 2px 0 10px;
}
.p-tags{ display: flex; gap: 7px; flex-wrap: wrap; padding-bottom: 12px; }
.p-tags span{
  font-family: var(--mono); font-size: 7px; letter-spacing: .1em;
  border: 1px solid var(--line); padding: 4px 7px; color: var(--dim);
}
.text-link{
  display: inline-block;
  font-family: var(--mono); font-size: 8px; letter-spacing: .12em;
  color: var(--fg); text-decoration: none;
  border-bottom: 1px solid var(--pa);
  padding-bottom: 3px;
  transition: color .3s, border-color .3s;
}
.text-link:hover{ color: var(--pa); }
.work-foot{
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px;
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--dim);
  pointer-events: auto;
}

/* floating project peek */
.project-peek{
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 238px;
  pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.88) rotate(-3deg);
  transition: opacity .28s, transform .45s var(--ease);
  will-change: transform;
}
.project-peek.is-visible{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(-3deg);
}

.peek-art{
  position: relative; height: 176px; width: 100%;
  overflow: hidden; border: 1px solid var(--chrome-line);
  background: #15101f;
  display: grid; place-items: center;
  transform: rotate(2deg);
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}
.peek-art::before{
  content: attr(data-letter);
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: 118px; line-height: 1;
  color: rgba(255,255,255,.78);
  mix-blend-mode: overlay;
}
.peek-art::after{
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: .4; mix-blend-mode: overlay;
}
.peek-art[data-art="0"]{
  background:
    radial-gradient(circle at 72% 22%, rgba(160, 205, 255, .85) 0 1.5%, transparent 2.2%),
    radial-gradient(circle at 24% 34%, rgba(255, 255, 255, .7) 0 1%, transparent 1.8%),
    radial-gradient(circle at 52% 68%, rgba(210, 180, 255, .5) 0 1.2%, transparent 2%),
    radial-gradient(circle at 50% 54%, #6a62c6 0, #2b2660 34%, #0c0a1c 72%);
}
.peek-art[data-art="1"]{
  background:
    conic-gradient(from 210deg at 58% 42%, #ffb36b, #ff6b52 18%, #f7e6c4 36%, #9a7bff 55%, #ff8d6a 74%, #ffb36b);
}
.peek-art[data-art="2"]{
  background:
    radial-gradient(circle at 38% 36%, #ecff9e 0, #b8e94a 24%, #4f7d21 60%, #121c08 100%);
}
.peek-meta{
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 2px 0;
  font-family: var(--mono); font-size: 7px; letter-spacing: .1em; color: var(--chrome-dim);
  text-transform: uppercase;
}
.peek-meta #peekName{ color: var(--chrome); }
.peek-rec{ display: inline-flex; align-items: center; gap: 5px; color: #ff7b5e; }
.peek-rec i{ width: 4px; height: 4px; background: currentColor; border-radius: 50%; animation: liveBlink 1.2s steps(2) infinite; }

/* ------------------------------------------------------------
   Plate 03 — field notes
   ------------------------------------------------------------ */
.notes{
  position: absolute; inset: clamp(18px, 5vh, 54px) var(--pad) 8px;
  display: grid; grid-template-columns: 1.04fr .96fr;
  grid-template-rows: 1fr auto;
  gap: 0 clamp(30px, 6vw, 100px);
  z-index: 3;
}
.notes-left{ display: flex; flex-direction: column; justify-content: center; padding-bottom: clamp(12px, 3vh, 30px); }
.display--quote{
  font-size: clamp(54px, min(7.4vw, 10.9vh), 112px);
  line-height: .83;
}
.display--quote .line:nth-child(2){ padding-left: .62em; }
.display--quote .line:nth-child(2) .line-i{
  font-size: .44em; font-style: italic; text-transform: lowercase;
  letter-spacing: -.01em;
}
.display--quote em{ color: var(--pa); }
.notes-left .lede{ margin-top: clamp(16px, 2.6vh, 26px); max-width: 36ch; }
.notes-right{ display: flex; align-items: center; }
.note-list{ list-style: none; padding: 0; width: 100%; }
.note{
  border-top: 1px solid var(--line);
  padding: clamp(8px, 1.3vh, 15px) 0;
  transition: padding-left .45s var(--ease);
}
.note:last-child{ border-bottom: 1px solid var(--line); }
.note-head{ display: flex; justify-content: space-between; gap: 20px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .12em; color: var(--dim); }
.note p{
  margin-top: 7px; max-width: 36ch;
  font-family: var(--serif); font-size: clamp(17px, min(1.72vw, 2.7vh), 26px);
  line-height: 1.16; letter-spacing: -.01em;
  transition: color .3s;
}
.note:hover{ padding-left: 10px; }
.note:hover p{ color: var(--pa); }
.note:hover .note-num{ color: var(--pa); }

.now-strip{
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 44px);
  border-top: 1px solid var(--line);
  padding-top: clamp(10px, 1.6vh, 16px);
  margin-bottom: clamp(2px, 1vh, 10px);
}
.now-item .label{ display: block; margin-bottom: 5px; }
.now-item span:last-child{ font-size: 11px; line-height: 1.4; color: var(--dim); }

/* ------------------------------------------------------------
   Plate 04 — contact
   ------------------------------------------------------------ */
.contact{
  position: absolute; inset: clamp(18px, 5vh, 54px) var(--pad) 18px;
  display: grid; grid-template-columns: 1.18fr .82fr;
  grid-template-rows: 1fr auto;
  gap: 0 clamp(30px, 5vw, 90px);
  z-index: 3;
}
.contact-left{ display: flex; flex-direction: column; min-width: 0; }
.display--contact{
  font-size: clamp(52px, min(7.6vw, 12vh), 120px);
  line-height: .82;
}
.display--contact em{ color: var(--pa); }
.contact-left .lede{ margin-top: clamp(12px, 2.2vh, 22px); max-width: 34ch; }

.email-block{ margin-top: auto; display: flex; align-items: baseline; gap: 14px; padding-bottom: 2px; }
.email{
  position: relative;
  font-family: var(--serif); font-size: clamp(22px, min(2.7vw, 4.1vh), 40px);
  letter-spacing: -.02em; color: var(--fg); text-decoration: none;
  white-space: nowrap;
}
.email::after{
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: var(--pa); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.email:hover::after{ transform: scaleX(1); }
.copy-btn{
  border: 1px solid var(--line); padding: 5px 7px;
  font-family: var(--mono); font-size: 7px; letter-spacing: .12em; color: var(--dim);
  transition: color .25s, border-color .25s, background-color .25s;
}
.copy-btn:hover{ color: var(--page-bg); background: var(--pa); border-color: var(--pa); }

.vibe-form{
  margin-top: clamp(16px, 2.8vh, 30px);
  padding-top: clamp(10px, 1.6vh, 16px);
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.vibe-form label{ display: block; font-family: var(--mono); font-size: 7.5px; letter-spacing: .16em; color: var(--dim); }
.vibe-row{ display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); margin-top: 6px; padding-bottom: 7px; }
.vibe-row input{
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: var(--fg);
  font-family: var(--sans); font-size: clamp(13px, 1.1vw, 17px);
  padding: 5px 0;
}
.vibe-row input::placeholder{ color: var(--dim); opacity: .65; }
.vibe-row input:focus{ outline: none; }
.vibe-row:focus-within{ border-color: var(--pa); }
.vibe-send{
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--pa);
  white-space: nowrap; padding: 4px 0;
  transition: transform .3s var(--ease);
}
.vibe-send:hover{ transform: translate(2px, -2px); }
.vibe-readout{ margin-top: 8px; font-family: var(--mono); font-size: 7px; letter-spacing: .1em; color: var(--dim); min-height: 1.2em; }
.vibe-form.has-vibe .vibe-row{ border-color: var(--vibe); }
.vibe-form.has-vibe .vibe-send{ color: var(--vibe); }
.vibe-form.has-vibe .vibe-readout{ color: var(--vibe); }


.contact-right{
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3vw, 46px);
  min-width: 0;
}
.contact-card{ border-top: 1px solid var(--line); padding: clamp(9px, 1.5vh, 16px) 0; }
.contact-card:last-of-type{ border-bottom: 1px solid var(--line); }
.contact-card .label{ display: block; margin-bottom: 7px; }
.contact-card a, .contact-card p{
  font-family: var(--sans); font-size: clamp(12px, .94vw, 14px); line-height: 1.5;
  color: var(--fg); text-decoration: none;
}
.contact-card a:hover{ color: var(--pa); }
.card-note{ display: block; margin-top: 5px; font-size: 10.5px; color: var(--dim); line-height: 1.4; }
.socials{ display: flex; gap: clamp(10px, 1.6vw, 22px); flex-wrap: wrap; padding-top: 12px; }
.socials a{
  font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--dim);
  text-decoration: none; border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.socials a:hover{ color: var(--pa); border-color: var(--pa); }

.contact-foot{
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: clamp(8px, 1.4vh, 13px);
  margin-bottom: clamp(1px, .6vh, 6px);
  font-family: var(--mono); font-size: 7px; letter-spacing: .08em; color: var(--dim);
}
.foot-center{ opacity: .7; }
.foot-keys{ opacity: .7; }
.contact-foot .text-link{ font-size: 7px; }

/* ------------------------------------------------------------
   Boot / entrance
   ------------------------------------------------------------ */
body:not(.ready) .topbar,
body:not(.ready) .transport{ opacity: 0; }
.topbar, .transport{ transition: opacity .7s var(--ease), color .5s, background-color .6s, border-color .5s; }
body.ready .topbar, body.ready .transport{ opacity: 1; }

/* ------------------------------------------------------------
   Responsive — desktop squeeze
   ------------------------------------------------------------ */
@media (max-width: 1180px){
  .fig{ display: none; }
  .v-label{ display: none; }
  .drag-cue{ display: none; }
  .work-list{ left: 22%; }
  .project-head{ grid-template-columns: 38px minmax(0, 1fr) 130px 46px 30px; }
  .work-note{ display: none; }
}

@media (max-width: 980px){
  .brand-sub, .top-mid, .status{ display: none; }
  .hero{ width: 70vw; }
  .practice{ grid-template-columns: 1fr 1.1fr; gap: 5vw; }
  .work-list{ left: 20%; }
  .p-kind{ display: none; }
  .project-head{ grid-template-columns: 34px minmax(0, 1fr) 44px 30px; }
  .contact{ grid-template-columns: 1fr .9fr; }
  .foot-keys{ display: none; }
}

@media (max-height: 720px){
  .footnote, .services, .drag-cue{ display: none; }
  .hero-bottom{ gap: 12px; margin-top: 14px; }
  .contact-card{ padding: 8px 0; }
  .note{ padding: 8px 0; }
  .now-strip{ padding-top: 8px; }
  .vibe-form{ margin-top: 14px; padding-top: 10px; }
  .email-block{ margin-top: 18px; }
}

@media (max-height: 620px){
  .plate-head{ font-size: 7px; }
  .head-meta span:last-child{ display: none; }
  .pull cite{ display: none; }
  .work-foot{ display: none; }
  .contact-foot{ display: none; }
  .practice-left .services{ display: none; }
  .now-strip{ display: none; }
}

/* ------------------------------------------------------------
   Flow mode — mobile + text mode
   Shared layout that turns the deck into a document.
   ------------------------------------------------------------ */
body.is-mobile, body.text-mode{
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

body.is-mobile{ --top: 56px; --bottom: 62px; }
body.text-mode{ --bottom: 0px; }

body.is-mobile .plate,
body.text-mode .plate{ pointer-events: auto; }

@media (pointer: fine){
  body.text-mode, body.text-mode a, body.text-mode button{ cursor: auto; }
  body.text-mode a, body.text-mode button{ cursor: pointer; }
  body.text-mode input{ cursor: text; }
}

body.text-mode .grain,
body.text-mode .vignette{ display: none; }

body.is-mobile .stage,
body.is-mobile .orbit,
body.is-mobile .cursor,
body.is-mobile .hint,
body.text-mode .stage,
body.text-mode .orbit,
body.text-mode .cursor,
body.text-mode .hint{
  display: none;
}

body.is-mobile .deck{
  position: relative; inset: auto;
  margin-top: var(--top);
  padding-bottom: var(--bottom);
  overflow: visible;
  pointer-events: auto;
}
body.text-mode .deck{
  position: relative; inset: auto;
  margin-top: 0;
  padding-bottom: 0;
  overflow: visible;
  pointer-events: auto;
}

body.is-mobile .plate,
body.text-mode .plate{
  position: relative; inset: auto;
  display: block;
  visibility: visible !important;
  clip-path: none !important;
  pointer-events: auto;
  background: var(--plate-bg);
  min-height: calc(100svh - var(--top));
  padding: 0;
  scroll-margin-top: var(--top);
  overflow: hidden;
}
body.text-mode .plate{ min-height: 0; border-bottom: 1px solid var(--line); }

body.is-mobile .plate-inner{
  position: relative; inset: auto;
  min-height: calc(100svh - var(--top));
  padding: 24px var(--pad) calc(44px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}
body.text-mode .plate-inner{
  position: relative; inset: auto;
  min-height: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 100px) max(22px, 6vw);
  display: block;
}

body.is-mobile .plate::before,
body.text-mode .plate::before{
  content: "";
  position: absolute; z-index: 0;
  top: 4%; right: -32%;
  width: 92vw; max-width: 720px; aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--pa), var(--pa2), transparent 68%);
  filter: blur(clamp(50px, 9vw, 80px));
  opacity: .16;
  pointer-events: none;
}
body.text-mode .plate::before{ display: none; }
body.is-mobile .plate[data-theme="light"]::before{ opacity: .26; }

body.is-mobile .plate > .plate-inner,
body.text-mode .plate > .plate-inner{ position: relative; z-index: 1; }

/* reset absolute compositions */
body.is-mobile .plate-head,
body.text-mode .plate-head{ flex: none; margin-bottom: clamp(28px, 5vh, 54px); }

body.is-mobile .hero,
body.text-mode .hero,
body.is-mobile .practice,
body.text-mode .practice,
body.is-mobile .work,
body.text-mode .work,
body.is-mobile .notes,
body.text-mode .notes,
body.is-mobile .contact,
body.text-mode .contact{
  position: relative; inset: auto;
  width: auto; height: auto;
  display: block;
  margin-top: 0;
  padding: 0;
}

body.is-mobile .hero-annotations,
body.is-mobile .plate-annotations,
body.is-mobile .ghost-index,
body.is-mobile .v-label,
body.is-mobile .project-peek,
body.text-mode .hero-annotations,
body.text-mode .plate-annotations,
body.text-mode .ghost-index,
body.text-mode .v-label,
body.text-mode .project-peek{
  display: none;
}

body.is-mobile .display,
body.text-mode .display{
  font-size: clamp(50px, min(14vw, 13vh), 104px);
  line-height: .86;
}
body.is-mobile .display--vertical,
body.text-mode .display--vertical{
  position: static; transform: none; white-space: normal;
  font-size: clamp(36px, 11.2vw, 78px);
  letter-spacing: -.04em;
}
body.is-mobile .work-title,
body.text-mode .work-title{
  position: static; width: auto;
  margin-bottom: 24px;
}
body.is-mobile .work-note,
body.text-mode .work-note{
  position: static; width: auto; max-width: 40ch;
  margin: 16px 0 0; display: block;
  font-size: 13px;
}

body.is-mobile .display .line-i,
body.text-mode .display .line-i{ transform: none; animation: none !important; }
body.is-mobile .rise,
body.text-mode .rise{ opacity: 1; transform: none; animation: none !important; }

body.is-mobile .hero-bottom,
body.text-mode .hero-bottom{ margin-top: 26px; max-width: none; }
body.is-mobile .lede,
body.text-mode .lede{ font-size: 14px; line-height: 1.6; max-width: 48ch; }
body.text-mode .lede{ font-size: 16px; max-width: 62ch; }

body.is-mobile .practice-left,
body.text-mode .practice-left{ display: block; }
body.is-mobile .practice-right,
body.text-mode .practice-right{ display: block; margin-top: 34px; }
body.is-mobile .pull,
body.text-mode .pull{ margin: 30px 0; padding: 0; }
body.is-mobile .services,
body.text-mode .services{ margin: 26px 0 0; }
body.is-mobile .moves,
body.text-mode .moves{ margin-top: 28px; }
body.is-mobile .move,
body.text-mode .move{ grid-template-columns: 34px minmax(0, 1fr); padding: 15px 0; }
body.is-mobile .move-glyph,
body.text-mode .move-glyph{ display: none; }
body.is-mobile .move-body p,
body.text-mode .move-body p{ font-size: 12.5px; }
body.text-mode .move-body p{ font-size: 14px; max-width: 60ch; }

body.is-mobile .work-list,
body.text-mode .work-list{ position: static; margin-top: 26px; }
body.is-mobile .project-head,
body.text-mode .project-head{
  grid-template-columns: 30px minmax(0, 1fr) 38px 24px;
  gap: 10px;
  padding: 14px 0;
}
body.is-mobile .p-name,
body.text-mode .p-name{ font-size: clamp(26px, 8vw, 44px); }
body.is-mobile .p-kind,
body.text-mode .p-kind{ display: none; }
body.is-mobile .p-detail-inner,
body.text-mode .p-detail-inner{ padding-left: 40px; }
body.is-mobile .project.is-open .p-name,
body.text-mode .project.is-open .p-name{ transform: none; }
@media (hover: none){
  .project:hover .p-name{ transform: none; color: var(--fg); }
  .project:hover .p-index{ color: var(--dim); }
}
body.is-mobile .work-foot,
body.text-mode .work-foot{ margin-top: 20px; }

body.is-mobile .notes,
body.text-mode .notes{ display: block; }
body.is-mobile .notes-left,
body.text-mode .notes-left{ padding: 0; display: block; }
body.is-mobile .notes-right,
body.text-mode .notes-right{ display: block; margin-top: 30px; }
body.is-mobile .note p,
body.text-mode .note p{ max-width: 40ch; }
body.text-mode .note p{ max-width: 60ch; font-size: 22px; }
body.is-mobile .now-strip,
body.text-mode .now-strip{
  margin-top: 30px; margin-bottom: 0;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
body.text-mode .now-strip{ grid-template-columns: repeat(4, 1fr); gap: 28px; }

body.is-mobile .contact,
body.text-mode .contact{ display: block; }
body.is-mobile .contact-right,
body.text-mode .contact-right{
  border-left: 0; border-top: 1px solid var(--line);
  padding-left: 0; margin-top: 28px; padding-top: 18px;
}
body.is-mobile .contact-card,
body.text-mode .contact-card{ padding: 13px 0; }
body.is-mobile .email,
body.text-mode .email{ font-size: clamp(20px, 6vw, 34px); }
body.is-mobile .contact-foot,
body.text-mode .contact-foot{
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 7px;
}
body.text-mode .contact-foot{ margin-top: 44px; }
body.is-mobile .vibe-form,
body.text-mode .vibe-form{ margin-top: 26px; }
body.is-mobile .contact-left .lede,
body.text-mode .contact-left .lede{ margin-top: 18px; }
body.is-mobile .email-block,
body.text-mode .email-block{ margin-top: 26px; flex-wrap: wrap; }

/* text mode typography */
body.text-mode .kicker,
body.text-mode .head-meta{ font-size: 8px; }
body.text-mode .plate-head{ margin-bottom: 46px; }
body.text-mode .pull p{ font-size: 34px; }
body.text-mode .display--stack{ font-size: clamp(56px, 7.6vw, 110px); }
body.text-mode .display--quote{ font-size: clamp(54px, 7vw, 104px); }
body.text-mode .contact-left .email{ font-size: clamp(24px, 3vw, 40px); }
body.text-mode .plate:last-child .contact-foot{ display: flex; }

/* mobile chrome */
body.is-mobile .topbar{
  height: 56px;
  padding: 0 var(--pad);
  gap: 12px;
}
body.is-mobile .brand-sub,
body.is-mobile .top-mid,
body.is-mobile .status{ display: none; }
body.is-mobile .top-right{ gap: 6px; }
body.is-mobile .chrome-btn{ height: 34px; padding: 0 9px; font-size: 7.5px; }
body.is-mobile .brand{ padding: 8px 0; }
body.is-mobile .brand-mark{ width: 16px; height: 16px; }
body.is-mobile .brand-name{ font-size: 11px; }

body.is-mobile .transport{
  height: 62px;
  padding-bottom: env(safe-area-inset-bottom);
}
body.is-mobile .transport-row{
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 0 var(--pad);
}
body.is-mobile .transport-id{ display: none; }
body.is-mobile .stops{ gap: 2px; justify-content: flex-start; }
body.is-mobile .stop{ padding: 14px 10px; font-size: 9px; }
body.is-mobile .stop-name{ display: none; }
body.is-mobile .transport-meta{ gap: 8px; }
body.is-mobile .wave,
body.is-mobile .signal-label{ display: none; }
body.is-mobile .arrows{ gap: 3px; }
body.is-mobile .arrow{ width: 34px; height: 34px; }

body.is-mobile .hint{ display: none; }
body.is-mobile .toast{ bottom: calc(62px + 14px + env(safe-area-inset-bottom)); }

body.is-mobile .hero,
body.text-mode .hero{ padding-top: 4px; }
body.is-mobile .hero-bottom{ margin-top: 24px; }
body.is-mobile .display--hero{ font-size: clamp(50px, min(15.5vw, 14vh), 120px); }

body.is-mobile .pull p{ font-size: clamp(28px, 8vw, 40px); }
body.is-mobile .now-item span:last-child{ font-size: 11px; }
body.is-mobile .note p{ font-size: clamp(19px, 5.5vw, 26px); }

body.is-mobile .vibe-row input{ font-size: 14px; }
body.is-mobile .contact-card a,
body.is-mobile .contact-card p{ font-size: 13px; }

/* flow modes are documents: never hide content because the viewport is short */
body.is-mobile .footnote,
body.text-mode .footnote{ display: block; }
body.is-mobile .services,
body.text-mode .services{ display: block; }
body.is-mobile .work-foot,
body.text-mode .work-foot{ display: flex; }
body.is-mobile .contact-foot,
body.text-mode .contact-foot{ display: flex; }
body.is-mobile .now-strip,
body.text-mode .now-strip{ display: grid; }
body.is-mobile .pull cite,
body.text-mode .pull cite{ display: block; }
body.is-mobile.text-mode .now-strip{ grid-template-columns: 1fr 1fr; gap: 18px; }

body.is-mobile .chrome-btn[aria-pressed="true"]::after{ content: ""; }

/* text mode chrome */
body.text-mode .topbar{
  position: sticky;
  top: 0; right: auto; bottom: auto; left: auto;
  background: var(--page-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.text-mode .transport{ display: none; }
body.text-mode .top-mid,
body.text-mode .status{ display: none; }
body.text-mode .plate-inner > .display,
body.text-mode .plate-inner > .plate-head{ max-width: 1180px; }

/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .display .line-i{ transform: none; }
  .rise{ opacity: 1; transform: none; }
  .fig-line{ transform: none; }
  .grain{ animation: none; }
  .orbit-slow, .orbit-spin, .drag-ring{ animation: none; }
  body.pointer-seen .cursor{ display: none; }
  @media (pointer: fine){ body, a, button{ cursor: auto; } }
}

/* tiny screens */
@media (max-width: 420px){
  .brand-sub{ display: none; }
  body.is-mobile .stops{ gap: 0; }
  body.is-mobile .stop{ padding: 10px 4px; }
  body.is-mobile .chrome-btn{ padding: 0 6px; }
  body.is-mobile .head-meta span:last-child{ display: none; }
  body.is-mobile .now-strip{ grid-template-columns: 1fr; }
  body.is-mobile .plate-inner{ padding-left: 18px; padding-right: 18px; }
}
