/* Layout concept: a fixed liquid-metal "forge" (WebGL) behind a single scrolling column;
   each section pins and drives the machine. Deliberately single dark theme: black chassis, orange metal, white type. */
:root {
  --ink: #0A0908;          /* tertiary: black chassis */
  --ink-2: #14110F;
  --ink-3: #1F1A17;
  --orange: #FF6A00;       /* primary */
  --orange-hi: #FF9A4A;
  --orange-lo: #B23E00;
  --white: #F7F3EF;        /* secondary: warm white */
  --mute: #A99E96;
  --line: rgba(255, 140, 60, .18);
  --glass: rgba(20, 17, 15, .62);

  --f-display: "Sora", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --f-pixel: "Silkscreen", "Courier New", monospace;

  --step--1: clamp(.82rem, .78rem + .2vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.1rem, 1.5rem + 3vw, 4rem);
  --step-4: clamp(2.6rem, 1.4rem + 5.6vw, 6.4rem);

  --radius: 18px;
  --maxw: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

#forge { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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");
}
main, .footer { position: relative; z-index: 2; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-hi); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.display {
  font-family: var(--f-display); font-weight: 700; font-size: var(--step-3); line-height: 1.05;
  letter-spacing: -.03em; margin: 0 0 1.4rem; text-wrap: balance; max-width: 18ch;
}
.display--xl { font-size: var(--step-4); }
.section-lede { color: var(--mute); max-width: 60ch; font-size: var(--step-1); line-height: 1.5; margin: 0 0 2.5rem; }

