/* TERMINATOR — PHAS2 hero prototype. Local only. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/phas2/human-droid-hero-v1/assets/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --orange: #FF6500;
  --ivory: #FFFAF0;
  --charcoal: #242321;
  --muted: #625C54;
  --stone: #D4CBBD;
  --field: #F6F2EA;
  --ink: var(--charcoal);
  --ink-soft: var(--muted);
  --gutter: clamp(16px, 3.2vw, 44px);
  --track: 220svh;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: fixed; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--charcoal); color: var(--ivory); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ------------------------------------------------------------------ header */

.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: var(--gutter);
  pointer-events: none;
}
.site-head a { pointer-events: auto; }
.brand { display: block; position: relative; width: clamp(128px, 15vw, 236px); aspect-ratio: 1028 / 224; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s ease; }
.brand .on-dark { opacity: 0; }
body[data-tone="dark"] .brand .on-dark { opacity: 1; }
body[data-tone="dark"] .brand .on-light { opacity: 0; }

.site-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; text-transform: uppercase;
  font-size: clamp(14px, 1.45vw, 21px); letter-spacing: .01em; line-height: 1.1;
  padding: 2px 6px; border-radius: 3px;
  background: color-mix(in srgb, var(--field) 55%, transparent);
  transition: color .35s ease, background-color .35s ease;
}
.site-nav a:hover { color: var(--orange); }
body[data-tone="dark"] .site-nav a { color: var(--ivory); background: color-mix(in srgb, var(--charcoal) 55%, transparent); }

/* ------------------------------------------------------------------ hero */

.hero-track { position: relative; height: var(--track); }
.hero-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  background: var(--field);
  touch-action: pan-y;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-stage[data-render="webgl"] .head-svg { visibility: hidden; }
.hero-stage:not([data-render="webgl"]) .hero-canvas { display: none; }

/* SVG stack: first paint, no-JS and non-WebGL fallback. JS overrides the box
   from the same layout() used by WebGL; these rules are the no-JS equivalent. */
.head-svg {
  /* glen-frontal-v3 portrait (mirrors src/layout.js): s = 0.7vh / 769.4, head top at 17% */
  position: absolute; display: block;
  height: calc(1250 * 70svh / 769.4); aspect-ratio: 1000 / 1250;
  top: calc(17svh - 190 * 70svh / 769.4); left: 50%;
  transform: translateX(-50%);
}
@media (max-aspect-ratio: 4/5) {
  .head-svg {
    height: auto;
    width: min(250vw, calc(1000 * 75svh / 769.4));
    top: calc(100svh - 0.9594 * min(250vw, calc(1000 * 75svh / 769.4)));
  }
}

.placeholder-badge {
  position: absolute; left: 50%; bottom: clamp(12px, 3svh, 28px); transform: translateX(-50%);
  z-index: 3; max-width: calc(100% - 2 * var(--gutter));
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-align: center;
  color: var(--ivory); background: var(--charcoal); padding: 6px 10px; border-left: 3px solid var(--orange);
}

.side-copy {
  position: absolute; z-index: 2; margin: 0; top: 38svh;
  font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: -.01em;
  font-size: clamp(30px, 4.6vw, 76px);
  opacity: 0; transition: opacity .5s ease, transform .5s ease, color .35s ease;
  pointer-events: none;
}
.side-copy.human { left: var(--gutter); transform: translateX(-12px); }
.side-copy.machine { right: var(--gutter); text-align: right; transform: translateX(12px); }
.side-copy.is-on { opacity: 1; transform: none; }
body[data-tone="dark"] .side-copy { color: var(--ivory); }

