/* Parazit Games — site styles. The studio's colour is turquoise (#25D3C4), orange (#E2692B) second; the page is a
   dark instrument the signal lives in. Shared by the home page, /press/, /privacy/ and 404. */

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #060707;
  --bg-2: #0b0d0d;
  --surface: #101313;
  --surface-2: #161a1a;
  --line: rgba(220, 255, 250, 0.08);
  --line-strong: rgba(220, 255, 250, 0.16);
  --text: #eef3f2;
  --muted: #8f9a98;
  --faint: #56605e;
  --accent: #25d3c4;
  --accent-hover: #5ae4d8;
  --accent-ink: #022624;
  --accent-soft: rgba(37, 211, 196, 0.12);
  --orange: #e2692b;
  --amber: #ffb000;
  --ok: #25d3c4;
  --err: #f08a6c;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 100%;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* Fatih: on desktops the page is a proportion of the screen, type included: the same layout at 1280, 1440 and 2560 */
@media (min-width: 1024px) { :root { --wrap: 84vw; } html { font-size: 1.111vw; } }
@media (min-width: 2400px) { html { font-size: 26.7px; } }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.062rem; line-height: 1.6; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--radius-sm); font-size: .875rem; text-decoration: none;
}
/* only for keyboard users: a mouse click or a restored focus never shows it */
.skip-link:focus-visible { top: 12px; }

/* static on the glass: a noise tile made by site.js, barely there */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: .03;
  background-image: var(--grain, none); background-size: 160px 160px;
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- type ---------- */