/* liquid-metal text fill used on accents */
.accent, .metal-text {
  background: linear-gradient(115deg, #FFE2C2 0%, #FF8A2A 18%, #B83C00 36%, #FF6A00 52%, #FFD0A0 62%, #E35800 80%, #FF9A4A 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s ease-in-out infinite alternate;
}
@keyframes sheen { to { background-position: 100% 0; } }

/* ---------- buttons ---------- */
.btn {
  --b: var(--orange);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 var(--step-0)/1 var(--f-body); text-decoration: none; cursor: pointer;
  color: var(--ink); background: linear-gradient(135deg, #FFB070, var(--orange) 45%, var(--orange-lo));
  border: 0; border-radius: 999px; padding: 1rem 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 6px rgba(80,20,0,.5), 0 10px 30px -10px rgba(255,106,0,.7);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 6px rgba(80,20,0,.5), 0 16px 40px -10px rgba(255,106,0,.9); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(247,243,239,.35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange-hi); }
.btn--small { padding: .7rem 1.1rem; font-size: var(--step--1); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(10,9,8,.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem max(20px, env(safe-area-inset-right, 0px)) .85rem max(20px, env(safe-area-inset-left, 0px));
}
.brand img { height: 34px; width: auto; }
.nav__links { list-style: none; display: flex; gap: 1.8rem; margin: 0; padding: 0; font-size: var(--step--1); font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--mute); transition: color .2s; }
.nav__links a:hover { color: var(--white); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 7rem 7.5rem; position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.hero__copy { max-width: 50rem; }
.hero__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.5rem, 10vw, 6rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 1.6rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .word { display: inline-block; }
.hero__lede { max-width: 54ch; color: #D8CFC8; font-size: var(--step-1); line-height: 1.5; margin: 0 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__specs { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1rem 0 0; font-family: var(--f-mono); font-size: var(--step--1); }
.hero__specs div { border-left: 2px solid var(--orange); padding-left: .8rem; }
.hero__specs dt { color: var(--mute); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; }
.hero__specs dd { margin: 0; color: var(--white); }
.scrollcue {
  position: absolute; left: 50%; bottom: max(1.5rem, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.scrollcue svg { width: 20px; fill: none; stroke: var(--mute); stroke-width: 1.5; }
.scrollcue__dot { fill: var(--orange); stroke: none; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(14px); opacity: .2; } }
@media (max-height: 700px) { .scrollcue { display: none; } }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); background: rgba(10,9,8,.55); backdrop-filter: blur(6px); }
.marquee__track { display: flex; align-items: center; gap: 2rem; width: max-content; padding-block: 1.1rem; font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); text-transform: uppercase; letter-spacing: .02em; color: #E9E1DA; will-change: transform; }
.marquee__track i { width: 14px; height: 14px; flex: none; background: var(--orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* ---------- studio ---------- */
.studio { padding-block: clamp(6rem, 14vw, 12rem); }
.studio__grid { display: grid; gap: 1rem; }
.studio__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2rem; max-width: 60rem; color: #D8CFC8; }
.studio__cols p { margin: 0; }
.studio__ratios { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 60rem; }
.studio__ratios li { background: var(--glass); backdrop-filter: blur(10px); padding: 1.6rem; display: grid; gap: .3rem; }
.studio__ratios strong { font-family: var(--f-display); font-size: var(--step-3); line-height: 1; color: var(--orange); }
.studio__ratios span { color: var(--mute); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; font-family: var(--f-mono); }
.reveal-words .w { display: inline-block; }

/* ---------- devices ---------- */
.device {
  position: relative; border-radius: 34px; padding: 12px;
  background: linear-gradient(145deg, #3A302A, #0E0C0B 40%, #2A221D 70%, #0B0A09);
  box-shadow: inset 0 0 0 1.5px rgba(255,170,110,.35), inset 0 2px 1px rgba(255,255,255,.25), 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px #000, 0 0 80px -20px rgba(255,106,0,.35);
  max-width: 100%;
}
.device__screen { position: relative; border-radius: 24px; overflow: hidden; background: #000; height: 100%; }
.device--landscape { aspect-ratio: 19.5 / 9; width: min(100%, 720px); justify-self: center; }
.device--landscape .device__notch { position: absolute; left: 4px; top: 50%; width: 6px; height: 64px; transform: translateY(-50%); border-radius: 6px; background: #000; }
.device--portrait { aspect-ratio: 9 / 19; width: min(100%, 340px); justify-self: center; }
.device--portrait::after { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 90px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }

/* ---------- 2D games ---------- */
.games, .apps { position: relative; }
.games__pin, .apps__pin { min-height: 100svh; display: flex; align-items: center; padding-block: 6rem 3rem; }
.games__grid, .apps__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 980px) {
  .games__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4rem; }
  .apps__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 5rem; }
}
.games__copy > p, .apps__copy > p { color: #D8CFC8; max-width: 52ch; }
#pixelgame { width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.hud {
  position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; padding: 4% 6% 0 6%;
  font-family: var(--f-pixel); font-size: clamp(.6rem, .4rem + .8vw, .95rem); color: var(--white); text-shadow: 2px 2px 0 #000; pointer-events: none;
}
.hud b { color: var(--orange-hi); font-weight: 400; }
.captions { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .6rem; max-width: 52ch; }
.captions li {
  padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; color: var(--mute); background: rgba(10,9,8,.5);
  transition: border-color .4s, color .4s, background .4s, transform .4s;
}
.captions li span { display: block; font-family: var(--f-pixel); font-size: .95rem; color: var(--white); margin-bottom: .2rem; }
.captions li.is-active { border-color: var(--orange); color: #E9E1DA; background: rgba(255,106,0,.08); transform: translateX(6px); }
.captions li.is-active span { color: var(--orange-hi); }


/* pinned sections must fit one screen */
.games .display, .apps .display { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); max-width: 16ch; margin-bottom: 1rem; }
.captions li { padding: .75rem 1rem; }
.captions li p { margin: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s ease; }
.captions li p > span { overflow: hidden; display: block; font: inherit; color: inherit; margin: 0; }
.captions li.is-active p { grid-template-rows: 1fr; }
.ticks { gap: .45rem; margin: 1.2rem 0; }

/* ---------- 3D apps ---------- */
.apps__grid .device { order: 2; }
@media (min-width: 980px) { .apps__grid .device { order: 0; } }
#product { position: absolute; inset: 0; width: 100%; height: 100%; }
.appbar {
  position: absolute; z-index: 2; top: 58px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 20px;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; color: var(--white);
}
.appbar span:last-child { color: var(--orange-hi); }
.hotspots span {
  position: absolute; z-index: 2; left: 0; top: 0; white-space: nowrap; pointer-events: none;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--white); padding: 3px 7px; border-radius: 6px; opacity: 0;
  transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--orange), 0 6px 20px rgba(0,0,0,.6);
}
.appui { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 10px 12px; border-radius: 18px; background: rgba(20,17,15,.75); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08); }
.swatches { display: flex; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; background: var(--sw); box-shadow: inset 0 2px 3px rgba(255,255,255,.4), inset 0 -3px 5px rgba(0,0,0,.45), 0 0 0 2px rgba(255,255,255,.12); transition: box-shadow .2s, transform .2s; }
.swatch.is-active { box-shadow: inset 0 2px 3px rgba(255,255,255,.4), inset 0 -3px 5px rgba(0,0,0,.45), 0 0 0 2px var(--ink), 0 0 0 4px var(--orange); transform: scale(1.06); }
.appui__cta { font-size: .72rem; font-weight: 600; background: var(--orange); color: var(--ink); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1rem; height: 1rem; background: var(--orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.note { font-family: var(--f-mono); font-size: var(--step--1); color: var(--mute) !important; }

/* ---------- FPS ---------- */
.fps { position: relative; }
.fps__pin { min-height: 100svh; display: flex; align-items: center; padding-block: 5.5rem 2rem; }
.fps__grid { display: grid; gap: 1.6rem; }
.fps__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 3rem; align-items: end; }
@media (min-width: 980px) { .fps__copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fps .display { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); margin-bottom: 0; max-width: 15ch; }
.fps__copy p { color: #D8CFC8; margin: 0; max-width: 56ch; }
.ticks--2col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); margin: .9rem 0 0; font-size: var(--step--1); }
.monitor { justify-self: center; width: min(100%, 1040px, calc((100svh - 22rem) * 16 / 9)); min-width: min(100%, 560px); }
.monitor__screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; max-width: 100%;
  box-shadow: 0 0 0 10px #15110f, 0 0 0 11px rgba(255,170,110,.35), 0 0 0 12px #000, 0 40px 90px -30px rgba(0,0,0,.9), 0 0 120px -30px rgba(255,106,0,.45);
}
.monitor__stand { width: 22%; height: 26px; margin: 11px auto 0; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #2a221d, #0b0a09); box-shadow: inset 0 1px 0 rgba(255,170,110,.3); }
#fpsgame { position: absolute; inset: 0; width: 100%; height: 100%; }
.fpshud { position: absolute; inset: 0; pointer-events: none; font-family: var(--f-mono); font-size: clamp(.5rem, .35rem + .45vw, .74rem); letter-spacing: .1em; color: var(--white); text-shadow: 0 0 8px rgba(255,106,0,.6); }
.fpshud b { color: var(--orange-hi); font-weight: 600; }
.fpshud__top, .fpshud__bottom { position: absolute; left: 4.5%; right: 4.5%; display: flex; justify-content: space-between; gap: 1rem; white-space: nowrap; }
.fpshud__top { top: 5.5%; } .fpshud__bottom { bottom: 5%; }
#fpsFeed { color: var(--orange-hi); }
@media (max-width: 600px) { #fpsFeed { display: none; } }
.crosshair { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); border: 1.5px solid rgba(255,255,255,.8); border-radius: 50%; }
.crosshair::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 6px var(--orange); }
.crosshair i { position: absolute; background: rgba(255,255,255,.85); }
.crosshair i:nth-child(1), .crosshair i:nth-child(2) { width: 1.5px; height: 9px; left: 50%; margin-left: -.75px; }
.crosshair i:nth-child(1) { top: -13px; } .crosshair i:nth-child(2) { bottom: -13px; }
.crosshair i:nth-child(3), .crosshair i:nth-child(4) { height: 1.5px; width: 9px; top: 50%; margin-top: -.75px; }
.crosshair i:nth-child(3) { left: -13px; } .crosshair i:nth-child(4) { right: -13px; }
.crosshair.hit { animation: hit .28s ease-out; }
@keyframes hit { 0% { transform: translate(-50%, -50%) scale(1.5) rotate(45deg); border-color: var(--orange); } 100% { transform: translate(-50%, -50%) scale(1); } }

/* ---------- platforms ---------- */
.platforms, .services, .faq, .contact { padding-block: clamp(5rem, 12vw, 10rem); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.2rem; }
.card {
  position: relative; padding: 2rem 1.8rem; border-radius: 22px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,140,60,.2); transform-style: preserve-3d; transition: border-color .3s;
  display: flex; flex-direction: column; gap: .2rem;
}
.card:hover { border-color: var(--orange); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,106,0,.18), transparent 50%); }
.card h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--step-2); margin: 1.2rem 0 .4rem; line-height: 1.1; }
.card p { color: #CFC5BE; margin: 0; }
.card .card__meta { margin-top: auto; padding-top: 1.4rem; font-family: var(--f-mono); font-size: var(--step--1); color: var(--orange-hi); }
.card__icon { width: 64px; height: 64px; }
.card__icon svg { width: 100%; height: 100%; fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- services ---------- */
.svc { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.svc__row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
}
@media (min-width: 860px) { .svc__row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .7fr); gap: 2rem; align-items: baseline; padding: 2.2rem 1.2rem; } }
.svc__row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom;
  background: linear-gradient(100deg, #FF8A2A, #B83C00 40%, #FF6A00 60%, #FFB070); transition: transform .5s cubic-bezier(.7,0,.2,1);
}
.svc__row:hover::before { transform: scaleY(1); }
.svc__row:hover, .svc__row:hover .svc__tags, .svc__row:hover p { color: var(--ink); }
.svc__row h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); line-height: 1.2; }
.svc__row p { margin: 0; color: #CFC5BE; transition: color .3s; }
.svc__tags { font-family: var(--f-mono); font-size: var(--step--1); color: var(--orange-hi); transition: color .3s; }
@media (min-width: 860px) { .svc__tags { text-align: right; } }

/* ---------- process ---------- */
.process { position: relative; }
.process__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 6rem 3rem; overflow: hidden; }
.process__viewport { width: 100%; overflow: hidden; }
.process__track { list-style: none; margin: 0; display: flex; gap: clamp(1rem, 2vw, 2rem); width: max-content; padding: 2rem max(20px, calc((100vw - var(--maxw)) / 2 + 20px)); position: relative; }
.process__track::before { content: ""; position: absolute; left: 0; right: 0; top: calc(2rem + 110px); height: 1px; background: linear-gradient(90deg, transparent, var(--orange) 10%, var(--orange) 90%, transparent); opacity: .35; }
.step {
  position: relative; width: min(78vw, 330px); flex: none; display: grid; justify-items: center; gap: 1rem; text-align: center;
  padding: 1.6rem 1.4rem 1.8rem; border-radius: 24px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,140,60,.18); transition: border-color .5s, box-shadow .5s;
}
.step.is-lit { border-color: rgba(255,140,60,.6); box-shadow: 0 0 60px -20px rgba(255,106,0,.55), inset 0 1px 0 rgba(255,255,255,.08); }
.step__fig { width: 180px; height: 180px; overflow: visible; will-change: transform; }
.step__fig path { fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.step__fig .fo { stroke: var(--orange); stroke-width: 1.6; filter: drop-shadow(0 0 4px rgba(255,106,0,.6)); }
.step__fig .fw { stroke: var(--white); stroke-width: 1; stroke-opacity: .35; }
.step__body { position: relative; }
.step__n { font-family: var(--f-mono); color: var(--orange); font-size: var(--step--1); letter-spacing: .14em; }
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); margin: .3rem 0 .5rem; }
.step p { margin: 0; color: #CFC5BE; font-size: var(--step--1); line-height: 1.5; }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 980px) { .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; } }
.faq__list { display: grid; gap: .7rem; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--glass); backdrop-filter: blur(10px); padding: 0 1.3rem; transition: border-color .3s; }
details[open] { border-color: var(--orange); }
summary { cursor: pointer; list-style: none; padding: 1.2rem 2rem 1.2rem 0; font-weight: 600; font-size: var(--step-1); line-height: 1.35; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--orange); clip-path: polygon(40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%, 0 40%, 40% 40%); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 1.3rem; color: #CFC5BE; max-width: 65ch; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 980px) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.contact__mail { font-family: var(--f-mono); color: var(--mute); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.contact__mail a { color: var(--orange-hi); user-select: all; }
.copy { font: 500 .75rem var(--f-mono); color: var(--white); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.copy:hover { border-color: var(--orange); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; padding: clamp(1.2rem, 3vw, 2rem); border-radius: 24px; background: var(--glass); backdrop-filter: blur(16px); border: 1px solid rgba(255,140,60,.25); }
.field { display: grid; gap: .35rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--white); background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: .8rem .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.25); }
.field [aria-invalid="true"] { border-color: #FF4D4D; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__status { margin: 0; font-size: var(--step--1); color: var(--mute); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(10,9,8,.88); padding-block: 3.5rem max(3rem, env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .footer__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; } }
.footer__brand { display: grid; gap: 1rem; align-content: start; }
.footer__brand img { height: 32px; width: auto; }
.footer p { margin: 0; color: var(--mute); font-size: var(--step--1); max-width: 56ch; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1.5rem; }
.footer__h { font-family: var(--f-mono); font-size: .72rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-hi) !important; margin-bottom: .7rem !important; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: var(--step--1); }
.footer a { text-decoration: none; color: var(--mute); }
.footer a:hover { color: var(--orange-hi); }
.footer__legal { grid-column: 1 / -1; font-family: var(--f-mono); border-top: 1px solid var(--line); padding-top: 1.4rem; }

