/* ==========================================================================
   Swarmfall website
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #080c13;
  --bg-2: #0b1019;
  --panel: #0f1520;
  --panel-2: #141b28;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3ebe1;
  --muted: #a7adb8;
  --dim: #6b7382;

  --orange: #ff8a2b;
  --amber: #ffb54a;
  --hot: #ffd89a;
  --copper: #c47a45;
  --sky: #583f43;
  --bug: #6d8dff;

  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: 20px;
  --cut: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.i { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* Subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Kicker / section heads ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font: 400 12px/1 var(--pixel);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.kicker i {
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.kicker--bug { color: var(--bug); }
.kicker--bug i { background: linear-gradient(90deg, var(--bug), transparent); }

.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2, .about h2, .press h2 {
  font-size: clamp(34px, 5vw, 58px);
  text-transform: uppercase;
  letter-spacing: .005em;
}
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --fill: rgba(12, 17, 26, .72);
  --edge: var(--line-2);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .95em 1.5em;
  border: 0;
  background: none;
  font: 600 15px/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), filter .25s var(--ease), color .2s;
}
.btn::before, .btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: background .25s;
}
.btn::before { inset: 0; background: var(--edge); }
.btn::after { inset: 1px; background: var(--fill); backdrop-filter: blur(6px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  color: #1b0c02;
  --edge: #ffd08a;
  --fill: linear-gradient(180deg, #ffc267 0%, #ff8f2e 52%, #ea6a18 100%);
  filter: drop-shadow(0 6px 22px rgba(255, 122, 26, .35));
}
.btn--primary:hover { filter: drop-shadow(0 8px 30px rgba(255, 122, 26, .6)) brightness(1.06); }
.btn--ghost:hover { --edge: rgba(255, 181, 74, .6); color: var(--hot); }
.btn--sm { font-size: 13px; padding: .8em 1.15em; --cut: 9px; }
.btn--lg { font-size: 15px; padding: 1.1em 1.7em; }
.btn--xl { font-size: 17px; padding: 1.2em 2.1em; --cut: 14px; }
.btn small { font: 500 .78em var(--body); letter-spacing: .04em; text-transform: none; opacity: .75; margin-left: .35em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 max(var(--gutter), calc((100% - 1320px) / 2));
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(8, 12, 19, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav__brand img { height: 30px; width: auto; transition: opacity .35s, transform .35s var(--ease); }
.js .nav:not(.is-solid) .nav__brand img { opacity: 0; transform: translateY(-6px); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  position: relative;
  font: 500 14px/1 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 0;
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; gap: 10px; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}
@media (max-width: 420px) {
  .nav { gap: 12px; }
  .nav__brand img { height: 24px; }
  .nav .btn--sm { padding: .75em .9em; letter-spacing: .06em; }
}

/* ==========================================================================
   Hero (layered parallax built from the illustration PSD)
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  max-height: 1300px;
  overflow: hidden;
  background: #583f43;
  container-type: size;
}
.hero__scene {
  --k: 1.045;
  --fx: 50%;
  position: absolute;
  left: 50%;
  bottom: -2.5%;
  height: max(104.5vh, 61vw);
  height: max(calc(100cqh * var(--k)), calc(100cqw * 1.05 / 1.72043));
  aspect-ratio: 3840 / 2232;
  transform: translateX(calc(var(--fx) * -1));
}
@media (max-aspect-ratio: 5/4) { .hero__scene { --k: .8; --fx: 53%; } }
/* Phones / portrait: lift the scene so the gun sits between logo and buttons. */
@media (max-aspect-ratio: 3/4) {
  .hero { background: linear-gradient(0deg, var(--bg) 0 30%, #583f43 30%); }
  .hero__scene { --k: .56; --fx: 55%; bottom: 23%; }
}

.plane {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translate3d(
    calc(var(--mx, 0) * var(--d) * -1.5%),
    calc(var(--my, 0) * var(--d) * -1.1% + var(--sy, 0) * (.55 - var(--d) * .45) * 1px),
    0);
}
.plane--multiply { mix-blend-mode: multiply; }
.plane--screen { mix-blend-mode: screen; }
.layer { position: absolute; height: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.js .hero__scene { opacity: 0; transition: opacity 1.2s ease; }
.js .hero.is-ready .hero__scene { opacity: 1; }
.hero::before {
  /* blurred placeholder while layers load */
  content: "";
  position: absolute; inset: 0;
  background: url("../img/hero/lqip.webp") 55% 100% / cover;
  filter: blur(18px);
  transform: scale(1.1);
  transition: opacity 1.2s ease .4s;
}
.hero.is-ready::before { opacity: 0; }

/* the gun: burst, recoil, glow */
.layer--barrel { animation: recoil 3.2s infinite; }
.plane--screen .layer--glow { animation: glow 3.2s infinite; }
.flare {
  display: block;
  position: absolute;
  left: 49.8%; top: 51.6%;
  width: 16%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 170, .95), rgba(255, 150, 50, .55) 35%, rgba(255, 90, 20, 0) 100%);
  opacity: 0;
  animation: flare 3.2s infinite;
}
@keyframes recoil {
  0%, 8%, 16% { transform: translate(0, 0); }
  2%, 10%, 18% { transform: translate(1.1%, -.15%); }
  26%, 100% { transform: translate(0, 0); }
}
@keyframes glow {
  0%, 8%, 16% { opacity: 1; }
  5%, 13% { opacity: .82; }
  30%, 100% { opacity: .72; }
}
@keyframes flare {
  0%, 8%, 16% { opacity: 1; scale: 1.15; }
  4%, 12% { opacity: .15; scale: .8; }
  24%, 100% { opacity: 0; scale: .7; }
}
.layer--fog { animation: fog 26s ease-in-out infinite alternate; }
@keyframes fog { to { transform: translateX(-2.5%); } }

.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }

.hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 12, 19, .55) 0, rgba(8, 12, 19, 0) 18%),
    linear-gradient(0deg, var(--bg) 0, rgba(8, 12, 19, .72) 12%, rgba(8, 12, 19, .25) 30%, rgba(8, 12, 19, 0) 42%);
}
@media (max-aspect-ratio: 3/4) {
  .hero::after {
    background:
      linear-gradient(180deg, rgba(8, 12, 19, .5) 0, rgba(8, 12, 19, 0) 14%),
      linear-gradient(0deg, var(--bg) 0, var(--bg) 24%, rgba(8, 12, 19, .55) 29%, rgba(8, 12, 19, 0) 38%);
  }
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: calc(var(--nav-h) + clamp(0px, 2vh, 28px)) var(--gutter) clamp(64px, 9vh, 96px);
}
.hero__bottom { display: flex; flex-direction: column; align-items: center; }
.hero__title { margin: 0; }
.hero__logo {
  width: min(700px, 88vw);
  max-height: 31vh;
  object-fit: contain;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .45)) drop-shadow(0 0 40px rgba(255, 150, 60, .35));
}
.hero__tagline {
  margin: 0 0 clamp(16px, 2.6vh, 26px);
  font: 600 clamp(14px, 1.5vw, 19px)/1.3 var(--display);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--hot);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8), 0 0 24px rgba(255, 138, 43, .4);
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  font: 400 11px/1 var(--pixel);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 230, 200, .8);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}
.dot {
  width: 7px; height: 7px;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: blink 1.6s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .25; } }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 22px;
  z-index: 2;
  translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font: 400 10px/1 var(--pixel);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .55);
}
.hero__scroll .i { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* hero intro */
.js .hero__logo, .js .hero__tagline, .js .hero__cta, .js .hero__meta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js .hero__logo { transform: scale(.94); }
.js .hero.is-ready .hero__logo { opacity: 1; transform: none; transition-delay: .25s; }
.js .hero.is-ready .hero__tagline { opacity: 1; transform: none; transition-delay: .55s; }
.js .hero.is-ready .hero__cta { opacity: 1; transform: none; transition-delay: .7s; }
.js .hero.is-ready .hero__meta { opacity: 1; transform: none; transition-delay: .85s; }

@media (max-width: 600px) {
  .hero__cta .btn { width: min(320px, 100%); }
  .hero__tagline { letter-spacing: .22em; }
}

/* ==========================================================================
   Ticker strip under the hero
   ========================================================================== */
.strip {
  position: relative;
  height: 64px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 70%, rgba(0, 0, 0, .35)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 32px),
    #0a0f18;
  border-bottom: 1px solid var(--line);
}
.strip__hazard {
  position: absolute; inset: 0 0 auto;
  height: 5px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 10px, #1a1208 10px 20px);
  opacity: .8;
}
.strip__ticker {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font: 400 30px/1 var(--pixel);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 138, 43, .07);
  pointer-events: none;
  animation: ticker 60s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }
/* ==========================================================================
   About + features
   ========================================================================== */
.about { background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) 100%); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.about h2 { font-size: clamp(32px, 4.3vw, 52px); }
.about h2 em { font-style: normal; color: var(--orange); }
.about .lead, .kit-text .lead { font-size: 21px; line-height: 1.5; color: var(--text); margin-top: 24px; }
.about__copy p:not(.lead) { color: var(--muted); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.facts div {
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.facts dt { font: 400 10px/1 var(--pixel); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.facts dd { margin: 0; font: 600 15px/1.2 var(--display); letter-spacing: .04em; }

.media-frame {
  position: relative;
  margin: 0;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255, 138, 43, .14), rgba(255, 255, 255, .02) 40%);
  border: 1px solid var(--line);
}
.media-frame img { width: 100%; aspect-ratio: 1232 / 706; object-fit: cover; }
.media-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.media-frame figcaption {
  position: absolute;
  left: 22px; bottom: 22px;
  font: 400 10px/1 var(--pixel);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  background: rgba(8, 12, 19, .65);
  padding: 6px 8px;
}
.corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--orange); }
.corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.media-frame__play {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border: 0;
  cursor: pointer;
  color: #1b0c02;
  background: linear-gradient(180deg, #ffc267, #ea6a18);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: transform .25s var(--ease);
}
.media-frame__play[hidden] { display: none; }
.media-frame__play .i { width: 30px; height: 30px; margin-left: 4px; }
.media-frame__play:hover { transform: scale(1.08); }

@media (max-width: 1000px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Studio wordmark (text, until there's a Speedy Games logo)
   ========================================================================== */
.studio-mark {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font: 700 19px/1 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.studio-mark b { font-weight: 700; color: var(--orange); margin-left: .35em; }
.studio-mark__chev {
  position: relative;
  width: 1.1em; height: .85em;
  flex: none;
}
.studio-mark__chev::before, .studio-mark__chev::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 62%;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  clip-path: polygon(0 0, 45% 0, 100% 50%, 45% 100%, 0 100%, 55% 50%);
}
.studio-mark__chev::before { left: 0; opacity: .55; }
.studio-mark__chev::after { right: 0; filter: drop-shadow(0 0 6px rgba(255, 138, 43, .6)); }
.studio-mark--big { font-size: clamp(34px, 5vw, 60px); flex-direction: column; gap: .4em; }
.studio-mark--big > span:last-child { display: flex; flex-direction: column; align-items: center; gap: .12em; }
.studio-mark--big b { margin: 0; }
.studio-mark--big .studio-mark__chev { width: 1.6em; height: 1.2em; }
.nav .studio-mark { transition: opacity .35s, transform .35s var(--ease); }
.js .nav:not(.is-solid) .studio-mark { opacity: 0; transform: translateY(-6px); }
.footer__bar .studio-mark { font-size: 15px; opacity: .9; }
@media (max-width: 420px) { .nav .studio-mark { font-size: 13px; letter-spacing: .06em; } }

/* hero: "Speedy Games presents" */
.hero__top { display: flex; flex-direction: column; align-items: center; }
.hero__presents {
  margin: 0 0 4px;
  font: 400 12px/1 var(--pixel);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 230, 200, .85);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}
.js .hero__presents { opacity: 0; transition: opacity 1s var(--ease) .1s; }
.js .hero.is-ready .hero__presents { opacity: 1; }

/* ==========================================================================
   Features (Steam page sections: header, clip, bullets)
   ========================================================================== */
.features-sec {
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(255, 138, 43, .07), transparent),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.showcase {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.showcase__player {
  position: relative;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255, 138, 43, .14), rgba(255, 255, 255, .02) 40%);
  border: 1px solid var(--line);
}
.showcase__video {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 924 / 694;
  object-fit: cover;
  background: #0a0e16;
  transition: opacity .25s ease;
}
.showcase__video.is-switching { opacity: 0; }
.showcase__tabs { display: flex; flex-direction: column; gap: 10px; }
.tab {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  padding: 18px 20px 20px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .25s, background-color .25s;
}
.tab:hover { border-color: rgba(255, 138, 43, .35); }
.tab__num { font: 400 12px/1.6 var(--pixel); letter-spacing: .1em; color: var(--dim); transition: color .25s; }
.tab__text { display: flex; flex-direction: column; gap: 6px; }
.tab__title {
  font: 700 20px/1.1 var(--display);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s;
}
.tab__line {
  display: block;
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  opacity: 0;
  transition: max-height .4s var(--ease), opacity .3s;
}
.tab[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(255, 138, 43, .1), transparent 70%), var(--panel-2);
  border-color: rgba(255, 138, 43, .45);
}
.tab[aria-selected="true"] .tab__num { color: var(--amber); }
.tab[aria-selected="true"] .tab__title { color: var(--text); }
.tab[aria-selected="true"] .tab__line { max-height: 8em; opacity: 1; }
.tab__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .05); }
.tab__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--amber)); }
.tab[aria-selected="true"] .tab__bar i { width: calc(var(--p, 0) * 100%); }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .tab { padding: 14px 16px 16px; }
  .tab__title { font-size: 17px; }
}

