/* emilenel.com. Clear Signal tokens (vault 02_businesses/emile-nel/04_marketing/brand.md -> Look) in the dark
   Signal graphics theme (C:\dev\hub\video\remotion\graphics\brand.js). No Elevated colour, ever. */
@font-face { font-family: "Inter Tight"; src: url(/fonts/inter-tight.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #17191B; --paper: #F6F6F2; --signal: #F2E65C; --steel: #6A7179; --line: #C7CBCA;
  --sub: rgba(246, 246, 242, 0.68);
  --card: rgb(30, 33, 35); --card-edge: rgba(255, 255, 255, 0.06); --border: rgba(199, 203, 202, 0.2);
  --wire: rgba(199, 203, 202, 0.42); --dot: rgba(199, 203, 202, 0.13); --marks: rgba(199, 203, 202, 0.4);
  --display: "Inter Tight", system-ui, sans-serif; --text: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --grid: radial-gradient(circle, var(--dot) 1.2px, transparent 1.6px) 0 0 / 24px 24px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 17px/1.65 var(--text); letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::after { /* grain: a lit room, not a flat dark page */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0.05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--signal); color: var(--ink); }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 80; background: var(--signal); color: var(--ink); padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 16px; }

/* chrome: the mark, one action, and the map */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 18px max(var(--gutter), env(safe-area-inset-left)); pointer-events: none; }
.bar a { pointer-events: auto; }
.bar__mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bar__word { width: 132px; height: auto; opacity: 0.92; }
.bar__cta {
  font: 500 14px/1 var(--text); padding: 12px 16px; border-radius: 6px; text-decoration: none;
  border: 1px solid rgba(242, 230, 92, 0.55); color: var(--signal); background: rgba(23, 25, 27, 0.6);
  backdrop-filter: blur(6px); transition: background-color 160ms var(--ease), transform 120ms var(--ease);
}
.bar__cta:hover { background: rgba(242, 230, 92, 0.1); }
.bar__cta:active { transform: translateY(1px); }

.map { position: fixed; right: max(var(--gutter), env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); z-index: 50; }
.map ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.map a {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 32px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(246, 246, 242, 0.5); text-decoration: none;
  transition: color 160ms var(--ease);
}
.map a::after { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--marks); transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.map a:hover, .map a[aria-current] { color: var(--paper); }
.map a[aria-current]::after { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 10px rgba(242, 230, 92, 0.7); }
.map span { opacity: 0; transform: translateX(6px); transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.map:hover span, .map:focus-within span { opacity: 1; transform: none; }

/* the drifting signal light on the table */
.light {
  position: fixed; width: 70vmax; height: 70vmax; left: -10vmax; top: -20vmax; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(242, 230, 92, 0.07), transparent 70%);
  animation: drift 38s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(55vw, 45vh); } }

/* cards: opaque, so a wire never shows through */
.card {
  position: relative; z-index: 1; background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 14px 16px; box-shadow: inset 0 1px 0 var(--card-edge), 0 10px 30px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 3px;
}
.card b { font: 600 16px/1.25 var(--display); letter-spacing: -0.005em; }
.card small { font: 400 13.5px/1.35 var(--text); color: var(--sub); }
.card.is-lit { border-color: var(--signal); box-shadow: inset 0 1px 0 var(--card-edge), 0 10px 34px rgba(242, 230, 92, 0.16), 0 0 0 1px rgba(242, 230, 92, 0.35); }
.card.is-lit b { color: var(--signal); }

/* wires and the travelling pulse */
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.wire { fill: none; stroke: var(--wire); stroke-width: 1.5; }
.pulse { fill: none; stroke: var(--paper); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 5 100; animation: run 2.2s linear infinite; filter: drop-shadow(0 0 5px rgba(242, 230, 92, 0.9)); }
@keyframes run { from { stroke-dashoffset: 105; } to { stroke-dashoffset: 0; } }

/* crop marks */
.crop { position: absolute; width: 18px; height: 18px; border: 0 solid var(--marks); }
.crop--tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.crop--tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.crop--bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.crop--br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

