/* ============================================
   MASTERSTOCK - Awwwards-style landing
   Light theme · bone white + electric blue
   ============================================ */

:root {
  --bg: #f4f0e6;          /* bone white */
  --bg-soft: #ebe6d9;     /* deeper bone (menu) */
  --card: #fcfaf4;        /* near-white card */
  --card-2: #f6f2e9;
  --line: rgba(21, 35, 63, 0.10);
  --line-strong: rgba(21, 35, 63, 0.20);
  --text: #15233f;        /* deep navy */
  --muted: #59617a;
  --muted-2: #9499a8;
  --accent: #2563eb;      /* electric blue */
  --accent-2: #06b6d4;    /* cyan */
  --grad: linear-gradient(90deg, #06b6d4 0%, #2563eb 100%);
  --accent-ink: #ffffff;  /* text on accent */
  --accent-soft: rgba(37, 99, 235, 0.12);
  --radius: 28px;
  --radius-sm: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --display: 'Space Grotesk', var(--font);
  --shadow: 0 30px 60px -24px rgba(21, 35, 63, 0.22);
  --shadow-sm: 0 14px 34px -16px rgba(21, 35, 63, 0.18);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
/* This Lenis build only sets the `lenis` class (not `lenis-smooth`), so disable
   native smooth-scroll whenever Lenis is active to avoid fighting its JS scroll. */
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: url("cursor-arrow.png") 3 2, auto;
}
/* custom JS cursor removed - using the native pointer (navy) */
.cursor, .cursor-dot { display: none !important; }
a, button, .nav-pill, .nav-logo, .nav-toggle, [role="button"] { cursor: pointer; }

@media (hover: none) { body { cursor: auto; } }

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

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Global animated background ---------- */
#bgCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  display: none; /* particle network removed for a cleaner look */
}
main { position: relative; z-index: 1; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--grad); z-index: 9995; pointer-events: none;
}

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 30px; height: 30px;
  background: url("cursor-logo.png") center / contain no-repeat;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
  pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor.is-hover { width: 64px; height: 64px; background: var(--accent-soft); border-color: transparent; }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- Floating nav (sohub-style) ---------- */
.floating-nav {
  position: fixed; top: 22px; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; pointer-events: none;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
/* hide while scrolling down (so it never covers titles), reveal on scroll up */
.floating-nav--hidden { transform: translateY(-140%); opacity: 0; }
.floating-nav > * { pointer-events: auto; }
.nav-right { display: flex; align-items: center; gap: 10px; }
/* center logo: white/translucent over the video hero, brand-blue once scrolled into the light */
.nav-logo {
  pointer-events: auto; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .4s var(--ease);
}
.nav-logo:hover { transform: translateY(-2px); }
/* the frosted-glass chip (same treatment as the nav buttons) */
.nav-logo__mark {
  display: block; width: 50px; height: 50px; border-radius: 100px;
  background-image: url("logo-white.png");
  background-repeat: no-repeat; background-position: center; background-size: 56%;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.4);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
}
.nav-logo__name {
  font-family: var(--display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
  line-height: 1; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,0.35);
  transition: color .4s var(--ease);
}
.nav-logo__name span { font-weight: 500; opacity: 0.72; }
/* Scrolled into the light sections: solid white chip + navy name. */
.floating-nav--scrolled .nav-logo__mark {
  background-image: url("logo-blue.png");
  background-color: #fff; border-color: rgba(21, 35, 63, 0.12);
}
.floating-nav--scrolled .nav-logo__name { color: var(--text); text-shadow: none; }
/* Over a dark section: translucent glass + white mark/name. */
.floating-nav--on-dark .nav-logo__mark {
  background-image: url("logo-white.png");
  background-color: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.42);
}
.floating-nav--on-dark .nav-logo__name { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
@media (max-width: 760px) {
  .nav-logo__mark { width: 42px; height: 42px; }
  .nav-logo__name { font-size: 9.5px; letter-spacing: 0.12em; }
}

.nav-pill {
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 8px 0 22px; border-radius: 100px;
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.nav-pill--cta {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.42); backdrop-filter: blur(12px);
}
.nav-pill--cta .nav-pill__icon {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255,255,255,0.16); color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  transition: transform .4s var(--ease);
}
.nav-pill--cta:hover { transform: translateY(-2px); background: rgba(255,255,255,0.2); }
.nav-pill--cta:hover .nav-pill__icon { transform: rotate(45deg); }
/* Scrolled off the video hero → restore the solid gradient so the primary CTA stays legible on the light sections */
.floating-nav--scrolled .nav-pill--cta {
  background: var(--grad); color: var(--accent-ink);
  border-color: transparent; box-shadow: 0 10px 30px -10px rgba(8,145,178,0.5);
}
.floating-nav--scrolled .nav-pill--cta .nav-pill__icon {
  background: #fff; color: var(--accent); border-color: transparent;
}

.nav-pill--ghost {
  height: 48px; padding: 0 22px;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.42); backdrop-filter: blur(12px);
}
.nav-pill--ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 10px 0 22px; cursor: pointer;
  border-radius: 100px; background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.42); backdrop-filter: blur(12px);
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.nav-toggle:hover { transform: translateY(-2px); background: rgba(255,255,255,0.2); }