.scene-desc, .hero-controls {
  position: absolute; z-index: 3; bottom: var(--gutter);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .35s ease;
}
.scene-desc { left: var(--gutter); }
.scene-desc p { margin: 0 0 4px; }
.readout { font-variant-numeric: tabular-nums; }
.hero-controls { right: var(--gutter); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hero-controls .cue { margin: 0; text-align: right; line-height: 1.6; }
.hero-controls .cue span { display: block; }
body[data-tone="dark"] .scene-desc, body[data-tone="dark"] .hero-controls { color: var(--stone); }

.switch { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 3px; background: color-mix(in srgb, var(--field) 70%, transparent); }
body[data-tone="dark"] .switch { background: color-mix(in srgb, var(--charcoal) 70%, transparent); }
.switch button {
  font: inherit; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: inherit; background: none; border: 0; border-radius: 999px;
  min-height: 36px; min-width: 76px; padding: 0 14px; cursor: pointer;
}
.switch button[aria-pressed="true"] { background: var(--charcoal); color: var(--ivory); }
body[data-tone="dark"] .switch button[aria-pressed="true"] { background: var(--ivory); color: var(--charcoal); }

/* cue visibility by input + motion preference, no JS needed */
.cue-touch, .cue-reduced { display: none !important; }
@media (hover: none), (pointer: coarse) {
  .cue-fine { display: none !important; }
  .cue-touch { display: block !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cue-fine, .cue-touch { display: none !important; }
  .cue-reduced { display: block !important; }
  :root { --track: 100svh; }
  .side-copy, .brand img, .site-nav a { transition: none; }
}

/* ------------------------------------------------------------------ gallery continuation
   Design references: Glen's gallery photos (stepped white plinth of CRT
   monitors, black-framed prints, layered striped acrylic planes). Original
   CSS forms in PHAS2 colours; no third-party artwork is used. */

:root { --wall: #F4F2EE; --wall-shade: #E7E3DC; --floor: #CFCBC4; }

.gallery-room {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--wall) 0%, var(--wall) 72%, var(--wall-shade) 100%);
  color: var(--charcoal);
  padding: clamp(80px, 12svh, 150px) var(--gutter);
}
.section-kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.section-kicker::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--orange); vertical-align: middle; margin-right: 10px; }
.gallery-room h2 {
  margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: -.015em; line-height: .92;
  font-size: clamp(40px, 7.4vw, 124px); max-width: 12ch;
}
.gallery-room p { max-width: 46ch; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.45; color: var(--muted); }

