/* Emortalics — studio site */
:root {
  --bg: #08090c;
  --bg-2: #0e1015;
  --surface: #13161d;
  --surface-2: #1a1e27;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: #9aa0ad;
  --faint: #6b7180;
  --accent: #ff5a3c;
  --accent-2: #ff8a4c;
  --accent-glow: rgba(255, 90, 60, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --nav-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--muted); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section.tight { padding: 80px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; margin-top: 14px; }
.section-head p { max-width: 440px; margin: 0; }

/* ---------------- buttons */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: 0.01em;
  border: 1px solid var(--b); background: rgba(255,255,255,0.03); color: var(--text);
  cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.07); --b: rgba(255,255,255,0.28); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn.primary:hover { background: #ff6c50; box-shadow: 0 16px 40px -12px var(--accent-glow); }
.btn.small { height: 42px; padding: 0 18px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- nav */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(8, 9, 12, 0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--display); font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.nav .wordmark { font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; transition: transform .3s, opacity .3s; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 9, 12, 0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 8px 24px 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav-links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 20px; }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(8, 9, 12, 0.96); }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 60px) 0 90px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4% 0 0; z-index: -2; background-size: cover; background-position: center 30%; transform: scale(1.06); will-change: transform; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(8,9,12,1) 20%, rgba(8,9,12,0) 70%),
    linear-gradient(180deg, rgba(8,9,12,0.55) 0%, rgba(8,9,12,0.35) 40%, rgba(8,9,12,0.95) 100%),
    radial-gradient(60% 50% at 80% 20%, rgba(255,90,60,0.18), transparent 70%);
}
.hero-inner { width: 100%; }
.hero .eyebrow { margin-bottom: 26px; }
.hero-title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; color: #fff;
  font-size: clamp(34px, 11.4vw, 176px); line-height: 0.86; letter-spacing: -0.015em;
  margin: 0 0 0 -0.04em; white-space: nowrap;
}
.hero-title .char { display: inline-block; opacity: 0; transform: translateY(40%); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero-bottom { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-top: 40px; }
.hero-tagline { font-size: clamp(18px, 2vw, 22px); color: #d6d8de; max-width: 520px; margin: 0 0 28px; }

.feature-card {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center;
  padding: 14px; border-radius: var(--radius); background: rgba(19, 22, 29, 0.6);
  border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .35s var(--ease), border-color .35s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.25); }
.feature-card img { width: 150px; aspect-ratio: 630/500; object-fit: cover; border-radius: 10px; }
.feature-card .label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.feature-card h3 { font-size: 26px; margin: 4px 0 6px; font-weight: 800; }
.feature-card p { font-size: 14px; margin: 0 0 12px; line-height: 1.5; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.3); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: hint 1.8s infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 880px) {
  .hero { align-items: flex-end; padding-bottom: 70px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 28px; }
  .scroll-hint { display: none; }
}
@media (max-width: 600px) { .hero-title { font-size: 12.8vw; } }
@media (max-width: 480px) {
  .feature-card { grid-template-columns: 96px 1fr; gap: 14px; }
  .feature-card img { width: 96px; }
  .feature-card h3 { font-size: 21px; }
  .feature-card p { display: none; }
}

