/* ============================================================
   AVIRA PRODUCTIONS — design system
   Palette from logo: bronze #8A5A1C → gold #D4A03A → hot gold #ECC35C
   on warm near-black. Type: Archivo (variable width) + IBM Plex Mono.
   ============================================================ */

:root {
  --bg0: #050403;          /* page void */
  --bg1: #0b0906;          /* raised panel */
  --bg2: #120f0a;          /* hover panel */
  --ink: #f2ede2;          /* warm white */
  --muted: #98907f;        /* warm gray */
  --gold: #d4a03a;
  --gold-hi: #eec765;
  --bronze: #8a5a1c;
  --line: rgba(212, 160, 58, 0.16);
  --line-soft: rgba(212, 160, 58, 0.08);
  --glow: rgba(212, 160, 58, 0.35);

  --font-d: "Archivo", "Arial Narrow", sans-serif;
  --font-m: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--font-d);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.preload *, body.preload *::before, body.preload *::after { transition: none !important; }
body.menu-open { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #0b0906; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }

/* subtle themed scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #070604; }
::-webkit-scrollbar-thumb { background: #2a2115; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #4a3a1e; }

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

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--font-m);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
h2 {
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-top: 18px;
  text-wrap: balance;
}
.section { padding: clamp(90px, 12vh, 150px) 0; position: relative; }
.section__head { max-width: 640px; margin-bottom: clamp(40px, 6vh, 72px); position: relative; }
.section__lede { color: var(--muted); margin-top: 18px; max-width: 54ch; }

/* signature beam scanline under each section head */
.section__head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -22px;
  height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold) 30%, transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) 0.25s;
  opacity: 0.55;
}
.section__head.in::after { transform: scaleX(1); }

