/* LONE GUARDIAN GAMES STUDIO – website styles
   Palette from the logo: black, graphite, silver, white and blood-moon red. Motif: 45° chamfered corners. */

:root {
  --bg: #08090c;
  --bg-1: #0b0d11;
  --bg-2: #101319;
  --bg-3: #161a21;
  --line: rgba(196, 206, 218, .12);
  --line-2: rgba(196, 206, 218, .26);
  --text: #eaeef3;
  --text-2: #a9b2be;
  --text-3: #808a97;
  --silver: #c4ccd6;
  --white: #f4f7fa;
  --accent: #d8202a;
  --accent-hi: #ff6156;
  --accent-deep: #9e1016;
  --accent-glow: rgba(216, 32, 42, .4);

  --font-display: "Saira", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1280px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --cut: 16px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .08em;
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- type ---------- */

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-2);
}
.eyebrow__num { color: var(--accent-hi); letter-spacing: .12em; }
.eyebrow__num::after {
  content: ""; display: inline-block; width: 34px; height: 1px; margin-left: 14px;
  vertical-align: middle; background: var(--line-2);
}

.sec-title {
  margin-top: 20px;
  font-family: var(--font-display); font-weight: 600; font-stretch: 104%;
  font-size: clamp(2.1rem, 4.4vw, 3.7rem); line-height: 1.04; letter-spacing: -.01em;
  color: var(--white); text-wrap: balance;
}

.lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.65; color: var(--text); }
.muted { color: var(--text-2); }
p + p { margin-top: 1.1em; }

/* ---------- buttons ---------- */

.btn {
  --cut: 11px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background-color .3s, color .3s, transform .3s var(--ease);
  overflow: hidden;
}
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #ec3038; }
/* light sweep on hover */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .32) 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(110%); }

.btn--ghost { color: var(--text); background: rgba(8, 9, 12, .35); }
.btn--ghost:hover { color: #fff; background: rgba(216, 32, 42, .14); }
/* chamfered 1px outline: an even-odd ring clipped from a solid layer */
.btn--ghost::before,
.frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--line-2);
  clip-path: polygon(evenodd,
    var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut), var(--cut) 0,
    calc(var(--cut) + .42px) 1px, calc(100% - 1px) 1px, calc(100% - 1px) calc(100% - var(--cut) - .42px),
    calc(100% - var(--cut) - .42px) calc(100% - 1px), 1px calc(100% - 1px), 1px calc(var(--cut) + .42px), calc(var(--cut) + .42px) 1px);
  transition: background-color .3s;
}
.btn--ghost:hover::before { background: var(--accent); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent-hi);
}
.link-arrow svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- frames (chamfered image holders) ---------- */

.frame {
  --cut: 20px;
  position: relative; display: block; overflow: hidden; background: var(--bg-2);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
/* red accent on the top-left cut */
.frame::before {
  content: ""; position: absolute; z-index: 2; left: 0; top: var(--cut);
  width: calc(var(--cut) * 1.4142); height: 2px; background: var(--accent);
  transform-origin: 0 0; transform: rotate(-45deg);
}
a.frame:hover img, button.frame:hover img { transform: scale(1.035); }
a.frame:hover::after, button.frame:hover::after { background: rgba(216, 32, 42, .7); }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 9, 12, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { position: relative; z-index: 60; display: block; flex: none; }
.brand img { height: 38px; width: auto; }

.nav ul { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav a {
  position: relative; display: block; padding: 8px 0;
  font-family: var(--font-display); font-weight: 500; font-size: .76rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-2);
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"], .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="true"]::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle { display: none; position: relative; z-index: 60; width: 44px; height: 44px; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--white);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; right: 16px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; right: 10px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--header-h) var(--gutter) 40px;
    background: rgba(8, 9, 12, .97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a { padding: 10px 0; font-size: 1.5rem; font-weight: 600; letter-spacing: .12em; color: var(--text); }
  .nav a::after { right: auto; width: 40px; }
  .nav-open { overflow: hidden; }
}

/* ---------- hero: the studio logo, big, as the backdrop of the first screen ---------- */

.hero {
  /* as wide as the screen allows while kicker, tagline, buttons and chip still fit below it */
  --logo-w: min(112vw, (100vh - 250px) * 1.37, 1415px);
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  /* the moon starts at ~8.5 % of the logo width; keep it clear of the header */
  padding-top: max(0px, var(--header-h) - var(--logo-w) * .085);
  overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 55% at 50% 36%, rgba(120, 8, 12, .3), transparent 72%), #000;
}
@supports (height: 100svh) { .hero { --logo-w: min(112vw, (100svh - 250px) * 1.37, 1415px); } }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, var(--bg), rgba(8, 9, 12, 0));
}
/* overlaps the logo's empty black bottom edge */
.hero__brand { flex: none; width: var(--logo-w); max-width: none; margin-bottom: calc(var(--logo-w) * -.035); will-change: transform; }
.hero__brand img { display: block; width: 100%; height: auto; }
.hero__particles { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }

.hero__cta { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter); }

.hero__kicker {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .32em; text-transform: uppercase; color: var(--accent-hi);
}
.hero__kicker::before, .hero__kicker::after { content: ""; width: 44px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); flex: none; }

.hero__tagline {
  margin-top: 10px;
  font-family: var(--font-display); font-weight: 400; font-stretch: 100%;
  font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.35; color: var(--text);
}
.hero .actions { justify-content: center; margin-top: clamp(20px, 3vh, 32px); }

.hero__foot { position: relative; z-index: 2; margin-top: auto; padding: 26px var(--gutter) 24px; }

.now-chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 14px;
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
  background: rgba(8, 9, 12, .55); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .3s, color .3s;
}
.now-chip strong { color: var(--white); font-weight: 600; }
.now-chip:hover { border-color: var(--accent); color: var(--text); }
.now-chip svg { width: 12px; height: 12px; color: var(--accent-hi); }

.pulse { position: relative; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

@media (max-width: 760px) {
  /* phones: keep logo, text and chip together in the middle of the screen */
  .hero { justify-content: center; }
  .hero__foot { margin-top: 0; padding-top: 30px; }
  .hero__kicker { gap: 10px; font-size: .7rem; letter-spacing: .16em; }
  .hero__kicker::before, .hero__kicker::after { width: 18px; }
  .now-chip { white-space: nowrap; gap: 10px; padding: 9px 12px; font-size: .66rem; letter-spacing: .12em; }
  .hero .actions { align-self: stretch; }
  .hero .actions .btn { flex: 1 1 100%; }
}

/* the small header logo appears only after scrolling past the big one */
.site-header[data-hero-logo] .brand { transition: opacity .4s, visibility .4s; }
.site-header[data-hero-logo]:not(.is-scrolled) .brand { opacity: 0; visibility: hidden; }

/* intro animation (only when JS runs) */
.js .hero__brand img { opacity: 0; transform: scale(1.05); transition: opacity 1.8s ease, transform 3s var(--ease); }
.js [data-intro] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .is-loaded .hero__brand img { opacity: 1; transform: none; }
.js .is-loaded [data-intro] { opacity: 1; transform: none; }

/* ---------- sections ---------- */

.section { position: relative; padding: clamp(96px, 12vw, 168px) 0; }
.section--line::before {
  content: ""; position: absolute; top: 0; left: max(var(--gutter), (100% - var(--max)) / 2); right: max(var(--gutter), (100% - var(--max)) / 2);
  height: 1px; background: linear-gradient(90deg, var(--accent) 0 56px, var(--line) 56px);
}
.sec-head { margin-bottom: clamp(44px, 6vw, 76px); }
.sec-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.sec-head--split .sec-intro { max-width: 46ch; color: var(--text-2); }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- games ---------- */

.feature { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: stretch; }
/* the key art fills the height of the text column; the city edges crop first */
.feature__media { min-height: 420px; }
.feature__media img { position: absolute; inset: 0; object-position: 50% 45%; }
.status {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-hi);
}
.feature__title {
  margin-top: 18px;
  font-family: var(--font-display); font-weight: 800; font-stretch: 112%;
  font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: .95; text-transform: uppercase; letter-spacing: .01em; color: var(--white);
}
.feature__sub {
  margin-top: 12px; font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  letter-spacing: .34em; text-transform: uppercase; color: var(--silver);
}
.feature__text { margin-top: 24px; color: var(--text-2); }
.feature .actions { margin-top: 32px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; border-top: 1px solid var(--line); }
.facts div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 20px; }
.facts dt { font-family: var(--font-display); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin-top: 4px; font-size: .98rem; line-height: 1.45; color: var(--text); }

.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(28px, 4vw, 48px); }
.strip .frame { --cut: 14px; aspect-ratio: 16 / 9; width: 100%; }
.strip-note { margin-top: 14px; font-size: .85rem; color: var(--text-3); }

.next-project {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(48px, 6vw, 80px); padding: 26px 30px;
  border: 1px dashed var(--line-2); color: var(--text-2);
}
.next-project strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .04em; color: var(--text); }