/* ---------------- marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; padding: 22px 0; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; color: var(--accent); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- spotlight (featured game) */
.spotlight { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.spotlight-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9); }
.spotlight-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 1.2s var(--ease); }
.spotlight-media:hover img { transform: scale(1.04); }
.spotlight-media .badge { position: absolute; top: 18px; left: 18px; }
.spotlight h2 { font-size: clamp(44px, 6vw, 76px); font-weight: 900; text-transform: uppercase; margin: 16px 0 20px; }
.spotlight .lead { font-size: 19px; color: #c9ccd4; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 32px; }
.stat { padding: 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; color: #fff; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .spotlight { grid-template-columns: 1fr; gap: 40px; } }

.badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(8,9,12,0.7); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.badge.soon .dot { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }

/* ---------------- games grid */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.game-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; display: flex; flex-direction: column; }
.game-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9); }
.game-card .media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.game-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.game-card:hover .media img { transform: scale(1.06); }
.game-card .media .badge { position: absolute; top: 14px; left: 14px; }
.game-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card h3 { font-size: 26px; font-weight: 800; }
.game-card p { margin: 0; font-size: 15px; flex: 1; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); }
.game-card .actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.game-card.placeholder { border-style: dashed; background: transparent; align-items: center; justify-content: center; text-align: center; min-height: 380px; padding: 32px; }
.game-card.placeholder:hover { transform: none; box-shadow: none; }
.game-card.placeholder .q { font-family: var(--display); font-size: 80px; font-weight: 900; color: var(--surface-2); line-height: 1; }

