:root {
  color-scheme: dark;
  --ink: #080a12;
  --panel: #111525;
  --paper: #f4f0e7;
  --white: #fffdf7;
  --cyan: #4de3ff;
  --coral: #ff5d52;
  --lemon: #ffd447;
  --mint: #76f7b4;
  --line: rgba(255, 255, 255, 0.17);
  --muted: #a9afc2;
  --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; overflow-x: hidden; background: var(--ink); color: var(--white); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 82px;
  padding: 18px clamp(20px, 4.5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 13px; justify-self: start; font-size: 18px; font-weight: 900; letter-spacing: 0.08em; }
.brand-mark { position: relative; display: grid; grid-template-columns: repeat(2, 8px); gap: 3px; width: 25px; height: 25px; transform: rotate(-8deg); }
.brand-mark i { display: block; width: 8px; height: 10px; border-radius: 50%; background: var(--cyan); }
.brand-mark i:nth-child(2) { background: var(--coral); }
.brand-mark i:nth-child(3) { background: var(--lemon); }
.brand-mark i:nth-child(4) { background: var(--mint); }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); color: rgba(255,255,255,0.72); font-size: 12px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.site-header nav a, .header-cta { transition: color 160ms ease; }
.site-header nav a:hover, .site-header nav a:focus-visible, .header-cta:hover, .header-cta:focus-visible { color: var(--cyan); }
.header-cta { justify-self: end; font-size: 12px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  align-items: end;
  min-height: 94svh;
  padding: 150px clamp(24px, 7vw, 116px) clamp(52px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media, .hero-shade { position: absolute; inset: 0; z-index: -2; }
.hero-media {
  background:
    linear-gradient(120deg, rgba(77, 227, 255, 0.18), transparent 28%),
    linear-gradient(300deg, rgba(255, 93, 82, 0.18), transparent 34%),
    url("assets/literate-numerate-lobby.png") center 43% / cover no-repeat;
  filter: saturate(0.75) contrast(1.1);
  transform: scale(1.025);
}
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,10,18,0.97) 0%, rgba(8,10,18,0.76) 44%, rgba(8,10,18,0.34) 100%),
    linear-gradient(0deg, rgba(8,10,18,0.96) 0%, transparent 48%, rgba(8,10,18,0.54) 100%);
}

