:root {
  --void: #060508;
  --ink: #0c0a10;
  --panel: #121018;
  --line: rgba(244, 230, 210, 0.11);
  --text: #f3eee6;
  --muted: #9a9187;
  --copper: #e4a35f;
  --ice: #8ed8f0;
  --mint: #8fe3a8;
  --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --space-section: clamp(4.5rem, 10vw, 7.5rem);
  --wrap: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--void);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.55;
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* —— Atmosphere: deep / mid / glow / vignette / grain —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atm-deep {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(20, 14, 10, 0.95), transparent 55%),
    radial-gradient(circle at 20% 30%, #0d0b12 0%, transparent 42%),
    radial-gradient(circle at 80% 20%, #0a1014 0%, transparent 40%),
    linear-gradient(180deg, #08070c 0%, #050408 45%, #09070c 100%);
  will-change: transform;
}

.atm-mid {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(700px 480px at 12% 18%, rgba(228, 163, 95, 0.16), transparent 62%),
    radial-gradient(560px 420px at 88% 12%, rgba(142, 216, 240, 0.1), transparent 58%),
    radial-gradient(640px 520px at 70% 78%, rgba(228, 163, 95, 0.07), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.9;
  will-change: transform;
}

.atm-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(420px 320px at 50% 0%, rgba(240, 196, 138, 0.14), transparent 55%),
    radial-gradient(280px 280px at 30% 40%, rgba(142, 216, 240, 0.06), transparent 50%);
  will-change: transform;
}

.atm-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% 40%, transparent 35%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 72%, rgba(0, 0, 0, 0.5) 100%);
}

.atm-grain {
  position: absolute;
  inset: -20%;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain-shift 0.9s steps(2) infinite;
}

@keyframes grain-shift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-1.5%, 1%);
  }
  100% {
    transform: translate(1%, -1%);
  }
}

a,
button,
input,
select,
textarea,
label {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--copper);
  color: #1a1208;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.layer {
  position: relative;
  z-index: 2;
}

.section,
.hero {
  position: relative;
}

.section::before,
.hero::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 163, 95, 0.22), transparent);
  pointer-events: none;
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 5, 8, 0.94);
}

.topbar-inner {
  width: var(--wrap);
  margin: 0 auto;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228, 163, 95, 0.5);
  color: var(--copper);
}

.brand-mark svg {
  width: 0.9rem;
  height: 0.9rem;
}

.nav {
  display: none;
  gap: 0.1rem;
}