@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media { min-height: 0; aspect-ratio: 1672 / 940; }
}
@media (max-width: 600px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip li:nth-child(3) { display: none; }
  .facts { grid-template-columns: 1fr; }
  .feature .actions .btn { flex: 1 1 100%; }
}

/* ---------- about ---------- */

.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-1) 100%); }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.portrait { --cut: 26px; aspect-ratio: 4 / 5; position: sticky; top: calc(var(--header-h) + 28px); }
.portrait figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 60px 26px 24px;
  background: linear-gradient(0deg, rgba(8, 9, 12, .92), rgba(8, 9, 12, 0));
  font-size: .9rem; color: var(--text-2);
}
.portrait figcaption strong {
  display: block; margin-bottom: 4px;
  font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--white);
}
.about__body .lead { margin-top: 28px; }
.about__body > p:not(.lead) { color: var(--text-2); }

.pillars { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; border-top: 1px solid var(--line); }
.pillar { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); }
.pillar:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.pillar__num { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .16em; color: var(--accent-hi); }
.pillar h3 { margin-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; letter-spacing: .01em; color: var(--white); }
.pillar p { margin-top: 8px; font-size: .97rem; line-height: 1.6; color: var(--text-2); }

@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 460px; position: relative; top: 0; }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(even) { padding: 24px 0; border-left: 0; }
}

/* ---------- vision ---------- */

.vision {
  overflow: hidden; background:
    radial-gradient(60% 70% at 85% 40%, rgba(216, 32, 42, .1), transparent 70%),
    var(--bg-1);
}
.vision__mark { position: absolute; z-index: 0; right: -6%; top: 50%; width: min(56vw, 720px); transform: translateY(-50%); pointer-events: none; }
/* a blood moon like the logo's: two rings draw themselves, then the glow rises */
.vision__mark .vm-glow { opacity: 0; transition: opacity 2.6s ease 1s; }
.vision__mark .vm-line { fill: none; stroke: rgba(255, 97, 86, .42); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.2s var(--ease) .2s; }
.vision__mark .vm-line--outer { stroke: rgba(196, 206, 218, .14); transition-delay: .6s; }
.vision.is-in .vm-line, .no-motion .vm-line { stroke-dashoffset: 0; }
.vision.is-in .vm-glow, .no-motion .vm-glow { opacity: 1; }
.vision .wrap { position: relative; z-index: 1; }

.vision__statement { max-width: 15ch; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: .98; font-weight: 700; }
.vision__statement span { display: block; color: transparent; -webkit-text-stroke: 1px rgba(196, 206, 218, .7); }
.vision .lead { max-width: 60ch; margin-top: 36px; color: var(--text-2); }

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(20px, 4vw, 56px);
  align-items: stretch; margin-top: clamp(48px, 6vw, 80px); max-width: 1000px;
}
.split h3 { font-family: var(--font-display); font-weight: 600; font-size: .86rem; letter-spacing: .3em; text-transform: uppercase; color: var(--white); }
.split ul { margin-top: 18px; }
.split li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--line); color: var(--text-2); }
.split li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border: 1px solid var(--accent-hi); transform: rotate(45deg);
}
.split__join { position: relative; width: 1px; background: var(--line-2); }
.split__join::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 10px; transform: translate(-50%, -50%);
  background: var(--accent); box-shadow: 0 0 16px var(--accent-glow);
  clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%);
}
.commit {
  display: flex; gap: 18px; margin-top: clamp(48px, 6vw, 72px); max-width: 64ch;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.45; color: var(--text);
}
.commit::before { content: ""; flex: none; width: 2px; background: var(--accent); }

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split__join { width: 100%; height: 1px; }
  .vision__mark { width: 120vw; right: -50%; top: 18%; opacity: .7; }
}

