/* ══════════════════════════════════════════════════════════════════════
   RiZe Sector — design system forked from Umbra Visuals' DNA
   (Syne display / Inter body / Geist Mono label register, monochrome
   hairline system, ambient grid texture, rule-based editorial layout)
   crossed with PsyQo's single-page section logic. Pure monochrome —
   no accent color at all, even more austere than Umbra.
   ══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Syne";
  font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/syne-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
}

:root {
  --rz-bg: #050505;
  --rz-ink: #ffffff;
  --rz-muted: #9ca3af;
  --rz-dim: #6b7280;
  --rz-line: rgba(255, 255, 255, 0.08);
  --rz-line-strong: rgba(255, 255, 255, 0.2);
  --rz-panel: rgba(255, 255, 255, 0.02);
  --rz-display: "Syne", -apple-system, BlinkMacSystemFont, sans-serif;
  --rz-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --rz-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --rz-content: 1200px;
  --rz-text: 680px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rz-bg);
  color: var(--rz-ink);
  font-family: var(--rz-body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #fff; color: #000; }

/* Scroll-world engine theme vars (the hero flight uses these) */
.sw-root {
  --sw-bg: #050505; --sw-ink: #f2f2f2; --sw-ink-soft: #8f8f8f; --sw-accent: #ffffff;
  --sw-font-display: var(--rz-display);
}

/* ── Ambient grid texture — the single biggest "kills the barren feeling"
   device from Umbra: a fixed low-opacity grid over the black, radially
   masked so it fades at the edges. Makes the void feel crafted. ── */
.rz-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 45%, transparent 82%);
          mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, #000 45%, transparent 82%);
}

/* ════════════════════ HERO OVERLAY ════════════════════
   Giant all-caps Syne headline that frames the center emblem without
   touching it: RIZE hard-left, UP hard-right, huge, difference-blended
   against the flight. Eyebrow up top, support + pill CTAs bottom-left,
   a mono ticker along the very bottom edge — every zone occupied so the
   frame never reads empty. Lives outside the engine copy layer so the
   blend hits the film. Fades across the first viewport of scroll. */
.rz-hero {
  position: fixed; inset: 0; z-index: 15;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(84px, 12vh, 132px) clamp(20px, 5vw, 64px) 0;
  pointer-events: none;
  will-change: opacity;
}
.rz-hero-eyebrow {
  font-family: var(--rz-mono);
  font-size: clamp(10px, 1vw, 11.5px);
  font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--rz-muted);
  display: flex; align-items: center; gap: 12px;
}
.rz-hero-eyebrow::after {
  content: ""; height: 1px; width: clamp(40px, 12vw, 160px);
  background: var(--rz-line-strong);
}

/* Giant split headline — the Umbra oversized-Syne move, split to frame
   the emblem. mix-blend-mode:difference inverts it against the scene. */
.rz-hero-headline {
  position: absolute; inset: 0; z-index: -1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 72px);
  mix-blend-mode: difference;
  pointer-events: none;
}
/* Reserved center zone so the two words flank the emblem and never cover it. */
.rz-hero-headline .rz-hero-gap { flex: 0 0 30vw; }
.rz-hero-headline span {
  font-family: var(--rz-display);
  font-weight: 800; font-size: clamp(3rem, 10vw, 9.5rem);
  line-height: 0.82; letter-spacing: -0.03em; text-transform: uppercase;
  color: #fff; -webkit-text-fill-color: #fff;
  flex: 0 0 auto;
}

.rz-hero-foot {
  display: flex; flex-direction: column; gap: 22px;
  max-width: 640px;
  padding-bottom: clamp(96px, 15vh, 150px);
}
.rz-hero-support {
  font-family: var(--rz-body); font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6);
}
.rz-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; pointer-events: auto; }

/* Umbra pill CTAs */
.rz-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 999px;
  font-family: var(--rz-display); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
.rz-pill--solid {
  background: #fff; color: #000;
  box-shadow: 0 0 44px -12px rgba(255, 255, 255, 0.5);
}
.rz-pill--solid:hover { transform: translateY(-2px); opacity: 0.9; }
.rz-pill--ghost { background: rgba(0, 0, 0, 0.4); color: #fff; border: 1px solid var(--rz-line-strong); }
.rz-pill--ghost:hover { border-color: #fff; }

/* Bottom mono ticker — fills the dead bottom edge with dense label text */
.rz-hero-ticker {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 0; overflow: hidden;
  border-top: 1px solid var(--rz-line);
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.72), transparent);
  font-family: var(--rz-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rz-dim);
}
.rz-hero-ticker span {
  padding: 11px clamp(16px, 3vw, 40px); white-space: nowrap;
  border-right: 1px solid var(--rz-line);
}

