:root {
  --ink: #0d0101;
  --ember-950: #140202;
  --ember-900: #1d0403;
  --ember-800: #2e0703;
  --oxblood: #4a0a03;
  --rust: #8a1f05;
  --flame: #ef561c;
  --flame-hi: #f47a1f;
  --amber: #f6a21e;
  --gold: #ffc93c;
  --white: #fff8f3;
  --text: #f6e9e4;
  --muted: #d8bdb3;
  --stage-foot: #2a0603;
  --hairline: rgb(255 214 196 / 0.24);
  --on-flame: #1a0402;
  --error: #ffb4a6;

  --display: "Saira", "Poppins", sans-serif;
  --sans: "Poppins", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --gutter: clamp(20px, 6vw, 112px);
  --title: clamp(2.75rem, 17vw, 7.5rem);
  --radius-tile: clamp(20px, 2.2vw, 28px);

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--rust) var(--ink);
}

html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--gold);
}

::selection { background: var(--flame); color: var(--on-flame); }

img, svg { display: block; }

[hidden] { display: none !important; }

.sprite { position: absolute; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--white); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Stage (the poster) ---------- */

.stage {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100svh;
  display: flex;
  background:
    radial-gradient(120% 80% at 78% 18%, #b0380a 0%, transparent 46%),
    radial-gradient(150% 120% at 70% 35%, #7a1704 0%, #561003 42%, #3a0803 76%, var(--stage-foot) 100%);
}

/* Halftone screen, like the print texture on the post */
.stage::after,
.about::before,
.credential::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgb(0 0 0 / 0.42) 0.85px, transparent 1.35px);
  background-size: 4px 4px;
}

.stage::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24vh;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgb(42 6 3 / 0.85) 70%, var(--stage-foot));
}

.ember { position: absolute; inset: 0; z-index: -1; }

.beam {
  position: absolute;
  left: -30%;
  width: 170%;
  rotate: 34deg;
  mix-blend-mode: screen;
  animation: beam-in 1.6s var(--ease-out) both;
}

/* Fine striation inside the light, like the scan lines on the post */
.beam::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgb(255 236 200 / 0.09) 0 1px, transparent 1px 6px);
}

.beam-a {
  top: 4%;
  height: 15vmax;
  filter: blur(2px);
  background: linear-gradient(to bottom,
    transparent 0 6%,
    rgb(255 120 30 / 0.32) 9%,
    rgb(255 176 70 / 0.62) 40%,
    rgb(255 214 120 / 0.78) 52%,
    rgb(255 140 40 / 0.42) 86%,
    transparent 90%);
}

.beam-b {
  top: 24%;
  height: 6vmax;
  filter: blur(1px);
  mix-blend-mode: multiply;
  background: linear-gradient(to bottom, transparent 0 8%, rgb(20 0 0 / 0.62) 14% 82%, transparent 90%);
  animation-delay: 0.08s;
}

.beam-b::after { display: none; }

.beam-c {
  top: 47%;
  height: 9vmax;
  filter: blur(3px);
  background: linear-gradient(to bottom, transparent 0 10%, rgb(240 86 20 / 0.36) 16%, rgb(255 130 40 / 0.44) 50%, rgb(240 86 20 / 0.3) 84%, transparent 90%);
  animation-delay: 0.16s;
}

.beam-d {
  top: 19%;
  height: 1.2vmax;
  filter: blur(1px);
  background: linear-gradient(to bottom, transparent, rgb(255 222 140 / 0.55) 30% 70%, transparent);
  animation-delay: 0.24s;
}

.beam-d::after { display: none; }

.flare {
  position: absolute;
  top: -18vmax;
  right: -14vmax;
  width: 56vmax;
  height: 56vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 214 90 / 0.95), rgb(255 150 40 / 0.55) 38%, rgb(240 90 20 / 0.18) 64%, transparent);
  mix-blend-mode: screen;
}

