/* ==========================================================
   EXBYTE STUDIOS — main stylesheet
   Brutalist editorial × cinematic dark game-pub aesthetic
   ========================================================== */

/* ---------- THEME TRANSITION ---------- */
/* The base colors swap instantly behind the radial sweep overlay, so we only
   transition the root (1 element) — NOT every node. Transitioning `*` caused
   thousands of simultaneous repaints (the "20fps" jank). */
html {
  transition: background-color 0.45s ease, color 0.45s ease;
}

/* Radial sweep overlay — animated with transform (compositor-only) for 60fps. */
.theme-sweep {
  position: fixed;
  left: var(--sweep-x, 50%);
  top: var(--sweep-y, 50%);
  width: 0; height: 0;
  pointer-events: none;
  z-index: 99999;
}
.theme-sweep::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 300vmax; height: 300vmax;
  margin-left: -150vmax; margin-top: -150vmax;
  border-radius: 50%;
  background: var(--sweep-color, #f3efe7);
  transform: scale(0);
  will-change: transform, opacity;
  animation: theme-sweep 0.72s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes theme-sweep {
  0%   { transform: scale(0); opacity: 1; }
  55%  { transform: scale(1); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* ---------- LANGUAGE SWITCH ANIMATION ---------- */
.lang-flip {
  animation: lang-flip 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes lang-flip {
  0% { opacity: 1; filter: blur(0); transform: translateY(0); }
  35% { opacity: 0; filter: blur(6px); transform: translateY(-6px); }
  65% { opacity: 0; filter: blur(6px); transform: translateY(6px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Stagger for grid children */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.47s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.54s; }
.stagger.in > * { opacity: 1 !important; transform: translateY(0) !important; }
.stagger > * { /* fallback if not yet revealed */ }
.stagger.in > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
  .theme-sweep { display: none; }
  .lang-flip { animation: none; }
  html.theme-transitioning * { transition: none !important; }
}

/* ---------- LOGO ---------- */
.logo-img {
  display: block;
  height: auto;
  max-height: 100%;
  filter: none;
  transition: filter 0.5s ease;
}
html[data-theme="dark"] .logo-img,
[data-theme="dark"] .logo-img,
[data-theme="dark"] img.logo-img {
  filter: invert(1) brightness(1.1) !important;
}
.logo-mark {
  display: inline-block;
  background-image: url("exbyte-logo.png");
  background-repeat: no-repeat;
  background-size: 357% 100%;
  background-position: left center;
  filter: none;
  transition: filter 0.5s ease;
}
[data-theme="dark"] .logo-mark { filter: invert(1) brightness(1.1) !important; }

.foot-brand .logo-img { height: 64px; }
.nav .brand .logo-img { height: 42px; }

@media (max-width: 768px) {
  .nav .brand .logo-img { height: 32px; }
  .foot-brand .logo-img { height: 48px; }
}

/* ---------- PAGE TRANSITION WIPE ---------- */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--accent);
  transform: translateX(-100%);
  will-change: transform;
}
.page-wipe.active {
  animation: page-wipe-anim var(--wipe-duration, 900ms) cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
@keyframes page-wipe-anim {
  0%   { transform: translateX(-100%); }
  45%  { transform: translateX(0%); }
  55%  { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}
.page-wipe-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-left: clamp(28px, 7vw, 90px);
  color: #0a0a0c;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-20px);
}
.page-wipe.active .page-wipe-inner {
  animation: page-wipe-text var(--wipe-duration, 900ms) cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
@keyframes page-wipe-text {
  0%   { opacity: 0; transform: translateX(-20px); }
  35%  { opacity: 1; transform: translateX(0); }
  60%  { opacity: 1; transform: translateX(0); }
  85%  { opacity: 0; transform: translateX(20px); }
  100% { opacity: 0; transform: translateX(20px); }
}
.page-wipe-label {
  font-size: clamp(28px, 5vw, 56px);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1;
}
.page-wipe-meta {
  font-size: 11px;
  opacity: 0.6;
}
.page-wipe-bars {
  display: flex; gap: 4px; margin-top: 6px;
}
.page-wipe-bars span {
  width: 22px; height: 4px; background: #0a0a0c; opacity: 0.4;
}
.page-wipe-bars span:nth-child(2) { opacity: 0.65; }
.page-wipe-bars span:nth-child(3) { opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  .page-wipe.active { animation: none; transform: translateX(-100%); }
  .page-wipe.active .page-wipe-inner { animation: none; opacity: 0; }
}

/* ---------- TOKENS ---------- */
:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --bg-3: #18181c;
  --line: #2a2a30;
  --line-soft: #1d1d22;
  --fg: #f3efe7;
  --fg-2: #aaa6a0;
  --fg-3: #6e6a64;
  --accent: #ff5b3a;
  --accent-2: #ffd66b;
  --accent-rgb: 255, 91, 58;
  --paper: #f3efe7;

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1480px;
  --pad-x: clamp(20px, 4vw, 64px);
  --section-gap: clamp(80px, 10vw, 140px);

  --radius-s: 2px;
  --radius-m: 4px;
}

[data-theme="light"] {
  --bg: #f3efe7;
  --bg-2: #ebe6dc;
  --bg-3: #e0dbd0;
  --line: #c8c2b3;
  --line-soft: #d8d3c5;
  --fg: #14140e;
  --fg-2: #4a4842;
  --fg-3: #837f74;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
img, svg { display: block; }
ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--accent); color: #0a0a0c; }

/* Subtle global film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 9999;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- LAYOUT WRAPPER ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- TICKER ---------- */
.ticker {
  position: sticky; top: 0; z-index: 60;
  background: var(--accent);
  color: #0a0a0c;
  border-bottom: 1px solid #00000022;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  height: 28px;
  display: flex; align-items: center;
}
.ticker-track {
  display: flex; gap: 48px;
  animation: ticker-scroll 60s linear infinite;
  white-space: nowrap;
  padding-left: 48px;
}
.ticker-item { display: inline-flex; align-items: center; gap: 10px; }
.ticker-dot { font-size: 8px; }
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 28px; z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 16px var(--pad-x);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.brand-suf { color: var(--fg-3); font-weight: 500; }
.nav-links { display: flex; gap: 28px; justify-content: center; }
.nav-links a { color: var(--fg-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-controls { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: inline-flex; gap: 4px; color: var(--fg-3); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; }
.lang-toggle .on { color: var(--fg); }
.lang-toggle .sep { opacity: 0.4; }
.theme-toggle {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.cta-pub {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: #0a0a0c;
  border: 1px solid var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: transform 0.15s;
}
.cta-pub:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--fg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 8vw, 110px) var(--pad-x) clamp(60px, 7vw, 100px);
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  overflow: hidden;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
  animation: grid-breathe 7s ease-in-out infinite;
}
/* The actual grid lines live on a slightly oversized child so we can drift it
   with transform (GPU) and loop seamlessly over exactly one 80px tile. */
.hero-grid::before {
  content: "";
  position: absolute;
  inset: -82px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  will-change: transform;
  animation: grid-drift 9s linear infinite;
}
@keyframes grid-drift {
  to { transform: translate(80px, 80px); }
}
@keyframes grid-breathe {
  0%, 100% { opacity: 0.38; }
  50%      { opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grid, .hero-grid::before { animation: none; }
}
.hero-meta-tl, .hero-meta-tr {
  position: absolute; top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--fg-3);
}
.hero-meta-tl { left: var(--pad-x); }
.hero-meta-tr { right: var(--pad-x); text-align: right; }
.meta-row { display: flex; gap: 12px; }
.hero-meta-tr .meta-row { justify-content: flex-end; }
.meta-k { color: var(--fg-3); }
.meta-v { color: var(--fg); }
.hero-h1 {
  position: relative;
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.hero-line { display: flex; align-items: baseline; gap: 24px; }
.hero-line:nth-child(2) { padding-left: clamp(40px, 8vw, 120px); }
.hero-line:nth-child(3) { color: var(--accent); }
.hero-line-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  width: 20px;
  flex-shrink: 0;
}
.hero-line-text { display: inline-block; }
.hero-sub {
  position: relative;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 40px;
}
.hero-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 24px; right: var(--pad-x);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}
.hero-scroll-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--fg-3), transparent);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--fg);
  transition: all 0.15s;
  cursor: pointer;
}
.btn-lg { padding: 18px 32px; font-size: 14px; }
.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- SECTION HEADER ---------- */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: end;
  padding: 64px 0 48px;
  border-top: 1px solid var(--line-soft);
}
.sec-head-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.sec-idx { color: var(--accent); font-weight: 600; }
.sec-divider { width: 32px; height: 1px; background: var(--line); }
.sec-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  grid-column: 1 / -1;
}
.sec-kicker {
  margin: 12px 0 0;
  max-width: 60ch;
  color: var(--fg-2);
  font-size: 16px;
  grid-column: 1 / -1;
}

