/* 2357 Steps — studio site. Colours taken from Sweet Dreams, Dahlia's art: deep dream blue, crystal cyan, plague violet, Dahlia's warm gold. */
@font-face { font-family: "SDD Sans"; src: url("../fonts/SansSerif-Medium.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "SDD Sans"; src: url("../fonts/SansSerif-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "SDD Display"; src: url("../fonts/SerifDisplay-Semibold.otf") format("opentype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #050a1f;
  --night: #08113a;
  --deep: #0c1d5c;
  --panel: rgba(16, 30, 84, .55);
  --line: rgba(130, 200, 255, .16);
  --cyan: #5fe1ff;
  --violet: #9b7bff;
  --gold: #f2ce91;
  --text: #e6ecff;
  --muted: #9fb0d8;
  --radius: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--text); background: var(--ink);
  font: 400 17px/1.65 "SDD Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: "SDD Display", Georgia, serif; font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); margin-bottom: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(5, 10, 31, .78); backdrop-filter: blur(14px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .03em; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), #3a8dff); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(95, 225, 255, .7); }
.btn-primary:hover { color: var(--ink); box-shadow: 0 14px 40px -10px rgba(95, 225, 255, .9); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero .layer { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: -1; will-change: transform; }
.hero .bg { background-image: url("../images/hero_bg.webp"); }
.hero .mg { background-image: url("../images/hero_mg.webp"); background-position: center 30%; opacity: .75; }
.hero .fg { background-image: url("../images/hero_fg.webp"); background-position: center 38%; inset: 0 -28% 0 28%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(5,10,31,.85) 0%, rgba(5,10,31,.45) 35%, rgba(5,10,31,0) 60%),
  linear-gradient(180deg, rgba(5,10,31,.55) 0%, rgba(5,10,31,0) 30%, rgba(5,10,31,.2) 60%, var(--ink) 100%); }
.hero h1 { max-width: 11ch; }
@media (max-width: 1100px) { .hero .fg { opacity: .7; } }
@media (max-width: 720px) { .hero .fg { inset: 0; opacity: .55; } }
.hero-copy { padding: 0 0 12vh; max-width: 720px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { font-size: 1.15rem; color: #cfd9ff; max-width: 560px; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: hint 1.8s infinite; }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- sections ---------- */
section { padding: 110px 0; position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 520px; margin: 0; }

/* game */
.game { background: radial-gradient(1000px 500px at 85% 0%, rgba(58, 141, 255, .18), transparent 70%), var(--ink); }
.game-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.game-logo { width: min(320px, 70%); margin-bottom: 22px; filter: drop-shadow(0 10px 30px rgba(95,225,255,.25)); }
.game-copy p { color: #c8d3f5; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; padding: 0; list-style: none; }
.facts li { padding: 6px 14px; border-radius: 999px; background: rgba(95, 225, 255, .08); border: 1px solid var(--line); font-size: .85rem; color: var(--cyan); }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.shots button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #000; aspect-ratio: 16/9; box-shadow: 0 20px 40px -20px #000; }
.shots button:first-child { grid-column: 1 / -1; }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.shots button:hover img { transform: scale(1.05); }

/* trailer */
.trailer { background: linear-gradient(180deg, var(--ink), var(--night)); padding-top: 40px; }
.video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 40px 80px -40px rgba(95,225,255,.35); }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s; }
.video button:hover img { opacity: 1; }
.video .play { position: relative; width: 88px; height: 88px; border-radius: 50%; background: rgba(5,10,31,.6); border: 2px solid var(--cyan); display: grid; place-items: center; backdrop-filter: blur(6px); transition: transform .25s; }
.video button:hover .play { transform: scale(1.08); }
.video .play svg { width: 34px; fill: var(--cyan); margin-left: 6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { color: var(--muted); font-size: .85rem; margin-top: 12px; text-align: center; }

/* news */
.news { background: var(--night); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: inherit; font-size: .85rem; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.filters button[aria-pressed="true"], .filters button:hover { background: rgba(95,225,255,.12); color: var(--cyan); border-color: rgba(95,225,255,.4); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post {
  position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.post:hover { transform: translateY(-4px); border-color: rgba(95,225,255,.35); box-shadow: 0 24px 50px -30px rgba(95,225,255,.5); }
.post.featured { grid-column: 1 / -1; flex-direction: row; }
.post.featured .thumb { flex: 1.25; aspect-ratio: auto; min-height: 340px; }
.post.featured .body { flex: 1; padding: 40px; }
.post.featured h3 { font-size: 2rem; }
.thumb { aspect-ratio: 16/9; background: var(--deep) center / cover no-repeat; position: relative; }
.thumb .tag { position: absolute; left: 16px; top: 16px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(5,10,31,.75); color: var(--gold); border: 1px solid rgba(242,206,145,.35); backdrop-filter: blur(6px); }
.body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.date { font-size: .8rem; color: var(--muted); letter-spacing: .06em; margin-bottom: 8px; }
.post h3 { color: #fff; }
.text { color: #c3cdf0; font-size: .97rem; }
.text ul { padding-left: 1.2em; margin: 0 0 1em; }
.text li { margin-bottom: .3em; }
.text li::marker { color: var(--cyan); }
.post:not(.open) .text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post:not(.open) .text .more-only { display: none; }
.post.featured:not(.open) .text { -webkit-line-clamp: 7; }
.post .links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 14px; align-items: center; }
.post .links a { font-size: .88rem; font-weight: 700; }
.read { font: inherit; font-size: .88rem; font-weight: 700; color: var(--gold); background: none; border: 0; padding: 0; cursor: pointer; }
.read:hover { color: #fff; }
.post.open { grid-column: 1 / -1; }
.post.open:not(.featured) { flex-direction: row; }
.post.open:not(.featured) .thumb:not(.art) { flex: 0 0 42%; aspect-ratio: auto; min-height: 300px; }
.post.open:not(.featured) .body { padding: 34px 38px; }
/* posts without a picture: a short coloured band holds the tag */
.thumb.art { aspect-ratio: auto; height: 58px; flex: none; background: linear-gradient(90deg, rgba(95,225,255,.22), rgba(155,123,255,.28)); }
.post.open .thumb.art { position: absolute; inset: 0 auto 0 0; width: 6px; height: auto; }
.post.open .thumb.art .tag { display: none; }
.post.open:not(.featured) .thumb.art + .body { padding-left: 44px; }
.post[hidden] { display: none; }
.archive-toggle { display: flex; justify-content: center; margin-top: 40px; }

/* about */
.about { background: radial-gradient(900px 500px at 10% 100%, rgba(155,123,255,.18), transparent 70%), var(--ink); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
.about-copy p { color: #c8d3f5; }
.about-side { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.about-logo { width: min(300px, 80%); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.stat { padding: 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.stat b { display: block; font-family: "SDD Display", Georgia, serif; font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.stat span { font-size: .85rem; color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 80px; }
.member { margin: 0; text-align: center; padding: 36px 28px 32px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.member:hover { transform: translateY(-6px); border-color: rgba(95,225,255,.35); }
.member .photo { width: min(260px, 100%); aspect-ratio: 1; object-fit: cover; margin: 0 auto 24px; border-radius: 50%;
  padding: 6px; background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 24px 50px -24px rgba(95,225,255,.6); }
.member h3 { margin: 0 0 4px; font-size: 1.5rem; }
.member .role { color: var(--cyan); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.member p { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }

/* community */
.community { background: linear-gradient(180deg, var(--ink), var(--deep)); text-align: center; }
.community p.lead { color: #c8d3f5; max-width: 600px; margin: 0 auto 36px; }
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; max-width: 1020px; margin: 0 auto; }
.socials a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: #fff; font-weight: 700; font-size: .92rem; transition: transform .25s, border-color .25s, color .25s; }
.socials a:hover { transform: translateY(-4px); border-color: var(--cyan); color: var(--cyan); }
.socials svg { width: 28px; height: 28px; fill: currentColor; }

/* footer */
footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; background: var(--ink); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* lightbox */
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); }
dialog.lightbox::backdrop { background: rgba(2, 5, 18, .9); backdrop-filter: blur(4px); }
dialog.lightbox img { border-radius: 12px; max-height: 88vh; }
dialog.lightbox button { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(5,10,31,.8); color: #fff; font-size: 1.3rem; cursor: pointer; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
  .hero .layer { transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .game-grid, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .team { gap: 16px; }
  .member { padding: 26px 16px; }
  .post.featured { flex-direction: column; }
  .post.featured .thumb { min-height: 0; aspect-ratio: 16/9; }
  .post.featured .body { padding: 26px; }
  .post.open:not(.featured) { flex-direction: column; }
  .post.open:not(.featured) .thumb:not(.art) { flex: none; min-height: 0; aspect-ratio: 16/9; }
  .post.open:not(.featured) .body { padding: 26px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .posts { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #050a1f; box-shadow: 0 20px 40px rgba(0,0,0,.6); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .brand img { height: 36px; }
  .team { grid-template-columns: 1fr; gap: 14px; margin-top: 50px; }
  .member { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; text-align: left; padding: 18px; }
  .member .photo { width: 112px; margin: 0; padding: 4px; }
  .member h3 { font-size: 1.15rem; }
  .member .role { font-size: .72rem; }
  .member p { margin-top: 6px; font-size: .86rem; line-height: 1.5; }
  .stat b { font-size: 1.5rem; }
  .hero-copy { padding-bottom: 14vh; }
}
