/* ═══════════════════════════════════════════════════════════
   DoubleCup Studios — styles.css
   Dark Fantasy · Low Poly · PS1 Aesthetic
═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --purple:      #9B30FF;
  --purple-dim:  #6A0DAD;
  --purple-dark: #3D0066;
  --neon:        #C77DFF;
  --neon-bright: #E040FB;
  --green:       #00FF88;
  --bg:          #050008;
  --bg2:         #0A000F;
  --panel:       rgba(12, 0, 24, 0.72);
  --line:        rgba(155, 48, 255, 0.22);
  --line-strong: rgba(155, 48, 255, 0.55);
  --grid-color:  rgba(100, 0, 180, 0.18);
  --text:        #E8D5FF;
  --text-muted:  #A68BCB;
  --white:       #F5EEFF;

  --font-pixel:  'VT323', monospace;
  --font-mono:   'Share Tech Mono', monospace;
  --font-serif:  'Cinzel', serif;
  --font-block:  'Bungee', 'VT323', sans-serif;

  --nav-h:       68px;
  --container:   1120px;
  --cut:         16px;   /* clipped-corner size */
  color-scheme: dark;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
ul[role="list"] { list-style: none; }
[hidden] { display: none !important; }

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--purple-dim); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 30000;
  background: var(--purple-dim); color: #fff; padding: .6rem 1rem;
  font-family: var(--font-pixel); font-size: 1.1rem; letter-spacing: 2px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ── SCANLINES (subtle) ──
   Behind the content everywhere (a fixed overlay on top made small elements,
   like the devlog tags, change shade with the scroll position), and on top
   of the hero only, so the cup / logo keep their CRT look. */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px);
  pointer-events: none;
  z-index: 3;
}

/* ── RETRO GRID BACKGROUND ── */
.grid-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.grid-bg::before {
  content: '';
  position: absolute; inset: -50%;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(45deg) translateY(-30%);
  transform-origin: center bottom;
  animation: gridScroll 12s linear infinite;
}
.grid-bg::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(to top, var(--bg) 20%, transparent);
}
@keyframes gridScroll {
  from { transform: perspective(600px) rotateX(45deg) translateY(-30%); }
  to   { transform: perspective(600px) rotateX(45deg) translateY(-30%) translateZ(-60px); }
}

.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ═════════════ NAVIGATION ═════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-nav.scrolled {
  background: rgba(5, 0, 8, 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-family: var(--font-pixel); font-size: 1.6rem; letter-spacing: 4px;
  color: var(--neon); text-shadow: 0 0 12px var(--purple); text-decoration: none;
}
.nav-menu { margin-left: auto; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-pixel); font-size: 1.2rem; letter-spacing: 2px;
  color: var(--text-muted); text-decoration: none; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--neon); transition: width .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--neon); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: .8rem; }