/* ---------- scroll dial ---------- */
.dial {
  position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: 64px; height: 64px; display: grid; place-items: center; pointer-events: none;
}
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial__track { fill: rgba(10,9,8,.72); stroke: rgba(255,255,255,.12); stroke-width: 2; }
.dial__arc { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 3px rgba(255,106,0,.8)); }
.dial__hex { fill: none; stroke: var(--white); stroke-opacity: .3; stroke-width: 1; }
.dial span { position: relative; font-family: var(--f-mono); font-size: .62rem; color: var(--white); }

@media (prefers-reduced-motion: no-preference) {
  .js-intro .hero__title .word { animation: rise 1.1s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i, 0) * 70ms + 100ms); }
  .js-intro .hero .eyebrow, .js-intro .hero__lede, .js-intro .hero__cta, .js-intro .hero__specs { animation: fadeUp .9s cubic-bezier(.16,1,.3,1) both; }
  .js-intro .hero__lede { animation-delay: .55s; } .js-intro .hero__cta { animation-delay: .65s; } .js-intro .hero__specs { animation-delay: .75s; }
  .js-intro .nav__inner { animation: fadeUp .8s .2s cubic-bezier(.16,1,.3,1) both; }
}
@keyframes rise { from { transform: translateY(115%) rotate(4deg); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .accent, .metal-text, .scrollcue__dot { animation: none; }
}

@media (max-width: 859px) { #forge { opacity: .5; } }

/* ---------- inner pages ---------- */
.nav__links a[aria-current="page"] { color: var(--white); box-shadow: 0 2px 0 var(--orange); }
.page-hero { padding-block: clamp(7.5rem, 14vw, 10rem) clamp(3rem, 6vw, 5rem); position: relative; }
.page-hero .wrap { display: grid; gap: 0; }
.page-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.3rem, 1.3rem + 4.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 1.4rem; max-width: 16ch; text-wrap: balance; }
.page-hero .hero__lede { max-width: 60ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; color: var(--mute); margin-bottom: 1.6rem; }
.crumbs a { color: var(--mute); text-decoration: none; } .crumbs a:hover { color: var(--orange-hi); }
.crumbs [aria-current] { color: var(--white); }
.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.band--glass > .wrap { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 28px; padding-block: clamp(1.6rem, 4vw, 3rem); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
@media (min-width: 980px) { .demo-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 4rem; } .demo-grid--flip > :first-child { order: 2; } }
.demo-grid p { color: #D8CFC8; max-width: 56ch; }
.demo-grid .device--landscape, .demo-grid .monitor { width: 100%; }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 980px) { .prose-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.prose { max-width: 68ch; color: #D8CFC8; }
.prose h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); line-height: 1.12; letter-spacing: -.02em; color: var(--white); margin: 2.4rem 0 1rem; text-wrap: balance; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); color: var(--white); margin: 1.8rem 0 .6rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul { margin: 0 0 1.2rem; padding-left: 1.2rem; display: grid; gap: .45rem; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--orange-hi); }
.prose strong { color: var(--white); }
.spec { position: sticky; top: 6rem; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,140,60,.28); border-radius: 22px; padding: 1.6rem; display: grid; gap: 1.1rem; }
.spec__title { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-hi); margin: 0; }
.spec dl { margin: 0; display: grid; gap: .9rem; }
.spec dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.spec dd { margin: .15rem 0 0; color: var(--white); font-size: var(--step--1); }
.spec .btn { justify-self: start; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; counter-reset: s; }
.steps-list li { counter-increment: s; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; color: #CFC5BE; font-size: var(--step--1); }
.steps-list li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--f-mono); color: var(--orange); letter-spacing: .14em; margin-bottom: .5rem; }
.steps-list strong { display: block; font-family: var(--f-display); font-size: var(--step-1); color: var(--white); margin-bottom: .35rem; font-weight: 600; }
.cards--sm .card h3 { font-size: var(--step-1); margin-top: .2rem; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .8rem; margin-top: 2rem; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--white); background: rgba(10,9,8,.5); transition: border-color .25s, background .25s; }
.related a:hover { border-color: var(--orange); background: rgba(255,106,0,.08); }
.related a::after { content: "→"; color: var(--orange); }
.cta-band .wrap { display: grid; gap: 1rem; justify-items: start; }
.more { display: inline-flex; gap: .4rem; margin-top: 1.4rem; font-weight: 600; color: var(--orange-hi); text-decoration: none; border-bottom: 1px solid transparent; }
.more:hover { border-color: var(--orange-hi); }
.card { position: relative; }
.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc__row h3 a { color: inherit; text-decoration: none; }
.svc__row h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.note-box { border-left: 3px solid var(--orange); padding: .8rem 1rem; background: rgba(255,106,0,.06); border-radius: 0 12px 12px 0; color: #D8CFC8; font-size: var(--step--1); margin: 0 0 1.5rem; }
.notfound { min-height: 70svh; display: grid; align-content: center; }

/* static liquid-metal backdrop when the 3D scene is off (reduced motion / no WebGL) */
html.no-forge body { background:
  radial-gradient(circle at 78% 30%, rgba(255,154,64,.35), rgba(122,36,0,.25) 18%, transparent 34%),
  radial-gradient(circle at 78% 30%, transparent 30%, rgba(255,106,0,.18) 30.4%, transparent 31%),
  var(--ink); background-attachment: fixed; }

/* ---------- case studies ---------- */
.case .display { max-width: 22ch; }
.case__intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; margin-bottom: 3rem; }
@media (min-width: 980px) { .case__intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.case__intro p { margin: 0; color: #D8CFC8; font-size: var(--step-1); line-height: 1.55; max-width: 60ch; }
.case__intro a { color: var(--orange-hi); }
.case__facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.case__facts div { background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; }
.case__facts dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-hi); }
.case__facts dd { margin: .25rem 0 0; color: var(--white); font-size: var(--step--1); }
.case__h { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); letter-spacing: -.02em; margin: 3rem 0 .6rem; }
.case__lede { color: var(--mute); max-width: 62ch; margin: 0 0 1.5rem; }
.case__list { margin-bottom: 2.5rem; }
.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 1.2rem; }
.clip, .shots figure { margin: 0; display: grid; gap: .6rem; min-width: 0; }
.clip video, .shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 14px; background: #000; border: 1px solid rgba(255,140,60,.25); box-shadow: 0 24px 60px -30px rgba(0,0,0,.9); }
.clip figcaption, .shots figcaption { font-size: var(--step--1); color: var(--mute); }
.clip figcaption strong { font-family: var(--f-display); color: var(--white); font-size: var(--step-0); margin-right: .4rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.2rem; margin: 1rem 0 2.5rem; }
.shots figcaption { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; }
.case .hero__cta { margin-top: .5rem; }
.case-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid rgba(255,140,60,.3); border-radius: 24px; overflow: hidden; background: var(--glass); backdrop-filter: blur(14px); }
@media (min-width: 900px) { .case-card { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.case-card__body { padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: .8rem; align-content: center; }
.case-card__body p { margin: 0; color: #D8CFC8; }
.case-card__title { font-family: var(--f-display); font-weight: 700; font-size: var(--step-3); line-height: 1; margin: 0; letter-spacing: -.03em; }
.case-card__title a { color: var(--white); text-decoration: none; }
.case-card .card__meta { margin: 0; padding: 0; font-family: var(--f-mono); font-size: var(--step--1); color: var(--orange-hi); }

/* ================= calm motion system (replaces the 3D background + pinned scroll) ================= */
#forge, .grain, .dial { display: none !important; }
body { background:
  radial-gradient(1100px 620px at 88% -8%, rgba(255,106,0,.11), transparent 62%),
  radial-gradient(900px 500px at -10% 40%, rgba(255,106,0,.05), transparent 60%),
  var(--ink); }

/* thin scroll progress line under the nav */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 2px; z-index: 55; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange-lo), var(--orange), var(--orange-hi)); transform-origin: 0 50%; transform: scaleX(0); }

