/* ============================================================
   1984 — ESCAPE ROOM · marketing site
   Palette: blackout dark / dossier cream / alert red
   Type: Anton (display) · Special Elite (typewriter) · system (body)
   ============================================================ */

:root {
  --bg: #0e0d0b;
  --bg-deep: #0a0908;
  --panel: #16140f;
  --panel-2: #1c1913;
  --paper: #e9dfc8;
  --paper-bright: #f4ecd8;
  --dim: #a89f8b;
  --faint: #6f6857;
  --line: rgba(233, 223, 200, 0.14);
  --line-strong: rgba(233, 223, 200, 0.28);
  --red: #d23c32;
  --red-deep: #a32c25;
  --acc-p1984: #d23c32;
  --acc-blackout: #e2762d;
  --acc-meltdown: #e3b32a;
  --acc-meridian: #a184ff;
  --acc-green: #8fd18a;
  --display: "Anton", "Arial Narrow", sans-serif;
  --type: "Special Elite", "Courier New", monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* CRT scanlines + vignette over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.022) 0px,
    rgba(255, 255, 255, 0.022) 1px,
    transparent 1px,
    transparent 3px
  );
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(0, 0, 0, 0.42) 100%
  );
}

::selection { background: var(--red); color: var(--bg); }

img, svg { max-width: 100%; display: block; }

a { color: var(--paper); }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- type helpers ---------- */

.kicker {
  font-family: var(--type);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.section-label {
  font-family: var(--type);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.section-label em {
  font-style: normal;
  color: var(--red);
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(36px, 5.4vw, 58px);
  margin-bottom: 14px;
}

.lede {
  color: var(--dim);
  max-width: 60ch;
}

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

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-deep) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .keyhole { filter: drop-shadow(0 0 4px rgba(210, 60, 50, 0.65)); }
.brand-name {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--type);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  font-family: var(--type);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--paper); }
.site-nav .nav-cta {
  color: var(--bg);
  background: var(--red);
  padding: 9px 16px 8px;
  border: 1px solid var(--red);
}
.site-nav .nav-cta:hover { background: var(--paper); border-color: var(--paper); color: var(--bg); }

@media (max-width: 760px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

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

.hero {
  position: relative;
  padding: 150px 0 72px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(88px, 15vw, 190px);
  color: var(--paper-bright);
  text-shadow: 5px 5px 0 var(--red-deep);
  margin: 10px 0 2px;
}
.hero .h1-sub {
  font-family: var(--display);
  font-size: clamp(22px, 3.6vw, 40px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 26px;
}

.hero .lede { margin-bottom: 34px; }
.hero .lede strong { color: var(--paper); font-weight: 600; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px 13px;
  border: 1px solid var(--paper);
  transition: transform 0.15s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--bg-deep);
}
.btn-primary:hover { background: var(--paper); border-color: var(--paper); transform: translateY(-2px); }
.btn-ghost { color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn small {
  display: block;
  font-family: var(--type);
  font-size: 9px;
  letter-spacing: 0.2em;
  opacity: 0.75;
}
.btn .btn-stack { text-align: left; line-height: 1.1; }

.hero-meta {
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.hero-meta span::before {
  content: "▸ ";
  color: var(--red);
}

/* viewfinder corners + REC lamp */
.viewfinder {
  position: absolute;
  inset: 86px 24px 24px;
  z-index: 1;
  pointer-events: none;
}
.viewfinder i {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line-strong);
}
.viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.rec {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--dim);
}
.rec b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* hero art */
.hero-art { position: relative; }
.hero-art .phone-svg {
  width: min(360px, 78vw);
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
.hero-eye {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  opacity: 0.16;
  z-index: -1;
}
.hero-eye .ring-dash {
  transform-origin: 50% 50%;
  animation: spin 70s linear infinite;
}
.hero-eye .pupil {
  transform-origin: 50% 50%;
  animation: dilate 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dilate {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.78); }
}

@media (max-width: 900px) {
  .hero { padding-top: 120px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-eye { width: 480px; height: 480px; }
}

/* ---------- ticker ---------- */

.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 30s linear infinite;
}
.ticker span {
  font-family: var(--type);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  padding-right: 18px;
}
.ticker span b { color: var(--red); font-weight: 400; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

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

/* rooms */
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.room {
  --acc: var(--red);
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 30px 28px 28px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  overflow: hidden;
}
.room:hover {
  border-color: var(--acc);
  transform: translateY(-3px);
  background: var(--panel-2);
}
.room::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--acc);
}
.room-file {
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.tag {
  font-family: var(--type);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc);
  border: 1px solid var(--acc);
  padding: 4px 9px 3px;
  white-space: nowrap;
}
.tag-solid { background: var(--acc); color: var(--bg-deep); }
.room h3 {
  font-size: clamp(26px, 3.2vw, 34px);
  color: var(--paper-bright);
  margin-bottom: 12px;
}
.room h3 span { color: var(--acc); }
.room p { color: var(--dim); font-size: 15.5px; }
.room .room-mech {
  margin-top: 18px;
  font-family: var(--type);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
}
.room .room-mech::before { content: "MECHANIC ▸ "; color: var(--faint); }