/* ==========================================================================
   Studio
   ========================================================================== */
.studio { background: var(--bg); border-top: 1px solid var(--line); }
.studio__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.studio__mark {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 22px),
    radial-gradient(closest-side, rgba(255, 138, 43, .14), transparent),
    var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.studio h2 { font-size: clamp(34px, 5vw, 58px); text-transform: uppercase; }
.studio .lead { font-size: 21px; line-height: 1.5; margin-top: 24px; }
.studio__copy p:not(.lead) { color: var(--muted); }
.studio .btn-row { margin-top: 26px; }
@media (max-width: 860px) { .studio__grid { grid-template-columns: 1fr; } .studio__mark { aspect-ratio: 16 / 7; } }

/* screenshot captions */
.shot figcaption {
  margin-top: 10px;
  font: 400 10px/1 var(--pixel);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ==========================================================================
   Media gallery
   ========================================================================== */
.media { background: var(--bg-2); border-top: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot { margin: 0; }
.shot__frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.shot__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.shot__frame:hover img { transform: scale(1.04); }
.shot--empty .shot__frame {
  gap: 10px;
  align-content: center;
  color: var(--dim);
  font: 400 11px/1 var(--pixel);
  letter-spacing: .14em;
  text-transform: uppercase;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .018) 0 12px, transparent 12px 24px),
    var(--panel);
  border-style: dashed;
  border-color: var(--line-2);
}
.shot--empty .i { width: 30px; height: 30px; opacity: .6; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr; } .shot--empty:nth-child(n+2) { display: none; } }

.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 92vh;
}
.lightbox::backdrop { background: rgba(4, 6, 10, .9); backdrop-filter: blur(6px); }
.lightbox img { max-width: 94vw; max-height: 92vh; }
.lightbox__close {
  position: fixed; top: 16px; right: 16px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(20, 26, 38, .9);
  border: 1px solid var(--line-2);
  cursor: pointer;
}

/* ==========================================================================
   Press band
   ========================================================================== */