/* one-time fade-ins */
.reveal-on .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }

/* subtle line drawing beside hero copy (brand texture, not content) */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero::after, .page-hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  top: 50%; right: max(-6vw, -80px); width: min(48vw, 560px); aspect-ratio: 1; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200' fill='none' stroke='%23FF6A00' stroke-width='.5'%3E%3Ccircle r='30'/%3E%3Ccircle cx='30' r='30'/%3E%3Ccircle cx='-30' r='30'/%3E%3Ccircle cx='15' cy='25.98' r='30'/%3E%3Ccircle cx='-15' cy='25.98' r='30'/%3E%3Ccircle cx='15' cy='-25.98' r='30'/%3E%3Ccircle cx='-15' cy='-25.98' r='30'/%3E%3Ccircle r='60'/%3E%3Ccircle r='92' stroke-dasharray='1 3'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .16;
}
.page-hero::after { width: min(38vw, 420px); opacity: .1; }
@media (max-width: 859px) { .hero::after, .page-hero::after { width: 80vw; right: -30vw; opacity: .07; } }
main { isolation: isolate; }

/* no more pinned sections: natural heights */
.games__pin, .apps__pin, .fps__pin, .process__pin { min-height: 0; padding-block: clamp(4rem, 9vw, 7rem); }
.hero { min-height: min(100svh, 860px); }