/* When scrolled off the video hero, restore the light/solid look so the bar stays legible over the white content sections */
.floating-nav--scrolled .nav-pill--ghost {
  background: #fff; color: var(--text); border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.floating-nav--scrolled .nav-pill--ghost:hover { background: #fff; border-color: var(--accent); color: var(--accent); }
.floating-nav--scrolled .nav-toggle {
  background: var(--text); color: #fff; border-color: var(--text);
}
.floating-nav--scrolled .nav-toggle:hover { background: var(--text); }
.nav-toggle__dots {
  display: grid; place-items: center; gap: 4px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255,255,255,0.16);
}
.nav-toggle__dots span {
  display: block; width: 5px; height: 5px; border-radius: 50%; background: #fff;
  transition: all .4s var(--ease);
}
body.menu-open .nav-toggle__dots { gap: 0; }
body.menu-open .nav-toggle__dots span:first-child { transform: translateY(2px) rotate(45deg); }
body.menu-open .nav-toggle__dots span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 640px) {
  /* Fixed top bar: logo on the left, actions (request / sign in / menu) grouped on the right */
  .floating-nav {
    top: 0; padding: 8px 14px; gap: 8px; justify-content: flex-start;
    background: rgba(11, 26, 51, 0.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .floating-nav--scrolled {
    background: rgba(252, 250, 244, 0.94);
    border-bottom-color: rgba(21, 35, 63, 0.10);
  }
  .floating-nav--hidden { transform: none; opacity: 1; }
  .nav-logo { order: -1; margin-right: auto; flex-direction: row; gap: 8px; }
  .nav-right { order: 2; gap: 8px; }
  .nav-pill, .nav-toggle, .nav-pill--ghost { height: 38px; }
  .nav-pill__label { display: none; }
  /* Request access = clean round gradient button with a single white arrow */
  .nav-pill--cta { order: 1; width: 38px; padding: 0; justify-content: center; }
  .nav-pill--cta .nav-pill__icon { width: 100%; height: 100%; background: transparent; border-color: transparent; }
  .floating-nav--scrolled .nav-pill--cta .nav-pill__icon { background: transparent; color: #fff; }
  .nav-toggle__dots { width: 28px; height: 28px; }
  .nav-pill--ghost { display: inline-flex; align-items: center; padding: 0 16px; font-size: 12px; }
  .nav-toggle { padding: 0 6px; gap: 0; }
  .nav-toggle__label { display: none; }
  .nav-logo__mark { width: 36px; height: 36px; }
  .nav-logo__name { display: block; font-size: 12px; letter-spacing: 0.04em; }
  .nav-logo__name span { display: none; }
}

/* ---------- Menu overlay ---------- */
/* Compact corner panel (sohub-style) */
.menu-overlay {
  position: fixed; top: 82px; right: 22px; z-index: 999;
  width: min(360px, calc(100vw - 44px));
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 26px; box-shadow: var(--shadow);
  padding: 26px 28px 28px;
  transform-origin: top right; transform: scale(0.82) translateY(-8px); opacity: 0;
  pointer-events: none;
  transition: transform .5s var(--ease), opacity .35s var(--ease);
}
body.menu-open .menu-overlay { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.menu-overlay__inner { display: flex; flex-direction: column; gap: 22px; }
.menu-nav { display: flex; flex-direction: column; gap: 2px; }
.menu-link {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.5rem, 4.5vw, 1.9rem); line-height: 1.3;
  letter-spacing: -0.01em; color: var(--text);
  position: relative; overflow: hidden; width: fit-content;
  transition: color .35s var(--ease);
}
.menu-link span { display: inline-block; transition: transform .5s var(--ease); }
.menu-link::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(100%);
  transition: transform .5s var(--ease);
}
.menu-link:hover { color: transparent; }
.menu-link:hover span { transform: translateY(-100%); }
.menu-link:hover::after { transform: translateY(0); }

.menu-foot {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 20px; margin-top: 4px; border-top: 1px solid var(--line);
}
.menu-foot__label {
  display: block; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px;
}
.menu-foot__col a, .menu-foot__col p { color: var(--text); font-size: 14px; }
.menu-foot__col a:hover { color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 14vh, 180px) 7vw; max-width: 1400px; margin: 0 auto; }
.section__head { margin-bottom: 64px; }
.section__head--center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section__eyebrow {
  display: inline-block; font-family: var(--display); font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 22px;
}
.section__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 1.04;
  letter-spacing: -0.03em;
}
.section__title .muted { color: var(--accent); }
.section__sub { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; padding: 12px;
  display: flex; align-items: stretch;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__card {
  position: relative; z-index: 2; width: 100%;
  background: linear-gradient(160deg, #ffffff 0%, var(--card) 60%, var(--bg-soft) 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr; align-content: center; gap: clamp(24px, 4vw, 48px);
  overflow: hidden; box-shadow: var(--shadow);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.6;
  background-image: linear-gradient(rgba(21,35,63,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(21,35,63,0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 38%, #000 28%, transparent 80%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 38%, #000 28%, transparent 80%);
}
.hero__main { min-width: 0; position: relative; z-index: 2; }

/* ---------- Video hero (price-pierce style) ---------- */
.hero-stage { position: relative; }
/* Video hero stays stuck behind while the next section slides up over it (price-pierce style) */
.hero--video { padding: 0; display: block; position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* The vertical mobile clip has ~9% black letterbox baked into the top & bottom of the file;
   a slight zoom on phones pushes those bars off-screen (hero has overflow:hidden). */
@media (max-width: 760px) {
  .hero__video { transform: scale(1.12); transform-origin: center; }
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 54% 48% at 50% 49%, rgba(3,6,11,0.82) 0%, rgba(3,6,11,0.5) 48%, rgba(3,6,11,0.18) 70%, transparent 84%),
    linear-gradient(180deg, rgba(8,12,20,0.5) 0%, rgba(8,12,20,0.12) 32%, rgba(8,12,20,0.3) 68%, rgba(8,12,20,0.72) 100%),
    radial-gradient(ellipse 80% 72% at 50% 46%, rgba(8,12,20,0) 40%, rgba(8,12,20,0.5) 100%);
}
.hero__vgrid {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 46%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 58% 54% at 50% 46%, #000 18%, transparent 74%);
}
.hero__center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; width: 100%; padding: 0 24px;
}
.hero__wordmark {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 7rem); letter-spacing: 0.06em; color: #fff;
  text-align: center; white-space: nowrap;
  text-shadow: 0 2px 40px rgba(0,0,0,0.55), 0 0 70px rgba(0,0,0,0.3);
}
.hero__tagline {
  margin: clamp(14px, 2vh, 26px) 0 0; text-align: center;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 3.4vw, 40px); color: rgba(255,255,255,0.96); line-height: 1.28;
  text-shadow: 0 2px 22px rgba(0,0,0,0.6), 0 0 50px rgba(0,0,0,0.4);
}
.hero__tl { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero__tl > span { display: block; }
.scroll-hint--video { color: rgba(255,255,255,0.72); z-index: 3; }
.scroll-hint--video .scroll-hint__line { background: linear-gradient(rgba(255,255,255,0.72), transparent); }
.hero__globe { display: flex; align-items: center; justify-content: center; min-width: 0; position: relative; z-index: 2; }
.ms-globe-wrap { position: relative; width: min(460px, 96%); margin: 0 auto; aspect-ratio: 1 / 1; }
#ms-globe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 92%; height: 92%; border-radius: 50%; overflow: hidden;
  cursor: grab; touch-action: none;
  background: radial-gradient(circle at 50% 42%, #0c1830 0%, #0a1428 62%, #091022 100%);
  box-shadow: 0 0 60px 6px rgba(37,99,235,0.3), 0 0 28px rgba(255,184,92,0.12), inset 0 0 40px rgba(0,0,0,0.45);
}
#ms-globe:active { cursor: grabbing; }
#ms-globe canvas { display: block; width: 100%; height: 100%; }

/* Rotating text ring around the globe */
.ms-globe-ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
  animation: ringSpin 34s linear infinite;
}
.ms-globe-ring text {
  font-family: var(--display); font-size: 4.3px; font-weight: 600;
  letter-spacing: 0.85px; text-transform: uppercase; fill: var(--text);
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

@media (min-width: 981px) {
  .hero__card { grid-template-columns: 1fr; align-items: center; }
}
.hero__brand {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.18em; color: var(--muted); margin-bottom: clamp(40px, 8vh, 90px);
}
.hero__brand-dot { color: var(--accent-2); }
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.5rem, 6.6vw, 5.6rem); line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title--muted span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(32px, 6vh, 56px); }
.tag {
  font-size: 13px; padding: 9px 16px; border-radius: 100px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--line);
  color: var(--muted); transition: all .3s var(--ease);
}
.tag:hover { color: var(--accent); border-color: var(--accent); }