.nav a {
  padding: 0.4rem 0.65rem;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.slots {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--mint);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.slots-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(143, 227, 168, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(143, 227, 168, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(143, 227, 168, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 227, 168, 0);
  }
}

.lang-btn {
  min-height: 2rem;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  color: var(--ice);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.lang-btn:hover {
  border-color: rgba(142, 216, 240, 0.45);
}

.pill-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0 0.95rem;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.pill-cta,
.btn-primary {
  background: linear-gradient(145deg, #f0c48a 0%, #e4a35f 48%, #c8883f 100%);
  color: #1a1208;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 28px rgba(228, 163, 95, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.btn {
  min-height: 2.75rem;
  padding: 0 1.15rem;
  position: relative;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  border-color: rgba(244, 230, 210, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-ghost:hover {
  border-color: rgba(142, 216, 240, 0.45);
  background: rgba(142, 216, 240, 0.07);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(142, 216, 240, 0.08);
}

/* —— Section rhythm —— */
.eyebrow {
  margin: 0;
  color: var(--ice);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.display {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  background: linear-gradient(180deg, #fff8ef 0%, #f3eee6 45%, #c4b8a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.4));
}

.rule {
  width: 3.5rem;
  height: 1px;
  margin: 1.35rem 0 1.1rem;
  background: rgba(228, 163, 95, 0.55);
}

.body {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hint {
  margin: 0.85rem 0 0;
  color: rgba(154, 145, 135, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.sec-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section {
  padding: var(--space-section) 0;
  border-bottom: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

/* —— Hero —— */
.hero {
  min-height: calc(100dvh - 3.5rem);
  display: grid;
  align-content: start;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 40rem;
}

.mega {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 14vw, 8.5rem);
  line-height: 0.84;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  background: linear-gradient(165deg, #fffaf2 8%, #f0c48a 38%, #e4a35f 62%, #8a6238 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 28px rgba(228, 163, 95, 0.22));
}

.display,
.hero-line,
.door-title,
.kicker-line,
.quote-tier {
  text-shadow:
    0 1px 0 rgba(255, 248, 239, 0.08),
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(228, 163, 95, 0.08);
}

.hero-line {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.hero-sub {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-clear {
  margin: 1.15rem 0 0;
  max-width: 38rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

/* —— Transformation slider —— */
.xform {
  user-select: none;
  touch-action: none;
  perspective: 1200px;
}

.xform-stage {
  position: relative;
  height: clamp(280px, 48vw, 460px);
  border: 1px solid rgba(228, 163, 95, 0.22);
  background: #09080e;
  overflow: hidden;
  transform: rotateX(1.2deg);
  transform-style: preserve-3d;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(228, 163, 95, 0.08);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 420ms ease;
}

.xform.is-dragging .xform-stage {
  transform: rotateX(0.4deg) scale(1.01);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(228, 163, 95, 0.16);
}

.xform-panel {
  position: absolute;
  inset: 0;
}

.xform-after {
  width: 52%;
  overflow: hidden;
  border-right: 1px solid rgba(228, 163, 95, 0.45);
  box-shadow: 8px 0 40px rgba(228, 163, 95, 0.12);
}

.mock {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background: #d8d4ce;
  color: #5a564f;
  font-size: 0.62rem;
}

.mock-bar span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #b8b2a8;
}

.mock-bar em {
  margin-left: 0.5rem;
  font-style: normal;
  opacity: 0.8;
}

.mock-sad .mock-body {
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #efeeea, #e4e2dc);
  color: #4a463f;
}

.mock-nav {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  opacity: 0.65;
  margin-bottom: 1rem;
}

.mock-hero-box {
  padding: 1.1rem;
  border: 1px solid #cfc9bf;
  background: #f7f6f2;
}

.mock-hero-box p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: #2f2c28;
}

.mock-hero-box small {
  display: block;
  margin-top: 0.45rem;
  color: #7a746a;
  font-size: 0.75rem;
}

.mock-hero-box button {
  margin-top: 0.85rem;
  padding: 0.4rem 0.75rem;
  background: #3d6ea8;
  color: #fff;
  font-size: 0.7rem;
  border-radius: 3px;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.mock-cards i {
  display: block;
  height: 3.2rem;
  background: #d9d4cb;
  border: 1px solid #c9c3b8;
}

.mock-footer {
  margin-top: 0.85rem;
  font-size: 0.58rem;
  opacity: 0.55;
}

.mock-bar-live {
  background: #14121a;
  color: var(--muted);
  border-bottom-color: var(--line);
}

.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: clamp(1.25rem, 4vw, 2.25rem);
  background:
    radial-gradient(500px 280px at 12% 0%, rgba(228, 163, 95, 0.16), transparent 55%),
    radial-gradient(420px 260px at 90% 80%, rgba(142, 216, 240, 0.1), transparent 50%),
    linear-gradient(180deg, #121018, #0a0910);
}

.mock-kicker {
  margin: 0;
  color: var(--ice);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mock-display {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--text);
}

.mock-rule {
  width: 2.75rem;
  height: 1px;
  margin: 1rem 0 0.85rem;
  background: rgba(228, 163, 95, 0.55);
}

.mock-body-copy {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.mock-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.mock-cta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  background: linear-gradient(135deg, #e4a35f, #f0c48a);
  color: #1a1208;
}

.mock-cta-row .ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.xform-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, transparent, rgba(240, 196, 138, 0.95), transparent);
  cursor: ew-resize;
  z-index: 3;
  box-shadow: 0 0 18px rgba(228, 163, 95, 0.45);
}

.xform-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.55rem;
  height: 2.55rem;
  margin: -1.275rem 0 0 -1.275rem;
  border: 1px solid rgba(240, 196, 138, 0.75);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 45%),
    rgba(12, 10, 16, 0.92);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(228, 163, 95, 0.35);
}

.xform-grip::before,
.xform-grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  transform: translateY(-50%);
}

.xform-grip::before {
  left: 0.45rem;
  border-width: 4px 5px 4px 0;
  border-color: transparent var(--copper) transparent transparent;
}

.xform-grip::after {
  right: 0.45rem;
  border-width: 4px 0 4px 5px;
  border-color: transparent transparent transparent var(--copper);
}

.xform-hint {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

/* —— Doors —— */
.doors {
  display: grid;
  gap: 0.75rem;
}

.door {
  display: grid;
  gap: 0.35rem;
  text-align: left;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(244, 230, 210, 0.12);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.055), transparent 42%),
    linear-gradient(180deg, #16131c, #100e16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 16px 40px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
  will-change: transform;
}

.door:hover {
  border-color: rgba(228, 163, 95, 0.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 22px 50px rgba(0, 0, 0, 0.42),
    0 0 36px rgba(228, 163, 95, 0.08);
}

.door[aria-selected="true"] {
  border-color: rgba(228, 163, 95, 0.7);
  background:
    linear-gradient(135deg, rgba(228, 163, 95, 0.14), transparent 52%),
    linear-gradient(180deg, #1a161f, #100e16);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(228, 163, 95, 0.12);
}

.door-num {
  color: var(--copper);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.door-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.door-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

.door-panel {
  margin-top: 0.9rem;
  border: 1px solid rgba(228, 163, 95, 0.28);
  background: var(--panel);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 380ms ease, opacity 280ms ease, margin 280ms ease;
}

.door-panel.is-open {
  max-height: 820px;
  opacity: 1;
}

.receipt-mini {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .door-panel .receipt-mini {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.door-panel[hidden] {
  display: block;
  margin-top: 0;
}

.door-panel-inner {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.door-panel-title {
  margin: 0.7rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.receipt-mini {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
}

.receipt-mini dt {
  color: var(--ice);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.receipt-mini dd {
  margin: 0.25rem 0 0;
  color: var(--text);
}

/* —— Proof receipts —— */
.receipts {
  display: grid;
  gap: 0.75rem;
}

.receipt {
  padding: 1.35rem 1.2rem;
  border: 1px solid rgba(244, 230, 210, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), transparent 40%),
    linear-gradient(180deg, #15121b, #0f0d14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 44px rgba(0, 0, 0, 0.38);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.receipt:hover {
  border-color: rgba(142, 216, 240, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 56px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(142, 216, 240, 0.06);
}

.receipt h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.receipt-built {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.receipt dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.receipt dt {
  color: var(--ice);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.receipt dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

/* —— Quote —— */
.quote {
  display: grid;
  gap: 1.5rem;
  max-width: 44rem;
}

.quote fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.quote legend {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.tap-row {
  display: grid;
  gap: 0.5rem;
}

.tap-row label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.85rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  background: #0a0910;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.tap-row label:has(input:checked) {
  border-color: rgba(228, 163, 95, 0.55);
  background: rgba(228, 163, 95, 0.08);
}

.tap-row input {
  accent-color: var(--copper);
}

.quote-out {
  padding: 1.25rem 1.15rem;
  border: 1px solid rgba(228, 163, 95, 0.3);
  background: linear-gradient(135deg, rgba(228, 163, 95, 0.1), transparent 55%), var(--panel);
}

.quote-tier {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
}

.quote-range {
  margin: 0.25rem 0 0;
  color: var(--copper);
  font-size: 1.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.quote-includes {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.3rem;
}

.quote-includes li::marker {
  color: var(--copper);
}

/* —— Kicker —— */
.kicker-section {
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.kicker-stack {
  display: grid;
  gap: 0.55rem;
  max-width: 28rem;
}

.kicker-line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--text);
}

.kicker-beat {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  letter-spacing: -0.025em;
  color: var(--muted);
}

.kicker-stack .actions {
  margin-top: 1rem;
}

.kicker-tag {
  margin: 1.25rem 0 0;
  color: var(--ice);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* —— Footer / mobile —— */
.foot {
  padding: 2.25rem 0 5.5rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.foot p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 28rem;
}

.foot-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
}

.mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(6, 5, 8, 0.96);
}

.mobile-bar .btn {
  width: 100%;
}

/* —— Terminal overlay —— */
.term-fab {
  position: fixed;
  right: 1rem;
  bottom: 4.6rem;
  z-index: 60;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(12, 10, 16, 0.95);
  color: var(--ice);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.term-fab[aria-expanded="true"] {
  border-color: rgba(142, 216, 240, 0.5);
  color: var(--text);
}

.term-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(6, 5, 8, 0.55);
}

.term-overlay[hidden] {
  display: none;
}

.term-sheet,
.deck {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid rgba(142, 216, 240, 0.22);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), transparent 38%),
    linear-gradient(180deg, rgba(22, 20, 30, 0.92), rgba(10, 9, 16, 0.96));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(142, 216, 240, 0.1),
    0 0 80px rgba(228, 163, 95, 0.06);
  transform: translateY(0) rotateX(2deg);
  transform-style: preserve-3d;
  animation: deck-float 5.5s ease-in-out infinite;
  will-change: transform;
  overflow: hidden;
}

.deck-glow {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 50% 0%, rgba(142, 216, 240, 0.16), transparent 55%);
  pointer-events: none;
  opacity: 0.85;
}

@keyframes deck-float {
  0%,
  100% {
    transform: translateY(0) rotateX(2deg);
  }
  50% {
    transform: translateY(-6px) rotateX(2.5deg);
  }
}

.term-fab {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(142, 216, 240, 0.12);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, border-color 180ms ease;
}

.term-fab:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(142, 216, 240, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(142, 216, 240, 0.2);
}

.instrument-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.term-close {
  color: var(--ice);
  letter-spacing: 0.08em;
}

.term-screen {
  height: 220px;
  overflow: auto;
  padding: 0.95rem;
  color: #c5e7f7;
  font-size: 0.84rem;
  line-height: 1.55;
}

.term-line {
  margin-bottom: 0.3rem;
}

.term-line .ok {
  color: var(--mint);
}
.term-line .hot {
  color: var(--copper);
}
.term-line .dim {
  color: rgba(255, 255, 255, 0.3);
}

.term-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid var(--line);
}

.term-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: #ffe7c6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.85rem 0.85rem;
}

.chips button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ice);
  padding: 0.4rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.chips button:hover {
  border-color: rgba(142, 216, 240, 0.45);
  color: var(--text);
}

/* —— Legacy page helpers (work/services/contact) —— */
.page-hero {
  padding: 2.75rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -0.045em;
  text-transform: uppercase;
  line-height: 1;
}

.block {
  padding: var(--space-section) 0;
  border-bottom: 1px solid var(--line);
}

.block-head {
  display: grid;
  gap: 0.65rem;
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.block-head p,
.kicker {
  margin: 0;
  color: var(--muted);
}

.kicker {
  color: var(--ice);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lede {
  margin: 0.9rem 0 0;
  max-width: 34rem;
  color: var(--muted);
}

.tiers {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.tier {
  padding: 1.25rem 1.1rem;
  background: var(--panel);
}

.tier h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.tier .price {
  margin: 0.35rem 0 0.65rem;
  color: var(--copper);
}

.tier ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 0.8rem;
  max-width: 34rem;
}

.form label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: #0a0910;
  outline: none;
}

.form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: rgba(228, 163, 95, 0.55);
}

.form-status {
  min-height: 1.1rem;
  color: var(--mint);
}

.cinema {
  display: grid;
  gap: 0.9rem;
}

.frame {
  position: relative;
  border: 1px solid var(--line);
  background: #0a0910;
  overflow: hidden;
  min-height: 220px;
}

.frame-copy {
  padding: 1.25rem 1.1rem;
}

.frame-copy .meta {
  margin: 0 0 0.3rem;
  color: var(--ice);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.frame-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
}

.frame-copy p {
  margin: 0.4rem 0 0;
  color: rgba(243, 238, 230, 0.78);
}

.offer-row {
  display: grid;
  gap: 0.85rem;
}

.offer {
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--panel);
}

.offer h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 750;
}

.offer p {
  margin: 0;
  color: var(--muted);
}

.offer a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--copper);
}

.closer {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(228, 163, 95, 0.28);
  background: linear-gradient(135deg, rgba(228, 163, 95, 0.1), transparent 50%), var(--panel);
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.985);
  filter: blur(2px);
  transition:
    opacity 820ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 820ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.quote-out {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 56px rgba(0, 0, 0, 0.4),
    0 0 48px rgba(228, 163, 95, 0.1);
}

.door-panel {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.topbar {
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  background: rgba(6, 5, 8, 0.72);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

@media (min-width: 720px) {
  .tap-row {
    grid-template-columns: 1fr 1fr;
  }

  .receipt-mini {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .slots {
    display: inline-flex;
  }

  .mobile-bar {
    display: none;
  }

  .term-fab {
    bottom: 1.25rem;
  }

  .foot {
    padding-bottom: 2.25rem;
  }

  .doors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .receipts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receipts .receipt:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cinema {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .offer-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .closer {
    grid-template-columns: 1.35fr auto;
    align-items: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .slots-dot,
  .atm-grain,
  .deck,
  .term-sheet {
    animation: none !important;
  }

  .btn:hover,
  .door:hover,
  .term-fab:hover {
    transform: none;
  }

  .door-panel {
    transition: none;
  }

  .xform-stage,
  .xform.is-dragging .xform-stage {
    transform: none;
  }

  .atmosphere [data-parallax] {
    transform: none !important;
  }
}

/* ============================================================
   SXL CORE — dark studio art direction
   ============================================================ */

/* Studio: graphite floor, one cool key light, almost no colour wash. */
.atm-deep {
  background:
    radial-gradient(ellipse 80% 55% at 50% 115%, rgba(28, 29, 34, 0.9), transparent 60%),
    linear-gradient(180deg, #060609 0%, #040406 50%, #08080b 100%);
}

.atm-mid {
  background:
    radial-gradient(760px 520px at 74% 30%, rgba(170, 182, 200, 0.07), transparent 62%),
    radial-gradient(520px 380px at 14% 12%, rgba(228, 163, 95, 0.05), transparent 60%);
  mix-blend-mode: normal;
  opacity: 1;
}

.atm-glow {
  background: radial-gradient(520px 360px at 72% -4%, rgba(255, 255, 255, 0.07), transparent 60%);
}

.atm-grain {
  opacity: 0.04;
}

.core-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 600ms ease;
}

.core-ready .core-canvas {
  opacity: 1;
}

/* Static stand-in when WebGL is unavailable. */
.core-fallback-art {
  display: none;
  position: absolute;
  top: 18vh;
  right: 8vw;
  width: min(44vw, 440px);
  aspect-ratio: 1;
}

.core-fallback .core-fallback-art {
  display: block;
}

.core-fallback-art span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(200, 205, 215, 0.18);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.03);
}

.core-fallback-art span:nth-child(1) {
  inset: 30%;
  background: radial-gradient(circle at 38% 32%, #2a2b31, #08080b 70%);
  box-shadow: 0 0 60px rgba(228, 163, 95, 0.18), inset 0 0 20px rgba(255, 255, 255, 0.06);
  transform: rotate(45deg);
  border-radius: 12%;
}

.core-fallback-art span:nth-child(2) {
  transform: rotateX(70deg);
  border-color: rgba(228, 163, 95, 0.3);
}

.core-fallback-art span:nth-child(3) {
  inset: 10%;
  transform: rotate(-30deg) rotateX(60deg);
}

/* Restrained chrome wordmark; copper reserved for actions. */
.mega {
  font-size: clamp(3.6rem, 10vw, 7rem);
  background: linear-gradient(172deg, #ffffff 6%, #d4d5da 40%, #8b8d95 72%, #4a4b51 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.6));
}

.section::before,
.hero::before {
  background: linear-gradient(90deg, transparent, rgba(220, 224, 232, 0.14), transparent);
}

.hero {
  min-height: 0;
  border-bottom: 0;
  padding-top: 0;
}

.hero-stage {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100dvh - 3.5rem);
  padding: clamp(2rem, 6vw, 4rem) 0;
}

.hero-copy {
  max-width: 34rem;
  position: relative;
  z-index: 2;
}

.core-grab {
  display: none;
}

@media (min-width: 960px) {
  .hero-stage {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .core-grab {
    display: block;
    position: relative;
    align-self: stretch;
    min-height: 60vh;
    cursor: grab;
  }

  .core-grabbing,
  .core-grabbing .core-grab {
    cursor: grabbing;
  }
}

.core-hint {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  color: rgba(200, 205, 215, 0.5);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.core-fallback .core-hint {
  display: none;
}

/* Mobile: core sits behind the copy, so give the copy a lit plate. */
@media (max-width: 959px) {
  .hero-copy {
    padding: 1.25rem 0;
  }

  .hero-copy::before {
    content: "";
    position: absolute;
    inset: -1rem -1.25rem;
    z-index: -1;
    background: radial-gradient(ellipse at 30% 50%, rgba(4, 4, 6, 0.82), rgba(4, 4, 6, 0.35) 70%, transparent);
  }
}

/* Cards read as machined graphite with a glass top edge. */
.door,
.receipt,
.quote-out,
.door-panel,
.tap-row label {
  border-color: rgba(220, 224, 232, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0) 1px),
    linear-gradient(165deg, rgba(255, 255, 255, 0.035), transparent 45%),
    rgba(14, 14, 18, 0.88);
}

.door[aria-selected="true"] {
  border-color: rgba(228, 163, 95, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0, rgba(255, 255, 255, 0) 1px),
    linear-gradient(135deg, rgba(228, 163, 95, 0.1), transparent 55%),
    rgba(16, 15, 19, 0.92);
}

[data-core-path="operate"] .door[aria-selected="true"] {
  border-color: rgba(142, 216, 240, 0.55);
}

[data-core-path="remember"] .door[aria-selected="true"] {
  border-color: rgba(143, 227, 168, 0.55);
}

.door-num {
  color: rgba(200, 205, 215, 0.6);
  letter-spacing: 0.22em;
}

.door[aria-selected="true"] .door-num {
  color: var(--copper);
}

/* Receipts as artifacts: real screens, real links. */
.receipt {
  display: flex;
  flex-direction: column;
  transition: opacity 400ms ease, border-color 300ms ease, box-shadow 300ms ease, filter 400ms ease;
}

.receipt.is-dim {
  opacity: 0.38;
  filter: saturate(0.4);
}

.receipt.is-match {
  border-color: rgba(228, 163, 95, 0.45);
}

.receipt-shot {
  margin: -1.35rem -1.2rem 1.15rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(220, 224, 232, 0.08);
  background: #08080b;
}

.receipt-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.receipt:hover .receipt-shot img {
  transform: scale(1.06);
}

.receipt dl {
  margin-bottom: auto;
}

.receipt-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--copper);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.receipt-link:hover {
  color: #f0c48a;
}

.receipt-note {
  margin: 1.1rem 0 0;
  color: rgba(154, 145, 135, 0.8);
  font-size: 0.72rem;
}

.work-path {
  margin: 3rem 0 1rem;
}

@media (min-width: 960px) {
  .door-panel {
    max-width: 56%;
  }

  .door-panel .receipt-mini {
    grid-template-columns: 1fr 1fr;
  }
}

/* Terminal is an easter egg now: Ctrl/Cmd+K only. */
.term-fab {
  display: none;
}

.foot-egg {
  margin-top: 0.6rem;
  color: rgba(154, 145, 135, 0.5);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.foot-egg kbd {
  font-family: var(--font-mono);
  padding: 0.05rem 0.3rem;
  border: 1px solid rgba(220, 224, 232, 0.14);
}

.topbar {
  background: rgba(5, 5, 7, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .core-canvas,
  .receipt,
  .receipt-shot img {
    transition: none;
  }
}

/* Core parts — labels surface as the core separates on scroll */
.core-grab { position: relative; }
.core-parts { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; opacity: var(--core-split, 0); }
.core-parts li { position: absolute; display: flex; gap: .6em; align-items: baseline; font: 500 11px/1.2 var(--mono, ui-monospace, monospace); letter-spacing: .14em; text-transform: uppercase; color: rgba(236,232,224,.82); transform: translateY(calc((1 - var(--core-split, 0)) * 12px)); white-space: nowrap; text-shadow: 0 1px 10px #000, 0 0 2px #000; }
.core-parts li::before { content: ""; width: 28px; height: 1px; background: rgba(236,232,224,.35); align-self: center; }
.core-parts b { color: #e4a35f; font-weight: 600; }
.core-parts .cp-a { top: 24%; right: -6%; }
.core-parts .cp-b { top: 50%; right: -9%; }
.core-parts .cp-b b { color: #8ed8f0; }
.core-parts .cp-c { top: 76%; right: -6%; }
.core-parts .cp-c b { color: #8fe3a8; }
@media (max-width: 959px) { .core-parts { display: none; } }
@media (prefers-reduced-motion: reduce) { .core-parts { opacity: 1; } .core-parts li { transform: none; } }

.brand-logo {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(70, 120, 255, 0.45);
}
