/* StarChad web design system.
   Tokens, base type and the shared components every page uses. Page-specific
   layout stays in each page's own <style>. The interaction rules are listed in
   ui-kit.html; keep the two in step. */

:root {
  /* surfaces */
  --void: #05070a;
  --g900: #0a0d11;
  --g800: #10141a;
  --g700: #181d24;
  --g600: #232a33;
  /* lines */
  --line: rgba(233, 227, 214, .12);
  --line-mid: rgba(233, 227, 214, .22);
  --line-strong: rgba(233, 227, 214, .34);
  /* text */
  --bone: #e9e3d6;
  --text-2: #cfcabf;
  --text-3: #a9a499;
  --steel: #8e969f;
  /* signal colours: amber acts, ion informs, gold honours founders */
  --amber: #f08a24;
  --amber-hi: #ffa64a;
  --amber-lo: #d47316;
  --amber-ink: #170c02;
  --ion: #9fd3ff;
  --gold: #d9a441;
  --alert: #ff6b5b;
  --ok: #5fd38d;
  /* type */
  --display: "Michroma", "Eurostile", sans-serif;
  --ui: "Barlow Condensed", "Barlow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  /* shape and motion */
  --cut: 12px;
  --focus: 0 0 0 2px var(--void), 0 0 0 4px var(--bone);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: .16s;
  /* vertical rhythm: the gap between page sections */
  --space-section: clamp(52px, 6vw, 92px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); color: var(--bone); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: .02em; }
h2 { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.15; }
h3 { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.25; }
p { margin: 0 0 1em; }
::selection { background: rgba(240, 138, 36, .35); color: #fff; }
.accent { color: var(--amber); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* One focus treatment everywhere: a bone ring that reads on amber, graphite
   and photographs alike. Blue is reserved for information, never for states. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus); }

/* film grain: a static overlay, one composite per frame. Disabled whenever the
   live WebGPU engine is active so no translucent full-screen layer sits over the
   HDR swapchain. */
.grain::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.gpu .grain::after, html.gpu-wait .grain::after { display: none; }

/* ---------- the live engine behind the page (assets/engine.js) ----------
   The game itself (showcase.html, its own WebGPU renderer) plays in a fixed
   frame behind the page. Sections are solid; only a .window opens cleanly onto
   it with no gradient or translucent overlay above the HDR canvas. Until it has
   drawn its first frame, and wherever it does not run, a still it rendered
   stands in. <html class="gpu"> switches the gpu-on / gpu-off alternatives. */
main > section:not(.window), .footer { background-color: var(--void); }
.window { position: relative; background: transparent; border-top: 1px solid var(--line); }
.window .btn:not(.primary):not(.quiet) { --bg: var(--g900); }
.window .btn:not(.primary):not(.quiet):hover, .window .btn:not(.primary):not(.quiet).is-hover { --bg: var(--g800); }
.window .btn[aria-pressed="true"], .window .btn[aria-pressed="true"]:hover, .window .btn[aria-pressed="true"].is-hover { --bg: #24180d; }
.engine { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--void); overflow: hidden; }
.engine img, .engine video, .engine iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.engine img { max-width: none; object-fit: cover; object-position: 50% 50%; transition: opacity 1.6s var(--ease), visibility 0s linear 1.6s; }
.engine video { max-width: none; object-fit: cover; object-position: 50% 50%; opacity: 0; transition: opacity 1.2s var(--ease); background: transparent; }
.engine iframe { opacity: 0; transition: opacity 1.6s var(--ease); background: transparent; }
/* on wide screens the engine is wider than the window and anchored left, so
   whatever the reel centres on (the galaxy, a system, a ship) sits to the right
   of the headline; the still and fallback video are rendered the same way */
@media (min-aspect-ratio: 5/4) { .engine img, .engine video, .engine iframe { width: 150%; } }
/* on a portrait screen the copy fills the lower half, so the live frame is
   taller than the window and raised: its centre, where every shot is framed,
   sits a fifth of the way down */
