/* Invisible Studios - royal purple, white and sun gold.
   One purple family for depth, white for reading, gold only where the eye should go (buttons, key words, the crown). */
:root {
  --royal-950: #150833;
  --royal-900: #1f0d4a;
  --royal-800: #2b1366;
  --royal-700: #3d1c8c;
  --royal-600: #5127b3;
  --royal-500: #6a40d4;
  --lav-100: #ede7fb;
  --lav-50: #f7f4fe;
  --white: #ffffff;
  --ink: #1a0f3a;
  --ink-2: #4f4670;
  --mist: #cfc6ec;
  --line-l: #e3daf6;
  --line-d: rgba(255, 255, 255, .12);
  --gold: #f4b400;
  --gold-2: #ffc933;
  --radius: 14px;
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --wrap: 1180px;
  --nav-h: 72px;
  --shadow-l: 0 1px 2px rgba(21, 8, 51, .06), 0 10px 30px -12px rgba(21, 8, 51, .18);
  --shadow-d: 0 30px 80px -30px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--royal-950); color: var(--white); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; font-weight: 800; line-height: 1.06; margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); text-wrap: balance; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--royal-950); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font: 700 .9rem/1 var(--display); font-stretch: 108%; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; border-radius: 8px; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn--gold { background: var(--gold); color: var(--royal-950); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--royal-950); }
.btn--text { padding-inline: 4px; color: var(--white); }
.btn--text:hover { color: var(--gold); }
.btn--purple { background: var(--royal-700); color: var(--white); }
.btn--purple:hover { background: var(--royal-600); }
.btn--line-dark { border-color: var(--royal-950); color: var(--royal-950); }
.btn--line-dark:hover { background: var(--royal-950); color: var(--gold); }
.btn--sm { padding: 10px 16px; font-size: .78rem; }
.play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.play--big { border-left-width: 28px; border-top-width: 17px; border-bottom-width: 17px; margin-left: 7px; }

