/* newsreader-vietnamese-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-vietnamese-wght-normal-Czsa-EzN.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-ext-wght-normal-C-3rgBeH.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-wght-normal-CCVVNp6i.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* newsreader-vietnamese-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-vietnamese-wght-italic-xAqemagA.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-ext-wght-italic-DFS986qL.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-wght-italic-Bxi8ein9.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ibm-plex-mono-cyrillic-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ibm-plex-mono-cyrillic-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --ground: oklch(0.155 0.004 95);
  --ink: oklch(0.955 0.004 95);
  --ink-2: oklch(0.85 0.004 95);
  --ink-3: oklch(0.74 0.004 95);
  --hair: oklch(0.955 0.004 95 / 0.4);
  --hair-strong: oklch(0.955 0.004 95 / 0.88);
  --shadow: oklch(0.1 0.003 95 / 0.8);
  --amber: oklch(0.76 0.15 70);
  --glass-light: oklch(0.95 0.006 95);   /* the light inside the Pong's glass (pong-night) */
  /* 05 night: deep neutral values, read by main.js for the canvas too (never pure black) */
  --night-sky: oklch(0.32 0.005 250);
  --night-ground: oklch(0.21 0.002 95);
  --serif: 'Newsreader Variable', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 2.6vw, 36px);
  --pad: clamp(18px, 2.4vw, 34px);
  /* the shell's top bar and rail (site/shell/shell.css .sh --top-h and --rail-h, mirrored here for what the scene places) */
  --top-h: 86px;
  --rail-h: 82px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* The page never scrolls, pans or zooms under a finger: touch handling is stated here, not left to the browser (Chrome for iOS
   takes a vertical pan for its toolbars otherwise, viewport.js). The scrollers that really scroll say so (pan-y, pan-x). */
html { background: var(--ground); height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: none; }
body {
  height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: none;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

/* when the visual viewport is not the layout viewport (viewport.js): the body, fixed and transformed, is the containing block of
   every fixed layer, sized to the visible area */
html.vv-fix body { position: fixed; left: 0; top: var(--vv-top, 0px); width: 100%; height: var(--vv-h, 100%); transform: translateZ(0); }

/* ---------- stage: the photograph as stacked layer images while textures load, then the canvas ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; background: var(--ground); touch-action: none; }
.poster {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 150vh); height: max(100vh, 66.6667vw);
  transform: translate(-50%, -50%);
  transition: opacity 0.9s ease;
}
.poster img { position: absolute; display: block; user-select: none; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.9s ease; }
.is-ready .gl { opacity: 1; }
.is-ready .poster { opacity: 0; }

/* ---------- loading: the progress line (loading.js) and the ?diag=1 readout ---------- */
.loadline {
  position: fixed; left: 0; top: 0; width: 100%; height: 2px; z-index: 30; background: var(--amber);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.35s ease-out, opacity 0.5s ease;
  pointer-events: none;
}
.loadline.is-done { opacity: 0; }
.diag {
  position: fixed; left: 8px; right: 8px; bottom: calc(var(--rail-h) + 26px); z-index: 40; margin: 0; padding: 6px 8px;
  background: oklch(0.08 0.002 95 / 0.8); color: oklch(0.92 0.005 95); font: 400 9.5px/1.35 ui-monospace, Menlo, monospace;
  white-space: pre-wrap; word-break: break-all; pointer-events: none;
}

/* ---------- viewfinder ---------- */
.viewfinder {
  position: fixed; inset: var(--gut); bottom: calc(var(--rail-h) + 14px); pointer-events: none;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.vf-line { position: absolute; background: var(--hair); }
.vf-top, .vf-bottom { left: 24px; right: 24px; height: 1px; }
.vf-top { top: 0; } .vf-bottom { bottom: 0; }
.vf-left, .vf-right { top: 24px; bottom: 24px; width: 1px; }
.vf-left { left: 0; } .vf-right { right: 0; }
.vf-corner { position: absolute; width: 24px; height: 24px; border: 0 solid var(--ink); }
.vf-corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.vf-corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.vf-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.vf-corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.vf-focus {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 30px; transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--hair-strong), var(--hair-strong)) left top / 8px 1px no-repeat,
    linear-gradient(var(--hair-strong), var(--hair-strong)) left top / 1px 8px no-repeat,
    linear-gradient(var(--hair-strong), var(--hair-strong)) right top / 8px 1px no-repeat,
    linear-gradient(var(--hair-strong), var(--hair-strong)) right top / 1px 8px no-repeat,
    linear-gradient(var(--hair-strong), var(--hair-strong)) left bottom / 8px 1px no-repeat,
    linear-gradient(var(--hair-strong), var(--hair-strong)) left bottom / 1px 8px no-repeat,
    linear-gradient(var(--hair-strong), var(--hair-strong)) right bottom / 8px 1px no-repeat,
    linear-gradient(var(--hair-strong), var(--hair-strong)) right bottom / 1px 8px no-repeat;
  opacity: 0.55;
}

/* ---------- opening: the photograph's exposure at the foot of the viewfinder, right (the shell's cue is at the left) ---------- */
.opening {
  position: fixed; right: calc(var(--gut) + var(--pad)); bottom: calc(var(--rail-h) + 30px); pointer-events: none;
  will-change: transform, opacity;
}
.exif {
  margin: 0; display: flex; gap: 1.7em;
  font: 400 11.5px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 1px 8px var(--shadow);
}
.exif .ex-a { color: var(--amber); }