@media (max-aspect-ratio: 4/5) { .engine iframe { height: 160%; top: -60%; } }
/* phones show the still or fallback video raised so the ship sits above the headline */
@media (max-width: 700px) { .engine img, .engine video { height: 170%; top: -83%; } }
html.gpu .engine iframe, html.gpu-video .engine video { opacity: 1; }
html.gpu .engine img, html.gpu-video .engine img { opacity: 0; visibility: hidden; }
/* .gpu-wait: the engine is starting (the still shows, the copy already speaks of it) */
html:not(.gpu):not(.gpu-wait) .gpu-on, html.gpu .gpu-off, html.gpu-wait .gpu-off { display: none !important; }
html:not(.gpu-video) .gpu-vid, html.gpu-video .gpu-still { display: none !important; }
/* what the engine is showing right now, in its own words */
.live-caption { display: flex; align-items: center; gap: 10px; min-height: 18px; margin: 0; font: 400 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.live-caption::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ion); animation: sc-pulse 2s ease-in-out infinite; }
.live-caption b { font-weight: 400; color: var(--ion); }
.live-caption span { transition: opacity .5s var(--ease); }
.live-caption.swap span { opacity: 0; }
/* the engine starting (html.gpu-wait): the caption names the step, a loading
   bar under it has one segment per step (assets/engine.js builds it), and HUD
   corners frame both; once live, the bar and corners fade and fold away and
   the plain caption stays */
.engine-live { position: relative; width: min(600px, 100%); }
/* once the engine is live: Tour is the reel, the others hold one view until the visitor picks again */
.engine-views { display: none; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
html.gpu .engine-views { display: flex; }
.engine-live::before, .engine-live::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--ion); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease) .6s; }
.engine-live::before { top: -12px; left: -14px; border-right: 0; border-bottom: 0; }
.engine-live::after { bottom: -12px; right: -14px; border-left: 0; border-top: 0; }
html.gpu-wait .engine-live::before, html.gpu-wait .engine-live::after { opacity: .5; }
.live-caption em { margin-left: auto; padding-left: 16px; font: 400 20px/1 var(--display); letter-spacing: .02em; color: var(--ion);
  text-shadow: 0 0 14px rgba(159, 211, 255, .55); font-variant-numeric: tabular-nums; transition: opacity .6s var(--ease) .6s; }
.live-caption em small { margin-left: 3px; font: 400 12px/1 var(--mono); }
.live-caption em:empty { display: none; }
html.gpu .live-caption em { opacity: 0; }
html.gpu-wait .engine-live .live-caption { color: var(--bone); }
html.gpu-wait .engine-live .live-caption::before { animation-duration: .9s; box-shadow: 0 0 10px var(--ion); }
.boot { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-height: 40px; margin-top: 14px; overflow: hidden;
  transition: opacity .6s var(--ease) .9s, max-height .6s var(--ease) 1.5s, margin-top .6s var(--ease) 1.5s; }
html.gpu .boot { opacity: 0; max-height: 0; margin-top: 0; }
.boot .seg { display: grid; gap: 9px; min-width: 0; }
.boot i { position: relative; display: block; height: 5px; background: rgba(142, 150, 159, .22); }
.boot i::before { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--f, 0)); background: var(--ion);
  box-shadow: 0 0 12px rgba(159, 211, 255, .75); transition: transform .3s linear; }
/* the running step: a sweep across the whole segment, so a slow step still reads as working */
.boot .now i::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) 0 0 / 220% 100%; animation: sc-sweep 1.1s linear infinite; }
.boot small { font: 400 9.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--steel); opacity: .5; white-space: nowrap; overflow: hidden; }
.boot .done small { opacity: .9; }
.boot .now small { color: var(--ion); opacity: 1; }
/* too narrow for the step names: the caption names the step */
@media (max-width: 560px) { .boot small { display: none; } .boot .seg { gap: 0; } .boot { max-height: 12px; } }

