:root {
  --bg: #000;
  --fg: #fff;
  --dim: #8a8a8a;
  --mint: #0FFAB7;
  --red: #FF3B6B;
  --mono: "Space Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
  /* OPTIMAL display cap: the widest "normal" screen (27–30" / 5K-scaled).
     Beyond this, O-mode images stop growing and center. Keep the two in sync. */
  --optw: 2560px;
  --optw-half: 1280px;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

#scene {
  position: fixed;
  inset: 0;
  display: block;
  touch-action: none;  /* never let the browser hijack a drag as scroll/swipe */
  /* electric red arrow */
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 1l16 11.5-7.6 1.2 3.8 7.6-3.4 1.7-3.7-7.8L4 20.5z" fill="%23FF3B6B" stroke="%231a0009" stroke-width="1.3"/></svg>') 4 1, auto;
}
/* grabbing: a red fist closes around the sphere */
#scene.dragging {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 26 26"><path d="M6 12a1.7 1.7 0 0 1 3.4 0a1.7 1.7 0 0 1 3.4 0a1.7 1.7 0 0 1 3.4 0a1.7 1.7 0 0 1 3.4 0v3.5a6.8 5.5 0 0 1 -13.6 0z" fill="%23FF3B6B" stroke="%231a0009" stroke-width="1.3"/></svg>') 13 12, grabbing;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 110% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 88%, rgba(0,0,0,0.8) 100%);
  z-index: 2;
}

.mono {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.dim { color: var(--dim); }

/* ===================== CHROME ===================== */

.chrome {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 28px;
  z-index: 10;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }

.chrome-top { top: 0; }
.chrome-bottom { bottom: 0; align-items: flex-end; }

.logo {
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  display: block;
  width: 40px;
  height: 40px;
}
.logo img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(15, 250, 183, 0.35));
  animation: glitch-base 3.4s infinite steps(1);
}

/* glitch layers: chromatic-shifted copies, sliced into jumping bands */
.logo::before,
.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("logo.svg?v=1") no-repeat center / contain;
  opacity: 0;
  pointer-events: none;
}
.logo::before { filter: hue-rotate(95deg) saturate(2) brightness(1.3); animation: glitch-a 3.4s infinite steps(1); }
.logo::after  { filter: hue-rotate(-70deg) saturate(2) brightness(1.2); animation: glitch-b 3.4s infinite steps(1); }

@keyframes glitch-a {
  0%, 100% { opacity: 0; clip-path: inset(0); transform: none; }
  6%   { opacity: .85; clip-path: inset(8% 0 72% 0);  transform: translate(-3px, 1px); }
  7.5% { opacity: .85; clip-path: inset(52% 0 28% 0); transform: translate(3px, -1px); }
  9%   { opacity: .85; clip-path: inset(78% 0 4% 0);  transform: translate(-2px, 0); }
  10.5%{ opacity: 0; clip-path: inset(0); transform: none; }
  58%  { opacity: .85; clip-path: inset(30% 0 52% 0); transform: translate(3px, 1px); }
  59.5%{ opacity: .85; clip-path: inset(65% 0 12% 0); transform: translate(-3px, -1px); }
  61%  { opacity: 0; clip-path: inset(0); transform: none; }
}
@keyframes glitch-b {
  0%, 100% { opacity: 0; clip-path: inset(0); transform: none; }
  6.5% { opacity: .7; clip-path: inset(62% 0 18% 0); transform: translate(3px, -1px); }
  8%   { opacity: .7; clip-path: inset(15% 0 65% 0); transform: translate(-3px, 1px); }
  9.5% { opacity: .7; clip-path: inset(40% 0 40% 0); transform: translate(2px, 1px); }
  11%  { opacity: 0; clip-path: inset(0); transform: none; }
  58.5%{ opacity: .7; clip-path: inset(5% 0 80% 0);  transform: translate(-3px, 0); }
  60%  { opacity: .7; clip-path: inset(45% 0 35% 0); transform: translate(3px, 1px); }
  61.5%{ opacity: 0; clip-path: inset(0); transform: none; }
}
@keyframes glitch-base {
  0%, 100% { transform: none; }
  6%   { transform: translate(1px, 0) skewX(2deg); }
  8%   { transform: translate(-1px, 0) skewX(-1.5deg); }
  10.5%{ transform: none; }
  58%  { transform: translate(-1px, 1px) skewX(-2deg); }
  60%  { transform: translate(1px, 0); }
  61.5%{ transform: none; }
}

/* one-row HUD chip: hairline border, dividers, mint icon accents */
.sound-controls {
  display: flex;
  align-items: center;
  border: 1px solid #232323;
  border-radius: 999px;
  padding: 2px 4px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
}

.sctl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #cfcfcf;
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.sctl:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.sctl svg { width: 13px; height: 13px; color: var(--mint); flex: 0 0 auto; }

