/* sxldini — the studio. A built room of screens; the screens are the site. */

:root {
  --void: #040405;
  --text: #efebe4;
  --muted: rgba(236, 232, 224, 0.6);
  --faint: rgba(236, 232, 224, 0.4);
  --hair: rgba(255, 255, 255, 0.08);
  --copper: #e4a35f;
  --ice: #8ed8f0;
  --mint: #8fe3a8;
  --pa: var(--copper);
  --display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-path="operate"] {
  --pa: var(--ice);
}
:root[data-path="remember"] {
  --pa: var(--mint);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  background: var(--void);
}
body {
  margin: 0;
  color: var(--text);
  background: var(--void);
  font: 400 14px/1.55 var(--mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.sheet-open {
  overflow: hidden;
}
a,
button,
input,
textarea,
select,
label {
  font: inherit;
  color: inherit;
}
a {
  text-decoration: none;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid rgba(240, 196, 138, 0.9);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 0.9rem;
  background: var(--copper);
  color: #1a1208;
}
.skip:focus {
  top: 1rem;
}

/* ————————————————————————————————————————— top bar ——— */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
  padding: 0 clamp(16px, 2.4vw, 32px);
  background: linear-gradient(180deg, rgba(4, 4, 5, 0.82), rgba(4, 4, 5, 0));
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font: 700 12px/1 var(--display);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(228, 163, 95, 0.55);
  color: var(--copper);
}
.brand-mark svg {
  width: 13px;
  height: 13px;
}
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.slots {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 6px 0 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(143, 227, 168, 0.85);
  white-space: nowrap;
}
.slots-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(143, 227, 168, 0.45);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px rgba(143, 227, 168, 0);
  }
}
.tb-btn {
  height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 232, 224, 0.72);
  transition: border-color 0.2s, color 0.2s;
}
.tb-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.tb-btn .sound-on,
.tb-btn[aria-pressed="false"] .sound-on {
  display: none;
}
.tb-btn[aria-pressed="true"] .sound-on {
  display: inline;
}
.tb-btn[aria-pressed="true"] .sound-off {
  display: none;
}
.tb-cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  font: 700 12.5px/1 var(--display);
  color: #1a1208;
  background: linear-gradient(180deg, #f0c48a, #e4a35f 62%, #d08f48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 22px rgba(228, 163, 95, 0.18);
  transition: filter 0.2s;
}
.tb-cta:hover {
  filter: brightness(1.08);
}