/* --- work: plinth installation --- */
.work { padding-top: clamp(110px, 18svh, 200px); background: linear-gradient(180deg, var(--wall) 0%, var(--wall) 58%, var(--floor) 100%); }
.installation { position: relative; width: min(100%, 1280px); margin: clamp(30px, 6svh, 70px) auto 0; aspect-ratio: 16 / 9; }
.tier {
  position: absolute; background: linear-gradient(180deg, #fff 0 18%, #F7F5F1 18% 100%);
  box-shadow: 0 18px 30px -18px rgba(36, 35, 33, .35), inset 0 -1px 0 rgba(36, 35, 33, .06);
}
.tier::before { /* top surface catching the light */
  content: ""; position: absolute; left: 3%; right: 3%; top: -18%; height: 18%;
  background: linear-gradient(180deg, #FBFAF8, #fff); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%);
}
.t1 { left: 12%; width: 74%; top: 59%; height: 13%; }
.t2 { left: 21%; width: 56%; top: 45%; height: 14%; }
.t3 { left: 31%; width: 38%; top: 31%; height: 14%; }
.cables { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cables path { fill: none; stroke: #2b2a28; stroke-opacity: .55; stroke-width: 1.4; vector-effect: non-scaling-stroke; }

.crt {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%);
  aspect-ratio: 1.18 / 1; transform: translateY(-100%);
  background: linear-gradient(160deg, #8D8A85, #5E5B57 55%, #3F3D3A);
  border-radius: 7% 7% 5% 5% / 9% 9% 6% 6%;
  box-shadow: 0 10px 14px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.crt::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4%; height: 5%; border-radius: 2px; background: repeating-linear-gradient(90deg, #2b2a28 0 2px, transparent 2px 5px); opacity: .5; }
.crt.is-turned { transform: translateY(-100%) perspective(400px) rotateY(-38deg); }
.crt-screen {
  position: absolute; left: 9%; right: 9%; top: 9%; bottom: 17%; overflow: hidden; border-radius: 14% / 18%;
  background:
    radial-gradient(120% 90% at 40% 35%, #E9F3F8 0%, #A9C8DA 38%, #5C7F96 75%, #2A3C48 100%);
  box-shadow: inset 0 0 0 2px #1d1c1a, inset 0 0 18px rgba(0, 0, 0, .45);
  display: grid; place-items: center;
}
.crt-screen::before { /* scanlines */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(20, 30, 38, .22) 0 1px, transparent 1px 3px);
}
.crt-screen::after { /* rolling bar */
  content: ""; position: absolute; left: 0; right: 0; height: 35%; top: -35%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .28), transparent);
}
.installation.is-live .crt-screen::after { animation: roll 3.8s linear infinite; }
.installation.is-live .crt:nth-child(3n) .crt-screen::after { animation-duration: 5.1s; animation-delay: -1.3s; }
.installation.is-live .crt:nth-child(3n+1) .crt-screen::after { animation-duration: 4.4s; animation-delay: -2.2s; }
@keyframes roll { to { transform: translateY(400%); } }
.crt-screen b { position: relative; z-index: 1; font-size: clamp(10px, 1.5vw, 22px); letter-spacing: .08em; color: var(--charcoal); background: rgba(255, 250, 240, .7); padding: 0 .35em; }
.crt.is-slot .crt-screen { background: radial-gradient(120% 90% at 40% 35%, #FFFAF0 0%, #F1D9C4 40%, #C9785A 85%, #5a2e1e 100%); }
.crt.is-slot .crt-screen b { color: var(--orange); background: var(--charcoal); }

.slot-list { list-style: none; padding: 0; margin: clamp(24px, 4svh, 44px) auto 0; width: min(100%, 1280px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px 24px; }
.slot-list li { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-top: 1px solid rgba(36, 35, 33, .18); padding-top: 10px; }
.slot-list b { color: var(--orange); margin-right: 8px; }

/* --- studio: big, tightly set statement over Glen's typewriter photograph --- */
.studio {
  display: grid; grid-template-columns: 1fr; justify-items: center; gap: clamp(8px, 2svh, 20px);
  padding-top: clamp(120px, 18svh, 190px);
  background: linear-gradient(180deg, #ECE8E1 0%, #E6E1D9 70%, #DDD7CE 100%);
}
.studio-intro { width: min(100%, 1280px); }
.studio .studio-title {
  display: flex; flex-direction: column; gap: 0;
  font-size: clamp(38px, 8.3vw, 150px); font-weight: 700; line-height: .84; letter-spacing: -.045em;
  max-width: none; color: var(--charcoal);
  /* a little white: a crisp offset echo, like a print lifted off the wall */
  text-shadow: .035em .035em 0 #fff;
}
.studio .studio-title > span { display: block; }
@media (min-width: 700px) { .studio .studio-title > span { white-space: nowrap; } }
.studio .studio-title .two { color: var(--orange); }
.studio .desk { width: min(100%, 860px); padding-top: clamp(96px, 17%, 160px); }
.studio .paper { height: 46%; }

/* --- contact: layered striped planes (kinetic op-art study) --- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; min-height: 92svh; }
.demo-tag { display: inline-block; margin-top: 10px; padding: 6px 10px; border: 1px solid var(--orange); color: var(--charcoal); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.planes { position: relative; aspect-ratio: 1 / 1; width: min(100%, 560px); justify-self: center; }
.plane { position: absolute; border: 1px solid rgba(36, 35, 33, .12); background-color: rgba(255, 255, 255, .25); filter: drop-shadow(26px 34px 0 rgba(36, 35, 33, .10)); }
.p1 { left: 4%; top: 12%; width: 52%; height: 62%; background-image: repeating-linear-gradient(90deg, #242321 0 3px, transparent 3px 11px); }
.p2 { left: 26%; top: 4%; width: 58%; height: 70%; background-image: repeating-linear-gradient(90deg, rgba(36, 35, 33, .7) 0 2px, transparent 2px 9px); }
.p2 .blk-a, .p2 .blk-b { position: absolute; display: block; }
.p2 .blk-a { left: 30%; top: 10%; width: 22%; height: 44%; background: repeating-linear-gradient(115deg, var(--stone) 0 6px, #EDE3CF 6px 12px); transform: rotate(12deg); }
.p2 .blk-b { left: 52%; top: 32%; width: 18%; height: 46%; background: repeating-linear-gradient(115deg, var(--orange) 0 5px, #ff8a3d 5px 9px); transform: rotate(16deg); }
.p3 { left: 12%; top: 20%; width: 18%; height: 50%; background-image: repeating-linear-gradient(90deg, #242321 0 6px, transparent 6px 10px); border: 0; background-color: transparent; }
.rod { position: absolute; display: block; height: 3px; background: #242321; border-radius: 2px; transform-origin: left center; }
.r1 { left: 30%; top: 6%; width: 32%; transform: rotate(14deg); }
.r2 { left: 20%; top: 58%; width: 34%; transform: rotate(-10deg); }
.r3 { left: 46%; top: 72%; width: 28%; transform: rotate(-6deg); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .p1 { animation: drift-a linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .p2 { animation: drift-b linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .p3 { animation: drift-c linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes drift-a { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@keyframes drift-b { from { transform: translateX(5%); } to { transform: translateX(-5%); } }
@keyframes drift-c { from { transform: translateX(-10%); } to { transform: translateX(10%); } }

/* typewriter desk (Glen's photograph) with a sheet rising from the platen */
.desk { margin: 0; justify-self: center; width: min(100%, 640px); padding-top: clamp(70px, 14%, 120px); }
.desk-photo { position: relative; }
.desk-photo img { display: block; width: 100%; height: auto; box-shadow: 0 26px 40px -24px rgba(36, 35, 33, .5); }
.paper {
  position: absolute; left: 39.5%; width: 33%; bottom: 66.5%; height: 58%;
  container-type: inline-size;
  background: linear-gradient(180deg, #FDFCF8, #F6F2E9 85%, #E9E3D6);
  box-shadow: 0 -2px 0 rgba(36, 35, 33, .04), 0 10px 22px -10px rgba(36, 35, 33, .35);
  padding: 4% 3.3%;  /* % of the photo width: ~10% of the sheet */
  transform-origin: bottom center;
}
.paper::after { /* the sheet disappears behind the platen */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8%;
  background: linear-gradient(180deg, transparent, rgba(36, 35, 33, .18));
}
.paper .typed {
  margin: 0; white-space: pre-wrap; color: #2a2826;
  font: 600 8.6cqw/1.35 "Courier New", ui-monospace, Menlo, monospace;
  letter-spacing: .02em; max-width: none;
}
.typed .caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -0.15em; background: var(--orange); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.desk figcaption { margin-top: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .typed .caret { animation: none; } }

.site-foot {
  background: var(--wall-shade); color: var(--muted); padding: 28px var(--gutter) 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-top: 1px solid rgba(36, 35, 33, .12);
}
.site-foot img { width: 110px; height: auto; display: block; }

@media (max-width: 860px) {
  .studio, .contact { grid-template-columns: 1fr; }
  .contact .planes { order: -1; width: min(86%, 420px); }
  .installation { aspect-ratio: 4 / 3; }
  .crt.is-floor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .installation .crt-screen::after { animation: none !important; display: none; }
}

@media (max-width: 560px) {
  .side-copy { top: 15svh; font-size: clamp(22px, 7.4vw, 34px); }
  .side-copy.machine { top: calc(15svh + 2.2em); }
  /* Phones: one centred control cluster; the scene descriptor stays available
     to assistive tech but is not drawn over the portrait. */
  .scene-desc { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero-controls { right: 50%; transform: translateX(50%); align-items: center; font-size: 10px; letter-spacing: .1em; }
  .hero-controls .cue { text-align: center; }
  .cue-scroll { display: none !important; }
  .placeholder-badge { font-size: 9.5px; letter-spacing: .1em; bottom: auto; top: calc(var(--gutter) + 80px); }
  .side-copy { top: calc(var(--gutter) + 130px); }
  .side-copy.machine { top: calc(var(--gutter) + 130px + 2.2em); }
  .switch button { min-width: 64px; padding: 0 10px; min-height: 40px; }
}


/* Studio integration — original SVG study; portrait/gallery controllers unchanged. */
.studio-sculpture { width: min(100%, 940px); margin: 0; }
.studio-object { width: 100%; aspect-ratio: 14 / 9; transform-origin: 50% 60%; transition: transform 180ms cubic-bezier(.23, 1, .32, 1); touch-action: pan-y; scroll-margin-top: 120px; }
.studio-object img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.studio-art-caption { margin: -8px 0 0; padding-top: 14px; border-top: 1px solid rgba(36,35,33,.18); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11px; color: var(--charcoal); }
[data-studio-motion] { min-height: 44px; padding: 8px 13px; border: 1px solid rgba(36,35,33,.4); background: transparent; color: var(--charcoal); font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, transform 120ms ease; }
[data-studio-motion]:active { transform: scale(.97); }
[data-studio-motion]:disabled { opacity: .7; cursor: default; }
@media (hover: hover) and (pointer: fine) { [data-studio-motion]:hover { color: var(--ivory); background: var(--charcoal); } }
@media (max-width: 480px) { .studio-sculpture { width: calc(100% + 20px); margin-left: -10px; } .studio-art-caption { margin-left: 10px; margin-right: 10px; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .studio-object { transform: none !important; transition: none; } [data-studio-motion] { transition: none; } }

/* Quiet Studio introduction. Scoped to this section; no gallery/Contact changes. */
.studio.quiet-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  justify-items: stretch;
  gap: clamp(40px, 7vw, 112px);
  padding: clamp(90px, 12vw, 150px) var(--gutter);
  background: var(--wall, #F4F2EE);
}
.quiet-studio-introduction { min-width: 0; max-width: 580px; }
.quiet-studio .quiet-studio-name {
  margin: 0;
  max-width: none;
  font-size: clamp(36px, 4.8vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
  text-transform: none;
  text-shadow: none;
  color: var(--charcoal);
}
.quiet-studio .quiet-studio-intro {
  margin: 22px 0 0;
  max-width: 38ch;
  font-size: clamp(19px, 2.15vw, 28px);
  line-height: 1.45;
  color: var(--charcoal);
}
.quiet-coming-soon { min-width: 0; padding-top: 3px; }
.quiet-coming-soon h3 {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.quiet-upcoming-item {
  border-top: 1px solid rgba(36, 35, 33, .2);
  padding: 20px 0 24px;
}
.quiet-upcoming-item:last-child { padding-bottom: 0; }
.quiet-upcoming-item h4 {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.65vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--charcoal);
}
.quiet-studio .quiet-upcoming-item p {
  margin: 0;
  max-width: 40ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
@media (max-width: 860px) {
  .studio.quiet-studio { grid-template-columns: 1fr; gap: 48px; }
  .quiet-coming-soon { width: 100%; max-width: 580px; }
}
@media (max-width: 480px) {
  .studio.quiet-studio { padding-top: 100px; padding-bottom: 72px; gap: 40px; }
  .quiet-studio .quiet-studio-intro { margin-top: 18px; }
}

/* Page-specific portfolio title; does not change project credits. */
.quiet-studio .quiet-studio-role {
  margin: 16px 0 0;
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--charcoal);
}
.quiet-studio .quiet-studio-role + .quiet-studio-intro { margin-top: 16px; }

/* ------------------------------------------------------------------ control console
   One hardware-style panel: brushed gunmetal plate, a glossy lever for the
   reveal style and a glossy flip switch for Human / Droid. Real buttons stay
   underneath for keyboard and screen readers. */
.console {
  --plate-hi: #4a4846; --plate-lo: #1f1e1c; --groove: #0e0d0c; --chrome-hi: #fbfaf7; --chrome-lo: #8d8a85;
  position: relative; display: grid; gap: 10px; padding: 16px 18px 14px;
  border-radius: 14px; color: var(--stone);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    linear-gradient(170deg, var(--plate-hi), var(--plate-lo) 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.45),
              0 14px 28px -12px rgba(0,0,0,.55), 0 2px 0 rgba(0,0,0,.3);
}
.screw { position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d8d5cf, #6f6c67 60%, #2c2a28);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4); }
.screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 3px; height: 1px; background: rgba(0,0,0,.55); transform: rotate(35deg); }
.screw.tl { left: 7px; top: 7px; } .screw.tr { right: 7px; top: 7px; }
.screw.bl { left: 7px; bottom: 7px; } .screw.br { right: 7px; bottom: 7px; }
.console-row { display: flex; align-items: center; gap: 12px; }
.console-label { width: 52px; font: 700 9.5px/1 "Space Grotesk", Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #a39e96; }

/* lever: four notches, one glossy knob that slides to the active one */
.lever { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); width: 210px; padding-top: 26px; }
.lever-slot { touch-action: none; cursor: pointer; position: absolute; left: 16%; right: 16%; top: 9px; height: 8px; border-radius: 4px;
  background: linear-gradient(180deg, #050505, #1b1a19); box-shadow: inset 0 2px 3px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.12); }
.lever-slot::before { content: ""; position: absolute; inset: -9px -14px; }
.lever-knob { position: absolute; top: 0; width: 26px; height: 26px; border-radius: 50%;
  left: calc(16.667% + var(--pos) * 33.333% - 13px);
  background: radial-gradient(circle at 35% 28%, #fff 0 8%, #ffb27a 18%, var(--orange) 46%, #9a3a00 100%);
  box-shadow: 0 4px 8px rgba(0,0,0,.6), inset 0 -3px 5px rgba(0,0,0,.35), 0 0 12px rgba(255,101,0,.35);
  transition: left .28s cubic-bezier(.3,1.5,.5,1); cursor: grab; touch-action: none; }
.lever.is-dragging .lever-knob { cursor: grabbing; transition-duration: .12s; }
.lever-knob::before { content: ""; position: absolute; left: 50%; top: 20px; width: 4px; height: 12px; margin-left: -2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--chrome-lo), var(--chrome-hi), var(--chrome-lo)); z-index: -1; }
.lever button {
  font: 700 9.5px/1 "Space Grotesk", Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: #a39e96; background: none; border: 0; padding: 8px 0 2px; cursor: pointer; min-height: 30px;
}
.lever button[aria-pressed="true"] { color: var(--ivory); }
.lever button::before { content: ""; display: block; width: 2px; height: 5px; margin: -6px auto 4px; background: #6f6b65; }

/* flip switch: glossy chrome bat in a recessed housing */
.toggle { display: flex; align-items: center; gap: 10px; border: 0; padding: 0; background: none; }
.toggle button {
  font: 700 9.5px/1 "Space Grotesk", Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase;
  color: #a39e96; background: none; border: 0; padding: 8px 2px; cursor: pointer; min-height: 32px; min-width: 0; border-radius: 4px;
}
.toggle button[aria-pressed="true"] { color: var(--ivory); background: none; }
.toggle-housing { touch-action: none; cursor: grab; position: relative; width: 58px; height: 26px; border-radius: 13px;
  background: linear-gradient(180deg, #070707, #262523); box-shadow: inset 0 3px 5px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.14); }
.toggle-bat { position: absolute; top: 2px; left: 3px; width: 30px; height: 22px; border-radius: 11px;
  background: linear-gradient(180deg, var(--chrome-hi) 0%, #d9d6d0 35%, var(--chrome-lo) 55%, #c8c4bd 80%, #efede8 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,.6), inset 0 1px 0 #fff;
  transition: left .24s cubic-bezier(.3,1.4,.5,1); }
.toggle-bat::after { content: ""; position: absolute; inset: 6px 9px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); }
.toggle:has([data-set="droid"][aria-pressed="true"]) .toggle-bat { left: 25px; }
.led { width: 10px; height: 10px; border-radius: 50%; margin-left: auto;
  background: radial-gradient(circle at 35% 30%, #6b625a, #2a2724); box-shadow: inset 0 1px 2px rgba(0,0,0,.7); transition: background .25s, box-shadow .25s; }
.hero-stage[data-material="droid"] .led { background: radial-gradient(circle at 35% 30%, #ffe0c2, var(--orange) 45%, #a33f00);
  box-shadow: 0 0 10px rgba(255,101,0,.8), 0 0 2px #fff inset; }
.console button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
body[data-tone="dark"] .console { color: var(--stone); }
@media (prefers-reduced-motion: reduce) { .lever-knob, .toggle-bat { transition: none; } }
@media (max-width: 560px) {
  .console { padding: 14px 14px 12px; }
  .console-label { width: 42px; font-size: 9px; }
  .lever { width: 190px; }
  .lever button, .toggle button { font-size: 9px; letter-spacing: .06em; }
}
body[data-tone="dark"] .toggle button[aria-pressed="true"] { background: none; color: var(--ivory); }

/* Full clean entry only. The preserved deeper site does not load this file. */
.p2-human-droid{--p2-hero-chrome:0px;--hero-height:100svh;--p2-nav-height:72px}
.p2-human-droid .side-copy{opacity:1!important;transform:none!important}
@media(max-width:560px){.p2-human-droid .hero-statements{position:absolute;z-index:3;top:calc(var(--p2-nav-height) + 12px);left:12px;right:12px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.p2-human-droid .hero-statements .side-copy{position:static!important;top:auto!important;left:auto!important;right:auto!important;margin:0;font-size:clamp(18px,5.4vw,25px);line-height:1.02;letter-spacing:-.02em}.p2-human-droid .hero-statements .machine{text-align:right}.p2-human-droid details[open]{max-height:max(104px,calc(var(--hero-height) - 288px));overflow-y:auto;overscroll-behavior:auto}.p2-human-droid details[open]>summary{position:sticky;top:0;z-index:2;background:#fffaf0;color:#242321}}

.site-head{background:rgba(255,250,240,.97);border-bottom:1px solid rgba(36,35,33,.12)}
.site-head .site-nav a{color:#242321}.site-head .brand .on-light{opacity:1}.site-head .brand .on-dark{opacity:0}
.service-line{min-height:1.6em;margin:20px 0!important;font-size:clamp(22px,3.2vw,36px)!important;line-height:1.4!important;font-weight:500;letter-spacing:-.025em}
.service-rotator{display:block;min-height:1.4em}.deeper-link{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-underline-offset:.25em}
.slot-list a,.quiet-upcoming-item a,.site-foot a{color:inherit;text-underline-offset:.25em}
.site-foot{flex-wrap:wrap;gap:24px}.site-foot>a{min-height:44px;display:flex;align-items:center}
.legacy-target{display:none}.legacy-target:target{display:block;position:fixed;left:16px;right:16px;top:80px;z-index:100;background:#fffaf0;padding:16px;border:1px solid #242321}
@media(prefers-reduced-motion:reduce){.installation .crt-screen::after{animation:none!important}}