@media (max-width: 820px) {
  .room-grid { grid-template-columns: 1fr; }
}

/* features */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 44px;
}
.feat {
  background: var(--bg);
  padding: 30px 26px 34px;
  transition: background 0.2s;
}
.feat:hover { background: var(--panel); }
.feat svg { width: 34px; height: 34px; margin-bottom: 18px; stroke: var(--red); }
.feat h3 { font-size: 20px; letter-spacing: 0.05em; margin-bottom: 10px; }
.feat p { color: var(--dim); font-size: 14.5px; }
@media (max-width: 980px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
}

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
  counter-reset: step;
}
.step {
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: 28px 26px 30px;
  background: var(--panel);
  position: relative;
}
.step-num {
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  margin-bottom: 14px;
}
.step h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: 0.06em; }
.step h3 small {
  display: block;
  font-family: var(--type);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--red);
  margin-bottom: 8px;
}
.step p { color: var(--dim); font-size: 15px; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

/* pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
  align-items: stretch;
}
.price {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.price:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.price.flag { border-color: var(--red); }
.price.flag:hover { border-color: var(--red); }
.price .tier {
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}
.price .amount {
  font-family: var(--display);
  font-size: 46px;
  line-height: 1;
  color: var(--paper-bright);
}
.price .amount small {
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.price ul { list-style: none; }
.price li {
  color: var(--dim);
  font-size: 14.5px;
  padding: 7px 0 7px 22px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.price li:last-child { border-bottom: 0; }
.price li::before {
  content: "▸";
  color: var(--red);
  position: absolute;
  left: 2px;
}
.price .ribbon {
  position: absolute;
  top: -1px;
  right: 18px;
  background: var(--red);
  color: var(--bg-deep);
  font-family: var(--type);
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 6px 10px 5px;
}
.fine {
  margin-top: 26px;
  font-size: 13px;
  color: var(--faint);
  max-width: 74ch;
}
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* CTA */
.cta-final { text-align: center; padding: 110px 0; }
.cta-final h2 { font-size: clamp(40px, 7vw, 84px); }
.cta-final h2 em {
  font-style: normal;
  color: var(--red);
}
.cta-final .lede { margin: 18px auto 40px; }
.cta-final .cta-row { justify-content: center; }
.cta-final .req {
  font-family: var(--type);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 8px;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 60px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 44px;
}
.foot-grid h4 {
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.15s;
}
.foot-grid a:hover { color: var(--paper); }
.foot-brand p {
  color: var(--faint);
  font-size: 13.5px;
  max-width: 34ch;
  margin-top: 14px;
}
.foot-safety {
  font-family: var(--type);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
  border: 1px dashed var(--line-strong);
  padding: 14px 16px;
  line-height: 1.7;
}
.foot-safety b { color: var(--acc-meltdown); font-weight: 400; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- legal / dossier pages ---------- */

.doc-page {
  padding: 120px 0 90px;
  min-height: 100vh;
}
.doc {
  background: var(--paper);
  color: #221e15;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px);
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(34, 30, 21, 0.025) 0,
    rgba(34, 30, 21, 0.025) 1px,
    transparent 1px,
    transparent 28px
  );
}
.doc::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(34, 30, 21, 0.22);
  pointer-events: none;
}
.doc-stamp {
  position: absolute;
  top: 34px;
  right: 30px;
  transform: rotate(7deg);
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-deep);
  border: 2px solid var(--red-deep);
  padding: 8px 12px 6px;
  opacity: 0.8;
}
.doc-meta {
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a7057;
  margin-bottom: 8px;
}
.doc h1 {
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 54px);
  color: #221e15;
  margin: 4px 0 6px;
}
.doc .doc-date {
  font-family: var(--type);
  font-size: 13px;
  color: #7a7057;
  margin-bottom: 34px;
}
.doc h2 {
  font-family: var(--type);
  font-size: 16.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #221e15;
  margin: 38px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(34, 30, 21, 0.25);
}
.doc p, .doc li { font-size: 15.5px; line-height: 1.75; color: #3a3527; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 14px 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: #221e15; }
.doc a { color: var(--red-deep); }
.doc .callout {
  border: 1px dashed rgba(34, 30, 21, 0.4);
  padding: 16px 18px;
  margin: 0 0 14px;
  background: rgba(34, 30, 21, 0.04);
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc-page .backlink {
  display: block;
  max-width: 820px;
  margin: 0 auto 18px;
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
}
.doc-page .backlink:hover { color: var(--paper); }

/* ---------- 404 ---------- */

.err-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
}
.err-page .code {
  font-family: var(--display);
  font-size: clamp(110px, 24vw, 240px);
  line-height: 1;
  color: var(--paper-bright);
  text-shadow: 5px 5px 0 var(--red-deep);
}
.err-page h1 {
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: 0.3em;
  color: var(--red);
  margin: 16px 0 18px;
}
.err-page p { color: var(--dim); margin-bottom: 32px; }

/* ---------- waitlist terminal ---------- */

.waitlist {
  position: relative;
  max-width: 440px;
  margin: 40px auto 30px;
  padding: 34px 30px 30px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(233, 223, 200, 0.03);
}
/* top signal-red rule, like the room cards */
.waitlist::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
/* faint sweeping scan bar */
.wl-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(210, 60, 50, 0.06), transparent);
  animation: wl-sweep 6s ease-in-out infinite;
}
@keyframes wl-sweep {
  0%, 100% { transform: translateY(-40%); opacity: 0; }
  50% { transform: translateY(180%); opacity: 1; }
}