.globe {
  position: absolute;
  top: 50%;
  right: max(-16vw, -260px);
  width: min(64vw, 92vh, 980px);
  height: auto;
  translate: 0 -44%;
  opacity: 0.62;
  mix-blend-mode: screen;
  animation: globe-in 1.8s var(--ease-out) both;
}

@keyframes beam-in {
  from { opacity: 0; translate: -8% 0; }
}

@keyframes globe-in {
  from { opacity: 0; scale: 0.96; }
}

.stage-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(28px, 5vh, 56px) var(--gutter) clamp(64px, 9vh, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 4.2vh, 44px);
}

.stage-inner > * { animation: rise 0.9s var(--ease-out) both; }
.stage-inner > :nth-child(2) { animation-delay: 0.06s; }
.stage-inner > :nth-child(3) { animation-delay: 0.12s; }
.stage-inner > :nth-child(4) { animation-delay: 0.18s; }
.stage-inner > :nth-child(5) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; translate: 0 14px; }
}

.stage-code {
  position: absolute;
  left: var(--gutter);
  bottom: -18px;
  z-index: 1;
  width: clamp(150px, 16vw, 230px);
  height: auto;
  opacity: 0.72;
}

.mark { width: clamp(64px, 6vw, 92px); height: auto; }

/* Title lockup */

.lockup {
  margin: 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.92;
  text-shadow: 0 2px 16px rgb(40 4 1 / 0.5);
}

.lockup-main {
  display: block;
  font-size: var(--title);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.lockup-sub {
  display: flex;
  align-items: center;
  gap: calc(var(--title) * 0.14);
  margin-top: calc(var(--title) * 0.2);
  font-size: calc(var(--title) * 0.31);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.lockup-lines span { display: block; white-space: nowrap; }

.lockup em { font-style: normal; color: #ffa24d; }

.year {
  display: grid;
  place-content: center;
  flex: none;
  height: 2.2em;
  padding: 0 0.32em;
  border-radius: 0.3em;
  background: linear-gradient(180deg, var(--gold), var(--flame-hi));
  color: var(--on-flame);
  font-size: 0.94em;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0.2em 0.6em -0.2em rgb(0 0 0 / 0.5);
}

/* Audience */

.audience-label {
  margin: 0 0 0.4em;
  font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ecd8d0;
}

.audience-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* CTA */

.cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 1.05em 1.9em 1.05em 2.1em;
  border: 0;
  border-radius: 999px;
  background: #0a0101;
  color: var(--white);
  font: 500 clamp(1rem, 0.95rem + 0.3vw, 1.2rem)/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 14px 34px -14px rgb(0 0 0 / 0.75);
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}

.cta-icon {
  width: 1.15em;
  height: 1.15em;
  transition: transform 220ms var(--ease-out);
}

.cta:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .cta:hover { background: #240604; }
  .cta:hover .cta-icon { transform: translate(2px, -2px); }
  .cta-flame:hover { background-color: var(--amber); background-image: linear-gradient(160deg, var(--gold), var(--flame-hi) 70%); }
}

.cta-flame {
  background-color: var(--flame-hi);
  background-image: linear-gradient(160deg, var(--amber), var(--flame) 70%);
  color: var(--on-flame);
  font-weight: 600;
}

.cta-block { align-self: stretch; justify-content: center; width: 100%; }

.cta:disabled { cursor: progress; opacity: 0.75; }

/* Fact tiles */

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  max-width: 680px;
}

.fact {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2vw, 28px) clamp(16px, 1.6vw, 24px);
  border-radius: var(--radius-tile);
  font-size: clamp(0.95rem, 0.3rem + 1.55vw, 1.75rem);
  line-height: 1.2;
}

.fact strong { font-weight: 700; text-wrap: balance; }

.fact-icon {
  width: 1.3em;
  height: 1.3em;
  margin-bottom: 0.9em;
}

