*,
::after,
::before {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --surface: #111116;
  --surface-2: #17171f;
  --surface-3: #1e1e28;
  --ink: #f4f4f6;
  --ink-2: #b8b8c4;
  --muted: #7c7c8a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #fc8a4c;
  --accent-bright: #ffa876;
  --accent-soft: rgba(252, 138, 76, 0.14);
  --accent-glow: rgba(252, 138, 76, 0.28);
  --emerald: #34d399;
  --emerald-soft: rgba(52, 211, 153, 0.12);
  --maxw: 1200px;
  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 16px;
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  scrollbar-color: #353542 #0a0a0c;
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #0a0a0c;
  }
  ::-webkit-scrollbar-thumb {
    background: #353542;
    border-radius: 999px;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: #0a0a0c;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 12px;
}

.skip-link:focus {
  left: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------------- Header & Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 12, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 26px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding: 2px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang button {
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.lang button.is-active {
  background: var(--accent);
  color: #0a0a0c;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn-accent {
  background: var(--accent);
  color: #0a0a0c;
  box-shadow: 0 8px 24px rgba(252, 138, 76, 0.24);
}

.btn-accent:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(252, 138, 76, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.nav .btn-parent {
  margin-left: 8px;
  padding: 8px 15px;
  font-size: 0.86rem;
}

.nav-toggle {
  display: none;
  padding: 9px 11px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  cursor: pointer;
  line-height: 0;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

.nav-toggle[aria-expanded='true'] .icon-menu {
  display: none;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 82px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.canvas-toggle {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(17, 17, 22, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.canvas-toggle:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.canvas-toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero::before {
  content: '';
  position: absolute;
  top: -260px;
  left: 50%;
  width: min(1400px, 160vw);
  height: 760px;
  transform: translateX(-50%);
  background:
    radial-gradient(42% 56% at 28% 38%, rgba(252, 138, 76, 0.16), transparent 72%),
    radial-gradient(36% 52% at 74% 32%, rgba(102, 126, 234, 0.13), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 54px;
  align-items: center;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero h1 .serif {
  color: var(--accent);
  font-size: 1.06em;
}

.lede {
  max-width: 580px;
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  line-height: 1.65;
  color: var(--ink-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stat-val {
  display: block;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-stat-lbl {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-showcase {
  position: relative;
  padding: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.hero-showcase-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #14141b;
}

.hero-showcase-media img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.hero-showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 4px 6px 2px;
}

.hero-game-id {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-game-id img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
}

.hero-game-name {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-game-sub {
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(252, 138, 76, 0.34);
  color: var(--accent-bright);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------------- Manifesto / Craft Studio ---------------- */
.manifesto {
  position: relative;
  padding: 112px 0;
  background: radial-gradient(60% 110% at 88% 10%, rgba(252, 138, 76, 0.1), transparent 68%), var(--surface);
  border-bottom: 1px solid var(--line);
}

.manifesto-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.manifesto-inner .eyebrow {
  margin-bottom: 28px;
}

.manifesto p {
  margin-top: 30px;
  font-size: clamp(1.42rem, 3.1vw, 2.32rem);
  font-weight: 500;
  line-height: 1.26;
  letter-spacing: -0.03em;
  color: rgba(244, 244, 246, 0.88);
  text-wrap: pretty;
}

.manifesto p:first-of-type {
  margin-top: 0;
}

.manifesto strong {
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent 66%, rgba(252, 138, 76, 0.28) 66%);
  padding: 0 0.05em;
}

.manifesto .serif {
  color: var(--accent);
}

/* ---------------- Section Head ---------------- */
.section-head {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(1.95rem, 3.8vw, 2.9rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head h2 .serif {
  color: var(--accent);
  font-size: 1.05em;
}

.section-head p {
  margin-top: 18px;
  font-size: 1.06rem;
  color: var(--ink-2);
}

/* ---------------- Featured Release: Egg Beat ---------------- */
.featured-game {
  padding: 112px 0;
}

.game-shell {
  padding: 44px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.game-top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.game-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.game-icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.game-head h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  letter-spacing: -0.03em;
}

.game-tag {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.game-intro {
  margin-top: 22px;
  font-size: 1.04rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.game-points {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.game-points li {
  position: relative;
  padding-left: 24px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.game-points li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
}

.game-points strong {
  color: var(--ink);
  font-weight: 600;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.25s, border-color 0.25s, transform 0.25s, color 0.25s;
}

.pill svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: currentColor;
}

.pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0c;
  transform: translateY(-1px);
}

.pill--soon {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.03);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
  cursor: default;
}

.pill--soon:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ink-2);
  transform: none;
}

/* Interactive Media Stage (Screenshots + Video) */
.media-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 26px 24px;
  border-radius: var(--r-md);
  background:
    radial-gradient(85% 75% at 20% 10%, rgba(252, 138, 76, 0.14), transparent 72%),
    var(--surface-2);
  border: 1px solid var(--line);
}

.media-mode-bar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid var(--line-2);
}

.media-tab {
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.media-tab:hover {
  color: var(--ink);
}

.media-tab.is-active {
  background: var(--accent);
  color: #0a0a0c;
}

.phone-frame {
  position: relative;
  width: min(270px, 78%);
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #08080a;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.58);
}

.phone-shot {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.phone-shot[hidden],
.phone-video[hidden] {
  display: none;
}

.phone-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #08080a;
}

.zoom-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.zoom-chip svg {
  width: 13px;
  height: 13px;
}

.phone-shot:hover .zoom-chip,
.phone-shot:focus-visible .zoom-chip {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0c;
}

.media-caption {
  min-height: 2.2em;
  font-size: 0.86rem;
  text-align: center;
  color: var(--ink-2);
}

/* ---------------- 4 Musical Worlds Showcase ---------------- */
.worlds-block {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.worlds-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.worlds-header h4 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.world-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 310px;
  padding: 20px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  transition: transform 0.35s, border-color 0.35s;
}

.world-card:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 138, 76, 0.45);
}

.world-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: transform 0.55s, opacity 0.35s;
}

.world-card:hover .world-bg {
  transform: scale(1.04);
  opacity: 0.58;
}

.world-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.15) 0%, rgba(10, 10, 12, 0.86) 58%, rgba(10, 10, 12, 0.96) 100%);
  pointer-events: none;
}

.world-char {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55));
}

.world-content {
  position: relative;
  z-index: 1;
}

.world-genre {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.world-content h5 {
  margin: 5px 0 6px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.world-content p {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------------- Daily Doodle + Physics Strip ---------------- */
.doodle-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.doodle-card {
  padding: 22px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.doodle-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.doodle-card h5 {
  margin: 10px 0 8px;
  font-size: 1.06rem;
  font-weight: 600;
}

.doodle-card p {
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--ink-2);
}

/* ---------------- Pipeline: Next Logic & Adult Games ---------------- */
.pipeline {
  padding: 112px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.forge-lab {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 26px;
  padding: 28px 32px;
  background: radial-gradient(70% 100% at 15% 50%, rgba(252, 138, 76, 0.1), transparent 72%), var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
}

.forge-stage {
  position: relative;
  height: 290px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 50%, rgba(252, 138, 76, 0.08), rgba(10, 10, 12, 0.4) 70%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.forge-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.forge-canvas:active {
  cursor: grabbing;
}

.forge-copy h3 {
  margin-top: 12px;
  font-size: 1.48rem;
  letter-spacing: -0.025em;
}

.forge-copy p {
  margin-top: 12px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.forge-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.forge-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pipe-card {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: transform 0.3s, border-color 0.3s;
}

.pipe-card:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 138, 76, 0.42);
}

.pipe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pipe-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.pipe-state {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.pipe-state--active {
  background: var(--emerald-soft);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--emerald);
}

.pipe-card h3 {
  margin-top: 22px;
  font-size: 1.32rem;
  letter-spacing: -0.025em;
}

.pipe-card p {
  margin-top: 14px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.pipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.pipe-tags span {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
}

/* ---------------- Engineering / Craft Pillar ---------------- */
.craft-tech {
  padding: 104px 0;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.cap {
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.3s, border-color 0.3s;
}

.cap:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.cap-index {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.cap h3 {
  margin-top: 14px;
  font-size: 1.24rem;
}

.cap p {
  margin-top: 12px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------------- Contact ---------------- */
.contact {
  padding: 104px 0;
  border-top: 1px solid var(--line);
  background: radial-gradient(50% 90% at 50% 0%, rgba(252, 138, 76, 0.11), transparent 72%), var(--surface);
}

.contact-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.contact h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.contact h2 .serif {
  color: var(--accent);
  font-size: 1.05em;
}

.contact p {
  margin-top: 20px;
  font-size: 1.06rem;
  color: var(--ink-2);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* ---------------- Footer ---------------- */
footer {
  padding: 72px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  height: 24px;
  width: auto;
}

.footer-section h3 {
  font-size: 0.96rem;
  font-weight: 600;
}

.footer-section p {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer-section ul {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.footer-section a {
  font-size: 0.92rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  text-align: center;
  color: var(--muted);
}

.footer-bottom img {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin: 0 5px;
  border-radius: 4px;
}

/* ---------------- Native Modal Dialog Lightbox ---------------- */
dialog.lightbox-dialog {
  max-width: min(92vw, 980px);
  max-height: 92dvh;
  margin: auto;
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.72);
}

dialog.lightbox-dialog:modal {
  overscroll-behavior: contain;
}

dialog.lightbox-dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(6, 6, 9, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.lightbox-caption {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
}

.lightbox-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0c;
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

.lightbox-figure {
  margin: 0;
  display: grid;
  place-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 76dvh;
  width: auto;
  height: auto;
  border-radius: 16px;
}

/* ---------------- Motion & Scroll Reveals ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .hero-grid,
  .game-top,
  .forge-lab {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .worlds-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline-grid,
  .doodle-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .cap-grid,
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 72px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 22px;
    background: rgba(14, 14, 18, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-2);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .lang {
    align-self: flex-start;
    margin: 10px 0 0;
  }

  .nav .btn-parent {
    justify-content: center;
    margin: 12px 0 0;
    padding: 12px 18px;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 52px 0 64px;
  }

  .hero-cta .btn,
  .contact-actions .btn {
    flex: 1 1 100%;
  }

  .manifesto,
  .featured-game,
  .pipeline,
  .craft-tech,
  .contact {
    padding: 68px 0;
  }

  .game-shell {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .worlds-grid,
  .cap-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: min(240px, 84%);
  }
}
