:root {
  /* compliance lexicon: only accents. from board board: board* board** board:** board:::* alternating large tiny compartments hold fragments machine-human Each cell should feel magnetized: approaches typography emotional */
  --black: #0B070D;
  --plum: #211426;
  --cyan: #20F4FF;
  --chartreuse: #D8FF3E;
  --brass: #C69A43;
  --parchment: #F2E2B8;
  --magenta: #A0187A;
  --shadow: rgba(0, 0, 0, .58);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--parchment);
  font-family: "Josefin Sans", "Inter", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(115deg, rgba(198,154,67,.05), transparent 22%, rgba(160,24,122,.08) 58%, transparent 82%),
    repeating-linear-gradient(90deg, rgba(242,226,184,.025) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 20%, rgba(32,244,255,.25), transparent 34%),
    radial-gradient(circle at 12% 75%, rgba(160,24,122,.27), transparent 36%),
    radial-gradient(circle at 48% 44%, rgba(198,154,67,.08), transparent 42%),
    var(--black);
}

.smoke {
  position: absolute;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .32;
  animation: drift 22s ease-in-out infinite alternate;
}

.smoke-a { left: -10vw; top: 10vh; background: rgba(33,20,38,.95); }
.smoke-b { right: -15vw; bottom: -10vh; background: rgba(160,24,122,.42); animation-delay: -8s; }

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 10px, rgba(32,244,255,.035) 10px 11px);
  animation: scan 9s linear infinite;
}

.starfield span {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(216,255,62,.38);
}
.starfield span:nth-child(1) { left: 16%; top: 18%; }
.starfield span:nth-child(2) { left: 74%; top: 14%; }
.starfield span:nth-child(3) { left: 88%; top: 46%; }
.starfield span:nth-child(4) { left: 24%; top: 68%; }
.starfield span:nth-child(5) { left: 57%; top: 82%; }
.starfield span:nth-child(6) { left: 42%; top: 33%; }

main { position: relative; z-index: 2; }

.scene {
  min-height: 100vh;
  padding: clamp(22px, 3.5vw, 48px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scene::after {
  content: "";
  position: absolute;
  left: 9vw;
  right: 9vw;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), var(--cyan), transparent);
  clip-path: polygon(0 0, 96% 0, 100% 100%, 4% 100%);
  opacity: .55;
}

.room-label {
  position: relative;
  z-index: 3;
  margin: 0 0 18px 10px;
  color: var(--brass);
  font-family: "Josefin Sans", sans-serif;
  font-size: clamp(.74rem, 1vw, .92rem);
  letter-spacing: .28em;
  text-transform: uppercase;
}

.bento-grid {
  width: min(1480px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(10px, 1vw, 16px);
  perspective: 1200px;
}

.tile {
  position: relative;
  min-height: 150px;
  padding: clamp(18px, 2.1vw, 34px);
  border: 1px solid rgba(198,154,67,.8);
  background:
    linear-gradient(135deg, rgba(242,226,184,.04), transparent 18%),
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(32,244,255,.18), transparent 30%),
    linear-gradient(145deg, rgba(33,20,38,.96), rgba(11,7,13,.95));
  box-shadow: inset 0 0 0 1px rgba(242,226,184,.045), 0 24px 50px var(--shadow), 0 0 0 6px rgba(11,7,13,.32);
  clip-path: polygon(0 10px, calc(100% - 18px) 0, 100% 22px, 100% calc(100% - 10px), 18px 100%, 0 calc(100% - 24px));
  transform: translate3d(0,0,0) rotateX(0) rotateY(0);
  transition: transform .5s cubic-bezier(.19,1,.22,1), border-color .35s ease, box-shadow .35s ease, opacity .7s ease;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-top: 1px solid rgba(198,154,67,.28);
  border-right: 1px solid rgba(32,244,255,.13);
  pointer-events: none;
  clip-path: polygon(0 0, 94% 0, 100% 100%, 3% 100%);
}

.tile::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 12px;
  right: -13px;
  top: 22px;
  background: var(--brass);
  transform: rotate(42deg);
  box-shadow: 0 0 20px rgba(198,154,67,.32);
}

.tile:hover, .tile.is-near {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(32,244,255,.12), 0 28px 70px rgba(0,0,0,.68), 0 0 32px rgba(32,244,255,.16);
}

