/* =========================================================
   Merlot Games — corporate site styles
   ========================================================= */
:root {
  --bg: #0c0a10;
  --bg-2: #120e17;
  --surface: #17121d;
  --surface-2: #1f1827;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f1f7;
  --muted: #a99fb3;
  --faint: #6f6679;
  --brand: #b4288a;
  --brand-hi: #e04fb4;
  --brand-soft: rgba(180, 40, 138, 0.14);
  --ok: #4fd1a5;
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .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: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .75rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-hi); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head .lead { margin: 0; max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--h); padding: 0 1.4em; border-radius: 999px;
  font: 600 .95rem/1 var(--body); letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(180, 40, 138, .7); }
.btn--primary:hover { background: var(--brand-hi); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--sm { --h: 40px; font-size: .875rem; padding: 0 1.1em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: #fff; color: #0c0a10; border: 1px solid #fff;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(255,255,255,.45); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: .68rem; line-height: 1.1; opacity: .7; letter-spacing: .02em; }
.store-btn b { display: block; font: 600 1.05rem/1.15 var(--head); letter-spacing: -.01em; }
.store-btn--dark { background: transparent; color: var(--text); border-color: var(--line-strong); }
.store-btn--dark:hover { border-color: var(--text); box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(12, 10, 16, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 1.05rem/1 var(--head); letter-spacing: -.01em; }
.brand img { width: 42px; height: 42px; }
.brand span small { display: block; font: 500 .66rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.05); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .3s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; } .menu-toggle span::after { top: 6px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px; background: rgba(12,10,16,.97); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  }
  .nav a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; background: none !important; }
  body.menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  body.menu-open .site-header { background: rgba(12,10,16,.97); }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 clamp(56px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,10,16,.55) 0%, rgba(12,10,16,.15) 35%, rgba(12,10,16,.75) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(12,10,16,.85) 0%, rgba(12,10,16,.2) 60%);
}
.hero h1 { max-width: 15ch; }
.hero .lead { color: #d8d0de; margin-bottom: 2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); font-size: .85rem; margin-bottom: 1.4rem; }
.hero-badge b { background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-badge:hover { border-color: var(--text); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stat { padding: clamp(22px, 3vw, 36px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 600 clamp(2rem, 3.6vw, 2.8rem)/1 var(--head); letter-spacing: -.03em; margin-bottom: 10px; }
.stat b em { font-style: normal; color: var(--brand-hi); }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Featured (split) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split-media { order: 2; }
.split-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); position: relative; }
.split-media img, .split-media video { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev .split-media { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: #ddd5e3; }
.check-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23e04fb4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5'/%3E%3C/svg%3E") center/100% no-repeat; }

/* ---------- Game cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 960px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .game-grid { grid-template-columns: 1fr; } }
.game-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.game-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.game-card-media { aspect-ratio: 1/1; overflow: hidden; background: var(--surface-2); }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.game-card:hover .game-card-media img { transform: scale(1.05); }
.game-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card-body h3 { margin: 0; }
.game-card-body p { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }
.game-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.game-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; margin-top: 4px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.game-card-foot .arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background .3s, border-color .3s; }
.game-card:hover .arrow { background: var(--brand); border-color: var(--brand); color: #fff; }
.game-card > a.cover { position: absolute; inset: 0; z-index: 2; }
.game-card .status { position: absolute; top: 14px; left: 14px; z-index: 1; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 500; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #d9d1df; white-space: nowrap; }
.chip--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(79,209,165,.2); }
.chip--soon { background: rgba(12,10,16,.75); border-color: var(--line-strong); backdrop-filter: blur(6px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font: 500 .9rem/1 var(--body); cursor: pointer; transition: all .2s; }
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.game-card.is-hidden { display: none; }

/* ---------- Services / capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }
.cap { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; border: 1px solid var(--line); isolation: isolate; }
.cap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,10,16,0) 20%, rgba(12,10,16,.92) 78%); }
.cap:hover img { transform: scale(1.05); }
.cap div { padding: 24px; }
.cap .num { font: 600 .8rem/1 var(--head); color: var(--brand-hi); letter-spacing: .1em; display: block; margin-bottom: 10px; }
.cap p { color: #cfc6d6; font-size: .93rem; margin: 0; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value { background: var(--surface); padding: 32px 28px; }
.value .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-hi); display: grid; place-items: center; margin-bottom: 22px; }
.value .icon svg { width: 22px; height: 22px; }
.value p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.member { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 1.05rem/1 var(--head); color: #fff; background: linear-gradient(135deg, var(--brand), #5b1a74); }
.member b { display: block; font-family: var(--head); font-weight: 600; }
.member span { color: var(--muted); font-size: .88rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; padding: clamp(40px, 7vw, 88px); isolation: isolate; border: 1px solid var(--line); }
.cta-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(90, 14, 70, .96) 0%, rgba(140, 26, 106, .82) 45%, rgba(12,10,16,.35) 100%); }
.cta-band h2 { max-width: 16ch; }
.cta-band p { max-width: 48ch; color: #f1dcea; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 160px 0 clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; width: 900px; height: 900px; top: -520px; left: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(180,40,138,.28), transparent); z-index: -1; pointer-events: none; }
.page-hero h1 { max-width: 18ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--faint); margin-bottom: 20px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); }

/* ---------- Game detail ---------- */
.game-hero { position: relative; min-height: min(88svh, 820px); display: flex; align-items: flex-end; padding: 150px 0 clamp(40px, 6vw, 72px); isolation: isolate; overflow: hidden; }
.game-hero .bg { position: absolute; inset: 0; z-index: -2; }
.game-hero .bg img, .game-hero .bg video { width: 100%; height: 100%; object-fit: cover; }
.game-hero .bg.is-blur img { filter: blur(40px) saturate(1.3); transform: scale(1.2); opacity: .55; }
.game-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,10,16,.5) 0%, rgba(12,10,16,.2) 30%, rgba(12,10,16,.85) 75%, var(--bg) 100%), linear-gradient(90deg, rgba(12,10,16,.9) 0%, rgba(12,10,16,0) 70%); }
.game-hero-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 36px); align-items: end; }
.game-icon { width: clamp(96px, 13vw, 168px); aspect-ratio: 1; border-radius: 26%; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); background: var(--surface); }
.game-icon img { width: 100%; height: 100%; object-fit: cover; }
.game-hero h1 { margin-bottom: .25em; }
.game-hero .tagline { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: #ddd3e3; max-width: 56ch; margin-bottom: 1.4rem; }
.game-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.6rem; }
.game-hero .logo-art { max-width: min(460px, 80%); margin-bottom: 1.2rem; filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
@media (max-width: 700px) { .game-hero-inner { grid-template-columns: 1fr; } }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .game-layout { grid-template-columns: 1fr; } }
.prose { color: #d9d1df; font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 0; color: var(--text); }
.prose h3 { margin-top: 2em; color: var(--text); }
.prose p { max-width: 70ch; }

.facts { position: sticky; top: 100px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.facts h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-family: var(--body); padding: 22px 24px 0; }
.facts dl { margin: 0; padding: 8px 24px 12px; }
.facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); flex: none; }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.facts .facts-actions { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.facts .facts-actions .store-btn { width: 100%; }
@media (max-width: 960px) { .facts { position: static; } }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.feature .icon { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-hi); display: grid; place-items: center; margin-bottom: 14px; font: 600 .85rem/1 var(--head); }
.feature b { display: block; font-family: var(--head); font-weight: 600; margin-bottom: 4px; color: var(--text); }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gallery > * { grid-column: span 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; position: relative; padding: 0; }
.gallery > .wide { grid-column: span 8; grid-row: span 2; }
.gallery > .half { grid-column: span 6; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; transition: transform .6s var(--ease); }
.gallery.square img { aspect-ratio: 1; }
.gallery > *:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .gallery > *, .gallery > .wide, .gallery > .half { grid-column: span 12; grid-row: auto; } }

