/* AWAKEN HUD skin. Loads after styles.css and next.css and only restyles: every section, effect and
   script of the homepage stays as it is. Dot grid, dot-matrix headlines, outlined mono boxes, corner ticks. */
body.hud {
  --font-display: 'Doto', 'Anybody', monospace;
  --font-body: 'JetBrains Mono', ui-monospace, monospace;
  --r-sm: 0px; --r: 0px; --r-lg: 0px; --r-xl: 0px;
  --line: rgb(236 238 242 / .16);
  --line-2: rgb(236 238 242 / .34);
  --hud-tick: rgb(236 238 242 / .9);
  --hud-dot: rgb(255 255 255 / .075);
  --hud-cyan: #2ee6ff;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: .01em;
}

/* dot grid under the room light, grain and scanlines over everything */
body.hud::before {
  background:
    radial-gradient(55vw 65vh at -10% 40%, rgb(var(--room-left) / .16), transparent 70%),
    radial-gradient(55vw 65vh at 110% 60%, rgb(var(--room-right) / .16), transparent 70%),
    radial-gradient(var(--hud-dot) 1px, transparent 1.3px) 0 0 / 14px 14px;
}
.hud-grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .45; mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(0deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* ---- type: dot-matrix display face, uppercase. The hero keeps its wake: thin to full weight. ---- */
.hud .hero__title, .hud .h2, .hud .h3, .hud .close__title, .hud .wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.01em;
  text-shadow: 0 0 18px rgb(255 255 255 / .22);
}
.hud .hero__title { font-size: clamp(44px, 6vw, 112px); line-height: .88; }
.hud .hero__title span { font-variation-settings: "wght" 200; }
.hud .hero__title.is-awake span { font-variation-settings: "wght" 900; }
.hud .h2 { font-variation-settings: "wght" 900; font-weight: 900; line-height: .9; }
.hud .h3 { font-variation-settings: "wght" 800; font-weight: 800; }
.hud .say { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.65; }
.hud .fine, .hud .dim, .hud .opt-label, .hud .buy__note, .hud .demo__note, .hud .reel__note,
.hud .mosaic__caption, .hud .hero__aim, .hud .room__cardsLabel, .hud .room__hint, .hud .film__note,
.hud .footer__legal, .hud .footer__base {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; font-size: 11px;
}
.hud .hero__price b, .hud .price, .hud .sum__total { font-family: var(--font-display); font-weight: 900; letter-spacing: 0; }

/* ---- nav ---- */
.hud .nav { border-bottom: 1px solid var(--line); }
.hud .nav__links a, .hud .mobile-menu a {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em; font-size: 11px;
}

/* ---- buttons: square, outlined, corner ticks ---- */
.hud .btn, .hud .cart-btn, .hud .room__cards button, .hud .icon-btn {
  border-radius: 0 !important;
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700;
  position: relative;
}
.hud .btn::before, .hud .btn::after {
  content: ""; position: absolute; width: 6px; height: 6px; border: 1px solid var(--hud-tick); pointer-events: none;
}
.hud .btn::before { left: -4px; top: -4px; border-right: 0; border-bottom: 0; }
.hud .btn::after { right: -4px; bottom: -4px; border-left: 0; border-top: 0; }
.hud .btn--light { background: var(--ink); color: #000; border: 1px solid var(--ink); }
.hud .btn--light:hover { background: transparent; color: var(--ink); }
.hud .btn--line, .hud .cart-btn { background: rgb(0 0 0 / .55); border: 1px solid var(--line-2); }
.hud .cart-btn__count { border-radius: 0; font-family: var(--font-body); }
.hud .room__cards button { border: 1px solid var(--line-2); background: rgb(0 0 0 / .6); }
.hud .room__cards button[aria-pressed="true"] { background: var(--ink); color: #000; }

/* ---- every rounded panel, field and swatch becomes a square outlined box ---- */
.hud :where(.part, .section, .buy, .drawer, .modal__card, .viewer, .faq, .reel, .film__frame, .pg-embed,
  .pg-embed__frame, .mosaic, .control__glass, .control__bezel, .bench, .steps, .trust, .models, .variants,
  .qty, .sum, .form-row, .toast, .buybar) :where(*) { border-radius: 0 !important; }
.hud input, .hud select, .hud textarea, .hud .toast, .hud .drawer, .hud .modal__card, .hud .viewer, .hud .buybar { border-radius: 0 !important; }
.hud .faq details, .hud .faq__a { border-color: var(--line-2); }
.hud .faq summary { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 700; }

/* section heads get the reference's numbered tag */
.hud .part__head { position: relative; }
.hud [data-hud-num]::before {
  content: attr(data-hud-num); display: block; margin-bottom: 14px;
  font: 700 11px/1 var(--font-body); letter-spacing: .14em; color: var(--hud-cyan); text-shadow: 0 0 10px rgb(46 230 255 / .6);
}

/* ---- HUD layer over the live 3D display ---- */
.hud-frame { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.hud-frame__corner { position: absolute; width: 22px; height: 22px; border: 1px solid var(--hud-tick); opacity: .8; }
.hud-frame__corner--tl { left: 18px; top: calc(var(--head, 72px) + 18px); border-right: 0; border-bottom: 0; }
.hud-frame__corner--tr { right: 18px; top: calc(var(--head, 72px) + 18px); border-left: 0; border-bottom: 0; }
.hud-frame__corner--bl { left: 18px; bottom: 18px; border-right: 0; border-top: 0; }
.hud-frame__corner--br { right: 18px; bottom: 18px; border-left: 0; border-top: 0; }
.hud-frame__tag {
  position: absolute; font: 500 10.5px/1.55 var(--font-body); text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-2); padding: 8px 10px; border: 1px solid var(--line); background: rgb(0 0 0 / .45); backdrop-filter: blur(3px);
}
.hud-frame__tag b { color: var(--ink); font-weight: 700; }
.hud-frame__tag--tr { right: 44px; top: calc(var(--head, 72px) + 40px); text-align: right; }
.hud-frame__tag--br { right: 44px; bottom: 44px; display: flex; gap: 10px; align-items: center; }
.hud-frame__live { width: 7px; height: 7px; background: #ff2d55; box-shadow: 0 0 10px #ff2d55; animation: hudBlink 1.2s steps(1) infinite; }
.hud-frame__led { color: var(--hud-cyan); }
@keyframes hudBlink { 50% { opacity: .15; } }

/* text scramble: keep width steady while glyphs swap */
.hud [data-scrambling] { font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .hud-frame__tag--tr, .hud-frame__corner--tr, .hud-frame__corner--tl { display: none; }
  .hud-frame__tag--br { right: 12px; bottom: auto; top: calc(var(--head, 72px) + 10px); padding: 5px 8px; }
  .hud-frame__corner--bl, .hud-frame__corner--br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hud-frame__live { animation: none; }
}

.hud-frame.is-off { opacity: 0; transition: opacity .3s; }
.hud-frame { transition: opacity .3s; }