h1, h2 {
  font-family: "Playfair Display", serif;
  margin: 0;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .86;
}

h1 {
  font-size: clamp(4.4rem, 13vw, 12.5rem);
  max-width: 11ch;
  color: var(--parchment);
  text-shadow: 0 0 1px var(--brass), 0 18px 45px rgba(160,24,122,.42), .035em .025em 0 rgba(32,244,255,.18);
}

h2 { font-size: clamp(3rem, 7vw, 7.5rem); color: var(--parchment); }

p { font-size: clamp(1rem, 1.35vw, 1.35rem); line-height: 1.45; }

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(.72rem, .9vw, .95rem);
  color: rgba(242,226,184,.78);
  letter-spacing: .02em;
}

.eyebrow, .icon-card span {
  margin: 0 0 14px;
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
  font-size: .78rem;
}

.salon-grid {
  grid-template-columns: 1.4fr .5fr .75fr;
  grid-template-rows: minmax(180px, .65fr) minmax(250px, 1fr) minmax(130px, .45fr);
  grid-template-areas:
    "dial hero question"
    "transcript hero question"
    "transcript clock clock";
  min-height: 78vh;
}

.hero-panel { grid-area: hero; display: flex; flex-direction: column; justify-content: center; }
.question-orbit { grid-area: question; display: grid; place-items: center; text-align: center; }
.dial-strip { grid-area: dial; display: flex; align-items: center; justify-content: space-around; gap: 16px; }
.transcript-slit { grid-area: transcript; writing-mode: vertical-rl; transform-origin: center; }
.clock-panel { grid-area: clock; display: flex; align-items: center; justify-content: space-between; gap: 22px; }

.hero-copy { max-width: 680px; color: rgba(242,226,184,.82); font-size: clamp(1.1rem, 2vw, 1.8rem); }
.whisper { color: var(--cyan); }
.human { color: var(--chartreuse); }
.machine { color: var(--cyan); }

.brass-tab {
  position: absolute;
  top: 0;
  left: 12%;
  width: 110px;
  height: 12px;
  background: var(--brass);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 8% 100%);
}

.dial {
  width: clamp(56px, 7vw, 92px);
  height: clamp(56px, 7vw, 92px);
  border: 2px solid var(--brass);
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 22px rgba(32,244,255,.16), 0 0 18px rgba(198,154,67,.18);
}
.dial i { position: absolute; width: 2px; height: 38%; background: var(--chartreuse); left: 50%; top: 12%; transform-origin: bottom; animation: tick 7s steps(28) infinite; }

.clock-face {
  width: clamp(100px, 14vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--brass);
  position: relative;
  background: radial-gradient(circle, rgba(242,226,184,.08), transparent 60%);
}
.clock-face span, .clock-face::before { content: ""; position: absolute; left: 50%; bottom: 50%; width: 2px; background: var(--cyan); transform-origin: bottom; }
.clock-face span { height: 36%; animation: tick 12s linear infinite; }
.clock-face::before { height: 25%; background: var(--brass); transform: rotate(82deg); }

.interview-grid {
  grid-template-columns: .34fr .9fr .7fr .58fr;
  grid-template-rows: minmax(220px, 1fr) minmax(220px, .9fr);
  grid-template-areas:
    "strip window window phone"
    "strip punch profile profile";
  min-height: 76vh;
}
.interrogation-window { grid-area: window; }
.vertical-strip { grid-area: strip; display: grid; place-items: center; }
.phone-tile { grid-area: phone; }
.punch-tile { grid-area: punch; }
.profile-tile { grid-area: profile; }
.rotated { writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: .18em; }

.conversation {
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.conversation p {
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid var(--brass);
  background: rgba(11,7,13,.38);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(.82rem, 1vw, 1rem);
}
.conversation span { color: var(--chartreuse); margin-right: 12px; text-transform: uppercase; }

.glyph {
  width: min(170px, 72%);
  overflow: visible;
  fill: none;
  stroke: var(--brass);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(32,244,255,.28));
}
.glyph path, .glyph circle { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.4s ease, stroke .35s ease; }
.reveal-card.is-visible .glyph path, .reveal-card.is-visible .glyph circle, .opening-salon .glyph path, .opening-salon .glyph circle { stroke-dashoffset: 0; }
.icon-card { display: grid; place-items: center; text-align: center; gap: 16px; }
.icon-card:hover .glyph, .icon-card.is-near .glyph { stroke: var(--cyan); }
.glyph-question { width: min(230px, 88%); stroke: var(--cyan); animation: floatQ 4.2s ease-in-out infinite; }