/* ————————————————————————————————————————— the studio ——— */
.studio {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--void);
  isolation: isolate;
}
.studio-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
}
.studio[data-focus] .studio-gl {
  cursor: zoom-out;
}
.studio-dom {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.studio-curtain {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: var(--void);
  pointer-events: none;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.studio-curtain.is-up {
  opacity: 0;
}
/* Vignette: keeps the eye in the room. */
.studio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: radial-gradient(130% 95% at 50% 46%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, 0.5) 100%);
}
.studio-hint,
.studio-egg {
  position: absolute;
  z-index: 25;
  margin: 0;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.studio-hint {
  left: 50%;
  bottom: clamp(18px, 3.6vh, 34px);
  translate: -50% 0;
  transition-delay: 0s;
}
.studio:not(.is-ready) .studio-hint {
  opacity: 0;
}
.studio-egg {
  right: 22px;
  bottom: clamp(18px, 3.6vh, 34px);
  letter-spacing: 0.06em;
  color: rgba(236, 232, 224, 0.24);
}
.studio-egg kbd {
  font: inherit;
}
.is-focused .studio-hint,
.is-focused .studio-egg,
.is-finale .studio-hint,
:root[data-path="convert"] .studio-hint,
:root[data-path="operate"] .studio-hint,
:root[data-path="remember"] .studio-hint {
  opacity: 0;
}

/* Captions float above the hardware, flat and crisp. */
.studio-labels {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.is-focused .studio-labels,
.is-finale .studio-labels {
  opacity: 0;
}
.cap {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -100%;
  display: flex;
  gap: 0.9em;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(236, 232, 224, 0.5);
  transition: color 0.35s ease, opacity 0.5s ease;
}
.cap b {
  font-weight: 500;
  color: rgba(236, 232, 224, 0.28);
  transition: color 0.35s ease;
}
.cap.is-hover {
  color: #fff;
}
.cap.is-match,
.cap.is-match b {
  color: var(--pa);
}
.cap.is-dim {
  opacity: 0.3;
}

/* ————————————————————————————————————————— screens ——— */
.scr {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  overflow: hidden;
  container-type: size;
  background: #08080a;
  color: var(--text);
  pointer-events: auto;
  contain: layout paint style;
  backface-visibility: hidden;
  will-change: transform;
}
.scr-inner {
  position: absolute;
  inset: 0;
}
.scr-hit {
  position: absolute;
  inset: 0;
  z-index: 7;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.scr-hit:focus-visible {
  outline: max(2px, 0.35cqw) solid rgba(255, 255, 255, 0.85);
  outline-offset: calc(max(2px, 0.35cqw) * -1);
}
.scr.is-focus .scr-hit {
  display: none;
}
.scr-glass {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(
    calc(116deg + var(--sheen, 0) * 1deg),
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.012) 30%,
    rgba(255, 255, 255, 0) 52%,
    rgba(255, 255, 255, 0.018) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
  transition: opacity 0.8s ease;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
/* Panel falloff and sensor grain: the screens sit in the same photograph as the room. */
.scr-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.22) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.16;
}
.scr.is-focus .scr-glass {
  opacity: 0.35;
}
/* Hover: the panel lifts its backlight a touch and a faint halo breathes out past the bezel. */
.scr {
  transition: box-shadow 0.45s ease;
}
.scr-glass {
  transition: box-shadow 0.45s ease, opacity 0.45s ease;
}
.scr.is-hover:not(.is-focus) {
  box-shadow: 0 0 28px 2px rgba(190, 205, 255, 0.1), 0 0 70px 6px rgba(150, 170, 255, 0.05);
}
.scr.is-hover:not(.is-focus) .scr-glass {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 50px rgba(190, 205, 255, 0.07);
}
.scr-shade {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: #000;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.studio[data-focus] .scr:not(.is-focus) .scr-shade {
  opacity: 0.6;
}
.scr.is-dim .scr-shade {
  opacity: 0.6;
}
.studio[data-focus] .scr.is-focus .scr-shade {
  opacity: 0;
}

/* Shared screen type. Sizes are in container units: each screen scales as one object. */
.s-eyebrow {
  display: flex;
  gap: 0.9em;
  margin: 0;
  font: 500 max(10px, 0.9cqw) / 1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}
.s-eyebrow > span:first-child {
  color: var(--copper);
}
.s-title {
  margin: 1.5cqw 0 0;
  font: 800 3.5cqw/0.98 var(--display);
  letter-spacing: -0.042em;
  color: #f4f1ec;
  text-wrap: balance;
  outline: none;
}
.s-body {
  margin: 1.7cqw 0 0;
  font: 400 max(12px, 1.16cqw) / 1.62 var(--mono);
  color: var(--muted);
}
.s-hint {
  margin: 2cqw 0 0;
  font: 500 max(10px, 0.82cqw) / 1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  height: 3.5cqw;
  min-height: 28px;
  padding: 0 1.7cqw;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.3cqw;
  background: rgba(255, 255, 255, 0.025);
  font: 700 max(11px, 1.2cqw) / 1 var(--display);
  letter-spacing: 0.005em;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, filter 0.2s;
}
.h-btn:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
}
.h-btn b {
  font-weight: 500;
  font-family: var(--mono);
}
.h-btn-primary {
  border-color: transparent;
  color: #1a1208;
  background: linear-gradient(180deg, #f0c48a, #e4a35f 62%, #d08f48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.h-btn-primary:hover {
  border-color: transparent;
  background: linear-gradient(180deg, #f0c48a, #e4a35f 62%, #d08f48);
  filter: brightness(1.08);
}

/* ————————————————————————————————————————— hero ——— */
.hero {
  display: flex;
  flex-direction: column;
  padding: 3.4cqw 4cqw 3.6cqw;
  background:
    radial-gradient(85% 120% at 0% 0%, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #0e0e11, #08080a);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.6cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  font: 500 0.98cqw / 1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236, 232, 224, 0.46);
}
.hero-top i {
  font-style: normal;
  color: rgba(236, 232, 224, 0.22);
}
.hero-clock {
  color: rgba(236, 232, 224, 0.72);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}
.hero-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  gap: 4.4cqw;
  align-items: end;
  padding-top: 2.6cqw;
}
.hero-title {
  margin: 0;
  font: 800 6.4cqw/0.92 var(--display);
  letter-spacing: -0.052em;
  text-wrap: balance;
  background: linear-gradient(180deg, #fffaf3 0%, #ede8e0 52%, #a9a49c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 2cqw 0 0;
  max-width: 40cqw;
  font: 400 1.24cqw / 1.6 var(--mono);
  color: var(--muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1cqw;
  margin-top: 2.5cqw;
}

.hero-paths {
  min-width: 0;
}
.paths-label {
  margin: 0 0 1.1cqw;
  font: 500 0.92cqw / 1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.paths {
  display: grid;
  border-top: 1px solid var(--hair);
}
.path {
  position: relative;
  display: grid;
  grid-template-columns: 11.5cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 1cqw;
  padding: 1.2cqw 0.4cqw 1.2cqw 0;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  transition: padding 0.45s var(--ease-out), background 0.45s ease;
}
.path::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  bottom: -1px;
  width: 0.24cqw;
  background: var(--pa);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.45s var(--ease-out);
}
.path-num {
  font: 500 0.84cqw / 1.2 var(--mono);
  white-space: nowrap;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 232, 224, 0.4);
  transition: color 0.3s;
}
.path-title {
  font: 700 1.56cqw/1.15 var(--display);
  letter-spacing: -0.018em;
  color: #e9e5dd;
}
.path-arrow {
  font: 500 1.3cqw/1 var(--mono);
  color: rgba(236, 232, 224, 0.28);
  transition: transform 0.35s var(--ease-out), color 0.3s;
}
.path:hover .path-arrow {
  transform: translateX(0.4cqw);
  color: var(--text);
}
.path:hover .path-num {
  color: rgba(236, 232, 224, 0.7);
}
.path[aria-selected="true"] {
  padding-left: 1.3cqw;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 80%);
}
.path[aria-selected="true"]::before {
  transform: scaleY(1);
}
.path[aria-selected="true"] .path-num,
.path[aria-selected="true"] .path-arrow {
  color: var(--pa);
}
.path-out {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1cqw 2cqw;
  margin-top: 1.3cqw;
  animation: rise 0.6s var(--ease-out) both;
}
.path-out[hidden] {
  display: none;
}
.path-build {
  grid-column: 1 / -1;
  margin: 0;
  font: 400 max(9px, 1.04cqw) / 1.5 var(--mono);
  color: var(--muted);
}
.path-facts {
  display: flex;
  gap: 2.4cqw;
  margin: 0;
}
.path-facts dt {
  font: 500 max(8px, 0.78cqw) / 1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.path-facts dd {
  margin: 0.5cqw 0 0;
  font: 700 1.28cqw/1.1 var(--display);
  color: var(--pa);
  white-space: nowrap;
}
.path-go {
  padding-bottom: 0.25cqw;
  border-bottom: 1px solid var(--pa);
  font: 700 1.16cqw/1 var(--display);
  white-space: nowrap;
}
.paths-hint {
  margin: 1.1cqw 0 0;
  font: 400 max(8px, 0.9cqw) / 1.4 var(--mono);
  color: rgba(236, 232, 224, 0.34);
}
.hero-paths:has(.path-out:not([hidden])) .paths-hint {
  display: none;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.8cqw);
  }
}

/* Final reveal, on the hero glass. */
.hero-finale {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5cqw;
  padding: 3.6cqw 4.4cqw;
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(228, 163, 95, 0.1), rgba(228, 163, 95, 0) 70%),
    linear-gradient(180deg, #0d0d10, #070709);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.is-finale .hero-finale {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease;
}
.fin-line,
.fin-beat {
  margin: 0;
  opacity: 0;
}
.fin-line {
  font: 700 3.1cqw/1.12 var(--display);
  letter-spacing: -0.035em;
  color: var(--text);
}
.fin-beat {
  font: 700 2.2cqw/1.2 var(--display);
  letter-spacing: -0.025em;
  color: rgba(236, 232, 224, 0.5);
}
.fin-last {
  margin-top: 0.6cqw;
  font-size: 4.6cqw;
  background: linear-gradient(180deg, #f6d7a8, #e4a35f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fin-actions {
  display: flex;
  gap: 1cqw;
  margin-top: 2cqw;
  opacity: 0;
}
.is-finale .hero-finale > * {
  animation: rise 0.8s var(--ease-out) forwards;
}
.is-finale .hero-finale > :nth-child(1) { animation-delay: 1s; }
.is-finale .hero-finale > :nth-child(2) { animation-delay: 1.7s; }
.is-finale .hero-finale > :nth-child(3) { animation-delay: 2.1s; }
.is-finale .hero-finale > :nth-child(4) { animation-delay: 2.5s; }
.is-finale .hero-finale > :nth-child(5) { animation-delay: 2.9s; }
.is-finale .hero-finale > :nth-child(6) { animation-delay: 3.7s; }
.is-finale .hero-finale > :nth-child(7) { animation-delay: 4.5s; }
.is-finale .hero-finale > :nth-child(8) { animation-delay: 5.3s; }
.is-finale .hero-finale > * {
  animation-fill-mode: both;
}
.is-finale .hero-finale .fin-line,
.is-finale .hero-finale .fin-beat,
.is-finale .hero-finale .fin-actions {
  opacity: 1;
}

/* ————————————————————————————————————————— A · how I build ——— */
.build {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 3.2cqw;
  padding: 3.2cqw;
  background: linear-gradient(180deg, #0e0e11, #08080a);
}
.build-head {
  align-self: center;
}
.xform {
  position: relative;
  user-select: none;
  touch-action: pan-y;
}
.xform-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5cqw;
  background: #09080e;
}
.xform-panel {
  position: absolute;
  inset: 0;
}
.xform-after {
  width: 52%;
  overflow: hidden;
  z-index: 2;
}
.xform-after .mock {
  width: 100cqw;
}
.mock {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 1.5cqw 1.8cqw;
  background: #d8d4ce;
  color: #5a564f;
  font: 400 1.5cqw/1 var(--mono);
}
.mock-bar span {
  width: 1.1cqw;
  height: 1.1cqw;
  border-radius: 50%;
  background: #b8b2a8;
}
.mock-bar em {
  margin-left: 0.8cqw;
  font-style: normal;
}
.mock-sad .mock-body {
  padding: 3cqw 3.4cqw;
  background: linear-gradient(180deg, #efeeea, #e4e2dc);
  color: #4a463f;
}
.mock-nav {
  margin-bottom: 2.6cqw;
  font: 400 1.5cqw/1 var(--mono);
  opacity: 0.65;
}
.mock-hero-box {
  padding: 3cqw;
  border: 1px solid #cfc9bf;
  background: #f7f6f2;
}
.mock-hero-box p {
  margin: 0;
  font: 400 3.6cqw/1.15 Georgia, "Times New Roman", serif;
  color: #2f2c28;
}
.mock-hero-box small {
  display: block;
  margin-top: 1.2cqw;
  font: 400 1.8cqw/1.4 Arial, sans-serif;
  color: #7a746a;
}
.mock-btn {
  display: inline-block;
  margin-top: 2.2cqw;
  padding: 1.1cqw 1.9cqw;
  border-radius: 0.4cqw;
  background: #3d6ea8;
  color: #fff;
  font: 400 1.6cqw/1 Arial, sans-serif;
}
.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4cqw;
  margin-top: 2.4cqw;
}
.mock-cards i {
  height: 9cqw;
  background: #d9d4cb;
  border: 1px solid #c9c3b8;
}
.mock-footer {
  margin-top: 2.2cqw;
  font: 400 1.35cqw/1.3 Arial, sans-serif;
  opacity: 0.55;
}
.mock-bar-live {
  background: #14121a;
  color: rgba(236, 232, 224, 0.5);
}
.mock-bar-live span:nth-child(1) {
  background: #e57373;
}
.mock-bar-live span:nth-child(2) {
  background: #e4a35f;
}
.mock-bar-live span:nth-child(3) {
  background: #8fe3a8;
}
.mock-body-live {
  padding: 6cqw 5.4cqw;
  background:
    radial-gradient(70% 60% at 10% 0%, rgba(228, 163, 95, 0.16), transparent 60%),
    radial-gradient(60% 60% at 95% 90%, rgba(142, 216, 240, 0.08), transparent 60%),
    linear-gradient(180deg, #121018, #0a0910);
}
.mock-kicker {
  margin: 0;
  font: 500 1.5cqw/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice);
}
.mock-display {
  margin: 2cqw 0 0;
  font: 800 7cqw/0.95 var(--display);
  letter-spacing: -0.045em;
  color: var(--text);
}
.mock-rule {
  width: 7cqw;
  height: 1px;
  margin: 3cqw 0 2.4cqw;
  background: rgba(228, 163, 95, 0.6);
}
.mock-body-copy {
  max-width: 50cqw;
  margin: 0;
  font: 400 1.8cqw/1.55 var(--mono);
  color: var(--muted);
}
.mock-cta-row {
  display: flex;
  gap: 1.2cqw;
  margin-top: 3cqw;
}
.mock-cta-row span {
  display: inline-flex;
  align-items: center;
  height: 5cqw;
  padding: 0 2.2cqw;
  font: 700 1.7cqw/1 var(--display);
  color: #1a1208;
  background: linear-gradient(135deg, #e4a35f, #f0c48a);
}
.mock-cta-row .ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.xform-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  z-index: 3;
  width: 2px;
  margin-left: -1px;
  background: rgba(240, 196, 138, 0.95);
  box-shadow: 0 0 2cqw rgba(228, 163, 95, 0.4);
  cursor: ew-resize;
  touch-action: none;
}
.xform-handle:focus-visible {
  outline: none;
}
.xform-handle:focus-visible .xform-grip {
  box-shadow: 0 0 0 2px #fff;
}
.xform-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6cqw;
  height: 6cqw;
  translate: -50% -50%;
  border: 1px solid rgba(240, 196, 138, 0.8);
  border-radius: 50%;
  background: rgba(12, 10, 16, 0.94);
}
.xform-grip::before,
.xform-grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  translate: 0 -50%;
}
.xform-grip::before {
  left: 1.3cqw;
  border-width: 0.8cqw 1cqw 0.8cqw 0;
  border-color: transparent var(--copper) transparent transparent;
}
.xform-grip::after {
  right: 1.3cqw;
  border-width: 0.8cqw 0 0.8cqw 1cqw;
  border-color: transparent transparent transparent var(--copper);
}

/* ————————————————————————————————————————— B · quote + book ——— */
.qt {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 2.2cqw;
  padding: 2.8cqw 3.2cqw 2.2cqw;
  background: linear-gradient(180deg, #0e0e11, #08080a);
}
.qt-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 4cqw;
}
.qt-lede {
  max-width: 36cqw;
  margin: 0;
}
.qt-grid {
  position: relative;
  min-height: 0;
}
.qt-form {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.6cqw;
}
.qt fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.qt legend {
  float: left;
  width: 100%;
  margin: 0 0 1cqw;
  padding: 0;
  font: 700 max(12px, 1.26cqw) / 1.1 var(--display);
  letter-spacing: -0.01em;
  color: #ece8e0;
}
.qt legend + * {
  clear: both;
}
.qt-steps {
  display: grid;
  align-content: start;
  gap: 2.2cqw;
}
.taps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8cqw;
}
.taps label {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0.95cqw 1.3cqw;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.3cqw;
  background: rgba(255, 255, 255, 0.02);
  font: 400 max(11px, 1.08cqw) / 1 var(--mono);
  color: rgba(236, 232, 224, 0.76);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.taps label:hover {
  border-color: rgba(255, 255, 255, 0.24);
}
.taps label:has(input:checked) {
  border-color: rgba(228, 163, 95, 0.7);
  background: rgba(228, 163, 95, 0.1);
  color: #fff;
}
.taps label:has(input:focus-visible) {
  outline: 2px solid rgba(240, 196, 138, 0.9);
  outline-offset: 2px;
}
.taps input {
  width: max(11px, 1.05cqw);
  height: max(11px, 1.05cqw);
  margin: 0;
  accent-color: var(--copper);
}
.qt-out {
  display: flex;
  flex-direction: column;
  padding: 2.2cqw !important;
  border: 1px solid rgba(228, 163, 95, 0.28) !important;
  border-radius: 0.5cqw;
  background: linear-gradient(145deg, rgba(228, 163, 95, 0.1), rgba(228, 163, 95, 0) 55%), #0e0d11;
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
}
.qt-rec {
  margin: 0;
  font: 400 max(10px, 0.92cqw) / 1.3 var(--mono);
  color: var(--faint);
}
.qt-tier {
  margin: 1cqw 0 0;
  font: 800 4cqw/1 var(--display);
  letter-spacing: -0.04em;
}
.qt-price {
  margin: 0.4cqw 0 0;
  font: 800 2.8cqw/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
}
.qt-includes {
  display: grid;
  gap: 0.5cqw;
  margin: 1.6cqw 0 0;
  padding-left: 1.2em;
  font: 400 max(11px, 1.05cqw) / 1.45 var(--mono);
  color: var(--muted);
}
.qt-includes li::marker {
  color: var(--copper);
}
.qt-book {
  align-self: flex-start;
  margin-top: auto;
}
.qt-note {
  margin: 1.1cqw 0 0;
  font: 400 max(10px, 0.86cqw) / 1.45 var(--mono);
  color: var(--faint);
}
.qt-contact {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: calc((100% - 2.6cqw) / 2.35);
  display: flex;
  flex-direction: column;
  gap: 0.9cqw;
  padding: 2.2cqw;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5cqw;
  background: #0e0d11;
  opacity: 0;
  visibility: hidden;
  transform: translateX(1.5cqw);
  transition: opacity 0.45s ease, transform 0.6s var(--ease-out), visibility 0s linear 0.45s;
  overflow: auto;
}
.is-booking .qt-contact {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease 0.1s, transform 0.6s var(--ease-out) 0.1s;
}
.is-booking .qt-out {
  opacity: 0;
  transform: translateX(-1.5cqw);
  pointer-events: none;
}
.qt-contact-title {
  margin: 0;
  font: 800 2.5cqw/1 var(--display);
  letter-spacing: -0.035em;
}
.qt-selected {
  margin: 0;
  font: 500 max(10px, 0.95cqw) / 1 var(--mono);
  color: var(--copper);
}
.qt-contact label {
  display: grid;
  gap: 0.45cqw;
  font: 500 max(9px, 0.78cqw) / 1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.qt-contact input,
.qt-contact textarea {
  width: 100%;
  min-height: 30px;
  height: 3.1cqw;
  padding: 0 1cqw;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.3cqw;
  background: #08080a;
  font: 400 max(12px, 1.08cqw) / 1.4 var(--mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  outline: none;
}
.qt-contact textarea {
  height: 6.5cqw;
  padding: 0.8cqw 1cqw;
  resize: none;
}
.qt-contact input:focus,
.qt-contact textarea:focus {
  border-color: rgba(228, 163, 95, 0.6);
}
.qt-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8cqw;
  margin-top: 0.4cqw;
}
.form-status {
  min-height: 1.2em;
  margin: 0;
  font: 400 max(10px, 0.95cqw) / 1.4 var(--mono);
  color: var(--mint);
}
.qt-foot {
  display: flex;
  gap: 2.4cqw;
  padding-top: 1.4cqw;
  border-top: 1px solid var(--hair);
  font: 500 max(10px, 0.9cqw) / 1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--faint);
}
.qt-foot a:hover {
  color: var(--text);
}

/* ————————————————————————————————————————— projects ——— */
.proj {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
  background: #050506;
  transition: grid-template-columns 0.9s var(--ease);
}
.scr.is-focus .proj {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.64fr);
  transition-delay: 0.5s;
}
.proj-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}
.proj-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
/* Derby's capture is ultra-wide: headline in frame at rest, the kiosk centered once the panel opens.
   The slight bottom-anchored scale pushes the capture's browser bar out of frame. */
