/* ============ GLONARI PULSE — cinematic landing ============ */

:root {
  --bg: #08070a;
  --bg-2: #0e0c10;
  --surface: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f0ea;
  --text-dim: rgba(244, 240, 234, 0.62);
  --text-faint: rgba(244, 240, 234, 0.38);
  --amber: #e8a45c;
  --copper: #c96f3b;
  --glow: rgba(232, 164, 92, 0.35);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

html { overflow-anchor: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; }

/* Solid bronze with a periodic "shine": a narrow cream band sweeps through
   the letterforms, then rests. User-directed treatment (replaces gradient). */
.grad-text {
  background: linear-gradient(110deg,
    #c08850 0%, #c08850 42%,
    #f9e7c4 50%,
    #c08850 58%, #c08850 100%);
  background-size: 250% 100%;
  background-position: 115% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shine 4.5s ease-in-out infinite;
}
@keyframes text-shine {
  0%   { background-position: 115% 0; }
  45%  { background-position: -15% 0; }
  100% { background-position: -15% 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  padding: 0.85rem 1.9rem; border-radius: 999px; text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn-primary {
  color: #14100b;
  position: relative; isolation: isolate;
  box-shadow: 0 0 0 1px rgba(232, 164, 92, 0.4), 0 8px 40px -8px var(--glow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), color 0.35s ease-in-out;
}
/* darkest brand color beneath; the amber gradient sits above it and fades
   out on hover (gradients can't cross-fade to a solid directly) */
.btn-primary::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: var(--bg); z-index: -2;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(120deg, #f2b878, var(--amber) 55%, var(--copper));
  z-index: -1; transition: opacity 0.35s ease-in-out;
}
.btn-primary:hover {
  color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(232, 164, 92, 0.7), 0 14px 60px -8px var(--glow);
}
.btn-primary:hover::after { opacity: 0; }
.btn-ghost {
  color: var(--text); border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: rgba(232, 164, 92, 0.55); transform: translateY(-2px); }
.btn-sm { padding: 0.55rem 1.3rem; font-size: 0.9rem; }
.btn-lg { padding: 1.05rem 2.6rem; font-size: 1.1rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(rgba(8, 7, 10, 0.72), rgba(8, 7, 10, 0));
  transition: background 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  background: rgba(8, 7, 10, 0.45);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
/* Studio wordmark (assets/logo.svg): bars morph via js/logo.js */
.pulse-logo { display: block; height: 28px; width: auto; color: var(--text); overflow: visible; }
.pulse-logo .logo-bars { filter: drop-shadow(0 0 10px rgba(232, 164, 92, 0.35)); }
.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav a {
  color: var(--text-dim); text-decoration: none; font-size: 0.92rem; font-weight: 400;
  transition: color 0.3s;
}
.site-nav a:hover { color: var(--amber); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none; position: relative; width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform 0.35s var(--ease-out);
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { bottom: 15px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 720px) {
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0.75rem; right: 0.75rem;
    flex-direction: column; gap: 0; padding: 0.5rem;
    background: rgba(14, 12, 16, 0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line); border-radius: 16px;
  }
  .site-nav a { padding: 0.85rem 1rem; border-radius: 10px; }
  .site-nav a:hover { background: rgba(232, 164, 92, 0.08); }
  .nav-open .site-nav { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(1.08);
}
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(8, 7, 10, 0.72) 100%),
    linear-gradient(rgba(8, 7, 10, 0.4), transparent 30%, transparent 70%, rgba(8, 7, 10, 0.85));
}
.hero-brandmark {
  position: absolute; left: 50%; top: 35%; transform: translate(-50%, -50%);
  z-index: 2; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(5.5rem, 17vw, 17rem); letter-spacing: 0.06em;
  /* brand bronze + color-dodge: smoldering ember lettering — the scene's
     particles ignite inside the letterforms and flare as the scrub brightens */
  color: #c08850;
  mix-blend-mode: color-dodge;
}
.reduced-motion .hero-brandmark { display: none; }

.hero-copy {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem;
  /* revealed by scrub timeline; hidden + inert until then so the
     invisible CTAs can't be clicked or tabbed onto */
  opacity: 0; visibility: hidden; pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  filter: drop-shadow(0 2px 14px rgba(8, 7, 10, 0.9)) drop-shadow(0 0 26px rgba(8, 7, 10, 0.7));
}
.hero-sub {
  margin-top: 1.4rem; max-width: 34rem; font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text);
  text-shadow: 0 1px 16px rgba(8, 7, 10, 0.95), 0 0 6px rgba(8, 7, 10, 0.8);
}
.hero-cta-row { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; justify-content: center; }
.hero-hint {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.hint-text {
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.3em;
  text-transform: uppercase;
  /* faint base with a soft cream shine sweeping through, echoing .grad-text */
  background: linear-gradient(100deg,
    rgba(244, 240, 234, 0.38) 0%, rgba(244, 240, 234, 0.38) 42%,
    rgba(246, 217, 168, 0.95) 50%,
    rgba(244, 240, 234, 0.38) 58%, rgba(244, 240, 234, 0.38) 100%);
  background-size: 250% 100%;
  background-position: 115% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shine 3.5s ease-in-out infinite;
}
.hint-line {
  width: 1px; height: 52px; overflow: hidden; position: relative;
  background: rgba(255, 255, 255, 0.12);
}
.hint-line::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: linear-gradient(transparent, var(--amber));
  animation: hint-drop 1.8s var(--ease-out) infinite;
}
@keyframes hint-drop { to { top: 110%; } }

/* ---------- personas marquee ---------- */
.personas { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); background: var(--bg); }
.personas-label {
  text-align: center; font-family: var(--font-display); font-size: 0.8rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 2.6rem; padding: 0 1.5rem;
}
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track.is-paused { animation-play-state: paused; }
.marquee-clone { display: contents; }
.marquee-toggle {
  display: block; margin: 1.4rem auto 0; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); color: var(--text-faint);
  font-size: 0.8rem; line-height: 1; cursor: pointer; transition: color 0.3s, border-color 0.3s;
}
.marquee-toggle:hover { color: var(--amber); border-color: rgba(232, 164, 92, 0.5); }
@keyframes marquee { to { transform: translateX(-50%); } }
.p-chip {
  display: flex; align-items: center; gap: 0.85rem;
  margin-right: 1rem; /* self-contained unit width keeps the -50% loop exact */
  padding: 0.7rem 1.5rem 0.7rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
}
.p-ava, .ucard-avatar, .mk-ava {
  --ah: 32; /* per-persona hue, warm family */
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  position: relative; overflow: hidden; /* photo avatar clips to the circle */
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #14100b;
  background: radial-gradient(120% 120% at 30% 25%,
    hsl(var(--ah) 80% 84%),
    hsl(var(--ah) 74% 63%) 55%,
    hsl(var(--ah) 58% 44%));
  box-shadow: 0 0 14px -3px hsl(var(--ah) 70% 60% / 0.4);
}
[data-persona="Gia"] { --ah: 32; }
[data-persona="Prad"] { --ah: 16; }
[data-persona="Rae"] { --ah: 45; }
[data-persona="Idol"] { --ah: 52; }
[data-persona="Sol"] { --ah: 24; }
[data-persona="Vee"] { --ah: 352; }
[data-persona="Mira"] { --ah: 40; }
[data-persona="Kai"] { --ah: 8; }
.ava-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}
.p-chip .p-name { font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; }
.p-chip .p-role { font-size: 0.8rem; color: var(--text-faint); }