.fact-date {
  background: linear-gradient(165deg, var(--amber) 0%, var(--flame-hi) 45%, var(--flame) 100%);
  color: var(--on-flame);
  text-transform: uppercase;
}

.fact-date span { font-weight: 500; }

.fact-place {
  background: rgb(38 7 4 / 0.72);
  border: 1px solid var(--hairline);
  color: var(--white);
  backdrop-filter: blur(6px);
}

.spark {
  position: absolute;
  top: -0.9em;
  right: -0.5em;
  width: 2.3em;
  height: 2.3em;
  color: var(--white);
}

/* ---------- About ---------- */

.about {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(to bottom, var(--stage-foot), transparent 180px),
    linear-gradient(124deg, transparent 0 58%, rgb(240 86 20 / 0.08) 58.2%, rgb(255 150 50 / 0.13) 66%, transparent 66.2%),
    linear-gradient(180deg, var(--stage-foot), var(--ember-950) 45%, var(--ink));
}

.about-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(56px, 7vw, 96px);
  display: grid;
  gap: clamp(28px, 4vw, 56px) clamp(32px, 6vw, 96px);
}

@media (min-width: 900px) {
  .about-inner { grid-template-columns: 5fr 6fr; align-items: start; }
  .how { grid-column: 1 / -1; }
}

.about-title {
  margin: 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  text-wrap: balance;
}

.about-body { max-width: 62ch; }

.about-body > p {
  margin: 0 0 1.1em;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  color: var(--text);
  text-wrap: pretty;
}

.about-body > p:last-child { margin-bottom: 0; }

.how { display: grid; gap: 20px; }
.how .cta { justify-self: start; }

.how-title {
  margin: 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
}

.steps {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0 clamp(24px, 3vw, 48px);
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.steps li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 899px) {
  .steps li:last-child { border-bottom: 1px solid var(--hairline); }
}

.steps p { margin: 0; color: var(--text); }
.steps strong { color: var(--white); font-weight: 600; }

.step-n {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--flame-hi);
}

/* ---------- Footer ---------- */

.foot { background: var(--ink); border-top: 1px solid rgb(255 214 196 / 0.1); }

.foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: grid;
  gap: 14px;
  font-size: 0.875rem;
  color: var(--muted);
}

.foot-brand { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 500; }
.foot-brand img { width: 52px; height: auto; }
.foot p { margin: 0; }

@media (min-width: 900px) {
  .foot-inner { grid-template-columns: 1fr auto; align-items: center; column-gap: 48px; }
  .foot-brand { grid-column: 1; }
  .foot-meta { grid-column: 2; text-align: right; }
  .foot-meta:first-of-type { grid-row: 1; }
}

/* ---------- Credential (registration dialog) ---------- */

.credential {
  position: fixed;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100svh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(255 200 170 / 0.2);
  border-radius: 28px;
  background:
    radial-gradient(120% 70% at 100% 100%, rgb(122 23 4 / 0.45), transparent 60%),
    var(--ember-900);
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.85);
  scrollbar-width: thin;

  opacity: 1;
  translate: 0 0;
  scale: 1;
  transition:
    opacity 160ms ease,
    translate 160ms var(--ease-out),
    scale 160ms var(--ease-out),
    overlay 160ms allow-discrete,
    display 160ms allow-discrete;
}

.credential:not([open]) { opacity: 0; translate: 0 6px; scale: 0.98; }

.credential[open] {
  transition-duration: 240ms;

  @starting-style {
    opacity: 0;
    translate: 0 10px;
    scale: 0.97;
  }
}

.credential::backdrop {
  background: rgb(8 1 0 / 0);
  backdrop-filter: blur(0);
  transition: background-color 240ms ease, backdrop-filter 240ms ease, overlay 240ms allow-discrete, display 240ms allow-discrete;
}

.credential[open]::backdrop {
  background: rgb(8 1 0 / 0.74);
  backdrop-filter: blur(6px);

  @starting-style {
    background: rgb(8 1 0 / 0);
    backdrop-filter: blur(0);
  }
}