/* ---------- COVER (placeholder game/news art) ---------- */
.cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-3);
}
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-scan {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.18) 2px, rgba(0,0,0,0.18) 3px);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.cover-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.cover-caption {
  position: absolute; left: 16px; bottom: 14px;
  display: flex; gap: 10px; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.cover-code { font-weight: 600; }
.cover-corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: rgba(255,255,255,0.55);
  border-style: solid;
  border-width: 0;
}
.cover-corner-tl { top: 8px; left: 8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.cover-corner-tr { top: 8px; right: 8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.cover-corner-bl { bottom: 8px; left: 8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cover-corner-br { bottom: 8px; right: 8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

/* ---------- TAG ---------- */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.tag-sm { font-size: 10px; padding: 3px 8px; }

/* ---------- FEATURED GAME ---------- */
.featured {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.featured-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 32px 0 var(--section-gap);
  align-items: stretch;
}
.featured-art {
  position: relative;
  border: 1px solid var(--line);
}
.featured-status {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.featured-info {
  display: flex; flex-direction: column;
  gap: 18px;
  padding: 8px 0;
}
.featured-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.featured-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.featured-tagline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-wrap: pretty;
}
.featured-desc {
  margin: 0;
  color: var(--fg-2);
  font-size: 16px;
  text-wrap: pretty;
}
.featured-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.metric-lab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.featured-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }

/* ---------- PORTFOLIO ---------- */
.portfolio {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--section-gap);
}
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 24px 0;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.filter-label { color: var(--fg-3); margin-right: 8px; }
.filter-chip {
  padding: 6px 14px;
  border: 1px solid var(--line);
  color: var(--fg-2);
  transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--fg); color: var(--fg); }
.filter-chip.on { border-color: var(--accent); color: var(--accent); }
.port-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.port-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform 0.2s, border-color 0.2s;
}
.port-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.port-card-num {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  letter-spacing: 0.08em;
}
.port-card-body {
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 12px;
}
.port-card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.port-card-tag { font-weight: 600; }
.port-card-year { color: var(--fg-3); }
.port-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.port-card-desc {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.port-card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.port-card-meta b { display: block; color: var(--fg-3); margin-bottom: 4px; font-weight: 500; }
.port-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- NEWS ---------- */
.news {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--section-gap);
}
.news-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding-top: 16px;
}
.news-featured {
  display: flex; flex-direction: column;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.news-cover { border: 1px solid var(--line); }
.news-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.news-tag {
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--fg-2);
}
.news-tag-feat { background: var(--accent); color: #0a0a0c; border-color: var(--accent); font-weight: 600; }
.news-date { color: var(--fg-3); }
.news-feat-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.news-feat-excerpt {
  margin: 0;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}
.news-foot {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.news-author { color: var(--fg-2); }
.news-read-more {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600;
}
.news-list { display: flex; flex-direction: column; gap: 24px; }
.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.news-item:last-child { border-bottom: none; }
.news-thumb { border: 1px solid var(--line); }
.news-item-body { display: flex; flex-direction: column; gap: 8px; }
.news-item-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.news-item-excerpt {
  margin: 0;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.5;
}
.news-more {
  display: flex; justify-content: center;
  padding-top: 32px;
}
/* Clickable news titles / thumbnails → article page */
.news-link { color: inherit; text-decoration: none; display: block; transition: color 0.15s, opacity 0.15s; }
h3 .news-link, h4 .news-link { display: inline; }
.news-feat-title .news-link:hover,
.news-item-title .news-link:hover { color: var(--accent); }
a.news-cover:hover, a.news-thumb:hover { opacity: 0.85; }

/* Steam banner inside the cover frame */
.cover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Clickable game cards / featured title → game detail page */
.port-card-clickable { transition: border-color 0.2s, transform 0.2s; }
.port-card-clickable:hover { transform: translateY(-3px); }
.port-card-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.game-title-link { color: inherit; text-decoration: none; transition: color 0.15s; }
.game-title-link:hover { color: var(--accent); }

/* ---------- CUSTOM VIDEO PLAYER ---------- */
.exb-player {
  position: relative; width: 100%; height: 100%;
  background: #000; overflow: hidden;
}
.exb-player video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.exb-player.is-playing video { cursor: default; }

/* Big center play button */
.exbp-big {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--accent) 92%, transparent); color: #0a0a0c;
  border: none; cursor: pointer; z-index: 3;
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  transition: transform 0.18s ease, opacity 0.2s ease;
}
.exbp-big:hover { transform: translate(-50%, -50%) scale(1.07); }
.exb-player.is-playing .exbp-big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.8); }