/* ---------- 0. hero: five planes ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; z-index: 2; }
.hero > * { position: absolute; }
.hero__wall { inset: 0; background: var(--grid); transform-origin: 50% 100%; }
.hero__wall::before { content: ""; position: absolute; inset: 72px var(--gutter) 28px; border: 0; }
.hero__wall .crop { margin: 72px var(--gutter) 28px; }
.hero__wall .crop--tr, .hero__wall .crop--br { margin-left: 0; }
.hero__tag { position: absolute; left: calc(var(--gutter) + 28px); bottom: 48px; font: 500 12px/1 var(--mono); letter-spacing: 0.12em; color: rgba(246, 246, 242, 0.5); }
.hero__word { width: min(1500px, 104vw); max-width: none; left: 50%; top: 13vh; translate: calc(-50% + var(--px, 0px)) var(--py, 0px); opacity: 0.13; }
.hero__halo { width: 70vmin; height: 70vmin; right: 8vw; top: 10vh; border-radius: 50%; background: radial-gradient(closest-side, rgba(246, 246, 242, 0.09), transparent 75%); }
.hero__me { right: max(2vw, calc(50vw - 760px)); bottom: 0; width: min(86vh, 58vw); translate: var(--px, 0px) var(--py, 0px); }
.hero__me img {
  width: 100%; height: auto; filter: saturate(0.72) contrast(1.06) brightness(0.9);
  -webkit-mask-image: radial-gradient(ellipse 58% 72% at 50% 36%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 58% 72% at 50% 36%, #000 62%, transparent 100%);
}
.hero__near { inset: 0; pointer-events: none; translate: var(--px, 0px) var(--py, 0px); }
.hero__wire { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__wire .wire { stroke-width: 1.2; }
.card--near { position: absolute; width: 250px; }
.card--a { left: 4vw; bottom: 9vh; filter: blur(2.5px); transform: scale(1.18); opacity: 0.8; }
.card--b { right: 3vw; bottom: 26vh; filter: blur(1.2px); transform: scale(1.08); }
.hero__copy { left: max(var(--gutter), env(safe-area-inset-left)); bottom: 20vh; width: min(640px, 46vw); z-index: 3; padding-left: 28px; }
.hero__copy h1 { font-size: clamp(2.6rem, 5.4vw, 5.4rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero__copy p { margin-top: 22px; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--sub); max-width: 34ch; }

/* ---------- the table and its plates (static: a document) ---------- */
.world { position: relative; z-index: 1; background: var(--grid); padding: 12vh var(--gutter); }
.plate { position: relative; max-width: 1180px; margin: 0 auto 22vh; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: 40px; }
.plate::before, .plate::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--marks); }
.plate::before { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.plate::after { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.plate--flip .plate__text { order: 2; }
.plate__text h2 { font-size: clamp(1.55rem, 2.3vw, 2.3rem); }
.plate__text p { margin-top: 20px; color: var(--sub); max-width: 52ch; }
.plate__text p + p { margin-top: 14px; }

.dia { position: relative; margin: 0; }
.dia figcaption { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246, 246, 242, 0.5); margin-bottom: 22px; }
.dia figcaption::before { content: "EN/ "; color: var(--signal); }
.dia--flow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 56px; }
.dia--flow figcaption { grid-column: 1 / -1; margin-bottom: 0; }
.dia--three { grid-template-columns: 1fr; max-width: 360px; gap: 40px; }
.dia--hub { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.dia--hub figcaption { grid-column: 1 / -1; margin-bottom: 0; }
.dia--hub .card--centre { grid-column: 1 / -1; justify-self: center; width: min(280px, 100%); order: 2; text-align: center; padding: 20px; }
.dia--hub .card--centre b { font-size: 22px; }
.dia--hub [data-id="a"], .dia--hub [data-id="b"] { order: 1; }
.dia--hub [data-id="c"], .dia--hub [data-id="d"] { order: 3; }
.nest { position: relative; border: 1px dashed rgba(199, 203, 202, 0.3); border-radius: 10px; padding: 14px 18px 18px; background: rgba(30, 33, 35, 0.55); }
.nest > b { display: block; font: 500 12px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--sub); margin-bottom: 14px; }
.nest .nest { margin-top: 0; }
.nest.card { border-style: solid; padding: 18px; text-align: center; }
.nest.card b { font: 600 20px/1.2 var(--display); color: var(--signal); margin: 0; }

.plate--quiet { display: block; max-width: 980px; padding: 12vh 40px; }
.plate--quiet::before, .plate--quiet::after { display: none; }
.plate--quiet h2 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); line-height: 1.08; }
.plate--quiet p { margin-top: 28px; font-size: 1.15rem; color: var(--sub); max-width: 50ch; }
.kinetic .w { display: inline-block; }