/* labels */
.eyebrow, .kicker { font: 700 .76rem/1 var(--display); font-stretch: 112%; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow { color: var(--mist); }
.kicker { color: var(--royal-600); }
.kicker--gold { color: var(--gold); }
.tag { display: inline-block; font: 700 .7rem/1 var(--display); font-stretch: 108%; letter-spacing: .12em; text-transform: uppercase; color: var(--royal-700); background: var(--lav-100); padding: 8px 11px; border-radius: 999px; margin-bottom: 14px; }
.tag--hot { background: var(--gold); color: var(--royal-950); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.nav.is-solid, .nav.menu-open { background: var(--royal-950); border-color: var(--line-d); }
.nav__inner { height: 100%; width: min(100% - 32px, 1320px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 800 .88rem/1 var(--display); font-stretch: 118%; letter-spacing: .2em; text-transform: uppercase; }
.brand img { width: 22px; height: auto; }
.brand b { font-weight: 500; color: var(--mist); margin-left: .45em; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu a:not(.btn) { text-decoration: none; font: 600 .8rem/1 var(--display); font-stretch: 108%; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); transition: color .15s ease; }
.nav__menu a:not(.btn):hover { color: var(--white); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .2s ease; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: min(100svh, 880px); display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 48px) 0 110px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 75% 45%, var(--royal-800) 0%, var(--royal-900) 45%, var(--royal-950) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero__title { margin: 0 0 26px; }
.hero__title img { width: min(540px, 100%); height: auto; image-rendering: pixelated; }
.hero__lede { max-width: 520px; font-size: 1.14rem; color: #e9e4f8; }
.hero__lede strong { color: var(--gold); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.hero__meta { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font: 600 .76rem/1 var(--display); font-stretch: 108%; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.hero__meta li { display: flex; align-items: center; gap: 10px; }
.hero__meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero__media { position: relative; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-d); background: #000; box-shadow: var(--shadow-d); }
.screen video { width: 100%; height: 100%; object-fit: cover; }

.bubble { position: absolute; left: -28px; bottom: -58px; width: min(350px, 90%); background: var(--white); color: var(--ink); padding: 16px 20px 18px; border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5); }
.bubble::after { content: ""; position: absolute; left: 32px; bottom: -12px; border: 12px solid transparent; border-top-color: var(--white); border-bottom: 0; }
.bubble__who { display: block; font: 800 .66rem/1 var(--display); font-stretch: 112%; letter-spacing: .2em; color: var(--royal-600); margin-bottom: 10px; }
.bubble__text { font: .74rem/1.75 var(--pixel); min-height: 3.4em; display: block; color: var(--royal-950); }
.bubble__text.is-typing::after { content: "_"; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* taunt strip: the game's own lines */
.strip { background: var(--royal-700); color: var(--gold); overflow: hidden; border-block: 1px solid var(--line-d); }
.strip__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.strip__track span { font: .7rem/1 var(--pixel); padding: 17px 0; white-space: nowrap; }
.strip__track span::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); margin: 0 30px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections: light sections for reading, purple for showing */
.section { padding: clamp(84px, 11vw, 140px) 0; }
.head { max-width: 760px; margin-bottom: 54px; }
.head--center { text-align: center; margin-inline: auto; }
.head__sub { margin-top: 20px; color: var(--ink-2); font-size: 1.08rem; max-width: 640px; }
.game, .gallery, .studio { background: var(--white); color: var(--ink); }
.press { background: var(--lav-50); color: var(--ink); }
.game h2, .gallery h2, .studio h2, .press h2 { color: var(--royal-950); }

/* modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mode { background: var(--white); border: 1px solid var(--line-l); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-l); transition: transform .2s ease, box-shadow .2s ease; }
.mode:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(21, 8, 51, .06), 0 18px 40px -16px rgba(21, 8, 51, .28); }
.mode--hot { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-l); }
.mode__img { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.mode__img img { width: 100%; height: 100%; object-fit: cover; }
.mode__body { padding: 24px 24px 28px; }
.mode__body h3 { margin-bottom: 10px; color: var(--royal-950); }
.mode__body p:last-child { color: var(--ink-2); font-size: .98rem; }

/* rage king */
.king { padding: clamp(90px, 11vw, 140px) 0 clamp(70px, 9vw, 110px); background: var(--royal-800); }
.king__inner { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center; }
.king__sprite { display: grid; place-items: center; aspect-ratio: 1; background: var(--royal-950); border: 2px solid var(--gold); border-radius: 50%; }
.king .kicker { color: var(--gold); }
.king__line { font-size: clamp(1.12rem, 1.9vw, 1.35rem); color: #efeafc; margin-top: 20px; max-width: 620px; }
.ach { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .05); padding: 10px 18px 10px 10px; border-radius: 10px; font: 700 1rem/1.2 var(--display); }
.ach__label { font: 800 .62rem/1 var(--display); font-stretch: 112%; letter-spacing: .14em; text-transform: uppercase; background: var(--gold); color: var(--royal-950); padding: 8px 10px; border-radius: 6px; }

.sprite { --cell: 48px; --frames: 11; --scale: 2; display: block; width: calc(var(--cell) * var(--scale)); height: calc(var(--cell) * var(--scale)); background-repeat: no-repeat; background-size: calc(var(--cell) * var(--scale) * var(--frames)) 100%; image-rendering: pixelated; animation: sprite 1.1s steps(var(--frames)) infinite; }
.sprite--king { --frames: 12; --scale: 5; background-image: url(../assets/sprites/RageKing_Win.png); animation-duration: 1.3s; }
@keyframes sprite { to { background-position: calc(var(--cell) * var(--scale) * var(--frames) * -1) 0; } }

.skins { margin-top: 80px; }
.skins__lede { color: var(--mist); max-width: 620px; margin-bottom: 24px; }
.skins__row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; }
.skins__row li { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-d); border-radius: 12px; }
.skins__row small { font: 700 .72rem/1.3 var(--display); font-stretch: 105%; color: var(--white); text-align: center; }

/* trailer */
.trailer { background: var(--royal-950); }
.trailer .kicker { color: var(--gold); }
.player { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-d); box-shadow: var(--shadow-d); background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player__btn { position: absolute; inset: 0; margin: auto; width: 104px; height: 104px; border-radius: 50%; border: 0; background: var(--gold); color: var(--royal-950); cursor: pointer; display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); transition: transform .15s ease, background-color .15s ease; }
.player__btn:hover { transform: scale(1.05); background: var(--gold-2); }
.player.is-playing .player__btn { display: none; }

/* gallery */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; box-shadow: var(--shadow-l); }
.shot--wide { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.shot:hover img { transform: scale(1.03); }
.shot--cta { display: grid; place-items: center; background: var(--royal-700); color: var(--white); text-decoration: none; transition: background-color .15s ease; }
.shot--cta:hover { background: var(--royal-600); }
.shot__cta { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 16px; }
.shot__cta small { font: 700 .7rem/1 var(--display); font-stretch: 112%; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.shot__cta b { font: 800 clamp(1.1rem, 2.1vw, 1.5rem)/1.1 var(--display); font-stretch: 112%; }
.shot__arrow { font-size: 1.5rem; line-height: 1; color: var(--gold); }

/* demo band: the one gold surface on the page */
.demo { background: var(--gold); color: var(--royal-950); padding: clamp(70px, 9vw, 110px) 0; }
.demo__inner { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: center; }
.demo__cover { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(21, 8, 51, .55); image-rendering: pixelated; }
.demo .kicker { color: var(--royal-700); }
.demo h2 { margin-bottom: 18px; font-size: clamp(1.8rem, 3.6vw, 2.7rem); color: var(--royal-950); }
.demo p:not(.kicker) { color: #3a2a0a; max-width: 620px; }

/* studio */
.studio .kicker { color: var(--royal-600); }
.studio__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.studio__logo { width: 100%; max-width: 400px; height: auto; justify-self: center; }
.studio__copy p:not(.kicker) { margin-top: 20px; color: var(--ink-2); font-size: 1.08rem; }
.values { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; }
.values li { padding: 16px 18px; background: var(--lav-50); border-left: 3px solid var(--gold); border-radius: 4px 10px 10px 4px; color: var(--ink-2); }
.values b { color: var(--royal-950); font-family: var(--display); font-weight: 800; margin-right: 6px; }

/* press */
.press__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.facts { margin: 0; background: var(--white); border: 1px solid var(--line-l); border-radius: var(--radius); padding: 6px 26px; box-shadow: var(--shadow-l); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-l); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font: 700 .72rem/1.7 var(--display); font-stretch: 108%; letter-spacing: .16em; text-transform: uppercase; color: var(--royal-600); }
.facts dd { margin: 0; color: var(--ink); }
.downloads { display: grid; gap: 12px; align-content: start; }
.dl { display: flex; align-items: center; gap: 18px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line-l); border-radius: 12px; text-decoration: none; box-shadow: var(--shadow-l); transition: border-color .2s ease; }
.dl:hover { border-color: var(--royal-500); }
.dl b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--royal-950); }
.dl small { color: var(--ink-2); font-size: .85rem; }
.dl__icon { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--royal-700); position: relative; }
.dl__icon::before { content: ""; position: absolute; left: 50%; top: 10px; width: 3px; height: 14px; background: var(--gold); transform: translateX(-50%); }
.dl__icon::after { content: ""; position: absolute; left: 50%; top: 18px; width: 10px; height: 10px; border-right: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: translateX(-50%) rotate(45deg); }
.press__note { color: var(--ink-2); margin-top: 8px; font-size: .95rem; }
.press__note a { color: var(--royal-600); font-weight: 600; }

