/* Lamplight Studio / VEKARRA — tokens from Brand/VEKARRA-Brand-Kit/guidelines/BRAND-GUIDELINES.md */
@font-face { font-family: "Alegreya SC"; src: url("fonts/AlegreyaSC-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Alegreya SC"; src: url("fonts/AlegreyaSC-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Italic.ttf") format("truetype"); font-style: italic; font-display: swap; }

:root {
  --abyss: #0B0910;
  --panel: #14111A;
  --panel-2: #1B1722;
  --cream: #FAF0D1;
  --parchment: #E8D9AF;
  --brass: #C48C40;
  --gold-border: #8A7448;
  --lamp-gold: #FFC46E;
  --seal-red: #7A2E2E;
  --muted: #B9AE92;
  --steam-a: #2a475e;
  --steam-b: #1b2838;
  --display: "Alegreya SC", Georgia, serif;
  --body: "Alegreya Sans", system-ui, sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--cream);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: var(--lamp-gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--lamp-gold); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--abyss); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.eyebrow {
  font: 500 .95rem/1 var(--display);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-border); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 1.05rem/1 var(--display); letter-spacing: .06em;
  text-decoration: none; border-radius: var(--radius);
  padding: 14px 22px; min-height: 48px;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 18px 28px; font-size: 1.15rem; min-height: 58px; }
.btn--sm { padding: 10px 16px; font-size: .95rem; min-height: 40px; }
.btn--steam {
  color: #fff;
  background: linear-gradient(180deg, #4c9c2e 0%, #3d7f25 100%);
  border: 1px solid #66b33e;
  box-shadow: 0 6px 24px rgba(76, 156, 46, .25);
}
.btn--steam:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(102, 179, 62, .38); }
.btn--ghost { color: var(--cream); border: 1px solid rgba(250, 240, 209, .45); background: rgba(11, 9, 16, .35); backdrop-filter: blur(4px); }
.btn--ghost:hover { border-color: var(--lamp-gold); color: var(--lamp-gold); }
.play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

.icon { width: 22px; height: 22px; background: currentColor; flex: none;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.btn--sm .icon { width: 18px; height: 18px; }
.icon--steam { --i: url("assets/icons/steam.svg"); }
.icon--youtube { --i: url("assets/icons/youtube.svg"); }
.icon--x { --i: url("assets/icons/x.svg"); }
.icon--bluesky { --i: url("assets/icons/bluesky.svg"); }
.icon--instagram { --i: url("assets/icons/instagram.svg"); }
.icon--tiktok { --i: url("assets/icons/tiktok.svg"); }
.icon--facebook { --i: url("assets/icons/facebook.svg"); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px var(--gutter);
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11, 9, 16, .88); backdrop-filter: blur(10px); border-bottom-color: rgba(138, 116, 72, .35); }
.nav__brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 800 1.15rem/1 var(--display); letter-spacing: .04em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--parchment); text-decoration: none; font: 500 1rem/1 var(--display); letter-spacing: .1em; opacity: .85; }
.nav__links a:hover { color: var(--lamp-gold); opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid rgba(138, 116, 72, .6); border-radius: var(--radius); overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: 500 .85rem/1 var(--display); letter-spacing: .1em; padding: 9px 10px; cursor: pointer; min-width: 40px; min-height: 36px; }
.lang button[aria-pressed="true"] { background: var(--gold-border); color: var(--abyss); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(11, 9, 16, .25), rgba(11, 9, 16, .78) 70%),
    linear-gradient(180deg, rgba(11, 9, 16, .55) 0%, transparent 25%, transparent 60%, var(--abyss) 100%); }