@media (max-width: 760px) {
  /* Mobile: stack RIZE over UP in the upper third (hard-left), leaving the
     center clear for the emblem and the whole lower half for the foot copy. */
  .rz-hero-headline { flex-direction: column; align-items: flex-start; justify-content: flex-start; padding: 11vh 20px 0; gap: 0; }
  .rz-hero-headline .rz-hero-gap { display: none; }
  .rz-hero-headline span { font-size: clamp(3rem, 16.5vw, 6rem); line-height: 0.88; }
  .rz-hero-foot { padding-bottom: clamp(92px, 15vh, 130px); }
  .rz-hero-support { max-width: none; }
  .rz-hero-ticker span:nth-child(n+4) { display: none; }
}

/* ════════════════════ CONTENT SECTIONS ════════════════════ */
.rz-content { position: relative; z-index: 30; background: var(--rz-bg); }

.rz-section {
  position: relative;
  max-width: var(--rz-content);
  margin: 0 auto;
  padding: clamp(84px, 12vw, 132px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--rz-line);
}
/* Alternating near-black section shades for faint depth (Umbra move) */
.rz-section:nth-child(even) { background: #08090c; }

.rz-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--rz-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--rz-muted);
  margin-bottom: 26px;
}
.rz-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--rz-line-strong);
}

.rz-h2 {
  font-family: var(--rz-display);
  font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 24px;
  text-wrap: balance;
}
.rz-h2--caps { text-transform: uppercase; letter-spacing: -0.01em; }
.rz-lead {
  font-family: var(--rz-body); font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65;
  color: var(--rz-muted); max-width: 62ch; margin: 0;
}
.rz-lead + .rz-lead { margin-top: 18px; }
.rz-lead strong { color: var(--rz-ink); font-weight: 600; }

/* Section header split — heading left, mono meta right (Umbra rhythm) */
.rz-section-head {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 56px); align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.rz-section-head .rz-lead { align-self: end; }
@media (max-width: 760px) { .rz-section-head { grid-template-columns: 1fr; gap: 20px; } }

/* ── Rule-based editorial columns (Umbra pricing pattern) — divisions ── */
.rz-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rz-line-strong);
  border-bottom: 1px solid var(--rz-line-strong);
}
.rz-col {
  padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 36px);
  border-right: 1px solid var(--rz-line);
  display: flex; flex-direction: column; gap: 14px; min-height: 220px;
}
.rz-col:last-child { border-right: 0; }
.rz-col-num {
  font-family: var(--rz-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--rz-dim);
}
.rz-col h3 {
  font-family: var(--rz-display); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.01em; text-transform: uppercase; margin: 6px 0 0;
}
.rz-col p { font-family: var(--rz-body); font-weight: 300; font-size: 0.95rem; line-height: 1.6; color: var(--rz-muted); margin: 0; }
@media (max-width: 760px) {
  .rz-cols { grid-template-columns: 1fr; }
  .rz-col { border-right: 0; border-bottom: 1px solid var(--rz-line); min-height: 0; }
  .rz-col:last-child { border-bottom: 0; }
}

/* ── Roster: dense rule-based directory ── */
.rz-roster {
  list-style: none; margin: 0; padding: 0;
  column-count: 4; column-gap: 40px;
}
.rz-roster li {
  break-inside: avoid; display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--rz-line);
  font-family: var(--rz-display); font-weight: 600; font-size: 1.05rem;
}
.rz-roster li::before {
  content: ""; width: 5px; height: 5px; background: #fff; flex: 0 0 auto;
  transform: translateY(-2px);
}
.rz-roster-note {
  margin-top: 22px; font-family: var(--rz-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--rz-dim);
}
@media (max-width: 900px) { .rz-roster { column-count: 3; } }
@media (max-width: 600px) { .rz-roster { column-count: 2; column-gap: 22px; } }