/* ---------- news ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button {
  padding: 9px 16px; border: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 500; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
  transition: border-color .25s, color .25s, background-color .25s;
}
.filters button:hover { color: var(--text); border-color: var(--line-2); }
.filters button[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: rgba(216, 32, 42, .14); }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.post { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease); }
.post:hover { border-color: var(--line-2); }
.post[hidden] { display: none; }
.post__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.post__meta { display: flex; align-items: center; gap: 14px; font-size: .82rem; color: var(--text-3); }
.tag {
  padding: 3px 8px; border: 1px solid rgba(255, 97, 86, .45);
  font-family: var(--font-display); font-weight: 600; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-hi);
}
.post h3 { margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; color: var(--white); }
.post p { margin-top: 10px; font-size: .96rem; line-height: 1.6; color: var(--text-2); }
.post .link-arrow { margin-top: auto; padding-top: 20px; align-self: flex-start; }

.post--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.post--lead .post__media { height: 100%; aspect-ratio: auto; min-height: 300px; }
.post--lead .post__body { padding: clamp(26px, 3.4vw, 48px); justify-content: center; }
.post--lead h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }

.play {
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; transform: translate(-50%, -50%);
  display: grid; place-items: center; background: rgba(8, 9, 12, .55); border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: background-color .3s;
}
.play svg { width: 22px; height: 22px; margin-left: 4px; color: #fff; }
.post__media:hover .play, .post__media:focus-visible .play { background: var(--accent); }

.posts__empty { padding: 40px 0; color: var(--text-3); }
.news__follow { margin-top: 40px; font-size: .95rem; color: var(--text-3); }

@media (max-width: 960px) {
  .posts { grid-template-columns: 1fr 1fr; }
  .post--lead { grid-template-columns: 1fr; }
  .post--lead .post__media { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 640px) {
  .posts { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */

.contact { background: var(--bg-1); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro .lead { margin-top: 28px; color: var(--text-2); }
.contact__method { margin-top: 36px; }
.contact__pending {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  border: 1px solid var(--line); color: var(--text-2); font-size: .98rem;
}
.contact__pending .pulse { background: var(--text-3); }
.contact__pending .pulse::after { border-color: var(--text-3); }
.contact__email {
  display: inline-block; margin-top: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: .01em; color: var(--white);
  border-bottom: 2px solid var(--accent); word-break: break-all;
}
.contact__label { font-family: var(--font-display); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-3); }
.contact__method .actions { margin-top: 22px; }

.topics { border-top: 1px solid var(--line); }
.topics li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.topics .pillar__num { padding-top: 4px; }
.topics h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--white); }
.topics p { margin-top: 6px; font-size: .96rem; line-height: 1.6; color: var(--text-2); }
.topics a { color: var(--accent-hi); border-bottom: 1px solid rgba(255, 97, 86, .4); }
.topics a:hover { border-bottom-color: var(--accent-hi); }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-footer { position: relative; padding: 72px 0 36px; background: #050608; border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand img { height: 46px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 34ch; font-size: .92rem; color: var(--text-3); }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 56px; align-content: start; }
.footer__nav a { font-family: var(--font-display); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); transition: color .25s; }
.footer__nav a:hover { color: var(--white); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-3);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { color: var(--text-2); transition: color .25s; }
.footer__legal a:hover, .footer__legal a[aria-current] { color: var(--white); }

/* ---------- media viewer ---------- */