/* ---------- features (pinned over clip 2) ---------- */
.features-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.features-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.features-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 7, 10, 0.88) 0%, rgba(8, 7, 10, 0.55) 42%, rgba(8, 7, 10, 0.15) 75%),
    linear-gradient(rgba(8, 7, 10, 0.5), transparent 25%, transparent 75%, rgba(8, 7, 10, 0.6));
}
.features-copy {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(1.5rem, 8vw, 8rem); max-width: 720px;
}
.feature-step {
  position: absolute; max-width: 520px;
  opacity: 0; transform: translateY(28px); visibility: hidden;
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), visibility 0s 0.55s;
}
.feature-step.is-active {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 0.55s var(--ease-out) 0.12s, transform 0.55s var(--ease-out) 0.12s, visibility 0s;
}
.step-index {
  font-family: var(--font-display); color: var(--amber);
  letter-spacing: 0.35em; font-size: 0.85rem; margin-bottom: 0.9rem;
}
.feature-step h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin-bottom: 1.1rem; }
.feature-step p:not(.step-index) {
  color: var(--text-dim); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 30rem;
  text-shadow: 0 1px 14px rgba(8, 7, 10, 0.85), 0 0 4px rgba(8, 7, 10, 0.6);
  transition: color 0.5s ease-in-out;
}
/* arrives dim, then quickly brightens to white once the step settles */
.feature-step.is-active p:not(.step-index) { color: #fff; transition-delay: 0.4s; }
.features-progress {
  position: absolute; bottom: 3rem; display: flex; gap: 0.6rem;
}
.fp-dot {
  width: 34px; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.16); transition: background 0.4s;
}
.fp-dot.is-on { background: var(--amber); box-shadow: 0 0 10px 0 var(--glow); }