.sctl-div { width: 1px; height: 14px; background: #232323; }

/* sound OFF -> the power icon burns pink-red */
#powerBtn.off { color: #888; }
#powerBtn.off svg { color: var(--red); filter: drop-shadow(0 0 5px rgba(255, 59, 107, 0.5)); }

/* live equalizer: four pink-red bars driven by the master bus */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 15px;
  height: 13px;
  flex: 0 0 auto;
}
.eq i {
  width: 2.5px;
  height: 100%;
  background: var(--red);
  border-radius: 1px;
  transform: scaleY(0.2);
  transform-origin: bottom;
  box-shadow: 0 0 4px rgba(255, 59, 107, 0.4);
}

/* glowing terminal readout, aligned below the sound controls (top-left) */
.tagline {
  transition: opacity .3s ease;
  position: absolute;
  top: 74px;
  left: 28px;
  right: auto;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.75;
  text-transform: uppercase;
  color: var(--mint);
  /* tight dark halo (legible on ANY background — even light images behind)
     under the mint glow, so it always reads as neon-on-dark */
  text-shadow:
    0 0 1px #000,
    0 0 3px rgba(0, 0, 0, 0.95),
    0 1px 4px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(15, 250, 183, 0.7),
    0 0 18px rgba(15, 250, 183, 0.35);
}
.hud-cursor {
  display: inline-block;
  margin-left: 1px;
  animation: cursor-blink 1s steps(1) infinite;
}
@media (max-width: 720px) { .tagline { display: none; } }

.top-right {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.clocks { text-align: left; padding-top: 6px; }
.clock-row { display: flex; gap: 10px; }
.clock-row span { margin-left: 8px; }

.pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.pill-white {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 250, 183, 0.45);
  color: var(--mint);
}
.pill-white:hover {
  background: var(--mint);
  color: #000;
  box-shadow: 0 0 24px rgba(15, 250, 183, 0.35);
}