/* ---------- annotations: real HTML, moved with transforms only ---------- */
.annos { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.anno { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }
.anno-dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; }
.anno-stem { position: absolute; left: 0; bottom: 6px; width: 1px; height: 46px; background: var(--hair-strong); }
.anno-text {
  position: absolute; left: 9px; bottom: 40px; white-space: nowrap;
  font: 400 11px/1.45 var(--mono); letter-spacing: 0.08em; color: var(--ink-2);
  text-shadow: 0 0 10px oklch(0.1 0 0 / 0.9), 0 0 2px oklch(0.1 0 0 / 0.8);
}
.anno-text b { display: block; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.anno-width .anno-text { left: 0; bottom: 10px; transform: translateX(-50%); text-align: center; }
/* 04: the boat as a node on its course, the single amber accent (the same square as the timeline head) */
.anno-boat .anno-dot { left: -3.5px; top: -3.5px; width: 7px; height: 7px; border: 0; border-radius: 0; background: var(--amber); }
.anno-boat .anno-text { left: 12px; bottom: auto; top: -7px; }
.alt-label {
  position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity;
  font: 400 10.5px/1 var(--mono); letter-spacing: 0.1em; color: var(--ink); white-space: nowrap;
  text-shadow: 0 0 8px oklch(0.1 0 0 / 0.95), 0 0 2px oklch(0.1 0 0 / 0.9);
}
.alt-label::before { content: ''; display: inline-block; width: 10px; height: 1px; margin-right: 6px; vertical-align: middle; background: var(--ink); }
.survey {
  position: fixed; left: calc(var(--gut) + 8px); top: calc(var(--top-h) + 4px); margin: 0; opacity: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  font: 400 11px/1.3 var(--mono); letter-spacing: 0.12em; color: var(--ink-2); white-space: pre;
  text-shadow: 0 1px 10px var(--shadow);
  will-change: opacity;
}
.survey span:first-child { color: var(--ink); letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- credit: the elevation data licence, quiet, shown at the Contact stop only (owner, 2026-11-18: not along the
   journey). Hidden it is out of the Tab order too; the label layout still keeps its box free. ---------- */
.credit {
  position: fixed; right: var(--gut); bottom: calc(var(--rail-h) + 1px); margin: 0; z-index: 11;
  font: 400 10px/1.2 var(--mono); letter-spacing: 0.06em; color: var(--ink-2);
  text-shadow: 0 1px 6px var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
body:has(.sh-contact.is-on) .credit { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }
.credit a { color: inherit; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 2px; }

/* ---------- the dip to dark of a cut (under the interface) ---------- */
.dip { position: fixed; inset: 0; z-index: 5; background: oklch(0.08 0.002 95); opacity: 0; pointer-events: none; }

/* ---------- the play stop: while the visitor plays, a finger on the picture moves the paddle, never the page ---------- */
html.is-playing .stage, html.is-playing canvas.gl { touch-action: none; }   /* (always none now: kept for the reading of it) */

/* ---------- phones (the shell's breakpoints) ---------- */
@media (max-width: 640px) {
  :root { --top-h: 70px; --rail-h: 90px; --pad: 16px; }
  /* the frame starts under the top bar (its top line crossed the name), the exposure sits inside its top corner, clear
     of the role line */
  .viewfinder { top: calc(var(--top-h) + 4px); }
  .opening { left: 28px; right: auto; top: calc(var(--top-h) + 20px); bottom: auto; }
  .exif { gap: 1.2em; font-size: 10.5px; letter-spacing: 0.12em; }
  .anno-text { font-size: 10px; }
  .survey { font-size: 10px; }
  .credit { font-size: 9px; line-height: 10px; bottom: var(--rail-h); right: 16px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  :root { --top-h: 56px; --rail-h: 84px; }
  .viewfinder { top: calc(var(--top-h) + 4px); }
  .opening { bottom: auto; top: calc(var(--top-h) + 18px); }
  /* the survey runs in two short lines, not four: its fourth line reached the 04 heading */
  .survey { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; max-width: calc(100% - 2 * var(--gut) - 16px); }
  /* while playing the shell's rail drops its scrub track (shell.css): the credit follows the rail down */
  :root:has(.sh.is-playing) { --rail-h: 56px; }
}

/* ---------- reduced motion: the scene still renders; moves between stops are cuts (main.js), nothing loops ---------- */

/* round 4, 03 Animate: the animator's marks. The canvas that carries the course, the keys, the handles and the onion skins
   (boat.js), and the HTML labels: the keys' names and times and the frame counter, in the line language of the 02 labels (mono
   small caps). The current key's label is brighter. */
.anim-marks { position: absolute; left: 0; top: 0; pointer-events: none; }
.anim-label {
  position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; margin: -0.55em 0 0 14px;
  display: flex; flex-direction: column; gap: 3px;
  font: 400 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  text-shadow: 0 0 8px oklch(0.1 0 0 / 0.95), 0 0 2px oklch(0.1 0 0 / 0.9);
}
.anim-label.is-cur { color: var(--ink); }
.anim-read { margin: -0.95em 0 0 0; color: var(--ink); }
.anim-read > span + span { color: var(--ink-2); }
/* The shell over the journey: top bar, sections, the film rail, the gallery dialog. Continues the scene's language
   (fjord/scene-v4/style.css): Newsreader italic for verbs and titles, IBM Plex Mono small and tracked for data and
   labels, hairlines, amber only for the playhead, the current stop and primary actions. Tokens from site/tokens.css. *//* Shared tokens of the site: the same values as fjord/scene/style.css (keep the two in step until the scene imports this file). *//* newsreader-vietnamese-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-vietnamese-wght-normal-Czsa-EzN.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-ext-wght-normal-C-3rgBeH.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-wght-normal-CCVVNp6i.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* newsreader-vietnamese-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-vietnamese-wght-italic-xAqemagA.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-ext-wght-italic-DFS986qL.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-wght-italic-Bxi8ein9.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ibm-plex-mono-cyrillic-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ibm-plex-mono-cyrillic-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --ground: oklch(0.155 0.004 95);
  --ink: oklch(0.955 0.004 95);
  --ink-2: oklch(0.85 0.004 95);
  --ink-3: oklch(0.74 0.004 95);
  --hair: oklch(0.955 0.004 95 / 0.4);
  --hair-strong: oklch(0.955 0.004 95 / 0.88);
  --shadow: oklch(0.1 0.003 95 / 0.8);
  --amber: oklch(0.76 0.15 70);
  --night-sky: oklch(0.32 0.005 250);
  --night-ground: oklch(0.21 0.002 95);
  --serif: 'Newsreader Variable', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 2.6vw, 36px);
  --pad: clamp(18px, 2.4vw, 34px);
  color-scheme: dark;
}
.sh {
  --n: 10;                        /* shell.js sets it from the number of stops */
  --top-h: 86px;
  --rail-h: 82px;
  --scrim: oklch(0.11 0.003 95);
  --sh-u: 0.05;
  --sh-fill: 0;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  position: fixed; inset: 0; z-index: 10; touch-action: none;
  container-type: size;           /* 60cqh = 60 percent of the layout viewport, which the on screen keyboard never resizes */
  pointer-events: none;           /* the canvas under the shell keeps its pointer (the game) */
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh [hidden] { display: none !important; }
.sh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sh :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 1px; }
/* a stop's heading takes focus on arrival (tabindex -1, for screen readers) but is not a control: no ring */
.sh :is(h1, h2)[tabindex='-1']:focus { outline: none; }

/* the picture's own vignette, top and bottom: the top bar and the rail read on any frame */
.sh::before, .sh::after { content: ''; position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; }
/* both eased (no stop where the slope jumps): the bottom one started as a straight 60 px ramp over the rail; it now
   eases out over 190 px above the rail, so it never shows a top edge, and stays light at the photograph's exposure line */
.sh::before {
  top: 0; height: 170px;
  background: linear-gradient(to bottom, oklch(0.11 0.003 95 / 0.62), oklch(0.11 0.003 95 / 0.46) 30%, oklch(0.11 0.003 95 / 0.22) 58%, oklch(0.11 0.003 95 / 0.06) 82%, oklch(0.11 0.003 95 / 0));
}
.sh::after {
  bottom: 0; height: calc(var(--rail-h) + 190px);
  background: linear-gradient(to top,
    oklch(0.11 0.003 95 / 0.9) 0, oklch(0.11 0.003 95 / 0.83) calc(var(--rail-h) * 0.6), oklch(0.11 0.003 95 / 0.68) var(--rail-h),
    oklch(0.11 0.003 95 / 0.5) calc(var(--rail-h) + 25px), oklch(0.11 0.003 95 / 0.34) calc(var(--rail-h) + 50px),
    oklch(0.11 0.003 95 / 0.2) calc(var(--rail-h) + 77px), oklch(0.11 0.003 95 / 0.09) calc(var(--rail-h) + 108px),
    oklch(0.11 0.003 95 / 0.025) calc(var(--rail-h) + 150px), oklch(0.11 0.003 95 / 0));
}

/* ---------- skip link ---------- */
.sh-skip {
  position: absolute; left: var(--gut); top: 8px; z-index: 20; transform: translateY(-160%);
  pointer-events: auto; padding: 13px 16px; background: var(--ground); color: var(--ink); border: 1px solid var(--hair-strong);
  font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
}
.sh-skip:focus { transform: none; }

/* ---------- top bar ---------- */
.sh-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: calc(var(--gut) - 6px) var(--gut) 0 calc(var(--gut) + 8px);
}
.sh-who { margin: 9px 0 0; display: flex; flex-direction: column; gap: 5px; pointer-events: auto; text-shadow: 0 1px 14px var(--shadow); }
.sh-name { font: 500 clamp(18px, 1.5vw, 22px)/1.1 var(--serif); letter-spacing: 0.005em; }
.sh-role { font: 400 11px/1.4 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.sh-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; pointer-events: auto; }
.sh-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px;
  font: 400 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); text-decoration: none;
  text-shadow: 0 1px 10px var(--shadow);
  background: linear-gradient(var(--ink), var(--ink)) left calc(50% + 12px) / 0 1px no-repeat;
  background-position-x: 10px;
  transition: color 0.2s ease, background-size 0.25s var(--ease-out);
}
.sh-link:hover { color: var(--ink); background-size: calc(100% - 20px) 1px; }
.sh[data-current='work'] .sh-link[href$='#work'], .sh[data-current='services'] .sh-link[href$='#services'],
.sh[data-current='contact'] .sh-link[href$='#contact'] { color: var(--ink); }

/* ---------- sections ---------- */
.sh-main { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sh-stop {
  position: absolute; left: 0; right: 0; top: var(--top-h); bottom: var(--rail-h);
  pointer-events: none; visibility: hidden; opacity: 0;
  transition: opacity 0.11s ease, visibility 0s linear 0.11s;      /* round 3: 0.18 s before */
}
.sh-stop.is-on { visibility: visible; opacity: 1; transition: opacity 0.27s ease 0.02s, visibility 0s; }   /* 0.45 s, delay 0.04 before */
.sh-stop.is-peek { transition: none; }
.sh-body {
  position: absolute; left: calc(var(--gut) + 8px); bottom: 26px; width: min(36rem, calc(100% - 2 * var(--gut) - 16px));
  pointer-events: auto; isolation: isolate;
  transform: translate3d(0, 12px, 0); transition: transform 0.36s var(--ease-out);   /* 0.6 s before */
}
.sh-stop.is-on .sh-body { transform: none; }
.sh-stop.is-peek .sh-body { transform: none; transition: none; }

/* the scrim: a darkening of the picture behind the words, soft at every edge, never a panel */
.sh-body::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -4.5rem -7rem -3.2rem -5rem;
  background: radial-gradient(ellipse 70% 66% at 40% 56%, oklch(0.11 0.003 95 / 0.84), oklch(0.11 0.003 95 / 0.74) 52%, oklch(0.11 0.003 95 / 0) 86%);
}

/* opening */
.sh-opening .sh-body { top: 0; bottom: 26px; width: auto; right: var(--gut); display: grid; grid-template-rows: 1fr auto; align-items: start; }
.sh-opening .sh-body::before { content: none; }
.sh-headline {
  position: relative; margin: clamp(8px, 3.4vh, 44px) 0 0; max-width: 15ch;
  font: italic 380 clamp(40px, 5.9vw, 96px)/0.99 var(--serif); letter-spacing: -0.018em; text-wrap: balance;
  text-shadow: 0 2px 34px var(--shadow), 0 0 2px oklch(0.1 0 0 / 0.5);
}
.sh-headline::before, .sh-cue::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 62% 60% at 42% 52%, oklch(0.11 0.003 95 / 0.66), oklch(0.11 0.003 95 / 0.42) 52%, oklch(0.11 0.003 95 / 0) 80%);
}
.sh-headline::before { inset: -3.5rem -5rem -3rem -4rem; }
/* justify-self start: as a stretched grid item the cue ran the full width, and its scrim (::before, an ellipse 60 px tall)
   became a hard edged dark bar across the lit water of the first frame (round 3 review). Now the scrim sits behind the
   words only. */
.sh-cue {
  position: relative; margin: 0; align-self: end; justify-self: start; width: fit-content; display: flex; align-items: center; gap: 14px;
  font: 400 11.5px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
  text-shadow: 0 1px 8px var(--shadow);
}
.sh-cue::before { inset: -1.6rem -3rem -1.4rem -2rem; }
.sh-cue-rule { width: 40px; height: 1px; background: var(--ink-2); transform-origin: left center; animation: sh-cue 2.6s ease-in-out infinite; }
@keyframes sh-cue { 0%, 100% { transform: scaleX(0.25); opacity: 0.5; } 50% { transform: scaleX(1); opacity: 1; } }

/* verb stops: number and rule, the verb, the claim, three ruled lines, the proof, the action */
.sh-verb-h { margin: 0 0 14px; font-weight: inherit; }
.sh-num {
  display: block; margin-bottom: 14px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.22em; color: var(--ink-2); text-shadow: 0 1px 8px var(--shadow);
}
.sh-num::after { content: ''; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--hair-strong); }
.sh-verbword, .sh-title {
  display: block; font: italic 360 clamp(52px, 7vw, 112px)/0.92 var(--serif); letter-spacing: -0.022em;
  text-shadow: 0 2px 30px var(--shadow), 0 0 2px oklch(0.1 0 0 / 0.5);
}
.sh-claim, .sh-line {
  margin: 0 0 20px; max-width: 26em;
  font: 400 clamp(18px, 1.45vw, 22px)/1.36 var(--serif); color: var(--ink);
  text-shadow: 0 1px 14px var(--shadow), 0 0 2px oklch(0.1 0 0 / 0.6);
}
.sh-covers { list-style: none; margin: 0 0 22px; padding: 0; max-width: 25rem; border-bottom: 1px solid var(--hair); }
.sh-covers li {
  padding: 8px 0 7px; border-top: 1px solid var(--hair);
  font: 400 15.5px/1.35 var(--serif); color: var(--ink-2); text-shadow: 0 1px 10px var(--shadow);
}
.sh-proof { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 0; }
.sh-label {
  margin: 0; font: 400 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
  text-shadow: 0 1px 8px var(--shadow);
}
.sh-projects { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 20px; }
.sh-project {
  min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  font: italic 400 19px/1 var(--serif); color: var(--ink); letter-spacing: 0.002em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--hair);
  text-shadow: 0 1px 10px var(--shadow);
  transition: text-decoration-color 0.2s ease;
}
.sh-project:hover { text-decoration-color: var(--ink); }
.sh-act { margin: 22px 0 0; }
.sh-primary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--amber); color: var(--ground);
  font: 500 12px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-color 0.2s ease;
}
.sh-primary:hover { background: oklch(0.82 0.14 72); }
.sh .sh-primary:focus-visible { outline-color: var(--ink); }