.punch-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(198,154,67,.45);
  background: rgba(242,226,184,.08);
  transform: skewX(-8deg);
}
.punch-card i { height: 18px; background: var(--black); border: 1px solid rgba(32,244,255,.45); box-shadow: inset 0 0 12px rgba(32,244,255,.22); }

.gallery-grid {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: minmax(190px, .8fr) minmax(190px, .8fr) minmax(150px, .55fr);
  grid-template-areas:
    "intro intro intro eye knight key"
    "intro intro intro mask finger tape"
    "whisper whisper eye mask finger tape";
  min-height: 78vh;
}
.gallery-intro { grid-area: intro; display: flex; flex-direction: column; justify-content: center; }
.gallery-grid .icon-card:nth-of-type(2) { grid-area: eye; }
.gallery-grid .icon-card:nth-of-type(3) { grid-area: knight; }
.gallery-grid .icon-card:nth-of-type(4) { grid-area: key; }
.gallery-grid .icon-card:nth-of-type(5) { grid-area: mask; }
.gallery-grid .icon-card:nth-of-type(6) { grid-area: finger; }
.gallery-grid .icon-card:nth-of-type(7) { grid-area: tape; }
.whisper-tile { grid-area: whisper; display: grid; place-items: center; border-color: var(--chartreuse); }

.mirror-grid {
  grid-template-columns: .7fr 1.5fr .7fr;
  grid-template-rows: minmax(180px, .48fr) minmax(380px, 1fr);
  grid-template-areas:
    "human transcript machine"
    "human verdict machine";
  min-height: 78vh;
}
.verdict-panel { grid-area: verdict; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(145deg, rgba(11,7,13,.9), rgba(33,20,38,.88)); }
.mirror-shard { display: grid; place-items: center; font-family: "Playfair Display", serif; font-size: clamp(2rem, 5vw, 4.6rem); color: rgba(242,226,184,.22); text-transform: lowercase; }
.mirror-shard:first-of-type { grid-area: human; }
.mirror-shard.machine { grid-area: machine; }
.final-transcript { grid-area: transcript; display: grid; place-items: center; text-align: center; }

.empty-compartment {
  width: min(720px, 90%);
  height: clamp(120px, 18vh, 210px);
  margin: 34px auto 20px;
  border: 1px solid rgba(32,244,255,.55);
  background: radial-gradient(circle at 50% 0, rgba(32,244,255,.13), transparent 52%), rgba(11,7,13,.74);
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 40px rgba(0,0,0,.7), 0 0 34px rgba(160,24,122,.24);
}
.cursor-blink { width: 18px; height: 54px; background: var(--chartreuse); box-shadow: 0 0 20px rgba(216,255,62,.7); animation: blink 1.1s steps(2) infinite; }
.final-line { color: var(--chartreuse); font-family: "IBM Plex Mono", monospace; }

.reveal-card { opacity: .26; transform: translateY(42px) rotateX(3deg); }
.reveal-card.is-visible { opacity: 1; transform: translateY(0) rotateX(0); }

@keyframes drift { to { transform: translate3d(8vw, -5vh, 0) scale(1.12); } }
@keyframes scan { to { transform: translateY(44px); } }
@keyframes tick { to { transform: rotate(360deg); } }
@keyframes floatQ { 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 980px) {
  .salon-grid, .interview-grid, .gallery-grid, .mirror-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: none;
  }
  .tile, .hero-panel, .question-orbit, .dial-strip, .transcript-slit, .clock-panel,
  .interrogation-window, .vertical-strip, .phone-tile, .punch-tile, .profile-tile,
  .gallery-intro, .whisper-tile, .verdict-panel, .mirror-shard, .final-transcript,
  .gallery-grid .icon-card:nth-of-type(n) { grid-area: auto; }
  .transcript-slit, .rotated { writing-mode: horizontal-tb; }
}

@media (max-width: 640px) {
  .scene { padding: 20px; }
  .salon-grid, .interview-grid, .gallery-grid, .mirror-grid { grid-template-columns: 1fr; }
  .dial-strip { flex-wrap: wrap; }
  .clock-panel { flex-direction: column; }
}
