/* UMBRA STUDIO · two-person design/motion studio, KC Crossroads.
   Static-first: base styles render a normal stacked document.
   html.conductor (added by JS when motion is allowed) pins panels
   over the WebGL canvas and lets scroll drive the timeline.
   Monochrome + one shocking accent (#FF4D00). Syne over Fragment Mono.

   ── IDENTITY CALL ────────────────────────────────────────────────────────
   No photography. This studio sells generative motion, so the surface IS
   the portfolio; an archival frame here would be a stock plate behind a
   piece of work. Doctrine's other instruments carry the identity instead:
   noise and paper as real materials (§4), vignette / margin-of-safety /
   2x button gap (§7), and two motion themes repeated the whole way (§9).

   ── THE TWO MOTION THEMES (§9: pick two, repeat them the whole way down) ─
   THEME A — OCCLUSION TRANSIT. A hard edge crosses a form and covers it,
     always left to right, always the same 300ms cubic-bezier(.2,.7,.2,1).
     Instances: nav underline wipe · work-row limb bar · caps limb bar ·
     mark-glyph moon transit · contact-tel underline wipe · plain-toggle
     fill wipe · scroll-hint stroke. The eclipse, at chrome scale.
   THEME B — CORONA BLOOM. Light swells at the edge of a dark form and
     settles; never a colour change alone, always a glow with it.
     Instances: hero eclipse ambient breath · contact CTA · contact email ·
     work-row number · caps term · for-sale button · mark glyph ·
     every :focus-visible. Both themes are inert under reduced motion.
   The conductor's scene pacing is the third, larger input and is NOT
   touched by this file. */