.gold { color: var(--gold-hi); text-shadow: 0 0 24px var(--glow); }
.tick { width: 6px; height: 6px; background: var(--gold); display: inline-block; box-shadow: 0 0 10px var(--glow); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* ============================================================
   INTRO — house lights down
   ============================================================ */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg0);
  display: grid; place-items: center;
  transition: opacity 0.8s ease 0.1s, visibility 0s linear 1s;
}
.intro__lockup { display: grid; justify-items: center; gap: 18px; }
.intro__mark {
  width: clamp(90px, 14vw, 150px);
  opacity: 0;
  filter: drop-shadow(0 0 0 rgba(212, 160, 58, 0));
}
.intro.is-strike .intro__mark { animation: strike 1s steps(1, end) forwards, markGlow 1.3s ease 0.55s forwards; }
@keyframes strike {
  0% { opacity: 0; } 8% { opacity: 0.5; } 14% { opacity: 0.08; }
  26% { opacity: 0.75; } 34% { opacity: 0.2; } 48% { opacity: 0.9; }
  58% { opacity: 0.55; } 70%, 100% { opacity: 1; }
}
@keyframes markGlow {
  from { filter: drop-shadow(0 0 0 rgba(212, 160, 58, 0)); }
  60%  { filter: drop-shadow(0 0 34px rgba(212, 160, 58, 0.55)); }
  to   { filter: drop-shadow(0 0 18px rgba(212, 160, 58, 0.4)); }
}
.intro__word { display: flex; gap: 0.04em; font-weight: 900; font-stretch: 122%; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: 0.06em; line-height: 1; }
.intro__word span { opacity: 0; transform: translateY(0.5em); }
.intro.is-word .intro__word span { animation: rise 0.6s var(--ease) forwards; }
.intro.is-word .intro__word span:nth-child(1) { animation-delay: 0.00s; }
.intro.is-word .intro__word span:nth-child(2) { animation-delay: 0.06s; }
.intro.is-word .intro__word span:nth-child(3) { animation-delay: 0.12s; }
.intro.is-word .intro__word span:nth-child(4) { animation-delay: 0.18s; }
.intro.is-word .intro__word span:nth-child(5) { animation-delay: 0.24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.intro__sub {
  font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.6em; text-indent: 0.6em;
  color: var(--gold); opacity: 0;
}
.intro.is-word .intro__sub { animation: rise 0.7s var(--ease) 0.45s forwards; }
.intro__skip {
  position: absolute; bottom: 28px; right: 32px;
  font-family: var(--font-m); font-size: 0.68rem; letter-spacing: 0.2em;
  color: var(--muted); padding: 8px 4px;
  opacity: 0; animation: rise 0.5s ease 1.2s forwards;
}
.intro__skip:hover { color: var(--gold-hi); }
body.intro-done .intro { opacity: 0; visibility: hidden; pointer-events: none; }

/* ============================================================
   NAV — hanging notched plate
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; justify-content: center; pointer-events: none; }
.nav__plate {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  height: var(--nav-h);
  padding: 0 10px 0 22px;
  background: rgba(9, 7, 5, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
  transform: translateY(-110%);
  transition: transform 0.7s var(--ease), background 0.4s ease;
}
body.intro-done .nav__plate { transform: translateY(0); }
body.scrolled .nav__plate { background: rgba(7, 5, 4, 0.94); }

.nav__brand { display: flex; align-items: center; gap: 10px; padding-right: 6px; }
.nav__mark { width: 26px; filter: drop-shadow(0 0 8px rgba(212, 160, 58, 0.35)); }
.nav__word { font-weight: 900; font-stretch: 120%; letter-spacing: 0.08em; font-size: 1.05rem; }

.nav__links { display: flex; gap: clamp(10px, 2vw, 26px); }
.nav__links a {
  position: relative;
  font-size: 0.88rem; font-weight: 500;
  color: #cfc8ba;
  padding: 8px 2px;
  transition: color 0.25s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px;
  background: var(--gold-hi); box-shadow: 0 0 8px var(--glow);
  transition: right 0.35s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { right: 0; }

.nav__cta {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.88rem; color: #0b0906;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 60%, #b9871f);
  padding: 11px 20px 11px 16px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 0 22px rgba(212, 160, 58, 0.25);
  transition: box-shadow 0.3s ease, filter 0.3s ease;
}
.nav__cta:hover { box-shadow: 0 0 34px rgba(238, 199, 101, 0.5); filter: brightness(1.06); }
.nav__cta-dot { width: 6px; height: 6px; background: #0b0906; animation: pulse 2.2s ease infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
body.menu-open .nav__burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5, 4, 3, 0.97);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
body.menu-open .mmenu { opacity: 1; visibility: visible; transition-delay: 0s; }
.mmenu__links { display: grid; gap: 8px; }
.mmenu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-weight: 800; font-stretch: 115%; font-size: clamp(1.8rem, 8vw, 2.6rem);
  padding: 8px 0;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s;
}
.mmenu__links a em { font-family: var(--font-m); font-style: normal; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.2em; }
.mmenu__links a:hover { color: var(--gold-hi); }
body.menu-open .mmenu__links a { opacity: 1; transform: none; }
body.menu-open .mmenu__links a:nth-child(1) { transition-delay: 0.05s; }
body.menu-open .mmenu__links a:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .mmenu__links a:nth-child(3) { transition-delay: 0.15s; }
body.menu-open .mmenu__links a:nth-child(4) { transition-delay: 0.2s; }
body.menu-open .mmenu__links a:nth-child(5) { transition-delay: 0.25s; }

/* section rail */
.rail {
  position: fixed; left: 26px; top: 50%; transform: translateY(-50%);
  z-index: 60; display: grid; gap: 14px;
  opacity: 0; transition: opacity 0.6s ease 0.3s;
}
body.intro-done .rail { opacity: 1; }
.rail a {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-m); font-size: 0.62rem; letter-spacing: 0.22em;
  color: #6d6656; text-transform: uppercase;
  transition: color 0.3s ease;
}
.rail a i { width: 14px; height: 1px; background: #3a3223; transition: background 0.3s, box-shadow 0.3s, width 0.3s; }
.rail a.is-active { color: var(--gold-hi); }
.rail a.is-active i { width: 24px; background: var(--gold); box-shadow: 0 0 8px var(--glow); }
.rail a:hover { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;   /* fallback for browsers without svh units */
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero__beams { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
}
/* once the video is actually playing, it takes over from the canvas beams */
body.video-bg .hero__video { opacity: 1; }
body.video-bg .hero__beams { display: none; }
.hero__truss {
  position: absolute; inset: 0 0 auto 0; height: 140px;
  background: linear-gradient(180deg, rgba(5, 4, 3, 0.92), transparent);
  pointer-events: none;
}
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 110%, transparent 40%, rgba(5, 4, 3, 0.8) 100%),
    linear-gradient(180deg, transparent 65%, var(--bg0) 98%);
}
.hero__content { position: relative; z-index: 2; text-align: center; padding: 0 24px; max-width: 980px; }
.hero__eyebrow {
  font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.34em;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
}
.hero__title {
  font-weight: 850;
  font-stretch: 122%;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__accent {
  background: linear-gradient(115deg, var(--gold-hi), var(--gold) 55%, var(--bronze));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(212, 160, 58, 0.35));
}
.hero__sub { color: #b6ae9d; max-width: 56ch; margin: 26px auto 0; font-size: clamp(0.95rem, 1.4vw, 1.08rem); }

.hero__scroll {
  /* centered via auto margins, NOT translateX — the [data-intro] reveal
     overrides `transform`, which would undo a transform-based centering */
  position: absolute; bottom: 30px; left: 0; right: 0;
  width: max-content; margin-inline: auto;
  z-index: 2; display: grid; justify-items: center; gap: 10px;
}
.hero__scroll-line { width: 1px; height: 44px; background: linear-gradient(180deg, transparent, var(--gold)); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--gold-hi); box-shadow: 0 0 8px var(--glow);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { to { top: 110%; } }
.hero__scroll-label { font-family: var(--font-m); font-size: 0.6rem; letter-spacing: 0.34em; color: var(--muted); }

/* intro-gated hero items */
[data-intro] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
body.intro-done [data-intro] { opacity: 1; transform: none; }
body.intro-done [data-intro="1"] { transition-delay: 0.25s; }
body.intro-done [data-intro="2"] { transition-delay: 0.4s; }
body.intro-done [data-intro="3"] { transition-delay: 0.6s; }
body.intro-done [data-intro="4"] { transition-delay: 0.85s; }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement { padding: clamp(80px, 14vh, 160px) 0 clamp(40px, 6vh, 80px); }
.statement__text {
  margin-top: 26px;
  font-weight: 700; font-stretch: 112%;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  max-width: 24em;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: 30px 28px 26px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  background: linear-gradient(155deg, rgba(212, 160, 58, 0.28), rgba(212, 160, 58, 0.06) 55%);
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 1px; z-index: -2;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 17px, 100% 100%, 17px 100%, 0 calc(100% - 17px));
  background: linear-gradient(165deg, #0d0b07, #080605 70%);
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(212, 160, 58, 0.12), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease;
}
.card:hover::after { opacity: 1; }
.card__icon { color: var(--gold); width: 40px; margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(212, 160, 58, 0.3)); }
.card h3 { font-weight: 700; font-stretch: 112%; font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; max-width: 46ch; }
.card__chip {
  display: inline-block; margin-top: 20px;
  font-family: var(--font-m); font-size: 0.62rem; letter-spacing: 0.22em;
  color: var(--gold); border: 1px solid var(--line);
  padding: 7px 12px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
.card--wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 30px; }
.card--wide .card__icon { margin-bottom: 0; flex: 0 0 40px; }
.card--wide__body { flex: 1; }
.card--wide__body p { max-width: 72ch; }
.card__link {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.92rem; color: var(--gold-hi);
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  transition: gap 0.3s var(--ease), border-color 0.3s;
}
.card__link:hover { gap: 16px; border-color: var(--gold); }