.proj-media > img.is-wide {
  object-position: 18% 50%;
  transform: scale(1.04);
  transform-origin: 50% 100%;
  transition: object-position 1.1s var(--ease);
}
.proj-media > img.crop-top {
  transform: scale(1.045);
  transform-origin: 50% 100%;
}
.scr.is-focus .proj-media > img.is-wide {
  object-position: 52% 50%;
  transition-delay: 0.45s;
}
.proj-info {
  min-width: 0;
  overflow: hidden;
  background: #0b0b0e;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
}
.proj-info-in {
  width: 39cqw;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3.6cqw 3.2cqw 3.2cqw;
  opacity: 0;
  transform: translateX(2cqw);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out);
}
.scr.is-focus .proj-info-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease 0.95s, transform 0.9s var(--ease-out) 0.9s;
}
.proj-idx {
  margin: 0;
  font: 500 max(10px, 0.9cqw) / 1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.proj-idx i {
  font-style: normal;
  opacity: 0.4;
}
.proj-name {
  margin: 1.6cqw 0 0;
  font: 800 5cqw/0.95 var(--display);
  letter-spacing: -0.045em;
  color: #f4f1ec;
  outline: none;
}
.proj-built {
  margin: 1.5cqw 0 0;
  font: 600 max(13px, 1.5cqw) / 1.35 var(--display);
  letter-spacing: -0.01em;
  color: rgba(236, 232, 224, 0.86);
}
.proj-facts {
  display: grid;
  gap: 1.5cqw;
  margin: auto 0 0;
  padding-top: 2.4cqw;
}
.proj-facts > div {
  padding-top: 1.2cqw;
  border-top: 1px solid var(--hair);
}
.proj-facts dt {
  font: 500 max(9px, 0.78cqw) / 1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.proj-facts dd {
  margin: 0.6cqw 0 0;
  font: 400 max(12px, 1.1cqw) / 1.5 var(--mono);
  color: var(--muted);
}
.proj-link,
.proj-note {
  margin: 2cqw 0 0;
  font: 500 max(11px, 1cqw) / 1.4 var(--mono);
}
.proj-link {
  align-self: flex-start;
  padding-bottom: 0.2cqw;
  border-bottom: 1px solid var(--accent);
  color: var(--text);
}
.proj-note {
  color: var(--faint);
}

/* WeirdChat — its own banner: violet galaxy, lavender heavy type, “enter the void”. */
.id-wc {
  display: grid;
  place-items: center;
  background:
    radial-gradient(48% 70% at 30% 42%, rgba(116, 64, 220, 0.55), rgba(116, 64, 220, 0) 70%),
    radial-gradient(40% 60% at 78% 68%, rgba(70, 36, 160, 0.5), rgba(70, 36, 160, 0) 70%),
    linear-gradient(160deg, #12082a, #1c0c3e 50%, #080312);
}
.wc-mark {
  font: 800 9cqw/1 var(--display);
  letter-spacing: 0.01em;
  color: #e0ceff;
  text-shadow: 0 0 2.4cqw rgba(184, 150, 255, 0.55), 0 0.35cqw 0 #5a32b0;
}
.wc-tag {
  position: absolute;
  right: 3cqw;
  bottom: 2.6cqw;
  font: 500 max(8px, 1cqw) / 1 var(--mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #cdb6ff;
}
.wc-stars {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.28cqw;
  height: 0.28cqw;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    8cqw 7cqw 0 #fff, 22cqw 15cqw 0 rgba(255, 255, 255, 0.6), 41cqw 6cqw 0 #fff, 57cqw 12cqw 0 rgba(255, 255, 255, 0.5),
    74cqw 5cqw 0 #fff, 90cqw 16cqw 0 rgba(255, 255, 255, 0.7), 12cqw 46cqw 0 rgba(255, 255, 255, 0.5), 84cqw 40cqw 0 #fff,
    33cqw 54cqw 0 rgba(255, 255, 255, 0.6), 64cqw 52cqw 0 rgba(255, 255, 255, 0.5), 6cqw 57cqw 0 #fff, 50cqw 30cqw 0 rgba(255, 255, 255, 0.35);
}

/* VOID — client system: identity only, never a fabricated screen. */
.id-void {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  background:
    radial-gradient(60% 55% at 50% 46%, rgba(142, 216, 240, 0.09), rgba(142, 216, 240, 0) 70%),
    #030507;
}
.void-mark {
  padding-left: 0.14em;
  font: 800 14cqw/0.85 var(--display);
  letter-spacing: 0.14em;
  /* Stroke under an opaque fill: only the outer half shows, so overlapping glyph contours stay hidden. */
  color: #030507;
  -webkit-text-stroke: max(2px, 0.24cqw) #8ed8f0;
  paint-order: stroke fill;
}
.void-sub {
  font: 500 max(8px, 1.05cqw) / 1 var(--mono);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(142, 216, 240, 0.85);
}
.void-tags {
  display: flex;
  gap: 1.6cqw;
  font: 500 max(7px, 0.82cqw) / 1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(142, 216, 240, 0.5);
}
.void-tags span + span::before {
  content: "";
  display: inline-block;
  width: 2.4cqw;
  height: 1px;
  margin-right: 1.6cqw;
  vertical-align: middle;
  background: rgba(142, 216, 240, 0.3);
}
.void-lock {
  position: absolute;
  bottom: 2.8cqw;
  padding: 0.6cqw 1.2cqw;
  border: 1px solid rgba(236, 232, 224, 0.14);
  border-radius: 999px;
  font: 500 max(7px, 0.8cqw) / 1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 232, 224, 0.42);
}

/* HIM — the real mark on black. */
.id-him {
  display: grid;
  place-items: center;
  background:
    radial-gradient(1px 1px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 31% 71%, #dfe6ff, transparent),
    radial-gradient(1.5px 1.5px at 48% 14%, #fff, transparent),
    radial-gradient(1px 1px at 64% 83%, #fff, transparent),
    radial-gradient(1px 1px at 77% 31%, #cfd8ff, transparent),
    radial-gradient(1.5px 1.5px at 88% 62%, #fff, transparent),
    radial-gradient(1px 1px at 22% 48%, #fff, transparent),
    radial-gradient(1px 1px at 93% 12%, #fff, transparent),
    radial-gradient(1px 1px at 6% 88%, #e6e9ff, transparent),
    radial-gradient(1px 1px at 57% 44%, #fff, transparent),
    radial-gradient(55% 60% at 50% 48%, rgba(70, 48, 120, 0.32), rgba(10, 8, 30, 0.2) 55%, transparent 80%),
    #010103;
}
.him-mark {
  font: 800 28cqh/1 "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff1b8 8%, #f2c14e 38%, #a8741a 62%, #f6d77a 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 2.2cqh rgba(242, 193, 78, 0.45));
}

/* ——— depth window: a scene behind the glass of the three main screens ——— */
.scr-depth {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  --dc: 228, 163, 95;
  --dc2: 140, 90, 255;
}
[data-scr="build"] .scr-depth { --dc: 90, 170, 255; --dc2: 60, 230, 210; }
[data-scr="quote"] .scr-depth { --dc: 242, 193, 78; --dc2: 255, 110, 80; }
.scr-depth > div {
  position: absolute;
  inset: -12%;
  will-change: transform;
}
.d-grid {
  position: absolute;
  left: -40%;
  right: -40%;
  top: 52%;
  height: 120%;
  transform-origin: 50% 0;
  transform: perspective(28cqw) rotateX(72deg);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
}
.d-grid::before {
  content: "";
  position: absolute;
  inset: -100% 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(var(--dc), 0.75) 0 2px, transparent 2px 4.5cqw),
    repeating-linear-gradient(0deg, rgba(var(--dc), 0.75) 0 2px, transparent 2px 4.5cqw);
  animation: d-run 3.2s linear infinite;
}
@keyframes d-run { to { transform: translateY(4.5cqw); } }
.d-sun {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 70cqw;
  height: 22cqw;
  transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--dc), 0.6), transparent 70%);
}
.d-aur {
  position: absolute;
  width: 70cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--dc), 0.42), rgba(var(--dc), 0.12) 55%, transparent);
  animation: d-drift 18s ease-in-out infinite alternate;
}
.d-aur.a1 { left: -18%; top: -40%; }
.d-aur.a2 { right: -22%; top: -10%; width: 60cqw; background: radial-gradient(closest-side, rgba(var(--dc2), 0.4), rgba(var(--dc2), 0.1) 55%, transparent); animation-duration: 23s; animation-delay: -7s; }
.d-aur.a3 { left: 20%; bottom: -55%; width: 55cqw; animation-duration: 27s; animation-delay: -13s; opacity: 0.7; }
@keyframes d-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12cqw, 6cqh, 0) scale(1.18); }
  100% { transform: translate3d(-8cqw, 10cqh, 0) scale(0.92); }
}
/* An orbital emblem floating inside the glass: a lit core and three tilted rings, each truly turning in 3D. */
.d-orbit {
  position: absolute;
  right: 9%;
  top: 18%;
  width: 40cqh;
  aspect-ratio: 1;
}
[data-scr="build"] .d-orbit { right: auto; left: 3%; top: 56%; width: 30cqh; }
[data-scr="quote"] .d-orbit { right: 2%; top: 50%; width: 30cqh; }
.d-core {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(var(--dc), 0.95) 30%, rgba(var(--dc), 0.25) 62%, transparent 72%);
  box-shadow: 0 0 6cqh rgba(var(--dc), 0.7);
  animation: d-pulse 4.5s ease-in-out infinite;
}
@keyframes d-pulse { 50% { transform: scale(1.12); } }
.d-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 0.35cqh solid rgba(var(--dc), 0.75);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-bottom-color: transparent;
  box-shadow: 0 0 2cqh rgba(var(--dc), 0.55), inset 0 0 2cqh rgba(var(--dc), 0.35);
}
.d-ring.r1 { animation: d-o1 9s linear infinite; }
.d-ring.r2 { inset: 8%; animation: d-o2 13s linear infinite; border-color: rgba(var(--dc2), 0.7); border-top-color: #fff; border-bottom-color: transparent; }
.d-ring.r3 { inset: -10%; animation: d-o3 17s linear infinite; opacity: 0.6; }
@keyframes d-o1 { from { transform: perspective(80cqh) rotateX(68deg) rotateY(8deg) rotateZ(0); } to { transform: perspective(80cqh) rotateX(68deg) rotateY(8deg) rotateZ(1turn); } }
@keyframes d-o2 { from { transform: perspective(80cqh) rotateX(20deg) rotateY(62deg) rotateZ(0); } to { transform: perspective(80cqh) rotateX(20deg) rotateY(62deg) rotateZ(-1turn); } }
@keyframes d-o3 { from { transform: perspective(80cqh) rotateX(-55deg) rotateY(-30deg) rotateZ(0); } to { transform: perspective(80cqh) rotateX(-55deg) rotateY(-30deg) rotateZ(1turn); } }
.d-sweep {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 18cqw;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07) 45%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.07) 55%, transparent);
  transform: translateX(-30cqw) skewX(-18deg);
  animation: d-sweep 7s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}