/* ---------- layout ---------- */
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.kicker { font: 500 13px/1 var(--ui); letter-spacing: .32em; text-transform: uppercase; color: var(--ion); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; flex: none; }
.lede { color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); max-width: 56ch; }
.label { font: 500 11px/1.2 var(--ui); letter-spacing: .26em; text-transform: uppercase; color: var(--steel); }
.fine { font: 400 12.5px/1.55 var(--mono); color: var(--steel); }

/* ---------- icons ---------- */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: miter; stroke-linecap: butt; vertical-align: middle; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 28px; height: 28px; stroke-width: 1.35; }

/* ---------- buttons ----------
   Variants: .primary (amber), default (outline), .quiet (text).
   States: hover, :active (pressed), :focus-visible, [aria-busy=true] (working),
   [aria-pressed=true] (selected). There is no disabled state: the game never
   greys out an action, so a busy button keeps its colour and ignores hover. */
.btn {
  --bg: transparent; --fg: var(--bone); --bd: var(--line-strong); --bw: 1px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 24px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 600 14px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg); background: var(--bg);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background var(--fast), color var(--fast), box-shadow var(--fast), transform var(--fast);
}
/* Single-pass vector chamfer border: the element clips the outer polygon once,
   and ::before punches out the exact perpendicular inner inset (cut + bw * (sqrt(2) - 1)).
   Diagonals keep the exact width of straight edges at every subpixel position and DPR,
   with no double-alpha corner dots. */
.btn::before, .panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  width: auto; height: auto; border: 0; opacity: 1;
  --w: var(--bw, 1px);
  background: var(--bd);
  clip-path: polygon(evenodd,
    0 0, 100% 0, 100% 100%, 0 100%, 0 0,
    calc(var(--cut) + var(--w) * 0.41421356) var(--w),
    var(--w) calc(var(--cut) + var(--w) * 0.41421356),
    var(--w) calc(100% - var(--w)),
    calc(100% - var(--cut) - var(--w) * 0.41421356) calc(100% - var(--w)),
    calc(100% - var(--w)) calc(100% - var(--cut) - var(--w) * 0.41421356),
    calc(100% - var(--w)) var(--w),
    calc(var(--cut) + var(--w) * 0.41421356) var(--w)
  );
  transition: background var(--fast);
}
.btn .icon { width: 16px; height: 16px; stroke-width: 1.8; transition: transform var(--fast) var(--ease); }
/* .is-hover, .is-active and .is-focus show the same states statically in ui-kit.html */
.btn:hover, .btn.is-hover { --bd: rgba(233, 227, 214, .7); --bg: rgba(233, 227, 214, .05); }
.btn:hover .icon.go, .btn.is-hover .icon.go { transform: translateX(3px); }
.btn:active, .btn.is-active { --bg: rgba(233, 227, 214, .1); transform: translateY(1px); }
/* the chamfer clips outer rings, so buttons take the focus ring inside */
.btn:focus-visible, .btn.is-focus { --bd: var(--bone); --bw: 2px; box-shadow: none; }

.btn.primary { --bg: var(--amber); --fg: var(--amber-ink); --bd: transparent; }
.btn.primary:hover, .btn.primary.is-hover { --bg: var(--amber-hi); --bd: transparent; }
.btn.primary:active, .btn.primary.is-active { --bg: var(--amber-lo); }
.btn.primary:focus-visible, .btn.primary.is-focus { --bd: var(--bone); --bw: 2px; box-shadow: none; }

.btn.quiet { --bd: transparent; padding-inline: 8px; color: var(--text-3); clip-path: none; }
.btn.quiet::before { content: none; }
.btn.quiet:hover, .btn.quiet.is-hover { --bg: transparent; --bd: transparent; color: var(--bone); }
.btn.quiet:active, .btn.quiet.is-active { --bg: transparent; color: var(--text-2); }
.btn.quiet:focus-visible, .btn.quiet.is-focus { box-shadow: var(--focus); }