.wl-stage { position: relative; z-index: 1; }

/* padlock */
.wl-padlock { width: 52px; height: 52px; margin: 0 auto 14px; display: block; }
.wl-padlock .wl-shackle,
.wl-padlock .wl-body {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: 44px 26px;
}
.wl-padlock.is-unlocking .wl-shackle { transform: translateY(-7px) rotate(-24deg); }
.wl-padlock.is-unlocking { filter: drop-shadow(0 0 10px rgba(210, 60, 50, 0.6)); }

.wl-title {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-bright);
  line-height: 1;
  margin-bottom: 8px;
}
.wl-sub {
  font-size: 14.5px;
  color: var(--dim);
  max-width: 32ch;
  margin: 0 auto 20px;
}

/* code display */
.wl-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.wl-display span {
  width: 46px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--type);
  font-size: 30px;
  color: var(--red);
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
}
.wl-display.filled span { border-color: rgba(210, 60, 50, 0.5); }
.wl-display.is-wrong span {
  color: var(--red);
  border-color: var(--red);
}
.wl-display.is-wrong { animation: wl-shake 0.4s ease; }
@keyframes wl-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-9px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

.wl-denied {
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--red);
  height: 16px;
  margin-bottom: 12px;
  opacity: 0;
  transition: opacity 0.15s;
}
.wl-denied.show { opacity: 1; }

