/* ==========================================================================
   Eclipse - site stylesheet
   ==========================================================================
   Warm near-black, ivory type, one serif for display and one sans for text.
   The root size follows the viewport - 16px at 1920, 24px at 3840 - and
   every length is in rem, so the composition holds from a laptop to a 4K
   monitor at 100% scaling.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-display.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

:root {
  --bg: #141413;
  --raise: #1b1a18;
  --raise-2: #22211f;
  --line: rgba(250, 249, 245, 0.09);
  --line-2: rgba(250, 249, 245, 0.16);
  --line-hi: var(--line-2);
  --text: #faf9f5;
  --muted: #b5b2a8;
  --faint: #83807a;
  --accent: #e3b04b;
  --e1: #f7c34a;   /* the emblem's two warm colours: gold and ember */
  --e2: #ff8a2a;
  --flow: linear-gradient(90deg, var(--e1), var(--e2), var(--e1), var(--e2), var(--e1));

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bar-h: 4rem;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --r-lg: 1.25rem;
  --r-md: 0.85rem;
}

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

html {
  font-size: clamp(15px, 0.42vw + 7.9px, 26px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: var(--bar-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, kbd {
  font: 450 0.86em/1 var(--mono);
  padding: 0.2em 0.42em;
  border-radius: 0.35em;
  background: rgba(250, 249, 245, 0.07);
  border: 1px solid var(--line);
  color: var(--text);
}
::selection { background: rgba(227, 176, 75, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0.4rem; }

[hidden] { display: none !important; }

.flow-text {
  background: var(--flow);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: flow 9s linear infinite;
}
.flow-text--strong { font-weight: 600; }
@keyframes flow {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg:not(.sprite) { width: 1.1em; height: 1.1em; flex: none; fill: currentColor; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 0.9rem; border-radius: 0.6rem;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================================
   Header
   ========================================================================== */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--bar-h);
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bar.is-solid {
  background: rgba(20, 20, 19, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.bar__inner {
  height: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img { width: 1.75rem; height: 1.75rem; }
.bar__nav { display: flex; gap: 0.25rem; }
.bar__nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.bar__nav a:hover { color: var(--text); background: rgba(250, 249, 245, 0.06); }
.bar__nav a.is-active { color: var(--text); }
.bar__actions { display: flex; align-items: center; gap: 0.5rem; justify-self: end; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.icon-btn:hover { color: var(--text); background: rgba(250, 249, 245, 0.07); }
.icon-btn svg { width: 1.2rem; height: 1.2rem; }

@media (max-width: 820px) {
  .bar__inner { grid-template-columns: 1fr auto; }
  .bar__nav { display: none; }
}

/* ==========================================================================
   Buttons - pills: ivory for the main action, an outline for the rest
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.9rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn--sm { height: 2.4rem; padding: 0 1.05rem; font-size: 0.88rem; }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(250, 249, 245, 0.06); border-color: rgba(250, 249, 245, 0.26); }
.linklike { padding: 0; border: 0; background: none; cursor: pointer; }

/* ==========================================================================
   Hero
   ==========================================================================
   Exactly one screen. The world is behind it; the text takes what it needs
   and the stage takes the rest (flex: 1). The stage is a size container, so
   the video is the largest 16:9 that fits in it - the whole video is on the
   first screen at any size, with no magic numbers.
   ========================================================================== */

.hero {
  --hh: max(100vh, 36rem);
  position: relative;
  isolation: isolate;
  height: var(--hh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--bar-h) + clamp(1.25rem, 4.5vh, 3.5rem)) 0 clamp(1.5rem, 4.5vh, 3.25rem);
  overflow: hidden;
}
@supports (height: 1svh) {
  .hero { --hh: max(100svh, 36rem); }
}

/* The art plate is drawn at exactly what `cover` would render over the hero,
   times 1.06, and set at 0.97 - 1.4% over cover on each side. At rest it
   only sways, left and right like the figure hovering, with a hint of tilt:
   the 0.8% swing (of the plate) plus the tilt's corner swing stays inside
   that 1.4%. The plate hangs --drop lower than centre so the face, which
   sits in the top tenth of the art, clears the header; the strip that opens
   above it is covered by the plate's own soft top edge fading into the
   backdrop. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #2a130c;
}
.hero__plate {
  --cw: max(100vw, calc(var(--hh) * 1.77778));   /* the art, 16:9 */
  --ch: max(56.25vw, var(--hh));
  --pw: calc(var(--cw) * 1.06);
  --ph: calc(var(--ch) * 1.06);
  --drop: calc(var(--hh) * 0.06);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--pw);
  height: var(--ph);
  margin-left: calc(var(--pw) / -2);
  margin-top: calc(var(--ph) / -2 + var(--drop));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 3.5%);
  mask-image: linear-gradient(180deg, transparent, #000 3.5%);
  scale: 0.97;
  animation: sway 11s ease-in-out -5.5s infinite alternate;
  will-change: transform, translate, rotate;
}
@media (max-aspect-ratio: 4/5) {
  .hero__plate {
    --cw: max(100vw, calc(var(--hh) * 0.61991)); /* portrait crop */
    --ch: max(161.314vw, var(--hh));
  }
}
.hero__plate picture,
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art { object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__art.is-loaded { opacity: 1; }
@keyframes sway {
  from { translate: -0.8% 0; rotate: -0.12deg; }
  to   { translate: 0.8% 0;  rotate: 0.12deg; }
}

/* Lightning, in two beats the script drives. .is-charging: the world slowly
   pushes in, brightens and starts to tremble, harder towards the end. Then
   .is-strike: it jolts left and right, blurs and flares twice, and eases
   back to rest. Both ride on `transform`, on top of the sway, and hold the
   plate near 1.03x, which buys 3% of overhang per side - the swings plus
   the sway stay well inside it. Charge ends exactly where strike begins.
   The veil thins with them so the light reaches the eye. */
.hero__bg.is-charging .hero__plate {
  animation:
    sway 11s ease-in-out -5.5s infinite alternate,
    charge 2.4s ease-in forwards;
}
.hero__bg.is-strike .hero__plate {
  animation:
    sway 11s ease-in-out -5.5s infinite alternate,
    strike 1.1s ease-out;
}
.hero__bg.is-charging::after { animation: veil-charge 2.4s ease-in forwards; }
.hero__bg.is-strike::after { animation: veil-flash 1.1s ease-out; }
@keyframes charge {
  0%   { transform: scale(1) translateX(0);          filter: blur(0) brightness(1) saturate(1); }
  60%  { transform: scale(1.018) translateX(0);      filter: blur(0) brightness(1.06) saturate(1.06); }
  68%  { transform: scale(1.021) translateX(0.08%);  filter: blur(0) brightness(1.07) saturate(1.07); }
  74%  { transform: scale(1.023) translateX(-0.1%);  filter: blur(0) brightness(1.08) saturate(1.08); }
  80%  { transform: scale(1.025) translateX(0.14%);  filter: blur(0.3px) brightness(1.1) saturate(1.1); }
  85%  { transform: scale(1.026) translateX(-0.18%); filter: blur(0.4px) brightness(1.11) saturate(1.1); }
  90%  { transform: scale(1.028) translateX(0.22%);  filter: blur(0.6px) brightness(1.13) saturate(1.12); }
  95%  { transform: scale(1.029) translateX(-0.26%); filter: blur(0.8px) brightness(1.14) saturate(1.12); }
  100% { transform: scale(1.03) translateX(0);       filter: blur(1px) brightness(1.15) saturate(1.15); }
}
@keyframes strike {
  0%   { transform: scale(1.03) translateX(0);       filter: blur(1px) brightness(1.15) saturate(1.15); }
  5%   { transform: scale(1.03) translateX(-1%);     filter: blur(4px) brightness(1.75) saturate(1.3); }
  12%  { transform: scale(1.03) translateX(0.8%);    filter: blur(2px) brightness(1.15) saturate(1.1); }
  19%  { transform: scale(1.03) translateX(-0.6%);   filter: blur(3.5px) brightness(1.6) saturate(1.25); }
  30%  { transform: scale(1.03) translateX(0.35%);   filter: blur(1.5px) brightness(1.12) saturate(1.08); }
  50%  { transform: scale(1.02) translateX(-0.1%);   filter: blur(0.5px) brightness(1.04) saturate(1.02); }
  100% { transform: scale(1) translateX(0);          filter: blur(0) brightness(1) saturate(1); }
}
@keyframes veil-charge {
  from { opacity: 1; }
  to   { opacity: 0.85; }
}
@keyframes veil-flash {
  0%       { opacity: 0.85; }
  5%       { opacity: 0.45; }
  12%      { opacity: 0.85; }
  19%      { opacity: 0.55; }
  35%      { opacity: 0.92; }
  100%     { opacity: 1; }
}

/* Light from the halo behind the figure: a warm bloom that swells and
   settles, and faint rays that sway a few degrees either way. Both ride on
   the plate, so they stay pinned to the art as it moves. */
.hero__glow,
.hero__rays { position: absolute; pointer-events: none; mix-blend-mode: screen; }
.hero__glow {
  inset: 0;
  background:
    radial-gradient(ellipse 26% 22% at 50.5% 14%, rgba(255, 186, 92, 0.55), rgba(255, 128, 42, 0.16) 50%, transparent 72%),
    radial-gradient(ellipse 60% 45% at 50.5% 19%, rgba(255, 120, 40, 0.14), transparent 70%);
  opacity: 0.35;
  transform-origin: 50.5% 14%;
  animation: bloom 7s ease-in-out infinite alternate;
  transition: filter 0.9s ease-out;
}
.hero__bg.is-charging .hero__glow { filter: brightness(1.9); transition: filter 2.4s ease-in; }
@keyframes bloom {
  from { opacity: 0.3; transform: scale(0.96); }
  to   { opacity: 0.8; transform: scale(1.05); }
}
.hero__rays {
  left: 50.5%;
  top: 14%;
  width: 220%;
  aspect-ratio: 1;
  background:
    repeating-conic-gradient(from 3deg, transparent 0deg, rgba(255, 196, 120, 0.09) 2.5deg, transparent 5deg 11deg),
    repeating-conic-gradient(from 0deg, transparent 0deg, rgba(255, 150, 70, 0.07) 3.5deg, transparent 7deg 17deg);
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 2%, #000 9%, rgba(0, 0, 0, 0.55) 26%, transparent 52%);
  mask-image: radial-gradient(circle closest-side, transparent 2%, #000 9%, rgba(0, 0, 0, 0.55) 26%, transparent 52%);
  transform: translate(-50%, -50%) rotate(-3deg);
  animation: ray-sway 23s ease-in-out infinite alternate, shimmer 9s ease-in-out infinite alternate;
}
@keyframes ray-sway {
  from { transform: translate(-50%, -50%) rotate(-3deg); }
  to   { transform: translate(-50%, -50%) rotate(3deg); }
}
@keyframes shimmer {
  from { opacity: 0.45; }
  to   { opacity: 1; }
}

.hero__ash,
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Embers and glints sit above the dimming veil so they read as light. */
.hero__fx { z-index: 1; }
/* Dim enough for type to sit on the art, and meeting the page colour at the
   bottom edge so the hero ends without a seam. */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20, 20, 19, 0.7) 0%,
      rgba(20, 20, 19, 0.5) 30%,
      rgba(20, 20, 19, 0.46) 60%,
      rgba(20, 20, 19, 0.78) 88%,
      var(--bg) 100%);
}

.hero__text { position: relative; text-align: center; }
.hero h1 {
  font: 400 clamp(2.3rem, 1.2rem + 2.9vw, 3.9rem)/1.08 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 0.1rem 1.5rem rgba(0, 0, 0, 0.35);
}
.hero__text p {
  max-width: 35rem;
  margin: 1rem auto 0;
  font-size: clamp(1.02rem, 0.96rem + 0.25vw, 1.15rem);
  line-height: 1.55;
  color: #d6d3ca;
  text-wrap: balance;
}
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 1.75rem; }

.hero__stage {
  position: relative;
  flex: 1 1 0;
  min-height: 11rem;
  max-height: calc(var(--wrap) * 9 / 16);
  margin-top: clamp(1.75rem, 5vh, 3rem);
  container-type: size;
  display: grid;
  place-items: center;
}

.player {
  position: relative;
  width: min(100cqw, 100cqh * 16 / 9);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: rgba(17, 17, 16, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(250, 249, 245, 0.14), 0 2rem 5rem -1.5rem rgba(0, 0, 0, 0.7);
}
@supports not (width: 1cqw) {
  .player { width: 100%; }
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* The poster is the video's own thumbnail; a click swaps in the embedded
   player. The thumbnail's title sits dead centre, so the play cue lives in
   the lower left, over a soft scrim, instead of on top of it. */
.player__poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--text);
  border-radius: inherit;
  cursor: pointer;
}
.player__poster:focus-visible { outline-offset: -3px; }
.player__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 8, 6, 0.78), rgba(10, 8, 6, 0.3) 28%, transparent 50%),
    radial-gradient(130% 100% at 50% 40%, transparent 55%, rgba(10, 8, 6, 0.4));
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.player__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.player__cue {
  position: absolute;
  z-index: 1;
  left: clamp(0.9rem, 3cqw, 2rem);
  bottom: clamp(0.9rem, 3cqw, 2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 1.6rem 0.55rem 0.55rem;
  border-radius: 999px;
  background: rgba(18, 16, 14, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow:
    inset 0 1px 0 rgba(250, 249, 245, 0.1),
    0 0 0 1px rgba(250, 249, 245, 0.14),
    0 1rem 2.5rem -1rem rgba(0, 0, 0, 0.8);
  transition: transform 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.player__play {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  color: #1f1206;
  background: linear-gradient(140deg, #ffd66b, var(--e1) 40%, var(--e2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 0.4rem 1.4rem -0.3rem rgba(255, 138, 42, 0.7);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.player__play svg { width: 1.3rem; height: 1.3rem; margin-left: -0.06rem; }  /* the glyph's path sits right of its box; this centres it by eye */
.player__label {
  display: grid;
  gap: 0.2rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.player__label small {
  font-size: 0.78rem;
  font-weight: 500;
  color: #d9d4c7;
  letter-spacing: 0.01em;
}
.player__poster:hover .player__thumb,
.player__poster:focus-visible .player__thumb { transform: scale(1.025); filter: brightness(1.08); }
.player__poster:hover::after { opacity: 0.8; }
.player__poster:hover .player__cue,
.player__poster:focus-visible .player__cue {
  transform: translateY(-2px);
  background: rgba(18, 16, 14, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(250, 249, 245, 0.12),
    0 0 0 1px rgba(247, 195, 74, 0.5),
    0 1.25rem 2.75rem -1rem rgba(0, 0, 0, 0.85);
}
.player__poster:hover .player__play,
.player__poster:focus-visible .player__play {
  transform: scale(1.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0.5rem 1.9rem -0.25rem rgba(255, 138, 42, 0.9);
}
.player.is-playing { background: #000; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(4rem, 10vh, 6.5rem) 0; }
.section__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 6vh, 3.75rem); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2,
.download h2 {
  font: 400 clamp(1.9rem, 1.3rem + 1.6vw, 2.75rem)/1.12 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section__head p { margin-top: 0.9rem; font-size: 1.05rem; color: var(--muted); text-wrap: pretty; }

/* Features: plain text on a grid, each item under a hairline that carries a
   short stroke of the emblem's gold or ember; hovering draws it across. */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}
.features article { position: relative; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.features article::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--c, var(--e1));
  transition: width 0.5s var(--ease);
}
.features article:hover::before { width: 100%; }
.features article:nth-child(even) { --c: var(--e2); }
.features h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; }
.features p { margin-top: 0.4rem; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }

/* Download: one panel. */
.panel {
  border-radius: var(--r-lg);
  background: var(--raise);
  border: 1px solid var(--line);
}
.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  padding: clamp(2rem, 4vw, 3.5rem);
}
.download__intro p { margin-top: 0.9rem; color: var(--muted); max-width: 26rem; }
.download__btns { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
.download__intro .fine { margin-top: 1rem; font-size: 0.8rem; color: var(--faint); }
.steps { counter-reset: step; align-self: center; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 0 1.1rem 3rem;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--raise-2);
  border: 1px solid var(--line-2);
}
.steps h3 { font-size: 1rem; font-weight: 600; }
.steps p { margin-top: 0.2rem; font-size: 0.93rem; color: var(--muted); }

/* Support: three ways, then the wallets. */
.support {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.slink {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--r-md);
  background: var(--raise);
  border: 1px solid var(--line);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.slink:hover { background: var(--raise-2); border-color: var(--line-2); }
.slink__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  color: #fff;
}
.slink__icon svg { width: 1.35rem; height: 1.35rem; }
.slink__icon--kofi { background: #ff5e5b; }
.slink__icon--discord { background: #5865f2; }
.slink__icon--star { background: var(--accent); color: #1a1405; }
.slink__text { display: grid; gap: 0.1rem; min-width: 0; }
.slink__text strong { font-weight: 600; }
.slink__text > span { font-size: 0.85rem; color: var(--muted); }
.slink__short { display: none; }
.slink__arrow { margin-left: auto; width: 1.05rem; height: 1.05rem; color: var(--faint); transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.slink:hover .slink__arrow { transform: translateX(3px); color: var(--text); }

.wallets__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.wcard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--r-md);
  background: var(--raise);
  border: 1px solid var(--line);
}
.wcard__head { display: flex; align-items: center; gap: 0.75rem; }
.wcard__coin { width: 2rem; height: 2rem; }
.wcard__name { display: grid; line-height: 1.3; }
.wcard__name strong { font-weight: 600; }
.wcard__name span { font-size: 0.8rem; color: var(--faint); }
.wcard__qr {
  aspect-ratio: 1;
  padding: 0.6rem;
  border-radius: 0.6rem;
  background: #fff;
}
.wcard__qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.wcard__addr {
  padding: 0;
  border: 0;
  background: none;
  font: 400 0.78rem/1.5 var(--mono);
  color: var(--muted);
  overflow-wrap: normal;
  word-break: normal;
  user-select: all;
}
.wcard .copy { margin-top: auto; height: 2.4rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.foot { padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.foot .brand { font-size: 0.95rem; }
.foot .brand img { width: 1.5rem; height: 1.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.foot nav a, .foot nav button { font-size: 0.9rem; color: var(--muted); transition: color 0.2s var(--ease); }
.foot nav a:hover, .foot nav button:hover { color: var(--text); }
.foot__legal { margin-top: 1.5rem; font-size: 0.8rem; color: var(--faint); }

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  z-index: 60;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  box-shadow: 0 1rem 2.4rem -0.8rem rgba(0, 0, 0, 0.7);
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Narrow screens
   ========================================================================== */

@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallets__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .download { grid-template-columns: 1fr; gap: 2rem; }
  .support { grid-template-columns: 1fr; gap: 0.6rem; margin-bottom: 0.6rem; }

  /* Small screens scroll by touch; the bar itself is noise. */
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
  html:has(.modal[open]) { overflow: hidden; }
}

/* Phones: the wallets become the same one-at-a-time picker as the dialog. */
.wallets__pick { display: none; }
@media (max-width: 700px) {
  .wallets__cards { display: none; }
  .wallets__pick { display: block; padding: 1.25rem; }
}

@media (max-width: 560px) {
  .section { padding: 3.25rem 0; }
  .section__head { margin-bottom: 2rem; }
  .section__head p { font-size: 0.98rem; }

  /* Portrait phones: the title and the video sit together as one block,
     centred on the screen, rather than the video floating in leftover space. */
  .hero { padding-bottom: 2rem; }
  .hero__stage { flex: none; min-height: 0; container-type: normal; margin-top: 2rem; }
  .player { width: 100%; border-radius: var(--r-md); }
  /* The frame is small here: the cue shrinks to its play button alone. */
  .player__cue { left: 0.75rem; bottom: 0.75rem; padding: 0.3rem; }
  .player__play { width: 2.6rem; height: 2.6rem; }
  .player__play svg { width: 1.05rem; height: 1.05rem; margin-left: -0.05rem; }
  .player__label { display: none; }
  .cta { gap: 0.6rem; margin-top: 1.5rem; }
  .cta .btn { flex: 1; padding: 0 1rem; }
  .bar .btn--sm span { display: none; }
  .bar .btn--sm { width: 2.4rem; padding: 0; }

  .features { gap: 1.6rem 1.1rem; }
  .features article { padding-top: 0.85rem; }
  .features article::before { width: 1.5rem; }
  .features h3 { font-size: 0.95rem; }
  .features p { font-size: 0.85rem; line-height: 1.5; }

  .download { padding: 1.6rem 1.25rem 1.25rem; gap: 1.5rem; border-radius: var(--r-md); }
  .download__btns { flex-direction: column; margin-top: 1.5rem; }
  .download__btns .btn { width: 100%; }
  .download__intro .fine { text-align: center; }
  .steps li { padding: 0.95rem 0 0.95rem 2.6rem; }
  .steps li::before { top: 0.95rem; }
  .steps li:last-child { border-bottom: 0; padding-bottom: 0; }

  .slink { padding: 0.95rem 1rem; }

  .foot { padding-top: 2rem; }
  .foot__inner { flex-direction: column; gap: 1.1rem; }
  .foot nav { justify-content: center; gap: 0.5rem 1.5rem; }
  .foot__legal { text-align: center; text-wrap: balance; }
}
@media (max-width: 359px) {
  .features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__ash, .hero__fx { display: none; }
}

/* ==========================================================================
   Copy button - shared by the wallet cards and the dialog
   ========================================================================== */

.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.3rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.copy svg { width: 1rem; height: 1rem; }
.copy:hover { background: rgba(250, 249, 245, 0.06); }
.copy.is-done { color: #9be0b5; border-color: rgba(155, 224, 181, 0.4); }

/* ==========================================================================
   Support dialog - the page's own surfaces, with the emblem's colours
   moving along its top edge
   ========================================================================== */

.modal {
  width: min(30rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 2.1rem 1.75rem 1.75rem;
  border: 1px solid var(--line-2);
  border-radius: 1.5rem;
  color: var(--text);
  background: var(--raise);
  box-shadow: 0 2rem 6rem -1rem rgba(0, 0, 0, 0.75);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  font-family: var(--sans);
}
.modal::-webkit-scrollbar { display: none; }
.modal:focus, .modal:focus-visible { outline: none; }
.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--flow);
  background-size: 200% 100%;
  animation: flow 9s linear infinite;
}
.modal::backdrop {
  background: rgba(10, 10, 9, 0.64);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal[open] { animation: modal-in 0.5s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.5s var(--ease); }
.modal.is-closing { animation: modal-out 0.25s ease-in forwards; }
.modal.is-closing::backdrop { animation: fade-out 0.25s ease-in forwards; }
@keyframes modal-in  { from { opacity: 0; transform: translateY(0.75rem) scale(0.98); } }
@keyframes modal-out { to   { opacity: 0; transform: translateY(0.4rem) scale(0.99); } }
@keyframes fade-in   { from { opacity: 0; } }
@keyframes fade-out  { to   { opacity: 0; } }

.modal__head { text-align: center; margin-bottom: 1.5rem; }
.modal__head img { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; }
.modal__head h2 { font: 400 2rem/1.1 var(--serif); letter-spacing: -0.015em; }
.modal__head p { max-width: 23rem; margin: 0.7rem auto 0; font-size: 0.95rem; color: var(--muted); text-wrap: pretty; }

.modal__links { display: grid; gap: 0.55rem; }
.modal .slink { padding: 0.8rem 1rem; background: var(--raise-2); }
.modal .slink:hover { background: #2a2926; }
.modal .slink__icon { width: 2.4rem; height: 2.4rem; border-radius: 0.65rem; }
.modal .slink__icon svg { width: 1.2rem; height: 1.2rem; }

.modal__crypto { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.wpick__title { margin-bottom: 0.75rem; text-align: center; font-size: 0.82rem; color: var(--faint); }
.wtabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.wtab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.wtab svg { width: 1.05rem; height: 1.05rem; }
.wtab:hover { color: var(--text); }
.wtab[aria-selected="true"] { color: var(--text); background: var(--raise-2); box-shadow: 0 0 0 1px var(--line-2); }
.wpanel {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}
.wallet__qr { aspect-ratio: 1; padding: 0.4rem; border-radius: 0.6rem; background: #fff; }
.wallet__qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.wpanel__side { display: grid; gap: 0.5rem; min-width: 0; justify-items: start; }
.wpanel__net { font-size: 0.8rem; color: var(--faint); }
.wpanel__net strong { color: var(--muted); font-weight: 500; }
.wallet__addr {
  padding: 0;
  border: 0;
  background: none;
  font: 400 0.78rem/1.5 var(--mono);
  color: var(--muted);
  overflow-wrap: anywhere;
  user-select: all;
}
.modal__foot { margin-top: 1.5rem; }
.btn--block { width: 100%; }

/* The page's own picker, on phones. */
.wallets__pick .wpick__title { text-align: left; font-size: 0.9rem; color: var(--muted); }
.wallets__pick .wtabs { background: var(--bg); }

/* Phones: the dialog is sized to fit the screen whole, never to scroll. The
   three links become a row of tiles, and what can go goes as the screen
   gets shorter - first the emblem, then the line under the title. */
@media (max-width: 520px) {
  .modal {
    width: calc(100vw - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: 1.6rem 1.1rem 1.1rem;
    border-radius: 1.25rem;
  }
  .modal::before { left: 1.25rem; right: 1.25rem; }
  .modal__head { margin-bottom: 1.1rem; }
  .modal__head img { width: 2.75rem; height: 2.75rem; margin-bottom: 0.7rem; }
  .modal__head h2 { font-size: 1.7rem; }
  .modal__head p { margin-top: 0.5rem; font-size: 0.88rem; line-height: 1.5; }

  .modal__links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .modal .slink {
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 0.25rem 0.7rem;
    text-align: center;
  }
  .modal .slink__icon { width: 2.25rem; height: 2.25rem; }
  .modal .slink__text strong { font-size: 0.82rem; }
  .modal .slink__text > span,
  .modal .slink__arrow,
  .modal .slink__full { display: none; }
  .modal .slink__short { display: inline; }

  .modal__crypto { margin-top: 1.1rem; padding-top: 1.1rem; }
  .wpick__title { margin-bottom: 0.6rem; }
  .wtab { gap: 0.3rem; height: 2.1rem; font-size: 0.8rem; }
  .wtab svg { width: 0.95rem; height: 0.95rem; }
  .wpanel { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 0.9rem; margin-top: 0.85rem; }
  .wpanel__side { gap: 0.4rem; }
  .wallet__addr { font-size: 0.74rem; }
  .modal .copy { height: 2.1rem; padding: 0 0.85rem; font-size: 0.8rem; }
  .modal__foot { margin-top: 1.1rem; }
  .modal__foot .btn { height: 2.75rem; }
}
@media (max-width: 359px) {
  .wtab svg { display: none; }
}
@media (max-width: 520px) and (max-height: 620px) {
  .modal__head img { display: none; }
}
@media (max-width: 520px) and (max-height: 540px) {
  .modal { padding-top: 1.35rem; }
  .modal__head { margin-bottom: 0.9rem; }
  .modal__head p { display: none; }
}

/* Phones on their side: too short for one column, so two - the ask on the
   left, the wallets and the way out on the right. */
@media (min-width: 521px) and (max-height: 540px) {
  .modal {
    width: min(46rem, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    padding: 1.4rem 1.4rem 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head crypto" "links crypto" "links foot";
    grid-template-rows: auto 1fr auto;
    column-gap: 1.5rem;
  }
  .modal:not([open]) { display: none; }
  .modal__head { grid-area: head; margin-bottom: 1rem; }
  .modal__head img { display: none; }
  .modal__head h2 { font-size: 1.6rem; }
  .modal__head p { margin-top: 0.4rem; font-size: 0.85rem; }
  .modal__links { grid-area: links; align-content: start; gap: 0.45rem; }
  .modal .slink { padding: 0.6rem 0.8rem; }
  .modal .slink__icon { width: 2rem; height: 2rem; border-radius: 0.55rem; }
  .modal .slink__icon svg { width: 1rem; height: 1rem; }
  .modal .slink__text > span { display: none; }
  .modal__crypto {
    grid-area: crypto;
    margin: 0;
    padding: 0 0 0 1.5rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .wpanel { grid-template-columns: 5.25rem minmax(0, 1fr); margin-top: 0.8rem; }
  .modal .copy { height: 2.1rem; font-size: 0.8rem; }
  .modal__foot { grid-area: foot; margin-top: 0.9rem; padding-left: 1.5rem; }
  .modal__foot .btn { height: 2.6rem; }
}