.btn.sm { min-height: 38px; padding: 0 16px; font-size: 12.5px; --cut: 9px; }
.btn.lg { min-height: 56px; padding: 0 30px; font-size: 15px; --cut: 14px; }
.btn.block { width: 100%; }

.btn[aria-pressed="true"], .btn[aria-pressed="true"]:hover, .btn[aria-pressed="true"].is-hover { --bg: rgba(240, 138, 36, .14); --fg: var(--bone); --bd: var(--amber); }

/* working: same colours as at rest, a sweep across the face, no hover */
.btn[aria-busy="true"] { cursor: progress; pointer-events: none; }
.btn[aria-busy="true"]:not(.primary) { --bd: var(--line-strong); --bg: transparent; }
.btn[aria-busy="true"].primary { --bg: var(--amber); }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%) 0 0 / 220% 100%;
  animation: sc-sweep 1.1s linear infinite;
}
.btn[aria-busy="true"]:not(.primary)::after { background-image: linear-gradient(100deg, transparent 30%, rgba(233, 227, 214, .14) 50%, transparent 70%); }
.btn:disabled { cursor: default; opacity: .62; pointer-events: none; }
@keyframes sc-sweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- the music (assets/music.js) ----------
   A toggle in the bottom corner of every page: off until pressed, then the
   pressed state with dancing bars and the track's name. Its own dark ground
   under the button colours keeps it legible over the live engine. */
.music { position: fixed; right: 20px; bottom: 20px; z-index: 30; gap: 11px; padding: 0 16px; --fg: var(--text-3);
  background: linear-gradient(var(--bg), var(--bg)), var(--g900); }
.music:hover { --fg: var(--bone); }
.music[hidden] { display: none; }
.music .eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 14px; height: 12px; }
.music .eq i { flex: 1; height: 5px; background: currentColor; }
.music .eq i:nth-child(2) { height: 10px; } .music .eq i:nth-child(3) { height: 7px; } .music .eq i:nth-child(4) { height: 12px; }
.music[data-state="on"] .eq i { animation: music-eq .9s ease-in-out infinite alternate; }
.music[data-state="on"] .eq i:nth-child(2) { animation-duration: .7s; animation-delay: -.3s; }
.music[data-state="on"] .eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.6s; }
.music[data-state="on"] .eq i:nth-child(4) { animation-duration: .8s; animation-delay: -.2s; }
/* on again from the previous page, waiting for a click or key on this one */
.music[data-state="waiting"] { --bd: var(--amber); }
.music[data-state="waiting"] .eq i { height: 7px; animation: sc-pulse 1.2s ease-in-out infinite; }
.music .music-title { display: none; }
.music[data-state="on"] .music-title { display: inline; }
.music[data-state="on"] .music-name { display: none; }
@keyframes music-eq { from { height: 3px; } to { height: 12px; } }
@media (max-width: 700px) {
  .music { right: 12px; bottom: 12px; }
  .music[data-state="on"] .music-title { display: none; }
  .music[data-state="on"] .music-name { display: inline; }
}