/* play */
.sh-how { margin: -6px 0 0; max-width: 30em; font: 400 12px/1.5 var(--mono); letter-spacing: 0.06em; color: var(--ink-2); text-shadow: 0 1px 8px var(--shadow); }
.sh-play-live { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.sh-switch {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 2px; background: none; border: 0; cursor: pointer;
  font: 400 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.sh-switch-track { position: relative; width: 30px; height: 14px; border: 1px solid var(--ink-2); }
.sh-switch-track::after { content: ''; position: absolute; left: 2px; top: 2px; width: 8px; height: 8px; background: var(--ink-2); transition: transform 0.18s ease; }
.sh-switch[aria-checked='true'] .sh-switch-track { border-color: var(--ink); }
.sh-switch[aria-checked='true'] .sh-switch-track::after { transform: translateX(16px); background: var(--ink); }
.sh.is-playing .sh-play .sh-body::before { inset: -2.4rem -4rem -2rem -3rem; }

/* work, services and contact: wide, and they scroll inside themselves */
.sh-work .sh-body, .sh-services .sh-body, .sh-contact .sh-body { top: 0; bottom: 14px; display: flex; flex-direction: column; justify-content: flex-end; }
.sh-services .sh-body { width: min(80rem, calc(100% - 2 * var(--gut) - 16px)); }
.sh-services .sh-body::before {
  inset: -4rem -7rem -2rem -5rem;
  background: radial-gradient(ellipse 72% 74% at 42% 58%, oklch(0.11 0.003 95 / 0.86), oklch(0.11 0.003 95 / 0.7) 56%, oklch(0.11 0.003 95 / 0) 84%);
}
.sh-services .sh-head .sh-line { max-width: 40em; }
.sh-work .sh-body { left: var(--gut); width: auto; right: var(--gut); }
/* the Work body is wider than the others and starts 8 px further left (its windows fan out over the width, and stay where they are);
   the title and the line keep the text column of every other stop: x 44 at 2000 px */
@media (min-width: 1180px) { .sh-work .sh-head { padding-left: 8px; } }
.sh-contact .sh-body { width: min(37rem, calc(100% - 2 * var(--gut) - 16px)); }
.sh-scroll {
  max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; touch-action: pan-y;
  scrollbar-color: var(--hair) transparent; padding: 22px 4px 18px 0;
  mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 16px), transparent);
}
.sh .sh-scroll.w-scrim::before { content: none; }    /* the work component's own panel is replaced by the vignette */
.sh-work .sh-body::before {
  inset: -6rem -3rem -2rem -3rem;
  /* (fifth review: Work stands over the structure drawing now, not over the night. A lighter vignette, so the drawing shows
     around the windows; it was 0.84 and 0.66 over the night) */
  background: radial-gradient(ellipse 80% 78% at 45% 66%, oklch(0.11 0.003 95 / 0.66), oklch(0.11 0.003 95 / 0.44) 52%, oklch(0.11 0.003 95 / 0) 84%);
}
.sh-contact .sh-body::before {
  inset: -4rem -9rem -2rem -5rem;
  background: radial-gradient(ellipse 70% 72% at 40% 56%, oklch(0.11 0.003 95 / 0.84), oklch(0.11 0.003 95 / 0.66) 54%, oklch(0.11 0.003 95 / 0) 82%);
}
.sh-head { margin-bottom: clamp(18px, 3vh, 34px); }
.sh-head .sh-title { margin: 0 0 14px; font-size: clamp(46px, 5.6vw, 92px); }
.sh-head .sh-line { margin: 0; }
.sh-place { margin: 26px 0 4px; font: 400 11px/1.5 var(--mono); letter-spacing: 0.1em; color: var(--ink-2); }
/* wide screens: the form in two columns, in its own DOM order (name, email, company, needs | link, message, Send: the Tab
   order and the reading order go down the first column, then the second), so the title, the line, every field and Send
   fit without scrolling from 1366 x 768 up; type sizes as the component sets them. A grid, placed by rows, so every engine
   draws the same picture (forced column breaks are not honoured everywhere):
     row 1   the error summary (both columns) or nothing; the form's ::before holds the row so it is never taken
     row 2   name (its field level with the link's) | link
     row 3   email                                  | message (rows 3 and 4)
     row 4   company
     row 5+  needs (rows 5 and 6)                   | the Turnstile slot, the failure note and Send, each in the next free row
   Spacing is margin, not row gap, so the empty row 1 adds no space. The line under the title runs on one line here. */