.clips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.clips video { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: #000; }
@media (max-width: 640px) { .clips { grid-template-columns: 1fr; } }

.req { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req > div { padding: 22px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.req h4 { font-size: 1rem; margin-bottom: 12px; }
.req ul { list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--muted); display: grid; gap: 8px; }
.req ul b { color: var(--text); font-weight: 500; }
@media (max-width: 640px) { .req { grid-template-columns: 1fr; } }

.quote-card { padding: 28px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(180,40,138,.18), rgba(180,40,138,.04)); border: 1px solid rgba(180,40,138,.35); }
.quote-card p { margin: 0; color: #eadfee; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,5,8,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 86vh; border-radius: 12px; object-fit: contain; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1.3rem; }
.lightbox button:hover { background: rgba(255,255,255,.14); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .85rem; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, transform .3s var(--ease); }
a.contact-card:hover { border-color: var(--brand); transform: translateY(-4px); }
.contact-card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-hi); display: grid; place-items: center; margin-bottom: 8px; }
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card b { font: 600 1.1rem/1.3 var(--head); word-break: break-word; }
.contact-card span { color: var(--muted); font-size: .92rem; }

/* ---------- Jobs ---------- */
.job-list { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.job h3 { margin: 0 0 6px; }
.job .meta { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 600px) { .job { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), rgba(180,40,138,.1)); }
.timeline li { position: relative; padding: 0 0 30px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand-hi); }
.timeline time { display: block; font: 600 .78rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-hi); margin-bottom: 8px; }
.timeline b { font-family: var(--head); font-weight: 600; font-size: 1.08rem; }
.timeline p { color: var(--muted); margin: 4px 0 0; font-size: .94rem; }

/* ---------- Platform strip ---------- */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .platforms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .platforms { grid-template-columns: 1fr; } }
.platform { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.platform svg { width: 34px; height: 34px; flex: none; color: var(--text); }
.platform b { display: block; font: 600 1.08rem/1.2 var(--head); }
.platform span { color: var(--muted); font-size: .9rem; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; color: #d4ccda; }
.legal h2, .legal h3, .legal h4 { font-size: 1.3rem; color: var(--text); margin: 2.2em 0 .7em; }
.legal h1 { font-size: 1.6rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal li p { margin: 0; }
.legal a { color: var(--brand-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .85rem; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(56px, 8vw, 88px) 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
.footer-about p { color: var(--muted); max-width: 36ch; margin: 18px 0 22px; font-size: .95rem; }
.site-footer h4 { font: 600 .75rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); font-size: .94rem; transition: color .2s; }
.site-footer ul a:hover { color: var(--text); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted); transition: all .2s; }
.socials a:hover { color: #fff; background: var(--brand); border-color: var(--brand); }
.socials svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; } .center .lead { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack-lg > * + * { margin-top: clamp(48px, 7vw, 88px); }
.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: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