/* keypad */
.wl-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 280px;
  margin: 4px auto 18px;
}
.wl-key {
  font-family: var(--type);
  font-size: 22px;
  color: var(--paper);
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 14px 0;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, transform 0.06s;
  -webkit-tap-highlight-color: transparent;
}
button.wl-key:hover { background: var(--panel-2); border-color: var(--line-strong); color: var(--paper-bright); }
button.wl-key:active { transform: scale(0.94); }
button.wl-key:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wl-key-spacer { background: transparent; border: 0; cursor: default; pointer-events: none; }
.wl-key-del { color: var(--dim); }

.wl-hintbox { min-height: 34px; display: flex; justify-content: center; }
.wl-hint-toggle {
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--dim);
  background: transparent;
  border: 1px dashed var(--line-strong);
  padding: 7px 13px 6px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.wl-hint-toggle:hover { color: var(--paper); border-color: var(--red); background: var(--panel-2); }
.wl-hint-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wl-hint {
  font-family: var(--type);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin: 0;
  align-self: center;
}
.wl-hint::before { content: "🔎 "; }
.wl-hint[hidden] { display: none; }

/* form stage */
.wl-form { display: block; }
.wl-granted {
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--acc-green);
  margin-bottom: 14px;
}
.wl-field {
  display: block;
  text-align: left;
  margin: 0 auto 16px;
  max-width: 320px;
}
.wl-field span {
  display: block;
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.wl-field input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--paper-bright);
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wl-field input::placeholder { color: var(--faint); }
.wl-field input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(210, 60, 50, 0.18);
}
.wl-field input:user-invalid { border-color: var(--red); }

.wl-error {
  color: var(--red);
  font-size: 13.5px;
  margin: 0 auto 14px;
  max-width: 320px;
}

.wl-submit {
  width: 100%;
  max-width: 320px;
  margin: 2px auto 0;
  justify-content: center;
  border: 1px solid var(--red);
  cursor: pointer;
  position: relative;
}
.wl-submit[disabled] { opacity: 0.7; cursor: progress; }
.wl-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(14, 13, 11, 0.35);
  border-top-color: var(--bg-deep);
  border-radius: 50%;
  animation: wl-spin 0.7s linear infinite;
}
.wl-submit.is-busy .wl-spinner { display: inline-block; }
.wl-submit.is-busy .wl-submit-label { opacity: 0.5; }
@keyframes wl-spin { to { transform: rotate(360deg); } }

.wl-privacy {
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
.wl-privacy a { color: var(--dim); }
.wl-privacy a:hover { color: var(--paper); }

/* success stage */
.wl-check { width: 60px; height: 60px; margin: 0 auto 16px; display: block; }
.wl-check circle, .wl-check path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: wl-draw 0.7s ease forwards;
}
.wl-check path { animation-delay: 0.35s; }
@keyframes wl-draw { to { stroke-dashoffset: 0; } }

/* stage transitions */
.wl-stage[hidden] { display: none; }
.wl-reveal-in { animation: wl-fade-up 0.45s ease both; }
@keyframes wl-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wl-scan, .wl-display.is-wrong, .wl-reveal-in, .wl-check circle, .wl-check path { animation: none; }
  .wl-padlock .wl-shackle, .wl-padlock .wl-body { transition: none; }
  .wl-check circle, .wl-check path { stroke-dashoffset: 0; }
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .hero-eye .ring-dash, .hero-eye .pupil, .rec b {
    animation: none;
  }
}