:root {
  --bg: #0b0b0c;
  --bg2: #141416;
  --ink: #edede9;
  --mut: #8e8e88;
  --hot: #ff4d00;
  --hot-dk: #b32d00;   /* accent twin that passes 4.5:1 on paper */
  --paper: #efece5;
  --paper-ink: #141412;
  --banner-h: 34px;   /* real height set by JS in conductor mode */
  --mono: 'Fragment Mono', ui-monospace, 'Cascadia Mono', monospace;
  --disp: 'Syne', 'Arial Black', sans-serif;

  /* the two themes share one curve and one glow so they read as authored */
  --transit: 300ms cubic-bezier(.2,.7,.2,1);   /* THEME A */
  --bloom: 0 0 26px rgba(255,77,0,.5);         /* THEME B */
  --bloom-dk: 0 0 20px rgba(179,45,0,.35);     /* THEME B, on paper */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.conductor { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--hot); color: #0b0b0c; }

/* ---------- materials, not fills (identity-first §4 / §7) ----------
   Two surfaces only, per visual-interest.md's ceiling: grain over the whole
   ground, and a vignette pulling the eye to centre. Both are fixed, inert,
   and sit at z-index 1 — above the WebGL canvas, below every panel (z 2),
   so the conductor's own layering is untouched. Grain is monochrome and
   soft-light, so it darkens the dark ground and tooths the paper band
   without moving either one's hue. Measured: it costs no contrast on the
   dark ground and adds a little on paper. */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 92% at 50% 46%,
    rgba(0,0,0,0) 42%, rgba(0,0,0,.16) 74%, rgba(0,0,0,.3) 100%);
}
@media (forced-colors: active) { body::before, body::after { display: none; } }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
.light :focus-visible, .panel-studio :focus-visible { outline-color: var(--hot-dk); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- skip link + plain-view toggle (visible on focus) ---------- */
.skip-link {
  position: fixed; top: calc(var(--banner-h) + 10px); left: 16px; transform: translateY(-500%);
  z-index: 200; background: var(--ink); color: #0b0b0c;
  font-family: var(--mono); font-size: 12px; padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus-visible { transform: none; }

.plain-toggle {
  position: fixed; top: calc(var(--banner-h) + 10px); left: 50%; transform: translate(-50%, -500%);
  z-index: 200; background: var(--hot); color: #0b0b0c;
  font-family: var(--mono); font-size: 12px; padding: 10px 16px;
  text-decoration: none;
}
.plain-toggle:focus-visible { transform: translate(-50%, 0); }

/* ---------- for-sale banner ---------- */
.forsale {
  position: relative; z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
  background: #000; color: #b9b9b2;
  border-bottom: 1px solid rgba(255,77,0,.55);
  font-size: 11.5px; padding: 7px 16px; line-height: 1.5;
}
.conductor .forsale { position: fixed; top: 0; left: 0; right: 0; }
.forsale p { margin: 0; }
.forsale strong { color: #fff; }
.forsale a {
  color: #0b0b0c; background: var(--hot); text-decoration: none;
  padding: 2px 10px; font-size: 11px; white-space: nowrap;
}
.forsale a { transition: background-color var(--transit), box-shadow var(--transit); }
.forsale a:hover, .forsale a:focus-visible { background: #ff6a26; box-shadow: var(--bloom); }  /* THEME B */

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg); display: none;
  align-items: flex-end; padding: 6vmin;
}
.conductor #loader { display: flex; }
#loader.done { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }
.loader-ecl {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 24vmin; height: 24vmin;
}
.ecl-sun {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--hot);
  box-shadow: 0 0 34px rgba(255,77,0,.35), inset 0 0 24px rgba(255,77,0,.2);
  display: block;
}
.ecl-moon {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(237,237,233,.22);
  display: block; transform: translateX(-115%);
}
#loader.done .ecl-sun { box-shadow: 0 0 70px rgba(255,77,0,.8), inset 0 0 34px rgba(255,77,0,.4); }
.loader-pct {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(64px, 17vw, 190px); line-height: .85;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 14px;
}
.loader-pct i {
  font-family: var(--mono); font-style: normal; font-size: 11px;
  letter-spacing: .28em; color: var(--mut);
}
.loader-log {
  position: absolute; right: 6vmin; bottom: 6vmin; text-align: right;
  display: grid; gap: 4px; font-size: 11px; color: var(--mut);
  text-transform: uppercase; letter-spacing: .2em;
}
.loader-log span::before { content: '· '; }
.loader-log span.ok { color: var(--hot); }
.loader-log span.ok::before { content: '+ '; }

/* ---------- canvas + grid overlay ---------- */
#gl { display: none; }
.conductor #gl {
  display: block; position: fixed; inset: 0;
  width: 100%; height: 100%; z-index: 0;
}
#gridlayer {
  display: none; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(to right, transparent 0 105px, rgba(142,142,136,.10) 105px 106px),
    repeating-linear-gradient(to bottom, transparent 0 105px, rgba(142,142,136,.10) 105px 106px);
  mix-blend-mode: screen;
}
.conductor #gridlayer.on { display: block; }