/* ---------- section heads ---------- */
.section-head { text-align: center; padding: 0 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-eyebrow {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.section-sub {
  margin: 1rem auto 0; max-width: 36rem;
  color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.2rem);
}

/* ---------- use-case cards ---------- */
.usecases { padding: clamp(5rem, 11vw, 9rem) clamp(1.25rem, 5vw, 4rem); background: var(--bg); }
.card-grid {
  display: grid; gap: 1.25rem; max-width: 1180px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.ucard {
  position: relative; padding: 2rem 1.8rem 1.6rem; border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.5s var(--ease-out), border-color 0.5s, box-shadow 0.5s;
  overflow: hidden;
}
.ucard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 45% at 50% 0%, rgba(232, 164, 92, 0.14), transparent 70%);
  transition: opacity 0.5s;
}
.ucard:hover { transform: translateY(-6px); border-color: rgba(232, 164, 92, 0.4); box-shadow: 0 24px 60px -30px var(--glow); }
.ucard:hover::before { opacity: 1; }
.ucard-avatar { margin-bottom: 1.3rem; width: 52px; height: 52px; font-size: 1.2rem; }
.ucard-tag {
  font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 0.5rem;
}
.ucard h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.ucard > p:not(.ucard-tag) { color: var(--text-dim); font-size: 0.95rem; }
.usecases-memory {
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; max-width: 34rem;
  text-align: center; font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 500; color: var(--amber);
}
.usecases-memory::before { content: "◉ "; font-size: 0.8em; }

/* ---------- marketplace mockup ---------- */
.marketplace { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem); background: var(--bg-2); }
.browser-frame {
  max-width: 1040px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8), 0 0 80px -30px var(--glow);
  background: #0b0a0d;
}
.browser-chrome {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.bdot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.bdot:first-child { background: rgba(232, 164, 92, 0.7); }
.browser-url {
  margin-left: 1rem; flex: 1; max-width: 420px;
  font-size: 0.8rem; color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.35rem 0.9rem;
}
.browser-body { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
@media (max-width: 680px) { .browser-body { grid-template-columns: 1fr; } .mk-side { display: none; } }
.mk-side { padding: 1.4rem 1.2rem; border-right: 1px solid var(--line); }
.mk-side-title {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem;
}
.mk-chip {
  display: inline-block; margin: 0 0.35rem 0.55rem 0;
  font-size: 0.78rem; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.28rem 0.75rem;
}
.mk-chip.is-on { color: var(--amber); border-color: rgba(232, 164, 92, 0.5); background: rgba(232, 164, 92, 0.08); }
.mk-main { padding: 1.4rem; }
.mk-search {
  font-size: 0.85rem; color: var(--text-faint);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.65rem 1rem;
  margin-bottom: 1.2rem; background: rgba(255, 255, 255, 0.03);
}
.mk-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mk-card {
  display: flex; align-items: center; gap: 0.85rem;
  border: 1px solid var(--line); border-radius: 14px; padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.35s, background 0.35s;
}
.mk-card:hover { border-color: rgba(232, 164, 92, 0.45); background: rgba(232, 164, 92, 0.05); }
.mk-ava { width: 40px; height: 40px; font-size: 0.95rem; }
.mk-name { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; line-height: 1.2; }
.mk-role { font-size: 0.76rem; color: var(--text-faint); }
.mk-cta {
  margin-left: auto; font-family: var(--font-display); font-size: 0.78rem; font-weight: 500;
  color: var(--amber); border: 1px solid rgba(232, 164, 92, 0.45);
  border-radius: 999px; padding: 0.3rem 0.85rem;
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem); background: var(--bg); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.9rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  overflow: hidden; transition: border-color 0.4s;
}
.faq-item[open] { border-color: rgba(232, 164, 92, 0.4); }
.faq-item summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 1.08rem;
  padding: 1.3rem 3.4rem 1.3rem 1.6rem; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.5rem; top: 50%;
  transform: translateY(-50%); color: var(--amber); font-size: 1.5rem; font-weight: 300;
  transition: transform 0.4s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-body { padding: 0 1.6rem; color: var(--text-dim); font-size: 0.98rem; overflow: hidden; }
.faq-body p { padding-bottom: 1.4rem; max-width: 60ch; }

/* ---------- finale ---------- */
.finale { position: relative; min-height: 92vh; display: grid; place-items: center; overflow: hidden; }
.finale-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.finale-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 50% 55%, rgba(8, 7, 10, 0.25), rgba(8, 7, 10, 0.88)),
    linear-gradient(rgba(8, 7, 10, 0.85), transparent 30%, transparent 72%, rgba(8, 7, 10, 0.95));
}
.finale-copy { position: relative; z-index: 2; text-align: center; padding: 6rem 1.5rem; }
.finale-title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); margin-bottom: 2.4rem; }
.finale-fine { margin-top: 1.2rem; font-size: 0.86rem; color: var(--text-faint); }