.viewer {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--text);
}
.viewer::backdrop { background: rgba(3, 4, 6, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer[open] { display: grid; place-items: center; animation: viewer-in .4s var(--ease); }
@keyframes viewer-in { from { opacity: 0; transform: scale(.98); } }
.viewer__stage { width: min(92vw, 1400px, (100vh - 140px) * 16 / 9); aspect-ratio: 16 / 9; background: #000; }
.viewer__stage img, .viewer__stage video { width: 100%; height: 100%; object-fit: contain; }
.viewer__caption { position: fixed; left: 0; right: 0; bottom: 22px; padding: 0 70px; text-align: center; font-size: .9rem; color: var(--text-2); }
.viewer__btn {
  position: fixed; display: grid; place-items: center; width: 52px; height: 52px;
  background: rgba(16, 19, 25, .8); border: 1px solid var(--line-2); color: var(--white); transition: background-color .25s, border-color .25s;
}
.viewer__btn:hover { background: var(--accent); border-color: var(--accent); }
.viewer__btn svg { width: 18px; height: 18px; }
.viewer__close { top: 18px; right: 18px; }
.viewer__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.viewer__next { right: 18px; top: 50%; transform: translateY(-50%); }
.viewer__btn[hidden] { display: none; }

/* ---------- game page ---------- */

.page-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 0; }
.crumbs { display: flex; gap: 10px; font-family: var(--font-display); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { color: var(--accent-hi); }
.page-hero__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-top: 28px; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 800; font-stretch: 116%;
  font-size: clamp(3rem, 9vw, 8rem); line-height: .86; letter-spacing: .01em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #e3e8ee 55%, #9ba7b5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero__sub { margin-top: 18px; font-family: var(--font-display); font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--silver); font-size: .92rem; }
.page-hero__aside .lead { color: var(--text-2); }
.page-hero__aside .actions { margin-top: 26px; }
.page-hero__art { margin-top: clamp(40px, 5vw, 64px); aspect-ratio: 1672 / 940; --cut: 28px; }

.factbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.factbar div { padding: 18px 20px 18px 0; }
.factbar div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.factbar dt { font-family: var(--font-display); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); }
.factbar dd { margin-top: 4px; font-size: .96rem; line-height: 1.45; }

.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__text p { color: var(--text-2); }
.story__text .lead { color: var(--text); }
.story__quote {
  margin-top: 36px; padding-left: 22px; border-left: 2px solid var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .2em; text-transform: uppercase; color: var(--white);
}

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card h3 { margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; color: var(--white); }
.card p { margin-top: 8px; font-size: .97rem; line-height: 1.6; color: var(--text-2); }

.bosses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.bosses .frame { --cut: 18px; aspect-ratio: 16 / 9; }

.locations { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.location { grid-column: span 2; }
.location:nth-child(-n+2) { grid-column: span 3; }
.location .frame { --cut: 16px; aspect-ratio: 16 / 9; }
.location h3 { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: .06em; text-transform: uppercase; color: var(--white); }
.location h3 span { font-size: .72rem; letter-spacing: .2em; color: var(--accent-hi); }
.location p { margin-top: 6px; font-size: .95rem; line-height: 1.55; color: var(--text-2); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.gallery .frame { --cut: 14px; aspect-ratio: 16 / 9; width: 100%; }

.trailer__player { --cut: 24px; aspect-ratio: 16 / 9; background: #000; }
.trailer__player video { width: 100%; height: 100%; object-fit: cover; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; color: var(--white); max-width: 22ch; }

@media (max-width: 960px) {
  .page-hero__head, .story { grid-template-columns: 1fr; }
  .factbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factbar div, .factbar div + div { padding: 16px 16px 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .factbar div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .factbar div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-bottom: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .locations { grid-template-columns: 1fr 1fr; }
  .location, .location:nth-child(-n+2) { grid-column: span 1; }
  .location:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .cards, .bosses, .locations, .gallery { grid-template-columns: 1fr; }
  .page-hero__aside .actions .btn { flex: 1 1 100%; }
}

/* ---------- brand page ---------- */

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--line); }
.swatch i { display: block; height: 96px; }
.swatch div { padding: 14px 16px; }
.swatch strong { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; }
.swatch code { font-size: .86rem; color: var(--text-2); }

.logo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.logo-tile { display: flex; flex-direction: column; border: 1px solid var(--line); }
.logo-tile__art { display: grid; place-items: center; min-height: 260px; padding: 40px; background: var(--bg-2); }
.logo-tile__art--black { background: #000; }
.logo-tile__art img { max-height: 170px; width: auto; }
.logo-tile__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px 20px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--text-2); }
.logo-tile__meta strong { color: var(--text); font-weight: 500; }
.dl { display: flex; flex-wrap: wrap; gap: 14px; }
.dl a { font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-hi); }
.dl a:hover { color: var(--white); }

.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.rules li { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: .97rem; }
.rules li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.rules strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; color: var(--white); font-size: 1.05rem; }

.type-specimen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.type-specimen > div { padding: 30px; border: 1px solid var(--line); }
.type-specimen .big { font-size: 3rem; line-height: 1; color: var(--white); }

@media (max-width: 760px) {
  .logo-tiles, .type-specimen { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .rules li + li { padding-left: 0; border-left: 0; }
}

/* ---------- legal pages (Impressum, Datenschutz) ---------- */

.page-hero--legal .page-hero__head { grid-template-columns: 1fr; }
.page-hero--legal h1 { font-size: clamp(2.2rem, 8vw, 5.5rem); hyphens: auto; }
.section--legal { padding-top: clamp(48px, 6vw, 80px); }
.legal > * { max-width: 74ch; }
.legal h2 { margin: 56px 0 14px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; color: var(--white); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin: 28px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--white); }
.legal p, .legal li { color: var(--text-2); }
.legal ul { display: grid; gap: 6px; margin-top: 1.1em; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 1px; background: var(--accent-hi); }
.legal a { color: var(--accent-hi); border-bottom: 1px solid rgba(255, 97, 86, .4); overflow-wrap: anywhere; }
.legal a:hover { border-bottom-color: var(--accent-hi); }
.legal strong { color: var(--text); font-weight: 600; }
.legal .stand { margin-top: 56px; font-size: .9rem; color: var(--text-3); }
/* marks data that is still missing; must be gone before going online */
.legal .todo { padding: 0 6px; background: var(--accent); color: #fff; font-weight: 600; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js [data-intro], .js .hero__brand img { opacity: 1; transform: none; }
  .hero__particles { display: none; }
}
