/* ==========================================================
   Empyrean — styles
   Palette: fresco sky, warm cloud, cream gallery, gilt frames
   ========================================================== */

:root {
  --sky-top: #8fb1d6;
  --sky: #a9c4e2;
  --sky-pale: #d7e4f1;
  --cloud: #f4e3cf;
  --cloud-warm: #e9c9a6;
  --cream: #f7eee1;
  --cream-deep: #efe1cc;
  --ink: #2a2017;
  --ink-soft: #6b5a47;
  --gold: #b48a49;
  --gold-light: #e2c58f;
  --gold-dark: #7d5a27;
  --white: #ffffff;
  --ok: #4f7d4a;
  --bad: #a4473a;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;

  --img-hero: url("https://thumb.wikimedia.org/wikipedia/commons/thumb/7/78/Cathedral_%28Parma%29_-_Assumption_by_Correggio.jpg/1920px-Cathedral_%28Parma%29_-_Assumption_by_Correggio.jpg");
  --img-portal: url("https://thumb.wikimedia.org/wikipedia/commons/thumb/4/4e/Sant_Ignazio_di_Loyola_Ceiling%2C_Andrea_Pozzo.jpg/1920px-Sant_Ignazio_di_Loyola_Ceiling%2C_Andrea_Pozzo.jpg");
  --img-aurora: url("https://upload.wikimedia.org/wikipedia/commons/a/a3/Guido_Reni_-_Aurora_-_WGA19273.jpg");
  --img-wurzburg: url("https://thumb.wikimedia.org/wikipedia/commons/thumb/3/30/Tiepolo-residence-wuerzburg-apollon-asia.jpg/1920px-Tiepolo-residence-wuerzburg-apollon-asia.jpg");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .3 0 0 0 0 .18 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --img-closing: url("https://thumb.wikimedia.org/wikipedia/commons/thumb/c/cd/Oval_design_for_a_ceiling_painted_with_putti_in_clouds_MET_DP811722.jpg/1920px-Oval_design_for_a_ceiling_painted_with_putti_in_clouds_MET_DP811722.jpg");
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- shared bits ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .7em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill--dark { background: var(--ink); color: var(--cream); }
.pill--dark:hover { box-shadow: 0 10px 24px -10px rgba(42, 32, 23, .6); }
.pill--light {
  background: rgba(255, 255, 255, .85);
  color: var(--ink);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -12px rgba(80, 60, 30, .45);
}

.br-sm { display: none; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Clouds: a soft white ellipse (bright top, faint warm-grey underside) bent into a
   fluffy shape by the SVG noise filters defined at the top of index.html. */
.cloud {
  position: absolute;
  pointer-events: none;
  width: 520px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 50% 46% at 50% 40%, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .9) 45%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(ellipse 46% 34% at 52% 70%, rgba(214, 206, 204, .55) 0%, rgba(214, 206, 204, 0) 100%);
  filter: url(#cloud-a);
  opacity: .92;
  will-change: transform;
  animation: drift 26s ease-in-out infinite alternate;
}
.cloud:nth-of-type(even) { filter: url(#cloud-b); }
@keyframes drift {
  from { transform: translateX(-18px) scale(var(--s, 1)); }
  to   { transform: translateX(22px) scale(var(--s, 1)); }
}

/* ---------- NAV ---------- */

.nav {
  position: fixed;
  inset: 14px var(--gutter) auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(247, 238, 225, .72);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 8px 30px -18px rgba(60, 40, 20, .5);
}
.nav__brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.04em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.nav__brand span { color: var(--gold); }
.nav__brand small {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 3px;
  color: var(--ink-soft);
}
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { padding: .6em 1.15em; font-size: .82rem; border: 0; cursor: pointer; font-family: var(--font); }

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 92px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__fresco {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--sky-top) var(--img-hero) center 30% / cover no-repeat;
  transform: scale(1.08);
  will-change: transform;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(169, 196, 226, .05) 0%, rgba(169, 196, 226, .25) 45%, var(--sky) 92%),
    radial-gradient(ellipse at 50% 55%, rgba(255, 244, 225, .45), transparent 60%);
}
.hero__logo {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(255, 240, 215, .7);
}
.hero__logo span { color: var(--gold); }

.hero__main {
  margin-top: clamp(28px, 5.5vh, 60px);
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

/* live round badge */
.live {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 7px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  background: rgba(247, 238, 225, .78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 8px 24px -16px rgba(60, 40, 20, .6);
  font-size: .72rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: transform .2s;
}
.live:hover { transform: translateY(-1px); }
.live b { font-family: var(--mono); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.live__word { font-weight: 700; color: var(--ok); text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.live__sep { opacity: .5; }
.live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(79, 125, 74, .6);
  animation: ping 1.6s ease-out infinite;
}
.live.is-closing .live__dot { background: var(--gold); }
.live.is-closing #hero-closes { color: var(--bad); }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(79, 125, 74, .55); }
  100% { box-shadow: 0 0 0 10px rgba(79, 125, 74, 0); }
}

.hero__title {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 800;
  text-align: center;
  color: var(--white);
  text-shadow: 0 6px 40px rgba(90, 60, 30, .35);
}
.hero__line {
  font-size: clamp(2.5rem, 6.6vw, 5.8rem);
  letter-spacing: -.06em;
  line-height: .92;
}
.hero__line--soft {
  margin-top: .3em;
  font-size: clamp(1.3rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.05em;
  color: #fff6e8;
}

.hero__sub {
  margin: 22px 0 0;
  max-width: 420px;
  font-size: clamp(.86rem, 1.3vw, .98rem);
  line-height: 1.5;
  color: var(--white);
  text-shadow: 0 1px 14px rgba(60, 40, 20, .55);
}
.hero__sub strong { color: #ffe9bf; }

.hero__ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.pill--lg { padding: .7em 1.3em; font-size: .84rem; }

/* contract address */
.ca {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 440px);
  padding: 4px 4px 4px 5px;
  border-radius: 999px;
  background: rgba(42, 32, 23, .72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 197, 143, .35);
  color: var(--cream);
}
.ca__label {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.ca__addr {
  font-family: var(--mono);
  font-size: .72rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ca__copy {
  border: 0;
  cursor: pointer;
  padding: .45em .9em;
  border-radius: 999px;
  background: rgba(247, 238, 225, .14);
  color: var(--cream);
  font: 700 .7rem var(--font);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s;
}
.ca__copy:hover:not(:disabled) { background: rgba(247, 238, 225, .28); }
.ca__copy:disabled { opacity: .45; cursor: not-allowed; }
.ca__buy {
  padding: .45em .9em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font: 700 .7rem var(--font);
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.ca__buy:hover { background: var(--gold-dark); }
.fineprint a { color: var(--gold-dark); font-weight: 600; }

/* bottom row of the first screen: margin-top:auto pins it to the bottom of the 100svh hero,
   so it sits below the CTAs but never falls past the fold */
.hero__foot {
  margin-top: auto;
  padding-top: 24px;
  width: 100%;
  max-width: var(--max);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  position: relative;
  z-index: 3;
}

.hero__cherub {
  margin: 0;
  width: min(280px, 62vw);
  aspect-ratio: 400 / 266;
  position: relative;
  z-index: 3;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  animation: float 7s ease-in-out infinite;
}
.hero__cherub img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

.note { max-width: 250px; color: var(--white); }
.note--left { justify-self: start; text-align: left; }
.note--right { justify-self: end; text-align: right; }
.note h2 { font-size: .9rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.note p { font-size: .82rem; line-height: 1.55; margin: 0; opacity: .92; }
.note { text-shadow: 0 1px 12px rgba(60, 40, 20, .45); }

.cloud--a { left: -140px; bottom: 8%; --s: 1.3; }
.cloud--b { right: -160px; bottom: 22%; --s: 1.1; animation-duration: 32s; }

/* ---------- PORTAL ---------- */

.portal {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--gutter) 160px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.portal__fresco {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--sky) var(--img-portal) center / cover no-repeat;
}
.portal__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--sky) 0%, transparent 18%, transparent 80%, rgba(247, 238, 225, .9) 100%),
    radial-gradient(ellipse 38% 46% at 50% 50%, rgba(255, 250, 240, .92), rgba(240, 225, 205, .55) 55%, transparent 80%);
}
.portal__inner { max-width: 560px; position: relative; z-index: 2; }
.portal__title {
  margin: 0 0 18px;
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: .92;
  letter-spacing: -.06em;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(120, 85, 40, .45);
}
.portal p {
  margin: 0 auto 26px;
  max-width: 420px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink);
}
.portal__clock {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(180, 138, 73, .35);
  font-size: .8rem;
  color: var(--ink-soft);
}
.portal__clock strong {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.terminal {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 18px 40px -18px rgba(42, 32, 23, .8);
}
.terminal code { font-family: var(--mono); font-size: .85rem; flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-dim { color: var(--gold-light); }
.terminal__copy {
  border: 0;
  cursor: pointer;
  padding: .55em 1.1em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font: 600 .78rem var(--font);
  transition: background .2s;
}
.terminal__copy:hover { background: var(--gold-dark); }

.cloud--c { left: -120px; top: 16%; --s: 1.2; }
.cloud--d { right: -140px; bottom: 18%; --s: 1.35; animation-duration: 30s; }

/* gilt scroll ornament at the seam */
.ornament {
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 50%;
  width: 220px;
  height: 34px;
  z-index: 3;
  background:
    radial-gradient(circle at 50% 50%, var(--gold-light) 0 6px, var(--gold) 7px 9px, transparent 10px),
    radial-gradient(ellipse 60px 12px at 30% 50%, transparent 8px, var(--gold) 9px 11px, transparent 12px),
    radial-gradient(ellipse 60px 12px at 70% 50%, transparent 8px, var(--gold) 9px 11px, transparent 12px),
    linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent) center / 100% 2px no-repeat;
  filter: drop-shadow(0 2px 2px rgba(90, 60, 20, .35));
}

/* ---------- GALLERY (cream) ---------- */

.gallery {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 90px var(--gutter) 140px;
  background:
    /* parchment grain */
    var(--grain),
    /* warm light pools, like candlelight on a gallery wall */
    radial-gradient(ellipse 60% 40% at 15% 12%, rgba(255, 233, 200, .9), transparent 70%),
    radial-gradient(ellipse 55% 35% at 88% 38%, rgba(233, 201, 166, .45), transparent 70%),
    radial-gradient(ellipse 60% 40% at 12% 66%, rgba(233, 201, 166, .4), transparent 70%),
    /* cream wall fading into sky at the bottom */
    linear-gradient(180deg, #f3e6d3 0%, var(--cream) 12%, var(--cream) 78%, #e9e6e2 90%, var(--sky-pale) 100%);
}
/* cover everything (grain, warm pools, ghosts) with the exact colour the next section
   starts with, so the gallery → closing seam has no edge */
.gallery::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 340px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(215, 228, 241, 0) 0%, rgba(215, 228, 241, .7) 55%, var(--sky-pale) 100%);
}
.block { max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.block + .block { margin-top: 130px; }

/* gilt divider between blocks */
.block + .block::before {
  content: "";
  display: block;
  width: 200px;
  height: 18px;
  margin: -70px auto 52px;
  background:
    radial-gradient(circle at 50% 50%, var(--gold-light) 0 4px, var(--gold) 5px 6px, transparent 7px),
    radial-gradient(circle at 34% 50%, var(--gold) 0 2px, transparent 3px),
    radial-gradient(circle at 66% 50%, var(--gold) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent, var(--gold) 25%, transparent 46%, transparent 54%, var(--gold) 75%, transparent) center / 100% 1px no-repeat;
  opacity: .8;
}

/* background layers */
.gallery__bg, .footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.gallery__bg .cloud, .footer__bg .cloud { opacity: .75; }

/* faded fresco "ghosts" painted into the wall */
.ghost {
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: .2;
  filter: sepia(.35) saturate(.85);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 25%, transparent 72%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 25%, transparent 72%);
}
.ghost--aurora    { top: -2%;  right: -14%; width: 70%;  height: 900px; background-image: var(--img-aurora); }
.ghost--wurzburg  { top: 24%;  left: -18%;  width: 72%;  height: 1100px; background-image: var(--img-wurzburg); }
.ghost--pozzo     { top: 50%;  right: -20%; width: 70%;  height: 1100px; background-image: var(--img-portal); opacity: .16; }
.ghost--correggio { bottom: -8%; left: 10%; width: 80%;  height: 1000px; background-image: var(--img-hero); opacity: .18; }

.cloud--g1 { top: 3%;  left: -200px;  --s: 1.1; }
.cloud--g2 { top: 18%; right: -220px; --s: 1.3; animation-duration: 34s; }
.cloud--g3 { top: 40%; left: -240px;  --s: 1.4; animation-duration: 30s; }
.cloud--g4 { top: 58%; right: -200px; --s: 1.1; }
.cloud--g5 { top: 78%; left: -180px;  --s: 1.2; animation-duration: 36s; }
.cloud--g6 { bottom: 60px; right: 12%; --s: 1.3; animation-duration: 28s; }
.block__label {
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink-soft);
  margin: 0 0 36px;
}
.demo-tag {
  font-style: normal;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--gold-dark);
  vertical-align: 2px;
}

.demo-tag--live { background: rgba(79, 125, 74, .14); color: var(--ok); }
.demo-tag--live::before { content: "● "; }

/* Gilt frame */
.frame {
  margin: 0;
  position: relative;
  padding: 9px;
  background:
    linear-gradient(135deg, #f2dcae, var(--gold) 30%, #8a6430 50%, var(--gold-light) 70%, var(--gold) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 200, .6),
    0 18px 30px -20px rgba(70, 45, 15, .65),
    0 2px 4px rgba(70, 45, 15, .2);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  box-shadow: inset 0 0 0 2px #6e4f22, inset 0 0 14px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--cream-deep);
}
.frame--wide img { aspect-ratio: 16 / 10; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step { display: flex; flex-direction: column; }
.step .frame { transition: transform .35s ease; }
.step:hover .frame { transform: translateY(-6px) rotate(-.6deg); }
.step__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 16px;
  border-bottom: 1px solid rgba(125, 90, 39, .25);
  padding-bottom: 8px;
}
.step__meta span { font-size: .8rem; font-weight: 600; color: var(--gold-dark); }
.step__meta h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.step p { font-size: .84rem; line-height: 1.5; color: var(--ink-soft); margin: 10px 0 12px; flex: 1; }
.step code {
  font-family: var(--mono);
  font-size: .75rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--cream-deep);
  color: var(--ink);
  align-self: flex-start;
}

/* Exhibits (arena) */
.exhibits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}
.exhibit { display: flex; flex-direction: column; }
.exhibit__badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(247, 238, 225, .9);
  font-size: .75rem;
  font-weight: 600;
  z-index: 2;
}
.exhibit__badge b { font-family: var(--mono); }