/* process: simple grid instead of a horizontal pinned track */
.process__viewport { overflow: visible; }
.process__track { width: auto; max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; transform: none !important;
  padding: 1.5rem max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
.process__track::before { display: none; }
.step { width: auto; }
.step__fig { width: 120px; height: 120px; }
.step__fig path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1) .15s; }
.reveal-on .step:not(.is-in) .step__fig path { stroke-dashoffset: 1; }
.step.is-lit { border-color: rgba(255,140,60,.18); box-shadow: none; }

/* marquee: slow, constant, CSS-only */
.marquee__track { animation: marquee 70s linear infinite; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* hover states stay quiet */
.card { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero::after, .page-hero::after { animation: none; }
}

/* ---------- blog ---------- */
.post-title { max-width: 22ch; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.8rem); }
.post-meta { font-family: var(--f-mono); font-size: var(--step--1); color: var(--mute); margin: 0; letter-spacing: .02em; }
.post-hero { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.post-band { padding-top: clamp(1rem, 3vw, 2rem); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 1040px) { .post-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; } }
.post-body { max-width: 70ch; font-size: 1.075rem; line-height: 1.75; }
.post-body .lead { font-size: var(--step-1); line-height: 1.55; color: var(--white); margin-bottom: 1.6rem; }
.post-body h2 { scroll-margin-top: 6rem; }
.post-body h3 { scroll-margin-top: 6rem; }
.post-body ol { margin: 0 0 1.2rem; padding-left: 1.4rem; display: grid; gap: .45rem; }
.post-body ol li::marker { color: var(--orange); font-family: var(--f-mono); }
.post-body blockquote { margin: 1.5rem 0; padding: .9rem 1.2rem; border-left: 3px solid var(--orange); background: rgba(255,106,0,.06); border-radius: 0 12px 12px 0; color: #E9E1DA; }
.post-body code { font-family: var(--f-mono); font-size: .88em; background: rgba(255,255,255,.07); padding: .1em .35em; border-radius: 5px; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: var(--step--1); display: block; overflow-x: auto; }
.post-body th, .post-body td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-hi); white-space: nowrap; }
.post-body .post-faq { margin-top: 2.5rem; display: grid; gap: .6rem; }
.post-body .post-faq h2 { margin-bottom: .6rem; }
.post-body details p { margin: 0 0 1.1rem; }
.post-aside { top: 5.5rem; }
.post-toc { margin: 0 0 .6rem; padding-left: 1.1rem; display: grid; gap: .4rem; font-size: var(--step--1); }
.post-toc a { color: #D8CFC8; text-decoration: none; }
.post-toc a:hover { color: var(--orange-hi); }
.post-toc li::marker { color: var(--orange); }
.post-aside__text { margin: 0; color: var(--mute); font-size: var(--step--1); }
@media (max-width: 1039px) { .post-aside { position: static; } }
.blog-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.blog-chips a { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-decoration: none; color: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .9rem; background: rgba(10,9,8,.5); }
.blog-chips a:hover { border-color: var(--orange); color: var(--orange-hi); }
.blog-cat { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.blog-cat__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 1.2rem; }
.blog-cat__head .display { font-size: var(--step-2); margin: 0; }
.blog-cat__head .more { margin: 0; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.post-card { position: relative; padding: 1.3rem 1.3rem 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--glass); backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: .5rem; transition: border-color .25s; }
.post-card:hover { border-color: var(--orange); }
.post-card h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.post-card p { margin: 0; color: #CFC5BE; font-size: var(--step--1); }
.post-card .card__meta { margin-top: auto; padding-top: .4rem; font-family: var(--f-mono); font-size: .72rem; color: var(--orange-hi); }
.guide-list { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .6rem 2rem; }
.guide-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.guide-list a { color: var(--white); text-decoration: none; font-weight: 500; }
.guide-list a:hover { color: var(--orange-hi); }
.guide-list span { flex: none; font-family: var(--f-mono); font-size: .72rem; color: var(--mute); }

/* ---------- gamepad tester ---------- */
.tool-hero { padding-bottom: clamp(1rem, 3vw, 2rem); }
.tool-band { padding-top: 1rem; }
.gpt { --gpt-accent: var(--orange); display: grid; gap: 1rem; }
.gpt-bar-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--glass); }
.gpt-status { margin: 0; color: #E9E1DA; }
.gpt-live { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: .5rem; }
.gpt-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); }
.gpt.is-live .gpt-live { color: #7CFFB2; }
.gpt.is-live .gpt-live::before { background: #2ED47A; box-shadow: 0 0 10px #2ED47A; }
.gpt-controls { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; color: var(--mute); }
.gpt-controls label { display: inline-flex; align-items: center; gap: .5rem; }
.gpt-controls select { font: 500 .85rem var(--f-body); color: var(--white); background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: .45rem .6rem; max-width: 70vw; }
.gpt-controls input[type=range] { accent-color: var(--orange); width: 140px; }
.gpt-controls output { color: var(--white); min-width: 3ch; }
.gpt-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 1000px) { .gpt-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.gpt-card { border: 1px solid var(--line); border-radius: 20px; background: var(--glass); padding: clamp(1rem, 2.4vw, 1.4rem); min-width: 0; }
.gpt-h { font-family: var(--f-mono); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-hi); margin: 0 0 .7rem; }
#gptSvg { width: 100%; height: auto; display: block; max-width: 560px; margin-inline: auto; }
.gpt-body { fill: #191513; stroke: rgba(255,140,60,.35); stroke-width: 1.5; }
.gpt-b, .gpt-cap { fill: #2A2320; stroke: rgba(255,255,255,.18); stroke-width: 1; transition: fill .06s; }
.gpt-well { fill: #0E0B0A; stroke: rgba(255,255,255,.08); }
.gpt-t { fill: rgba(255,106,0, calc(.12 + var(--v, 0) * .88)); stroke: rgba(255,255,255,.18); }
.gpt-b.on, .gpt-cap.on { fill: var(--orange); stroke: #FFD0A0; }
#gptSvg text { font: 700 10px var(--f-body); fill: var(--white); text-anchor: middle; pointer-events: none; }
.gpt-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .6rem 1rem; margin: 1rem 0 0; }
.gpt-meta dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.gpt-meta dd { margin: .2rem 0 0; font-size: var(--step--1); color: var(--white); overflow-wrap: anywhere; }
.gpt-sticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; align-content: start; }
.gpt-sticks .gpt-hint { grid-column: 1 / -1; }
.gpt-plot { width: 100%; aspect-ratio: 1; display: block; background: rgba(0,0,0,.35); border-radius: 50%; }
.gpt-readout { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .8rem; margin: .7rem 0 0; font-family: var(--f-mono); font-size: .72rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.gpt-readout b { color: var(--white); font-weight: 600; }
.gpt-hint { margin: .6rem 0 0; font-size: var(--step--1); color: var(--mute); }
.gpt-trig-row { display: flex; gap: 2rem; margin-bottom: 1.4rem; }
.gpt-trig { display: grid; justify-items: center; gap: .35rem; font-family: var(--f-mono); font-size: .72rem; color: var(--mute); }
.gpt-trig b { color: var(--white); font-variant-numeric: tabular-nums; }
.gpt-trig-fill { width: 46px; height: 120px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.35); overflow: hidden; display: flex; align-items: flex-end; }
.gpt-trig-fill i { display: block; width: 100%; height: 100%; background: linear-gradient(0deg, var(--orange-lo), var(--orange), var(--orange-hi)); transform: scaleY(0); transform-origin: bottom; }
.gpt-vib { display: flex; flex-wrap: wrap; gap: .5rem; }
.gpt-vib button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.gpt-list { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: .35rem .8rem; font-size: .78rem; }
.gpt-list li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) auto; align-items: center; gap: .2rem .5rem; padding: .35rem .5rem; border-radius: 8px; border: 1px solid transparent; }
.gpt-list li.on { border-color: var(--orange); background: rgba(255,106,0,.12); }
.gpt-bi { font-family: var(--f-mono); color: var(--mute); }
.gpt-bn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #E9E1DA; }
.gpt-bv { font-family: var(--f-mono); color: var(--white); font-variant-numeric: tabular-nums; }
.gpt-list i { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; position: relative; }
.gpt-bar b { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.gpt-axis b { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--orange); }
.gpt-privacy { margin: 0; font-size: var(--step--1); color: var(--mute); }

/* ---------- 3D model checker ---------- */
.mck { display: grid; gap: 1rem; }
.mck-drop { position: relative; display: grid; justify-items: center; gap: .5rem; text-align: center; padding: clamp(1.8rem, 5vw, 3rem) 1rem; border: 2px dashed rgba(255,140,60,.4); border-radius: 22px; background: var(--glass); cursor: pointer; transition: border-color .2s, background .2s; }
.mck-drop:hover, .mck-drop.is-over { border-color: var(--orange); background: rgba(255,106,0,.08); }
.mck-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.mck-drop:focus-within { outline: 2px solid var(--orange); outline-offset: 3px; }
.mck-drop__icon svg { width: 46px; height: 46px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; }
.mck-drop__title { font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); }
.mck-drop__sub { color: var(--mute); font-size: var(--step--1); }
.mck-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
.mck-status { margin: 0; color: var(--mute); font-size: var(--step--1); }
.mck-status.is-error { color: #FF8A80; }
.mck-out { display: none; gap: 1rem; }
.mck.has-result .mck-out { display: grid; }
.mck-verdict { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; align-items: baseline; padding: 1rem 1.2rem; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); }
.mck-verdict b { font-family: var(--f-display); font-size: var(--step-1); }
.mck-verdict span { color: var(--mute); font-family: var(--f-mono); font-size: .76rem; }
.mck-verdict.is-good { border-color: rgba(46,212,122,.6); } .mck-verdict.is-good b { color: #7CFFB2; }
.mck-verdict.is-warn { border-color: rgba(255,176,64,.6); } .mck-verdict.is-warn b { color: #FFC56B; }
.mck-verdict.is-bad { border-color: rgba(255,90,80,.6); } .mck-verdict.is-bad b { color: #FF8A80; }
.mck-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 1000px) { .mck-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.mck-card { border: 1px solid var(--line); border-radius: 20px; background: var(--glass); padding: clamp(1rem, 2.4vw, 1.4rem); min-width: 0; }
.mck-viewer { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2a2320, #0c0a09 70%); }
.mck-viewer model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.mck-viewer-err { position: absolute; inset: auto 1rem 1rem; margin: 0; color: var(--mute); font-size: var(--step--1); }
.mck-hint { margin: .7rem 0 0; color: var(--mute); font-size: var(--step--1); overflow-wrap: anywhere; }
.mck-hint span { color: var(--white); }
.mck-recs { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mck-recs li { display: grid; gap: .2rem; padding: .7rem .9rem .7rem 2.1rem; border-radius: 12px; background: rgba(0,0,0,.25); position: relative; font-size: var(--step--1); }
.mck-recs li::before { content: ""; position: absolute; left: .85rem; top: 1rem; width: 9px; height: 9px; border-radius: 50%; }
.mck-recs li.is-good::before { background: #2ED47A; } .mck-recs li.is-warn::before { background: #FFB040; } .mck-recs li.is-bad::before { background: #FF5A50; }
.mck-recs b { color: var(--white); }
.mck-recs span { color: #CFC5BE; }
.mck-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: .8rem 1rem; margin: 0; }
.mck-stats dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.mck-stats dd { margin: .2rem 0 0; color: var(--white); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mck-tex { overflow-x: auto; margin-bottom: .8rem; }
.mck-tex table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.mck-tex th, .mck-tex td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mck-tex th { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-hi); }
.mck-tex p { margin: 0; color: var(--mute); }

/* ---------- research / benchmark pages ---------- */
.bench-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-top: 1.6rem; }
.bench-stats > div { border: 1px solid var(--line); border-radius: 20px; background: var(--glass); padding: 1.3rem 1.4rem; display: grid; gap: .45rem; }
.bench-stats b { font-family: var(--f-display); font-size: var(--step-2); line-height: 1; color: var(--white); letter-spacing: -.02em; }
.bench-stats span { font-size: var(--step--1); color: var(--mute); }
.bench-chart { margin: 1.4rem 0 1.8rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); }
.bench-chart figcaption { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: .9rem; }
.prose .bench-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.bench-bars li { display: grid; grid-template-columns: minmax(6.5rem, 10.5rem) 1fr 4.6rem; align-items: center; gap: .7rem; font-size: var(--step--1); }
.bench-bars__label { color: var(--white); overflow-wrap: anywhere; }
.bench-bars__track { height: 14px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.bench-bars__fill { display: block; height: 100%; width: var(--v); min-width: 2px; background: var(--orange); border-radius: 0 4px 4px 0; }
.bench-bars__val { font-family: var(--f-mono); color: var(--white); text-align: right; white-space: nowrap; }
.bench-bars__val small { color: var(--mute); font-size: .78em; }
.bench-table { overflow-x: auto; margin: 1rem 0 1.6rem; }
.bench-table table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.bench-table th, .bench-table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bench-table th { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
@media (max-width: 520px) { .bench-bars li { grid-template-columns: 1fr 4.2rem; } .bench-bars__label { grid-column: 1 / -1; } }

/* ---------- pixel art scaler ---------- */
.pxs-out[hidden] { display: none; }
.pxs-out { margin-top: 1.4rem; }
.pxs-name { color: var(--mute); text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: .4rem; overflow-wrap: anywhere; }
.pxs-stage { min-height: 220px; max-height: 520px; overflow: auto; border-radius: 14px; display: grid; place-items: center; padding: 1rem;
  background-color: #1a1614; background-image: linear-gradient(45deg, #241f1c 25%, transparent 25%, transparent 75%, #241f1c 75%), linear-gradient(45deg, #241f1c 25%, transparent 25%, transparent 75%, #241f1c 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.pxs-stage canvas { image-rendering: pixelated; image-rendering: crisp-edges; display: block; max-width: none; }
.pxs-controls { display: grid; grid-template-columns: auto 1fr; gap: .4rem .9rem; align-items: center; margin-top: 1rem; font-size: var(--step--1); color: var(--white); }
.pxs-controls input[type=range] { accent-color: var(--orange); width: 100%; }
.pxs-controls .gpt-hint { grid-column: 1 / -1; margin: 0; }
.pxs-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.pxs-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.6rem, 1fr)); gap: .35rem; margin-bottom: 1rem; }
.pxs-palette .gpt-hint { grid-column: 1 / -1; }
.pxs-swatch { aspect-ratio: 1; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: var(--c); cursor: pointer; position: relative; padding: 0; }
.pxs-swatch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pxs-swatch:hover, .pxs-swatch:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.pxs-screens-card { grid-column: 1 / -1; }
.pxs-tips { margin-top: 1rem; }
.pxs-buttons [hidden] { display: none; }