.press {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 12vw, 150px) 0;
  isolation: isolate;
}
.press__bg {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 60%;
}
.press::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 12, 19, .96) 0, rgba(8, 12, 19, .82) 45%, rgba(8, 12, 19, .35) 100%),
    linear-gradient(180deg, var(--bg-2) 0, transparent 20%, transparent 80%, var(--bg) 100%);
}
.press__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.press__copy p { color: #cfd2d8; font-size: 18px; max-width: 520px; margin: 18px 0 30px; }
.press__stack { position: relative; height: 380px; }
.kitcard {
  position: absolute;
  padding: 8px;
  background: rgba(15, 21, 32, .92);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  transition: transform .6s var(--ease);
}
.kitcard img { width: 100%; }
.kitcard--a {
  width: 62%; left: 0; top: 18%;
  padding: 26px 20px;
  background:
    repeating-conic-gradient(rgba(255, 255, 255, .04) 0 25%, transparent 0 50%) 0 0 / 18px 18px,
    rgba(15, 21, 32, .95);
  transform: rotate(-6deg);
  z-index: 2;
}
.kitcard--b { width: 38%; right: 6%; top: 0; transform: rotate(5deg); }
.kitcard--c {
  width: 46%;
  right: 22%; bottom: 0;
  transform: rotate(-3deg);
  z-index: 3;
}
.press__stack:hover .kitcard--a { transform: rotate(-9deg) translate(-12px, -6px); }
.press__stack:hover .kitcard--b { transform: rotate(8deg) translate(10px, -10px); }
.press__stack:hover .kitcard--c { transform: rotate(-1deg) translateY(-12px); }
@media (max-width: 900px) {
  .press__grid { grid-template-columns: 1fr; }
  .press__stack { height: 300px; max-width: 460px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(255, 138, 43, .12), transparent),
    var(--bg);
  border-top: 1px solid var(--line);
}
.footer__cta { text-align: center; padding: clamp(80px, 10vw, 130px) 0 clamp(70px, 8vw, 100px); }
.footer__symbol { width: 150px; margin: 0 auto 26px; filter: drop-shadow(0 0 30px rgba(255, 138, 43, .3)); }
.footer__cta h2 { font-size: clamp(34px, 5.4vw, 64px); text-transform: uppercase; }
.footer__cta p { color: var(--muted); font-size: 18px; margin: 14px auto 34px; max-width: 560px; text-wrap: balance; }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}
.footer__social { display: flex; gap: 6px; }
.footer__social a, .factsheet__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s;
}
.footer__social a:hover, .factsheet__social a:hover { color: var(--text); border-color: var(--orange); background: rgba(255, 138, 43, .08); }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--muted); text-decoration: none; font: 500 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.footer__links a:hover { color: var(--amber); }
.footer__legal { margin: 0 0 0 auto; color: var(--dim); font-size: 14px; }
@media (max-width: 700px) { .footer__legal { margin: 0; width: 100%; } }

/* ==========================================================================
   Press kit page
   ========================================================================== */