.quiz, .feed {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  min-height: 300px;
}
.quiz__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .4); box-shadow: inset 0 1px 2px rgba(70, 70, 76, .2); overflow: hidden; margin-bottom: 16px; }
.quiz__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transition: width .25s linear; }
.quiz__q { margin: 0 0 16px; font-weight: 700; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.015em; min-height: 2.7em; }
.quiz__choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quiz__choices li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -1px 0 rgba(90, 90, 96, .22);
  font-size: .88rem;
  transition: background .3s, border-color .3s, color .3s;
}
.quiz__choices li b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 3px rgba(70, 70, 76, .18);
  font-size: .75rem;
  flex: none;
}
.quiz__choices li.is-picked { border-color: rgba(180, 138, 73, .8); background: rgba(255, 236, 200, .35); }
.quiz__choices li.is-right { border-color: rgba(79, 125, 74, .7); background: rgba(190, 235, 190, .3); color: var(--ok); }
.quiz__choices li.is-right b { background: var(--ok); color: var(--white); }
.quiz__choices li.is-wrong { border-color: rgba(164, 71, 58, .7); background: rgba(250, 200, 195, .3); color: var(--bad); }
.quiz__choices li.is-wrong b { background: var(--bad); color: var(--white); }
.quiz__status { margin: 16px 0 0; font-size: .82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.quiz__status .reward { color: var(--gold-dark); font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.feed { list-style: none; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.feed li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 9px 4px;
  border-bottom: 1px solid rgba(125, 90, 39, .12);
  font-size: .8rem;
  animation: enter .5s ease both;
}
.feed li:last-child { border-bottom: 0; }
.feed .who { font-weight: 600; }
.feed .model { color: var(--ink-soft); font-family: var(--mono); font-size: .7rem; }
.feed .amt { font-weight: 700; color: var(--gold-dark); text-align: right; }
.feed .amt.miss { color: var(--bad); font-weight: 500; }
.feed .when { color: var(--ink-soft); font-size: .7rem; text-align: right; }
@keyframes enter { from { opacity: 0; transform: translateY(-8px); } }

/* League: round gilt medallions on cloud puffs */
.league {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px 46px;
}
.medal { text-align: center; width: 150px; position: relative; }
.medal__ring {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 200deg, var(--gold-light), var(--gold), #8a6430, var(--gold-light), var(--gold));
  box-shadow: 0 14px 26px -16px rgba(70, 45, 15, .7);
}
.medal__ring::before {
  content: "";
  position: absolute;
  left: -26px;
  right: -26px;
  bottom: -14px;
  height: 46px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse 50% 50% at 50% 45%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 100%);
  filter: blur(6px);
}
.medal__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.medal__rank {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-size: .75rem;
  font-weight: 700;
}
.medal h3 { margin: 22px 0 2px; font-family: var(--mono); font-size: .74rem; font-weight: 600; }
.medal p { margin: 0; font-size: .78rem; color: var(--ink-soft); }
.medal p b { color: var(--ink); }

/* Economy */
.stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stats div {
  padding: 22px 20px;
  border-radius: 18px;
}

/* ---------- dark panels ----------
   Solid dark brown, the same as the "Start your agent" button (--ink + cream text). */
.quiz, .feed, .stats div {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid rgba(226, 197, 143, .14);
  box-shadow: 0 24px 44px -26px rgba(42, 32, 23, .75), 0 2px 6px rgba(42, 32, 23, .12);
  transition: opacity .8s ease, transform .35s ease, box-shadow .35s ease;
}
.quiz:hover, .feed:hover, .stats div:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 50px -26px rgba(42, 32, 23, .85), 0 2px 6px rgba(42, 32, 23, .14);
}