/* ---------- HUD chrome ---------- */
.hud-top {
  position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px;
}
.mark {
  font-family: var(--disp); font-weight: 800; font-size: 19px;
  letter-spacing: .22em; text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.mark-glyph {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid var(--hot); position: relative; display: inline-block;
  transition: box-shadow var(--transit);            /* THEME B */
}
.mark-glyph::after {
  content: ''; position: absolute; inset: -1.5px; border-radius: 50%;
  background: var(--bg); transform: translateX(30%);
  transition: transform var(--transit);             /* THEME A */
}
/* the mark performs the eclipse: the moon walks on, the corona swells */
.mark:hover .mark-glyph, .mark:focus-visible .mark-glyph { box-shadow: var(--bloom); }
.mark:hover .mark-glyph::after, .mark:focus-visible .mark-glyph::after { transform: translateX(72%); }
html.on-light .mark:hover .mark-glyph { box-shadow: var(--bloom-dk); }
html:not(.conductor) .mark-glyph::after,
html.on-light .mark-glyph::after { background: transparent; border: 0; }
.hud-top nav { display: flex; gap: 30px; }
.hud-top nav a, .contact-cta {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; padding: 10px 2px; position: relative;
  white-space: nowrap;
}
@media (max-width: 420px) { .contact-cta { font-size: 10.5px; letter-spacing: .12em; } }
.hud-top nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 6px;
  height: 1px; background: var(--hot); transition: right var(--transit);  /* THEME A */
}
.hud-top nav a:hover::after, .hud-top nav a:focus-visible::after { right: 0; }
.contact-cta { color: var(--hot); transition: background-color var(--transit), color var(--transit), box-shadow var(--transit); }
.contact-cta:hover, .contact-cta:focus-visible { background: var(--hot); color: #0b0b0c; box-shadow: var(--bloom); }  /* THEME B */

/* light-section chrome flip */
html.on-light .hud-top, html.on-light .rail, html.on-light .readout,
html.on-light .console { color: var(--paper-ink); }
html.on-light .mark-glyph { border-color: var(--hot-dk); }
html.on-light .contact-cta { color: var(--hot-dk); }
html.on-light .contact-cta:hover { background: var(--hot-dk); color: var(--paper); }

/* ---------- left rail ---------- */
.rail {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%);
  z-index: 20; display: none; flex-direction: column; gap: 14px;
}
.conductor .rail { display: flex; }
.rail a {
  font-size: 10px; letter-spacing: .22em; text-decoration: none;
  color: var(--mut); display: flex; gap: 8px; padding: 4px 2px;
  transition: color .3s ease;
}
.rail a i { font-style: normal; color: currentColor; opacity: .55; }
.rail a.active { color: var(--hot); }
html.on-light .rail a { color: #5c5c55; }
html.on-light .rail a.active { color: var(--hot-dk); }
.rail-track {
  position: absolute; left: -12px; top: 0; bottom: 0; width: 1px;
  background: rgba(142,142,136,.25);
}
.rail-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--hot); transform-origin: top; transform: scaleY(0);
}
html.on-light .rail-fill { background: var(--hot-dk); }

