:root {
  --ink: #111316;
  --paper: #ebe7de;
  --paper-soft: #d8d2c6;
  --night: #080a0c;
  --ember: #cf5a35;
  --line: rgba(17, 19, 22, 0.18);
  --header-height: 92px;
  --page-pad: clamp(22px, 5vw, 76px);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::selection { color: #fff; background: var(--ember); }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 12px 16px;
  color: #fff;
  background: var(--night);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  color: #fff;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.52);
  font-family: var(--serif);
  font-size: 24px;
  transform: rotate(45deg);
}
.brand-mark > span { transform: rotate(-45deg); }
.brand-words { display: flex; flex-direction: column; line-height: .88; text-transform: uppercase; }
.brand-words strong { font-family: var(--serif); font-size: 16px; letter-spacing: .12em; }
.brand-words span { margin-top: 6px; font-size: 9px; letter-spacing: .44em; opacity: .72; }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 58px); }
.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: .78;
  transition: opacity 180ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: var(--night);
}
.hero-art, .hero-shade, .hex-field { position: absolute; inset: 0; }
.hero-art {
  inset: -5%;
  background-image: url("assets/studio-hero.webp");
  background-position: center 42%;
  background-size: cover;
  transform: scale(1.04);
  will-change: transform;
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(5,7,9,.92) 0%, rgba(5,7,9,.72) 37%, rgba(5,7,9,.15) 70%, rgba(5,7,9,.5) 100%),
    linear-gradient(0deg, rgba(5,7,9,.87) 0%, transparent 35%, rgba(5,7,9,.35) 100%);
}
.hex-field {
  opacity: .12;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.34) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.34) 87.5%, rgba(255,255,255,.34)),
    linear-gradient(150deg, rgba(255,255,255,.34) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.34) 87.5%, rgba(255,255,255,.34)),
    linear-gradient(30deg, rgba(255,255,255,.34) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.34) 87.5%, rgba(255,255,255,.34)),
    linear-gradient(150deg, rgba(255,255,255,.34) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.34) 87.5%, rgba(255,255,255,.34)),
    linear-gradient(60deg, rgba(255,255,255,.18) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,.18) 75%);
  background-position: 0 0, 0 0, 38px 67px, 38px 67px, 0 0;
  background-size: 76px 134px;
  mask-image: linear-gradient(90deg, black, transparent 68%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  max-width: 1040px;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) var(--page-pad) 100px;
}
.eyebrow {
  margin: 0 0 22px;
  color: var(--ember);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow.light { color: #e2ad8d; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; color: #e8b399; }
.hero .eyebrow span { width: 24px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h1 { margin-bottom: 24px; font-size: clamp(58px, 8vw, 122px); line-height: .82; }
h1 > span { display: block; white-space: nowrap; }
.hero-copy { max-width: 530px; margin-bottom: 34px; color: rgba(255,255,255,.76); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; }
.button {
  display: inline-flex;
  width: fit-content;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 0 23px;
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  background: rgba(8,10,12,.24);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}
.button span { font-size: 18px; transition: transform 220ms ease; }
.button:hover, .button:focus-visible { color: var(--night); background: #fff; border-color: #fff; }
.button:hover span, .button:focus-visible span { transform: translate(3px, -3px); }
.scroll-cue {
  position: absolute;
  z-index: 3;
  right: var(--page-pad);
  bottom: 36px;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 18px;
  color: rgba(255,255,255,.66);
  font-size: 10px;
  letter-spacing: .19em;
  text-decoration: none;
  text-transform: uppercase;
}
.scroll-cue span:last-child { font-size: 19px; animation: float 1.8s ease-in-out infinite; }

.section { padding: clamp(92px, 13vw, 190px) var(--page-pad); }
.manifesto { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(340px, 1.1fr); gap: clamp(60px, 10vw, 160px); }
.section-heading h2, .contact h2 { margin: 0; font-size: clamp(54px, 7vw, 106px); line-height: .88; }
.manifesto-intro { max-width: 680px; margin-bottom: 74px; font-family: var(--serif); font-size: clamp(25px, 3vw, 42px); line-height: 1.25; }
.principles { margin: 0; padding: 0; list-style: none; }
.principles li { display: grid; grid-template-columns: 46px 1fr; gap: 26px; padding: 30px 0; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles > li > span { padding-top: 4px; color: var(--ember); font-size: 11px; letter-spacing: .15em; }
.principles h3 { margin-bottom: 8px; font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); font-weight: 400; }
.principles p { max-width: 520px; margin-bottom: 0; color: rgba(17,19,22,.66); font-size: 14px; line-height: 1.6; }

.feature { position: relative; min-height: min(86vw, 920px); overflow: hidden; color: #fff; background: #15110f; }
.feature-art { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.feature:hover .feature-art { transform: scale(1.025); }
.feature-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,8,.88), rgba(10,8,8,.56) 40%, rgba(10,8,8,.04) 75%), linear-gradient(0deg, rgba(10,8,8,.68), transparent 50%); }
.feature-content { position: relative; z-index: 2; display: flex; min-height: min(86vw, 920px); width: min(560px, 52vw); flex-direction: column; justify-content: center; padding: 90px 0 90px var(--page-pad); }
.game-logo { width: min(500px, 44vw); margin: -15px 0 14px -28px; }
.feature-content > p:not(.eyebrow) { max-width: 470px; margin-bottom: 32px; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.65; }
.button-light { color: #17120f; background: #f0ece3; border-color: #f0ece3; backdrop-filter: none; }
.button-light:hover, .button-light:focus-visible { color: #fff; background: var(--ember); border-color: var(--ember); }

.contact { background: #dfd9cd; }
.contact-row { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(400px, 1.2fr); gap: 80px; align-items: end; margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-row > p { max-width: 420px; margin-bottom: 0; color: rgba(17,19,22,.68); line-height: 1.65; }
.email-link { display: inline-flex; min-height: 48px; align-items: center; gap: 18px; justify-self: end; font-family: var(--serif); font-size: clamp(18px, 2.2vw, 34px); text-decoration-thickness: 1px; text-underline-offset: 8px; }
.email-link span { color: var(--ember); transition: transform 220ms ease; }
.email-link:hover span, .email-link:focus-visible span { transform: translate(3px, -3px); }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; padding: 34px var(--page-pad); color: rgba(255,255,255,.6); background: var(--night); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: 14px; letter-spacing: .08em; text-decoration: none; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 26px; justify-content: end; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; }

.content-page { min-height: 100svh; color: var(--ink); background: var(--paper); }
.content-header { position: static; color: var(--ink); border-bottom: 1px solid var(--line); }
.content-header .brand-mark { border-color: rgba(17,19,22,.45); }
.content-main { width: min(780px, calc(100% - 44px)); margin: 0 auto; padding: clamp(70px, 10vw, 130px) 0; }
.content-main .eyebrow { margin-bottom: 18px; }
.content-main h1 { margin-bottom: 36px; font-size: clamp(52px, 8vw, 92px); line-height: .9; }
.content-main h2 { margin: 54px 0 15px; font-size: 30px; letter-spacing: -.02em; }
.content-main p, .content-main li { color: rgba(17,19,22,.72); font-size: 16px; line-height: 1.75; }
.content-main a { text-underline-offset: 4px; }
.content-main .meta { padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 13px; }
.back-link { display: inline-flex; min-height: 48px; align-items: center; margin-top: 44px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-enter { opacity: 0; transform: translateY(24px); animation: enter 800ms cubic-bezier(.2,.7,.2,1) forwards; }
.hero-enter:nth-child(2) { animation-delay: 90ms; }
.hero-enter:nth-child(3) { animation-delay: 180ms; }
.hero-enter:nth-child(4) { animation-delay: 270ms; }
@keyframes enter { to { opacity: 1; transform: translateY(0); } }
@keyframes float { 50% { transform: translateY(6px); } }

@media (max-width: 800px) {
  :root { --header-height: 76px; }
  .site-nav a:not(:last-child) { display: none; }
  .site-nav { gap: 0; }
  .brand-words strong { font-size: 14px; }
  .hero-content { justify-content: flex-end; padding-bottom: 118px; }
  h1 { font-size: clamp(46px, 12.5vw, 66px); }
  .scroll-cue { left: var(--page-pad); right: auto; bottom: 26px; }
  .manifesto { grid-template-columns: 1fr; gap: 60px; }
  .manifesto-intro { margin-bottom: 42px; }
  .feature, .feature-content { min-height: 760px; }
  .feature-art { object-position: 62% center; }
  .feature-shade { background: linear-gradient(0deg, rgba(10,8,8,.94) 0%, rgba(10,8,8,.63) 55%, rgba(10,8,8,.12) 100%); }
  .feature-content { width: 100%; justify-content: flex-end; padding: 80px var(--page-pad); }
  .game-logo { width: min(470px, 92vw); margin-left: -18px; }
  .contact-row { grid-template-columns: 1fr; gap: 34px; margin-top: 52px; }
  .email-link { justify-self: start; overflow-wrap: anywhere; }
  .footer { grid-template-columns: 1fr; justify-items: start; }
  .footer nav { justify-content: start; }
}

@media (max-width: 440px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand-words span { letter-spacing: .34em; }
  .hero-art { background-position: 60% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(5,7,9,.95), rgba(5,7,9,.55) 60%, rgba(5,7,9,.43)); }
  .hero-content { padding-bottom: 110px; }
  .hero-copy { font-size: 15px; }
  .button { width: 100%; gap: 16px; }
  .principles li { grid-template-columns: 36px 1fr; gap: 15px; }
  .feature, .feature-content { min-height: 700px; }
  .footer nav { flex-wrap: wrap; gap: 8px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero-enter { opacity: 1; transform: none; }
}