/* text and controls on the dark panels */
.quiz__bar { background: rgba(247, 238, 225, .12); box-shadow: none; }
.quiz__q { color: var(--cream); }
.quiz__choices li {
  border-color: rgba(247, 238, 225, .14);
  background: rgba(247, 238, 225, .04);
  box-shadow: none;
  color: rgba(247, 238, 225, .88);
}
.quiz__choices li b { background: rgba(247, 238, 225, .12); box-shadow: none; color: var(--cream); }
.quiz__choices li.is-picked { border-color: var(--gold); background: rgba(180, 138, 73, .18); }
.quiz__choices li.is-right { border-color: #8cc283; background: rgba(140, 194, 131, .16); color: #b5dcae; }
.quiz__choices li.is-right b { background: #8cc283; color: var(--ink); }
.quiz__choices li.is-wrong { border-color: #e08a7c; background: rgba(224, 138, 124, .16); color: #f0b3a8; }
.quiz__choices li.is-wrong b { background: #e08a7c; color: var(--ink); }
.quiz__status { color: rgba(247, 238, 225, .65); }
.quiz__status .reward { color: var(--gold-light); }

.feed li { border-bottom-color: rgba(247, 238, 225, .1); }
.feed .who { color: var(--cream); }
.feed .model, .feed .when { color: rgba(247, 238, 225, .5); }
.feed .amt { color: var(--gold-light); }
.feed .amt.miss { color: #f0b3a8; }

.stats div dt { color: rgba(247, 238, 225, .6); }
.stats div dd { color: var(--cream); }
.stats div dd small { color: var(--gold-light); }
.stats dt { font-size: .78rem; color: var(--ink-soft); margin-bottom: 8px; }
.stats dd { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.04em; }
.stats dd small { font-size: .8rem; font-weight: 600; color: var(--gold-dark); letter-spacing: 0; }
.fineprint { max-width: 640px; margin: 22px auto 0; text-align: center; font-size: .8rem; line-height: 1.6; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(125, 90, 39, .22); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 500; font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); max-width: 600px; }

/* ---------- CLOSING ---------- */

.closing {
  position: relative;
  padding: 110px var(--gutter) 90px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  /* let clouds spill upward over the seam, but clip the sides and bottom */
  overflow: visible;
  clip-path: inset(-320px 0 0 0);
  z-index: 1;
  isolation: isolate;
  background: linear-gradient(180deg, var(--sky-pale) 0%, var(--sky) 55%, var(--sky-top) 100%);
  text-align: center;
}
.closing__fresco {
  position: absolute;
  inset: 8% 10%;
  z-index: -1;
  background: var(--img-closing) center / contain no-repeat;
  opacity: .5;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 75%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 40%, transparent 75%);
}
.closing__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.3rem, 5.6vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.06em;
  color: var(--white);
  text-shadow: 0 6px 40px rgba(70, 90, 130, .35);
}
.cloud--e { left: 2%; top: 55%; --s: .85; }
.cloud--f { right: 2%; top: 20%; --s: .75; animation-duration: 34s; }
.cloud--seam1 { top: -120px; left: -80px; --s: 1.35; opacity: .9; }
.cloud--seam2 { top: -100px; right: -60px; --s: 1.2; opacity: .85; animation-duration: 30s; }

/* ---------- FOOTER ---------- */

.footer {
  position: relative;
  z-index: 2;
  isolation: isolate;
  /* clouds may spill upward over the closing section; sides and bottom stay clipped */
  overflow: visible;
  clip-path: inset(-320px 0 0 0);
  background: linear-gradient(180deg, var(--sky-top), #7ea2cb);
  color: var(--ink);
  padding: 22px var(--gutter) 18px;
}
.footer > :not(.footer__bg) { position: relative; z-index: 1; }
.ghost--footer {
  inset: -10% -5% 0;
  width: auto;
  height: auto;
  background-image: var(--img-wurzburg);
  background-position: center 30%;
  opacity: .28;
  filter: saturate(.7);
  mix-blend-mode: soft-light;
  /* fade in from the top edge too, so the fresco never starts on a hard line */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 45%, transparent 92%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 45%, transparent 92%);
}
.cloud--h1 { top: -120px; left: -140px; --s: .9; }
.cloud--h2 { top: -130px; right: 14%; --s: .8; animation-duration: 32s; }
.cloud--h3 { display: none; }

/* one slim bar: brand · links · socials */
.footer__bar {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(247, 238, 225, .72);
  backdrop-filter: blur(10px);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__links a { font-size: .82rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.footer__links a:hover { color: var(--ink); }
.socials { display: flex; gap: 6px; }
.socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-size: .7rem;
  font-weight: 700;
  text-decoration: none;
}
.footer__base {
  max-width: var(--max);
  margin: 14px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: .68rem;
  color: rgba(255, 255, 255, .85);
}
.credits { max-width: 560px; text-align: right; line-height: 1.5; opacity: .8; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .br-sm { display: inline; }
  /* phone: cherub on top, then both notes side by side, still left/right */
  .hero__foot { grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 28px; }
  .hero__cherub { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(280px, 62vw); }
  .note { max-width: none; }
  .note h2 { font-size: .8rem; }
  .note p { font-size: .74rem; }
  .exhibits { grid-template-columns: 1fr; }
  .cloud { width: 340px; height: 150px; }
  .footer__bar { border-radius: 20px; padding: 14px 16px; justify-content: center; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__base { flex-direction: column; align-items: center; text-align: center; }
  .credits { text-align: center; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .medal { width: 130px; }
  .medal__ring { width: 112px; height: 112px; }
}

/* short laptop screens: keep the whole hero block above the fold */
@media (max-height: 760px) and (min-width: 761px) {
  .hero { padding-top: 80px; }
  .hero__logo { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
  .hero__main { margin-top: 22px; }
  .hero__line--soft { margin-top: .24em; }
  .hero__foot { padding-top: 14px; }
  .hero__cherub { width: 240px; }
  .note p { font-size: .76rem; line-height: 1.45; }
  .hero__title { margin-top: 20px; }
  .hero__line { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
  .hero__line--soft { font-size: clamp(1.2rem, 2.4vw, 2.1rem); }
  .hero__sub { margin-top: 16px; }
  .hero__ctas { margin-top: 22px; }
  .ca { margin-top: 14px; }
}

@media (max-width: 480px) {
  .live { font-size: .68rem; }
  .ca__addr { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