.hero-copy { max-width: 900px; }
.eyebrow { margin-bottom: 17px; color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: 0.19em; text-transform: uppercase; }
.hero h1 { margin-bottom: 22px; font-size: clamp(72px, 14vw, 212px); font-weight: 950; letter-spacing: 0; line-height: 0.76; }
.hero-line { margin-bottom: 34px; font-size: clamp(26px, 3.5vw, 54px); font-weight: 760; line-height: 1.02; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 51px; padding: 13px 20px; border: 1px solid currentColor; font-size: 12px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover, .button-light:focus-visible { background: var(--cyan); }
.hero-note { align-self: end; max-width: 320px; padding: 24px 0 0 24px; border-left: 1px solid rgba(255,255,255,0.3); }
.hero-note span { color: var(--lemon); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; }
.hero-note p { margin: 16px 0 0; color: rgba(255,255,255,0.72); font-size: 15px; line-height: 1.55; }

.ticker { display: flex; align-items: center; justify-content: space-around; gap: 22px; min-height: 84px; padding: 20px clamp(20px, 5vw, 76px); background: var(--coral); color: #120b10; font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.ticker b { width: 7px; height: 7px; border-radius: 50%; background: var(--lemon); }

.games-section { padding: clamp(82px, 10vw, 150px) clamp(20px, 6.5vw, 108px); background: var(--paper); color: var(--ink); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr); gap: clamp(42px, 10vw, 170px); align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-intro .eyebrow { color: #167287; }
.section-intro h2, .studio-section h2, .contact-section h2 { margin-bottom: 0; font-size: clamp(48px, 7vw, 104px); font-weight: 900; letter-spacing: 0; line-height: 0.92; }
.section-intro > p { max-width: 560px; margin-bottom: 5px; color: #4d4f56; font-size: 18px; line-height: 1.65; }

.game-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.55fr); border-top: 2px solid var(--ink); }
.game-image { position: relative; align-self: start; margin-top: 28px; overflow: hidden; background: #050815; }
.game-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 500ms ease; }
.game-image:hover img { transform: scale(1.018); }
.game-image span { position: absolute; top: 18px; left: 18px; padding: 9px 11px; background: var(--lemon); color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.game-copy { padding: 30px 0 24px clamp(26px, 5vw, 76px); }
.game-number { color: #74736f; font-size: 11px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.game-copy h3 { margin: 54px 0 22px; font-size: clamp(34px, 4.8vw, 72px); font-weight: 900; line-height: 0.95; }
.game-copy h3 i { color: #167287; font-style: normal; }
.game-copy > p:not(.game-number) { color: #4d4f56; font-size: 17px; line-height: 1.65; }
.game-copy dl { margin: 38px 0 0; border-top: 1px solid rgba(8,10,18,0.18); }
.game-copy dl div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(8,10,18,0.18); }
.game-copy dt { color: #74736f; font-size: 10px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.game-copy dd { margin: 0; font-size: 13px; font-weight: 800; }

.studio-section { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.7fr); gap: clamp(50px, 11vw, 190px); padding: clamp(90px, 12vw, 180px) clamp(20px, 7vw, 118px) clamp(140px, 15vw, 230px); overflow: hidden; background: var(--panel); }
.studio-section::before { content: ""; position: absolute; right: -8vw; bottom: -19vw; width: 55vw; aspect-ratio: 1; border: 1px solid rgba(77,227,255,0.18); border-radius: 50%; box-shadow: 0 0 0 7vw rgba(255,93,82,0.05), 0 0 0 15vw rgba(255,212,71,0.035); }
.studio-statement, .studio-copy { position: relative; z-index: 1; }
.studio-copy { padding-top: 34px; }
.studio-copy p { color: var(--muted); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.62; }
.studio-copy p + p { margin-top: 26px; }
.pack-marks { position: absolute; right: clamp(26px, 7vw, 118px); bottom: 42px; z-index: 1; display: flex; gap: 12px; }
.pack-marks span { position: relative; display: block; width: 46px; height: 52px; border: 1px solid var(--line); border-radius: 50% 50% 42% 42%; transform: rotate(8deg); }
.pack-marks span:nth-child(2) { border-color: rgba(255,93,82,0.55); transform: rotate(-8deg); }
.pack-marks span:nth-child(3) { border-color: rgba(255,212,71,0.55); transform: rotate(5deg); }
.pack-marks span:nth-child(4) { border-color: rgba(118,247,180,0.55); transform: rotate(-5deg); }
.pack-marks i { position: absolute; bottom: 8px; left: 50%; width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 50% 50% 45% 45%; transform: translateX(-50%); }

.contact-section { padding: clamp(90px, 11vw, 170px) clamp(20px, 7vw, 118px); background: var(--cyan); color: var(--ink); }
.contact-section .eyebrow { color: #103943; }
.contact-section h2 { max-width: 1050px; }
.contact-section > p:not(.eyebrow) { max-width: 620px; margin: 38px 0 30px; font-size: 18px; line-height: 1.65; }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover, .button-dark:focus-visible { background: var(--coral); color: var(--ink); }

footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 34px; padding: 34px clamp(20px, 5vw, 76px); background: #05060a; color: rgba(255,255,255,0.58); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-brand { color: var(--white); font-size: 15px; font-weight: 900; }
footer > div { display: flex; gap: 22px; }
footer a:hover, footer a:focus-visible { color: var(--cyan); }

.legal-body { background: var(--paper); color: var(--ink); }
.legal-body .site-header { position: static; border-color: rgba(8,10,18,0.15); background: var(--ink); color: var(--white); }
.legal-page { width: min(760px, calc(100% - 40px)); min-height: calc(100vh - 160px); margin: 0 auto; padding: clamp(70px, 10vw, 140px) 0; }
.legal-page .eyebrow { color: #167287; }
.legal-page h1 { margin-bottom: 42px; font-size: clamp(56px, 10vw, 110px); line-height: 0.9; }
.legal-page p { color: #4d4f56; font-size: 17px; line-height: 1.75; }
.legal-page a { color: #167287; text-decoration: underline; text-underline-offset: 4px; }
.legal-updated { margin-top: 44px; font-size: 12px !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 92svh; }
  .hero-note { display: none; }
  .ticker { justify-content: flex-start; overflow: hidden; }
  .ticker span { white-space: nowrap; }
  .section-intro, .game-feature, .studio-section { grid-template-columns: minmax(0, 1fr); }
  .section-intro { gap: 30px; }
  .game-copy { padding-left: 0; }
  .game-copy h3 { margin-top: 34px; }
  .studio-copy { padding-top: 0; }
  footer { grid-template-columns: 1fr auto; }
  footer > span { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-header { min-height: 72px; padding: 14px 18px; }
  .header-cta { font-size: 10px; }
  .hero { min-height: 88svh; padding: 120px 20px 58px; }
  .hero-media { background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(8,10,18,0.96), rgba(8,10,18,0.62)), linear-gradient(0deg, rgba(8,10,18,0.94), transparent 50%); }
  .hero h1 { font-size: min(24vw, 104px); }
  .hero-line { font-size: 30px; }
  .ticker { min-height: 70px; }
  .ticker span:nth-of-type(n+3), .ticker b:nth-of-type(n+3) { display: none; }
  .games-section { padding-left: 18px; padding-right: 18px; }
  .section-intro h2, .studio-section h2, .contact-section h2 { font-size: 50px; }
  .game-image span { top: 10px; left: 10px; }
  .game-copy dl div { grid-template-columns: 84px 1fr; }
  .pack-marks { position: relative; right: auto; bottom: auto; margin-top: 54px; }
  footer { grid-template-columns: 1fr; }
  footer > div { flex-wrap: wrap; }
  footer > span { grid-column: auto; }
}
