/* =========================================================
   Mechanical Workshop — promotional site
   Colours come from the game's palette (scripts/visual/palette.gd).
   System fonts only: no third-party requests, fast first paint.
   ========================================================= */

:root {
  --bg: #0e1114;            /* STEEL_DARKEST */
  --bg-2: #12161a;
  --panel: #161b20;
  --panel-2: #1d242b;
  --rule: #2c353e;
  --rule-2: #3a444e;
  --fg: #dde1e5;            /* TEXT */
  --dim: #8f99a3;           /* TEXT_DIM */
  --brass: #b38d3c;         /* BRASS */
  --brass-l: #e0c07a;       /* BRASS_LIGHT */
  --lamp: #ffd27a;          /* LAMP_ON */
  --green: #8fcf6f;         /* SIGNAL_GREEN */
  --hazard: #d9a227;

  --f-display: "Barlow Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", "Roboto Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: 16px;
  --radius: 6px;
  --nav-h: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background-color: var(--bg);
  /* faint workshop-wall grid + a warm lamp glow at the top */
  background-image:
    radial-gradient(1200px 520px at 70% -120px, rgba(255, 210, 122, .10), transparent 70%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  color: var(--fg);
  font: 16px/1.6 var(--f-body);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brass-l); text-underline-offset: 3px; }