/* ---------- readout + console ---------- */
.readout {
  position: fixed; left: 26px; bottom: 20px; z-index: 20;
  display: none; gap: 18px; font-size: 10px; letter-spacing: .16em; color: var(--mut);
}
.conductor .readout { display: flex; }
html.on-light .readout { color: #5c5c55; }
.console {
  position: fixed; right: 26px; bottom: 20px; z-index: 20;
  display: none; align-items: center; gap: 16px;
  font-size: 10px; letter-spacing: .16em; color: var(--mut);
  border: 1px solid rgba(142,142,136,.3); padding: 10px 14px;
  background: rgba(11,11,12,.55); backdrop-filter: blur(4px);
}
.conductor .console { display: flex; }
html.on-light .console { background: rgba(239,236,229,.6); border-color: rgba(20,20,18,.3); color: #45453f; }
.console-title { color: var(--hot); }
html.on-light .console-title { color: var(--hot-dk); }
.console label { display: flex; align-items: center; gap: 6px; cursor: pointer; min-height: 24px; }
.console input[type=range] { width: 90px; height: 24px; accent-color: var(--hot); }
.console input[type=checkbox] { accent-color: var(--hot); width: 15px; height: 15px; }
@media (pointer: coarse), (max-width: 760px) {
  .console input[type=checkbox] { width: 24px; height: 24px; }
  .console label { min-height: 32px; }
}
.console output { font-variant-numeric: tabular-nums; }

/* ---------- scroll spacer (unused since the wheel-accumulator conductor;
   igloo model: nothing scrolls, a wheel listener owns the timeline) ---------- */
.spacer { display: none; }
html.conductor, html.conductor body { overflow: hidden; height: 100%; overscroll-behavior: none; }

/* ---------- panels: static-first ---------- */
.panel {
  position: relative; min-height: 100vh;
  padding: 120px 26px 90px; max-width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
}
.conductor .panel {
  position: fixed; inset: 0; max-width: none;
  padding: calc(var(--banner-h) + 86px) max(6vw, 64px) 100px;
  opacity: 0; visibility: hidden; z-index: 2;
  will-change: opacity;
  /* safety net: a panel taller than the viewport scrolls internally,
     then chains back to the timeline */
  overflow-y: auto;
  /* center via auto margins, not justify-content: center — centered flex
     content that overflows gets clipped above the top, unreachably */
  justify-content: flex-start;
}
.conductor .panel::before { content: ''; margin-top: auto; }
.conductor .panel::after { content: ''; margin-bottom: auto; }
@media (min-width: 761px) {
  /* keep panel text clear of the left rail */
  .conductor .panel { padding-left: clamp(150px, 12vw, 210px); }
  .conductor .hero-foot { left: clamp(150px, 12vw, 210px); }
}

.kicker { font-size: 10px; letter-spacing: .3em; color: inherit; opacity: .6; margin-bottom: 22px; text-transform: uppercase; }

/* ---------- hero ---------- */
.hero-title {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(44px, 12vw, 152px); line-height: .9; letter-spacing: .01em;
  position: relative; z-index: 1;
}
/* in conductor mode the canvas draws the wordmark; the h1 becomes sr-only
   (class added by app.js so the plain document keeps its visible h1) */
.plain-eclipse { display: none; }
html:not(.conductor) .plain-eclipse {
  display: block; position: absolute; z-index: 0;
  right: 8%; top: 14%;
  width: clamp(180px, 30vw, 380px); height: clamp(180px, 30vw, 380px);
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(237,237,233,.18);
  box-shadow: 0 0 60px rgba(255,77,0,.42), 0 0 160px rgba(255,77,0,.16),
              inset -14px 0 40px rgba(255,77,0,.22);
  animation: corona 9s ease-in-out infinite;   /* THEME B, at rest */
}
@keyframes corona {
  0%, 100% { box-shadow: 0 0 60px rgba(255,77,0,.42), 0 0 160px rgba(255,77,0,.16),
                         inset -14px 0 40px rgba(255,77,0,.22); }
  50%      { box-shadow: 0 0 88px rgba(255,77,0,.58), 0 0 210px rgba(255,77,0,.22),
                         inset -18px 0 52px rgba(255,77,0,.3); }
}
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-top: 44px; position: relative; z-index: 1;
}
.conductor .hero-foot { position: absolute; left: max(6vw,64px); right: max(6vw,64px); bottom: 11vh; margin: 0; }
.hero-tag { font-size: 13px; max-width: 40ch; }
.hero-meta { font-size: 10px; letter-spacing: .2em; color: var(--mut); }
/* the hint sits dead centre-bottom, right in the eclipse's corona, where
   --mut measured 3.89:1 against the brightest pixel behind it. --ink plus a
   scrim takes it to ~10:1 without leaving the monochrome palette. */
.scroll-hint {
  display: none; position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%);
  font-size: 9px; letter-spacing: .3em; color: var(--ink);
  text-shadow: 0 0 8px rgba(11,11,12,.9), 0 0 2px rgba(11,11,12,.9);
  flex-direction: column; align-items: center; gap: 6px;
}
.conductor .scroll-hint { display: flex; }
.scroll-hint i {
  width: 1px; height: 34px; background: var(--ink); display: block;
  animation: hint 1.6s ease-in-out 3;
  transform-origin: top;
}
@keyframes hint { 0% {transform: scaleY(0)} 55% {transform: scaleY(1)} 100% {transform: scaleY(1); opacity: 0} }