.lang-toggle {
  font-family: var(--font-pixel); font-size: 1.05rem; letter-spacing: 2px;
  color: var(--text-muted); background: transparent;
  border: 1px solid var(--line-strong); padding: .25rem .8rem; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.lang-toggle:hover { color: var(--neon); border-color: var(--neon); }

.nav-burger {
  display: none; width: 40px; height: 36px; background: transparent;
  border: 1px solid var(--line-strong); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--neon); transition: transform .25s, opacity .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═════════════ SHARED ═════════════ */
main, .site-footer { position: relative; z-index: 2; }
.section { padding: clamp(4.5rem, 10vw, 7.5rem) clamp(1rem, 4vw, 2rem); }
.section-tight { padding-top: 1rem; padding-bottom: 1rem; }
.container { max-width: var(--container); margin: 0 auto; }
.container-narrow { max-width: 960px; }
.section-head { text-align: center; margin-bottom: 3rem; }

.section-label {
  display: block; margin-bottom: .8rem;
  font-family: var(--font-pixel); font-size: 1rem; letter-spacing: 6px; color: var(--purple);
}
.section-title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12;
  color: var(--white); margin-bottom: 1.5rem;
}
.section-title span { color: var(--neon); text-shadow: 0 0 20px var(--purple); }
.section-intro { color: var(--text-muted); font-size: .95rem; line-height: 1.85; max-width: 620px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 2.2rem; cursor: pointer;
  font-family: var(--font-pixel); font-size: 1.25rem; letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none; position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--purple); background: transparent; color: var(--neon);
  transition: color .3s, border-color .3s, background .3s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--purple-dim); transform: translateX(-101%); transition: transform .3s;
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { color: #fff; border-color: var(--neon); }
.btn-primary { background: rgba(106, 13, 173, 0.25); box-shadow: 0 0 24px rgba(155,48,255,.25); }
.btn-ghost { border-color: var(--line-strong); color: var(--text-muted); }
.btn-sm { padding: .55rem 1.4rem; font-size: 1.05rem; letter-spacing: 2px; }
.btn:disabled { opacity: .35; cursor: default; }
.btn:disabled::before { display: none; }
.btn:disabled:hover { color: var(--text-muted); border-color: var(--line-strong); }

.icon-btn {
  background: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-pixel); font-size: 1.6rem; line-height: 1;
  color: var(--text-muted); width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { color: var(--neon); border-color: var(--line-strong); transform: rotate(90deg); }

.chip {
  display: inline-block; padding: .05rem .65rem;
  font-family: var(--font-pixel); font-size: 1rem; letter-spacing: 2px; line-height: 1.35;
  color: #fff; background: var(--purple-dim); border: 1px solid var(--purple);
  text-transform: uppercase; white-space: nowrap;
}
.chip-update  { background: #4b0a8a; }
.chip-devlog  { background: #2e1066; border-color: #6a4dff; }
.chip-art     { background: #6b0f6e; border-color: var(--neon-bright); }
.chip-news    { background: #0f3d3a; border-color: #19c7a5; }
.chip-ghost   { background: transparent; color: var(--neon); border-color: var(--line-strong); }

/* ═════════════ HERO ═════════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1rem 5rem;
  overflow: hidden;
}
.hero-polys { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .06; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
  font-family: var(--font-pixel); font-size: 1.05rem; letter-spacing: 7px; color: var(--purple);
  margin-bottom: .5rem;
}

/* 3D viewer */
#logo-viewer {
  width: 440px; height: 380px; max-width: 86vw; max-height: 42vh;
  position: relative; margin: 0 auto .4rem;
  filter: drop-shadow(0 0 28px rgba(155,48,255,.6)) drop-shadow(0 0 70px rgba(155,48,255,.18));
}
#logo-viewer canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: pan-y; }
#logo-viewer canvas:active { cursor: grabbing; }
#logo-viewer .viewer-fallback { width: 100%; height: 100%; object-fit: contain; animation: logoFloat 6s ease-in-out infinite; }
#viewer-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-pixel); color: var(--purple); letter-spacing: 4px; font-size: 1rem; pointer-events: none;
}
.viewer-bar { width: 160px; height: 2px; background: rgba(155,48,255,.2); margin-top: 1rem; overflow: hidden; }
.viewer-bar-fill { height: 100%; background: var(--neon); animation: loadBar 1.8s ease-in-out infinite; }
@keyframes loadBar { from { width: 0; } to { width: 100%; } }
#viewer-hint {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-pixel); font-size: .9rem; letter-spacing: 3px;
  color: rgba(199,125,255,.55); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 1s;
}

/* Wordmark — chunky extruded block letters */
.wordmark {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 1.4rem; font-weight: 400;
  animation: logoFloat 6s ease-in-out infinite;
}
.wordmark-main {
  position: relative; display: inline-block;
  font-family: var(--font-block);
  font-size: clamp(2.5rem, 10.5vw, 6.2rem); line-height: 1; letter-spacing: .02em;
  background: linear-gradient(180deg, #F1B8FF 0%, #D066FF 30%, #9B30FF 62%, #6A0DAD 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
/* extrude + glow layer drawn behind the gradient face */
.wordmark-main::before {
  content: attr(data-text);
  position: absolute; left: 0; top: 0; z-index: -1;
  color: #2A0050; -webkit-text-fill-color: #2A0050;
  text-shadow:
    1px 1px 0 #3D0077, 2px 2px 0 #3D0077, 3px 3px 0 #2A0050,
    4px 4px 0 #2A0050, 5px 5px 0 #1A0035, 6px 7px 0 #12002A,
    0 0 26px rgba(155,48,255,.75), 0 0 60px rgba(155,48,255,.35);
}
.wordmark-sub {
  margin-top: .7rem; display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: clamp(.8rem, 2vw, 1rem); letter-spacing: 1.1em;
  padding-left: 1.1em; color: #B066E6; text-shadow: 0 0 10px rgba(155,48,255,.6);
}
.wordmark-sub::before, .wordmark-sub::after {
  content: ''; width: clamp(24px, 6vw, 60px); height: 1px; background: var(--purple-dim);
}
@keyframes logoFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-tagline {
  font-family: var(--font-pixel); font-size: clamp(1.25rem, 3.2vw, 1.8rem);
  color: var(--neon); letter-spacing: 3px; text-shadow: 0 0 20px var(--purple);
  margin-bottom: 2.2rem; padding: 0 .5rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-pixel); font-size: 1rem; letter-spacing: 4px; color: var(--purple);
  text-decoration: none; animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ═════════════ ABOUT ═════════════ */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-text p { color: var(--text-muted); line-height: 1.9; font-size: .97rem; margin-bottom: 1.1rem; }
.about-text strong { color: var(--neon); font-weight: normal; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  border: 1px solid var(--line); background: rgba(61,0,102,.14);
  padding: 1.4rem 1.4rem 1.2rem;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background .3s, border-color .3s;
}
.stat-card:hover { background: rgba(61,0,102,.3); border-color: var(--line-strong); }
.stat-number { font-family: var(--font-pixel); font-size: 3.2rem; line-height: 1; color: var(--neon); text-shadow: 0 0 15px var(--purple); }
.stat-label  { font-family: var(--font-pixel); font-size: 1rem; letter-spacing: 2px; color: var(--text-muted); margin-top: .45rem; line-height: 1.25; }

/* ═════════════ GAME BANNER ═════════════ */
.stealth-inner {
  position: relative; max-width: 860px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line-strong); background: var(--panel);
  padding: clamp(2.8rem, 6vw, 4rem) clamp(1.2rem, 5vw, 3.5rem);
}
.stealth-tag {
  position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%);
  background: var(--bg); padding: 0 1rem; white-space: nowrap;
  font-family: var(--font-pixel); font-size: 1rem; letter-spacing: 4px; color: var(--purple);
  animation: flicker 4s infinite;
}
.stealth-title { font-family: var(--font-serif); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 1.2rem; }
.stealth-title span { color: var(--neon); }
.stealth-desc { color: var(--text-muted); line-height: 1.85; font-size: .95rem; max-width: 600px; margin: 0 auto 2rem; }
.stealth-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.status-badge {
  display: inline-flex; align-items: center; gap: .7rem; padding: .55rem 1.3rem;
  border: 1px solid var(--line-strong); background: rgba(61,0,102,.2);
  font-family: var(--font-pixel); font-size: 1.05rem; letter-spacing: 2px; color: var(--neon);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; box-shadow: 0 0 8px var(--green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
.corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--purple); opacity: .6; }
.corner-tl { top: .8rem; left: .8rem; border-width: 2px 0 0 2px; }
.corner-tr { top: .8rem; right: .8rem; border-width: 2px 2px 0 0; }
.corner-bl { bottom: .8rem; left: .8rem; border-width: 0 0 2px 2px; }
.corner-br { bottom: .8rem; right: .8rem; border-width: 0 2px 2px 0; }

/* ═════════════ DEVLOG ═════════════ */
.devlog-panel {
  position: relative; border: 1px solid var(--line); background: var(--panel);
  padding: clamp(.5rem, 2vw, 1.5rem) clamp(1rem, 3.5vw, 3rem) clamp(1.2rem, 3vw, 2rem);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.devlog-list { list-style: none; }
.devlog-list li + li { border-top: 1px solid var(--line); }
.devlog-item {
  width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.4rem;
  padding: 1.4rem .4rem; background: none; border: 0; text-align: left; cursor: pointer;
  transition: background .2s, padding .2s;
}
.devlog-item:hover, .devlog-item:focus-visible { background: rgba(155,48,255,.07); padding-left: 1rem; }
.devlog-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .45rem; }
.devlog-meta time { font-family: var(--font-pixel); font-size: 1.35rem; letter-spacing: 1px; color: var(--neon); }
.devlog-title { font-family: var(--font-mono); font-weight: 400; font-size: 1.05rem; color: var(--white); line-height: 1.4; }
.devlog-summary { font-size: .85rem; color: var(--text-muted); margin-top: .25rem; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.devlog-thumb {
  width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line);
  filter: saturate(.9) brightness(.85); transition: filter .2s;
}
.devlog-item:hover .devlog-thumb { filter: none; }
.devlog-arrow { font-family: var(--font-pixel); font-size: 1.6rem; color: var(--purple); transition: transform .2s, color .2s; }
.devlog-item:hover .devlog-arrow { transform: translateX(4px); color: var(--neon); }
.devlog-empty { text-align: center; padding: 2rem 0; color: var(--text-muted); font-family: var(--font-pixel); font-size: 1.2rem; letter-spacing: 2px; }
.devlog-more-wrap { text-align: center; margin-top: 1.2rem; }

/* Post modal */
.post-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: clamp(.5rem, 3vw, 2rem); }
.post-backdrop { position: absolute; inset: 0; background: rgba(5,0,8,.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn .2s ease; }
.post-panel {
  position: relative; width: min(860px, 100%); max-height: 100%;
  display: flex; flex-direction: column;
  background: #0B0016; border: 1px solid var(--line-strong);
  box-shadow: 0 0 60px rgba(155,48,255,.25);
  animation: panelIn .28s cubic-bezier(.2,.7,.2,1);
}
.post-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem clamp(1rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.post-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.post-actions { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; }
.share-btn {
  background: transparent; border: 1px solid var(--line-strong); color: var(--text-muted); cursor: pointer;
  font-family: var(--font-pixel); font-size: 1.05rem; letter-spacing: 2px; text-transform: uppercase;
  padding: .3rem .8rem; white-space: nowrap; transition: color .2s, border-color .2s, background .2s;
}
.share-btn:hover { color: var(--neon); border-color: var(--neon); background: rgba(61,0,102,.25); }
.post-meta time { font-family: var(--font-pixel); font-size: 1.35rem; color: var(--neon); letter-spacing: 1px; }
.post-scroll { overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.2rem, 3vw, 2rem) clamp(1rem, 4vw, 2.6rem) 2rem; }
.post-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.2; color: var(--white); margin-bottom: 1.4rem; }
.post-body { color: var(--text); font-size: .97rem; line-height: 1.85; }
.post-body > * + * { margin-top: 1rem; }
.post-body h3 { font-family: var(--font-pixel); font-weight: 400; font-size: 1.5rem; letter-spacing: 2px; color: var(--neon); margin-top: 1.8rem; }
.post-body ul, .post-body ol { padding-left: 1.4rem; color: var(--text-muted); }
.post-body li + li { margin-top: .35rem; }
.post-body li::marker { color: var(--purple); }
.post-body strong { color: var(--white); font-weight: normal; }
.post-body a { color: var(--neon); }
.post-body code { font-family: var(--font-mono); background: rgba(155,48,255,.15); padding: 0 .3rem; }
.post-body figure img, .post-body > img { width: 100%; border: 1px solid var(--line); cursor: zoom-in; }
.post-body figcaption { font-size: .8rem; color: var(--text-muted); margin-top: .4rem; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-top: 1.8rem; }
/* A single image keeps its own proportions (wide or tall), capped in height */
.post-gallery > .post-shot:only-child { aspect-ratio: auto; display: flex; justify-content: center; }
.post-gallery > .post-shot:only-child img { width: auto; max-width: 100%; height: auto; max-height: 65vh; object-fit: contain; }
.post-gallery:empty { display: none; }
.post-shot { position: relative; padding: 0; border: 1px solid var(--line); background: #0d0015; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.post-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .35s; }
.post-shot:hover img { transform: scale(1.05); filter: brightness(1.1); }
.post-shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: .35rem .6rem; font-size: .72rem; text-align: left; color: var(--text); background: linear-gradient(transparent, rgba(5,0,8,.9)); }
.post-foot { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem, 3vw, 2rem); border-top: 1px solid var(--line); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }

/* ═════════════ GALLERY ═════════════ */
.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.work-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid var(--line); background: var(--bg2); cursor: zoom-in; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.work-card:hover { border-color: var(--line-strong); }
.work-feature { grid-column: span 2; grid-row: span 2; }
.work-img-wrap { position: relative; flex: 1; min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(circle at 50% 40%, #1d0533, #0d0015 70%); }
.work-feature .work-img-wrap { aspect-ratio: auto; }
.work-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9) saturate(.95); transition: transform .45s, filter .45s; }
.work-card.is-tall .work-img { object-fit: contain; padding: .8rem 0; }
.work-card:hover .work-img { transform: scale(1.04); filter: brightness(1.05); }
.work-img-wrap::after {
  content: '\25C8'; position: absolute; right: .8rem; top: .6rem;
  font-family: var(--font-pixel); font-size: 1.4rem; color: var(--neon);
  opacity: 0; transition: opacity .3s; text-shadow: 0 0 12px var(--neon-bright);
}
.work-card:hover .work-img-wrap::after { opacity: 1; }
.work-info { padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
.work-title { font-family: var(--font-pixel); font-size: 1.25rem; letter-spacing: 2px; color: var(--white); }
.work-tag   { font-size: .72rem; letter-spacing: 2px; color: var(--purple); text-transform: uppercase; margin-top: .15rem; }

/* ═════════════ ESSENCE ═════════════ */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pillar {
  position: relative; overflow: hidden; padding: 2rem 1.6rem;
  border: 1px solid var(--line); background: rgba(10,0,20,.55);
  transition: border-color .3s, background .3s;
}
.pillar::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0; background: var(--neon); transition: height .4s; }
.pillar:hover { border-color: var(--line-strong); background: rgba(61,0,102,.18); }
.pillar:hover::before { height: 100%; }
.pillar-glyph { font-family: var(--font-pixel); font-size: 2.3rem; color: var(--purple); text-shadow: 0 0 10px var(--purple); margin-bottom: .8rem; line-height: 1; }
.pillar-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); letter-spacing: 1px; margin-bottom: .7rem; }
.pillar-text { font-size: .88rem; line-height: 1.8; color: var(--text-muted); }