a:hover { color: var(--lamp); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 3px; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.02;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 6.4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--brass-l); letter-spacing: .05em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brass-l); color: #111; padding: 8px 14px; border-radius: 4px; font-weight: 700; }
.skip:focus { top: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--brass-l);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  font: 700 1.05rem/1 var(--f-display); font-stretch: condensed;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: #17130a;
  background: linear-gradient(180deg, #f0d48f 0%, var(--brass-l) 40%, #c69f4f 100%);
  border: 1px solid #f3dca2;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 6px 18px rgba(179,141,60,.25);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { color: #17130a; filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 10px 24px rgba(179,141,60,.35); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  color: var(--fg); background: rgba(22,27,32,.7);
  border-color: var(--rule-2); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
}
.btn--ghost:hover { color: var(--brass-l); border-color: var(--brass); box-shadow: none; }
.btn--small { white-space: nowrap; min-height: 38px; padding: 8px 14px; font-size: .9rem; letter-spacing: .1em; }
.btn--lamp { box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -2px 0 rgba(0,0,0,.25) inset, 0 0 0 4px rgba(255,210,122,.08), 0 10px 40px rgba(255,210,122,.25); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,17,20,.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav__inner { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.brand span { font: 700 1.05rem/1 var(--f-display); font-stretch: condensed; text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 6px; }
.brand b { color: var(--brass-l); font-weight: 700; }
.nav__links { display: none; gap: 4px; }
.nav__links a { white-space: nowrap; display: block; padding: 8px 12px; color: var(--dim); text-decoration: none; font: 600 .95rem/1 var(--f-display); font-stretch: condensed; letter-spacing: .12em; text-transform: uppercase; border-radius: 3px; }
.nav__links a:hover { color: var(--brass-l); background: var(--panel); }
@media (max-width: 599px) {
  .hide-sm { display: none; }
  .brand { min-width: 0; }
  .brand span { font-size: .95rem; letter-spacing: .05em; }
}
@media (max-width: 360px) { .brand span b { display: none; } }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font: 600 .78rem/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--brass);
}
.eyebrow span { color: var(--bg); background: var(--brass); padding: 4px 6px; border-radius: 2px; letter-spacing: .08em; }
.section { padding-block: 72px; position: relative; }
.section--tight { padding-block: 24px 72px; }
.section--plate {
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 5px),
    var(--bg-2);
  border-block: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
}
.section__head { margin-bottom: 36px; display: grid; gap: 4px; }
.section__head--center { text-align: center; justify-items: center; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.section__lead { margin-top: 14px; color: var(--dim); max-width: 60ch; font-size: 1.05rem; }
.section__hint { color: var(--dim); font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .04em; }

/* Riveted steel frame around media */
.frame {
  position: relative; margin: 0;
  padding: 10px;
  background: linear-gradient(180deg, #232a31, #171c21);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 30px 60px -20px rgba(0,0,0,.7);
}
.frame::before {
  content: ""; position: absolute; inset: 3px; pointer-events: none; border-radius: 4px;
  /* four rivets, one per corner */
  background:
    radial-gradient(circle, #6b7782 0 1.3px, #2b333b 2.2px, transparent 2.6px) left top / 8px 8px no-repeat,
    radial-gradient(circle, #6b7782 0 1.3px, #2b333b 2.2px, transparent 2.6px) right top / 8px 8px no-repeat,
    radial-gradient(circle, #6b7782 0 1.3px, #2b333b 2.2px, transparent 2.6px) left bottom / 8px 8px no-repeat,
    radial-gradient(circle, #6b7782 0 1.3px, #2b333b 2.2px, transparent 2.6px) right bottom / 8px 8px no-repeat;
}
.frame img, .frame video { border-radius: 3px; width: 100%; background: #000; }
.frame--thin { padding: 6px; }
.frame__label {
  position: absolute; left: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 3px;
  background: rgba(14,17,20,.85); border: 1px solid var(--rule-2);
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg);
}

/* ---------- 1. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 40px 64px; }
.hero__gear {
  position: absolute; width: 560px; height: 560px; right: -220px; top: -180px;
  color: rgba(224,192,122,.045); pointer-events: none;
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__grid { position: relative; display: grid; gap: 36px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px; margin-bottom: 22px;
  border: 1px solid rgba(143,207,111,.35); border-radius: 999px;
  background: rgba(143,207,111,.07);
  font: 600 .74rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--green);
}
.badge__lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero__title {
  /* sized so "MECHANICAL" fits even when no condensed font is installed */
  font-size: clamp(2.3rem, 11.4vw, 4.6rem);
  font-weight: 800; line-height: .88; letter-spacing: .01em;
  color: var(--fg);
  text-shadow: 0 2px 0 rgba(0,0,0,.4);
}
.hero__title span {
  background: linear-gradient(180deg, #f6dfa4 10%, var(--brass-l) 45%, #a9832f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tagline { margin-top: 18px; font: 700 clamp(1.25rem, 4.6vw, 1.7rem)/1.15 var(--f-display); font-stretch: condensed; text-transform: uppercase; letter-spacing: .08em; }
.hero__tagline em { font-style: normal; color: var(--lamp); text-shadow: 0 0 18px rgba(255,210,122,.45); }
.hero__lead { margin-top: 14px; color: var(--dim); font-size: 1.06rem; max-width: 46ch; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 200px; }
.hero__by { margin-top: 22px; color: var(--dim); font: 500 .8rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.hero__by b { color: var(--fg); font-weight: 600; }
.hero__shot img { aspect-ratio: 1600 / 720; object-fit: cover; }
.hero__shot::after {
  content: ""; position: absolute; inset: -40px -40px auto auto; width: 60%; height: 70%;
  background: radial-gradient(closest-side, rgba(255,210,122,.16), transparent);
  z-index: -1; pointer-events: none;
}

.hero__note { margin-top: 14px; color: var(--dim); font-size: .92rem; }
.hero__note a { color: var(--brass-l); margin-left: 6px; white-space: nowrap; }

/* ---------- 2b. Free web demo ---------- */
.demo-card { display: block; text-decoration: none; color: inherit; overflow: hidden; }
.demo-card img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease, filter .3s; filter: saturate(.9) brightness(.85); }
.demo-card:hover img, .demo-card:focus-visible img { transform: scale(1.03); filter: none; }
.demo-card__play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; border-radius: 50%;
  color: #17130a; background: linear-gradient(180deg, #f6dfa4, var(--lamp));
  box-shadow: 0 0 0 8px rgba(255,210,122,.16), 0 0 40px rgba(255,210,122,.45);
  transition: transform .2s ease;
}
.demo-card__play svg { width: 36px; height: 36px; margin-left: 5px; }
.demo-card:hover .demo-card__play { transform: scale(1.08); }
.demo__actions { display: grid; gap: 12px; justify-items: start; margin-top: 8px; }
.demo__note { color: var(--dim); font: 500 .8rem/1.5 var(--f-mono); letter-spacing: .02em; max-width: 52ch; }
.testing__note a { color: var(--brass-l); }

/* ---------- 2. Video ---------- */
.player { max-width: 1040px; margin-inline: auto; }
.player video { aspect-ratio: 16 / 9; height: auto; object-fit: contain; }
.player__note { margin-top: 14px; text-align: center; color: var(--dim); font: 500 .78rem/1.5 var(--f-mono); letter-spacing: .03em; }

/* ---------- 3. About ---------- */
.about { display: grid; gap: 40px; align-items: center; }
.about__copy { display: grid; gap: 16px; max-width: 58ch; }
.about__copy h2 { margin-bottom: 4px; }
.about__copy p:not(.eyebrow) { color: #c3c9cf; }
.about__kicker { color: var(--brass-l) !important; font-weight: 600; border-left: 3px solid var(--brass); padding-left: 14px; }
.tray {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 12px; border-radius: var(--radius);
  background: linear-gradient(180deg, #1a2026, #13171b);
  border: 1px solid var(--rule-2);
  border-top: 3px solid var(--brass);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.7);
}
.tray__item {
  display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center;
  min-height: 104px; padding: 12px 6px;
  border: 1px solid var(--rule); border-radius: 4px;
  background: linear-gradient(180deg, #20272e, #191e23);
  color: var(--brass-l);
  transition: border-color .2s, transform .2s;
}
.tray__item svg { width: 40px; height: 40px; }
.tray__item span { font: 600 .7rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.tray__item:hover { border-color: var(--brass); transform: translateY(-2px); }
.tray__item:first-child svg { animation: spin 8s linear infinite; }

/* ---------- 4. Features ---------- */
.features { display: grid; gap: 14px; }
.card {
  position: relative; padding: 24px 22px 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
  transition: border-color .2s, transform .2s;
}
.card::before, .card::after { content: ""; position: absolute; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #3a444e; box-shadow: inset 0 1px 0 #66717b; }
.card::before { left: 10px; } .card::after { right: 10px; }
.card:hover { border-color: rgba(179,141,60,.6); transform: translateY(-2px); }
.card__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px;
  border-radius: 50%; color: var(--brass-l);
  background: radial-gradient(circle at 35% 30%, #2b333b, #161b20);
  border: 1px solid var(--rule-2);
  box-shadow: 0 0 0 4px rgba(179,141,60,.08);
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--dim); font-size: .97rem; }

/* ---------- 5. Gallery ---------- */
.gallery {
  /* mobile: horizontal swipe with snap */
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%;
  gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px;
  scrollbar-width: thin; scrollbar-color: var(--brass) transparent;
}
.gallery li { scroll-snap-align: start; min-width: 0; }
.shot {
  all: unset; box-sizing: border-box; cursor: zoom-in; display: block; width: 100%;
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--rule-2); background: #000;
}
.shot picture, .shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease, filter .3s; }
.shot__cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(8,10,12,.92));
  font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg);
}
.shot:hover img { transform: scale(1.04); }
.shot:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
.shot:hover { border-color: var(--brass); }

/* ---------- 6. Steps ---------- */
.steps { display: grid; gap: 34px; counter-reset: s; position: relative; }
.step { position: relative; display: grid; gap: 8px; }
.step__img { margin-bottom: 14px; }
.step__img img { aspect-ratio: 16 / 9; object-fit: cover; }
.step__title { display: flex; align-items: center; gap: 14px; font-size: 1.8rem; font-weight: 800; color: var(--fg); letter-spacing: .1em; }
.step__num {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  font: 700 .95rem/1 var(--f-mono); letter-spacing: 0; color: var(--brass-l);
  border: 2px solid var(--brass); background: var(--panel);
}
.step__num--go { color: #17130a; background: var(--lamp); border-color: var(--lamp); box-shadow: 0 0 18px rgba(255,210,122,.45); }
.step:last-child h3 { color: var(--lamp); }
.step p:not(.step__num) { color: var(--dim); }

/* ---------- 7. Workshop split ---------- */
.split { display: grid; gap: 36px; align-items: center; }
.split__media img { aspect-ratio: 16 / 9; object-fit: cover; }
.split__copy { display: grid; gap: 16px; }
.split__copy > p:not(.eyebrow) { color: #c3c9cf; max-width: 52ch; }
.checks { display: grid; gap: 10px; margin-top: 6px; }
.checks li {
  position: relative; padding: 12px 14px 12px 46px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 4px;
  font-weight: 500;
}
.checks li::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; background: rgba(143,207,111,.12); border: 1px solid rgba(143,207,111,.5);
}
.checks li::after {
  content: ""; position: absolute; left: 21px; top: 50%; width: 5px; height: 9px; margin-top: -6px;
  border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- 8. Testing ---------- */
.testing {
  position: relative; overflow: hidden;
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(255,210,122,.12), transparent 70%),
    linear-gradient(180deg, #1b2127, #12161a);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.testing__stripe { height: 14px; background: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, #15181b 14px 28px); opacity: .9; }
.testing__body { padding: 36px 22px 40px; display: grid; gap: 16px; justify-items: start; }
.testing__body > p:not(.eyebrow):not(.testing__soon) { color: #c3c9cf; max-width: 58ch; font-size: 1.06rem; }
.testing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 8px; }
.testing__note { color: var(--dim); font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .04em; }

/* ---------- Tester dialog ---------- */
.tdlg {
  width: min(640px, calc(100vw - 24px)); max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--fg);
  overflow: visible;
}
.tdlg::backdrop { background: rgba(5,7,9,.82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tdlg[open] { animation: tdlg-in .22s ease-out; }
@keyframes tdlg-in { from { opacity: 0; transform: translateY(12px); } }
/* No-JS fallback: the #tester-dialog link still shows the content */
.tdlg:target:not([open]) { display: block; position: fixed; inset: 12px; z-index: 90; overflow: auto; }
.tdlg__panel {
  position: relative; max-height: calc(100dvh - 24px); overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid var(--rule-2); border-radius: var(--radius);
  background:
    radial-gradient(600px 260px at 90% 0%, rgba(255,210,122,.12), transparent 70%),
    linear-gradient(180deg, #1c2228, #12161a);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.05) inset;
}
.tdlg__panel .testing__stripe { flex: none; height: 10px; }
.tdlg__close {
  position: absolute; top: 20px; right: 14px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--rule-2); background: var(--panel); color: var(--fg); cursor: pointer;
}
.tdlg__close:hover { color: var(--brass-l); border-color: var(--brass); }
.tdlg__close svg { width: 20px; height: 20px; }
.tdlg__body { padding: 26px 20px 28px; display: grid; gap: 14px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.tdlg__body h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); padding-right: 48px; }
.tdlg__lead { color: #c3c9cf; }
.tdlg__lead b { color: var(--lamp); font-weight: 600; }
.tdlg__h { margin-top: 8px; font-size: 1rem; letter-spacing: .14em; color: var(--brass-l); }
.tdlg__steps { counter-reset: t; display: grid; gap: 8px; }
.tdlg__steps li {
  counter-increment: t; position: relative; padding: 10px 12px 10px 50px; min-height: 44px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; color: var(--fg);
}
.tdlg__steps li::before {
  content: counter(t); position: absolute; left: 10px; top: 8px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--brass); color: var(--brass-l); font: 700 .85rem/1 var(--f-mono);
}
.tdlg__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tdlg__tags li {
  padding: 6px 10px; border-radius: 3px; border: 1px solid var(--rule-2); background: var(--panel-2);
  font: 600 .74rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg);
}
.tdlg__note {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 4px;
  padding: 12px 14px; border-left: 3px solid var(--lamp); border-radius: 0 4px 4px 0;
  background: rgba(255,210,122,.07); color: #e9dcc0;
}
.tdlg__note svg { width: 20px; height: 20px; flex: none; color: var(--lamp); margin-top: 2px; }
.tdlg__note b { color: var(--lamp); }
.tdlg__actions { display: grid; gap: 12px; margin-top: 8px; }
.tdlg__actions .btn { width: 100%; }
.tdlg__fine { color: var(--dim); font-size: .85rem; }
@media (min-width: 600px) {
  .tdlg__body { padding: 34px 36px 36px; }
  .tdlg__actions .btn { width: auto; justify-self: start; }
}

/* ---------- 9. Status ---------- */
.status {
  display: grid; gap: 22px; padding: 26px 22px;
  border: 1px dashed var(--rule-2); border-radius: var(--radius);
  background: rgba(22,27,32,.6);
}
.status__label { font: 600 .74rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.status__ver {
  margin-top: 6px; font: 800 3.6rem/1 var(--f-mono); letter-spacing: -.02em; color: var(--lamp);
  text-shadow: 0 0 22px rgba(255,210,122,.3);
  font-variant-numeric: tabular-nums;
}
.status__meta { margin-top: 10px; display: flex; align-items: center; gap: 8px; color: var(--dim); font: 500 .8rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.status__list { display: grid; gap: 8px 22px; align-content: center; }
.status__list li { position: relative; padding-left: 22px; color: #c3c9cf; }
.status__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--brass); }

/* ---------- 10. Footer ---------- */
.footer { border-top: 1px solid var(--rule); background: #0b0d10; padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: grid; gap: 22px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__studio { font: 800 1.15rem/1.1 var(--f-display); font-stretch: condensed; text-transform: uppercase; letter-spacing: .1em; color: var(--brass-l); }
.footer__game { color: var(--dim); font-size: .9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { color: var(--fg); text-decoration: none; font: 600 .95rem/1 var(--f-display); font-stretch: condensed; letter-spacing: .12em; text-transform: uppercase; padding-block: 8px; display: inline-block; }
.footer__links a:hover { color: var(--brass-l); }
.footer__copy { color: #69737c; font-size: .8rem; }

/* ---------- Viewer (lightbox) ---------- */
.viewer {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(6,8,10,.96); color: var(--fg);
  overscroll-behavior: contain;
}
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgba(0,0,0,.8); }
.viewer__fig { margin: 0; display: grid; gap: 12px; justify-items: center; padding: 64px 12px 24px; width: 100%; max-width: 1600px; touch-action: pan-y; }
.viewer__img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: 4px; border: 1px solid var(--rule-2); background: #000; user-select: none; -webkit-user-drag: none; }
.viewer__cap { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; text-align: center; color: #c3c9cf; font-size: .95rem; max-width: 70ch; }
.viewer__count { font: 600 .8rem/1.6 var(--f-mono); color: var(--brass-l); letter-spacing: .08em; }
.viewer__btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--rule-2); background: rgba(22,27,32,.9); color: var(--fg); cursor: pointer;
}
.viewer__btn:hover { color: var(--brass-l); border-color: var(--brass); }
.viewer__btn svg { width: 22px; height: 22px; }
.viewer__close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; }
.viewer__prev, .viewer__next { top: 50%; transform: translateY(-50%); }
.viewer__prev { left: 10px; } .viewer__next { right: 10px; }
@media (hover: none) { .viewer__prev, .viewer__next { top: auto; bottom: 16px; transform: none; } .viewer__prev { left: calc(50% - 60px); } .viewer__next { right: calc(50% - 60px); } .viewer__fig { padding-bottom: 80px; } }
.only-touch { display: none; }
@media (hover: none) { .only-touch { display: inline; } }

/* =========================================================
   Larger screens
   ========================================================= */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-auto-columns: 58%; }
  .tray { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status { grid-template-columns: auto 1fr; gap: 22px 56px; padding: 30px 34px; }
  .status__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer__copy { grid-column: 1 / -1; }
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 860px) {
  .nav__links { display: none; }
  .section { padding-block: 104px; }
  .section--tight { padding-block: 24px 104px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  /* drive belt connecting the three steps */
  .steps::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: calc(50% - 82px); height: 0;
    border-top: 2px dashed rgba(179,141,60,.45); z-index: -1;
  }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .gallery {
    grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto;
    overflow: visible; margin-inline: 0; padding: 0; gap: 16px;
  }
  /* cinematic: first shot spans two columns and two rows */
  .gallery li:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery li:first-child .shot, .gallery li:first-child picture { height: 100%; }
  .gallery li:first-child img { height: 100%; aspect-ratio: auto; }
  .testing__body { padding: 52px 56px 56px; }
}

@media (min-width: 1240px) {
  .nav__links { display: flex; }
  .nav__links a { padding-inline: 10px; }
}

@media (min-width: 960px) {
  .hero { padding-block: 72px 64px; }
  .hero__grid { grid-template-columns: minmax(0, 5.4fr) minmax(0, 6.6fr); gap: 48px; }
  .hero__title { font-size: clamp(2.6rem, 4.5vw, 4.4rem); }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .hero__gear { width: 760px; height: 760px; right: -260px; top: -240px; }
}

@media (min-width: 1280px) {
  .hero__shot { margin-right: -60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