/* ============================================================
   VISUALIZER
   ============================================================ */
.viz { background: linear-gradient(180deg, var(--bg0), #070503 30%, #070503 70%, var(--bg0)); }
.viz__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 74vh;
  width: 100%;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  background:
    linear-gradient(155deg, rgba(212, 160, 58, 0.3), rgba(212, 160, 58, 0.05) 50%) border-box,
    radial-gradient(80% 90% at 50% 20%, #14100a, #060504 75%);
  border: 1px solid var(--line);
}
.viz__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.viz__loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.3em; color: var(--gold);
  background: transparent; pointer-events: none;
  transition: opacity 0.6s ease;
}
.viz__loading.is-hidden { opacity: 0; }
.viz__loading .tick { animation: pulse 1.2s ease infinite; }
.viz__corner {
  position: absolute; z-index: 2;
  font-family: var(--font-m); font-size: 0.6rem; letter-spacing: 0.26em; color: #7d7460;
  pointer-events: none;
}
.viz__corner--tl { top: 16px; left: 20px; }
.viz__corner--br { bottom: 14px; right: 20px; }
.viz__controls {
  display: flex; flex-wrap: wrap; gap: 20px 40px;
  margin-top: 22px;
  justify-content: space-between;
}
.viz__group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.viz__group-label { font-family: var(--font-m); font-size: 0.62rem; letter-spacing: 0.26em; color: var(--muted); margin-right: 6px; }
.chip {
  font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.12em;
  color: #b7ad97;
  border: 1px solid rgba(212, 160, 58, 0.22);
  padding: 9px 16px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.chip:hover { color: var(--ink); border-color: var(--gold); }
.chip.is-active {
  color: #0b0906;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(212, 160, 58, 0.28);
}

/* ============================================================
   WORK
   ============================================================ */
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(212, 160, 58, 0.14), transparent 55%),
    linear-gradient(160deg, #100d08, #070504 75%);
  outline: 1px solid var(--line-soft);
  outline-offset: -1px;
  overflow: hidden;
  transition: transform 0.45s var(--ease);
}
.tile:nth-child(2) { background: radial-gradient(120% 90% at 15% 10%, rgba(212, 160, 58, 0.12), transparent 50%), linear-gradient(200deg, #0f0c07, #070504 75%); }
.tile:nth-child(3) { background: radial-gradient(140% 100% at 50% 120%, rgba(138, 90, 28, 0.25), transparent 60%), linear-gradient(160deg, #0d0a06, #070504); }
.tile:nth-child(4) { background: radial-gradient(120% 90% at 85% 90%, rgba(212, 160, 58, 0.1), transparent 55%), linear-gradient(120deg, #0f0c07, #060503 70%); }
.tile:nth-child(5) { background: radial-gradient(130% 90% at 20% 100%, rgba(238, 199, 101, 0.1), transparent 55%), linear-gradient(200deg, #0e0b06, #070504 75%); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(212, 160, 58, 0.12), transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.tile:hover { transform: translateY(-5px); }
.tile:hover::after { opacity: 1; }
.tile__tag { font-family: var(--font-m); font-size: 0.6rem; letter-spacing: 0.26em; color: var(--gold); }
.tile__name { font-weight: 700; font-stretch: 112%; font-size: 1.15rem; line-height: 1.2; }
.tile__meta { color: var(--muted); font-size: 0.8rem; }
.tile--cta { justify-content: center; align-items: center; text-align: center; outline-color: var(--line); background: linear-gradient(160deg, rgba(212, 160, 58, 0.08), transparent 70%), #0a0805; }
.tile__go { color: var(--gold-hi); font-size: 0.9rem; font-weight: 600; margin-top: 6px; }
.work__note { margin-top: 20px; font-size: 0.8rem; color: #6d6656; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: linear-gradient(180deg, transparent, rgba(212, 160, 58, 0.03) 50%, transparent); }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__copy p:not(.eyebrow) { color: var(--muted); margin-top: 18px; max-width: 54ch; }
.about__copy h2 { margin-bottom: 8px; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  padding: 28px 24px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  background: linear-gradient(165deg, #0d0b07, #080605);
  outline: 1px solid var(--line-soft); outline-offset: -1px;
}
.stat__num {
  display: block;
  font-weight: 850; font-stretch: 122%;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1;
  background: linear-gradient(115deg, var(--gold-hi), var(--gold) 60%, var(--bronze));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; margin-top: 10px; font-family: var(--font-m); font-size: 0.62rem; letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); }
.contact__intro p:not(.eyebrow) { color: var(--muted); margin-top: 18px; max-width: 44ch; }
.contact__direct { display: grid; gap: 12px; margin-top: 34px; }
.contact__direct a {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-m); font-size: 0.85rem; color: var(--ink);
  transition: color 0.25s;
}
.contact__direct a:hover { color: var(--gold-hi); }

.form { display: grid; gap: 22px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--font-m); font-size: 0.64rem; letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; }
.field__opt { color: #57503f; }
.field input, .field textarea {
  font: inherit; color: var(--ink);
  background: #0a0805;
  border: 1px solid rgba(212, 160, 58, 0.14);
  border-left: 2px solid rgba(212, 160, 58, 0.3);
  padding: 13px 16px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  resize: vertical;
  min-width: 0;
}
.field input::placeholder, .field textarea::placeholder { color: #57503f; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 160, 58, 0.25), 0 0 24px rgba(212, 160, 58, 0.08);
  background: #0c0a06;
}
/* display:none (not off-screen): Chrome autofill skips non-rendered fields,
   so a real visitor's autofill can never populate the honeypot */
.form__hp { display: none; }
.form__send {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 0.95rem; color: #0b0906;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 60%, #b9871f);
  padding: 15px 34px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 0 0 26px rgba(212, 160, 58, 0.22);
  transition: box-shadow 0.3s, filter 0.3s, opacity 0.3s;
}
.form__send:hover { box-shadow: 0 0 40px rgba(238, 199, 101, 0.45); filter: brightness(1.06); }
.form__send:disabled { opacity: 0.55; cursor: wait; }
.form__status { font-family: var(--font-m); font-size: 0.75rem; letter-spacing: 0.08em; min-height: 1.2em; }
.form__status.ok { color: #9fd27a; }
.form__status.err { color: #e08a6a; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line-soft); padding: 40px 0 26px; background: #040302; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-stretch: 118%; letter-spacing: 0.06em; }
.footer__brand em { font-family: var(--font-m); font-style: normal; font-weight: 400; font-size: 0.6rem; letter-spacing: 0.3em; color: var(--gold); }
.footer__mark { width: 22px; }
.footer__links { display: flex; gap: 22px; font-size: 0.85rem; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  font-family: var(--font-m); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  padding: 8px 11px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  transition: color 0.25s, border-color 0.25s;
}
.footer__social a:hover { color: var(--gold-hi); border-color: var(--gold); }
.footer__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid rgba(212, 160, 58, 0.05);
  font-size: 0.75rem; color: #57503f;
}
.footer__tag { font-family: var(--font-m); font-size: 0.6rem; letter-spacing: 0.3em; color: #57503f; }

/* ============================================================
   RIG SELECT — package configurator shell
   ============================================================ */
/* Stacked so the 3D viewport gets the full column width — the menu is a bar
   above it and the specs are a horizontal band below, rather than two side
   columns squeezing the viewport and stretching the manifest into a tall list. */
.rig { display: grid; gap: 14px; }

/* ---------- package menu (horizontal bar) ---------- */
.rig__menu { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }

.rig__item {
  position: relative;
  flex: 1 1 150px; max-width: 230px;
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: 10px; text-align: left;
  padding: 10px 14px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  background: linear-gradient(120deg, rgba(212, 160, 58, 0.05), transparent 70%), #0a0805;
  outline: 1px solid var(--line-soft); outline-offset: -1px;
  transition: background 0.3s ease, outline-color 0.3s ease, transform 0.3s var(--ease);
}
.rig__item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--gold-hi); box-shadow: 0 0 10px var(--glow);
  transform: scaleY(0); transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.rig__item:hover { background: linear-gradient(120deg, rgba(212, 160, 58, 0.1), transparent 70%), #0d0a06; transform: translateX(3px); }
.rig__item[aria-current="true"] {
  outline-color: var(--line);
  background: linear-gradient(120deg, rgba(212, 160, 58, 0.16), transparent 75%), #0e0b07;
}
.rig__item[aria-current="true"]::before { transform: scaleY(1); }
.rig__item-tier {
  font-family: var(--font-m); font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--gold); opacity: 0.75;
}
.rig__item-name {
  font-weight: 800; font-stretch: 112%; font-size: 1rem; letter-spacing: 0.02em;
  color: #cfc8ba; transition: color 0.25s;
}
.rig__item[aria-current="true"] .rig__item-name { color: var(--ink); }
.rig__item-sub {
  grid-column: 2; font-family: var(--font-m); font-size: 0.58rem;
  letter-spacing: 0.16em; color: var(--muted);
}

/* ---------- viewport badge ---------- */
.rig__view { display: grid; gap: 0; }
.rig__badge {
  position: absolute; top: 14px; right: 20px; z-index: 3;
  font-family: var(--font-m); font-size: 0.6rem; letter-spacing: 0.24em;
  color: var(--gold-hi);
  background: rgba(6, 4, 3, 0.6);
  border: 1px solid var(--line);
  padding: 6px 10px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  pointer-events: none;
}

/* ---------- specs band (sits under the viewport, stays shallow) ---------- */
.rig__panel {
  padding: 16px 18px 14px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  background: linear-gradient(165deg, #0c0a06, #070504 75%);
  outline: 1px solid var(--line-soft); outline-offset: -1px;
}
.rig__lede { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; max-width: 78ch; }

/* six stats across instead of stacked — keeps the band shallow */
.rig__stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 20px; }
.rig__stat { display: grid; grid-template-columns: 1fr auto; row-gap: 5px; align-content: start; }
.rig__stat-label { font-family: var(--font-m); font-size: 0.55rem; letter-spacing: 0.18em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rig__stat-val { font-family: var(--font-m); font-size: 0.68rem; color: var(--ink); text-align: right; white-space: nowrap; }
.rig__bar { grid-column: 1 / -1; display: flex; gap: 3px; }
.rig__seg {
  flex: 1; height: 5px;
  background: rgba(212, 160, 58, 0.09);
  outline: 1px solid rgba(212, 160, 58, 0.13); outline-offset: -1px;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.rig__seg.on {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 0 8px rgba(212, 160, 58, 0.45);
}

/* manifest + CTA share one row */
.rig__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.rig__mf-block { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; flex-wrap: wrap; }
.rig__manifest-head {
  font-family: var(--font-m); font-size: 0.55rem; letter-spacing: 0.26em;
  color: var(--gold); white-space: nowrap;
}

/* rows become inline chips so the list never becomes a tall column */
.rig__manifest { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.rig__manifest button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 10px;
  outline: 1px solid var(--line-soft); outline-offset: -1px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  background: rgba(212, 160, 58, 0.03);
  transition: background 0.3s ease, outline-color 0.3s ease;
}
.rig__manifest button:hover { background: rgba(212, 160, 58, 0.11); outline-color: var(--line); }
.rig__mf-qty { font-family: var(--font-m); font-size: 0.64rem; color: var(--gold); }
.rig__mf-name { font-family: var(--font-m); font-size: 0.6rem; letter-spacing: 0.1em; color: #cfc8ba; white-space: nowrap; }
.rig__manifest button:hover .rig__mf-name { color: var(--ink); }
.rig__mf-go { color: var(--gold); opacity: 0.45; font-size: 0.7rem; transition: opacity 0.25s, transform 0.25s var(--ease); }
.rig__manifest button:hover .rig__mf-go { opacity: 1; transform: translateX(2px); }

.rig__cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: 0.8rem; color: #0b0906;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 60%, #b9871f);
  padding: 12px 20px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow: 0 0 22px rgba(212, 160, 58, 0.2);
  transition: box-shadow 0.3s, filter 0.3s;
}
.rig__cta:hover { box-shadow: 0 0 34px rgba(238, 199, 101, 0.45); filter: brightness(1.06); }

/* ---------- promo ticker (auto-removes when the offer expires) ---------- */
.promo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin: 54px 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 300% at 50% 50%, rgba(212, 160, 58, 0.10), transparent 70%),
    var(--bg1);
  overflow: hidden;
}
.promo[hidden] { display: none; }

/* the scrolling band */
.promo__marquee { width: 100%; overflow: hidden; padding: 16px 0; }
.promo__track {
  display: flex; width: max-content;
  animation: promo-run 38s linear infinite;
  will-change: transform;
}
.promo__track span {
  display: inline-flex; align-items: center; gap: 26px;
  padding-right: 26px; white-space: nowrap;
  font-family: var(--font-d);
  font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 160, 58, 0.55);
}
/* every other item filled, so the band reads with rhythm */
.promo__track span:nth-child(even) {
  color: var(--gold-hi);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 26px var(--glow);
}
.promo__track span i {
  font-style: normal; color: var(--gold);
  font-size: 0.5em; -webkit-text-stroke: 0; opacity: 0.7;
}
@keyframes promo-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }   /* track holds 2 identical halves */
}

/* the countdown, floating over the band */
.promo__badge {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 22px;
  background: rgba(5, 4, 3, 0.86);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}
.promo__badge-label {
  font-family: var(--font-m); font-size: 0.56rem;
  letter-spacing: 0.28em; color: var(--muted);
}
.promo__clock {
  font-family: var(--font-m); font-size: 0.98rem; font-weight: 600;
  letter-spacing: 0.12em; color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px var(--glow);
}

@media (max-width: 700px) {
  .promo { margin-top: 38px; }
  .promo__marquee { padding: 22px 0; }
  .promo__clock { font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .promo__track { animation: none; transform: translateX(-12%); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .rig__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rig__item { flex: 1 1 120px; max-width: none; }
  .rig__item-sub { display: none; }
}
@media (max-width: 560px) {
  .rig__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rig__panel { padding: 14px 12px; }
  .rig__cta { width: 100%; justify-content: space-between; }
}

/* ============================================================
   RIG SPEC WINDOW — blueprint style (variant C)
   strict palette: blacks, golds, warm white — no greys
   ============================================================ */
.rigwin {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
body.rigwin-open .rigwin { opacity: 1; visibility: visible; transition-delay: 0s; }
body.rigwin-open { overflow: hidden; }

.rigwin__backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 70% at 50% 45%, rgba(212, 160, 58, 0.10), transparent 70%),
    rgba(4, 3, 2, 0.6);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.rigwin__panel {
  position: relative;
  width: min(940px, 100%);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  background: linear-gradient(160deg, rgba(238, 199, 101, 0.55), rgba(212, 160, 58, 0.14) 55%);
  isolation: isolate;
  padding: 1px;
  box-shadow: 0 0 80px rgba(212, 160, 58, 0.18);
}
body.rigwin-open .rigwin__panel { animation: rigIn 0.4s var(--ease) both, rigFloat 7s ease-in-out 0.6s infinite; }
@keyframes rigIn {
  0% { opacity: 0; transform: scale(0.95) translateY(14px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes rigFloat {
  0%, 100% { transform: none; }
  50% { transform: translateY(-4px); }
}
/* translucent holo-glass fill — the dimmed 3D scene glows through */
.rigwin__panel::before {
  content: ""; position: absolute; inset: 1px; z-index: -1;
  clip-path: polygon(0 0, calc(100% - 21px) 0, 100% 21px, 100% 100%, 21px 100%, 0 calc(100% - 21px));
  background: linear-gradient(165deg, rgba(16, 12, 6, 0.72), rgba(6, 4, 2, 0.6) 70%);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}
/* ambient hologram layers */
.rigwin__fx {
  position: absolute; inset: 1px; z-index: 0;
  clip-path: polygon(0 0, calc(100% - 21px) 0, 100% 21px, 100% 100%, 21px 100%, 0 calc(100% - 21px));
  overflow: hidden; pointer-events: none;
}
.rigwin__fx i { position: absolute; display: block; }
.rigwin__grid {
  inset: -60px;
  background:
    repeating-linear-gradient(0deg, rgba(212, 160, 58, 0.06) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(212, 160, 58, 0.06) 0 1px, transparent 1px 44px);
  animation: rigGridDrift 11s linear infinite;
}
@keyframes rigGridDrift { to { transform: translate3d(44px, 44px, 0); } }
.rigwin__lines {
  inset: -60px;
  background: repeating-linear-gradient(0deg, rgba(238, 199, 101, 0.026) 0 1px, transparent 1px 3px);
  animation: rigLinesDrift 13s linear infinite;
}
@keyframes rigLinesDrift { to { transform: translate3d(0, 60px, 0); } }
.rigwin__sweep {
  top: -60%; bottom: -60%; left: -45%; width: 34%;
  background: linear-gradient(105deg, transparent, rgba(238, 199, 101, 0.05) 45%, rgba(238, 199, 101, 0.09) 50%, rgba(238, 199, 101, 0.05) 55%, transparent);
  animation: rigSweep 7.5s ease-in-out infinite;
}
@keyframes rigSweep {
  0%, 50% { transform: translateX(0) rotate(14deg); }
  100% { transform: translateX(560%) rotate(14deg); }
}
/* cursor spotlight — follows the pointer over the panel */
.rigwin__spot {
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 35%), rgba(238, 199, 101, 0.12), transparent 62%);
  opacity: 0; transition: opacity 0.4s ease;
}
.rigwin__panel:hover .rigwin__spot { opacity: 1; }
.rigwin__head, .rigwin__body, .rigwin__foot { position: relative; z-index: 1; }
/* one-shot boot scanline */
.rigwin__panel::after {
  content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 70px;
  background: linear-gradient(180deg, transparent, rgba(238, 199, 101, 0.08), transparent);
  pointer-events: none; opacity: 0;
}
body.rigwin-open .rigwin__panel::after { animation: rigScan 0.9s ease 0.2s 1 both; }
@keyframes rigScan { 0% { top: -20%; opacity: 1; } 100% { top: 115%; opacity: 0; } }

.rigwin__head {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 18px 15px 24px;
  border-bottom: 1px solid rgba(212, 160, 58, 0.25);
}
.rigwin__title {
  flex: 1;
  font-family: var(--font-m); font-size: 0.78rem; letter-spacing: 0.28em;
  color: var(--gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rigwin__barcode {
  width: 72px; height: 15px; flex: 0 0 auto;
  background: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 4px, var(--gold) 4px 5px, transparent 5px 9px);
  animation: rigBarFlick 6s linear infinite;
}
@keyframes rigBarFlick {
  0%, 91%, 100% { opacity: 0.65; }
  93% { opacity: 0.2; }
  95% { opacity: 0.8; }
  97% { opacity: 0.35; }
}
.rigwin__close {
  flex: 0 0 auto;
  font-family: var(--font-m); font-size: 0.8rem;
  color: var(--gold);
  border: 1px solid rgba(212, 160, 58, 0.35);
  padding: 8px 12px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.3s var(--ease);
}
.rigwin__close:hover { color: var(--gold-hi); border-color: var(--gold); box-shadow: 0 0 16px rgba(212, 160, 58, 0.3); transform: rotate(90deg); }

.rigwin__body {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(22px, 3.5vw, 38px);
}
.rigwin__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  outline: 1px solid rgba(212, 160, 58, 0.2); outline-offset: -1px;
  background: radial-gradient(70% 45% at 50% 92%, rgba(212, 160, 58, 0.14), transparent 70%), #050302;
}
.rigwin__icon {
  width: 96px; color: var(--gold);
  filter: drop-shadow(0 0 22px rgba(212, 160, 58, 0.45));
  animation: rigLevitate 5s ease-in-out infinite;
}
.rigwin__icon svg { width: 100%; transition: transform 0.15s linear; }
@keyframes rigLevitate {
  0%, 100% { transform: none; }
  50% { transform: translateY(-6px); }
}
.rigwin__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.15s linear;
}
/* the global `img { display:block }` reset would defeat the hidden attribute,
   leaving a broken-image glyph while no photo exists */
.rigwin__img[hidden] { display: none; }
.rigwin__vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
}
.rigwin__vid[hidden] { display: none; }
.rigwin__pending {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-m); font-size: 0.58rem; letter-spacing: 0.24em; white-space: nowrap;
  color: rgba(238, 199, 101, 0.75);
  border: 1px solid rgba(212, 160, 58, 0.25);
  padding: 6px 10px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}
.rigwin__pending::after { content: "▮"; margin-left: 7px; animation: pulse 1.1s steps(2, start) infinite; }

.rigwin__specs { list-style: none; align-self: center; display: grid; gap: 0; }
.rigwin__specs li {
  display: grid; grid-template-columns: 34px 1fr auto;
  align-items: baseline; gap: 14px;
  padding: 13px 6px 13px 0;
  border-bottom: 1px solid rgba(212, 160, 58, 0.12);
  opacity: 0; transform: translateX(-10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 150ms);
}
body.rigwin-open .rigwin__specs li { opacity: 1; transform: none; }
/* soft full-width hover wash — fades in/out instead of snapping */
.rigwin__specs li { position: relative; }
.rigwin__specs li::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(212, 160, 58, 0.07), rgba(212, 160, 58, 0.025) 45%, rgba(212, 160, 58, 0.05));
  opacity: 0;
  transition: opacity 0.45s ease;
}
.rigwin__specs li:hover::after { opacity: 1; }
/* blueprint callout stub: line + endpoint dot
   (per-property transition delays: the reveal stagger applies to transform
   only, so hover feedback on width/glow is instant) */
.rigwin__specs li::before {
  content: "";
  width: 26px; height: 1px; align-self: center;
  background: linear-gradient(90deg, rgba(212, 160, 58, 0.9), rgba(212, 160, 58, 0.3));
  box-shadow: -2px 0 0 1px var(--gold-hi), 0 0 8px rgba(212, 160, 58, 0.5);
  transform-origin: left;
  transform: scaleX(0);
  transition:
    transform 0.5s var(--ease) calc(var(--i) * 70ms + 100ms),
    width 0.2s ease 0s,
    box-shadow 0.2s ease 0s;
}
body.rigwin-open .rigwin__specs li::before { transform: scaleX(1); }
.rigwin__specs li:hover::before {
  width: 34px;
  box-shadow: -2px 0 0 1px var(--gold-hi), 0 0 12px rgba(238, 199, 101, 0.5);
}
.rigwin__spec-label {
  font-family: var(--font-m); font-size: 0.66rem; letter-spacing: 0.26em; color: var(--gold);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
.rigwin__spec-value { font-family: var(--font-m); font-size: 0.95rem; color: var(--ink); text-align: right; }
.rigwin__specs li:hover .rigwin__spec-label { color: var(--gold-hi); text-shadow: 0 0 14px rgba(238, 199, 101, 0.35); }

.rigwin__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px 24px 15px;
  border-top: 1px solid rgba(212, 160, 58, 0.18);
}
.rigwin__brand { font-family: var(--font-m); font-size: 0.66rem; letter-spacing: 0.34em; color: var(--gold); }
.rigwin__note { font-family: var(--font-m); font-size: 0.58rem; letter-spacing: 0.2em; color: rgba(238, 199, 101, 0.55); text-align: right; }

@media (max-width: 700px) {
  .rigwin { padding: 14px; }
  .rigwin__body { grid-template-columns: 1fr; }
  .rigwin__visual { max-width: 280px; margin-inline: auto; }
  .rigwin__specs li { grid-template-columns: 22px 1fr auto; }
  .rigwin__specs li::before { width: 14px; }
}

/* ============================================================
   CURSOR GLOW (desktop, non-touch)
   ============================================================ */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 5;
  width: 340px; height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 58, 0.07), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.has-cursor .cursor-glow { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* The rail is fixed in the left margin, so it only has room once the margin
   is wider than the rail itself. Full rail ≈115px wide needs ~1520px of
   viewport; below that collapse to ticks only (~24px), then hide entirely.
   Without this it overlapped the centred content by ~100px. */
@media (max-width: 1519px) {
  .rail a { font-size: 0; gap: 0; }
}
@media (max-width: 1339px) {
  .rail { display: none; }
}
@media (max-width: 940px) {
  .nav { justify-content: stretch; }
  .nav__plate { width: 100%; justify-content: space-between; padding-right: 8px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .services__grid { grid-template-columns: 1fr; }
  .card--wide { flex-direction: column; align-items: flex-start; gap: 18px; }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .viz__frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .work__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .viz__controls { flex-direction: column; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, [data-intro] { opacity: 1 !important; transform: none !important; }
  .cursor-glow { display: none; }
}