.hero__content { width: min(860px, 100% - 2 * var(--gutter)); text-align: center; padding: 120px 0 90px; }
.hero__content .eyebrow { justify-content: center; }
.hero__content .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold-border); }
.hero__title img { width: min(620px, 92%); height: auto; margin: 6px auto 18px; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .7)); }
.hero__tagline { font: 500 clamp(1.3rem, 2.6vw, 1.75rem)/1.3 var(--display); color: var(--lamp-gold); letter-spacing: .04em; text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.hero__lede { max-width: 620px; margin: 0 auto 30px; color: var(--parchment); text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero__meta { margin-top: 22px; font-size: .95rem; color: var(--muted); letter-spacing: .04em; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1px solid rgba(250, 240, 209, .5); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--lamp-gold); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }

/* ---------- Steam widget ---------- */
.widget { padding: 0 var(--gutter); margin-top: -40px; position: relative; z-index: 2; }
.widget__frame { max-width: 646px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); border: 1px solid rgba(138, 116, 72, .35); background: var(--steam-b); }
.widget__frame iframe { display: block; width: 100%; height: 190px; border: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) var(--gutter); }
.section > * { max-width: var(--max); margin-inline: auto; }
.section--dark { background: linear-gradient(180deg, var(--abyss), #07060a); }
.section--panel { background: var(--panel); border-block: 1px solid rgba(138, 116, 72, .25); }
.section__head { margin-bottom: 48px; }
.section__head h2 { max-width: 780px; }
.section__lede { max-width: 720px; color: var(--parchment); margin-top: 18px; font-size: 1.2rem; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--panel); border: 1px solid rgba(138, 116, 72, .3); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s ease, transform .2s ease; }
.pillar:hover { border-color: var(--brass); transform: translateY(-3px); }
.pillar img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.pillar__body { padding: 24px 24px 28px; position: relative; }
.pillar__num { position: absolute; top: -22px; right: 20px; font: 800 2.2rem/1 var(--display); color: var(--brass); text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.pillar h3 { margin-bottom: 12px; color: var(--cream); }
.pillar p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Trailer */
.trailer { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(138, 116, 72, .35); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: #000; }
.trailer video { width: 100%; aspect-ratio: 16 / 9; }

/* Gallery */
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery li { grid-column: span 2; }
.gallery li:nth-child(1), .gallery li:nth-child(2) { grid-column: span 3; }
.gallery button { display: block; width: 100%; padding: 0; border: 1px solid rgba(138, 116, 72, .3); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--panel); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s ease, filter .3s ease; filter: saturate(.92); }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.04); filter: saturate(1.05); }

/* Early access */
.ea { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.ea__body p { color: var(--parchment); }
.ea__body p:last-child { color: var(--muted); margin: 0; }

/* Studio */
.studio { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; max-width: none; }
.studio > * { margin: 0; }
.studio { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.studio__lockup { width: 100%; height: auto; }
.studio__text p { color: var(--parchment); font-size: 1.2rem; }
.studio__text p:last-child { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Follow */
.socials { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; min-height: 48px; border-radius: var(--radius); text-decoration: none; color: var(--cream); background: var(--panel-2); border: 1px solid rgba(138, 116, 72, .35); font: 500 1rem/1 var(--display); letter-spacing: .06em; transition: border-color .2s ease, color .2s ease, transform .15s ease; }
.social:hover { border-color: var(--lamp-gold); color: var(--lamp-gold); transform: translateY(-1px); }
.final-cta { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; }
.press { margin: 0; color: var(--muted); }

/* Footer */
.footer { padding: 36px var(--gutter) 48px; border-top: 1px solid rgba(138, 116, 72, .25); color: var(--muted); font-size: .92rem; text-align: center; }
.footer p { margin: 0 0 6px; }
.footer__legal { font-size: .8rem; opacity: .75; }

/* Lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 4, 8, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(1600px, 94vw); max-height: 86vh; border-radius: var(--radius); box-shadow: 0 30px 90px rgba(0, 0, 0, .8); }
.lightbox button { position: fixed; background: rgba(20, 17, 26, .8); color: var(--cream); border: 1px solid rgba(138, 116, 72, .5); border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { color: var(--lamp-gold); border-color: var(--lamp-gold); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 18px; top: 50%; translate: 0 -50%; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { display: grid; grid-template-columns: 1fr 1.2fr; }
  .pillar img { height: 100%; }
  .ea, .studio { grid-template-columns: 1fr; gap: 28px; }
  .studio__lockup { max-width: 520px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery li, .gallery li:nth-child(1), .gallery li:nth-child(2) { grid-column: span 1; }
  .gallery li:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 600px) {
  body { font-size: 1.05rem; }
  .nav__brand span { display: none; }
  .pillar { display: flex; }
  .hero__ctas .btn { width: 100%; }
  .widget { display: none; }
  .lightbox__nav { display: none; }
}