[data-scr="build"] .d-sweep { animation-delay: -2.3s; }
[data-scr="quote"] .d-sweep { animation-delay: -4.6s; }
@keyframes d-sweep { 0%, 55% { transform: translateX(-30cqw) skewX(-18deg); } 100% { transform: translateX(140cqw) skewX(-18deg); } }
.d-near i {
  position: absolute;
  width: 0.8cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(var(--dc));
  box-shadow: 0 0 1.2cqw rgba(var(--dc), 0.9);
  opacity: 0;
  animation: d-float 7s linear infinite;
}
.d-near i:nth-child(1) { left: 14%; top: 80%; animation-delay: 0s; }
.d-near i:nth-child(2) { left: 32%; top: 90%; animation-delay: -1.6s; width: 0.35cqw; }
.d-near i:nth-child(3) { left: 51%; top: 85%; animation-delay: -3.1s; }
.d-near i:nth-child(4) { left: 68%; top: 92%; animation-delay: -4.4s; width: 0.3cqw; }
.d-near i:nth-child(5) { left: 83%; top: 78%; animation-delay: -5.7s; }
.d-near i:nth-child(6) { left: 24%; top: 70%; animation-delay: -2.4s; width: 0.3cqw; }
.d-near i:nth-child(7) { left: 61%; top: 74%; animation-delay: -6.2s; width: 0.4cqw; }
.d-near i:nth-child(8) { left: 92%; top: 88%; animation-delay: -0.8s; width: 0.3cqw; }
@keyframes d-float {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(-55cqh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .d-grid::before, .d-ring, .d-near i, .d-aur, .d-core, .d-sweep { animation: none; }
}
/* The content sits on the glass, in front of the scene. */
[data-scr="hero"] > .scr-inner,
[data-scr="build"] > .scr-inner,
[data-scr="quote"] > .scr-inner {
  background: transparent;
}
.him-tags {
  position: absolute;
  bottom: 2.6cqw;
  left: 0;
  right: 0;
  text-align: center;
  font: 500 max(7px, 0.86cqw) / 1 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(242, 193, 78, 0.7);
}

/* ————————————————————————————————————————— focus controls ——— */
.hud[hidden] {
  display: none;
}
.hud-back {
  position: fixed;
  top: 74px;
  left: clamp(16px, 2.4vw, 32px);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.72);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  animation: hud-in 0.6s var(--ease-out) 0.5s both;
}
.hud-back:hover {
  border-color: rgba(255, 255, 255, 0.32);
}
.hud-back kbd {
  font: inherit;
  font-size: 9.5px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: var(--faint);
}
.hud-nav {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 3vh, 28px);
  z-index: 95;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: hud-in 0.6s var(--ease-out) 0.6s both;
}
.hud-nav[hidden] {
  display: none;
}
.hud-step {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.72);
  font: 500 13px/1 var(--mono);
  transition: border-color 0.2s;
}
.hud-step:hover {
  border-color: rgba(255, 255, 255, 0.4);
}
.hud-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 200px;
  justify-content: center;
  margin: 0;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.hud-title b {
  font: 700 14px/1 var(--display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}
@keyframes hud-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ————————————————————————————————————————— small-screen index ——— */
.m-index {
  display: none;
}

/* ————————————————————————————————————————— terminal (Ctrl/Cmd+K) ——— */
.term-fab {
  display: none;
}
.term-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(4, 4, 5, 0.55);
}
.term-overlay[hidden] {
  display: none;
}
.term-sheet {
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #0b0b0e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.term-top {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--hair);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.term-close {
  color: var(--ice);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.term-screen {
  height: 220px;
  overflow: auto;
  padding: 0.95rem;
  font-size: 0.84rem;
  color: #c5e7f7;
}
.term-line {
  margin-bottom: 0.3rem;
}
.term-line .ok {
  color: var(--mint);
}
.term-line .hot {
  color: var(--copper);
}
.term-line .dim,
.term-form .dim {
  color: rgba(255, 255, 255, 0.3);
}
.term-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--hair);
}
.term-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #ffe7c6;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.9rem 0.9rem;
}
.chips button {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--ice);
}

/* ————————————————————————————————————————— docked sheets (small screens, no-WebGL) ——— */
.scr.is-docked {
  position: fixed;
  inset: 0;
  /* Beats the inline depth order the scene writes on every screen. */
  z-index: 2000 !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  visibility: visible !important;
  container-type: inline-size;
  animation: sheet-in 0.5s var(--ease-out) both;
}
.scr.is-docked .scr-glass,
.scr.is-docked .scr-shade {
  display: none;
}
.scr.is-docked .scr-inner {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}
.scr.is-docked .proj {
  display: block;
}
.scr.is-docked .proj-media {
  height: 46svh;
}
.scr.is-docked .proj-info-in {
  width: auto;
  height: auto;
  padding: 26px 20px 48px;
  opacity: 1;
  transform: none;
}
.scr.is-docked .proj-idx {
  font-size: 11px;
}
.scr.is-docked .proj-name {
  margin-top: 12px;
  font-size: 40px;
}
.scr.is-docked .proj-built {
  margin-top: 12px;
  font-size: 17px;
}
.scr.is-docked .proj-facts {
  gap: 14px;
  padding-top: 22px;
}
.scr.is-docked .proj-facts > div {
  padding-top: 12px;
}
.scr.is-docked .proj-facts dd {
  font-size: 13px;
}
.scr.is-docked .proj-link,
.scr.is-docked .proj-note {
  margin-top: 20px;
  font-size: 12px;
}
.scr.is-docked .wc-mark {
  font-size: 15cqw;
}
.scr.is-docked .void-mark {
  font-size: 24cqw;
}
.scr.is-docked .void-sub,
.scr.is-docked .void-tags,
.scr.is-docked .wc-tag,
.scr.is-docked .him-tags,
.scr.is-docked .void-lock {
  font-size: 10px;
}
.scr.is-docked .build,
.scr.is-docked .qt {
  display: block;
  padding: 72px 20px 48px;
}
.scr.is-docked .s-eyebrow {
  font-size: 11px;
}
.scr.is-docked .s-title {
  margin-top: 12px;
  font-size: 34px;
}
.scr.is-docked .s-body {
  margin-top: 14px;
  font-size: 13px;
}
.scr.is-docked .s-hint {
  margin-top: 16px;
}
.scr.is-docked .xform {
  height: 62svh;
  margin-top: 22px;
}
.scr.is-docked .xform-stage {
  border-radius: 8px;
}
.scr.is-docked .qt-head {
  display: block;
}
.scr.is-docked .qt-lede {
  max-width: none;
  margin-top: 12px;
}
.scr.is-docked .qt-grid {
  margin-top: 26px;
}
.scr.is-docked .qt-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  height: auto;
}
.scr.is-docked .qt-steps {
  gap: 22px;
}
.scr.is-docked .qt legend {
  margin-bottom: 10px;
  font-size: 16px;
}
.scr.is-docked .taps {
  gap: 8px;
}
.scr.is-docked .taps label {
  gap: 8px;
  padding: 11px 13px;
  border-radius: 6px;
  font-size: 13px;
}
.scr.is-docked .taps input {
  width: 14px;
  height: 14px;
}
.scr.is-docked .qt-out,
.scr.is-docked .qt-contact {
  padding: 20px !important;
  border-radius: 10px;
}
.scr.is-docked .qt-rec,
.scr.is-docked .qt-note,
.scr.is-docked .qt-selected,
.scr.is-docked .form-status {
  font-size: 12px;
}
.scr.is-docked .qt-tier {
  margin-top: 10px;
  font-size: 34px;
}
.scr.is-docked .qt-price {
  margin-top: 4px;
  font-size: 26px;
}
.scr.is-docked .qt-includes {
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
}
.scr.is-docked .qt-book {
  margin-top: 18px;
}
.scr.is-docked .h-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
}
.scr.is-docked .qt-contact {
  position: static;
  width: auto;
  display: none;
  gap: 12px;
  transform: none;
}
.scr.is-docked.is-booking .qt-contact {
  display: flex;
}
.scr.is-docked.is-booking .qt-out {
  display: none;
}
.scr.is-docked .qt-contact-title {
  font-size: 28px;
}
.scr.is-docked .qt-contact label {
  gap: 6px;
  font-size: 10px;
}
.scr.is-docked .qt-contact input {
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
}
.scr.is-docked .qt-contact textarea {
  height: 120px;
  padding: 10px 12px;
  font-size: 15px;
}
.scr.is-docked .qt-contact-actions {
  gap: 8px;
}
.scr.is-docked .qt-foot {
  margin-top: 28px;
  padding-top: 16px;
  gap: 20px;
  font-size: 12px;
}
/* The studio isolates its own stacking; lift the whole room so a docked sheet covers the page. */
.sheet-open .studio {
  z-index: 90;
}
.sheet-open .hud-back {
  top: 14px;
  left: 14px;
}
.sheet-open .topbar {
  opacity: 0;
  pointer-events: none;
}
.sheet-open .hud-nav {
  display: none;
}

