﻿@font-face {
  font-family: "NotoDeva";
  src: url("../vendor/noto-devanagari.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0910;
  --ink: #f2ece2;
  --dim: rgba(242, 236, 226, 0.55);
  --line: rgba(242, 236, 226, 0.18);
  --gold: #e6b56b;
  --teal: #6fbdb2;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, "NotoDeva", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "NotoDeva", sans-serif;
  --deva: "NotoDeva", "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif;
  --pad: clamp(18px, 3.2vw, 48px);
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: none;
  overscroll-behavior: none;
}

body.is-loading {
  cursor: progress;
}

#app {
  position: fixed;
  inset: 0;
  isolation: isolate;
}

#webgl {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#webgl canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* film grain + vignette: the cheap part of igloo's post stack */
#grain {
  position: absolute;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.55'/></svg>");
  animation: grain 1.1s steps(3) infinite;
  mix-blend-mode: screen;
}

@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-2%, 1%, 0); }
  66% { transform: translate3d(1%, -2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

#vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 48%, transparent 42%, rgba(4, 3, 8, 0.72) 100%);
}

/* ---------- HUD ---------- */
.hud {
  position: absolute;
  z-index: 4;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hud a {
  pointer-events: auto;
}

.hud--tl { top: var(--pad); left: var(--pad); }
.hud--tr { top: var(--pad); right: var(--pad); text-align: right; max-width: 30ch; }
.hud--bl { bottom: var(--pad); left: var(--pad); }
.hud--br { bottom: var(--pad); right: var(--pad); text-align: right; }

.logo {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.logo svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
  flex: none;
}

.logo b {
  display: block;
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.logo i {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.12em;
}

.hud__nav {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.hud__nav a {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.hud__nav a:hover,
.hud__nav a.is-active {
  color: var(--ink);
  border-color: var(--gold);
}

.hud__kicker {
  color: var(--ink);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

.hud__body {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(242, 236, 226, 0.62);
}

.hud__hint {
  margin-bottom: 14px;
  color: var(--ink);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hud__hint.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.hud__hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 26px;
  margin-top: 8px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(5px); opacity: 1; }
}

.hud__row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: var(--dim);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  pointer-events: auto;
  padding: 4px 0;
}

.sound:hover { color: var(--ink); }

.sound__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.sound__bars i {
  width: 2px;
  height: 3px;
  background: currentColor;
  transition: height 0.25s ease;
}

.sound[aria-pressed="true"] i:nth-child(1) { height: 5px; animation: eq 0.9s ease-in-out infinite; }
.sound[aria-pressed="true"] i:nth-child(2) { height: 10px; animation: eq 0.7s ease-in-out infinite 0.1s; }
.sound[aria-pressed="true"] i:nth-child(3) { height: 7px; animation: eq 1.1s ease-in-out infinite 0.2s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.hud__counter b { color: var(--ink); }

.hud__meta span + span::before {
  content: "\00b7";
  opacity: 0.5;
}

/* ---------- copy panels ---------- */
#copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.panel {
  position: absolute;
  left: var(--pad);
  top: 21vh;
  max-width: min(620px, 54vw);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.panel[hidden] { display: none; }

.panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.panel__kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.panel__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 70px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.panel__title--sm {
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 0.95;
}

.panel__sub {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: clamp(13px, 1.5vw, 16px);
  line-height: 1.7;
  color: rgba(242, 236, 226, 0.78);
  letter-spacing: 0.01em;
}

.panel__sub span {
  color: rgba(242, 236, 226, 0.5);
  font-size: 0.9em;
}

.panel__sub a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 181, 107, 0.4);
}

.panel__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  list-style: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.panel__facts b {
  color: var(--ink);
  font-weight: 500;
  margin-right: 6px;
}

.panel__list {
  margin-top: 22px;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.panel__list li {
  display: flex;
  gap: 14px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  transition: color 0.4s ease, padding-left 0.4s ease;
}

.panel__list li span {
  color: var(--gold);
}

.panel__list li.is-current {
  color: var(--ink);
  padding-left: 6px;
}

.panel__cta {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #14100b;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: rgba(242, 236, 226, 0.06);
}

/* ---------- progress ---------- */
.progress {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(242, 236, 226, 0.08);
}

.progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transition: width 0.15s linear;
}

/* ---------- loader ---------- */
.loader {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.loader__ascii {
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 0.2em;
  color: var(--ink);
  text-shadow: 0 0 12px rgba(230, 181, 107, 0.5);
}

.loader__label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--dim);
}

.loader__pct {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(242, 236, 226, 0.35);
}

/* ---------- fallback ---------- */
.fallback {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--bg);
  padding: var(--pad);
  font-family: var(--sans);
  display: grid;
  align-content: center;
  gap: 12px;
}

@media (max-width: 760px) {
  .hud--tr { display: none; }
  .hud__nav { display: none; }
  .panel { top: 13vh; max-width: 90vw; }
  .panel__title { font-size: clamp(34px, 11vw, 56px); }
  .panel__title--sm { font-size: clamp(24px, 7.4vw, 38px); }
  .panel__sub { margin-top: 12px; font-size: 12px; }
  .panel__facts { gap: 10px 16px; margin-top: 14px; font-size: 10px; }
  .panel__list { margin-top: 14px; font-size: 10px; }
  .panel__list li { padding: 4px 0; }
  .panel__cta { margin-top: 16px; }
  .hud__meta { display: none; }
  .hud__hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #grain {
    animation: none;
  }

  .hud__hint::after {
    animation: none;
    opacity: 0.8;
  }

  .sound[aria-pressed="true"] i {
    animation: none;
  }

  .panel {
    transition-duration: 0.01ms;
  }

  .btn:hover {
    transform: none;
  }
}

/* ---- content blocks added with the SEO copy (copy_2) ---- */
.panel__services {
  margin-top: 10px;
  list-style: none;
  display: grid;
  gap: 2px;
  max-height: 34vh;
  overflow-y: auto;
  padding-right: 6px;
}

.panel__services li {
  display: grid;
  gap: 2px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
}

.panel__services b {
  font-family: var(--deva);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.panel__services span {
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--dim);
  text-transform: none;
}

.panel__services li.is-current b {
  color: var(--gold);
}

.panel__areas {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.panel__details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 11px;
}

.panel__details summary {
  cursor: pointer;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 10px;
  list-style: none;
}

.panel__details summary::-webkit-details-marker {
  display: none;
}

.panel__details summary::before {
  content: "+ ";
  color: var(--dim);
}

.panel__details[open] summary::before {
  content: "− ";
}

.panel__details table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 11px;
}

.panel__details th,
.panel__details td {
  text-align: left;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(242, 236, 226, 0.08);
  font-weight: 400;
  color: var(--dim);
}

.panel__details td {
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}

.panel__bullets {
  margin: 8px 0 0;
  padding-left: 14px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.7;
}

.panel__legal {
  margin-top: 14px;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: rgba(242, 236, 226, 0.32);
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .panel__services {
    max-height: 30vh;
  }
  .panel__details table {
    font-size: 10px;
  }
}

/* panel scroll (copy_2): long copy must never run under the HUD */
.panel {
  max-height: calc(79vh - 128px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 181, 107, 0.45) transparent;
}

.panel::-webkit-scrollbar {
  width: 4px;
}

.panel::-webkit-scrollbar-thumb {
  background: rgba(230, 181, 107, 0.45);
}

.panel__services {
  max-height: none;
  overflow: visible;
}

@media (max-width: 760px) {
  .panel {
    max-height: calc(72vh - 120px);
  }
}