/* Control bar */
.exbp-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: var(--font-mono);
}
.exb-player:hover .exbp-bar,
.exb-player:not(.is-playing) .exbp-bar,
.exb-player:focus-within .exbp-bar { opacity: 1; transform: translateY(0); }

.exbp-btn {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: #fff; cursor: pointer;
  opacity: 0.9; transition: color 0.15s, opacity 0.15s;
}
.exbp-btn:hover { color: var(--accent); opacity: 1; }

.exbp-seek {
  position: relative; flex: 1; height: 16px; cursor: pointer;
  display: flex; align-items: center; touch-action: none;
}
.exbp-seek::before {
  content: ""; position: absolute; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.25);
}
.exbp-buf { position: absolute; left: 0; height: 3px; width: 0; background: rgba(255,255,255,0.4); }
.exbp-fill { position: absolute; left: 0; height: 3px; width: 0; background: var(--accent); }
.exbp-knob {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); opacity: 0; transition: opacity 0.15s;
}
.exbp-seek:hover .exbp-knob, .exb-player:hover .exbp-knob { opacity: 1; }

.exbp-time {
  font-size: 11px; letter-spacing: 0.04em; color: #fff;
  white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .exbp-big { width: 60px; height: 60px; }
  .exbp-time { display: none; }
}