/* ---------- works: index rows with live hover previews ---------- */
.works-list { list-style: none; width: 100%; }
.work-row {
  display: grid; align-items: baseline;
  grid-template-columns: 3.2em 1fr auto auto;
  gap: 8px 26px;
  padding: 22px 6px;
  border-top: 1px solid rgba(142,142,136,.28);
  position: relative;
  transition: background-color var(--transit);
}
/* THEME A — the shadow crosses the limb of each row, left to right.
   A 1px bar on the rule itself, so it can never touch the copy. */
.work-row::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--hot); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transit);
}
.work-row:hover::before, .work-row:focus-within::before { transform: scaleX(1); }
.work-row:hover .work-num { text-shadow: var(--bloom); }   /* THEME B */
.work-fig:empty { display: none; }
.works-list .work-row:last-child { border-bottom: 1px solid rgba(142,142,136,.28); }
.work-num {
  font-size: 11px; letter-spacing: .2em; color: var(--mut);
  transition: color .25s ease;
}
.work-title {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(19px, 3.6vw, 46px); line-height: 1;
  overflow-wrap: anywhere;
  transition: transform .3s ease, color .3s ease;
}
.work-fact { color: var(--mut); max-width: 52ch; margin-top: 8px; font-size: 12.5px; }
.work-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-self: center; }
.work-tags li {
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid rgba(142,142,136,.4); padding: 4px 8px; color: var(--mut);
}
.work-date { font-size: 11px; letter-spacing: .2em; color: var(--mut); }
.conductor .work-row { padding: 15px 6px; }
.conductor .work-title { font-size: clamp(19px, 3.2vw, 40px); }
.conductor .work-fact { margin-top: 5px; }
.conductor .panel-works { padding-top: calc(var(--banner-h) + 82px); padding-bottom: 70px; }
.conductor .work-row:hover { background: rgba(237,237,233,.045); }
.conductor .work-row:hover .work-num { color: var(--hot); }
.conductor .work-row:hover .work-title { transform: translateX(10px); }
.works-hint {
  display: none; margin-top: 26px; font-size: 9px; letter-spacing: .3em; color: var(--mut);
}
.conductor .works-hint { display: block; }
@media (pointer: coarse) { .conductor .works-hint { display: none; } }

/* plain mode: posters shown inline */
.work-fig { grid-column: 1 / -1; }
.work-fig img {
  width: min(300px, 70vw); height: auto; display: block;
  margin: 6px 0 12px; border: 1px solid rgba(142,142,136,.25);
}
.conductor .work-fig { display: none; }
/* conductor mode on touch: small inline thumbs instead of hover preview */
@media (pointer: coarse) {
  .conductor .work-fig { display: block; grid-column: 1 / -1; }
  .conductor .work-fig img { width: 120px; margin: 0 0 8px; }
}

/* the floating preview plate (conductor + fine pointer only) */
#preview { display: none; }
@media (pointer: fine) {
  .conductor #preview {
    display: block; position: fixed; z-index: 15; pointer-events: none;
    left: 0; top: 0; width: min(300px, 26vw);
    opacity: 0; will-change: transform, opacity;
  }
  .conductor #preview.on { opacity: 1; }
  #preview img { width: 100%; height: auto; display: block;
    border: 1px solid rgba(237,237,233,.3);
    box-shadow: 0 24px 60px rgba(0,0,0,.55); }
}