/* ── Stat row (density) ── */
.rz-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rz-line);
  margin-top: clamp(40px, 6vw, 64px);
}
.rz-stat { padding: 26px 20px; border-right: 1px solid var(--rz-line); }
.rz-stat:last-child { border-right: 0; }
.rz-stat strong {
  display: block; font-family: var(--rz-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.03em;
}
.rz-stat span {
  display: block; margin-top: 6px; font-family: var(--rz-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rz-dim);
}
@media (max-width: 600px) { .rz-stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Join / contact split with corner-bracket frames ── */
.rz-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 6vw, 64px);
}
.rz-panel {
  position: relative; padding: clamp(30px, 3.4vw, 48px);
  border: 1px solid var(--rz-line); background: var(--rz-panel);
}
.rz-panel::before, .rz-panel::after {
  content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none;
}
.rz-panel::before { top: -1px; left: -1px; border-top: 1.5px solid var(--rz-line-strong); border-left: 1.5px solid var(--rz-line-strong); }
.rz-panel::after { bottom: -1px; right: -1px; border-bottom: 1.5px solid var(--rz-line-strong); border-right: 1.5px solid var(--rz-line-strong); }
.rz-panel h3 { font-family: var(--rz-display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 12px; }
.rz-panel p { font-family: var(--rz-body); font-weight: 300; font-size: 0.98rem; line-height: 1.6; color: var(--rz-muted); margin: 0 0 26px; max-width: 42ch; }
@media (max-width: 760px) { .rz-split { grid-template-columns: 1fr; } }

/* In-page CTA (Umbra content button — 44px, 4px radius, invert on hover) */
.rz-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 24px; border-radius: 4px; border: 1px solid #fff;
  font-family: var(--rz-body); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; transition: background .18s ease, color .18s ease, opacity .18s ease;
}
.rz-btn--solid { background: #fff; color: #000; }
.rz-btn--solid:hover { opacity: 0.85; }
.rz-btn--ghost { background: transparent; color: #fff; }
.rz-btn--ghost:hover { background: #fff; color: #000; }

/* ── Footer ── */
.rz-footer {
  position: relative; z-index: 30; background: #000;
  border-top: 1px solid var(--rz-line);
  max-width: var(--rz-content); margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 64px);
}
.rz-footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.rz-footer-brand { display: flex; align-items: center; gap: 14px; }
.rz-footer-brand img { height: 20px; width: auto; }
.rz-footer-brand strong { font-family: var(--rz-display); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.rz-footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.rz-footer-col { display: flex; flex-direction: column; gap: 12px; }
.rz-footer-col-label { font-family: var(--rz-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rz-dim); margin-bottom: 4px; }
.rz-footer-col a { font-family: var(--rz-body); font-size: 13px; color: var(--rz-muted); text-decoration: none; transition: color .15s ease; }
.rz-footer-col a:hover { color: #fff; }
.rz-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--rz-line); }
.rz-footer-bottom span { font-family: var(--rz-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--rz-dim); }

/* ════════════════════ SPIN-MARK: "RIZE UP" closing beat ════════════════════
   Forked from PsyQo's .v4-join-mark-section (periwinkle→black gradient + a
   scroll-scrubbed 3D turntable of the mark). Here: black-and-white gradient
   (white crown → black), a chrome RiZe mark spinning as you scroll, and the
   "RIZE UP" wordmark glowing in the dark lower zone. Driven by
   assets/rize-spinmark.js scrubbing assets/spinmark/frame-XXXX.webp. */
.rz-spin-section {
  position: relative; z-index: 30;
  min-height: 200vh;
}
.rz-spin-section--static { min-height: 100vh; }
.rz-spin-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #d0d0d3 16%,
    #74747a 40%,
    #232327 68%,
    #050505 100%
  );
}
/* faint dither so the long gradient doesn't band */
.rz-spin-sticky::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.5) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.5) 0 1px, transparent 1px 3px);
}
.rz-spin-copy {
  position: absolute; z-index: 2; left: 50%; top: 70%;
  transform: translate(-50%, -50%);
  width: min(1200px, 92vw);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  pointer-events: none;
}
.rz-spin-title {
  margin: 0;
  font-family: var(--rz-display);
  font-weight: 800; font-size: clamp(3.5rem, 12vw, 12rem);
  line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 40px rgba(255,255,255,0.35), 0 0 120px rgba(255,255,255,0.2);
}
/* the spinning mark canvas sits in front of the headline (depth effect) */
.rz-spin-canvas {
  position: absolute; z-index: 3; left: 50%; top: 44%;
  transform: translate(-50%, -50%);
  width: 62vh; height: 62vh; max-width: 82vw; max-height: 82vw;
  pointer-events: none; display: block;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
}
.rz-spin-canvas.is-hidden { display: none; }

@media (max-width: 760px) {
  .rz-spin-copy { top: 66%; }
  .rz-spin-title { font-size: clamp(3rem, 17vw, 6rem); }
  .rz-spin-canvas { top: 48%; width: 74vw; height: 74vw; }
}
@media (prefers-reduced-motion: reduce) {
  .rz-spin-section { min-height: 100vh; }
  .rz-spin-sticky { position: relative; }
}