/* ---------- GAME MEDIA CAROUSEL ---------- */
.game-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.gm-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.gm-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.gm-slide img, .gm-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.gm-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,12,0.6); color: var(--fg);
  border: 1px solid var(--line);
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 3;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.gm-arrow:hover { background: var(--accent); color: #0a0a0c; border-color: var(--accent); }
.gm-prev { left: 10px; }
.gm-next { right: 10px; }
.gm-dots {
  position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3;
  display: flex; gap: 7px; justify-content: center;
}
.gm-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none; cursor: pointer; padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.gm-dot:hover { transform: scale(1.25); }
.gm-dot.on { background: var(--accent); }
.gm-dot.is-video { border-radius: 2px; width: 14px; }
@media (max-width: 600px) {
  .gm-arrow { width: 32px; height: 32px; font-size: 18px; }
}

/* ---------- STUDIO ---------- */
.studio {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--section-gap);
}
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  padding-top: 16px;
}
.studio-text { font-size: 16px; color: var(--fg-2); display: flex; flex-direction: column; gap: 18px; }
.studio-lede { font-size: 22px; line-height: 1.4; color: var(--fg); text-wrap: balance; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.team-card {
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color 0.2s, transform 0.2s;
}
.team-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.team-avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-3), var(--bg));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.team-init {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: var(--fg);
  z-index: 1;
}
.team-avatar-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.15;
  mix-blend-mode: overlay;
}
.team-name { font-weight: 600; font-size: 14px; }
.team-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  text-transform: uppercase;
}

/* ---------- CAREERS ---------- */
.careers {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--section-gap);
}
.jobs-list { display: flex; flex-direction: column; padding-top: 16px; }
.job-row-wrap { border-top: 1px solid var(--line-soft); }
.job-row-wrap:last-child { border-bottom: 1px solid var(--line-soft); }
.job-row {
  display: grid;
  grid-template-columns: 50px 2fr 1fr 1.2fr 1fr 30px;
  align-items: center;
  gap: 16px;
  padding: 22px 16px;
  width: 100%;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, padding 0.15s, color 0.15s;
}
.job-row:hover { background: var(--bg-2); padding-left: 24px; color: var(--accent); }
.job-row-wrap.is-open .job-row { background: var(--bg-2); color: var(--accent); }
.job-num { color: var(--fg-3); font-size: 11px; }
.job-role { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); transition: color 0.15s; }
.job-row:hover .job-role,
.job-row-wrap.is-open .job-role { color: var(--accent); }
.job-dept, .job-loc, .job-type { color: var(--fg-2); text-transform: uppercase; font-size: 11px; }
.job-arrow { justify-self: end; color: var(--fg-3); }
.job-toggle { font-size: 22px; line-height: 1; font-weight: 300; }