.dia--unplug { display: grid; grid-template-columns: 1fr 0.9fr; grid-template-rows: auto auto 1fr; gap: 0 clamp(40px, 7vw, 96px); }
.dia--unplug figcaption { grid-column: 1 / -1; }
.unplug__in { grid-column: 1; grid-row: 2 / 4; display: grid; gap: 20px; }
.card--you { grid-column: 2; grid-row: 2; align-self: start; }
.unplug__out { grid-column: 2; grid-row: 3; align-self: end; display: grid; gap: 14px; margin-top: 44px; }
.card--you { padding: 18px; display: grid; transition: transform 80ms linear; }
.card--you > span { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 4px; transition: opacity 200ms var(--ease); }
.card--you b { font-size: 22px; }
.you__after { opacity: 0; }
.card--you.is-free .you__before { opacity: 0; }
.card--you.is-free .you__after { opacity: 1; }
.card--you.is-free { border-color: var(--signal); box-shadow: inset 0 1px 0 var(--card-edge), 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 230, 92, 0.35), 0 14px 44px rgba(242, 230, 92, 0.2); }
.card--you.is-free b { color: var(--signal); }
/* static: the owner is already unplugged; the via-wires are gone */
.dia--unplug .via { opacity: 0; }
html:not(.motion) .card--you .you__before { opacity: 0; }
html:not(.motion) .card--you .you__after { opacity: 1; }
html:not(.motion) .card--you { border-color: var(--signal); }
html:not(.motion) .card--you b { color: var(--signal); }

.dia--toggles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tog { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.tog b { font: 600 16px/1.3 var(--display); }
.tog small { grid-column: 2; color: var(--sub); font-size: 13.5px; }
.tog__sw { grid-row: span 2; width: 40px; height: 22px; border-radius: 11px; border: 1px solid var(--marks); position: relative; }
.tog__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--steel); transition: transform 320ms var(--ease), background-color 320ms var(--ease); }
.tog.is-on .tog__sw { border-color: var(--signal); }
.tog.is-on .tog__sw::after { transform: translateX(18px); background: var(--signal); }
.tog.is-lit { border-color: rgba(242, 230, 92, 0.7); }
.tog.is-lit b { color: var(--signal); }