/* ————————————————————————————————————————— small screens ——— */
@media (max-width: 760px) {
  .topbar {
    height: 54px;
  }
  .slots,
  [data-sound-toggle] {
    display: none;
  }
  .studio {
    height: min(74svh, calc(108vw + 40px));
    min-height: 400px;
  }
  .studio-hint,
  .studio-egg {
    display: none;
  }
  .cap {
    font-size: 8.5px;
    letter-spacing: 0.14em;
    gap: 0.6em;
  }
  .m-index {
    display: block;
    padding: 4px 16px 56px;
  }
  .m-paths {
    margin-bottom: 26px;
  }
  .m-paths .paths-label {
    margin-bottom: 12px;
    font-size: 10.5px;
  }
  .m-paths .path {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 15px 4px 15px 0;
  }
  .m-paths .path::before {
    width: 2px;
  }
  .m-paths .path[aria-selected="true"] {
    padding-left: 12px;
  }
  .m-paths .path-num {
    font-size: 9.5px;
  }
  .m-paths .path-title {
    font-size: 16px;
  }
  .m-paths .path-arrow {
    font-size: 14px;
  }
  .m-paths .path-out {
    gap: 12px 18px;
    margin-top: 16px;
  }
  .m-paths .path-build {
    font-size: 13px;
  }
  .m-paths .path-facts {
    gap: 22px;
  }
  .m-paths .path-facts dt {
    font-size: 9.5px;
  }
  .m-paths .path-facts dd {
    margin-top: 6px;
    font-size: 16px;
  }
  .m-paths .path-go {
    font-size: 14px;
  }
  .m-paths .paths-hint {
    margin-top: 12px;
    font-size: 11px;
  }
  .m-cards {
    display: grid;
    gap: 8px;
  }
  .m-card {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 3px 10px;
    padding: 15px 16px;
    border: 1px solid var(--hair);
    border-radius: 10px;
    background: linear-gradient(180deg, #111114, #0b0b0d);
    text-align: left;
  }
  .m-card b {
    grid-row: span 2;
    font: 500 11px/1.6 var(--mono);
    color: var(--faint);
  }
  .m-card span {
    font: 700 17px/1.2 var(--display);
  }
  .m-card em {
    font: 400 12px/1.45 var(--mono);
    font-style: normal;
    color: var(--muted);
  }
  .m-card-cta {
    border-color: rgba(228, 163, 95, 0.45);
  }
  .m-card-cta b {
    color: var(--copper);
  }
  .m-foot {
    display: flex;
    gap: 22px;
    margin-top: 22px;
    font-size: 12px;
    color: var(--faint);
  }
  /* The hero monitor carries the headline alone at this size. */
  body:not(.gyro-mode) .hero {
    padding: 3.6cqw 5cqw 4.6cqw;
  }
  body:not(.gyro-mode) .hero-top {
    padding-bottom: 2.4cqw;
    font-size: 2.3cqw;
  }
  body:not(.gyro-mode) .hero-top > span:nth-child(2) {
    display: none;
  }
  body:not(.gyro-mode) .hero-main {
    grid-template-columns: 1fr;
    padding-top: 3cqw;
  }
  body:not(.gyro-mode) .hero-title {
    font-size: 9.6cqw;
  }
  body:not(.gyro-mode) .hero-sub {
    display: none;
  }
  body:not(.gyro-mode) .hero-cta {
    gap: 2cqw;
    margin-top: 4cqw;
  }
  body:not(.gyro-mode) .hero-cta .h-btn {
    height: 8cqw;
    min-height: 0;
    padding: 0 3.4cqw;
    font-size: 3cqw;
    border-radius: 0.8cqw;
  }
  body:not(.gyro-mode) .fin-line {
    font-size: 5cqw;
  }
  body:not(.gyro-mode) .fin-beat {
    font-size: 3.6cqw;
  }
  body:not(.gyro-mode) .fin-last {
    font-size: 6.6cqw;
  }
  body:not(.gyro-mode) .fin-actions .h-btn {
    height: 7cqw;
    font-size: 2.8cqw;
  }
}

/* ————————————————————————————————————————— no WebGL: a flat wall of the same screens ——— */
.no-gl.studio {
  height: auto;
  min-height: 0;
  padding: 76px 16px 24px;
}
.no-gl .studio-gl,
.no-gl .studio-labels,
.no-gl .studio-hint,
.no-gl .studio-egg {
  display: none;
}
.no-gl .studio-dom {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}
.no-gl .scr {
  position: relative;
  width: auto;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
}
.no-gl .scr-hero {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
}
.no-gl .scr.is-docked {
  position: fixed;
}
@media (max-width: 760px) {
  .no-gl .studio-dom {
    display: block;
  }
  .no-gl .scr:not(.scr-hero):not(.is-docked) {
    display: none;
  }
}

/* ————————————————————————————————————————— reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  .studio-curtain,
  .proj,
  .proj-info-in,
  .scr-shade,
  .qt-out,
  .qt-contact {
    transition: none !important;
  }
  .slots-dot,
  .path-out,
  .scr.is-docked,
  .hud-back,
  .hud-nav {
    animation: none !important;
  }
  .is-finale .hero-finale > * {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
  }
}

/* ————————————————————————————————————————— hero fits its glass ——— */
.hero-main {
  align-items: center;
}
@container (max-aspect-ratio: 1.9) {
  .hero-sub { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
}
@container (max-height: 460px) {
  .hero { padding: 2.6cqw 3.4cqw 2.8cqw; }
  .hero-top { padding-bottom: 1.2cqw; }
  .hero-main { padding-top: 1.6cqw; gap: 3.4cqw; }
  .hero-sub { display: none; }
  .hero-title { font-size: 6.9cqw; }
  .hero-cta { margin-top: 3cqw; }
  .paths-hint { display: none; }
  .path { padding-block: 1.5cqw; }
  .path-title { font-size: 1.8cqw; }
}

/* ————————————————————————————————————————— A + B: the two working screens announce themselves ——— */
.scr[data-scr="build"] { --acc: #7fd4ff; --acc-glow: rgba(90, 190, 255, 0.55); }
.scr[data-scr="quote"] { --acc: #ffb15c; --acc-glow: rgba(255, 160, 70, 0.55); }
.scr-attract {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.6cqw;
  padding: 6cqw 6.5cqw;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 15% 100%, color-mix(in srgb, var(--acc) 26%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.3) 0%, rgba(6, 6, 8, 0.94) 38%, rgba(6, 6, 8, 0.98) 100%);
  transition: opacity 0.5s ease;
}
.scr-attract i {
  font: 600 3cqw/1 var(--mono);
  font-style: normal;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acc);
}
.scr-attract b {
  font: 800 11.5cqw/0.9 var(--display);
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 0 6cqw var(--acc-glow);
}
.scr-attract em {
  display: inline-flex;
  align-items: center;
  gap: 1.4cqw;
  align-self: flex-start;
  margin-top: 1.4cqw;
  padding: 1.8cqw 3cqw;
  border-radius: 99px;
  font: 700 3.2cqw/1 var(--display);
  font-style: normal;
  color: #0a0a0c;
  background: var(--acc);
  box-shadow: 0 0 5cqw var(--acc-glow);
  animation: attract-cta 2.6s ease-in-out infinite;
}
.scr-attract::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0.5cqw solid var(--acc);
  opacity: 0.55;
  animation: attract-edge 2.6s ease-in-out infinite;
}
@keyframes attract-cta {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1.2cqw); }
}
@keyframes attract-edge {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.8; }
}
.scr:hover .scr-attract,
.scr.is-focus .scr-attract,
.is-focused .scr-attract,
.is-finale .scr-attract {
  opacity: 0;
}
.cap[data-cap="build"],
.cap[data-cap="quote"] {
  padding: 0.75em 1.2em;
  border-radius: 99px;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.16em;
  color: #fff;
  background: rgba(8, 8, 10, 0.8);
  border: 1px solid var(--acc);
  box-shadow: 0 0 22px var(--acc-glow);
}
.cap[data-cap="build"] { --acc: #7fd4ff; --acc-glow: rgba(90, 190, 255, 0.45); }
.cap[data-cap="quote"] { --acc: #ffb15c; --acc-glow: rgba(255, 160, 70, 0.45); }
.cap[data-cap="build"] b,
.cap[data-cap="quote"] b {
  color: var(--acc);
}

/* ————————————————————————————————————————— the phone ——— */
.scr-phone {
  background: #000;
  border-radius: 10.3% / 4.7%;
}
.scr-phone *,
.scr-phone *::before,
.scr-phone *::after {
  box-sizing: border-box;
}
.phone-app,
.admin-login input,
.admin-login .btn {
  min-width: 0;
  width: 100%;
}
.phone-ui {
  display: flex;
  flex-direction: column;
  padding: 4cqw 6cqw 6cqw;
  overflow: auto;
  background:
    radial-gradient(120% 60% at 20% 0%, rgba(110, 140, 255, 0.45), transparent 60%),
    radial-gradient(100% 50% at 100% 100%, rgba(255, 120, 80, 0.3), transparent 60%),
    linear-gradient(180deg, #0c1024, #050507);
  color: #fff;
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 600 4.2cqw/1 var(--display);
}
.phone-island {
  width: 28cqw;
  height: 8cqw;
  border-radius: 99px;
  background: #000;
}
.phone-lock {
  text-align: center;
  margin-top: 12cqw;
}
.phone-date {
  margin: 0;
  font: 600 5cqw/1 var(--display);
  color: rgba(255, 255, 255, 0.75);
}
.phone-clock {
  margin: 1cqw 0 0;
  font: 800 26cqw/1 var(--display);
  letter-spacing: -0.04em;
}
.phone-note {
  display: inline-flex;
  align-items: center;
  gap: 2.4cqw;
  margin: 6cqw 0 0;
  padding: 3cqw 5cqw;
  border-radius: 6cqw;
  font: 500 3.6cqw/1.2 var(--mono);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}
.phone-dot {
  width: 2.4cqw;
  height: 2.4cqw;
  border-radius: 50%;
  background: #6dffb0;
  box-shadow: 0 0 3cqw #6dffb0;
}
.phone-app:empty { display: none; }
.phone-app {
  margin-top: 7cqw;
  padding: 6cqw;
  border-radius: 6cqw;
  background: rgba(10, 10, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  font-size: 13px;
}
.scr.scr-phone.is-docked { border-radius: 0; }
.scr-phone.is-focus .phone-lock,
.scr-phone.is-docked .phone-lock { margin-top: 4cqw; }
.scr-phone.is-focus .phone-clock,
.scr-phone.is-docked .phone-clock { font-size: 14cqw; }
.phone-app h3 { margin: 0 0 12px; font: 800 22px/1 var(--display); }
.admin-login { display: grid; gap: 10px; }
.admin-login input {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: 500 15px var(--mono);
}
.admin-login .btn,
.phone-app .btn {
  height: 46px;
  border-radius: 12px;
  font: 700 15px var(--display);
  background: #fff;
  color: #000;
}
.phone-app .btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; padding: 0 16px; }
.phone-app .actions { display: flex; gap: 8px; }
.admin-err { min-height: 1em; margin: 10px 0 0; color: #ff8a7a; font: 500 12px var(--mono); }
.admin-sub { margin: -6px 0 10px; color: rgba(255, 255, 255, 0.5); font: 500 11px var(--mono); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-kpi { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.admin-kpi b { display: block; font: 800 22px/1 var(--display); }
.admin-kpi span { font: 500 10px var(--mono); color: rgba(255, 255, 255, 0.55); text-transform: uppercase; letter-spacing: 0.1em; }
.admin-sec { margin: 18px 0 8px; font: 600 10px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.admin-tips { margin: 0; padding-left: 18px; font: 400 12px/1.5 var(--mono); color: rgba(255, 255, 255, 0.8); }
.admin-bars { display: flex; align-items: flex-end; gap: 2px; height: 70px; }
.admin-bars i { flex: 1; min-height: 2px; border-radius: 2px; background: linear-gradient(180deg, #9fb4ff, #5a6fd8); }
.admin-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font: 400 12px var(--mono); }

/* ————————————————————————————————————————— visitors ——— */
.visitors {
  display: none;
  align-items: center;
  gap: 0.5em;
  margin: 0;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  color: rgba(236, 232, 224, 0.6);
}
.visitors.is-on { display: inline-flex; }
.visitors b { color: #fff; font-variant-numeric: tabular-nums; }
.visitors-eye { width: 6px; height: 6px; border-radius: 50%; background: #9fb4ff; box-shadow: 0 0 8px #9fb4ff; }
.m-admin { font: inherit; color: inherit; }

/* ————————————————————————————————————————— mobile: the room is the app ——— */
@keyframes m-bob { 50% { transform: translateY(5px); } }
@media (max-width: 760px) {
  .studio {
    height: 100svh;
    min-height: 560px;
    touch-action: pan-y;
  }
  .visitors { font-size: 10px; }
  .m-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(12, 12, 15, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
  }
  .m-dock.is-away,
  .sheet-open .m-dock,
  .is-focused .m-dock {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
  }
  .m-dock button {
    position: relative;
    display: grid;
    gap: 3px;
    padding: 13px 14px;
    border-radius: 15px;
    text-align: left;
    overflow: hidden;
  }
  .m-dock button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--acc);
    background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--acc) 30%, transparent), transparent 70%);
    animation: attract-edge 2.6s ease-in-out infinite;
  }
  .m-dock button:nth-child(2)::before { animation-delay: 1.3s; }
  .m-dock button:active { transform: scale(0.97); }
  .m-dock b {
    position: relative;
    font: 600 9.5px/1 var(--mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--acc);
  }
  .m-dock span {
    position: relative;
    font: 800 17px/1.1 var(--display);
    color: #fff;
  }
  .m-dock-build { --acc: #7fd4ff; }
  .m-dock-quote { --acc: #ffb15c; }
  .m-scroll {
    position: absolute;
    left: 50%;
    bottom: calc(108px + env(safe-area-inset-bottom));
    translate: -50% 0;
    z-index: 16;
    font: 500 10px/1 var(--mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(236, 232, 224, 0.5);
    white-space: nowrap;
    animation: m-bob 2.2s ease-in-out infinite;
  }
  .scr-attract b { font-size: 13cqw; }
  .cap[data-cap="build"],
  .cap[data-cap="quote"] { font-size: 9px; padding: 0.6em 0.9em; }
  .m-index { padding-bottom: 120px; }
  .m-card-cta { box-shadow: 0 0 30px rgba(255, 160, 70, 0.18); }
}
@media (min-width: 761px) {
  .m-dock, .m-scroll { display: none; }
}
/* ————————————————————————————————————————— phones: the phone is the site ——— */
.phone-home,
.m-enter,
.app-home {
  display: none;
}
@keyframes enter-bob { 50% { transform: translateY(-4px); } }
@keyframes phone-land { from { filter: brightness(1.6); } }

.ph-widget {
  padding: 18px 18px 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.ph-w-kicker { margin: 0; font: 600 10px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.ph-w-title { margin: 10px 0 0; font: 800 27px/1 var(--display); letter-spacing: -0.03em; color: #fff; }
.ph-w-body { margin: 10px 0 0; font: 400 13px/1.45 var(--mono); color: rgba(255, 255, 255, 0.7); }

.ph-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 8px;
}
.ph-app {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.ph-app i {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 17px;
  font: 800 26px/1 var(--display);
  font-style: normal;
  color: #fff;
  background: linear-gradient(140deg, var(--a2), var(--a1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 20px color-mix(in srgb, var(--a1) 45%, transparent);
  transition: transform 0.15s ease;
}
.ph-app:active i { transform: scale(0.9); }
.ph-app span { font: 500 11.5px/1.1 var(--display); text-align: center; }
.phone-mode .ph-widget,
.phone-mode .ph-app,
.phone-mode .ph-desk {
  animation: ph-pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) backwards;
}
.phone-mode .ph-widget { animation-delay: 0.05s; }
.phone-mode .ph-grid .ph-app:nth-child(1) { animation-delay: 0.12s; }
.phone-mode .ph-grid .ph-app:nth-child(2) { animation-delay: 0.16s; }
.phone-mode .ph-grid .ph-app:nth-child(3) { animation-delay: 0.2s; }
.phone-mode .ph-grid .ph-app:nth-child(4) { animation-delay: 0.24s; }
.phone-mode .ph-grid .ph-app:nth-child(5) { animation-delay: 0.28s; }
.phone-mode .ph-grid .ph-app:nth-child(6) { animation-delay: 0.32s; }
.phone-mode .ph-grid .ph-app:nth-child(7) { animation-delay: 0.36s; }
.phone-mode .ph-grid .ph-app:nth-child(8) { animation-delay: 0.4s; }
.phone-mode .ph-dock .ph-app { animation-delay: 0.46s; }
@keyframes ph-pop { from { opacity: 0; transform: scale(0.6) translateY(12px); } }

.ph-dock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding: 8px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.ph-app-big {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.25);
}
.ph-app-big i { width: 44px; height: 44px; border-radius: 13px; font-size: 20px; flex: none; }
.ph-app-big span { font: 700 14px/1.1 var(--display); text-align: left; }
.ph-desk {
  align-self: center;
  padding: 6px 12px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}
@keyframes app-open { from { opacity: 0; transform: scale(0.86) !important; border-radius: 40px; } }
@keyframes app-close { to { opacity: 0; transform: scale(0.9); } }
@media (max-width: 760px) {
  .studio:not(.no-gl) + .m-index,
  .cap,
  .visitors {
    display: none !important;
  }
  .phone-mode .hud,
  .app-open .hud {
    display: none !important;
  }

  /* The room view: one clear way back in. */
  .m-enter {
    position: fixed;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom));
    translate: -50% 0;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 99px;
    font: 700 16px/1 var(--display);
    color: #0a0a0c;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 18px 50px rgba(0, 0, 0, 0.6);
    animation: enter-bob 2.4s ease-in-out infinite;
  }
  .phone-mode .m-enter,
  .is-focused .m-enter {
    display: none;
  }

  /* The phone, docked full screen. */
  .scr.scr-phone.is-docked {
    border-radius: 0;
    animation: phone-land 0.45s ease-out both;
  }
  .scr-phone.is-docked .phone-ui {
    gap: 18px;
    padding: calc(env(safe-area-inset-top) + 22px) 20px calc(env(safe-area-inset-bottom) + 22px);
    overflow-y: auto;
    background:
      radial-gradient(120% 55% at 10% 0%, rgba(110, 140, 255, 0.5), transparent 60%),
      radial-gradient(90% 45% at 100% 100%, rgba(255, 120, 60, 0.38), transparent 60%),
      linear-gradient(180deg, #0c1024 0%, #08080c 60%, #050507 100%);
  }
  .scr-phone.is-docked .phone-status { display: none; }
  .scr-phone.is-docked .phone-lock {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 2px 14px;
    text-align: left;
  }
  .scr-phone.is-docked .phone-date,
  .scr-phone.is-docked .phone-note { grid-column: 2; }
  .scr-phone.is-docked .phone-clock { grid-column: 1; grid-row: 1 / span 2; margin: 0; font-size: 58px; line-height: 0.9; }
  .scr-phone.is-docked .phone-date { font-size: 13px; }
  .scr-phone.is-docked .phone-note { margin: 0; padding: 0; font-size: 11px; background: none; backdrop-filter: none; color: rgba(255, 255, 255, 0.65); }
  .scr-phone.is-docked .phone-dot { width: 7px; height: 7px; box-shadow: 0 0 8px #6dffb0; }
  .scr-phone.is-docked .phone-home {
    display: flex;
    flex-direction: column;
    gap: 22px;
    flex: 1;
  }
  .scr-phone.is-docked .phone-ui:not(.is-admin) .phone-app { display: none; }
  .scr-phone.is-docked .phone-ui.is-admin .phone-home { display: none; }
  .scr-phone.is-docked .phone-app { margin: 0; }

  /* Apps open over the phone, like apps. */
  .scr.is-app {
    z-index: 2100 !important;
    animation: app-open 0.38s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  }
  .scr.is-app.is-closing { animation: app-close 0.26s ease-in both; }
  .scr.is-app .scr-attract,
  .scr.is-app .scr-hit { display: none; }
  .scr.is-app .scr-inner { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* An open app is a full screen: nothing from the room or other screens shows through its text. */
  .scr.is-app .scr-depth { opacity: 0.16; }

  .app-home {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    translate: -50% 0;
    z-index: 2300;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 99px;
    font: 700 14px/1 var(--display);
    color: #fff;
    background: rgba(20, 20, 24, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
  .app-home::before { content: "⌂"; font-size: 16px; }
  .app-home::after { content: "Home"; }
  .app-home[hidden] { display: none; }
}
/* ————————————————————————————————————————— phones: logo splash ——— */
.m-splash { display: none; }
@keyframes splash-in { from { opacity: 0; transform: translateY(10px) scale(0.92); } }
@media (max-width: 760px) {
  .m-splash {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 18px;
    background: #050506;
    color: #fff;
    transition: opacity 0.9s ease, filter 0.9s ease;
  }
  .m-splash.is-gone {
    opacity: 0;
    filter: blur(8px);
    pointer-events: none;
  }
  .m-splash-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(228, 163, 95, 0.55);
    color: #e4a35f;
    box-shadow: 0 0 40px rgba(228, 163, 95, 0.25);
    animation: splash-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .m-splash-mark svg { width: 34px; height: 34px; }
  .m-splash-word {
    font: 600 15px/1 var(--mono);
    letter-spacing: 0.5em;
    margin-right: -0.5em;
    text-transform: uppercase;
    animation: splash-in 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .m-splash, .m-splash-mark, .m-splash-word { transition: none; animation: none; }
}
/* ————————————————————————————————————————— phones: galaxy home ——— */
.ph-galaxy,
.ph-nebula {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ph-nebula i {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  mix-blend-mode: screen;
  animation: nebula 18s ease-in-out infinite alternate;
}
.ph-nebula i:nth-child(1) { width: 120%; height: 45%; left: -30%; top: 8%; background: radial-gradient(closest-side, rgba(60, 110, 255, 0.55), transparent); }
.ph-nebula i:nth-child(2) { width: 90%; height: 40%; right: -35%; top: 38%; background: radial-gradient(closest-side, rgba(150, 90, 255, 0.4), transparent); animation-duration: 24s; }
.ph-nebula i:nth-child(3) { width: 80%; height: 35%; left: -10%; bottom: -5%; background: radial-gradient(closest-side, rgba(150, 220, 255, 0.28), transparent); animation-duration: 30s; }
@keyframes nebula {
  from { transform: translate(0, 0) scale(1) rotate(0deg); }
  to { transform: translate(8%, -6%) scale(1.15) rotate(12deg); }
}
.phone-lock,
.phone-home > :not(.ph-galaxy):not(.ph-nebula) {
  position: relative;
  z-index: 1;
}

/* Widget: glass with a slow silver comet running its edge. */
.ph-widget {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 20px 50px rgba(0, 0, 20, 0.5);
}
.ph-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, #9fc0ff 82%, #fff 88%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }
.ph-w-kicker { display: flex; align-items: center; gap: 8px; }
.ph-live { width: 7px; height: 7px; border-radius: 50%; background: #6dffb0; box-shadow: 0 0 10px #6dffb0; animation: live 1.8s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.35; } }
.ph-w-title {
  background: linear-gradient(100deg, #fff 0%, #dfe7ff 35%, #8fa3d6 50%, #fff 65%, #dfe7ff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: silver 6s ease-in-out infinite;
}
@keyframes silver { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* Icons: real art, gloss, a light sweep, and something alive in each. */
.ph-grid { gap: 22px 6px; }
.ph-app { perspective: 400px; }
.ph-app .ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 19px;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 24px -6px color-mix(in srgb, var(--glow) 70%, transparent),
    0 0 0 0 var(--glow);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.4), box-shadow 0.25s ease;
}
.ph-app:active .ic {
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) scale(0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 26px 2px var(--glow);
}
.ph-app .ic svg { position: relative; z-index: 1; width: 40px; height: 40px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }
.ph-app .ic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.04) 42%, transparent 50%);
  pointer-events: none;
}
.ph-app .ic::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 3;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: sweep 6s ease-in-out infinite;
}
.ph-grid .ph-app:nth-child(2) .ic::after { animation-delay: 0.25s; }
.ph-grid .ph-app:nth-child(3) .ic::after { animation-delay: 0.5s; }
.ph-grid .ph-app:nth-child(4) .ic::after { animation-delay: 0.75s; }
.ph-grid .ph-app:nth-child(5) .ic::after { animation-delay: 1s; }
.ph-grid .ph-app:nth-child(6) .ic::after { animation-delay: 1.25s; }
.ph-grid .ph-app:nth-child(7) .ic::after { animation-delay: 1.5s; }
.ph-grid .ph-app:nth-child(8) .ic::after { animation-delay: 1.75s; }
@keyframes sweep { 0%, 70% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.ph-app .ic-build { background: linear-gradient(150deg, #7fd4ff 0%, #2b7bff 55%, #1638a8 100%); }
.ph-app .ic-quote { background: linear-gradient(150deg, #ffd27a 0%, #ff8a2a 55%, #c2410c 100%); }
.ph-app .ic-weird { background: linear-gradient(150deg, #d3b4ff 0%, #8b5cf6 55%, #4c1d95 100%); }
.ph-app .ic-void { background: radial-gradient(circle at 50% 50%, #0b2a36 0%, #03080c 75%); }
.ph-app .ic-stats { background: linear-gradient(150deg, #c9d6ff 0%, #6f86ff 55%, #2a3aa8 100%); }
.ph-app .ic-him { background-size: 120%; background-color: #120c02; }
.ic-img::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 45%), linear-gradient(0deg, rgba(0, 0, 0, 0.25), transparent 50%); }
.ic-needle { transform-origin: 20px 26px; animation: needle 3s ease-in-out infinite; }
@keyframes needle { 0%, 100% { transform: rotate(-38deg); } 50% { transform: rotate(18deg); } }
.ic-dot { animation: typing 1.2s ease-in-out infinite; }
.ic-dot:nth-child(4) { animation-delay: 0.15s; }
.ic-dot:nth-child(5) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-2px); } }
.ic-sweep { transform-origin: 20px 20px; animation: radar 2.6s linear infinite; }
@keyframes radar { to { transform: rotate(360deg); } }
.ic-bar { transform-box: fill-box; transform-origin: bottom; animation: bars 2.4s ease-in-out infinite; }
.ic-bar:nth-child(2) { animation-delay: 0.2s; }
.ic-bar:nth-child(3) { animation-delay: 0.4s; }
.ic-bar:nth-child(4) { animation-delay: 0.6s; }
@keyframes bars { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.6); } }
.ph-app span { font: 600 11.5px/1.1 var(--display); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }

/* Reel: big swipeable cards. */
.ph-reel {
  display: flex;
  gap: 12px;
  margin: auto -20px 0;
  padding: 6px 20px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ph-reel::-webkit-scrollbar { display: none; }
.ph-card {
  position: relative;
  flex: 0 0 84%;
  scroll-snap-align: center;
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: 168px;
  padding: 20px 20px 18px;
  border-radius: 28px;
  overflow: hidden;
  text-align: left;
  color: #fff;
  isolation: isolate;
  transform: scale(0.94);
  opacity: 0.6;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.45s ease;
}
.ph-card.is-on { transform: scale(1); opacity: 1; }
.ph-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--card);
}
.ph-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.28), transparent 55%);
}
.ph-card-quote { --card: radial-gradient(90% 120% at 100% 100%, #ffb347 0%, transparent 60%), linear-gradient(150deg, #ff7a1a 0%, #b4380c 60%, #3a1205 100%); box-shadow: 0 18px 50px -12px rgba(255, 122, 26, 0.7); }
.ph-card-talk { --card: radial-gradient(90% 120% at 100% 100%, #6dffc4 0%, transparent 60%), linear-gradient(150deg, #19b47a 0%, #0b5e44 60%, #04231a 100%); box-shadow: 0 18px 50px -12px rgba(25, 180, 122, 0.7); }
.ph-card-build { --card: radial-gradient(90% 120% at 100% 100%, #7fd4ff 0%, transparent 60%), linear-gradient(150deg, #2b7bff 0%, #13328f 60%, #050c2c 100%); box-shadow: 0 18px 50px -12px rgba(43, 123, 255, 0.7); }
.ph-card-k { font: 600 10px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.ph-card-t { font: 800 27px/1 var(--display); letter-spacing: -0.03em; }
.ph-card-price { font: 700 16px/1.2 var(--display); opacity: 0.92; }
.ph-card-price em { font-style: normal; opacity: 0.6; }
.ph-card-go {
  justify-self: start;
  margin-top: 8px;
  padding: 9px 14px;
  border-radius: 99px;
  font: 700 13px/1 var(--display);
  color: #0a0a0c;
  background: rgba(255, 255, 255, 0.95);
}
.ph-card.is-on .ph-card-go { animation: go-nudge 2.4s ease-in-out infinite; }
@keyframes go-nudge { 50% { transform: translateX(4px); } }
.ph-dots { display: flex; justify-content: center; gap: 6px; }
.ph-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); transition: width 0.3s ease, background 0.3s ease; }
.ph-dots i.is-on { width: 20px; background: #fff; }
.ph-desk { margin-top: -6px; }
.phone-mode .ph-card { animation: ph-pop 0.6s 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; }
@keyframes logo-breathe { 50% { filter: drop-shadow(0 0 36px rgba(120, 170, 255, 0.8)); } }
@media (max-width: 760px) {
  .scr-phone.is-docked .phone-ui {
    background: radial-gradient(140% 90% at 50% 0%, #0b1236 0%, #05071a 45%, #020208 100%);
  }

  /* Splash: the new mark. */
  .m-splash {
    background:
      radial-gradient(60% 40% at 50% 46%, rgba(40, 80, 255, 0.28), transparent 70%),
      radial-gradient(1px 1px at 20% 30%, #fff, transparent),
      radial-gradient(1px 1px at 70% 20%, #cfe0ff, transparent),
      radial-gradient(1.5px 1.5px at 80% 70%, #fff, transparent),
      radial-gradient(1px 1px at 30% 80%, #fff, transparent),
      radial-gradient(1px 1px at 55% 60%, #9fc0ff, transparent),
      radial-gradient(1px 1px at 12% 62%, #fff, transparent),
      #02030a;
  }
  .sx-logo {
    width: 132px;
    height: 132px;
    overflow: visible;
    filter: drop-shadow(0 0 24px rgba(80, 130, 255, 0.55));
    animation: splash-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) both, logo-breathe 3s 1s ease-in-out infinite;
  }
  .m-splash-word {
    font: 700 16px/1 var(--mono);
    letter-spacing: 0.55em;
    background: linear-gradient(100deg, #fff, #b9c6e4 40%, #6f7fa8 55%, #fff 80%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: splash-in 0.9s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both, silver 3s ease-in-out infinite;
  }
}
.brand-logo {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(70, 120, 255, 0.45);
}
/* Telrivo's own mark: slate tile, two signal arcs (from the Telrivo app header). */
.ph-app .ic-telrivo {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 22px rgba(255, 255, 255, 0.1), 0 10px 24px -6px rgba(79, 140, 255, 0.55);
}
.ic-telrivo b {
  position: absolute;
  inset: 17px 12px;
  border-top: 3.4px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}
.ic-telrivo b + b {
  inset: 29px 19px;
  opacity: 0.55;
  animation: signal 2.4s ease-in-out infinite;
}
@keyframes signal { 50% { opacity: 1; } }
.ph-app .ic-derby { background-color: #e7b878; background-size: cover; }

/* ————————————————————————————————————————— wall TV slideshow ——— */
.scr[data-paths] {
  transition: opacity 0.8s ease;
}
.scr.is-off:not(.is-docked),
.cap.is-off {
  opacity: 0;
  pointer-events: none;
}
.rail-dots {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1200;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(8, 8, 10, 0.55);
  transition: opacity 0.4s ease;
}
.rail-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(236, 232, 224, 0.3);
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
}
.rail-dots button[aria-current="true"] {
  width: 22px;
  background: rgba(236, 232, 224, 0.9);
}
.studio[data-focus] .rail-dots,
.phone-mode .rail-dots {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 760px) {
  .rail-dots { display: none; }
}

/* ————————————————————————————————————————— quote on the portrait monitor ——— */
@container (max-aspect-ratio: 3 / 4) {
  .scr:not(.is-docked) > .scr-inner.qt {
    inset: 0 auto auto 0;
    width: 100%;
    height: 100%;
    zoom: 1.45;
    display: block;
    padding: 5cqw 5cqw 4cqw;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .scr:not(.is-docked) .qt-grid {
    margin-top: 5cqw;
  }
  .scr:not(.is-docked) .qt-foot {
    position: static;
    flex-wrap: wrap;
    margin-top: 6cqw;
  }
  .scr:not(.is-docked) .qt-contact {
    left: 0;
    width: auto;
    gap: 3cqw;
    padding: 5cqw;
  }
  .scr:not(.is-docked) .qt-contact-title {
    font-size: 7cqw;
  }
  .scr:not(.is-docked) .qt-contact input {
    height: 9cqw;
  }
  .scr:not(.is-docked) .qt-contact textarea {
    height: 20cqw;
  }
  .scr:not(.is-docked) .qt-head {
    display: block;
  }
  .scr:not(.is-docked) .qt-lede {
    max-width: none;
    margin-top: 2cqw;
  }
  .scr:not(.is-docked) .qt-grid,
  .scr:not(.is-docked) .qt-steps,
  .scr:not(.is-docked) .qt-out {
    height: auto;
    overflow: visible;
  }
  .scr:not(.is-docked) .qt-form {
    height: auto;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 4cqw;
  }
}

/* Phone depth: --px/--py (-1..1) come from the gyroscope or a slow drift in phone-fx.js. The
   wallpaper slides against the tilt, tiles turn toward it, and each icon's art sits above its tile. */
@media (prefers-reduced-motion: no-preference) {
  .phone-home { --px: 0; --py: 0; }
  .ph-nebula { transform: translate3d(calc(var(--px) * -34px), calc(var(--py) * -26px), 0) scale(1.15); }
  .ph-widget {
    transform: perspective(700px) rotateY(calc(var(--px) * 10deg)) rotateX(calc(var(--py) * -10deg)) translateZ(20px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      calc(var(--px) * -24px) calc(26px + var(--py) * -18px) 50px rgba(0, 0, 20, 0.55);
  }
  .ph-grid .ph-app { animation: ph-float 5.5s ease-in-out infinite; }
  .ph-grid .ph-app:nth-child(3n + 2) { animation-delay: -1.8s; }
  .ph-grid .ph-app:nth-child(3n) { animation-delay: -3.6s; }
  @keyframes ph-float { 50% { transform: translateY(-5px); } }
  .ph-app .ic {
    transform: rotateY(calc(var(--px) * 24deg)) rotateX(calc(var(--py) * -24deg)) translateZ(10px);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      inset calc(var(--px) * -3px) calc(var(--py) * -3px) 6px rgba(255, 255, 255, 0.12),
      calc(var(--px) * -14px) calc(14px + var(--py) * -12px) 24px -6px color-mix(in srgb, var(--glow) 75%, transparent),
      calc(var(--px) * -8px) calc(8px + var(--py) * -6px) 12px -4px rgba(0, 0, 0, 0.55);
    transition: none;
  }
  .ph-app .ic > svg,
  .ph-app .ic > img { transform: translate(calc(var(--px) * 7px), calc(var(--py) * 7px)) scale(1.04); }
  .ph-app .ic::before {
    background:
      radial-gradient(70% 60% at calc(50% + var(--px) * 40%) calc(30% + var(--py) * 40%), rgba(255, 255, 255, 0.3), transparent 70%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.03) 42%, transparent 50%);
  }
  .ph-app:active .ic { transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.4); }
}

/* Desktop: the phone on the desk runs the same home screen. Apps fly the camera to their screen. */
@media (min-width: 761px) {
  .scr-phone .phone-ui {
    gap: 14px;
    padding: 3.5cqw 5cqw 5cqw;
    overflow: hidden;
    background: radial-gradient(140% 90% at 50% 0%, #0b1236 0%, #05071a 45%, #020208 100%);
  }
  .scr-phone .phone-ui > .phone-status { position: relative; z-index: 1; }
  .scr-phone .phone-lock { display: none; }
  .scr-phone .phone-home { display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; }
  .scr-phone .phone-ui.is-admin .phone-home { display: none; }
  .scr-phone .phone-ui:not(.is-admin) .phone-app { display: none; }
  .scr-phone .phone-ui.is-admin { overflow: auto; }
  .scr-phone .ph-galaxy,
  .scr-phone .ph-nebula { position: absolute; }
  .scr-phone .ph-desk { display: none; }
  .scr-phone .ph-reel { margin: auto -5cqw 0; padding: 6px 5cqw 4px; }
}

.gyro-mode .scr-phone .phone-ui {
    gap: 14px;
    padding: 3.5cqw 5cqw 5cqw;
    overflow: hidden;
    background: radial-gradient(140% 90% at 50% 0%, #0b1236 0%, #05071a 45%, #020208 100%);
  }
.gyro-mode .scr-phone .phone-ui > .phone-status { position: relative; z-index: 1; }
.gyro-mode .scr-phone .phone-lock { display: none; }
.gyro-mode .scr-phone .phone-home { display: flex; flex-direction: column; gap: 16px; flex: 1; min-height: 0; }
.gyro-mode .scr-phone .phone-ui.is-admin .phone-home { display: none; }
.gyro-mode .scr-phone .phone-ui:not(.is-admin) .phone-app { display: none; }
.gyro-mode .scr-phone .phone-ui.is-admin { overflow: auto; }
.gyro-mode .scr-phone .ph-galaxy,
.gyro-mode .scr-phone .ph-nebula { position: absolute; }
.gyro-mode .scr-phone .ph-desk { display: none; }
.gyro-mode .scr-phone .ph-reel { margin: auto -5cqw 0; padding: 6px 5cqw 4px; }

/* ————————————————————————————————————————— phones: the motion gate ——— */
.m-gate[hidden] { display: none; }
.m-gate {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: grid;
  place-items: center;
  padding: 32px 26px calc(32px + env(safe-area-inset-bottom));
  background: radial-gradient(70% 45% at 50% 42%, rgba(40, 70, 220, 0.22), transparent 70%), #010208;
  color: #fff;
  text-align: center;
  transition: opacity 0.7s ease;
}
.m-gate.is-gone { opacity: 0; pointer-events: none; }
.m-gate::before,
.m-gate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: gate-twinkle 3.2s ease-in-out infinite alternate;
}
.m-gate::before {
  background:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1.4px 1.4px at 78% 12%, #dbe6ff, transparent),
    radial-gradient(1px 1px at 33% 72%, #fff, transparent), radial-gradient(1.6px 1.6px at 88% 64%, #fff, transparent),
    radial-gradient(1px 1px at 52% 34%, #b9ccff, transparent), radial-gradient(1px 1px at 8% 86%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 64% 90%, #fff, transparent), radial-gradient(1px 1px at 44% 8%, #fff, transparent);
}
.m-gate::after {
  animation-delay: -1.6s;
  background:
    radial-gradient(1.2px 1.2px at 22% 40%, #fff, transparent), radial-gradient(1px 1px at 70% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 18% 60%, #cfe0ff, transparent), radial-gradient(1px 1px at 92% 44%, #fff, transparent),
    radial-gradient(1px 1px at 58% 58%, #fff, transparent), radial-gradient(1.3px 1.3px at 38% 94%, #fff, transparent),
    radial-gradient(1px 1px at 82% 82%, #9fc0ff, transparent), radial-gradient(1px 1px at 4% 30%, #fff, transparent);
}
@keyframes gate-twinkle { from { opacity: 0.25; } to { opacity: 1; } }
.m-gate-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; max-width: 320px; }
.m-gate-k { margin: 0; font: 600 10px/1 var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.m-gate-t { margin: 0; font: 800 34px/1.02 var(--display); letter-spacing: -0.03em; }
.m-gate-b { margin: 0; font: 400 13px/1.5 var(--mono); color: rgba(255, 255, 255, 0.62); }
.m-gate-go {
  margin-top: 10px;
  padding: 16px 26px;
  border-radius: 99px;
  font: 700 16px/1 var(--display);
  color: #05060c;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.1), 0 0 40px rgba(120, 160, 255, 0.45);
  animation: enter-bob 2.4s ease-in-out infinite;
}
.m-gate-wait { margin: 10px 0 0; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.55); animation: live 1.6s ease-in-out infinite; }
.m-gate-skip { margin-top: 4px; padding: 8px; font: 500 11px/1 var(--mono); color: rgba(255, 255, 255, 0.4); text-decoration: underline; text-underline-offset: 3px; }
.m-gate:not([data-mode="ask"]) .m-gate-go,
.m-gate:not([data-mode="wait"]) .m-gate-wait { display: none; }
@keyframes enter-bob { 50% { transform: translateY(-4px); } }
@keyframes live { 50% { opacity: 0.35; } }

/* Gyro mode: the desktop room on a phone. */
.gyro-mode .m-dock,
.gyro-mode .m-enter,
.gyro-mode .m-scroll { display: none !important; }
.gyro-mode .studio { touch-action: none; }
.gyro-hint {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  translate: -50% 0;
  z-index: 70;
  margin: 0;
  padding: 11px 16px;
  border-radius: 99px;
  white-space: nowrap;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(10, 12, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.8s ease;
}
.gyro-hint.is-gone { opacity: 0; }
.gyro-simple {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 70;
  padding: 8px 12px;
  border-radius: 99px;
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(10, 12, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.is-focused .gyro-simple { display: none; }