/* ---------- studio (light / the inversion) ---------- */
.panel-studio { background: var(--paper); color: var(--paper-ink); }
.conductor .panel-studio { background: transparent; padding-top: calc(var(--banner-h) + 62px); padding-bottom: 60px; }
.conductor .studio-title { font-size: clamp(34px, 6vw, 84px); }
.conductor .studio-cols { margin-top: 28px; gap: 30px; }
@media (min-width: 900px) { .conductor .studio-cols { gap: 56px; } }
.conductor .caps div { padding: 10px 0; }
.studio-title {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(38px, 7.4vw, 110px); line-height: .95; max-width: 12ch;
}
.studio-cols {
  display: grid; gap: 44px; margin-top: 40px; max-width: 980px;
}
@media (min-width: 900px) { .studio-cols { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.studio-who p { max-width: 50ch; font-size: 14px; }
.studio-who p + p { margin-top: 16px; }
.studio-who strong { font-weight: 700; }
.caps div {
  padding: 14px 0; border-top: 1px solid rgba(20,20,18,.25);
  position: relative;
}
.caps div::before {                                    /* THEME A */
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--hot-dk); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transit);
}
.caps div:hover::before { transform: scaleX(1); }
.caps dt {
  font-family: var(--disp); font-weight: 700; font-size: 17px;
  transition: text-shadow var(--transit);
}
.caps div:hover dt { text-shadow: var(--bloom-dk); }    /* THEME B */
.caps dd { color: #45453f; font-size: 12.5px; margin-top: 4px; }
.caps dd::before { content: none; }
.studio-glyph { width: 170px; margin-top: 44px; color: var(--paper-ink); opacity: .55; }
.conductor .studio-glyph { display: none; }

/* ---------- contact ---------- */
.contact-title {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(38px, 8.6vw, 118px); line-height: .9;
}
.contact-line { margin-top: 28px; max-width: 46ch; }
.contact-big { margin-top: 30px; }
.contact-big a {
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(20px, 3.4vw, 44px); color: var(--hot);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.contact-big a { transition: color var(--transit), text-shadow var(--transit); }
.contact-big a:hover, .contact-big a:focus-visible { color: #ff6a26; text-shadow: var(--bloom); }  /* THEME B */
.contact-tel { margin-top: 16px; color: var(--mut); font-size: 12.5px; }
.contact-tel a { color: var(--ink); position: relative; text-decoration: none; }
.contact-tel a::after {                                 /* THEME A */
  content: ''; position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 1px; background: var(--hot); transition: right var(--transit);
}
.contact-tel a:hover::after, .contact-tel a:focus-visible::after { right: 0; }
.site-foot a { position: relative; }
.site-foot { margin-top: 64px; color: var(--mut); font-size: 12px; max-width: 62ch; }
.conductor .site-foot { position: absolute; left: clamp(150px, 12vw, 210px); right: max(6vw,64px); bottom: 5vh; margin: 0; max-width: none; }
@media (min-width: 761px) { .conductor .site-foot { padding-right: 320px; } }
.site-foot a { color: var(--ink); }
.foot-legal { letter-spacing: .18em; font-size: 10px; margin-top: 10px; }

/* ---------- reticle cursor ---------- */
#reticle { display: none; }
@media (pointer: fine) {
  .conductor #reticle {
    display: block; position: fixed; z-index: 60; pointer-events: none;
    left: 0; top: 0;
    width: 30px; height: 30px; margin: -15px 0 0 -15px;
    border: 1px solid rgba(255,77,0,.6); border-radius: 50%;
    transition: border-color .3s ease, background-color .3s ease;
  }
  .conductor #reticle i {
    position: absolute; left: 50%; top: 50%; width: 3px; height: 3px;
    margin: -1.5px 0 0 -1.5px; background: var(--hot); display: block; border-radius: 50%;
  }
  .conductor #reticle.hot { border-color: var(--hot); background: rgba(255,77,0,.14); }
  html.on-light #reticle { border-color: rgba(179,45,0,.7); }
  html.on-light #reticle i { background: var(--hot-dk); }
}

/* ---------- static (plain) mode niceties ---------- */
/* Vertical rhythm, plain mode ONLY (conductor scene pacing untouched —
   editorial/portfolio genre per web-soul-solo/references/spacing.md):
   tight 0 (index glued to hero) · base 64px · grand 128px = 2x base,
   spent twice and co-fired with the width change: 128px of dark silence
   before the full-bleed paper inversion (#studio, the thesis), and 128px
   before #contact (the ask). Footer compresses to 0.75x and abuts. */
html:not(.conductor) { --u-tight: 0px; --u-base: 64px; --u-grand: 128px; }
html:not(.conductor) .panel {
  min-height: 0; justify-content: flex-start;
  padding: var(--u-base) 26px;
}
html:not(.conductor) .panel-hero {
  min-height: 100vh; justify-content: center;
  padding-top: 120px; padding-bottom: 0;
}
/* hero→index glued at a half beat: the work is the point, no throat-clearing */
html:not(.conductor) .panel-works { padding-top: 32px; padding-bottom: 96px; }
/* GRAND #1 lands here: 96px dark + 32px into the paper = 128 before the thesis,
   and the paper band breaks the 1100px column full-bleed (the chapter signal) */
html:not(.conductor) .panel-studio {
  max-width: none;
  /* identity-first §4: graph paper on the cream, a ruled surface rather
     than grain. Drawn under the grain layer, above nothing else. */
  background-image:
    repeating-linear-gradient(to right, transparent 0 31px, rgba(20,20,18,.075) 31px 32px),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(20,20,18,.075) 31px 32px);
  padding-top: 32px;
  padding-left: max(26px, calc((100vw - 1100px) / 2));
  padding-right: max(26px, calc((100vw - 1100px) / 2));
}
/* GRAND #2: studio bottom 64 + contact top 64 = 128 before the ask */
/* density zone: the work index runs a 32px micro-beat in plain mode */
html:not(.conductor) .work-row { padding: 16px 6px; }
/* the footer never floats: 0.75x, inside the closing section */
/* §7: a large heading already carries space below its baseline, so the ask
   sits at 2x the heading-to-subtext gap (28px) below the subtext — 64px,
   which is exactly --u-base, so the rhythm from spacing.md still holds. */