.display {
  font-size: clamp(2.125rem, 5.2vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 650;
  margin: 0; text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); display: flex; align-items: center;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(6, 7, 7, 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(var(--wrap) + 160px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 2.125rem; height: 2.125rem; flex: none; }
.brand-word { width: auto; height: 2.2rem; flex: none; }
/* on the home page the word only appears once the big signal has scrolled away */
.home .brand-word { opacity: 0; transform: translateX(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.home .site-header.is-solid .brand-word { opacity: 1; transform: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  position: relative; text-decoration: none; font-size: 0.875rem; font-weight: 500; color: var(--muted);
  padding: 8px 12px; border-radius: 999px; transition: color .25s, background-color .25s;
}
.nav > a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav > a.is-on, .nav > a[aria-current="page"] { color: var(--text); }
.nav > a[data-ch]::before {
  content: attr(data-ch); font-family: var(--font-mono); font-size: 0.625rem; color: var(--faint); margin-right: 7px;
  vertical-align: 1px; transition: color .25s;
}
.nav > a.is-on[data-ch]::before { color: var(--accent); }
.lang-switch {
  border: 1px solid var(--line-strong); color: var(--text) !important; font-family: var(--font-mono); font-size: 0.75rem !important;
  letter-spacing: .1em; margin-left: 6px;
}

.lang-menu { position: relative; margin-left: 6px; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .1em; color: var(--text); transition: border-color .2s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--text); }
.lang-menu summary svg { width: 14px; height: 14px; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 6px; list-style: none; min-width: 220px;
  background: rgba(16, 19, 19, .96); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.lang-menu li a {
  display: flex; justify-content: space-between; gap: 14px; padding: 8px 12px; border-radius: 10px;
  text-decoration: none; font-size: 0.875rem; color: var(--muted);
}
.lang-menu li a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.lang-menu li a[aria-current="true"] { color: var(--accent); }
.lang-menu .code { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--faint); }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(6, 7, 7, .5);
    cursor: pointer; padding: 0; color: var(--text);
  }
  .nav-toggle > span { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .nav-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-toggle > svg { width: 20px; height: 20px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px var(--gutter) 22px; background: rgba(6, 7, 7, .97); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav > a { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; padding: 12px 0; border-radius: 0; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav > a:hover { background: none; }
  .lang-menu, .lang-switch { margin: 16px 0 0; align-self: flex-start; }
  .lang-menu ul { left: 0; right: auto; top: auto; bottom: calc(100% + 8px); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 3rem; padding: 0 1.5rem;
  border-radius: 999px; border: 1px solid transparent; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, transform .2s var(--ease), box-shadow .3s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(37, 211, 196, 0); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 10px 40px -10px rgba(37, 211, 196, .6); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(6, 7, 7, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--text); }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { border-color: var(--line-strong); }
.btn .tag {
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted);
}
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- the tuner rail ---------- */

.tuner {
  position: fixed; right: 18px; top: 50%; z-index: 40; height: min(56vh, 460px); width: 120px; transform: translateY(-50%);
  pointer-events: none; opacity: 0; transition: opacity .6s var(--ease);
}
.tuner.is-on { opacity: 1; }
.tuner-scale {
  position: absolute; right: 0; top: 0; bottom: 0; width: 14px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 1px, transparent 1px 9px);
  -webkit-mask: linear-gradient(to left, #000 40%, transparent); mask: linear-gradient(to left, #000 40%, transparent);
}
.tuner-scale::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 22px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 1px, transparent 1px 45px);
}
.tuner-needle {
  position: absolute; right: 0; width: 30px; height: 1px; top: calc(var(--p, 0) * 100%); background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.tuner-needle span {
  position: absolute; right: 36px; top: -7px; font-family: var(--font-mono); font-size: 0.625rem; color: var(--accent); letter-spacing: .06em;
}
.tuner a {
  position: absolute; right: 30px; top: calc(var(--at) * 100%); transform: translateY(-50%); pointer-events: auto;
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--faint); white-space: nowrap; transition: color .3s, opacity .3s; opacity: 0;
}
.tuner:hover a, .tuner a.is-on { opacity: 1; }
.tuner a b { font-weight: 500; margin-right: 6px; }
.tuner a.is-on { color: var(--text); }
.tuner a.is-on b { color: var(--accent); }
@media (max-width: 1180px) { .tuner { display: none; } }

/* ---------- 00 · the signal ---------- */

.signal-hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; align-content: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 120px; overflow: hidden; isolation: isolate;
}
.signal-hero::before {   /* the glow the signal sits in */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 46%, rgba(37, 211, 196, .10), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, rgba(37, 211, 196, .05), transparent 60%);
  animation: breathe 7s ease-in-out infinite;
}
.signal-hero::after {    /* a faint oscilloscope grid */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%,
    linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 100% calc(100% / 8);
  -webkit-mask: radial-gradient(70% 60% at 50% 48%, #000 20%, transparent 75%);
  mask: radial-gradient(70% 60% at 50% 48%, #000 20%, transparent 75%);
}
@keyframes breathe { 50% { opacity: .65; transform: scale(1.04); } }

/* Fatih: the signal is the page's main thing: almost the whole width, only bounded by the height left for the two lines
   under it (the canvas is about 0.31 as tall as it is wide) */
.signal-stage { position: relative; width: min(94vw, calc((100svh - 15rem) / 0.31)); margin-top: -2vh; }
.signal-hero > .signal-stage, .signal-hero > .hero-copy { max-width: 100%; }
.hero-copy { width: 100%; }
.signal-stage canvas { display: block; width: 100%; touch-action: pan-y; cursor: crosshair; }
#signal-bars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.no-js #signal-bars { position: static; opacity: 1; }

.hud {
  position: absolute; inset: calc(var(--header-h) + 18px) var(--gutter) 28px; pointer-events: none;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.hud::before, .hud::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 1px solid var(--line-strong);
}
.hud::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.hud::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.hud > span { position: absolute; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hud-tl { left: 28px; top: 2px; } .hud-tr { right: 0; top: 2px; } .hud-bl { left: 0; bottom: 2px; } .hud-br { right: 28px; bottom: 2px; }
.hud .live { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: blink 1.6s steps(2) infinite; }
.hud .rec { width: 6px; height: 6px; border: 1px solid var(--faint); border-radius: 50%; }
[data-status] { color: var(--muted); transition: color .4s; }
[data-status].is-locked { color: var(--accent); }
[data-status]::before { content: ""; width: 24px; height: 1px; background: currentColor; display: inline-block; }
@keyframes blink { 50% { opacity: .25; } }

.hero-copy { text-align: center; margin-top: clamp(1.125rem, 3vh, 2.25rem); }
.claim {
  margin: 0; font-size: clamp(1.375rem, 2.9vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600;
  text-wrap: balance;
}
.claim-sub { margin: 12px 0 0; color: var(--muted); font-size: clamp(0.875rem, 1.2vw, 1.062rem); }
.js .hero-copy > * { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
.js .hero-copy.is-in > * { opacity: 1; transform: none; filter: none; }
.js .hero-copy.is-in > .claim-sub { transition-delay: .25s; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column;
  align-items: center; gap: 10px; text-decoration: none; color: var(--faint);
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) {
  .hud { inset: calc(var(--header-h) + 8px) 16px 18px; }
  .hud-br { display: none !important; }
  .signal-stage { width: 100%; }
  .signal-hero { padding-left: 12px; padding-right: 12px; }
}

/* ---------- chapters ---------- */

.chapter { position: relative; padding: clamp(6.875rem, 16vw, 12.5rem) 0 0; }
.chapter-tight { padding-top: clamp(5.625rem, 12vw, 10rem); }
#contact { padding-bottom: clamp(6.25rem, 12vw, 10rem); }

.channel {
  display: flex; align-items: center; gap: 14px; margin: 0 0 clamp(2.25rem, 5vw, 4rem);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.channel b { color: var(--accent); font-weight: 500; }
.channel i { font-style: normal; color: var(--faint); margin-left: auto; }
.channel span { position: relative; }
.channel::after {    /* a line of static between the label and the frequency */
  content: ""; order: 2; flex: 1; height: 7px; opacity: .55;
  background-image: var(--grain, none), linear-gradient(var(--line-strong), var(--line-strong));
  background-size: 120px 120px, 100% 1px; background-position: 0 0, 0 50%; background-repeat: repeat, no-repeat;
  -webkit-mask: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.channel i { order: 3; margin-left: 0; }
.channel.is-tuning span { animation: tune .6s steps(6) 1; }
@keyframes tune { 0% { opacity: .2; transform: translateX(-3px); filter: blur(2px); } 50% { opacity: 1; transform: translateX(2px); } 100% { opacity: 1; transform: none; filter: none; } }

.head { margin: 0 0 clamp(2.25rem, 5vw, 4rem); max-width: 53.75rem; }

/* the manifesto lights up word by word as it scrolls past */
.manifesto {
  margin: 0; max-width: min(77.5rem, 100%); font-size: clamp(1.75rem, 4.1vw, 4rem); line-height: 1.12; letter-spacing: -0.032em;
  font-weight: 600; text-wrap: pretty;
}
.manifesto .w { color: rgba(238, 243, 242, .14); transition: color .5s var(--ease); }
.manifesto .w.on { color: var(--text); }
.no-js .manifesto .w { color: var(--text); }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(5rem, 10vw, 8.125rem) 0 0;
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 28px 0 0; margin: 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat dt { margin: 0; }
.stat .num {
  display: block; font-size: clamp(4rem, 9vw, 8rem); line-height: .9; letter-spacing: -0.06em; font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text) 30%, rgba(238, 243, 242, .45)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat:last-child .num { background: linear-gradient(180deg, var(--accent-hover) 20%, rgba(37, 211, 196, .45)); -webkit-background-clip: text; background-clip: text; }
.stat dd { margin: 16px 0 0; color: var(--muted); font-size: 0.9375rem; max-width: 26ch; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- craft ---------- */

.craft { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.craft-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 14px 30px; transition: border-color .4s, transform .6s var(--ease);
}
.craft-card:hover { border-color: var(--line-strong); }
.craft-card h3 { margin: 26px 16px 10px; font-size: 1.375rem; letter-spacing: -0.02em; font-weight: 600; }
.craft-card p { margin: 0 16px; color: var(--muted); font-size: 0.9688rem; line-height: 1.6; }
.craft-vis {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #050606;
  border: 1px solid var(--line);
}
.craft-vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.craft-vis .legend {
  position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; gap: 12px; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 0.6562rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
}
.vis-feel .legend { justify-content: flex-start; }
.vis-feel .legend i { display: inline-block; width: 14px; height: 2px; margin: 0 2px 2px 6px; vertical-align: middle; }
.vis-feel .legend i.a { background: var(--faint); margin-left: 0; }
.vis-feel .legend i.b { background: var(--accent); }
.vis-perf .legend b { color: var(--accent); font-weight: 500; }
/* metallic paint: base coat, clear coat highlight that follows the pointer, flakes from the grain tile */
.vis-paint {
  --mx: 30%; --my: 30%; cursor: crosshair;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .85) 0, rgba(200, 255, 250, .35) 6%, transparent 22%),
    radial-gradient(ellipse 70% 55% at var(--mx) var(--my), rgba(90, 228, 216, .55), transparent 70%),
    linear-gradient(160deg, #0d4a45 0%, #062a27 45%, #021312 100%);
}
.vis-paint::before {
  content: ""; position: absolute; inset: 0; background-image: var(--grain, none); background-size: 64px 64px;
  mix-blend-mode: soft-light; opacity: .35;
}
.vis-paint::after {    /* a soft reflection band, like a body line catching the sky */
  content: ""; position: absolute; left: -10%; right: -10%; top: 58%; height: 18%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .10) 45%, rgba(255, 255, 255, .02) 55%, transparent);
  transform: rotate(-6deg);
}
.vis-paint .legend { z-index: 1; color: rgba(255, 255, 255, .55); }
@media (max-width: 980px) { .craft { grid-template-columns: 1fr; max-width: 35rem; } }

.principles { margin-top: clamp(5.625rem, 11vw, 9.375rem); }
.principles ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principles li {
  display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.principles .pnum { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); }
.principles h4 { margin: 0; font-size: clamp(1.375rem, 2.6vw, 2.125rem); letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; }
.principles p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .principles li { grid-template-columns: 40px 1fr; } .principles p { grid-column: 2; } }

/* ---------- 02 · the game ---------- */

/* the picture grows from a framed card to the full width as it scrolls in (--grow from site.js, 0..1) */
.cinema { --grow: 0; position: relative; }
.cinema-frame {
  /* the frame never changes size (a width that moved with the scroll re-laid the copy every frame: the logo shook,
     Fatih 3 Nov); it opens from a framed card to the full width by its clip alone */
  --edge: max(var(--gutter), (100% - var(--wrap)) / 2 + var(--gutter));
  position: relative; margin: 0; overflow: hidden; width: 100%;
  clip-path: inset(0 calc((1 - var(--grow)) * var(--edge)) round calc((1 - var(--grow)) * 28px));
  aspect-ratio: 16 / 8.2; min-height: 35rem; max-height: 92vh;
}
.cinema-frame picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - var(--grow) * .12)); will-change: transform; backface-visibility: hidden; }
.cinema-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 7, 7, .88) 0%, rgba(6, 7, 7, .55) 38%, transparent 70%),
              linear-gradient(0deg, rgba(6, 7, 7, .9) 0%, transparent 40%);
}
.cinema-copy {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  padding: 0 calc(var(--edge) + clamp(1.25rem, 3vw, 3rem)) clamp(2.25rem, 6vw, 5rem);
}
.cinema-copy h2 { margin: 0; }
.game-logo { width: min(32.5rem, 78vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.tagline { margin: 22px 0 0; font-size: clamp(1.375rem, 2.6vw, 2.125rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.tagline em { font-style: normal; color: var(--orange); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* before the reveal the first game has no name: TBA, set like a channel waiting for its signal */
.tba { margin: clamp(1rem, 3vw, 2.5rem) 0 clamp(4rem, 9vw, 7.5rem); }
.tba-title {
  margin: 0; font-size: clamp(5.5rem, 19vw, 14rem); line-height: .86; letter-spacing: -0.05em; font-weight: 750;
  background: repeating-linear-gradient(0deg, var(--text) 0 3px, rgba(238, 243, 242, .72) 3px 5px);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tba-sub { max-width: 34rem; margin: 22px 0 0; color: var(--muted); font-size: clamp(1.125rem, 1.6vw, 1.313rem); line-height: 1.5; }
@media (max-width: 700px) {
  .cinema-frame { aspect-ratio: auto; height: 88svh; min-height: 32.5rem; }
  .cinema-frame::after { background: linear-gradient(0deg, rgba(6, 7, 7, .95) 10%, rgba(6, 7, 7, .4) 55%, transparent 80%); }
}

.game-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(5rem, 10vw, 8.75rem) 0 clamp(4.375rem, 9vw, 7.5rem);
}
.game-intro p { margin: 0 0 18px; color: var(--muted); }
.game-intro .lede { color: var(--text); font-size: clamp(1.188rem, 1.6vw, 1.375rem); line-height: 1.5; letter-spacing: -0.015em; }
.platforms { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.platforms li {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 12px;
}
@media (max-width: 860px) { .game-intro { grid-template-columns: 1fr; } }

/* ---------- the inspection toy ---------- */

.insp {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(1.75rem, 4vw, 3.75rem); align-items: start;
  padding: clamp(1.75rem, 4vw, 3.5rem); margin-bottom: clamp(6.875rem, 14vw, 11.25rem);
  border: 1px solid var(--line); border-radius: 32px;
  background:
    radial-gradient(80% 90% at 85% 50%, rgba(37, 211, 196, .07), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
}
.insp-copy > p { color: var(--muted); margin: 18px 0 26px; }
.insp .display { font-size: clamp(1.875rem, 3.8vw, 3.125rem); }
.listing { background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.listing-top {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
}
.listing-car { color: var(--muted); }
.quote { margin: 14px 0 16px; font-size: 1.125rem; letter-spacing: -0.015em; min-height: 2.8em; transition: opacity .3s; }
.quote.is-swap { opacity: 0; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.prices span { display: block; font-size: 0.75rem; color: var(--faint); }
.prices b { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.prices .offer b { color: var(--accent); transition: color .3s; }
.evidence { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.evidence:empty { display: none; }
.evidence li {
  font-size: 0.7812rem; padding: 6px 10px; border-radius: 999px; background: rgba(226, 105, 43, .12); color: #f3a57d;
  border: 1px solid rgba(226, 105, 43, .35); animation: chip .5s var(--ease);
}
.evidence li b { font-weight: 600; margin-left: 6px; color: #ffc3a3; }
.done-line { margin: 14px 0 0; color: var(--text); font-size: 0.9375rem; }
@keyframes chip { from { opacity: 0; transform: translateY(6px) scale(.96); } }

.insp-tool { display: grid; gap: 16px; padding-top: clamp(0rem, 3vw, 2.5rem); }
.car { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.car .wheels rect { fill: #0a0c0c; stroke: var(--line-strong); }
.car .body { fill: url(#carbody); stroke: rgba(220, 255, 250, .28); stroke-width: 1.2; }
.car .bumper { fill: #1d2222; stroke: var(--line-strong); }
.car .glass { fill: rgba(37, 211, 196, .05); stroke: var(--line); }
.car .axes text { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .16em; text-transform: uppercase; fill: var(--faint); }
.car .panel {
  fill: rgba(255, 255, 255, .04); stroke: rgba(220, 255, 250, .34); stroke-width: 1; cursor: crosshair; outline: none;
  transition: fill .35s var(--ease), stroke .35s var(--ease);
}
.car .panel:hover, .car .panel:focus-visible, .car .panel.is-active { fill: rgba(255, 255, 255, .08); stroke: var(--text); }
.car .panel.st-orig { fill: rgba(37, 211, 196, .16); stroke: rgba(37, 211, 196, .7); }
.car .panel.st-paint { fill: rgba(226, 105, 43, .28); stroke: var(--orange); }
.car .panel.st-filler { fill: rgba(255, 70, 40, .38); stroke: #ff6a3d; }
.car .panel.st-paint, .car .panel.st-filler { animation: flag .8s var(--ease); }
@keyframes flag { 0% { stroke-width: 6; } 100% { stroke-width: 1; } }
.car .probe { fill: none; stroke: var(--accent); stroke-width: 1.5; pointer-events: none; opacity: 0; transition: opacity .2s; }
.car .probe.is-on { opacity: 1; }

.gauge {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; align-items: stretch;
  background: #050606; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px;
}
.gauge-screen { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gauge-name { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gauge-val { display: flex; align-items: baseline; gap: 6px; }
.gauge-val b { font-family: var(--font-mono); font-size: 2.75rem; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge-val b.is-idle { color: #1c2222; }
.gauge-val small { font-family: var(--font-mono); color: var(--faint); font-size: 0.8125rem; }
.gauge-state { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; min-height: 1.4em; color: var(--faint); }
.gauge-state.st-orig { color: var(--accent); }
.gauge-state.st-paint { color: var(--orange); }
.gauge-state.st-filler { color: #ff6a3d; }
.gauge-trace { width: 100%; height: 86px; align-self: center; }
.gauge-foot {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px;
  border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.6875rem; color: var(--faint); letter-spacing: .06em;
}
@media (max-width: 980px) { .insp { grid-template-columns: 1fr; } .insp-tool { order: -1; } }
@media (max-width: 520px) { .gauge { grid-template-columns: 1fr; } .gauge-val b { font-size: 2.375rem; } .insp { padding: 18px; border-radius: 24px; } }

/* ---------- story ---------- */

.story { display: grid; gap: clamp(4.375rem, 9vw, 7.5rem); }
.story-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.story-row:nth-child(even) .shot { order: 2; }
.shot {
  display: block; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  background: var(--surface); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.snum { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: .1em; }
.story-text h4 { margin: 12px 0 14px; font-size: clamp(1.625rem, 3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.05; font-weight: 600; }
.story-text p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .story-row { grid-template-columns: 1fr; } .story-row:nth-child(even) .shot { order: 0; } }

.pillars { margin: clamp(6.25rem, 12vw, 10rem) 0 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 26px 24px 0 0; }
.pillar + .pillar { padding-left: 24px; border-left: 1px solid var(--line); }
.pillar h4 { margin: 0 0 10px; font-size: 1.188rem; letter-spacing: -0.02em; font-weight: 600; }
.pillar p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 980px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 20px 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- 03 · newsletter ---------- */

.signup {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 6vw, 5.625rem);
  align-items: end; padding: clamp(6.875rem, 12vw, 10.62rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line); border-radius: 32px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 0%, rgba(37, 211, 196, .08), transparent 70%), var(--bg-2);
}
.scope { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: clamp(6.25rem, 12vw, 10rem); }
.signup-copy p { color: var(--muted); margin: 20px 0 0; max-width: 46ch; }
.field-row {
  display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(0, 0, 0, .45); border: 1px solid var(--line-strong);
  transition: border-color .3s, box-shadow .3s;
}
.field-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 211, 196, .12); }
.field-row input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; font-size: 1rem;
  padding: 0 16px;
}
.field-row input::placeholder { color: var(--faint); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: 0.7812rem; line-height: 1.5; color: var(--faint); cursor: pointer; }
.consent input { margin: 2px 0 0; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--muted); }
.form-status { min-height: 1.4em; margin: 12px 0 0; font-size: 0.875rem; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--err); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .signup { grid-template-columns: 1fr; } }
@media (max-width: 460px) {
  .field-row { flex-direction: column; border-radius: 22px; }
  .field-row input { min-height: 48px; }
}

/* ---------- 04 · contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.75rem, 6vw, 5.625rem); align-items: start; }
.contact p { color: var(--muted); margin: 20px 0 0; max-width: 36ch; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lines a {
  position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) 24px; gap: 4px 20px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; overflow: hidden;
}
.lines .l-label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); grid-row: span 2; transition: color .3s; }
.lines .l-addr { font-size: clamp(1.125rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; font-weight: 500; overflow-wrap: anywhere; transition: color .3s; }
.lines .l-desc { font-size: 0.875rem; color: var(--muted); grid-column: 2; }
.lines i {
  grid-column: 3; grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
  background: no-repeat center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23eef3f2' stroke-width='1.4'%3E%3Cpath d='M2 8L8 2M3.5 2H8v4.5'/%3E%3C/svg%3E");
}
.lines a::after {    /* a sweep of signal across the row on hover */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.lines a:hover::after { transform: scaleX(1); }
.lines a:hover .l-addr, .lines a:hover .l-label { color: var(--accent); }
.lines a:hover i { background-color: var(--accent); border-color: var(--accent); transform: rotate(45deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23022624' stroke-width='1.4'%3E%3Cpath d='M2 8L8 2M3.5 2H8v4.5'/%3E%3C/svg%3E"); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .lines a { grid-template-columns: minmax(0, 1fr) 24px; } .lines .l-label { grid-row: auto; } .lines .l-desc { grid-column: 1; } .lines i { grid-column: 2; grid-row: 1 / span 3; } }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: clamp(3.125rem, 7vw, 5.625rem) 0 36px; color: var(--muted); font-size: 0.875rem; }
.footer-word { width: 100%; max-width: 69rem; height: auto; margin: 0 auto clamp(2.5rem, 6vw, 4.375rem); opacity: .72; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .wrap { display: block; }
.footer-logo { display: block; }
.footer-logo img { width: 200px; height: auto; display: block; }
.site-footer:not(:has(.footer-row)) .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }

/* ---------- lightbox ---------- */

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(100rem, 96vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(3, 4, 4, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox img { max-height: 90vh; width: auto; border-radius: 14px; }
.lightbox-close {
  position: absolute; right: -6px; top: -50px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(16, 19, 19, .9); color: var(--text); font-size: 1.375rem; line-height: 1; cursor: pointer;
}

/* ---------- reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- hand-written pages: /press/, /privacy/, 404 ---------- */

.page { padding: calc(var(--header-h) + clamp(3rem, 7vw, 6.25rem)) 0 clamp(4rem, 8vw, 7.5rem); }
.page .wrap { max-width: 53.75rem; }
.page h1 { margin: 14px 0 12px; font-weight: 650; letter-spacing: -0.035em; font-size: clamp(2.375rem, 5.6vw, 4rem); line-height: 1.04; }
.page .updated { color: var(--muted); font-size: 0.875rem; margin: 0 0 40px; }
.prose h2 { font-weight: 600; letter-spacing: -0.02em; font-size: 1.625rem; margin: 48px 0 12px; }
.prose p, .prose li { color: #c3cbca; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--text); text-decoration-color: rgba(238, 243, 242, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--text); }
.facts { display: grid; grid-template-columns: 200px 1fr; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); font-family: var(--font-mono); font-size: 0.7188rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 17px; }
.facts dd { color: var(--text); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shots a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.shots img { aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: opacity .2s; }
.shots a:hover img { opacity: .85; }
.notfound { min-height: 80svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; }
.notfound h1 { font-family: var(--font-mono); font-weight: 500; font-size: clamp(5rem, 16vw, 11.25rem); margin: 0; line-height: 1; color: var(--accent); letter-spacing: -0.04em; }
.notfound p { color: var(--muted); margin: 10px 0 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .hero-copy > * { opacity: 1; transform: none; filter: none; }
  .manifesto .w { color: var(--text); }
}


/* ---------- craft: the paint shader stage ---------- */

.paint-stage {
  position: relative; margin: 0; aspect-ratio: 21 / 9; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); background: #050606; box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .9);
}
.paint-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.paint-fallback { position: absolute; inset: 0; display: none;
  background: radial-gradient(60% 40% at 40% 35%, rgba(90, 228, 216, .5), transparent 70%), linear-gradient(170deg, #0d4a45, #021312); }
.paint-stage.no-gl .paint-fallback { display: block; }
.paint-stage.no-gl .paint-hud { display: none; }
.paint-hud {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(238, 243, 242, .75);
  background: linear-gradient(0deg, rgba(0, 0, 0, .55), transparent);
}
.paint-hud .layers { display: inline-flex; gap: 6px; }
.paint-hud .layers button {
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: rgba(238, 243, 242, .8); cursor: pointer;
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(238, 243, 242, .22); background: rgba(6, 7, 7, .45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .3s, color .3s, border-color .3s;
}
.paint-hud .layers button:hover { border-color: rgba(238, 243, 242, .6); }
.paint-hud .layers button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.paint-hud span { display: inline-flex; align-items: center; gap: 8px; }
.paint-hud .live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.paint-hud b { color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .paint-stage { aspect-ratio: 4 / 5; border-radius: 20px; } .paint-hint, .paint-hud > span:first-child { display: none !important; } .paint-hud { justify-content: center; } }

.craft-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.craft-cols h3 { margin: 12px 0 12px; font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.025em; font-weight: 600; }
.craft-cols p { margin: 0; color: var(--muted); font-size: 0.9688rem; }
.perf-strip { position: relative; height: 70px; margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.perf-strip canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.perf-live { margin-top: 10px !important; font-family: var(--font-mono); font-size: 0.7188rem !important; letter-spacing: .04em; }
.perf-live b { color: var(--accent); font-weight: 500; }
@media (max-width: 860px) { .craft-cols { grid-template-columns: 1fr; } }

/* ---------- Körfezkent ---------- */

.korfez { position: relative; margin: 0 0 clamp(5.625rem, 11vw, 9.375rem); }
.korfez-reel { position: relative; height: 420vh; }
.korfez-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.korfez-poster, .korfez-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.korfez-poster { transition: opacity .4s; }
.korfez-sticky::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(6, 7, 7, .45) 22%, transparent 45%), linear-gradient(180deg, rgba(6, 7, 7, .7) 0%, transparent 22%); }
.korfez-hello { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(3rem, 9vh, 6.875rem); padding: 0 max(var(--gutter), (100% - var(--wrap)) / 2 + var(--gutter));
  opacity: var(--hello, 1); transform: translateY(calc((1 - var(--hello, 1)) * 24px)); }
.korfez-hello .display { font-size: clamp(2.5rem, 7vw, 6.5rem); text-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
/* Fatih: on the dark land right of the middle, under the horizon of the first frame */
@media (min-width: 861px) {
  .korfez-hello { left: 57%; right: auto; top: 50%; bottom: auto; padding: 0; width: min(40vw, 640px); }
  .korfez-hello .display { font-size: clamp(2.5rem, 4.8vw, 5.5rem); }
}
/* the day as a line along the top: 04:00 at one end, 14:00 at the other, the hour riding on it (--t from site.js) */
.korfez-time {
  --t: 0; position: absolute; z-index: 1; top: calc(var(--header-h) + 28px); left: 50%; transform: translateX(-50%);
  width: min(45rem, calc(100% - 2 * var(--gutter))); display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .08em; color: rgba(238, 243, 242, .7); font-variant-numeric: tabular-nums;
}
.kt-track { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(238, 243, 242, .18); }
.kt-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--t) * 100%); border-radius: 2px;
  background: linear-gradient(90deg, #2a3a66, var(--orange) 45%, #ffd27a); }
.kt-knob { position: absolute; top: 50%; left: calc(var(--t) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--text); box-shadow: 0 0 0 4px rgba(6, 7, 7, .45), 0 0 14px rgba(255, 210, 122, .6); }
.kt-knob span { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); padding: 5px 10px; border-radius: 999px;
  background: rgba(6, 7, 7, .55); border: 1px solid rgba(238, 243, 242, .16); color: var(--text); font-weight: 500; white-space: nowrap;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.korfez-time { top: calc(var(--header-h) + 52px); }
.korfez-copy { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 6vw, 6rem); margin-top: clamp(2.5rem, 6vw, 5rem); }
.korfez-copy p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .korfez-copy { grid-template-columns: 1fr; } .korfez-reel { height: 360vh; } }
@media (prefers-reduced-motion: reduce) { .korfez-reel { height: auto; } .korfez-sticky { position: relative; height: 70vh; } }

/* ---------- the game's paper inspection report ---------- */

.insp-tool { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.paper {
  position: relative; padding: 16px 18px 14px; border-radius: 18px; color: var(--muted);
  background: #050606; border: 1px solid var(--line);
}
.paper-head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.diagram { position: relative; aspect-ratio: 304 / 444; margin: 10px auto 0; max-width: 18.75rem; touch-action: pan-y; }
.diagram .part, .diagram .panel { position: absolute; display: block; }
.diagram .part { width: 100%; height: 100%; pointer-events: none; }
/* the game's sprites are white panels with dark ink: inverted they sit on the dark card as dark panels with light lines */
.diagram img { filter: invert(1) brightness(1.15) contrast(1.6); opacity: .85; }
.diagram .panel { padding: 0; border: 0; background: none; cursor: crosshair; }
.diagram .panel img { width: 100%; height: 100%; display: block; pointer-events: none; }
.diagram .panel::after {      /* the panel's state, laid over its face through the sprite's own shape */
  content: ""; position: absolute; inset: 0; background: rgba(238, 243, 242, .07); transition: background-color .4s var(--ease);
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat;
}
.diagram .panel:hover::after, .diagram .panel:focus-visible::after, .diagram .panel.is-active::after { background: rgba(238, 243, 242, .14); }
.diagram .panel.st-orig::after { background: rgba(37, 211, 196, .38); }
.diagram .panel.st-paint::after { background: rgba(226, 105, 43, .62); }
.diagram .panel.st-filler::after { background: rgba(255, 90, 55, .78); }
.diagram .panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.diagram .probe { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1.5px solid var(--accent); border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity .2s; box-shadow: 0 0 14px rgba(37, 211, 196, .5); }
.diagram .probe.is-on { opacity: .9; }
.paper-key { list-style: none; display: flex; gap: 14px; justify-content: center; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.6562rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.paper-key li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: 0; }
.paper-key .k-orig::before { background: var(--accent); } .paper-key .k-paint::before { background: var(--orange); } .paper-key .k-filler::before { background: #ff5a37; }
.insp-tool .gauge { grid-template-columns: 1fr; align-self: center; }
.insp-tool .gauge-trace { height: 90px; }
@media (max-width: 1100px) { .insp-tool { grid-template-columns: 1fr; } .paper { max-width: 23.75rem; width: 100%; margin: 0 auto; } }

.lede-muted { color: var(--muted); font-size: clamp(1.062rem, 1.4vw, 1.25rem); margin: 20px 0 0; max-width: 60ch; }
.pillars .head { margin-bottom: clamp(1.875rem, 4vw, 3rem); }

/* craft: three texts in a row; under them two cards of one height, the ball under feel and rendering, the frame
   graph under performance */
.craft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3.5rem); row-gap: clamp(1.75rem, 3.5vw, 2.75rem); }
.craft-grid h3 { margin: 12px 0 12px; font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.025em; font-weight: 600; }
.craft-grid p { margin: 0; color: var(--muted); font-size: 0.9688rem; }
.craft-grid .c-feel { grid-column: 1; grid-row: 1; }
.craft-grid .c-render { grid-column: 2; grid-row: 1; }
.craft-grid .c-perf { grid-column: 3; grid-row: 1; }
.craft-grid .c-ball { grid-column: 1 / span 2; grid-row: 2; aspect-ratio: auto; height: clamp(20rem, 30vw, 26.25rem); }
.craft-grid .c-perfcard { grid-column: 3; grid-row: 2; height: clamp(20rem, 30vw, 26.25rem); }
.perf-card {
  margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px; border-radius: 28px;
  border: 1px solid var(--line); background: #050606; box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .9);
}
.perf-card .perf-strip { flex: 1; height: auto; margin: 0; border: 0; }
.perf-card .perf-live { margin: 0 !important; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.7188rem; letter-spacing: .04em; color: var(--muted); }
@media (max-width: 900px) {
  .craft-grid { grid-template-columns: 1fr; }
  .craft-grid .c-feel, .craft-grid .c-render, .craft-grid .c-perf, .craft-grid .c-ball, .craft-grid .c-perfcard { grid-column: 1; grid-row: auto; }
  .craft-grid .c-ball { height: auto; aspect-ratio: 4 / 3; }
  .craft-grid .c-perfcard { height: 220px; }
}

/* the ball's paint colours */
.paint-hud .paints { display: inline-flex; gap: 0.5rem; align-items: center; }
.paint-hud .paints button {
  width: 1.375rem; height: 1.375rem; padding: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), transparent 45%), var(--c);
  border: 1px solid rgba(238, 243, 242, .3); transition: transform .2s var(--ease), box-shadow .2s;
}
.paint-hud .paints button:hover { transform: scale(1.12); }
.paint-hud .paints button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
@media (max-width: 700px) { .paint-hud { flex-wrap: wrap; gap: 10px; } .paint-hud .paints { width: 100%; justify-content: center; } }

/* Fatih: at first only the header and the signal; once the word is readable the claim comes, then the corners, then
   the scroll cue rises from below */
.js .signal-hero .hud > span, .js .signal-hero .hud::before, .js .signal-hero .hud::after { opacity: 0; transition: opacity 1s var(--ease) .5s; }
.js .signal-hero .scroll-cue { opacity: 0; transform: translate(-50%, 1.5rem); transition: opacity 1s var(--ease) 1s, transform 1.2s var(--ease) 1s; }
.js .signal-hero.is-locked .hud > span, .js .signal-hero.is-locked .hud::before, .js .signal-hero.is-locked .hud::after { opacity: 1; }
.js .signal-hero.is-locked .scroll-cue { opacity: 1; transform: translate(-50%, 0); }