/* ---------- footer ---------- */
.site-footer {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 2rem;
  padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) 1.8rem;
  border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-faint);
  background: var(--bg);
}
.footer-brand { display: block; text-decoration: none; color: var(--text); }
.footer-brand .pulse-logo { height: clamp(96px, 12vw, 132px); }
.footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--text-faint); text-decoration: none; transition: color 0.3s; }
.site-footer a:hover { color: var(--amber); }
.site-footer .footer-brand:hover { color: var(--text); }
@media (max-width: 560px) {
  .site-footer { flex-direction: column; align-items: center; text-align: center; }
  .footer-meta { flex-direction: column; gap: 0.8rem; }
}

/* ---------- reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); }
.no-js [data-reveal], .reduced-motion [data-reveal] { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .hero-title br, .section-title br, .finale-title br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hint-line::after { animation: none; }
  .grad-text, .hint-text { animation: none; } /* rest as solid color */
}

/* ---------- header sign-in (desktop text link; folds into the mobile menu) ---------- */
.header-signin {
  color: var(--text-dim); text-decoration: none; font-size: 0.92rem;
  margin-right: 0.35rem; transition: color 0.3s;
}
.header-signin:hover { color: var(--amber); }
.nav-signin { display: none; }
@media (max-width: 720px) {
  .header-signin { display: none; }
  .site-nav .nav-signin { display: block; border-top: 1px solid var(--line); margin-top: 0.35rem; }
}

/* ---------- legal pages (privacy, terms) ---------- */
.site-header.is-static { position: sticky; }
.legal-page {
  padding: clamp(6.5rem, 12vw, 9rem) clamp(1.25rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(70% 40% at 50% 0%, rgba(232, 164, 92, 0.09), transparent 70%),
    var(--bg);
}
.legal-head {
  max-width: 1080px; margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line);
}
.legal-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0.7rem 0 1rem; }
.legal-meta { color: var(--text-faint); font-size: 0.9rem; }
.legal-lede { color: var(--text-dim); max-width: 44rem; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.legal-body {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.legal-toc { position: sticky; top: 6rem; }
.legal-toc .toc-title {
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 1rem;
}
.legal-toc ol { list-style: none; display: grid; gap: 0.5rem; }
.legal-toc a {
  color: var(--text-faint); text-decoration: none; font-size: 0.86rem; line-height: 1.35;
  transition: color 0.3s;
}
.legal-toc a:hover { color: var(--amber); }
.legal-prose { max-width: 68ch; }
.legal-prose section { scroll-margin-top: 6rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.legal-prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 0.9rem; }
.legal-prose h2 .num {
  color: var(--amber); font-size: 0.72em; letter-spacing: 0.12em; margin-right: 0.7rem;
  font-weight: 500; vertical-align: 0.12em;
}
.legal-prose h3 { font-size: 1.08rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.legal-prose p, .legal-prose li { color: var(--text-dim); font-size: 1rem; }
.legal-prose p + p, .legal-prose ul + p, .legal-prose p + ul { margin-top: 0.9rem; }
.legal-prose ul { margin-left: 1.2rem; display: grid; gap: 0.45rem; }
.legal-prose a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(232, 164, 92, 0.35); transition: border-color 0.3s; }
.legal-prose a:hover { border-color: var(--amber); }
.legal-prose strong { color: var(--text); font-weight: 500; }
.legal-callout {
  border: 1px solid rgba(232, 164, 92, 0.35); background: rgba(232, 164, 92, 0.06);
  border-radius: 14px; padding: 1.1rem 1.3rem; margin: 1.1rem 0;
}
.legal-callout p { color: var(--text); }
.legal-table { width: 100%; border-collapse: collapse; margin: 0.9rem 0; font-size: 0.92rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.6rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.legal-table th {
  font-family: var(--font-display); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-faint);
}
.legal-table td { color: var(--text-dim); }
.legal-table td:first-child { color: var(--text); white-space: nowrap; }
@media (max-width: 900px) {
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .legal-toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 720px) {
  .legal-table { display: block; overflow-x: auto; }
}