.hero__lead { display: flex; gap: 18px; margin-top: clamp(32px, 5vh, 48px); max-width: 620px; }
.sparkle { flex-shrink: 0; color: var(--accent); margin-top: 2px; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__lead p { font-size: clamp(15px, 1.6vw, 19px); color: var(--text); line-height: 1.55; }

.hero__claims { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.claim { font-size: 14px; color: var(--muted); }
.claim-sep { color: var(--accent); }

.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 11px; letter-spacing: 0.2em; color: var(--muted);
}
.scroll-hint__line { width: 1px; height: 40px; background: linear-gradient(var(--muted), transparent); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 3D interactive showcase (Lusion-style) ---------- */
.showcase { padding: clamp(36px, 7vh, 80px) 7vw; max-width: 1400px; margin: 0 auto; }
.showcase__panel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: clamp(400px, 66vh, 660px);
  background: radial-gradient(circle at 50% 38%, #1a2236, #0b1018);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.showcase__panel canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: crosshair; }
.showcase__cap { position: absolute; left: clamp(20px, 4vw, 44px); bottom: clamp(20px, 4vw, 44px); z-index: 2; pointer-events: none; }
.showcase__eyebrow { display: block; font-family: var(--display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #7fd2ff; margin-bottom: 6px; }
.showcase__cap p { color: rgba(255,255,255,0.7); font-size: 14px; }

/* ---------- Scroll follower (Lusion-style) ---------- */
.follow { position: relative; height: 300vh; z-index: 1;
  /* soft fade from the hero video into the cream section (no hard cut) */
  background: linear-gradient(to bottom, transparent 0, var(--bg) 240px); }
.follow__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.follow__arc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.55; }
.follow__inner { position: relative; z-index: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 7vw; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6vw; align-items: center; }
.follow__title { font-family: var(--display); font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin-top: 18px; }
.follow__title .muted { color: var(--accent); }
.follow__hint { margin-top: 22px; font-family: var(--display); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.follow__steps { display: grid; grid-template-columns: 74px 1fr; gap: 24px; align-items: stretch; }
.follow__path-wrap { position: relative; width: 74px; height: 100%; }
.follow__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.follow__path-bg { stroke: var(--line); }
.follow__dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 6px var(--accent-soft); transform: translate(-50%, -50%); }
.follow__list { display: flex; flex-direction: column; gap: 16px; }
.fstep { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 30px; height: 112px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow-sm); transition: height .5s var(--ease), opacity .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
html.js .fstep.current { transform: scale(1.03); border-color: var(--accent); box-shadow: 0 18px 38px -14px rgba(37,99,235,0.5); }
.fstep h3 { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
.fstep p { color: var(--muted); font-size: 14px; margin-top: 10px; transition: opacity .4s var(--ease); }
.fstep__n { position: absolute; right: 26px; top: 22px; font-family: var(--display); font-size: 13px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* JS-gated closed state (without JS everything stays open & readable) */
html.js .fstep { height: 60px; opacity: 0.5; }
html.js .fstep p { opacity: 0; }
html.js .fstep.active { height: 112px; opacity: 1; border-color: var(--line-strong); }
html.js .fstep.active p { opacity: 1; }

@media (max-width: 820px) {
  .follow { height: auto; }
  .follow__sticky { position: static; height: auto; padding: 70px 0; }
  .follow__inner { grid-template-columns: 1fr; gap: 32px; }
  .follow__track { display: none; }
  html.js .fstep, html.js .fstep.active { height: auto; opacity: 1; }
  .fstep { height: auto; padding: 22px 26px; }
  html.js .fstep p { opacity: 1; }
}

/* ---------- Steps ---------- */
.steps-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end;
  background: #0b1018; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.step:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.step__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0b1018; }
.step__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
/* readability gradient over the media */
.step::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,12,20,0.04) 0%, rgba(8,12,20,0.34) 42%, rgba(8,12,20,0.94) 100%);
}
/* cursor-following spotlight glow (set via --mx/--my in JS) */
.step::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(96,165,250,0.18), transparent 60%);
}
.step:hover::after { opacity: 1; }
.step__num {
  position: absolute; top: clamp(18px,2.5vw,28px); right: clamp(20px,2.6vw,30px); z-index: 2;
  font-family: var(--display); font-weight: 700; font-size: clamp(3rem,5.5vw,5rem);
  line-height: 1; letter-spacing: -0.02em; color: rgba(255,255,255,0.18);
}
.step__body { position: relative; z-index: 2; padding: clamp(26px,3vw,38px); }
.step__title { font-family: var(--display); font-size: clamp(1.4rem,2.1vw,1.9rem); font-weight: 600; color: #fff; }
.step__desc { color: rgba(255,255,255,0.8); font-size: 15px; margin-top: 12px; line-height: 1.5; }

/* ---------- Card stack (sohub-style scroll animation) ---------- */
.standards { padding: clamp(60px, 10vh, 120px) 7vw 0; }
.card-stack {
  position: relative; max-width: 1140px; margin: 80px auto 0;
}
.stack-card {
  position: sticky; top: 12vh;
  margin-bottom: 32px;
}
.stack-card__inner {
  background: linear-gradient(150deg, #213450, #16223a);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius);
  padding: clamp(44px, 6vw, 88px); position: relative; overflow: hidden;
  min-height: 460px; display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow);
}
/* Cards use the navy from the logo, with light text. */
.stack-card:nth-child(1) .stack-card__inner { background: linear-gradient(150deg, #233651, #15213a); }
.stack-card:nth-child(2) .stack-card__inner { background: linear-gradient(150deg, #1f3149, #141f37); }
.stack-card:nth-child(3) .stack-card__inner { background: linear-gradient(150deg, #243a57, #18263f); }
.stack-card:nth-child(4) .stack-card__inner { background: linear-gradient(150deg, #1e2f47, #131d34); }
.stack-card__tag {
  display: inline-block; font-family: var(--display); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #cfd6e2;
  padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 100px;
  width: fit-content; margin-bottom: 28px;
}
.stack-card__title { font-family: var(--display); font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 22px; color: #f4f0e6; }
.stack-card__desc { color: #aab3c4; font-size: clamp(16px, 1.7vw, 21px); max-width: 660px; line-height: 1.55; }
.stack-card__index {
  position: absolute; top: clamp(32px,5vw,64px); right: clamp(32px,5vw,64px);
  font-family: var(--display); font-size: clamp(3.5rem, 10vw, 8.5rem); font-weight: 700;
  color: rgba(255, 255, 255, 0.09); line-height: 1;
}

/* ---------- Credit ladder (stepped tier cards) ---------- */
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; }
.tier {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.tier:hover { box-shadow: 0 26px 54px -20px rgba(37,99,235,0.40); border-color: var(--accent); }
.tier:nth-child(1) { min-height: 232px; }
.tier:nth-child(2) { min-height: 282px; }
.tier:nth-child(3) { min-height: 332px; }
.tier__cycle { font-family: var(--display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.tier__term { font-family: var(--display); font-size: clamp(1.45rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: -0.01em; margin-top: auto; }
.tier__sub { color: var(--muted-2); font-size: 13px; margin-top: 8px; }
.tier__level { height: 6px; background: rgba(21,35,63,0.10); border-radius: 100px; overflow: hidden; margin-top: 22px; }
.tier__level span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 100px; transition: width 1.1s var(--ease) .15s; }
.tier.in .tier__level span { width: var(--w); }

.tier--featured { background: linear-gradient(155deg, #06b6d4, #2563eb); border-color: transparent; color: #fff; box-shadow: 0 24px 50px -18px rgba(37,99,235,0.45); }
.tier--featured .tier__cycle { color: rgba(255,255,255,0.9); }
.tier--featured .tier__sub { color: rgba(255,255,255,0.82); }
.tier--featured .tier__level { background: rgba(255,255,255,0.28); }
.tier--featured .tier__level span { background: #fff; }

/* ---- Tier card animations ---- */
/* Shine sweep on hover */
.tier::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  transform: skewX(-20deg); pointer-events: none; z-index: 2; opacity: 0;
}
.tier:hover::after { animation: tierShine 0.9s var(--ease); }
@keyframes tierShine {
  0% { left: -80%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 140%; opacity: 0; }
}
/* Flowing gradient on the progress bars (continuous) */
.tier__level span {
  background: linear-gradient(90deg, #06b6d4, #2563eb, #22d3ee, #2563eb, #06b6d4);
  background-size: 250% 100%;
  animation: tierBarFlow 3s linear infinite;
}
.tier--featured .tier__level span {
  background: linear-gradient(90deg, rgba(255,255,255,0.6), #fff, rgba(255,255,255,0.6));
  background-size: 250% 100%;
}
@keyframes tierBarFlow { to { background-position: -250% 0; } }
/* Featured card: gradient gently breathes */
.tier--featured {
  background: linear-gradient(155deg, #06b6d4, #2563eb 55%, #1e3a8a);
  background-size: 170% 170%;
  animation: tierFeaturedGrad 8s ease-in-out infinite;
}
@keyframes tierFeaturedGrad {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}

/* ---- "Top" credit-ladder climb animation ---- */
.tier__level { height: 8px; }
.tier__level span { position: relative; }
/* a bright highlight sweeps along each bar as it fills */
.tier__level span::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.9) 50%, transparent 100%);
  transform: translateX(-130%); opacity: 0;
}
/* one bright sweep while the bar first fills */
.tier.climbing .tier__level span::before { animation: tierBarSweep 1.2s var(--ease) forwards; }
/* then a perpetual energy pulse keeps climbing the ladder (cycle 1 -> 2 -> 3) */
.tier.in .tier__level span::before { animation: tierBarSweep 2.8s var(--ease) infinite; }
.tier[data-tier="1"].in .tier__level span::before { animation-delay: 0s; }
.tier[data-tier="2"].in .tier__level span::before { animation-delay: 0.5s; }
.tier[data-tier="3"].in .tier__level span::before { animation-delay: 1s; }
@keyframes tierBarSweep {
  0% { transform: translateX(-130%); opacity: 0; }
  14% { opacity: 1; }
  46% { opacity: 1; }
  70%, 100% { transform: translateX(130%); opacity: 0; }
}
/* the cycle label brightens the moment its bar starts to fill */
.tier__cycle { transition: letter-spacing .5s var(--ease), opacity .5s var(--ease); }
.tier.climbing .tier__cycle { letter-spacing: 0.16em; }
/* featured tier keeps a soft living glow once revealed */
.tier--featured.in {
  animation: tierFeaturedGrad 8s ease-in-out infinite, tierFeaturedPulse 3s ease-in-out infinite;
}
@keyframes tierFeaturedPulse {
  0%, 100% { box-shadow: 0 24px 50px -18px rgba(37,99,235,0.45), 0 0 0 0 rgba(37,99,235,0); }
  50% { box-shadow: 0 28px 58px -16px rgba(37,99,235,0.55), 0 0 34px 2px rgba(37,99,235,0.30); }
}
/* celebratory ring the first time the line reaches Full Net-30 */
.tier--featured.maxed {
  animation: tierFeaturedGrad 8s ease-in-out infinite, tierMaxGlow 1.4s var(--ease);
}
@keyframes tierMaxGlow {
  0%   { box-shadow: 0 24px 50px -18px rgba(37,99,235,0.45), 0 0 0 0 rgba(37,99,235,0.55); }
  45%  { box-shadow: 0 30px 64px -14px rgba(37,99,235,0.65), 0 0 0 16px rgba(37,99,235,0); }
  100% { box-shadow: 0 24px 50px -18px rgba(37,99,235,0.45), 0 0 0 0 rgba(37,99,235,0); }
}
@media (prefers-reduced-motion: reduce) {
  .tier__level span::before, .tier--featured.maxed { animation: none; }
}

/* ===== Credit line growth chart (replaces the static tier cards) ===== */
.cgrow { position: relative; width: 100%; max-width: 1080px; margin: 12px auto 0; aspect-ratio: 1000 / 460; }
.cgrow__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cgrow__base { stroke: rgba(21,35,63,0.12); stroke-width: 1.5; stroke-dasharray: 2 8; }
.cgrow__area { opacity: 0; transition: opacity 1.2s var(--ease) .3s; }
.cgrow--in .cgrow__area { opacity: 1; }
.cgrow__line {
  filter: drop-shadow(0 3px 12px rgba(37,99,235,0.40));
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.7s var(--ease);
}
.cgrow--in .cgrow__line { stroke-dashoffset: 0; }
.cgrow__dot { fill: #fff; stroke: var(--accent); stroke-width: 3; opacity: 0; transition: opacity .5s var(--ease) .6s; }
.cgrow--in .cgrow__dot { opacity: 1; }
.cgrow__dot--end { stroke: #2563eb; filter: drop-shadow(0 0 9px rgba(37,99,235,0.75)); }
.cgrow__comet-glow { fill: #22d3ee; opacity: 0.30; }
.cgrow__comet-core { fill: url(#cgCometGrad); filter: drop-shadow(0 0 6px rgba(103,232,249,0.9)); }
/* milestone labels overlaid on the chart points */
.cgrow__labels { position: absolute; inset: 0; pointer-events: none; }
.cgrow__node {
  position: absolute; transform: translate(-50%, 14px); text-align: center; white-space: nowrap;
  opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.cgrow--in .cgrow__node { opacity: 1; transform: translate(-50%, 0); }
.cgrow__node--1 { left: 14%; bottom: 30%; transition-delay: .35s; }
.cgrow__node--2 { left: 50%; bottom: 52%; transition-delay: .65s; }
.cgrow__node--3 { left: 86%; bottom: 82%; transition-delay: .95s; }
.cgrow__cy { display: block; font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.cgrow__term { display: block; font-family: var(--display); font-size: clamp(1.05rem, 1.7vw, 1.55rem); font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.cgrow__node--3 .cgrow__term { color: var(--accent); }
.cgrow__sub { display: block; font-size: 12px; color: var(--muted-2); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .cgrow__area, .cgrow__line, .cgrow__dot, .cgrow__node { transition: none; opacity: 1; stroke-dashoffset: 0; transform: translate(-50%,0); }
}
@media (max-width: 760px) {
  .cgrow { aspect-ratio: 1000 / 720; max-width: 460px; }
  .cgrow__cy { font-size: 11px; margin-bottom: 3px; }
  .cgrow__term { font-size: 0.95rem; white-space: normal; max-width: 130px; }
  .cgrow__node--1 { left: 16%; } .cgrow__node--3 { left: 84%; }
}

/* ===== Credit ladder: feature showcase (slide style) ===== */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.showcase__eyebrow { font-family: var(--display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.showcase__title { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; margin: 14px 0 0; }
.showcase__title .muted { color: var(--accent); }
.showcase__desc { margin: 20px 0 0; max-width: 30rem; color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; }
.showcase__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.showcase__acc { margin-top: 28px; max-width: 32rem; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; padding: 18px 4px; text-align: left;
  font-family: var(--display); font-size: clamp(15px, 1.4vw, 17px); color: var(--text); transition: color .3s var(--ease); }
.acc-trigger b { font-weight: 700; }
.acc-trigger svg { width: 18px; height: 18px; color: var(--muted-2); flex: 0 0 auto; transition: transform .3s var(--ease), color .3s var(--ease); }
.acc-item.is-open .acc-trigger { color: var(--accent); }
.acc-item.is-open .acc-trigger svg { transform: rotate(180deg); color: var(--accent); }
.acc-panel { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .35s var(--ease); }
.acc-item.is-open .acc-panel { max-height: 240px; opacity: 1; }
.acc-panel p { padding: 0 4px 18px; margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 30rem; }
.showcase__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sc-btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 100px;
  font-family: var(--display); font-size: 15px; font-weight: 600; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.sc-btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(37,99,235,0.5); }
.sc-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(37,99,235,0.6); }
.sc-btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.sc-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
/* right media panel */
.showcase__panel { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--card-2); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease); }
.slide.is-active { opacity: 1; visibility: visible; }
.slide video, .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide__ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(120% 120% at 50% 18%, #fcfaf4 0%, #f1ece0 48%, #e7e0d0 100%); color: var(--accent); text-align: center; padding: 24px; }
.slide--featured .slide__ph { background: linear-gradient(155deg, #06b6d4, #2563eb 60%, #1e3a8a); color: #fff; }
.slide__play { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,0.9); color: var(--accent); box-shadow: var(--shadow-sm); animation: scPlayPulse 2.6s var(--ease) infinite; }
.slide__play svg { width: 26px; height: 26px; margin-left: 3px; }
@keyframes scPlayPulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37,99,235,0.0); } 50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(37,99,235,0.10); } }
.slide__cap { font-family: var(--display); font-size: 18px; font-weight: 600; }
.slide__hint { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65; }
.showcase__tabs { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.sc-tab { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--text);
  background: rgba(255,255,255,0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 14px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.sc-tab:hover { border-color: var(--accent); }
.sc-tab.is-active { background: var(--text); color: #fff; border-color: var(--text); }
@media (max-width: 880px) {
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase__panel { aspect-ratio: 16 / 11; }
}

/* ===== Credit ladder: per-cycle slide carousel ===== */
.cslider { position: relative; margin-top: 30px; }
.cslider__vp { position: relative; overflow: hidden; }
.cslider__track { display: flex; transition: transform .6s var(--ease); will-change: transform; }
.cslide { min-width: 100%; box-sizing: border-box; display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px); align-items: center; padding: 10px clamp(74px, 6vw, 92px); }
.cslide__faq { margin-top: 24px; max-width: 34rem; border-top: 1px solid var(--line); }
.cslide__faq .acc-item { border-bottom: 1px solid var(--line); }
.cslide__faq .acc-trigger { padding: 14px 2px; font-size: 15px; }
.cslide__faq .acc-trigger span { padding-right: 14px; }
.cslide__faq .acc-panel p { font-size: 14px; padding: 2px 2px 14px; max-width: 34rem; }
.cslide__disc { margin-top: 14px; font-size: 11.5px; line-height: 1.5; color: var(--muted-2); max-width: 34rem; }
/* side arrows - make it obvious you can change slides */
.cslider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease); }
.cslider__arrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-50%) scale(1.08); box-shadow: var(--shadow); }
.cslider__arrow svg { width: 22px; height: 22px; }
.cslider__arrow--prev { left: clamp(2px, 1vw, 14px); }
.cslider__arrow--next { right: clamp(2px, 1vw, 14px); }
.cslide__cy { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cslide__term { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 12px 0 0; color: var(--text); }
.cslide__desc { margin: 18px 0 0; max-width: 30rem; color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; }
.cslide__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cslide__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card-2); }
.cslide__media .slide__ph { position: absolute; inset: 0; }
.cslide__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cslider__nav { display: flex; align-items: center; justify-content: center; margin-top: 26px; }
.cslider__pills { display: flex; gap: 6px; }
.cs-pill { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.cs-pill:hover { border-color: var(--accent); }
.cs-pill.is-active { background: var(--text); color: #fff; border-color: var(--text); }
@media (max-width: 880px) {
  .cslide { grid-template-columns: 1fr; gap: 22px; padding: 6px 14px; }
  .cslide__media { aspect-ratio: 16 / 11; order: -1; }
  .cslider__arrow { width: 44px; height: 44px; top: 27%; }
  .cslider__arrow--prev { left: 6px; }
  .cslider__arrow--next { right: 6px; }
  .cslider__pills .cs-pill { padding: 9px 12px; }
}

.credit__note {
  margin-top: 40px; max-width: 760px;
  color: var(--text); font-size: clamp(18px, 2vw, 23px); font-weight: 500; line-height: 1.55;
}
.credit__note strong { color: var(--accent); font-weight: 700; font-size: 1.22em; }

@media (max-width: 720px) {
  .ladder { grid-template-columns: 1fr; align-items: stretch; }
  .tier:nth-child(1), .tier:nth-child(2), .tier:nth-child(3) { min-height: 0; }
}

/* ---------- Market particle globe (Stripe-style) ---------- */
.market-globe {
  position: relative; width: 100%; max-width: 760px;
  height: clamp(360px, 56vh, 600px);
  margin: clamp(8px, 4vh, 44px) auto clamp(24px, 5vh, 56px);
}
.market-globe canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: none; }
.market-globe canvas:active { cursor: grabbing; }
.market-globe__cap {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); z-index: 2;
  font-family: var(--display); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted-2); pointer-events: none;
}

/* ---------- Market (animated ticker) ---------- */
.ticker {
  position: relative; left: 50%; transform: translateX(-50%);
  width: 100vw; overflow: hidden; margin-top: 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 30px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex; align-items: center; gap: 38px; width: max-content;
  animation: tickerScroll 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  font-family: var(--display); font-weight: 600; white-space: nowrap;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem); letter-spacing: -0.01em; color: var(--text);
}
.ticker__dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
@keyframes tickerScroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { width: auto; left: 0; transform: none; -webkit-mask-image: none; mask-image: none; }
  .ticker__track { flex-wrap: wrap; animation: none; gap: 20px 38px; }
}

/* ---------- Compare ---------- */
.compare__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fix {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 28px 32px; transition: all .4s var(--ease); box-shadow: var(--shadow-sm);
}
.fix:hover { border-color: var(--accent); transform: translateY(-3px); }
.fix__pain { color: var(--muted-2); font-size: 15px; text-decoration: line-through; text-decoration-color: rgba(21,35,63,0.25); }
.fix__arrow { color: var(--accent); font-size: 20px; }
.fix__sol { color: var(--text); font-size: 15px; font-weight: 500; }
@media (max-width: 720px) { .compare__grid { grid-template-columns: 1fr; } .fix { grid-template-columns: 1fr; gap: 10px; text-align: left; } .fix__arrow { transform: rotate(90deg); width: fit-content; } }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--radius-sm); padding: 28px 30px; min-height: 240px; overflow: hidden;
  background: #0b1018; box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cat__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform: scale(1.05); filter: saturate(1.05) brightness(0.78); transition: transform .8s var(--ease), filter .5s var(--ease); }
.cat::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,16,24,0.15) 0%, rgba(11,16,24,0.28) 45%, rgba(11,16,24,0.85) 100%); }
.cat__name { position: relative; z-index: 2; font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 1.8rem); font-weight: 600; color: #fff; }
.cat__arrow { position: absolute; top: 22px; right: 26px; z-index: 2; color: #fff; font-size: 22px; transition: transform .4s var(--ease); }
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat:hover .cat__media { transform: scale(1.12); filter: saturate(1.1) brightness(0.95); }
.cat:hover .cat__arrow { transform: translate(4px, -4px); }
@media (max-width: 860px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } }

/* ---------- CTA / form ---------- */
.cta { padding-bottom: clamp(80px,12vh,160px); }
.cta__card {
  background: linear-gradient(160deg, #ffffff, var(--card) 55%, var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  box-shadow: var(--shadow);
}
.cta__title { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin: 22px 0 18px; }
.cta__sign { color: var(--accent); font-family: var(--display); font-size: 16px; }
.cta__contact { margin-top: 48px; display: flex; flex-direction: column; gap: 8px; }
.cta__contact a { font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line-strong); width: fit-content; padding-bottom: 2px; }
.cta__contact a:hover { color: var(--accent); }
.cta__contact p { color: var(--muted); font-size: 15px; }

.access-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.field select, .field input {
  height: 56px; padding: 0 18px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); color: var(--text);
  font-family: var(--font); font-size: 16px; cursor: auto; transition: border-color .3s var(--ease);
  appearance: none;
}
.field select:focus, .field input:focus { outline: none; border-color: var(--accent); }
.field input::placeholder { color: var(--muted-2); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2359617a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.access-form__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 60px; border: none; border-radius: 100px; cursor: pointer;
  background: var(--grad); color: var(--accent-ink);
  font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  margin-top: 8px; transition: all .4s var(--ease);
}
.access-form__submit:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(8,145,178,0.35); }
.access-form__submit svg { transition: transform .4s var(--ease); }
.access-form__submit:hover svg { transform: translateX(4px); }
.access-form__ok { color: var(--accent); font-size: 15px; text-align: center; }
@media (max-width: 820px) { .cta__card { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Footer ---------- */
.footer { padding: 80px 7vw 48px; border-top: 1px solid var(--line); max-width: 1400px; margin: 0 auto; }
.footer__top { display: flex; justify-content: space-between; gap: 60px; flex-wrap: wrap; margin-bottom: 80px; }
.footer__brand { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -0.02em; }
.footer__brand span { color: var(--accent-2); }
.footer__logo { display: block; height: clamp(72px, 12vw, 132px); width: auto; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.footer__col a { color: var(--muted); font-size: 15px; transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }

/* ---------- Kinetic typography (SplitType line/word reveal) ---------- */
.kt-line { overflow: hidden; padding-bottom: 0.15em; margin-bottom: -0.15em; }
.kt-word { display: inline-block; will-change: transform; }

/* ---------- Reveal animation (JS-gated, CSS-transition based) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .section { padding-left: 6vw; padding-right: 6vw; }
  .scroll-hint { display: none; }
  .hero__card { align-content: start; padding-top: 100px; }
  .hero__lead { margin-top: 28px; }
  .ms-globe-wrap { width: min(320px, 78%); }
}

/* ---------- Founder support (overlapping team bubbles) ---------- */
.support {
  position: relative; text-align: center;
  padding: clamp(72px, 12vh, 140px) 7vw clamp(80px, 14vh, 160px);
  background: radial-gradient(120% 120% at 50% 0%, #16233f 0%, #0c1628 45%, #080f1c 100%);
  color: #fff; overflow: hidden;
}
.support__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.support__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.2rem, 5.2vw, 4rem); letter-spacing: -0.03em; line-height: 1.05; color: #fff;
}
.support__title em {
  font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.support__sub { margin-top: 18px; color: rgba(255,255,255,0.65); font-size: clamp(16px, 1.9vw, 20px); }
.support__bubbles { display: flex; justify-content: center; align-items: center; margin-top: 40px; }
.support__bubble {
  width: clamp(48px, 6vw, 62px); height: clamp(48px, 6vw, 62px);
  border-radius: 50%; object-fit: cover; border: 3px solid #0c1628;
  margin-left: -16px; filter: grayscale(1); position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.support__bubble:first-child { margin-left: 0; }
.support__bubble:hover { transform: translateY(-8px) scale(1.1); filter: grayscale(0); z-index: 2; }
.support__contact {
  display: inline-block; margin-top: 44px;
  font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.02em;
  color: #fff; border-bottom: 2px solid var(--accent-2); padding-bottom: 4px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.support__contact:hover { color: var(--accent-2); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== 05 Why MasterStock - before/after comparison slider ===== */
.msc { max-width: 980px; margin: 0 auto; }
/* Persistent legend (never clipped) */
.msc__head { display: flex; justify-content: space-between; align-items: center;
  padding: 0 6px 14px; font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; }
.msc__head-side { display: inline-flex; align-items: center; gap: 8px; }
.msc__head-side--after  { color: var(--accent); }
.msc__head-side--before { color: #b0413a; }
.msc__dot { width: 8px; height: 8px; border-radius: 50%; background: #d8564d; flex: 0 0 auto; }
.msc__dot--ok { background: var(--accent); }
.msc__viewport {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  --pos: 50%;
}
.msc__layer { width: 100%; }
.msc__before { position: relative; background: linear-gradient(180deg, #f2e9e1 0%, #efe4da 100%); }
.msc__after  { position: absolute; inset: 0; background: linear-gradient(180deg, #ffffff 0%, var(--card) 100%);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0); will-change: clip-path; }
/* Each row spans full width: headline at the OUTER edge, detail at the INNER/center edge */
.msc__row { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 70px; padding: 0 22px; border-bottom: 1px solid var(--line); box-sizing: border-box; }
.msc__row:last-child { border-bottom: none; }
.msc__main { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; white-space: nowrap; }
.msc__ic { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 15px; font-weight: 700; line-height: 1; }
.msc__ic--x  { background: rgba(216,86,77,0.14); color: #c2473f; }
.msc__ic--ok { background: var(--grad); color: #fff; }
.msc__txt { font-size: 15px; color: var(--muted-2); text-decoration: line-through;
  text-decoration-color: rgba(21,35,63,0.25); }
.msc__txt--ok { color: var(--text); font-weight: 500; text-decoration: none; }
/* Detail: hidden under the divider at rest, revealed as you drag toward that side */
.msc__detail { font-size: 13px; color: var(--muted); white-space: nowrap;
  overflow: hidden; text-overflow: clip; }
.msc__after  .msc__detail { text-align: right; }   /* sits at right edge -> drag RIGHT reveals it */
.msc__before .msc__detail { text-align: left; color: #a86a64; } /* sits at left edge -> drag LEFT reveals it */
.msc__detail--ok { color: var(--accent); }
.msc__handle { position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px; background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(21,35,63,0.12); cursor: ew-resize; z-index: 3; }
.msc__handle:focus-visible { outline: none; }
.msc__handle:focus-visible .msc__grip { box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm); }
.msc__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--text);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease); }
.msc__handle:active .msc__grip { transform: translate(-50%, -50%) scale(1.08); }
.msc__grip svg { width: 22px; height: 22px; }
.msc__hint { text-align: center; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  /* Let headlines wrap instead of being clipped; taller fixed rows keep both layers aligned */
  .msc__row { height: 84px; padding: 0 16px; gap: 12px; }
  .msc__main { white-space: normal; flex: 1 1 auto; min-width: 0; }
  .msc__txt, .msc__txt--ok { font-size: 13px; line-height: 1.3; }
  .msc__detail { display: none; }
}