/* ---------- the close ---------- */
.close { position: relative; z-index: 3; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: end; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); overflow: hidden; }
.close__copy { grid-column: 1; grid-row: 1; align-self: center; padding: 96px 0 56px 28px; max-width: 560px; }
.close__mark { width: 150px; height: auto; margin-bottom: 28px; }
.close h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); letter-spacing: -0.035em; }
.close__copy > p { margin-top: 18px; color: var(--sub); max-width: 46ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the letter: one card on the table, the one yellow action of the close */
.letter {
  position: relative; margin-top: 30px; padding: 22px 22px 18px; border-radius: 10px; max-width: 520px;
  background: var(--grid), var(--card); border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--card-edge), 0 18px 44px rgba(0, 0, 0, 0.45);
}
.letter::before { content: "EN/"; position: absolute; right: 16px; top: 16px; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; color: var(--signal); }
.letter__name { font: 600 19px/1.2 var(--display); letter-spacing: -0.01em; }
.letter__what { margin-top: 6px !important; font-size: 15px; color: var(--sub); max-width: 40ch; }
.letter__row { display: flex; gap: 8px; margin-top: 16px; }
.letter input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 8px; font: 400 16px/1 var(--text);
  color: var(--paper); background: var(--ink); border: 1px solid rgba(199, 203, 202, 0.32); caret-color: var(--signal);
  transition: border-color 160ms var(--ease);
}
.letter input::placeholder { color: rgba(246, 246, 242, 0.42); }
.letter input:focus { outline: none; border-color: var(--signal); }
.letter input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.letter button {
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap;
  font: 600 16px/1 var(--display); background: var(--signal); color: var(--ink); transition: transform 120ms var(--ease), filter 160ms var(--ease);
}
.letter button:hover { filter: brightness(1.06); }
.letter button:active { transform: scale(0.97); }
.letter button:disabled { opacity: 0.6; cursor: default; }
.letter__note { margin-top: 10px !important; font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; color: rgba(246, 246, 242, 0.55); }
.close__links { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.close__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; text-decoration: none;
  font: 600 15px/1 var(--display); color: var(--paper); border: 1px solid var(--border); transition: border-color 160ms var(--ease), transform 120ms var(--ease);
}
.close__links a:hover { border-color: var(--line); }
.close__links a:active { transform: scale(0.97); }
.close__owner { margin-top: 28px !important; font-size: 15px; }
.close__owner a { color: var(--paper); }
.close__foot { margin-top: 24px !important; font: 500 11px/1 var(--mono); letter-spacing: 0.1em; color: rgba(246, 246, 242, 0.55) !important; }
.close__me { grid-column: 2; grid-row: 1; justify-self: center; width: min(500px, 36vw); filter: saturate(0.72) contrast(1.06) brightness(0.88);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); mask-image: linear-gradient(to bottom, #000 60%, transparent 96%); }

.spacer { display: none; }

@media screen {
/* ---------- motion: one fixed stage, the camera travels the table ---------- */
html.motion { scroll-behavior: auto; }
html.motion .stage { position: fixed; inset: 0; overflow: clip; perspective: 1500px; perspective-origin: 50% 40%; }
html.motion .hero { position: absolute; inset: 0; height: auto; }
html.motion .world { position: absolute; left: 0; top: 0; padding: 0; transform-origin: 0 0; will-change: transform; background-color: var(--ink); }
html.motion .plate { position: absolute; margin: 0; }
html.motion .close { position: absolute; inset: 0; overflow-y: auto; background: linear-gradient(90deg, rgba(23, 25, 27, 0.94) 0%, rgba(23, 25, 27, 0.78) 34%, transparent 52%); }
html.motion .spacer { display: block; }
html.motion .hero, html.motion .close { will-change: opacity; }

/* timed builds on arrival (brand motion: reveal 320 ms, connect 450 ms, stagger) */
html.motion .plate .card, html.motion .plate .nest, html.motion .plate .tog, html.motion .plate__text > *, html.motion .plate figcaption {
  opacity: 0; transform: translateY(10px); transition: opacity 320ms var(--ease), transform 320ms var(--ease);
  transition-delay: calc(var(--k, 0) * 140ms);
}
html.motion .plate .wire, html.motion .plate .pulse { stroke-dashoffset: 100; stroke-dasharray: 100 100; transition: stroke-dashoffset 450ms var(--ease); transition-delay: calc(var(--k, 0) * 140ms + 160ms); }
html.motion .plate .pulse { opacity: 0; }
html.motion .plate.on .card, html.motion .plate.on .nest, html.motion .plate.on .tog, html.motion .plate.on .plate__text > *, html.motion .plate.on figcaption { opacity: 1; transform: none; }
html.motion .plate.on .wire { stroke-dashoffset: 0; }
html.motion .plate.on .pulse { opacity: 1; stroke-dasharray: 5 100; animation: run 2.2s linear infinite; animation-delay: calc(var(--k, 0) * 140ms + 600ms); }
html.motion .plate .tog.is-on .tog__sw::after { transform: none; background: var(--steel); }
html.motion .plate.on .tog.is-on .tog__sw::after { transform: translateX(18px); background: var(--signal); transition-delay: 900ms; }
html.motion .kinetic .w { opacity: 0.12; transition: opacity 420ms var(--ease); transition-delay: calc(var(--k) * 55ms); }
html.motion .plate.on .kinetic .w { opacity: 1; }
/* the peak is scrubbed by the hand, not timed */
html.motion .plate--peak .wire, html.motion .plate--peak .pulse { transition: none; }
html.motion .dia--unplug .via { opacity: 1; }
html.motion .card--you { translate: 0 var(--lift-y, 0px); scale: var(--lift-s, 1); }
}

/* ---------- phone: its own composition ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar { padding: 14px 16px; }
  .bar__word { width: 104px; }
  .bar__cta { padding: 11px 13px; font-size: 13px; }
  .map { top: auto; bottom: max(10px, env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); }
  .map ol { grid-auto-flow: column; gap: 0; background: rgba(23, 25, 27, 0.72); border: 1px solid var(--border); border-radius: 22px; padding: 0 6px; backdrop-filter: blur(6px); }
  .map a { width: 34px; min-height: 40px; justify-content: center; }
  .map span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html:not(.motion) .map { display: none; }

  .hero__word { top: 11vh; width: 116vw; }
  .hero__me { right: 50%; translate: calc(50% + var(--px, 0px)) var(--py, 0px); width: min(112vw, 62svh); bottom: 24svh; }
  .hero__halo { right: 50%; translate: 50% 0; top: 12vh; }
  .card--near { width: 190px; }
  .card--a { display: none; }
  .card--b { right: -22px; bottom: 33svh; }
  .hero__copy { left: 16px; right: 16px; bottom: 10svh; width: auto; padding-left: 0; }
  .hero__copy h1 { font-size: clamp(2.3rem, 10.6vw, 3rem); }
  .hero__copy p { margin-top: 14px; }
  .hero__copy::before { content: ""; position: absolute; inset: -40px -16px -10svh; z-index: -1; background: linear-gradient(to bottom, transparent, rgba(23, 25, 27, 0.92) 34%); }
  .hero__wall .crop, .hero__tag { display: none; }

  .world { padding: 10vh 16px; }
  .plate { grid-template-columns: 1fr; padding: 24px 4px; gap: 28px; margin-bottom: 16vh; }
  .plate--flip .plate__text { order: 0; }
  .plate__text h2 { font-size: 1.5rem; line-height: 1.12; }
  .plate__text p { margin-top: 14px; font-size: 15.5px; }
  .dia--flow { grid-template-columns: 1fr; gap: 26px; }
  .dia--hub { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .dia--hub .card b { font-size: 14.5px; }
  .dia--unplug .card b { font-size: 14px; }
  .dia--unplug .card--you b { font-size: 18px; }
  .unplug__in, .unplug__out { gap: 10px; }
  .plate--quiet { padding: 8vh 8px; }
  .plate--quiet h2 { font-size: 1.9rem; }

  .close { grid-template-columns: 1fr; align-items: start; }
  .close__copy { padding: 80px 0 96px; grid-row: 1; }
  .close__mark { width: 116px; margin-bottom: 20px; }
  .letter { padding: 18px 16px 14px; }
  .letter__row { flex-direction: column; }
  .close__me { grid-column: 1; grid-row: 1; justify-self: end; align-self: end; width: 78vw; opacity: 0.32; margin-right: -14vw; }
  html.motion .close { background: linear-gradient(to bottom, rgba(23, 25, 27, 0.95) 0%, rgba(23, 25, 27, 0.88) 70%, rgba(23, 25, 27, 0.6) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .light, .pulse { animation: none; }
  .pulse { display: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .bar, .map, .light, .spacer, .letter { display: none !important; }
  .hero *, .world, .close, .plate * { opacity: 1 !important; transform: none !important; }
  body::after { display: none; }
}

@media (max-height: 700px) {
  .close__copy { align-self: start; }
}

/* the plain pages: /letter and /privacy. One column on the dot grid, the same marks and type as the close. */
.doc-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--grid), var(--ink); }
.doc__bar { padding: max(18px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 18px max(var(--gutter), env(safe-area-inset-left)); }
.doc__bar img { width: 132px; height: auto; opacity: 0.92; }
.doc { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 48px max(var(--gutter), env(safe-area-inset-left)) 72px; }
.doc--letter { display: flex; flex-direction: column; justify-content: center; }
.doc__eyebrow { font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); margin-bottom: 22px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.035em; }
.doc h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin-top: 40px; }
.doc p, .doc ul { margin-top: 16px; color: var(--sub); max-width: 62ch; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--paper); }
.doc__small { font-size: 15px; }
.doc__btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 0; border-radius: 8px; cursor: pointer;
  font: 600 16px/1 var(--display); background: var(--signal); color: var(--ink) !important; text-decoration: none;
  transition: transform 120ms var(--ease), filter 160ms var(--ease);
}
.doc__btn:hover { filter: brightness(1.06); }
.doc__btn:active { transform: scale(0.97); }
.doc__btn:disabled { opacity: 0.6; cursor: default; }
.doc__foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 20px max(var(--gutter), env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; color: rgba(246, 246, 242, 0.55); }
.doc__foot a { color: inherit; min-height: 24px; }
/* one state at a time: the redirect names it in the fragment (:target), or letter.js sets data-state */
.state { display: none; }
.state:focus { outline: none; }
.state--intro, .state:target { display: block; }
main:has(.state:target) .state--intro, main[data-state] .state--intro, main[data-state] .state:target { display: none; }
main[data-state="confirm"] #confirm, main[data-state="done"] #done, main[data-state="gone"] #gone, main[data-state="soon"] #soon { display: block; }
/* the form's hidden field for bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.letter__privacy { margin-top: 8px !important; font-size: 13px; color: rgba(246, 246, 242, 0.55); }
.letter__privacy a { color: inherit; }
.doc__check { display: flex; align-items: center; gap: 10px; }
.doc__check input { width: 22px; height: 22px; accent-color: var(--signal); margin: 0; }
.doc__check label { color: var(--paper); min-height: 24px; display: inline-flex; align-items: center; }
.doc__btn[aria-disabled], .letter button[aria-disabled] { opacity: 0.6; cursor: default; }