/* ---------------- play band */
.play-band { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); isolation: isolate; padding: 80px 56px; }
.play-band .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.play-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,9,12,0.95) 0%, rgba(8,9,12,0.75) 45%, rgba(8,9,12,0.2) 100%); }
.play-band h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; text-transform: uppercase; margin: 16px 0 18px; max-width: 620px; }
.play-band p { max-width: 520px; color: #c9ccd4; margin-bottom: 30px; }
@media (max-width: 640px) { .play-band { padding: 56px 24px; } .play-band::before { background: linear-gradient(180deg, rgba(8,9,12,0.7), rgba(8,9,12,0.95)); } }

/* ---------------- youtube */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; opacity: 0.85; }
.video:hover img { transform: scale(1.05); opacity: 1; }
.video .play-icon { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 40px var(--accent-glow); transition: transform .3s var(--ease); }
.video:hover .play-icon { transform: scale(1.1); }
.video .play-icon svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }
.video iframe { width: 100%; height: 100%; border: 0; }
.channel-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px; border-radius: 28px; background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%); border: 1px solid var(--line); flex-wrap: wrap; }
.channel-card .yt { width: 64px; height: 64px; border-radius: 18px; background: var(--accent); display: grid; place-items: center; flex: none; }
.channel-card .yt svg { width: 30px; color: #fff; }
.channel-card .text { display: flex; align-items: center; gap: 24px; flex: 1; min-width: 260px; }
.channel-card h3 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.channel-card p { margin: 0; }

/* ---------------- devlog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .45s var(--ease), border-color .45s; }
.post-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.post-card .media { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .media img { transform: scale(1.06); }
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card .meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--faint); }
.post-card .meta .tag { color: var(--accent); border-color: rgba(255,90,60,0.25); background: rgba(255,90,60,0.08); }
.post-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.post-card p { margin: 0; font-size: 15px; }
.post-card .more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--text); display: inline-flex; gap: 8px; align-items: center; }
.post-card .more svg { width: 16px; transition: transform .3s var(--ease); }
.post-card:hover .more svg { transform: translateX(4px); }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts { grid-template-columns: 1fr; } }

/* ---------------- about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; margin: 14px 0 24px; }
.about .big { font-size: clamp(20px, 2.2vw, 24px); color: #d6d8de; line-height: 1.5; }
.founder { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.founder .avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #7a2a1c); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 20px; }
.founder b { display: block; }
.founder span { font-size: 14px; color: var(--muted); }
.values { display: grid; gap: 16px; }
.value { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.value .n { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--accent); }
.value h3 { font-size: 20px; margin-bottom: 6px; letter-spacing: -0.01em; }
.value p { margin: 0; font-size: 15px; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 48px; } }

/* ---------------- newsletter */
.newsletter { position: relative; overflow: hidden; border-radius: 28px; padding: 72px 56px; background: radial-gradient(80% 140% at 100% 0%, rgba(255,90,60,0.25), transparent 60%), var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 900; text-transform: uppercase; margin: 14px 0 14px; }
.newsletter p { margin: 0; }
.subscribe { display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2); transition: border-color .25s, box-shadow .25s; }
.subscribe:focus-within { border-color: rgba(255,90,60,0.6); box-shadow: 0 0 0 4px rgba(255,90,60,0.12); }
.subscribe input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font: 500 16px var(--font); padding: 0 18px; }
.subscribe input::placeholder { color: var(--faint); }
.form-note { font-size: 13px; color: var(--faint); margin: 14px 4px 0; min-height: 20px; }
.form-note.ok { color: #4ade80; }
@media (max-width: 880px) { .newsletter { grid-template-columns: 1fr; padding: 48px 24px; gap: 28px; } }
@media (max-width: 420px) { .subscribe { flex-direction: column; border-radius: 22px; } .subscribe input { height: 48px; } }

/* ---------------- footer */
.footer { border-top: 1px solid var(--line); padding: 80px 0 40px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer .wordmark.huge { font-size: clamp(44px, 8vw, 96px); line-height: 0.9; display: block; margin-bottom: 18px; }
.footer h4 { font-family: var(--font); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.socials a { height: 42px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; border: 1px solid var(--line-2); color: var(--muted); transition: color .2s, border-color .2s, transform .25s var(--ease); }
.socials a:hover { color: #fff; border-color: rgba(255,255,255,0.3); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------------- subpages */
.page-hero { position: relative; padding: calc(var(--nav-h) + 100px) 0 80px; overflow: hidden; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0.55; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,9,12,0.6), var(--bg) 92%); }
.page-hero h1 { font-size: clamp(52px, 10vw, 140px); font-weight: 900; text-transform: uppercase; margin: 18px 0 20px; }
.page-hero .lead { font-size: clamp(18px, 2vw, 22px); color: #d6d8de; max-width: 640px; }
.crumb { font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery button { padding: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 16/9; }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery button:first-child { grid-column: span 2; grid-row: auto; } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-4px); }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,90,60,0.1); color: var(--accent); margin-bottom: 20px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 21px; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 15px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; margin: 14px 0 20px; }
.split .media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice > div { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.choice img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.choice b { display: block; padding: 14px 18px; font-family: var(--display); font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4,5,7,0.94); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 12px; transform: scale(0.96); transition: transform .4s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox .close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: #fff; font-size: 24px; cursor: pointer; }

/* play page */
.player { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: #000; box-shadow: 0 40px 100px -40px rgba(0,0,0,1); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background-size: cover; background-position: center; cursor: pointer; }
.player .cover::before { content: ""; position: absolute; inset: 0; background: rgba(8,9,12,0.55); transition: background .3s; }
.player .cover:hover::before { background: rgba(8,9,12,0.4); }
.player .cover > * { position: relative; }
.player .big-play { width: 96px; height: 96px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2.2s infinite; }
.player .big-play svg { width: 36px; fill: #fff; margin-left: 6px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,60,0.5); } 70% { box-shadow: 0 0 0 28px rgba(255,90,60,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,60,0); } }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.player-bar p { margin: 0; font-size: 14px; }
.notice { padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); text-align: center; }

/* article */
.article { max-width: 760px; margin: 0 auto; }
.article .cover-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 48px; }
.article .cover-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.prose { font-size: 18px; }
.prose p, .prose li { color: #c4c8d1; }
.prose h2 { font-size: 30px; margin: 48px 0 16px; letter-spacing: -0.01em; }
.prose ul { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); margin: 28px 0; }
.prose .todo { background: rgba(255,90,60,0.12); color: var(--accent-2); padding: 1px 6px; border-radius: 6px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .char { opacity: 1; transform: none; }
}

/* videos and pictures inside devlog posts (from the Google Sheet) */
.post-video{position:relative;aspect-ratio:16/9;margin:28px 0;border-radius:14px;overflow:hidden;background:#000}
.post-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