html:not(.conductor) .contact-big { margin-top: var(--u-base); }
html:not(.conductor) .site-foot { margin-top: 48px; }
html:not(.conductor) .panel { border-bottom: 1px solid rgba(142,142,136,.15); }
html:not(.conductor) .hud-top { position: static; padding: 24px 26px 0; }
html:not(.conductor) .plain-toggle {
  /* relative (not static) so the wipe below has a positioning context —
     which means the base rule's fixed offsets must be reset, or left:50%
     starts applying and shoves the button off the right edge. */
  position: relative; inset: auto; transform: none; display: inline-block;
  margin: 16px 26px 0; background: transparent; color: var(--hot);
  border: 1px solid var(--hot); text-decoration: none;
  overflow: hidden; z-index: 0;
  transition: color var(--transit), box-shadow var(--transit);
}
html:not(.conductor) .plain-toggle::before {   /* THEME A */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--hot); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transit);
}
html:not(.conductor) .plain-toggle:hover,
html:not(.conductor) .plain-toggle:focus-visible {
  color: #0b0b0c; box-shadow: var(--bloom);    /* THEME B */
}
html:not(.conductor) .plain-toggle:hover::before,
html:not(.conductor) .plain-toggle:focus-visible::before { transform: scaleX(1); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hud-top nav { display: none; }
  .rail { display: none !important; }
  .readout { display: none !important; }
  .conductor .panel { padding: calc(var(--banner-h) + 88px) 22px 80px; }
  .conductor .hero-foot { left: 22px; right: 22px; bottom: 13vh; }
  .conductor .site-foot { left: 22px; right: 22px; padding-right: 0; bottom: 14vh; }
  .console { right: 22px; bottom: 16px; gap: 10px; }
  label.console-fx { display: none; }
  .work-row { grid-template-columns: 2.4em 1fr auto; gap: 8px 14px; }
  .work-tags { display: none; }
  .forsale { font-size: 10.5px; gap: 8px; }
}

/* ---------- reduced motion: kill everything ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  /* both themes hold their rest state rather than snapping: the transit
     bars stay drawn where they belong and nothing blooms unbidden. */
  .work-row::before, .caps div::before { transform: scaleX(0); }
  .scroll-hint i { transform: scaleY(1); }
}