/* contact */
.contact { text-align: center; background: var(--royal-900); }
.contact__inner { display: grid; justify-items: center; }
.contact .kicker { color: var(--gold); }
.contact h2 { font-size: clamp(2.6rem, 8vw, 5rem); }
.contact p { color: var(--mist); margin-top: 16px; }
.contact__mail { margin-top: 32px; font: 800 clamp(1.15rem, 3.2vw, 2rem)/1.2 var(--display); font-stretch: 108%; text-decoration: none; border-bottom: 3px solid var(--gold); padding-bottom: 6px; word-break: break-all; }
.contact__mail:hover { color: var(--gold); }
.social { list-style: none; padding: 0; margin: 32px 0 0; display: flex; gap: 12px; }
.social a { display: inline-block; padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; text-decoration: none; font: 700 .76rem/1 var(--display); font-stretch: 108%; letter-spacing: .16em; text-transform: uppercase; transition: background-color .15s ease, color .15s ease; }
.social a:hover { background: var(--white); color: var(--royal-950); }

/* footer */
.foot { background: var(--royal-950); border-top: 1px solid var(--line-d); padding: 28px 0; color: var(--mist); font-size: .85rem; }
.foot__inner { display: flex; align-items: center; gap: 14px; }
.foot__inner p { flex: 1; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(21, 8, 51, .96); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 8px; }
.lightbox figcaption { color: var(--mist); font-size: .95rem; text-align: center; }
.lightbox button { background: none; border: 0; color: var(--white); cursor: pointer; font-size: 3rem; line-height: 1; padding: 8px; }
.lightbox button:hover { color: var(--gold); }
.lightbox__close { position: absolute; top: 12px; right: 18px; }

/* responsive */
@media (max-width: 980px) {
  .modes { grid-template-columns: 1fr; max-width: 640px; }
  .king__inner { grid-template-columns: 1fr; justify-items: start; gap: 34px; }
  .king__sprite { width: 250px; }
  .sprite--king { --scale: 4; }
  .studio__inner, .press__grid { grid-template-columns: 1fr; gap: 44px; }
  .studio__logo { max-width: 280px; justify-self: start; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .bubble { position: relative; left: auto; bottom: auto; margin: -26px 0 0 14px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__toggle { display: block; }
  .nav__menu { position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 22px; background: var(--royal-950); border-bottom: 1px solid var(--line-d); transform: translateY(-110%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
  .nav__menu.is-open { transform: none; visibility: visible; }
  .nav__menu a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line-d); font-size: .92rem; color: var(--white); }
  .nav__menu .btn { margin-top: 16px; justify-content: center; }
  .brand { font-size: .76rem; letter-spacing: .16em; }
  .hero { min-height: 0; padding-bottom: 90px; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: center; }
  .hero__ctas .btn--text { flex-basis: auto; }
  .shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shot--wide { grid-column: span 2; grid-row: auto; }
  .demo__inner { grid-template-columns: 1fr; gap: 32px; }
  .demo__cover { width: 170px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .player__btn { width: 74px; height: 74px; }
  .play--big { border-left-width: 21px; border-top-width: 13px; border-bottom-width: 13px; margin-left: 5px; }
  .lightbox { grid-template-columns: 40px 1fr 40px; padding: 10px; }
  .foot__inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip__track, .sprite, .bubble__text.is-typing::after { animation: none; }
  .mode, .shot img, .btn, .dl, .player__btn { transition: none; }
}