/* ---------- fields ---------- */
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field > legend { font: 500 11px/1 var(--ui); letter-spacing: .26em; text-transform: uppercase; color: var(--steel); padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input {
  height: 50px; width: 100%; padding: 0 16px; border-radius: 0;
  background: rgba(5, 7, 10, .72); border: 1px solid var(--line-strong); color: var(--bone); font: 400 16px var(--body);
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}
.input::placeholder { color: #5f666e; }
.input:hover, .input.is-hover { border-color: rgba(233, 227, 214, .5); }
.input:focus, .input.is-focus { outline: none; border-color: var(--bone); background: rgba(5, 7, 10, .9); box-shadow: 0 0 0 3px rgba(233, 227, 214, .12); }
.input[aria-invalid="true"] { border-color: var(--alert); }
.field .hint { font: 400 12px/1.4 var(--mono); color: var(--steel); }
.field .error { font: 500 12px/1.4 var(--mono); color: var(--alert); display: none; }
.field:has([aria-invalid="true"]) .error { display: block; }
select.input { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9e3d6' stroke-width='1.6'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }

/* choice chips (radio or checkbox inside a label) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong);
  font: 500 13.5px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
  transition: border-color var(--fast), color var(--fast), background var(--fast); }
.chip:hover span, .chip.is-hover span { border-color: rgba(233, 227, 214, .6); color: var(--bone); }
.chip input:checked + span, .chip:hover input:checked + span, .chip.is-hover input:checked + span { border-color: var(--amber); color: var(--bone); background: rgba(240, 138, 36, .12); }
.chip input:focus-visible + span, .chip.is-focus span { box-shadow: var(--focus); }

/* checkbox */
.check { display: flex; gap: 12px; align-items: start; cursor: pointer; font-size: 14.5px; color: var(--text-2); }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--line-strong); background: var(--void); cursor: pointer; display: grid; place-content: center; }
.check input::before { content: ""; width: 10px; height: 10px; transform: scale(0); transition: transform var(--fast) var(--ease); background: var(--amber); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.check input:checked { border-color: var(--amber); }
.check input:checked::before { transform: scale(1); }
.check:hover input { border-color: rgba(233, 227, 214, .6); }

/* ---------- tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border: 1px solid currentColor;
  font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--steel); }
.tag::before { content: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.dot::before { content: ""; }
.tag.live::before { content: ""; animation: sc-pulse 2s ease-in-out infinite; }
.tag.ok { color: var(--ok); } .tag.amber { color: var(--amber); } .tag.ion { color: var(--ion); }
.tag.alert { color: var(--alert); } .tag.gold { color: var(--gold); }
@keyframes sc-pulse { 50% { opacity: .35; } }

/* ---------- HUD framing ---------- */
.hud { position: relative; }
.hud::before, .hud::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--ion); opacity: .55; pointer-events: none; }
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* chamfered panel */
.panel { --cut: 16px; --bd: var(--line); position: relative; background: linear-gradient(180deg, var(--g800), var(--g900));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.panel::before { inset: 0; width: auto; height: auto; border: 0; opacity: 1; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { all: unset; box-sizing: border-box; cursor: pointer; flex: none; padding: 13px 16px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  font: 500 14px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); transition: color var(--fast), border-color var(--fast); }
.tab:hover, .tab.is-hover { color: var(--bone); border-bottom-color: var(--line-strong); }
.tab[aria-selected="true"], .tab[aria-selected="true"]:hover, .tab[aria-selected="true"].is-hover { color: var(--bone); border-bottom-color: var(--amber); }
.tab:focus-visible, .tab.is-focus { box-shadow: var(--focus); }

/* ---------- navigation ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.nav.solid { position: sticky; background: rgba(5, 7, 10, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 34px; height: 80px; }
/* wordmarks are sized by height, so every edition's lettering matches alongside the JWST emblem */
.nav .logo { color: var(--bone); flex: none; display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.nav .logo .jwst { width: 28px; height: 28px; display: block; flex: none; }
.nav .logo svg:not(.jwst) { display: block; height: 12.5px; width: auto; }
@keyframes sc-jwst-phase { 0%, 100% { opacity: .28; } 24%, 44% { opacity: 1; } 70% { opacity: .28; } }
html.gpu-wait .nav .logo .jwst .jc { animation: sc-jwst-phase 1.35s ease-in-out 0s infinite; }
html.gpu-wait .nav .logo .jwst .jr { animation: sc-jwst-phase 1.35s ease-in-out .45s infinite; }
html.gpu-wait .nav .logo .jwst .jl { animation: sc-jwst-phase 1.35s ease-in-out .90s infinite; }
.nav .logo:hover .jwst .jc,
.footer .brand-lockup:hover .jwst .jc,
.jwst-lg:hover .jc { animation: sc-jwst-phase 1.15s ease-in-out 0s 1; }
.nav .logo:hover .jwst .jr,
.footer .brand-lockup:hover .jwst .jr,
.jwst-lg:hover .jr { animation: sc-jwst-phase 1.15s ease-in-out .22s 1; }
.nav .logo:hover .jwst .jl,
.footer .brand-lockup:hover .jwst .jl,
.jwst-lg:hover .jl { animation: sc-jwst-phase 1.15s ease-in-out .44s 1; }
.nav .links { display: flex; gap: 26px; margin-right: auto; font: 500 14px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; }
.nav .links a { text-decoration: none; white-space: nowrap; color: var(--text-3); padding: 8px 0; border-bottom: 1px solid transparent; transition: color var(--fast), border-color var(--fast); }
.nav .links a:hover { color: var(--bone); }
.nav .links a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--amber); }
.nav .clock { font: 400 12px/1 var(--mono); color: var(--steel); letter-spacing: .06em; white-space: nowrap; }
.nav .actions { display: flex; gap: 10px; align-items: center; }
.nav .menu { display: none; position: relative; }
.nav .menu summary { list-style: none; padding: 0 12px; }
.nav .menu summary::-webkit-details-marker { display: none; }
.nav .menu[open] summary { --bd: var(--bone); }
.nav .menu nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px 0; display: grid;
  background: rgba(10, 13, 17, .97); border: 1px solid var(--line-mid); backdrop-filter: blur(10px); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.nav .menu nav a { padding: 13px 20px; text-decoration: none; font: 500 15px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
.nav .menu nav a:hover { color: var(--bone); background: rgba(233, 227, 214, .05); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 72px; color: var(--steel); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer .brand-lockup { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--bone); }
.footer .brand-lockup .jwst { width: 30px; height: 30px; display: block; flex: none; }
.footer .brand-lockup svg:not(.jwst), .footer .brand > svg { height: 14px; width: auto; color: var(--bone); display: block; }
.footer .motto { margin-top: 16px; font: 500 11px/1 var(--ui); letter-spacing: .34em; }
.footer h4 { margin: 0 0 14px; font: 500 11px/1 var(--ui); letter-spacing: .28em; text-transform: uppercase; color: var(--text-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer ul a { text-decoration: none; color: var(--steel); transition: color var(--fast); }
.footer ul a:hover { color: var(--bone); }
.footer small { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); font: 400 12px/1.6 var(--mono); }

/* ---------- seal ---------- */
.seal { display: block; width: 100%; height: auto; }
.seal .engrave { fill: #14171b; fill-opacity: .82; }
.seal .engrave-hi { fill: #fff; fill-opacity: .32; }
.seal.gold .engrave { fill: #3a2608; fill-opacity: .82; }
.seal.gold .engrave-hi { fill: #fff3d6; fill-opacity: .4; }

/* ---------- FAQ ---------- */
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 4px;
  font: 500 20px/1.3 var(--ui); letter-spacing: .03em; transition: color var(--fast); }
.faq-list summary:hover { color: #fff; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--steel); transition: transform .25s var(--ease), color var(--fast); }
.faq-list summary:hover .icon { color: var(--bone); }
.faq-list details[open] summary .icon { transform: rotate(45deg); color: var(--amber); }
.faq-list .a { padding: 0 4px 24px; color: var(--text-2); }
.faq-list .yes { display: block; margin-bottom: 6px; font: 400 30px/1 var(--display); color: var(--bone); }

/* ---------- small screens ---------- */
@media (max-width: 1240px) {
  .nav .clock { display: none; }
  .nav .wrap { gap: 26px; }
  .nav .links { gap: 22px; }
}
@media (max-width: 980px) {
  .nav .links, .nav .clock { display: none; }
  .nav .menu { display: block; }
  .nav .wrap { justify-content: space-between; gap: 16px; }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .nav .wrap { height: 68px; }
  .nav .logo { gap: 9px; }
  .nav .logo .jwst { width: 22px; height: 22px; }
  .nav .logo svg:not(.jwst) { height: 10px; }
  .nav .actions .btn.quiet { display: none; }
  .footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