.credential::before { border-radius: inherit; }
.credential > * { position: relative; z-index: 1; }

.cred-head {
  padding: 34px 28px 24px;
  background: linear-gradient(165deg, var(--amber), var(--flame-hi) 50%, var(--flame));
  color: var(--on-flame);
}

.cred-slot {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 56px;
  height: 8px;
  translate: -50% 0;
  border-radius: 999px;
  background: rgb(26 4 2 / 0.55);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.5);
}

.cred-title {
  margin: 0 48px 6px 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 600;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.cred-sub { margin: 0; font-size: 0.875rem; font-weight: 500; line-height: 1.45; }

.cred-close {
  position: absolute;
  top: 24px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(26 4 2 / 0.14);
  color: var(--on-flame);
  cursor: pointer;
  transition: background-color 180ms ease, transform 160ms var(--ease-out);
}

.cred-close svg { width: 20px; height: 20px; }
.cred-close:hover { background: rgb(26 4 2 / 0.24); }
.cred-close:active { transform: scale(0.94); }
.cred-close:focus-visible { outline-color: var(--on-flame); }

.cred-form { padding: 26px 28px 8px; display: grid; gap: 16px; }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }

.field-row { display: grid; gap: 16px; }

@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field label { font-size: 0.875rem; font-weight: 500; color: var(--text); }

.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: rgb(255 240 232 / 0.06);
  color: var(--white);
  font: 400 1rem var(--sans);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field input::placeholder { color: rgb(216 189 179 / 0.62); }

.field input:hover { border-color: rgb(255 214 196 / 0.38); }

.field input:focus {
  outline: none;
  border-color: var(--flame-hi);
  background: rgb(255 240 232 / 0.09);
  box-shadow: 0 0 0 3px rgb(244 122 31 / 0.28);
}

.field input[aria-invalid="true"] { border-color: var(--error); }

.field-error {
  margin: 0;
  min-height: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--error);
}

.field-error:empty { display: none; }

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--flame);
  cursor: pointer;
}

.cred-note { margin: 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }

.cred-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 28px 0;
  padding: 18px 0 22px;
  border-top: 1px dashed rgb(255 214 196 / 0.28);
  font-family: var(--display);
  font-stretch: 125%;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.cred-foot img { width: 132px; height: auto; opacity: 0.55; }

/* Short laptop screens: keep the whole poster above the fold */
@media (min-width: 900px) and (max-height: 960px) {
  :root { --title: clamp(4.5rem, 12.5vh, 7.5rem); }
  .stage-inner { gap: 3.2vh; padding-block: 4vh; }
  .audience-list { font-size: clamp(1.9rem, 5.4vh, 3.1rem); }
  .fact { padding: 18px 22px; }
  .fact-icon { margin-bottom: 0.5em; }
}

/* ---------- Small screens: the post, stacked ---------- */

@media (max-width: 899px) {
  .stage { min-height: auto; }
  .stage-inner { padding-top: max(32px, env(safe-area-inset-top)); padding-bottom: 76px; }
  .beam-a { opacity: 0.6; }
  .globe {
    top: 54%;
    right: -38vw;
    width: 92vw;
    opacity: 0.5;
  }
  .flare { top: -10vmax; right: -24vmax; }
}

@media (max-width: 520px) {
  .fact { font-size: 0.95rem; }
  .spark { top: -0.8em; right: -0.3em; width: 2em; height: 2em; }
  .cred-head { padding: 32px 22px 22px; }
  .cred-form { padding: 22px 22px 6px; }
  .cred-foot { margin: 16px 22px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .beam, .globe, .stage-inner > * { animation: none; }
  .credential, .credential[open] { translate: 0 0; scale: 1; }
  .credential[open] { @starting-style { translate: 0 0; scale: 1; } }
  .cta, .cta-icon, .cred-close { transition: none; }
}