.kit-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(50px, 8vw, 100px)) 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
}
.kit-hero__bg {
  position: absolute; inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
}
.kit-hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 12, 19, .15) 0, rgba(8, 12, 19, .75) 45%, rgba(8, 12, 19, .95) 100%),
    linear-gradient(0deg, var(--bg) 0, transparent 40%);
}
.kit-hero__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.kit-hero__logo { width: 100%; max-width: 560px; filter: drop-shadow(0 0 40px rgba(255, 150, 60, .35)) drop-shadow(0 4px 2px rgba(0, 0, 0, .5)); }
.kit-hero h1 { font-size: clamp(48px, 7vw, 86px); text-transform: uppercase; }
.kit-hero p { color: #d0d3d9; font-size: 18px; max-width: 520px; margin: 18px 0 30px; }
@media (max-width: 860px) {
  .kit-hero__inner { grid-template-columns: 1fr; }
  .kit-hero__logo { max-width: 380px; }
  .kit-hero::before { background: linear-gradient(0deg, var(--bg) 0, rgba(8, 12, 19, .82) 50%, rgba(8, 12, 19, .5) 100%); }
}

.kit-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 120px);
}
.factsheet {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.factsheet__title { font-size: 20px; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.factsheet dl { margin: 0; }
.factsheet dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.factsheet dt { font: 400 10px/1 var(--pixel); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 7px; }
.factsheet dd { margin: 0; font-weight: 500; font-size: 16px; line-height: 1.4; }
.factsheet dd a { color: var(--amber); }
.factsheet__social { display: flex; gap: 6px; margin-top: 18px; }
.copy {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none;
  font: 500 16px/1.4 var(--body);
  color: var(--amber);
  cursor: pointer;
  text-align: left;
  word-break: break-all;
}
.copy .i { width: 15px; height: 15px; opacity: .7; }
.copy.is-copied { color: #9be38a; }

.kit-main { min-width: 0; }
.kit-text { max-width: 760px; }
.kit-text h2 { font-size: clamp(28px, 3.4vw, 38px); text-transform: uppercase; }
.kit-text h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .06em; margin: 30px 0 14px; color: var(--amber); }
.kit-text p:not(.lead) { color: var(--muted); }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; color: #d6d8dd; }
.ticks li::before {
  content: "";
  position: absolute; left: 2px; top: .62em;
  width: 8px; height: 8px;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 138, 43, .6);
}

.kit-jump {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 48px 0 12px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}
.kit-jump a {
  font: 400 11px/1 var(--pixel);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 9px 12px;
  border: 1px solid var(--line);
  transition: color .2s, border-color .2s;
}
.kit-jump a:hover { color: var(--amber); border-color: rgba(255, 138, 43, .5); }

.kit-cat { padding-top: 48px; scroll-margin-top: calc(var(--nav-h) + 12px); }
.kit-cat__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px;
  margin-bottom: 20px;
}
.kit-cat__head h3 { font-size: 26px; text-transform: uppercase; }
.kit-cat__head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.kit-grid--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.kit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .25s, transform .3s var(--ease);
}
.kit-card:hover { border-color: rgba(255, 138, 43, .45); transform: translateY(-3px); }
.kit-card__img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #0a0e16;
  overflow: hidden;
}
.kit-card__img img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  max-width: none;
  object-fit: contain;
  transition: transform .4s var(--ease);
}
.kit-card:hover .kit-card__img img { transform: scale(1.04); }
.kit-card--logo .kit-card__img {
  background:
    repeating-conic-gradient(rgba(255, 255, 255, .045) 0 25%, transparent 0 50%) 0 0 / 16px 16px,
    #0d121b;
}
.kit-card--fill .kit-card__img { aspect-ratio: 16 / 9; }
.kit-card--fill .kit-card__img img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kit-card--video .kit-card__img::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 48px; height: 48px;
  translate: -50% -50%;
  background: rgba(8, 12, 19, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffb54a' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat;
  border: 1px solid rgba(255, 181, 74, .5);
}
.kit-card__meta { padding: 12px 52px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.kit-card__name { font: 600 14px/1.3 var(--display); letter-spacing: .02em; }
.kit-card__spec { font-size: 12.5px; color: var(--dim); }
.kit-card__dl {
  position: absolute;
  right: 10px; bottom: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--amber);
  border: 1px solid var(--line-2);
  transition: background .2s, color .2s, border-color .2s;
}
.kit-card__dl:hover { background: var(--orange); color: #1b0c02; border-color: var(--orange); }
.kit-empty {
  display: flex; align-items: center; gap: 14px;
  padding: 26px;
  color: var(--dim);
  border: 1px dashed var(--line-2);
}
.kit-empty p { margin: 0; }
.kit-empty .i { width: 28px; height: 28px; }

.kit-terms { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.kit-contact {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 48px;
  padding: 30px 32px;
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(255, 138, 43, .14), transparent),
    var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.kit-contact h2 { font-size: 24px; text-transform: uppercase; }
.kit-contact p { margin: 6px 0 0; color: var(--muted); }

.footer--slim { background: var(--bg); }

@media (max-width: 900px) {
  .kit-layout { grid-template-columns: 1fr; }
  .factsheet { position: static; }
}
@media (max-width: 480px) {
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
  .kit-grid--wide { grid-template-columns: 1fr; }
  .kit-card__meta { padding-right: 14px; padding-bottom: 56px; }
  .kit-card__spec { font-size: 11.5px; }
  .kit-hero .btn--xl { width: 100%; white-space: normal; }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
/* Add ?motion to the URL to preview animations anyway. */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after {
    animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important;
  }
  html:not(.force-motion) .plane { transform: none !important; }
  html:not(.force-motion) .flare { display: none; }
  html:not(.force-motion).js .reveal { opacity: 1; transform: none; }
}