.manifesto { margin: clamp(4rem, 9vw, 6rem) auto 0; max-width: 860px; text-align: center; }
.manifesto blockquote {
  font-family: var(--font-serif); font-weight: 900;
  font-size: clamp(1.4rem, 3.6vw, 2.4rem); line-height: 1.3; color: var(--white);
}
.manifesto .highlight { color: var(--neon); text-shadow: 0 0 25px var(--purple); }
.manifesto figcaption { margin-top: 1.4rem; font-family: var(--font-pixel); font-size: 1.05rem; letter-spacing: 5px; color: var(--purple); }

/* ═════════════ CONTACT ═════════════ */
.contact-inner { text-align: center; max-width: 820px; }
.contact-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.6rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem; text-align: left;
  padding: 1rem 1.4rem; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line-strong); background: rgba(10,0,20,.5); color: var(--text-muted);
  transition: color .2s, border-color .2s, background .2s, transform .1s;
}
.contact-link:hover { color: var(--neon); border-color: var(--purple); background: rgba(61,0,102,.25); }
.contact-link:active { transform: scale(.98); }
.cl-glyph { font-family: var(--font-pixel); font-size: 1.5rem; color: var(--purple); }
.cl-text { display: flex; flex-direction: column; min-width: 0; }
.cl-title { font-family: var(--font-pixel); font-size: 1.25rem; letter-spacing: 3px; text-transform: uppercase; line-height: 1.2; }
.cl-sub { font-size: .78rem; color: rgba(166,139,203,.75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steam-soon { margin-top: 1.6rem; font-family: var(--font-pixel); font-size: 1rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(155,48,255,.45); }

/* ═════════════ FOOTER ═════════════ */
.site-footer { padding: 2rem 1rem; text-align: center; border-top: 1px solid rgba(155,48,255,.15); }
.footer-text { font-family: var(--font-pixel); font-size: .95rem; letter-spacing: 3px; color: rgba(155,48,255,.55); }

/* ═════════════ TOAST ═════════════ */
.copy-toast {
  position: fixed; bottom: 2rem; left: 50%; z-index: 20000; pointer-events: none;
  transform: translate(-50%, 12px); opacity: 0; transition: opacity .25s, transform .25s;
  background: rgba(61,0,102,.95); border: 1px solid var(--purple); color: var(--neon);
  font-family: var(--font-pixel); font-size: 1.1rem; letter-spacing: 3px;
  padding: .6rem 1.8rem; white-space: nowrap; box-shadow: 0 0 20px rgba(155,48,255,.5);
}
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═════════════ LIGHTBOX ═════════════ */
#lightbox {
  position: fixed; inset: 0; z-index: 12000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,0,8,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fadeIn .2s ease; padding: 4rem 4.5rem;
}
.lb-figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 100%; max-height: 100%; }
#lbImg {
  max-width: min(100%, 1100px); max-height: calc(100vh - 12rem); object-fit: contain;
  border: 1px solid var(--line-strong); box-shadow: 0 0 40px rgba(155,48,255,.45);
  animation: lbScale .3s cubic-bezier(.22,.68,0,1.2);
}
@keyframes lbScale { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
#lbCaption { font-family: var(--font-pixel); font-size: 1.05rem; letter-spacing: 3px; color: var(--text-muted); text-align: center; }
#lbCaption strong { display: block; color: var(--neon); font-size: 1.3rem; font-weight: 400; }
.lb-close { position: fixed; top: 1rem; right: 1.2rem; font-size: 2rem; width: 48px; height: 48px; }
.lb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  font-family: var(--font-pixel); font-size: 2rem; line-height: 1; cursor: pointer;
  color: rgba(199,125,255,.7); background: rgba(5,0,8,.6); border: 1px solid var(--line);
  padding: .5rem .9rem; transition: color .2s, border-color .2s, background .2s;
}
.lb-arrow:hover { color: var(--neon); border-color: var(--purple); background: rgba(61,0,102,.6); }
.lb-prev { left: 1rem; } .lb-next { right: 1rem; }
#lbCounter { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); font-family: var(--font-pixel); letter-spacing: 4px; color: rgba(155,48,255,.6); }

