/* Elementrino: Blast Zone — elementrino.com
   One page, no framework, no trackers. Palette lifted from the logo gradient. */

:root {
  --fire:  #ff4a16;
  --ember: #ffb51b;
  --water: #56cfff;
  --ice:   #eefcff;
  --wind:  #55e3df;
  --earth: #c88a3c;

  --bg:      #07070d;
  --bg-2:    #0d0d17;
  --panel:   #12121f;
  --line:    #24243a;
  --ink:     #f2f3fa;
  --ink-dim: #a2a6bd;

  --wrap: 1080px;
  --font: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}

a { color: var(--water); }
:focus-visible { outline: 2px solid var(--wind); outline-offset: 3px; border-radius: 4px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 10vw, 8rem) 0 clamp(4rem, 10vw, 7rem);
  min-height: min(92vh, 900px);
  display: flex; align-items: center;
  text-align: center;
}
.hero-art {
  position: absolute; inset: 0;
  background-image: url("assets/hero-tall.webp");
  background-size: cover;
  background-position: center 42%;
  pointer-events: none;
}
/* The 3840x1240 crop only makes sense once the viewport is genuinely wide;
   below that it letterboxes into a sliver, so narrow screens get the 16:9 art. */
@media (min-width: 900px) {
  .hero-art { background-image: url("assets/hero-wide.webp"); background-position: center; }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(4,5,14,.82), rgba(4,5,14,.34) 60%, transparent 78%),
    linear-gradient(to bottom, rgba(4,5,14,.55) 0%, rgba(4,5,14,.15) 30%, rgba(7,7,13,.92) 88%, var(--bg) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; }


.logo {
  width: min(100%, 640px);
  height: auto;
  display: block;
  margin: 0 auto clamp(1rem, 3vw, 1.75rem);
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.75));
}

.tagline {
  text-shadow: 0 2px 18px rgba(0,0,0,.9);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  font-weight: 500;
  max-width: 34ch;
  margin: 0 auto 1rem;
  text-wrap: balance;
}
.sub { color: var(--ink-dim); font-size: .98rem; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.9); }

/* ---------- buttons ---------- */

.cta {
  display: flex; flex-wrap: wrap; gap: .9rem;
  justify-content: center; margin: 2rem 0 1.25rem;
}
.btn {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: .9rem 1.9rem;
  border-radius: 10px;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

.btn-primary {
  background: linear-gradient(100deg, var(--fire), var(--ember));
  color: #16060a;
  box-shadow: 0 8px 30px rgba(255,120,30,.28);
}
.btn-primary:hover { box-shadow: 0 12px 38px rgba(255,120,30,.40); }
.btn-note {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; opacity: .72; margin-top: .15rem;
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,.03);
  justify-content: center;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--water); }

/* ---------- sections ---------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.section:nth-of-type(even) { background: var(--bg-2); }

.eyebrow {
  font-size: .78rem; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-dim);
  margin: 0 0 1.75rem;
}
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .3rem; letter-spacing: .02em; }

/* ---------- video ---------- */

.video-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.video-frame video { display: block; width: 100%; height: auto; }

/* ---------- counts + elements ---------- */

.counts {
  list-style: none; margin: 0 0 2.5rem; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  text-align: center;
}
.counts li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 1.4rem 1rem;
}
.counts b {
  display: block;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  line-height: 1; font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.counts span {
  display: block; margin-top: .4rem;
  font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-dim);
}

.lede {
  font-size: clamp(1.1rem, 2.3vw, 1.35rem);
  line-height: 1.6;
  max-width: 58ch;
  margin: 0 auto;
  text-align: center;
  text-wrap: pretty;
}
.lede em { font-style: normal; color: var(--ember); font-weight: 600; }

.elements {
  list-style: none; padding: 0;
  margin: 2.25rem auto 0;
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
}
.elements li {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: .35rem 1.1rem;
  font-size: .85rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- screenshot strip ---------- */

.strip {
  display: flex; gap: 1rem;
  overflow-x: auto;
  padding: 0 max((100vw - var(--wrap)) / 2, 1.25rem) .75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shot {
  flex: 0 0 auto;
  padding: 0; border: 1px solid var(--line); background: none;
  border-radius: 10px; overflow: hidden; cursor: zoom-in;
  scroll-snap-align: center;
  transition: border-color .12s ease, transform .12s ease;
}
.shot:hover { border-color: var(--water); transform: translateY(-3px); }
.shot img { display: block; width: 420px; max-width: 78vw; height: auto; }

/* ---------- modes ---------- */

.modes {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}
.modes li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.25rem;
}
.modes p { margin: 0; color: var(--ink-dim); font-size: .93rem; }

/* ---------- two column ---------- */

.two-col {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.two-col p { color: var(--ink-dim); margin: 0; }

/* ---------- closer ---------- */

.closer { text-align: center; }
.closer h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.pending { color: var(--ink-dim); opacity: .8; }

/* ---------- footer ---------- */

.footer { padding: 2.5rem 0 3.5rem; background: var(--bg); }
.disclosure {
  color: var(--ink-dim);
  font-size: .87rem; line-height: 1.6;
  max-width: 72ch; margin: 0 auto 1.75rem;
}
.disclosure b { color: var(--ink); }
.colophon {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  color: var(--ink-dim); font-size: .82rem; margin: 0;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(3,3,8,.93);
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.25rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0,0,0,.8);
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: 0; color: var(--ink);
  font-size: 2.4rem; line-height: 1; cursor: pointer;
  padding: .25rem .6rem;
}

/* ---------- phone overrides (last, so they win on equal specificity) ---------- */

@media (max-width: 640px) {
  /* the portrait crop is a different shape, so it needs its own box */
  .logo {
    width: min(100%, 460px);
    border-radius: 12px;
    filter: none;
    margin-bottom: 1.75rem;
  }
  .hero { min-height: 0; padding-top: 1.5rem; }
  .hero-art { display: none; }
  .hero-scrim {
    background: linear-gradient(to bottom, rgba(4,5,14,.2) 55%, var(--bg) 100%);
  }
}