@media (min-width: 1100px) {
  .sh-contact .sh-body { width: min(70rem, calc(100% - 2 * var(--gut) - 16px)); }
  .sh-contact .contact { max-width: none; }
  .sh-contact .sh-head .sh-line { max-width: 40em; }
  .sh-contact .ct-form {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(36px, 4vw, 56px); row-gap: 0;
    align-items: start;
  }
  .sh-contact .ct-form::before { content: ''; grid-row: 1; grid-column: 1 / -1; }
  .sh-contact .ct-form > * { margin: 0; }
  .sh-contact .ct-form > .ct-summary { grid-row: 1; grid-column: 1 / -1; margin-bottom: var(--ct-gap); }
  .sh-contact .ct-form > .ct-name { grid-row: 2; grid-column: 1; align-self: end; }
  .sh-contact .ct-form > .ct-email { grid-row: 3; grid-column: 1; }
  .sh-contact .ct-form > .ct-company { grid-row: 4; grid-column: 1; }
  .sh-contact .ct-form > .ct-needs { grid-row: 5 / span 2; grid-column: 1; }
  .sh-contact .ct-form > .ct-link { grid-row: 2; grid-column: 2; }
  .sh-contact .ct-form > .ct-message { grid-row: 3 / span 2; grid-column: 2; }
  .sh-contact .ct-form > .ct-budget { grid-row: 5; grid-column: 2; }
  .sh-contact .ct-form > :is(.ct-turnstile, .ct-failure, .ct-actions) { grid-column: 2; }
  .sh-contact .ct-form > :is(.ct-email, .ct-company, .ct-needs, .ct-message, .ct-budget, .ct-turnstile, .ct-failure) { margin-top: var(--ct-gap); }
  .sh-contact .ct-form > .ct-actions { margin-top: calc(var(--ct-gap) + 4px); }
}
/* short wide screens (1280 x 720, 1366 x 768): the head and the gaps tighten; type and 44 px targets stay */
@media (min-width: 1100px) and (max-height: 800px) {
  .sh-contact .sh-head { margin-bottom: 10px; }
  .sh-contact .sh-head .sh-title { margin-bottom: 6px; }
  .sh-contact .contact { --ct-gap: 14px; }
  .sh-contact .sh-scroll { padding-top: 16px; }
  /* the budget field (round 3) adds a row to column 2: the message opens at three lines here (it still grows) */
  .sh-contact textarea.ct-input { min-height: calc(3 * 1.45em + 26px); }
  .sh-contact .sh-head .sh-title { font-size: clamp(46px, 9vh, 92px); }
  .sh-contact .ct-form > .ct-actions { margin-top: var(--ct-gap); }
}
@media (min-width: 1100px) and (max-height: 740px) {
  .sh-contact .sh-head { margin-bottom: 8px; }
  .sh-contact .sh-head .sh-title { margin-bottom: 4px; }
  .sh-contact .contact { --ct-gap: 12px; }
  .sh-contact .sh-scroll { padding-bottom: 12px; }
}
.sh .w-visit { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- the rail: the scene's film timeline, one tick and name per stop ---------- */
.sh-rail {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: var(--rail-h);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: 20px 44px;
  grid-template-areas: 'tc hint' 'track steps'; column-gap: clamp(16px, 2vw, 30px); align-content: center;
  padding: 4px var(--gut) 8px; pointer-events: auto;
  font: 400 11px/1 var(--mono); letter-spacing: 0.12em; color: var(--ink-2);
}
.sh-tc { grid-area: tc; align-self: start; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sh-tc-now { color: var(--ink); }
.sh-cur { grid-area: cur; display: none; }
.sh-track { grid-area: track; position: relative; height: 44px; min-width: 0; }
.sh-ticks { position: absolute; inset: 0; }
.sh-rule, .sh-fill { position: absolute; top: 12px; height: 1px; left: calc(50% / var(--n)); width: calc(100% - 100% / var(--n)); }
.sh-rule { background: var(--hair); }
.sh-fill { background: var(--ink); transform-origin: left center; transform: scaleX(var(--sh-fill)); }
.sh-tick { position: absolute; top: 7px; left: calc(var(--x) * 100%); width: 1px; height: 11px; background: var(--hair-strong); }
.sh-tick.is-cur { background: var(--amber); top: 5px; height: 15px; }
.sh-list { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.sh-list li { position: absolute; top: 0; left: calc(var(--x) * 100%); transform: translateX(-50%); }
.sh-stoplink {
  display: flex; align-items: flex-end; justify-content: center; height: 44px; min-width: 44px; padding: 0 4px 3px;
  color: var(--ink-2); text-decoration: none; white-space: nowrap; font-size: 10.5px; letter-spacing: 0.06em;
  transition: color 0.2s ease;
}
.sh-stoplink:hover { color: var(--ink); }
/* ten names under the ticks: from 1440 px wide they fit with their numbers; below that (down to 1180, where the names
   collapse) the numbers are hidden from sight but stay in the link's name, so no two names touch */
@media (min-width: 1180px) and (max-width: 1439px) {
  .sh-stopnum { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.sh-stoplink[aria-current] { color: var(--ink); }
.sh-head-knob {
  position: absolute; top: 0; left: calc(var(--sh-u) * 100%); width: 44px; height: 30px; margin-left: -22px; z-index: 2;
  cursor: grab; touch-action: none;
}
.sh.is-scrubbing .sh-head-knob { cursor: grabbing; }
.sh-knob { position: absolute; left: 21.5px; top: 4px; width: 1px; height: 22px; background: var(--amber); }
.sh-knob::before { content: ''; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; background: var(--amber); }
.sh .sh-head-knob:focus-visible { outline-offset: -2px; }
/* the hint is out of the grid: it comes and goes (gone once a move was made, and in flight), and as a grid item it set
   the width of the steps' column, so the whole rail jumped sideways at every departure and arrival (round 3 review) */
.sh-hint { position: absolute; top: 4px; right: var(--gut); margin: 0; display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 10.5px; letter-spacing: 0.1em; white-space: nowrap; }
.sh-hint span { margin-right: 6px; }
.sh-hint kbd {
  display: inline-grid; place-items: center; min-width: 18px; height: 16px; padding: 0 3px;
  border: 1px solid var(--hair-strong); font: 400 10px/1 var(--mono); color: var(--ink); letter-spacing: 0;
}
.sh-steps { grid-area: steps; display: flex; gap: 6px; align-self: center; }
.sh-step {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 11px; cursor: pointer;
  background: none; border: 1px solid var(--hair); color: var(--ink-2); font: inherit; letter-spacing: 0.12em; white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sh-step:hover:not(:disabled) { color: var(--ink); border-color: var(--hair-strong); }
.sh-step:disabled { opacity: 0.45; cursor: default; }
.sh-step-a { display: none; font-size: 15px; letter-spacing: 0; }
@media (pointer: coarse) { .sh-step { min-height: 44px; min-width: 44px; } }
.sh.sh-touch .sh-hint { display: none; }      /* touch is decided in shell.js (a coarse primary pointer, the first touch) */

/* narrow: the names collapse to ticks; the current stop's name alone opens the list */
@media (max-width: 1179px) {
  .sh-rail { grid-template-columns: auto 1fr auto; grid-template-rows: 30px 44px; grid-template-areas: 'track track track' 'tc cur steps'; column-gap: 12px; }
  .sh-tc { align-self: center; }
  .sh-cur { display: block; min-width: 0; width: 100%; max-width: 22rem; }
  .sh-track { height: 30px; }
  .sh-head-knob { height: 44px; top: -7px; }
  .sh-knob { top: 11px; }
  .sh-rule, .sh-fill { top: 15px; }
  .sh-tick { top: 10px; }
  .sh-tick.is-cur { top: 8px; }
  .sh-curbtn {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; cursor: pointer;
    background: none; border: 1px solid var(--hair); color: var(--ink); font: inherit; letter-spacing: 0.1em; text-align: left; white-space: nowrap; overflow: hidden;
  }
  .sh-curbtn::before { content: ''; flex: none; width: 7px; height: 7px; background: var(--amber); }
  .sh-curbtn[aria-expanded='true'] { border-color: var(--hair-strong); }
  .sh-curname { overflow: hidden; text-overflow: ellipsis; }
  .sh-list { display: none; }
  .sh-rail.is-open .sh-list {
    display: block; position: absolute; inset: auto; left: var(--gut); right: var(--gut); bottom: calc(100% + 6px); max-width: 22rem;
    padding: 6px 0; background: var(--ground); border: 1px solid var(--hair-strong);
    /* a landscape phone (390 px tall) has no room for nine 44 px rows above the rail: the list scrolls (site v1, scene-v4) */
    max-height: calc(100cqh - 100% - 32px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  }
  .sh-rail.is-open .sh-list li { position: static; transform: none; }
  .sh-rail.is-open .sh-stoplink { justify-content: flex-start; align-items: center; padding: 0 16px; font-size: 12px; }
  .sh-rail.is-open .sh-stoplink[aria-current]::before { content: ''; width: 7px; height: 7px; margin: 0 10px 0 -17px; background: var(--amber); }
  .sh-hint { display: none; }
  .sh-step { min-height: 44px; min-width: 44px; padding: 0 12px; }
  .sh-step-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sh-step-a { display: inline; }
}

/* ---------- gallery: the photography page full screen ---------- */
.sh-gallery {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ground); color: var(--ink); pointer-events: auto; overflow: hidden;
}
.sh-gallery[open] { display: grid; grid-template-rows: auto 1fr; animation: sh-in 0.13s ease both; }   /* 0.22 s before */
.sh-gallery.is-out { opacity: 0; transition: opacity 0.09s ease; }                                       /* 0.15 s before */
.sh-gallery::backdrop { background: var(--ground); }
@keyframes sh-in { from { opacity: 0; } to { opacity: 1; } }
.sh-gal-bar { display: flex; align-items: center; padding: 4px var(--gut); border-bottom: 1px solid var(--hair); }
.sh-gal-close {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 4px; cursor: pointer;
  background: none; border: 0; color: var(--ink); font: 400 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
}
.sh-gal-close::before { content: ''; width: 28px; height: 1px; background: var(--hair-strong); transition: width 0.25s ease; }
.sh-gal-close:hover::before { width: 40px; }
.sh-gal-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--ground); }
.sh-dip { position: fixed; inset: 0; z-index: 30; background: oklch(0.08 0.002 95); opacity: 0; pointer-events: none; transition: opacity 0.09s ease; }   /* 0.15 s before; shell.js DIP_MS */
.sh-dip.is-on { opacity: 1; }
.sh-dip.is-now { transition: none; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .sh { --top-h: 70px; --rail-h: 90px; --pad: 16px; }
  /* four links since round 3 (Services): tighter links and gap, so the name stays on one line at 390 px */
  .sh-top { padding: 8px 8px 0 16px; align-items: flex-start; gap: 8px; }
  .sh-who { margin-top: 6px; gap: 5px; max-width: 46%; }
  .sh-name { font-size: 17px; white-space: nowrap; }
  /* the title on one line under the name and the links (it wrapped to three lines in the name's narrow column, and the
     viewfinder's top line ran through its last word: round 3 review); it ends above the frame (top-h, 70 px) */
  .sh-role { position: absolute; left: 16px; top: 44px; font-size: 9px; letter-spacing: 0.12em; white-space: nowrap; }
  /* the rail's last row (timecode, current stop, steps): the hours go, so "05 Keep it running" reads whole */
  .sh-tc-h { display: none; }
  .sh-curbtn { letter-spacing: 0.04em; }
  .sh-rail { column-gap: 10px; }
  .sh-links { gap: 0; }
  .sh-link { padding: 0 5px; font-size: 10px; letter-spacing: 0.06em; background-position-x: 5px; }
  .sh-link:hover { background-size: calc(100% - 10px) 1px; }
  .sh-tc-total { display: none; }
  /* bottom 24px: the terrain credit (10 px, on the rail's top edge) stays clear of every section, with room for a
     scroller's faded last line (at 14 px the Services and Contact lists ran under the credit: round 3 review) */
  .sh-body, .sh-opening .sh-body, .sh-work .sh-body, .sh-services .sh-body, .sh-contact .sh-body {
    left: 16px; right: 16px; width: auto; bottom: 24px; top: auto; max-height: 60cqh;
  }
  .sh-scroll { padding-bottom: 28px; mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 28px), transparent); }
  .sh-opening .sh-body { display: block; }
  .sh-headline { font-size: clamp(36px, 10.6vw, 46px); margin: 0 0 22px; }
  .sh-work .sh-body, .sh-services .sh-body, .sh-contact .sh-body { top: auto; height: 60cqh; max-height: 60cqh; }
  /* the Work scroller spans the screen and pads its words by 16 px, so the strip's bleed (work.css, margin 0 -16px)
     ends at the scroller's edge instead of 12 px past it: the section no longer pans sideways, the strip still does */
  .sh-work .sh-body { left: 0; right: 0; }
  .sh-work .sh-scroll { padding-inline: 16px; }
  .sh-verbword, .sh-title { font-size: 46px; }
  .sh-head .sh-title { font-size: 44px; margin-bottom: 10px; }
  .sh-num { margin-bottom: 10px; }
  .sh-verb-h { margin-bottom: 10px; }
  .sh-claim, .sh-line { font-size: 17px; margin-bottom: 14px; }
  .sh-covers { margin-bottom: 14px; }
  .sh-covers li { font-size: 14.5px; padding: 6px 0 5px; }
  .sh-project { font-size: 17px; }
  .sh-act { margin-top: 12px; }
  /* on a phone the words sit on the bottom edge: the scrim is the picture's bottom vignette, raised behind them */
  .sh-body::before { inset: -4.5rem -16px -1rem -16px; background: linear-gradient(to top, oklch(0.11 0.003 95 / 0.86), oklch(0.11 0.003 95 / 0.8) calc(100% - 4.5rem), oklch(0.11 0.003 95 / 0)); }
  .sh-opening .sh-body::before { content: ''; }
  .sh-headline::before, .sh-cue::before { content: none; }
  .sh-work .sh-body::before, .sh-services .sh-body::before, .sh-contact .sh-body::before { inset: -3rem -16px -1rem; }
  .sh-work .sh-body::before { inset: -3rem 0 -1rem; }
  .sh-rail { padding: 2px 16px 10px; }
}
/* 360 px wide (the common small Android and the narrowest iPhones): the four links and the name no longer fit at 10 px with 5 px
   padding and 0.06em tracking; a little tighter, nothing is dropped */
@media (max-width: 380px) {
  .sh-top { padding-right: 6px; }
  .sh-link { padding: 0 3px; letter-spacing: 0.02em; background-position-x: 3px; }
  .sh-link:hover { background-size: calc(100% - 6px) 1px; }
  .sh-name { font-size: 16px; }
}
/* Work on a phone is tightened so its title, line, fan, ticks and the name under the active window all fit without scrolling */
/* Work is the one stop that must not scroll on a phone (a swipe on the fan moves the stop, and the name under the active window
   must show). Its parts are tightened on every phone; on a phone shorter than 820 px its body takes the whole free height between
   the top bar and the rail (60 percent of the height is not enough there), above that the usual 60 percent holds it. */
@media (max-width: 640px) and (max-height: 820px) {
  .sh-work .sh-body { height: calc(100cqh - var(--top-h) - var(--rail-h) - 26px); max-height: none; }
}
@media (max-width: 640px) {
  .sh-work .sh-scroll { padding-top: 16px; padding-bottom: 22px; }
  .sh-work .sh-head { margin-bottom: 10px; }
  .sh-work .sh-head .sh-title { font-size: 36px; margin-bottom: 6px; }
  .sh-work .sh-head .sh-line { font-size: 15.5px; line-height: 1.3; margin-bottom: 4px; }
  .sh-work .w-root { --ww: 58%; --lift: 30px; }
}
/* phone held sideways: two columns, so a stop stays under 60 percent of the height */
@media (max-height: 500px) and (orientation: landscape) {
  .sh { --top-h: 56px; --rail-h: 84px; }
  .sh-top { padding-top: 4px; }
  .sh-who { flex-direction: row; align-items: baseline; gap: 14px; margin-top: 12px; }
  .sh-body { max-height: 60cqh; bottom: 16px; }      /* clear of the terrain credit (12 px on the rail's top edge) */
  .sh-verb .sh-body {
    width: calc(100% - 2 * var(--gut) - 16px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 32px; align-items: end;
  }
  .sh-verb .sh-body > :is(.sh-verb-h, .sh-claim) { grid-column: 1; }
  .sh-verb .sh-body > :is(.sh-covers, .sh-proof, .sh-act) { grid-column: 2; }
  .sh-verb .sh-body > .sh-verb-h { grid-row: 1; align-self: end; }
  .sh-verb .sh-body > .sh-claim { grid-row: 2 / span 2; align-self: start; }
  .sh-verb .sh-body > .sh-covers { grid-row: 1; }
  .sh-verb .sh-body > .sh-proof, .sh-verb .sh-body > .sh-act { grid-row: 2; }
  .sh-verb .sh-body > .sh-act + .sh-proof, .sh-verb .sh-body > .sh-proof + .sh-act { grid-row: 3; }
  .sh-verbword, .sh-title { font-size: 40px; }
  .sh-num { margin-bottom: 6px; }
  .sh-verb-h { margin-bottom: 8px; }
  .sh-claim, .sh-line { font-size: 16px; margin-bottom: 8px; }
  .sh-covers { margin-bottom: 6px; }
  .sh-covers li { font-size: 13.5px; padding: 4px 0 3px; }
  .sh-headline { font-size: 34px; margin-bottom: 14px; max-width: 22ch; }
  .sh-opening .sh-body { top: auto; display: block; }
  .sh-head .sh-title { font-size: 36px; }
  .sh-work .sh-body, .sh-services .sh-body, .sh-contact .sh-body { top: auto; height: 60cqh; }
  .sh-play .sh-body { width: min(40rem, calc(100% - 2 * var(--gut))); }
  /* while playing the finger needs the picture: the controls are one row on the bottom edge, and the rail drops its
     scrub track (the playhead does not move during a game; Done, Escape, the stop list and the steps still work), so
     the row, the credit and the rail fit in the bottom 30 percent. fjord/scene-v4/style.css mirrors --rail-h. */
  .sh.is-playing { --rail-h: 56px; }
  .sh.is-playing .sh-rail { grid-template-rows: 44px; grid-template-areas: 'tc cur steps'; }
  .sh.is-playing .sh-track { display: none; }
  .sh.is-playing .sh-play .sh-body { width: auto; right: var(--gut); bottom: 14px; }
  /* one row whatever the language: Done and Sound keep their width, and if a translation is longer still the row scrolls
     sideways instead of cutting a control off (each control scrolls into view when it takes focus) */
  .sh.is-playing .sh-play-live { flex-wrap: nowrap; gap: 0 18px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: pan-x; }
  /* a scroll container clips at its padding box: 5 px of padding (the focus ring, 2 px at 3 px offset) taken back by a
     matching negative margin, so the ring draws whole and the row keeps its place, its 44 px and its hit areas */
  .sh.is-playing .sh-play-live { padding: 5px; margin: -5px; }
  .sh.is-playing .sh-play-live > :is(.sh-primary, .sh-switch) { flex: none; white-space: nowrap; }
}
/* a landscape phone, the stop list while playing: the scrub track is not drawn, but the list inside it still opens from
   the current stop's name, above the rail (the track gives its box to the rail; ticks and playhead stay hidden). Choosing
   a stop ends the game and goes there, as the steps do; Escape closes the list first, then ends the game. */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1179px) {
  .sh.is-playing .sh-track { display: contents; }
  .sh.is-playing :is(.sh-ticks, .sh-head-knob) { display: none; }
}

/* ---------- reduced motion: sections change in 100 ms, no slide, nothing loops ---------- */
.sh-rm .sh-stop, .sh-rm .sh-stop.is-on { transition: opacity 0.1s linear, visibility 0s linear 0.1s; }
.sh-rm .sh-stop.is-on { transition: opacity 0.1s linear, visibility 0s; }
.sh-rm .sh-body, .sh-rm .sh-stop.is-on .sh-body { transform: none; transition: none; }
.sh-rm .sh-cue-rule { animation: none; transform: none; opacity: 1; }
.sh-rm .sh-gallery[open] { animation: none; }
.sh-rm .sh-dip { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sh-stop, .sh-stop.is-on { transition: opacity 0.1s linear, visibility 0s linear 0.1s; }
  .sh-stop.is-on { transition: opacity 0.1s linear, visibility 0s; }
  .sh-body, .sh-stop.is-on .sh-body { transform: none; transition: none; }
  .sh-cue-rule { animation: none; }
  .sh-gallery[open] { animation: none; }
}

/* the public address on the line of the place text in Contact (fifth review): a quiet link */
.sh-mail { color: inherit; text-decoration: underline; text-decoration-color: var(--hair-strong); text-underline-offset: 3px; }
.sh-mail:hover { color: var(--ink); }

/* the hidden game's entrance: a transparent 44 px button on the shore light (main.js places it); on hover or focus a small label
   appears beside it and the light brightens in the scene. The dark veil is the dip on the way out. */
.sh-egg {
  position: fixed; left: 0; top: 0; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer; pointer-events: auto; will-change: transform;
}
.sh-egg[hidden] { display: none; }
.sh-egg:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sh-egg-name {
  position: absolute; left: 100%; top: 50%; margin-left: 6px; translate: 0 -50%; white-space: nowrap; opacity: 0; pointer-events: none;
  font: 400 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 0 8px oklch(0.1 0 0 / 0.95), 0 0 2px oklch(0.1 0 0 / 0.9); transition: opacity 0.25s;
}
.sh-egg:hover .sh-egg-name, .sh-egg:focus-visible .sh-egg-name { opacity: 1; }
.sh-leave { position: fixed; inset: 0; background: #060606; opacity: 0; pointer-events: none; z-index: 60; transition: opacity 0.4s ease; }
.sh-leave.is-on { opacity: 1; }

/* loading: the journey is gated until the scene has arrived (journey.setGate); these controls read as disabled, like Previous at the start */
.sh [aria-disabled='true'], .sh-curbtn:disabled { opacity: 0.45; cursor: default; }
.sh-link[aria-disabled='true']:hover { color: var(--ink-2); background-size: 0 1px; }
.sh.is-loading .sh-hint { visibility: hidden; }
/* Work: windows on the night frame. Tokens and typefaces from site/tokens.css. *//* Shared tokens of the site: the same values as fjord/scene/style.css (keep the two in step until the scene imports this file). *//* newsreader-vietnamese-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-vietnamese-wght-normal-Czsa-EzN.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-ext-wght-normal-C-3rgBeH.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-wght-normal-CCVVNp6i.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* newsreader-vietnamese-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-vietnamese-wght-italic-xAqemagA.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-ext-wght-italic-DFS986qL.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-wght-italic-Bxi8ein9.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ibm-plex-mono-cyrillic-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ibm-plex-mono-cyrillic-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --ground: oklch(0.155 0.004 95);
  --ink: oklch(0.955 0.004 95);
  --ink-2: oklch(0.85 0.004 95);
  --ink-3: oklch(0.74 0.004 95);
  --hair: oklch(0.955 0.004 95 / 0.4);
  --hair-strong: oklch(0.955 0.004 95 / 0.88);
  --shadow: oklch(0.1 0.003 95 / 0.8);
  --amber: oklch(0.76 0.15 70);
  --night-sky: oklch(0.32 0.005 250);
  --night-ground: oklch(0.21 0.002 95);
  --serif: 'Newsreader Variable', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 2.6vw, 36px);
  --pad: clamp(18px, 2.4vw, 34px);
  color-scheme: dark;
}
.w-root {
  --w-frame: oklch(0.205 0.004 95);
  --w-barbg: oklch(0.18 0.004 95);
  --w-plan: oklch(0.955 0.004 95 / 0.22);
  --w-bar-h: 28px;
  --w-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  isolation: isolate;
  color: var(--ink);
  font-family: var(--serif);
}
.w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* scrim: a near solid night panel under every line of text, fading only beyond the content box */
.w-scrim { position: relative; isolation: isolate; }
.w-scrim::before {
  content: ''; position: absolute; inset: var(--scrim-inset, -40px -48px); z-index: -1; pointer-events: none;
  background: oklch(0.12 0.003 95 / 0.88);
  mask: linear-gradient(to bottom, transparent, #000 var(--scrim-fy, 40px), #000 calc(100% - var(--scrim-fy, 40px)), transparent),
        linear-gradient(to right, transparent, #000 var(--scrim-fx, 48px), #000 calc(100% - var(--scrim-fx, 48px)), transparent);
  mask-composite: intersect;
}

.w-list { list-style: none; margin: 0; padding: 0; position: relative; }
/* the fan takes every touch itself: a sideways swipe brings the next window forward (work.js), an up or down one is the page's
   (journey.js); no browser pan starts on it */
[data-layout='b'] .w-list { touch-action: none; }

/* the tick row under the fan, one tick per project, on touch screens only; it reaches the fan's bottom with the same percentage
   padding as the list (a percentage is the width of the box) and the row sits there */
.w-ticks { display: none; position: absolute; left: 0; right: 0; top: 0; z-index: 40; pointer-events: none; padding-top: calc(var(--ww, 34%) * 0.625 + var(--w-bar-h) + var(--lift, 56px) * 0.6 + 18px); touch-action: none; }
.w-ticks-row { display: flex; justify-content: center; gap: 0; pointer-events: auto; }
.w-tick { position: relative; width: 38px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; }
.w-tick::before { content: ''; position: absolute; left: 9px; right: 9px; top: 16px; height: 2px; background: var(--ink-3); opacity: 0.55; transition: background-color 0.2s ease, opacity 0.2s ease; }
.w-tick[aria-current='true']::before { background: var(--amber); opacity: 1; }
.w-tick:focus-visible { outline: 2px solid var(--amber); outline-offset: -4px; }
@media (pointer: coarse) { [data-layout='b'] .w-ticks { display: block; } }

/* ---------- the window ---------- */
.w-win {
  display: block; width: 100%; padding: 0; margin: 0; border: 1px solid var(--hair); border-radius: 3px;
  background: var(--w-frame); color: inherit; font: inherit; text-align: left; cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.w-win:hover, .w-win:focus-visible, [data-layout='b'] .is-active > .w-win, [data-layout='c'] .is-active > .w-win { border-color: var(--hair-strong); }
.w-win:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.w-bar {
  display: flex; align-items: center; height: var(--w-bar-h); padding: 0 10px;
  background: var(--w-barbg); border-bottom: 1px solid oklch(0.955 0.004 95 / 0.14);
}
.w-host {
  font: 400 10.5px/1 var(--mono); letter-spacing: 0.06em; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w-shot {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: oklch(0.24 0.004 95);
}
.w-shot picture, .w-shot .w-home { display: block; width: 100%; height: 100%; }
.w-home { object-fit: cover; object-position: top center; }
.w-shot::after {
  /* the dim: captures sit back until the window is looked at */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: oklch(0.12 0.003 95 / 0.3);
  transition: opacity 0.45s ease;
}
.w-win:hover .w-shot::after, .w-win:focus-visible .w-shot::after { opacity: 0; }
.w-tall {
  position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block;
  opacity: 0; transition: opacity 0.25s ease; will-change: transform;
}
.w-tall.is-on { opacity: 1; }

/* in progress: no capture yet, a title card (the name large, the label under it) on a quiet night ground with one hairline
   over the words, set at the window's lower left (layout b: at the side that shows when the window is covered) */
.w-plan {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: 10px; padding: 0 9% 11%;
  background: linear-gradient(to bottom, oklch(0.2 0.004 95), oklch(0.165 0.004 95));
  container-type: inline-size;
}
.w-plan::before {
  content: ''; width: min(64px, 22%); height: 1px; margin-bottom: 8px; background: var(--hair-strong);
}
.w-plan-name {
  font: italic 380 clamp(22px, 9cqi, 64px)/1 var(--serif); letter-spacing: -0.012em; color: var(--ink);
}
.w-plan-label {
  font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
[data-layout='b'] .is-after .w-plan { align-items: flex-end; text-align: right; }

/* ---------- the words under a window ---------- */
.w-meta { padding: 14px 2px 0; }
.w-name { margin: 0; font: 450 clamp(19px, 1.45vw, 22px)/1.15 var(--serif); letter-spacing: 0.002em; }
.w-label {
  margin: 6px 0 0; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
/* the verbs a project proves, number and name, each under a short hairline like the verb stops' numbers */
.w-verbs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; padding: 0;
  font: 400 10.5px/1.2 var(--mono); letter-spacing: 0.08em; color: var(--ink-2); white-space: nowrap;
}
.w-verbs li { position: relative; padding-top: 7px; }
.w-verbs li::before { content: ''; position: absolute; left: 0; top: 0; width: 12px; height: 1px; background: var(--hair-strong); }
.w-vn { color: var(--ink-3); letter-spacing: 0.12em; }
.w-visit {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-top: 10px;
  font: 400 12px/1.2 var(--mono); letter-spacing: 0.04em; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: text-decoration-color 0.25s ease;
}
.w-visit:hover { text-decoration-color: var(--amber); }
.w-visit:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.w-visit-arrow { color: var(--ink-2); }
.w-wip { display: inline-flex; align-items: center; min-height: 32px; margin: 10px 0 0; font: 400 12px/1.2 var(--mono); letter-spacing: 0.04em; color: var(--ink-2); }

/* ---------- layout a: one row of five ---------- */
[data-layout='a'] .w-list { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 28px); }
@media (max-width: 1180px) {
  [data-layout='a'] .w-list { display: flex; flex-wrap: wrap; justify-content: center; }
  [data-layout='a'] .w-item { flex: 0 0 calc((100% - 2 * clamp(16px, 1.8vw, 28px)) / 3); }
}
@media (max-width: 640px) {
  [data-layout='a'] .w-list {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 4px 16px 8px; margin: 0 -16px;
    scrollbar-width: thin; gap: 14px;
  }
  [data-layout='a'] .w-item { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ---------- layout b: a fanned stack of sheets (the owner's choice, round 3) ----------
   The stack fans around the active window (work.js sets --z by distance and is-after): every covered window shows its
   outer side, and its address is drawn on that side of its bar, so each site's name reads. The fan stays --edge inside
   the scroller, so a tilted corner is never cut. The words of the active project (name, label, verbs, Visit) sit under
   its own window, not at the far ends of the row. */
/* --edge: what the outer windows' tilt (4.8 deg about the bottom middle) swings past their box, plus a ring's room */
[data-layout='b'] { --ww: 34%; --lift: 56px; --edge: calc(var(--ww) * 0.056 + 10px); --mw: max(var(--ww), 40rem); }
[data-layout='b'] .w-list { padding-top: calc(var(--ww) * 0.625 + var(--w-bar-h) + var(--lift)); padding-bottom: 104px; }
[data-layout='b'] .w-item { position: absolute; inset: 0; pointer-events: none; z-index: var(--z, calc(10 - var(--i))); }
[data-layout='b'] .w-item.is-active { z-index: 30; }
[data-layout='b'] .w-item {
  --mid: calc((var(--n) - 1) / 2);
  --off: calc(var(--i) - var(--mid));
  --x: calc(var(--edge) + var(--i) * (100% - var(--ww) - 2 * var(--edge)) / (var(--n) - 1));
}
[data-layout='b'] .w-win {
  position: absolute; top: calc(var(--lift) * 0.6); width: var(--ww); left: var(--x);
  pointer-events: auto;
  transform: translateY(calc(max(var(--off), var(--off) * -1) * 9px)) rotate(calc(var(--off) * 2.4deg));
  transform-origin: 50% 100%;
  transition: transform 0.3s var(--w-ease), border-color 0.2s ease;   /* round 3: 0.5 s before */
}
[data-layout='b'] .is-active > .w-win { transform: translateY(calc(var(--lift) * -0.55)) rotate(0deg); }
[data-layout='b'] .is-after > .w-win .w-bar { justify-content: flex-end; }
[data-layout='b'] .w-meta {
  position: absolute; bottom: 0; width: var(--mw); left: clamp(var(--edge), var(--x), calc(100% - var(--mw) - var(--edge)));
  padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: baseline;
  opacity: 0; pointer-events: none; transition: opacity 0.18s ease;   /* 0.3 s before */
}
/* row 1: the name, Visit on the right; row 2: the label, the verbs under Visit */
[data-layout='b'] .w-meta .w-name { grid-column: 1; grid-row: 1; font-size: clamp(24px, 2vw, 32px); white-space: nowrap; }
[data-layout='b'] .w-meta .w-label { grid-column: 1; grid-row: 2; }
[data-layout='b'] .w-meta .w-verbs { grid-column: 2; grid-row: 2; justify-self: end; align-self: end; margin: 0; }
[data-layout='b'] .w-meta .w-visit, [data-layout='b'] .w-meta .w-wip { grid-column: 2; grid-row: 1; justify-self: end; margin: 0; white-space: nowrap; }
[data-layout='b'] .is-active > .w-meta, [data-layout='b'] .w-meta:focus-within { opacity: 1; pointer-events: auto; }
@media (max-width: 640px) {
  [data-layout='b'] { --ww: 66%; --lift: 40px; --edge: 12px; --mw: 100%; }
  /* the covered windows show 30 px each: too little for an address, so only the active window names its site */
  [data-layout='b'] .w-item:not(.is-active) :is(.w-host, .w-plan-name, .w-plan-label) { visibility: hidden; }
  [data-layout='b'] .w-item:not(.is-active) .w-plan::before { visibility: hidden; }
  [data-layout='b'] .w-list { padding-bottom: 104px; }
  [data-layout='b'] .w-win { transform: translateY(calc(max(var(--off), var(--off) * -1) * 5px)) rotate(calc(var(--off) * 1.6deg)); }
  /* the words under the active window on a phone: the name, the label, then the verbs and Visit on one row (the section has to
     fit between the top bar and the rail without scrolling at 390 x 670, so the swipe on the fan moves the stop) */
  [data-layout='b'] .w-meta { left: 0; grid-template-columns: minmax(0, 1fr) auto; row-gap: 0; column-gap: 12px; align-items: center; }
  [data-layout='b'] .w-meta .w-name { white-space: normal; grid-column: 1 / -1 !important; grid-row: auto !important; }
  [data-layout='b'] .w-meta .w-label { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 4px; }
  [data-layout='b'] .w-meta .w-verbs { grid-column: 1 !important; grid-row: auto !important; margin-top: 8px; justify-self: start; align-self: center; }
  [data-layout='b'] .w-meta :is(.w-visit, .w-wip) { grid-column: 2 !important; grid-row: auto !important; margin-top: 8px; justify-self: end; }
}
@media (max-width: 640px) and (pointer: coarse) { [data-layout='b'] .w-list { padding-bottom: 138px; } }

/* ---------- layout c: an index on the left, one large window on the right ---------- */
[data-layout='c'] { --ww: 60%; }
[data-layout='c'] .w-list { min-height: calc(var(--ww) * 0.625 + var(--w-bar-h) + 2px); }
[data-layout='c'] .w-item { width: calc(100% - var(--ww) - clamp(24px, 3vw, 48px)); border-top: 1px solid oklch(0.955 0.004 95 / 0.16); }
[data-layout='c'] .w-item:last-child { border-bottom: 1px solid oklch(0.955 0.004 95 / 0.16); }
[data-layout='c'] .w-win {
  position: absolute; right: 0; top: 0; width: var(--ww);
  opacity: 0; transition: opacity 0.21s ease, border-color 0.2s ease;   /* 0.35 s before */
}
[data-layout='c'] .is-active > .w-win { opacity: 1; z-index: 2; }
[data-layout='c'] .w-meta {
  position: relative; padding: 14px 0 12px 22px;
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline;
  cursor: default; transition: background-color 0.25s ease;
}
[data-layout='c'] .w-meta::before {
  content: ''; position: absolute; left: 0; top: 22px; width: 10px; height: 1px; background: var(--hair);
  transition: width 0.3s var(--w-ease), background-color 0.3s ease;
}
[data-layout='c'] .is-active > .w-meta::before { width: 14px; background: var(--amber); }
[data-layout='c'] .w-meta .w-name { grid-column: 1; }
[data-layout='c'] .w-meta .w-label { grid-column: 1; }
[data-layout='c'] .w-meta .w-verbs { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
[data-layout='c'] .w-meta .w-visit, [data-layout='c'] .w-meta .w-wip { grid-column: 1 / -1; margin-top: 4px; }
[data-layout='c'] .w-item:not(.is-active) .w-name { color: var(--ink-2); }
@media (max-width: 640px) {
  [data-layout='c'] { --ww: 100%; }
  [data-layout='c'] .w-list { min-height: 0; padding-top: calc(62.5% + var(--w-bar-h) + 22px); }
  [data-layout='c'] .w-item { width: 100%; }
}

/* ---------- the case ---------- */
html.w-locked { overflow: hidden; }
.w-case {
  width: min(1240px, calc(100vw - 2 * var(--gut))); max-width: none; max-height: calc(100dvh - 2 * var(--gut));
  margin: auto; padding: 0; border: 1px solid var(--hair); border-radius: 4px;
  background: var(--ground); color: var(--ink); overflow: auto; overscroll-behavior: contain; touch-action: pan-y;
}
.w-case::backdrop { background: oklch(0.1 0.003 95 / 0.82); }
/* round 3, faster: open 0.19 s (0.32 before), the backdrop fades with it (it cut in before); close fades 0.12 s (it cut
   out before; work.js CLOSE_MS); a swap between projects 0.18 s (0.3 before) */
.w-case[open] { animation: w-in 0.19s var(--w-ease, ease) both; }
.w-case[open]::backdrop { animation: w-fade 0.19s ease both; }
.w-case[open].is-out { animation: w-out 0.12s ease both; pointer-events: none; }
.w-case[open].is-out::backdrop { animation: w-fade-out 0.12s ease both; }
.w-case.is-swap .w-case-body { animation: w-swap 0.18s ease both; }
@keyframes w-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes w-out { to { opacity: 0; transform: translateY(6px); } }
@keyframes w-fade { from { opacity: 0; } }
@keyframes w-fade-out { to { opacity: 0; } }
@keyframes w-swap { from { opacity: 0.25; } }
.w-case-top {
  position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center;
  padding: 10px clamp(14px, 2vw, 24px); background: var(--ground); border-bottom: 1px solid oklch(0.955 0.004 95 / 0.14);
}
.w-case-steps { display: flex; gap: 6px; }
.w-case-step, .w-case-close {
  min-width: 40px; min-height: 36px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 2px;
  background: none; color: var(--ink); cursor: pointer;
  font: 400 12px/1 var(--mono); letter-spacing: 0.12em;
}
.w-case-close { text-transform: uppercase; }
.w-case-step:hover, .w-case-close:hover { border-color: var(--hair-strong); }
.w-case-step:focus-visible, .w-case-close:focus-visible, .w-scroll:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.w-case-body {
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); gap: clamp(20px, 3vw, 44px);
  padding: clamp(16px, 2.4vw, 32px) clamp(14px, 2.4vw, 32px) clamp(20px, 3vw, 36px);
}
.w-case-win { border: 1px solid var(--hair); border-radius: 3px; overflow: hidden; background: var(--w-frame); align-self: start; }
.w-scroll {
  height: min(70dvh, 640px); overflow-y: auto; overscroll-behavior: contain; position: relative;
  background: oklch(0.24 0.004 95); scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; touch-action: pan-y;
}
.w-full { display: block; width: 100%; height: auto; }
.is-wip .w-scroll { height: auto; aspect-ratio: 16 / 10; overflow: hidden; }
.w-case-name { margin: 8px 0 0; font: italic 380 clamp(32px, 3.4vw, 52px)/1 var(--serif); letter-spacing: -0.015em; }
.w-case-line { margin: 14px 0 0; font: 400 clamp(17px, 1.3vw, 19px)/1.42 var(--serif); color: var(--ink); max-width: 30em; }
.w-did { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid oklch(0.955 0.004 95 / 0.14); }
.w-did li { padding: 9px 0; border-bottom: 1px solid oklch(0.955 0.004 95 / 0.14); font: 400 15.5px/1.35 var(--serif); color: var(--ink-2); }
.w-case-verbs .w-verbs { margin-top: 16px; }
.w-case-link .w-visit { margin-top: 14px; font-size: 13px; }
.w-phone {
  width: 124px; margin-top: 22px; padding: 7px; border: 1px solid var(--hair-strong); border-radius: 22px;
}
.w-phone img { display: block; width: 100%; height: auto; border-radius: 15px; }
@media (max-width: 760px) {
  .w-case { width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
  .w-case-body { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .w-scroll { height: 56dvh; }
  .w-phone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .w-root *, .w-case, .w-case * { transition: none !important; animation: none !important; }
}
/* Contact form. One column, at most 34rem. Shared tokens from site/tokens.css; night tones only. *//* Shared tokens of the site: the same values as fjord/scene/style.css (keep the two in step until the scene imports this file). *//* newsreader-vietnamese-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-vietnamese-wght-normal-Czsa-EzN.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-ext-wght-normal-C-3rgBeH.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-wght-normal-CCVVNp6i.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* newsreader-vietnamese-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-vietnamese-wght-italic-xAqemagA.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-ext-wght-italic-DFS986qL.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-wght-italic-Bxi8ein9.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ibm-plex-mono-cyrillic-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ibm-plex-mono-cyrillic-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --ground: oklch(0.155 0.004 95);
  --ink: oklch(0.955 0.004 95);
  --ink-2: oklch(0.85 0.004 95);
  --ink-3: oklch(0.74 0.004 95);
  --hair: oklch(0.955 0.004 95 / 0.4);
  --hair-strong: oklch(0.955 0.004 95 / 0.88);
  --shadow: oklch(0.1 0.003 95 / 0.8);
  --amber: oklch(0.76 0.15 70);
  --night-sky: oklch(0.32 0.005 250);
  --night-ground: oklch(0.21 0.002 95);
  --serif: 'Newsreader Variable', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 2.6vw, 36px);
  --pad: clamp(18px, 2.4vw, 34px);
  color-scheme: dark;
}
.contact {
  /* local tones: solid values so contrast is fixed (checked in NOTES.md) */
  --ct-field: oklch(0.185 0.003 95);
  --ct-line: oklch(0.6 0.004 95);
  --ct-line-hover: oklch(0.75 0.004 95);
  --ct-gap: clamp(22px, 3.2vh, 30px);
  max-width: 34rem;
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}
.contact *, .contact *::before, .contact *::after { box-sizing: border-box; }
.contact [hidden] { display: none !important; }
.contact .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact :focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.ct-form { display: flex; flex-direction: column; gap: var(--ct-gap); margin: 0; }

/* ---------- labels, hints, errors ---------- */
.ct-field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-label {
  display: flex; align-items: baseline; gap: 12px; padding: 0;
  font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.ct-opt { font-weight: 400; letter-spacing: 0.08em; text-transform: none; color: var(--ink-3); }
.ct-hint { margin: -2px 0 2px; font: italic 400 15.5px/1.4 var(--serif); color: var(--ink-2); }
.ct-err { margin: 2px 0 0; font: 400 15.5px/1.4 var(--serif); color: var(--amber); }

/* ---------- text inputs ---------- */
.ct-input {
  width: 100%; min-height: 50px; margin: 0; padding: 12px 14px;
  font: 400 18px/1.45 var(--serif); color: var(--ink);
  background: var(--ct-field); border: 1px solid var(--ct-line); border-radius: 2px;
  caret-color: var(--amber);
  transition: border-color 0.18s ease;
}
.ct-input:hover { border-color: var(--ct-line-hover); }
.ct-input:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.ct-input[aria-invalid='true'] { border-color: var(--amber); }
.ct-input::placeholder { color: var(--ink-3); }
.ct-input:-webkit-autofill,
.ct-input:-webkit-autofill:hover,
.ct-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--amber);
  box-shadow: inset 0 0 0 100px var(--ct-field); /* paints over the browser autofill fill, not a shadow */
  transition: background-color 9999s ease 0s;
}
textarea.ct-input {
  display: block; resize: none; overflow-y: auto;
  field-sizing: content; min-height: calc(4 * 1.45em + 26px); max-height: calc(14 * 1.45em + 26px);
}
.ct-js-grow textarea.ct-input { field-sizing: fixed; }

/* ---------- budget: a native select drawn as the text fields, with a chevron of two hairlines ---------- */
.ct-select-wrap { position: relative; }
.ct-select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.ct-select option { background: var(--ground); color: var(--ink); }
.ct-select-wrap::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
  border-right: 1px solid var(--ink-2); border-bottom: 1px solid var(--ink-2); transform: rotate(45deg);
}

/* ---------- needs: checkboxes styled as toggles ---------- */
.ct-needs .ct-label { margin-bottom: 8px; }
.ct-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px 8px 12px;
  border: 1px solid var(--ct-line); border-radius: 2px; background: var(--ct-field);
  font: 400 16.5px/1.25 var(--serif); color: var(--ink); cursor: pointer; user-select: none;
  transition: border-color 0.18s ease;
}
.ct-toggle:hover { border-color: var(--ct-line-hover); }
.ct-toggle-input {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0;
  width: 28px; height: 16px; border: 1px solid var(--ink-3); border-radius: 8px; background: transparent; cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.ct-toggle-input::before {
  content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ink-3); transition: transform 0.18s ease, background-color 0.18s ease;
}
.ct-toggle-input:checked { background: var(--amber); border-color: var(--amber); }
.ct-toggle-input:checked::before { transform: translateX(12px); background: var(--ground); }
.ct-toggle:has(.ct-toggle-input:checked) { border-color: var(--amber); }
.ct-toggle-input:focus-visible { outline: none; }
.ct-toggle:has(.ct-toggle-input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- honeypot and the Turnstile slot ---------- */
.ct-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ct-turnstile:empty { display: none; }
.ct-turnstile { min-height: 65px; }

/* ---------- summary and failure: a rule on the left, text beside it ---------- */
.ct-summary, .ct-failure {
  padding: 4px 0 4px 18px; border-left: 2px solid var(--amber);
  font: 400 17px/1.45 var(--serif); color: var(--ink);
}
/* summary, failure and success take focus only to be read; the amber rule already marks them */
.ct-summary:focus, .ct-failure:focus, .ct-success:focus { outline: none; }
.ct-summary-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ct-summary-field { font: 500 11.5px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-right: 6px; }
.ct-failure p { margin: 0; }
.ct-failure-title { font: italic 420 21px/1.3 var(--serif); margin-bottom: 4px !important; }
.ct-failure-line { color: var(--ink-2); }
.ct-failure-mail a { color: var(--ink); }

/* ---------- actions ---------- */
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.ct-submit {
  display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 26px;
  font: 500 12.5px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ground); background: var(--amber); border: 1px solid var(--amber); border-radius: 2px; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.ct-submit:hover { background: oklch(0.82 0.13 72); }
.ct-submit[aria-disabled='true'] { cursor: progress; background: var(--ct-field); color: var(--ink-2); border-color: var(--ct-line); }
.ct-submit[aria-disabled='true']::after {
  content: ''; width: 26px; height: 1px; background: var(--ink-2); transform-origin: left center;
  animation: ct-wait 1.4s ease-in-out infinite;
}
@keyframes ct-wait { 0%, 100% { transform: scaleX(0.25); opacity: 0.5; } 50% { transform: scaleX(1); opacity: 1; } }
.ct-privacy { margin: 0; flex: 1 1 14rem; font: italic 400 15.5px/1.4 var(--serif); color: var(--ink-2); }
.ct-privacy a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
.ct-privacy a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- success ---------- */
.ct-success { padding: 6px 0 6px 22px; border-left: 2px solid var(--amber); }
.ct-success-title { margin: 0 0 10px; font: italic 360 clamp(36px, 5vw, 56px)/1 var(--serif); letter-spacing: -0.018em; }
.ct-success-line { margin: 0; font: 400 19px/1.45 var(--serif); color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .contact *, .contact *::before, .contact *::after { transition: none !important; animation: none !important; }
  .ct-submit[aria-disabled='true']::after { transform: none; opacity: 1; }
}
/* Services: a price list on the night frame, set like a carte. The shell's language: Newsreader for names and prices,
   IBM Plex Mono for the verb that opens each group, hairlines only where a group starts (no cards, no icons, no boxed
   buttons). The ask action is a quiet arrow at the end of the row; the whole row is its target. Tokens: site/tokens.css. *//* Shared tokens of the site: the same values as fjord/scene/style.css (keep the two in step until the scene imports this file). *//* newsreader-vietnamese-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-vietnamese-wght-normal-Czsa-EzN.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-ext-wght-normal-C-3rgBeH.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-wght-normal-CCVVNp6i.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* newsreader-vietnamese-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-vietnamese-wght-italic-xAqemagA.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-ext-wght-italic-DFS986qL.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* newsreader-latin-wght-italic */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url(/assets/newsreader-latin-wght-italic-Bxi8ein9.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ibm-plex-mono-cyrillic-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ibm-plex-mono-cyrillic-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* ibm-plex-mono-cyrillic-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* ibm-plex-mono-vietnamese-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2) format('woff2'), url(/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* ibm-plex-mono-latin-ext-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff) format('woff');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ibm-plex-mono-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff) format('woff');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --ground: oklch(0.155 0.004 95);
  --ink: oklch(0.955 0.004 95);
  --ink-2: oklch(0.85 0.004 95);
  --ink-3: oklch(0.74 0.004 95);
  --hair: oklch(0.955 0.004 95 / 0.4);
  --hair-strong: oklch(0.955 0.004 95 / 0.88);
  --shadow: oklch(0.1 0.003 95 / 0.8);
  --amber: oklch(0.76 0.15 70);
  --night-sky: oklch(0.32 0.005 250);
  --night-ground: oklch(0.21 0.002 95);
  --serif: 'Newsreader Variable', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gut: clamp(16px, 2.6vw, 36px);
  --pad: clamp(18px, 2.4vw, 34px);
  color-scheme: dark;
}
.services { color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
.services *, .services *::before, .services *::after { box-sizing: border-box; }
.sv-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hair); }
.sv-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'verb verb' 'name price' 'text act';
  column-gap: 18px; align-items: baseline; padding: 10px 0 9px; border-top: 1px solid transparent; cursor: pointer;
}
.sv-row.sv-first { border-top-color: var(--hair); }
/* the verb that opens a group: the same small capitals the shell uses for its labels */
.sv-verb {
  grid-area: verb; margin: 0 0 3px; font: 400 11px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); text-shadow: 0 1px 8px var(--shadow); white-space: nowrap;
}
.sv-name {
  grid-area: name; margin: 0; min-width: 0;
  font: 450 clamp(18px, 1.3vw, 21px)/1.2 var(--serif); letter-spacing: 0.002em; color: var(--ink);
  text-shadow: 0 1px 10px var(--shadow);
}
.sv-text { grid-area: text; min-width: 0; }
.sv-line { margin: 0; font: 400 15px/1.32 var(--serif); color: var(--ink-2); text-shadow: 0 1px 10px var(--shadow); }
/* what a service includes: secondary, small; each item starts with a capital, so a gap is the only separator */
.sv-inc {
  list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 1.1em;
  font: italic 400 13px/1.32 var(--serif); color: var(--ink-3); text-shadow: 0 1px 8px var(--shadow);
}
.sv-price {
  grid-area: price; margin: 0; justify-self: end; text-align: right; white-space: nowrap;
  font: italic 400 14.5px/1.2 var(--serif); color: var(--ink-2); text-shadow: 0 1px 10px var(--shadow);
}
.sv-amount {
  font: normal 500 clamp(18px, 1.3vw, 21px)/1.2 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.005em;
}
.sv-act { grid-area: act; margin: 0; justify-self: end; align-self: center; }
/* the ask: an arrow, its words kept for readers that do not see it (and shown by the browser on hover, from title) */
.sv-ask {
  position: relative; display: inline-flex; align-items: center; justify-content: flex-end; min-width: 36px; min-height: 32px; padding: 0; cursor: pointer;
  background: none; border: 0; border-radius: 0; color: var(--ink-3);
  font: 400 15px/1 var(--mono); transition: color 0.18s ease;
}
.sv-ask-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sv-ask::after { content: '\2192'; display: block; transition: transform 0.18s ease; }
.sv-row:hover .sv-ask, .sv-ask:hover, .sv-ask:focus-visible { color: var(--amber); }
.sv-row:hover .sv-ask::after, .sv-ask:focus-visible::after { transform: translateX(4px); }
.sv-ask:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
/* under the list: the note, and the one invitation */
.sv-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; margin: 14px 0 0; }
.sv-note {
  margin: 0; max-width: 44em; font: italic 400 14.5px/1.4 var(--serif); color: var(--ink-2);
  text-shadow: 0 1px 10px var(--shadow);
}
.sv-write {
  flex: none; padding: 0 0 2px; cursor: pointer; background: none; border: 0; border-bottom: 1px solid var(--hair-strong);
  border-radius: 0; color: var(--ink); white-space: nowrap; font: 400 11px/1.5 var(--mono); letter-spacing: 0.14em;
  text-transform: uppercase; transition: color 0.18s ease, border-color 0.18s ease;
}
.sv-write::after { content: '\00a0\2192'; }
.sv-write:hover, .sv-write:focus-visible { color: var(--amber); border-bottom-color: var(--amber); }
.sv-write:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

/* wide: one line per row, the columns aligned down the list (subgrid): verb | name | line and includes | price | ask */
@media (min-width: 1100px) {
  .sv-list { display: grid; grid-template-columns: 8.25rem minmax(11rem, 19rem) minmax(0, 1fr) auto 36px; column-gap: clamp(18px, 2vw, 34px); }
  .sv-row {
    grid-column: 1 / -1; grid-template-columns: subgrid; grid-template-areas: 'verb name text price act';
    column-gap: inherit; align-items: baseline; padding: 7px 0 7px;
  }
  .sv-verb { margin: 0; }
  .sv-act { align-self: center; }
}
@media (min-width: 1100px) and (min-height: 1000px) {
  .sv-row { padding: 10px 0 9px; }
  .sv-inc { margin-top: 3px; }
}

/* phones: the verb, the name, the line and its includes, then the price with the arrow beside it; the list scrolls inside the stop */
@media (max-width: 640px) {
  .sv-row { grid-template-areas: 'verb verb' 'name name' 'text text' 'price act'; row-gap: 4px; padding: 12px 0 8px; align-items: center; }
  .sv-price { justify-self: start; text-align: left; }
  .sv-ask { min-width: 44px; min-height: 44px; }
  .sv-write { min-height: 44px; }
}
@media (pointer: coarse) { .sv-ask { min-width: 44px; min-height: 44px; } .sv-write { min-height: 44px; } }

@media (prefers-reduced-motion: reduce) {
  .services *, .services *::before, .services *::after { transition: none !important; }
}