.job-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  background: var(--bg-2);
}
.job-row-wrap.is-open .job-panel { grid-template-rows: 1fr; }
.job-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.job-row-wrap.is-open .job-panel-inner {
  padding: 8px 32px 32px;
  border-top: 1px dashed var(--line-soft);
}
.job-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.job-panel-meta b { display: inline; color: var(--fg-3); margin-right: 8px; font-weight: 500; }
.job-summary {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  text-wrap: pretty;
  max-width: 70ch;
}
.job-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
}
.job-col h5 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.job-col ul { display: flex; flex-direction: column; gap: 8px; }
.job-col li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
}
.job-col li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.job-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.job-mail-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

@media (max-width: 768px) {
  .job-row-wrap.is-open .job-panel-inner {
    padding: 8px 16px 24px;
  }
  .job-cols { grid-template-columns: 1fr; gap: 20px; }
  .job-summary { font-size: 14px; }
  .job-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .job-actions .btn { justify-content: center; }
  .job-mail-hint { text-align: center; }
}

/* ---------- PRESS ---------- */
.press {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--section-gap);
}
.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
}
.press-quote {
  position: relative;
  padding: 56px 24px 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  margin: 0;
  overflow: hidden;
}
.press-mark {
  position: absolute;
  top: 8px;
  left: 18px;
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 0.8;
  color: var(--accent);
  font-weight: 800;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.04em;
}
.press-quote p {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  text-wrap: pretty;
}
.press-outlet { position: relative; z-index: 1; }
.press-outlet {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.press-kit {
  margin-top: 32px;
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.kit-info h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.kit-info p { margin: 0; color: var(--fg-2); }
.kit-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- SUBMIT (publishing CTA) ---------- */
.submit {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--section-gap);
}
.submit-card {
  position: relative;
  padding: clamp(40px, 6vw, 80px);
  background: linear-gradient(135deg, #18181c 0%, #0a0a0c 100%);
  border: 1px solid var(--accent);
  overflow: hidden;
}
[data-theme="light"] .submit-card { background: linear-gradient(135deg, #14140e 0%, #0a0a0a 100%); color: var(--paper); }
.submit-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.submit-content {
  position: relative;
  max-width: 720px;
  display: flex; flex-direction: column;
  gap: 20px;
  color: var(--paper);
}
[data-theme="light"] .submit-content { color: var(--paper); }
.submit-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.submit-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.submit-title .hl { color: var(--accent); }
.submit-sub { margin: 0; font-size: 17px; color: rgba(243,239,231,0.75); max-width: 60ch; }
.submit-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.submit-list li { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }
.check { color: var(--accent); font-weight: 700; }
.submit-card .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0c;
  align-self: flex-start;
  margin-top: 8px;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px var(--pad-x) 24px;
}
.foot-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.foot-brand { display: flex; gap: 16px; align-items: center; }
.foot-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.foot-brand-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fg-3); text-transform: uppercase; margin-top: 4px; }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h5 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
}
.foot-col a { color: var(--fg-2); font-size: 14px; transition: color 0.15s; }
.foot-col a:hover { color: var(--accent); }
.foot-bot {
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .featured-card, .news-layout, .studio-grid { grid-template-columns: 1fr; }
  .port-grid, .press-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-top { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav { grid-template-columns: auto 1fr; gap: 16px; }
  .hero-meta-tl, .hero-meta-tr { display: none; }
  .job-row { grid-template-columns: 30px 1fr 1fr 30px; }
  .job-dept, .job-loc { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 768px) {
  :root {
    --pad-x: 18px;
    --section-gap: 70px;
  }
  body { font-size: 14px; }

  /* Ticker — smaller, faster */
  .ticker { height: 24px; font-size: 10px; }
  .ticker-track { animation-duration: 45s; gap: 32px; padding-left: 32px; }

  /* Nav — compact */
  .nav { padding: 12px 18px; top: 24px; }
  .nav .brand .logo-img { height: 22px; }
  .cta-pub { padding: 7px 12px; font-size: 10px; letter-spacing: 0.05em; }
  .lang-toggle { font-size: 11px; }
  .theme-toggle { width: 26px; height: 26px; font-size: 13px; }
  .nav-controls { gap: 10px; }

  /* Hero — tighter, smaller h1 */
  .hero {
    min-height: auto;
    padding: 56px 18px 64px;
  }
  .hero-h1 {
    font-size: clamp(40px, 11vw, 64px);
    line-height: 0.95;
    margin-bottom: 24px;
  }
  .hero-line { gap: 12px; }
  .hero-line:nth-child(2) { padding-left: 24px; }
  .hero-line-idx { font-size: 10px; width: 16px; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1; min-width: 140px; justify-content: center; }
  .hero-grid { background-size: 50px 50px; }
  .hero-scroll { display: none; }

  /* Section heads */
  .sec-head { padding: 40px 0 28px; }
  .sec-title { font-size: clamp(28px, 7vw, 44px); }
  .sec-kicker { font-size: 14px; }

  /* Featured card */
  .featured-card { gap: 24px; padding-bottom: var(--section-gap); }
  .featured-info { gap: 14px; }
  .featured-title { font-size: clamp(26px, 7vw, 36px); }
  .featured-tagline { font-size: 12px; }
  .featured-desc { font-size: 14px; }
  .featured-metrics { grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 14px 0; }
  .metric-val { font-size: 22px; }
  .metric-lab { font-size: 9px; }
  .featured-actions { flex-direction: column; align-items: stretch; }
  .featured-actions .btn { justify-content: center; }
  .featured-status { font-size: 9px; padding: 5px 9px; }

  /* Portfolio */
  .port-grid { grid-template-columns: 1fr; gap: 20px; }
  .port-card-body { padding: 18px; gap: 10px; }
  .port-card-title { font-size: 22px; }
  .port-card-desc { font-size: 13px; }
  .port-card-meta { grid-template-columns: 1fr 1fr 1fr; font-size: 9px; gap: 8px; padding: 12px 0; }
  .filter-bar { padding: 16px 0; gap: 6px; }
  .filter-chip { padding: 5px 10px; font-size: 10px; }

  /* News */
  .news-layout { gap: 32px; }
  .news-feat-title { font-size: clamp(22px, 5.5vw, 28px); }
  .news-feat-excerpt { font-size: 14px; }
  .news-item { grid-template-columns: 80px 1fr; gap: 14px; }
  .news-item-title { font-size: 15px; }
  .news-item-excerpt { font-size: 12px; }
  .news-meta { gap: 10px; font-size: 10px; }

  /* Studio */
  .studio-grid { gap: 36px; }
  .studio-lede { font-size: 18px; }
  .studio-text p { font-size: 14px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-card { padding: 14px; }
  .team-init { font-size: 28px; }
  .team-name { font-size: 13px; }
  .team-role { font-size: 9px; }

  /* Careers */
  .job-row {
    grid-template-columns: 1fr;
    padding: 16px 12px;
    gap: 6px;
    position: relative;
  }
  .job-row:hover { padding-left: 12px; }
  .job-num { position: absolute; top: 16px; right: 12px; }
  .job-arrow { display: none; }
  .job-role { font-size: 16px; }
  .job-dept, .job-loc, .job-type { display: inline; font-size: 10px; color: var(--fg-3); }
  .job-row > .job-dept::after { content: " · "; }
  .job-row > .job-loc::after { content: " · "; }

  /* Press */
  .press-grid { grid-template-columns: 1fr; gap: 20px; padding: 16px 0; }
  .press-quote { padding: 48px 20px 20px; }
  .press-quote p { font-size: 15px; }
  .press-mark { font-size: 72px; top: 6px; left: 14px; }
  .press-kit {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 18px;
  }
  .kit-info h3 { font-size: 18px; }
  .kit-info p { font-size: 14px; }
  .kit-actions { flex-direction: column; }
  .kit-actions .btn { justify-content: center; }

  /* Submit */
  .submit-card { padding: 32px 22px; }
  .submit-title { font-size: clamp(32px, 9vw, 48px); }
  .submit-sub { font-size: 14px; }
  .submit-list li { font-size: 12px; }

  /* Footer */
  .footer { padding: 40px 18px 24px; }
  .foot-top { gap: 28px; }
  .foot-links { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .foot-col h5 { font-size: 10px; }
  .foot-col a { font-size: 13px; }
  .foot-bot { flex-direction: column; gap: 6px; font-size: 10px; }

  /* Buttons */
  .btn { padding: 11px 16px; font-size: 11px; }
  .btn-lg { padding: 14px 22px; font-size: 12px; }

  /* Cover captions smaller */
  .cover-caption { font-size: 9px; left: 10px; bottom: 10px; }
  .cover-corner { width: 10px; height: 10px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .featured-metrics { grid-template-columns: 1fr 1fr; }
  .port-card-meta { grid-template-columns: 1fr 1fr; }
  .hero-line:nth-child(2) { padding-left: 12px; }
  .news-item { grid-template-columns: 64px 1fr; }
}