.pill-grey {
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid #232323;
  color: #cfcfcf;
}
.pill-grey:hover { color: #fff; border-color: #444; }

/* bottom nav — same HUD chip language as the sound controls */
.main-nav {
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid #232323;
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.nav-item {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a9a9a;
  background: none;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-item:hover { color: #fff; }
.nav-item.active {
  color: var(--mint);
  background: rgba(15, 250, 183, 0.08);
  box-shadow: inset 0 0 0 1px rgba(15, 250, 183, 0.35);
}

.view-toggles { display: flex; gap: 6px; }
.view-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #232323;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  color: #9a9a9a;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.view-btn:hover { color: #fff; }
.view-btn.active { color: var(--mint); border-color: rgba(15, 250, 183, 0.4); }

/* ===================== DETAIL PAGE ===================== */

.detail {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;             /* no accidental text-select while swiping */
}

.detail-bg {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  transform-origin: bottom;
  /* pin to a permanent GPU layer: stops Chrome dropping the paint layer at
     certain scroll positions, which flashed the sphere through the page */
  will-change: transform;
  transform: translateZ(0);
}

.detail-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(34px, 4.5vh, 58px) 32px 100px;
}


/* full wireframe sphere — spins continuously, glows on hover (no button chrome) */
/* the ONE mint globe: sits in the page header (over its anchor), and once the
   page scrolls it GLIDES to the top-centre and stays in reach. Fixed to the
   section (not inside the scrolling inner — transforms there break fixed). */
.detail-back.sphere-btn {
  position: fixed;
  left: 0; top: 0;                 /* JS drives left/top in px (px↔% can't animate) */
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0;
  border: none;
  background: none;
  color: var(--mint);
  cursor: pointer;
  transition: left .55s cubic-bezier(.25,.8,.25,1), top .55s cubic-bezier(.25,.8,.25,1), color .3s;
}
.detail-back.sphere-btn.notrans { transition: color .3s; }  /* snap on open, no glide-in */
.detail-back.sphere-btn .db-lbl {
  font-size: 11px;
  letter-spacing: .14em;
  white-space: nowrap;
  overflow: hidden;
  max-width: 220px;
  opacity: .85;
  transition: max-width .45s ease, opacity .35s ease;
}
.detail-back.sphere-btn.docked .db-lbl { max-width: 0; opacity: 0; }  /* the label melts */
.db-anchor, .ab-anchor, .cr-anchor {
  height: 56px;
  margin-bottom: clamp(10px, 1.8vh, 22px);
}
.detail-back.sphere-btn svg.globe {
  width: 48px;
  height: 48px;
  display: block;
  transform: rotate(-24deg);     /* tilt the axis -> the sphere spins diagonally */
  transition: filter 0.35s;
}
/* a real spin: silhouette + parallels stay; meridians sweep across (rx -> 0)
   the way longitude lines project on a rotating globe */
.detail-back.sphere-btn svg.globe .mer {
  animation: meridian 5s ease-in-out infinite;
}
@keyframes meridian {
  0%, 100% { rx: 22px; }
  50% { rx: 4px; }            /* never collapse to a straight line through center */
}
.detail-back.sphere-btn:hover { color: var(--mint); }
.detail-back.sphere-btn:hover svg.globe {
  filter: drop-shadow(0 0 7px rgba(15, 250, 183, 0.8)) drop-shadow(0 0 16px rgba(15, 250, 183, 0.45));
}
@media (prefers-reduced-motion: reduce) {
  .detail-back.sphere-btn svg.globe .mer { animation: none; }
}

.detail-meta { display: flex; gap: 18px; font-size: 12px; margin-bottom: 12px; }

.detail-title {
  font-size: clamp(38px, 6.4vw, 84px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--pg-head, #fff);
}
/* page ink system: --pg-text/--pg-head/--pg-bg are set per project by the
   renderer (auto black/white by background luminance, or Lightbox override);
   softer shades derive by mixing the ink toward the background — the
   defaults reproduce the classic look exactly */
.detail-meta { color: var(--pg-meta, color-mix(in srgb, var(--pg-text, #fff) 72%, var(--pg-bg, #0a0a0a))); }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vh, 36px); }
.detail-tags .chip {
  border: 1px solid color-mix(in srgb, var(--pg-tags, var(--pg-text, #fff)) 30%, var(--pg-bg, #0a0a0a));
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--pg-tags, color-mix(in srgb, var(--pg-text, #fff) 80%, var(--pg-bg, #0a0a0a)));
}

/* hero → horizontal swipe slider */
.detail-hero {
  position: relative;
  /* fills the content column, both edges aligned with the title/text grid */
  width: 100%;
  aspect-ratio: 3 / 2;
  margin: 0 0 clamp(34px, 4vh, 56px);
  border-radius: 4px;
  overflow: hidden;
}
/* FULL BLEED hero (image intent L): the strip itself bleeds — full window
   width AND full 3:2 height on every display, no caps, never cropped.
   On very wide screens it is taller than the window: the viewer scrolls
   through it, which is the point of full bleed. */
.detail-hero.bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}
/* OPTIMAL hero (image intent O): full-bleed look on normal displays, but the
   strip never grows past --optw — on an ultra-wide it stays centered at the
   width of the biggest "normal" screens. Never cropped. */
.detail-hero.opt {
  width: min(100vw, var(--optw, 2560px));
  max-width: none;
  margin-left: calc(50% - min(50vw, var(--optw-half, 1280px)));
  margin-right: calc(50% - min(50vw, var(--optw-half, 1280px)));
  border-radius: 0;
}
.hero-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;                 /* iOS: a diagonal swipe stays with the slider, never the page */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;            /* a fast flick moves one slide, never lands between two */
  position: relative;
  overflow: hidden;
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.hero-slide .slide-no {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: #fff; background: rgba(8,8,8,.6); padding: 6px 11px; border-radius: 999px;
}
.hero-dots {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 3;
}
.hero-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.35); transition: background .25s, width .25s; cursor: pointer;
}
.hero-dots i.on { background: var(--mint); width: 20px; border-radius: 4px; }
.hero-hint {
  position: absolute; right: 16px; top: 14px; z-index: 3;
  color: #cfcfcf; background: rgba(8,8,8,.6); padding: 6px 11px; border-radius: 999px;
  pointer-events: none; transition: opacity .4s;
  display: none;
}
.hero-hint.gone { opacity: 0; }

/* desktop: round transparent prev/next arrows; hidden on touch devices */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: rgba(8,8,8,.35); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.45); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-arrow:hover { background: var(--mint); border-color: var(--mint); color: #000; }
.hero-arrow[disabled] { opacity: .25; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .hero-arrow { display: flex; } }
@media (pointer: coarse) { .hero-hint { display: block; } }

/* the BRIEF: bold lead, the story, bold closing on the left; on the right the
   PROGRAMME — one coloured row per chapter of the page (the ⚓ anchors) */
.detail-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px clamp(40px, 6vw, 110px); margin-top: 10px; padding: 36px 0 32px;
  border-top: 1px solid color-mix(in srgb, var(--pg-text, #fff) 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--pg-text, #fff) 12%, transparent); }
.detail-body.noprog { grid-template-columns: 1fr; }
.brief-copy { font-size: 18px; line-height: 1.6; max-width: 640px;
  color: color-mix(in srgb, var(--pg-text, #fff) 84%, var(--pg-bg, #0a0a0a)); }
.brief-copy p { margin: 0 0 1.1em; }
.brief-copy p:last-child { margin-bottom: 0; }
.brief-copy .brief-lead, .brief-copy .brief-close { font-weight: 700; color: var(--pg-head, #fff); }
.brief-program { align-self: start; font-size: 12.5px; }
.pr-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 18px; width: 100%; text-align: left;
  padding: 16px 0; background: none; border: 0; color: inherit; font: inherit; line-height: 1.5; cursor: pointer;
  border-bottom: 1px dashed color-mix(in srgb, var(--pg-text, #fff) 22%, transparent); }
.pr-row:first-child { padding-top: 2px; }
.pr-key { color: var(--ch, var(--mint)); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pr-txt { color: color-mix(in srgb, var(--pg-text, #fff) 68%, var(--pg-bg, #0a0a0a)); transition: color .2s; }
.pr-row:hover .pr-txt { color: var(--pg-head, #fff); }
@media (max-width: 820px) { .detail-body { grid-template-columns: 1fr; gap: 26px; padding: 26px 0 22px; }
  .pr-row { grid-template-columns: 1fr; gap: 3px; padding: 13px 0; } .pr-key { font-size: 10px; } }

/* the closing mark: 33/44 centred at the end of every page, drawn in the page's
   contrast-guarded caption ink (mint on dark pages, the accent on light ones) */
.detail-end { display: flex; justify-content: center; padding: clamp(56px, 9vh, 110px) 0 24px; }
.end-logo { width: 54px; height: 54px; border: 0; padding: 0; cursor: pointer; opacity: .92;
  background: var(--pg-cap, var(--proj-accent, var(--mint)));
  -webkit-mask: url("logo.svg?v=1") center / contain no-repeat; mask: url("logo.svg?v=1") center / contain no-repeat;
  transition: opacity .25s, transform .25s; }
.end-logo:hover { opacity: 1; transform: scale(1.06); }

/* swipe-down-to-close handle */

/* appended scroll-revealed gallery sections */
.detail-gallery { margin-top: 30px; }
.detail-gallery .sec-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--mint);
  border-top: 1px solid #1d1d1d; padding-top: 22px; margin: 70px 0 26px;
}
/* single image — fills the content column (aligned with the grid), full image (no crop) */
/* IMMERSIVE: true edge-to-edge — break out of the content column to the
   viewport. On normal screens the image may be taller than the window (you
   scroll through it: that is the immersion). Ultra-wide screens cap height. */
.detail-gallery .g-full { width: 100vw; margin: clamp(24px,3.2vh,44px) calc(50% - 50vw); }
.detail-gallery .g-full img { width: 100vw; height: auto; display: block; }
.detail-gallery .g-full .shapewrap { width: 100vw; }
/* OPTIMAL (O): full-bleed look up to --optw, then it stops growing and
   centers — the biggest width "normal" displays use; ultra-wides get a
   bounded, centered band instead of an endless stretch. Never cropped. */
.detail-gallery .g-opt { width: min(100vw, var(--optw, 2560px));
  margin: clamp(24px,3.2vh,44px) calc(50% - min(50vw, var(--optw-half, 1280px))); }
.detail-gallery .g-opt img { width: 100%; height: auto; display: block; }
.detail-gallery .g-opt .shapewrap { width: 100%; }
/* M = content column, S = inset */
.detail-gallery .g-mid { max-width: 1200px; margin: clamp(24px,3.2vh,44px) auto; }
.detail-gallery .g-mid img { width: 100%; height: auto; display: block; }
.detail-gallery .g-narrow { max-width: 620px; margin: clamp(24px,3.2vh,44px) auto; }
.detail-gallery .g-narrow img { width: 100%; height: auto; display: block; }
/* side-by-side row — fills the content column, equal widths, a thin seam between, no crop */
/* GROUPED rows: one shared height, widths proportional to each image */
.detail-gallery .g-row { width: 100%; display: flex; gap: 6px; margin: clamp(24px,3.2vh,44px) 0; }
.detail-gallery .g-row .g-rowcell { flex: var(--ar) 1 0px; aspect-ratio: var(--ar); min-width: 0; overflow: hidden; }
.detail-gallery .g-row .g-rowcell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-gallery .g-row.full { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
/* OPTIMAL row: same philosophy as g-opt singles — full-bleed look up to the
   width of normal displays, then it stops growing and centers */
.detail-gallery .g-row.opt { width: min(100vw, var(--optw, 2560px));
  margin-left: calc(50% - min(50vw, var(--optw-half, 1280px)));
  margin-right: calc(50% - min(50vw, var(--optw-half, 1280px))); }
/* explicit SHAPES: the wrapper carries the chosen proportion; the image fills
   it, positioned by the curator's framing — an intentional crop, never accident */
.shapewrap { position: relative; overflow: hidden; margin: 0 auto; }
.shapewrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-gallery .g-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 38px 0; }
.detail-gallery .g-duo img { width: 100%; height: 52vh; object-fit: cover; display: block; }
.detail-gallery .g-cap { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pg-cap, var(--proj-accent, var(--mint))); margin: 12px 0 0; }
/* narrative block (dossier style): eyebrow · big title · dashed rule · copy —
   opens a series of images; rendered for ⚓ ANCHOR images */
.detail-gallery .g-narr { max-width: 680px; margin: clamp(48px, 7vh, 84px) 0 clamp(6px, 1.2vh, 14px); }
.g-narr .g-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .22em;
  color: var(--ch, var(--pg-cap, var(--proj-accent, var(--mint)))); margin: 0; text-transform: uppercase; }
.g-narr h3 { font-size: clamp(26px, 3.4vw, 44px); line-height: 1; font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em; margin: 8px 0 14px; color: var(--pg-head, #fff); }
.g-narr h3::after { content: ""; display: block; height: 3px; width: 64px; margin-top: 12px;
  background: repeating-linear-gradient(-45deg, var(--ch, var(--pg-cap, var(--proj-accent, var(--mint)))) 0 8px, transparent 8px 14px); }
.g-narr .g-ncopy { font-size: 16px; line-height: 1.6; max-width: 62ch; margin: 0;
  color: color-mix(in srgb, var(--pg-text, #fff) 82%, var(--pg-bg, #0a0a0a)); }
/* caption OVERLAY: a dark band sitting on the image's own bottom edge —
   physically attached, never floating between two images */
.g-capov { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; text-align: center;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pg-capband, var(--pg-cap, var(--proj-accent, var(--mint))));
  background: rgba(8, 8, 8, .72); padding: 13px 16px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }  /* one line, always — JS shrinks to fit */
.detail-gallery .g-full, .detail-gallery .g-opt,
.detail-gallery .g-mid, .detail-gallery .g-narrow { position: relative; }
.detail-gallery .g-row .g-rowcell { position: relative; }
.detail-gallery .g-text {
  max-width: 620px; font-size: 18px; line-height: 1.6; margin: 56px 0;
  color: color-mix(in srgb, var(--pg-text, #fff) 82%, var(--pg-bg, #0a0a0a));
}
.detail-gallery .reveal {
  opacity: 0; transform: translateY(54px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.detail-gallery .reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .detail-body { grid-template-columns: 1fr; gap: 14px; }
  .detail-gallery .g-duo { grid-template-columns: 1fr; }
  .detail-gallery .g-duo img { height: 40vh; }
}

/* ===================== ABOUT ===================== */

.about {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
}

.about-bg {
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(15, 250, 183, 0.025) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(15, 250, 183, 0.02) 0 1px, transparent 1px 90px),
    #0a0a0a;
  transform-origin: top;
}

.about-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(34px, 4.5vh, 58px) 32px 140px;   /* same top spacing as project page */
}

/* hero: 33 (pixels) with 44 (flow) tucked directly below-right, like the mark */
.about-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 48px;
  align-items: start;
  margin-bottom: 110px;
}

.about-glyph { max-width: 360px; }
.about-glyph:first-child .glyph-cap { max-width: 230px; }
.about-glyph:last-child { margin-top: 170px; margin-left: -100px; justify-self: start; }

.pix33 {
  width: 290px;
  height: 160px;
  display: block;
  shape-rendering: crispEdges;
  filter: drop-shadow(0 0 14px rgba(15, 250, 183, 0.35));
  margin-bottom: 30px;
}

.flow44svg {
  width: 300px;
  height: 270px;
  display: block;
  filter: drop-shadow(0 0 16px rgba(15, 250, 183, 0.3));
  margin-bottom: 10px;
}

.about-arrow { display: none; }  /* the slash IS the connector, like the mark */

.glyph-cap { font-size: 11px; line-height: 1.8; color: #8a8a8a; text-transform: none; letter-spacing: 0.04em; }
.glyph-tag { display: block; color: var(--mint); margin-bottom: 10px; letter-spacing: 0.14em; }

.about-slogan {
  font-size: clamp(44px, 7.5vw, 104px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}
.slogan-cursor { color: var(--mint); animation: cursor-blink 1.1s steps(1) infinite; }
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.detail-cursor { margin-left: 0.06em; }

.about-lede {
  font-size: 20px;
  line-height: 1.6;
  color: #d6d6d6;
  max-width: 620px;
  margin-bottom: 110px;
}

.about-sec {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 44px 0;
  border-top: 1px solid #1d1d1d;
}
.about-num { font-size: 11px; color: var(--mint); letter-spacing: 0.16em; padding-top: 5px; }
.about-sec p {
  font-size: 17px;
  line-height: 1.65;
  color: #c9c9c9;
  max-width: 640px;
}

.about-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.about-chips .chip {
  border: 1px solid #2c2c2c;
  border-radius: 999px;
  padding: 8px 16px;
  color: #cfcfcf;
  font-size: 10px;
}

.about-close-line { color: #fff !important; margin-top: 10px; }

/* mobile: keep the logo's diagonal, scale everything so 33, 44 and the
   slogan all land inside the first screen without scrolling */
@media (max-width: 900px) {
  .about-inner { padding: clamp(34px, 4.5vh, 58px) 20px 100px; }
  .about-hero { grid-template-columns: auto 1fr; gap: 0 14px; margin-bottom: 44px; }
  .about-glyph { max-width: none; }
  .about-glyph:first-child .glyph-cap { max-width: 150px; }
  .about-glyph:last-child { margin-top: 100px; margin-left: -24px; justify-self: start; }
  .pix33 { width: 150px; height: 96px; margin-bottom: 14px; }
  .flow44svg { width: 156px; height: 140px; margin-bottom: 6px; }
  .glyph-cap { font-size: 9px; line-height: 1.65; }
  .about-slogan { font-size: clamp(32px, 10.5vw, 46px); margin-bottom: 18px; }
  .about-lede { font-size: 15px; margin-bottom: 64px; }
  .about-sec { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
}

/* ===================== CAREERS ===================== */

.careers {
  position: fixed;
  inset: 0;
  z-index: 20;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
}

.careers-bg {
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(15,250,183,.022) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(15,250,183,.018) 0 1px, transparent 1px 90px),
    #0a0a0a;
  transform-origin: top;
}

.careers-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(34px, 4.5vh, 58px) 32px 120px;   /* same top spacing as project page */
}

.careers-hero { margin-bottom: 90px; }
.careers-kicker { margin-bottom: 18px; }
.careers-title {
  font-size: clamp(44px, 8vw, 110px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.careers-lede {
  font-size: 19px;
  line-height: 1.6;
  color: #d2d2d2;
  max-width: 600px;
}

.spirit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  padding: 48px 0 90px;
  border-top: 1px solid #1d1d1d;
}
.spirit-col h3 { font-size: 22px; font-weight: 600; margin: 12px 0 12px; }
.spirit-col p { font-size: 14px; line-height: 1.65; color: #a8a8a8; }

.roles-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid #1d1d1d;
  padding-top: 26px;
  margin-bottom: 6px;
}
.roles-h { font-size: clamp(28px, 4vw, 48px); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; }

.roles { margin-bottom: 110px; }

.role {
  border-bottom: 1px solid #1d1d1d;
}
.role-head {
  display: grid;
  grid-template-columns: 44px 1fr auto 28px;
  gap: 20px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 26px 4px;
  font-family: var(--sans);
  transition: padding-left .3s cubic-bezier(.22,1,.36,1);
}
.role-head:hover { padding-left: 16px; }
.role-idx { font-family: var(--mono); font-size: 11px; color: #555; }
.role-title { font-size: clamp(20px, 2.6vw, 30px); font-weight: 500; transition: color .2s; }
.role-head:hover .role-title { color: var(--mint); }
.role-level {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #cfcfcf;
  border: 1px solid #2c2c2c;
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}
.role.tier-exec  .role-level { border-color: rgba(255,59,107,.5); color: var(--red); }
.role.tier-senior .role-level { border-color: rgba(15,250,183,.45); color: var(--mint); }
.role-plus {
  position: relative;
  width: 16px; height: 16px;
  justify-self: end;
}
.role-plus::before, .role-plus::after {
  content: ""; position: absolute; background: #888;
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .2s;
}
.role-plus::before { left: 0; top: 7px; width: 16px; height: 2px; }
.role-plus::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.role.open .role-plus::after { transform: rotate(90deg) scaleY(0); }
.role.open .role-plus::before { background: var(--mint); }
.role.open .role-title { color: var(--mint); }

.role-body {
  height: 0;
  overflow: hidden;
}
.role-body-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  padding: 0 4px 34px 64px;
}
.role-block .mono { color: var(--mint); display: block; margin-bottom: 10px; letter-spacing: .12em; }
.role-block p { font-size: 15px; line-height: 1.62; color: #c4c4c4; }
.role-quals { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.role-quals .qchip {
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  border: 1px solid #2a2a2a; border-radius: 999px; padding: 6px 11px; color: #bdbdbd;
}
.role-apply {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 6px;
}

.careers-cta {
  border-top: 1px solid #1d1d1d;
  padding-top: 70px;
  margin-bottom: 80px;
}
.careers-cta h2 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: -.02em;
  margin: 14px 0 24px;
}
.careers-apply { margin-top: 12px; }

.careers-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid #1d1d1d;
  padding-top: 30px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .spirit { grid-template-columns: 1fr; gap: 30px; }
  .role-head { grid-template-columns: 30px 1fr 28px; }
  .role-level { display: none; }
  .role-body-inner { grid-template-columns: 1fr; padding-left: 34px; gap: 18px; }
  .careers-foot { grid-template-columns: 1fr; }
}

/* intro cover fades out on load */
.intro-cover {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 30;
  pointer-events: none;
}

/* ===================== FILTER PANEL (phantom-style, over blurred sphere) ===================== */
canvas#scene { transition: filter .45s ease; }
canvas#scene.blurred { filter: blur(14px) brightness(.55) saturate(.8); }
#filterPanel {
  position: fixed; inset: 0; z-index: 12;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 0 0 110px 0;
  pointer-events: none; opacity: 0;
  transition: opacity .35s ease;
}
#filterPanel.open { opacity: 1; pointer-events: auto; }
#filterPanel .fp-inner {
  width: min(880px, 92vw);
  margin: 0 auto;
  padding: 26px 30px;
  background: rgba(8, 10, 12, .72);
  border: 1px solid rgba(15, 250, 183, .22);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transform: translateY(14px);
  transition: transform .35s ease;
  max-height: 62vh; overflow: auto;
}
#filterPanel.open .fp-inner { transform: translateY(0); }
.fp-label { font-size: 10px; letter-spacing: .2em; color: var(--dim, #7a8896); margin: 0 0 10px; }
.fp-zones { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.fp-zone {
  font-family: "Space Mono", monospace; font-size: 11px; letter-spacing: .08em;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: none; border: 1px solid rgba(255, 255, 255, .16); color: #cfd8dc;
  transition: border-color .2s, color .2s, background .2s;
}
.fp-zone:hover { border-color: rgba(15, 250, 183, .5); }
.fp-zone.on { border-color: var(--mint, #0FFAB7); color: var(--mint, #0FFAB7); background: rgba(15, 250, 183, .07); }
.fp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
.fp-list { display: flex; flex-wrap: wrap; gap: 7px; }
.fp-list button {
  font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .06em;
  padding: 6px 11px; border-radius: 4px; cursor: pointer;
  background: none; border: 1px solid rgba(255, 255, 255, .12); color: #9fb0ba;
}
.fp-list button:hover { color: #fff; }
.fp-list button.on { border-color: var(--mint, #0FFAB7); color: var(--mint, #0FFAB7); }
.fp-count { margin: 20px 0 0; font-size: 10px; letter-spacing: .16em; color: var(--mint, #0FFAB7); }
.fp-clear {
  margin-top: 12px; font-size: 10px; letter-spacing: .14em; cursor: pointer;
  background: none; border: none; color: #8a94a0; text-decoration: underline;
}
.fp-clear:hover { color: #fff; }
@media (max-width: 720px) {
  .fp-cols { grid-template-columns: 1fr; }
  #filterPanel { padding-bottom: 96px; }
  #filterPanel .fp-inner { max-height: 56vh; }
}

/* ===================== LIST VIEW (☰) — the sphere as an index ===================== */
#listView {
  position: fixed; inset: 0; z-index: 8;
  overflow-y: auto;
  padding: 110px 24px 130px;
  background: rgba(6, 8, 10, .55);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
#listView.open { opacity: 1; visibility: visible; }
#listView .lv-inner { max-width: 980px; margin: 0 auto; }
.lv-row {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center;
  padding: 14px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  cursor: pointer; border-radius: 6px;
  transition: background .18s;
}
.lv-row:hover { background: rgba(15, 250, 183, .05); }
.lv-row img { width: 96px; height: 64px; object-fit: cover; border-radius: 4px; display: block; }
.lv-t { min-width: 0; }
.lv-client { font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: .16em; color: var(--mint, #0FFAB7); text-transform: uppercase; }
.lv-title { font-size: clamp(17px, 2.4vw, 24px); font-weight: 600; color: #fff; margin: 3px 0 4px; text-transform: uppercase; letter-spacing: .01em; }
.lv-tags { font-family: "Space Mono", monospace; font-size: 10px; color: #8a94a0; letter-spacing: .08em; }
.lv-year { font-family: "Space Mono", monospace; font-size: 11px; color: #8a94a0; }
.lv-empty { text-align: center; color: #8a94a0; font-family: "Space Mono", monospace; font-size: 12px; padding: 60px 0; }
@media (max-width: 640px) {
  .lv-row { grid-template-columns: 72px 1fr; }
  .lv-row img { width: 72px; height: 48px; }
  .lv-year { display: none; }
}

/* ===================== TRANSFORMATION SEQUENCES ===================== */
.seqbox { position: relative; width: 100%; overflow: hidden; border-radius: 2px; background: #060809; cursor: pointer; }
/* fade-OVER, not cross-dissolve: the outgoing frame (.was) stays opaque
   underneath while the incoming (.on) fades in on top — no dark dip */
.seqbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.seqbox img.was { opacity: 1; z-index: 1; }
.seqbox img.on { opacity: 1; z-index: 2; transition: opacity .9s ease; }
/* per-frame caption bands: each rides on its own frame and fades with it */
.seqbox .g-capov.seqcap { z-index: 3; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.seqbox .g-capov.seqcap.on { opacity: 1; }
.seqbox.hascap .seqdots { bottom: 54px; }   /* dots sit just above the band */
.seqbox .clabel { position: absolute; top: 14px; left: 16px; font-size: 10px; letter-spacing: .18em; color: var(--mint, #0FFAB7); background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 3px; }
.seqbox .seqno { position: absolute; top: 14px; right: 16px; font-size: 10px; letter-spacing: .14em; color: #fff; background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 3px; }
.seqbox .seqdots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.seqbox .seqdots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: background .25s, transform .25s; }
.seqbox .seqdots i.on { background: var(--mint, #0FFAB7); transform: scale(1.25); }
#filterBtn.filtering { border-color: var(--mint); color: var(--mint); box-shadow: 0 0 14px rgba(15,250,183,.25); }

/* ===================== REALITY vs RENDER (before / after) ===================== */
.cmp { position: relative; width: 100%; aspect-ratio: 3/2; overflow: hidden; border-radius: 2px; background: #060809; cursor: ew-resize; touch-action: none; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp .ctop { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); will-change: clip-path; }
.cmp .chandle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--mint, #0FFAB7); transform: translateX(-1px); box-shadow: 0 0 12px rgba(15,250,183,.6); pointer-events: none; }
.cmp .chandle span { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%,-50%); border-radius: 50%; border: 2px solid var(--mint, #0FFAB7); background: rgba(0,0,0,.55); }
.cmp .chandle span::before { content: "⟷"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--mint, #0FFAB7); font-size: 14px; }
.cmp .clabel { position: absolute; top: 14px; font-size: 10px; letter-spacing: .18em; background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 3px; color: #fff; transition: opacity .25s; }
.cmp .clabel.la { left: 16px; color: var(--mint, #0FFAB7); }
.cmp .clabel.lb { right: 16px; }
.g-comp { width: 100%; }

/* ===================== ULTRAWIDE COHERENCE (aspect >= 2:1) =====================
   FULL BLEED (L) is deliberately UNLIMITED — singles AND rows keep the full
   window width, the viewer scrolls through. OPTIMAL (O) is the bounded mode
   and carries its own cap. Only the column hero still adapts here. */
@media (min-aspect-ratio: 2/1) {
  /* column-width hero (M/S intent) keeps its exact 3:2 — just never taller
     than 78vh (117vh = 78vh × 3/2) */
  .detail-hero:not(.bleed):not(.opt) { max-width: min(100%, 117vh); margin-left: auto; margin-right: auto; }
}

/* ===================== LET'S TALK — HUD chip size + contact menu ===================== */
/* same height as the sound chips (their 2px wrapper + 7px pads + 10px mono) */
.top-right .pill { padding: 9px 18px; font-size: 10px; line-height: 1.5; }
.top-right { position: relative; }
.talk-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; z-index: 30;
  background: rgba(10, 10, 10, 0.92); backdrop-filter: blur(8px); border: 1px solid rgba(15,250,183,.45);
  border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.talk-menu.hidden { display: none; }
.talk-menu a { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-decoration: none;
  padding: 10px 12px; border-radius: 9px; color: #dfe6ea; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.talk-menu a:hover { background: rgba(15,250,183,.1); color: var(--mint); }
.talk-menu a.primary { color: var(--mint); }
.talk-menu a small { font-size: 9px; letter-spacing: .04em; text-transform: none; color: #8a9aa4; }
.talk-menu a:hover small { color: #cfe9df; }

/* ===================== CAREERS — the apply box ===================== */
.apply-box { margin-top: 14px; padding: 18px; border: 1px solid rgba(15,250,183,.35); border-radius: 12px; background: rgba(8,12,15,.7);
  display: grid; gap: 12px; }
.apply-box .apply-head { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--mint); text-transform: uppercase; }
.apply-box .apply-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.apply-box label { display: flex; flex-direction: column; gap: 5px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: #8a9aa4; text-transform: uppercase; }
.apply-box input, .apply-box textarea { background: #0a0d10; border: 1px solid #22303a; border-radius: 8px; color: #fff; padding: 10px 12px;
  font-family: var(--sans); font-size: 14px; }
.apply-box input[type=file] { padding: 8px; font-size: 12px; color: #cfd8dc; }
.apply-box textarea { min-height: 72px; resize: vertical; }
.apply-box input:focus, .apply-box textarea:focus { outline: none; border-color: var(--mint); }
.apply-box .apply-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.apply-box .apply-actions .pill { padding: 11px 18px; font-size: 10px; }
.apply-box .apply-note { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: #8a9aa4; }
.apply-box .apply-note b { color: #cfe9df; }
.apply-box.sent { border-color: var(--mint); }
.careers-mail { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(15,250,183,.4); }
.careers-mail:hover { color: var(--mint); }

/* the HUD tagline is sphere-state decoration: it steps aside while the list view is open */
body:has(#listView.open) .tagline { opacity: 0; pointer-events: none; }

/* ===================== MOBILE CHROME ===================== */
/* bottom bar: everything shrinks to one row that fits a phone — toggles left,
   nav centred and allowed to shrink, filter right */
@media (max-width: 720px) {
  .chrome-bottom { padding: 12px 10px; gap: 8px; align-items: center; }
  .main-nav { min-width: 0; flex: 0 1 auto; padding: 3px; }
  .nav-item { padding: 9px 11px; font-size: 10px; letter-spacing: .08em; }
  .view-toggles { gap: 5px; flex: 0 0 auto; }
  .view-btn { width: 34px; height: 34px; font-size: 12px; }
  .chrome-bottom .pill { padding: 9px 12px; font-size: 10px; letter-spacing: .08em; flex: 0 0 auto; }
  .detail-tags .chip { padding: 5px 11px; font-size: 9.5px; }
}
@media (max-width: 400px) {
  .nav-item { padding: 8px 8px; font-size: 9px; letter-spacing: .06em; }
  .view-btn { width: 32px; height: 32px; }
  .chrome-bottom .pill { padding: 8px 10px; font-size: 9px; }
}