/* ═════════════ SCROLL REVEAL ═════════════ */
.js .fade-in { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .fade-in.visible { opacity: 1; transform: none; }

@keyframes flicker {
  0%,95%,100% { opacity: 1; } 96% { opacity: .4; } 97% { opacity: 1; } 98% { opacity: .2; } 99% { opacity: .9; }
}

/* ═════════════ RESPONSIVE ═════════════ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-feature { grid-column: span 2; grid-row: auto; }
  .work-feature .work-img-wrap { aspect-ratio: 4 / 3; }
  .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .nav-burger { display: inline-flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(5,0,8,.97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-menu.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; padding: .5rem 1rem 1rem; }
  .nav-links a { display: block; padding: .8rem .4rem; font-size: 1.4rem; border-bottom: 1px solid rgba(155,48,255,.1); }
  .nav-links a::after { display: none; }
  .site-nav.menu-open { background: rgba(5,0,8,.97); border-bottom-color: var(--line); }

  .hero-eyebrow { font-size: .95rem; letter-spacing: 4px; }
  #logo-viewer { height: 320px; max-height: 38vh; }
  .devlog-item { grid-template-columns: 1fr auto; gap: .8rem; }
  .devlog-thumb { display: none; }
  .contact-links { grid-template-columns: 1fr; }
  .post-foot .btn { flex: 1; padding-left: .6rem; padding-right: .6rem; }
  #lightbox { padding: 4rem .8rem 5rem; }
  .lb-arrow { top: auto; bottom: 1rem; transform: none; }
  #lbCounter { bottom: 1.8rem; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stat-card { padding: 1.1rem 1rem 1rem; }
  .stat-number { font-size: 2.6rem; }
  .stat-label { font-size: .92rem; letter-spacing: 1px; }
  .works-grid { grid-template-columns: 1fr; }
  .work-feature { grid-column: auto; }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; }
  .stealth-tag { font-size: .85rem; letter-spacing: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .fade-in { opacity: 1; transform: none; }
}
