@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --bg:             #F5F5F7;
  --bg-dark:        #0A0A0A;
  --text:           #1D1D1F;
  --text-secondary: #6E6E73;
  --accent:         #800020;
  --white:          #FFFFFF;
  --border:         rgba(0,0,0,0.08);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container:    1280px;
  --sp:           80px;    /* section padding */
  --radius:       12px;

  /* Spacing scale */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 80px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
::selection { background: rgba(128,0,32,0.12); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}

/* ─── TYPE SYSTEM ────────────────────────────────────────── */
/* All headings: Playfair Display, consistent weight + tracking */
.display-hero {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

/* Unified eyebrow — used everywhere */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}
.eyebrow.muted { color: var(--text-secondary); }

/* Body text — unified 17px everywhere */
.body-text,
p.body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 11px 24px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.btn-pill:hover            { background: #333; transform: translateY(-1px); }
.btn-pill.accent           { background: var(--accent); color: white; }
.btn-pill.accent:hover     { background: #a50e26; transform: translateY(-1px); }
.btn-pill.outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0,0,0,0.18);
}
.btn-pill.outline:hover    { background: rgba(0,0,0,0.04); transform: translateY(-1px); }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(245,245,247,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: border-color 0.3s;
}
.navbar.scrolled { border-bottom-color: rgba(0,0,0,0.1); }
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.navbar-brand span { color: var(--accent); }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.navbar-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.navbar-nav a:hover,
.navbar-nav a.active { opacity: 1; }

/* ─── SECTION 1 — HERO (follows 1.txt ContainerScroll) ───── */
/*
 * 1.txt ContainerScroll pattern:
 *   - Container is h-[80rem] to provide scroll room for the animation
 *   - Header (left text) translateY: [0, -100] as scrollYProgress → 1
 *   - Card (globe, right) rotateX: [20, 0], scale: [1.05, 1]
 *   - perspective: 1000px applied to the scroll container
 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: visible;
  position: relative;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: center;
  padding-top: var(--s7);
  padding-bottom: var(--s7);
}
.hero-left { max-width: 560px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 6px 14px;
  background: rgba(128,0,32,0.07);
  border-radius: 100px;
  margin-bottom: var(--s5);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
.hero-eyebrow .label-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.65); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--s3);
}
.hero-subhead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: var(--s5);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Globe — 1.txt Card: perspective container + rotateX scroll effect */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  /* perspective applied via JS (1.txt: perspective:"1000px") */
}
.globe-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  will-change: transform;
  transform-origin: center 80%;
  transform-style: preserve-3d;
}
.globe-wrapper canvas {
  display: block;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
  /* grab cursor added by globe.js */
}
.globe-wrapper canvas.loaded { opacity: 1; }

/* ─── SECTION 2 — TRUST CYCLING (follows 2.txt AnimatedHero) */
/*
 * 2.txt AnimatedHero pattern:
 *   - Centered column layout
 *   - h1 with two spans: static prefix + cycling-word span (overflow:hidden)
 *   - All words absolutely positioned, spring-animated between
 *     y:0/opacity:1 (active) and y:±150/opacity:0 (idle)
 *   - 2000ms interval, spring stiffness:50 → replicated with CSS cubic-bezier
 */
.section-trust {
  padding: var(--sp) 0;
}
.section-trust .inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* Trust heading — single element with cycling row inline */
.trust-heading-block {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--text);
  margin-bottom: var(--s5);
}
.trust-static { display: block; }

/* 2.txt: "relative flex w-full justify-center overflow-hidden" */
.trust-cycling-row {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
  overflow: hidden;
  height: 1.18em;          /* one line of the heading font */
  padding-bottom: 2px;
}

/* 2.txt word states: cw-active (y:0), cw-exit (y:-150), cw-below (y:150) */
.cw {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.022em;
  line-height: 1.18;
  text-align: center;
  white-space: nowrap;
  /* 2.txt spring(stiffness:50) ≈ gentle ease-out */
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), opacity 0.4s ease;
}
.cw.cw-active { transform: translateY(0);     opacity: 1; }
.cw.cw-exit   { transform: translateY(-115%); opacity: 0; }
.cw.cw-below  { transform: translateY(115%);  opacity: 0; transition: none; }

.trust-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--s6);
}
.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding-top: var(--s6);
  text-align: left;
}
.trust-stats .stat-item {
  padding: 0 var(--s4);
  border-right: 1px solid var(--border);
}
.trust-stats .stat-item:first-child { padding-left: 0; }
.trust-stats .stat-item:last-child  { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--s1);
  color: var(--text);
}
.stat-number .accent { color: var(--accent); }
.stat-label {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ─── SECTION 3 — SHUSH (follows 3.txt Globe layout) ───────
 * 3.txt Globe pattern:
 *   - Full-width section with globe that has drag-to-rotate
 *   - Scroll-triggered: globe arrives mid-spin when section enters view
 *   - Pointer events: pointerdown→grab, pointermove→rotate, pointerup→release
 */
.section-shush {
  padding: var(--sp) 0;
}
.shush-header { margin-bottom: var(--s6); }
.shush-header h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: var(--s2);
}
.shush-header p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 520px;
}
.globe-s3-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto var(--s7);
  aspect-ratio: 1;
}
.globe-s3-wrapper canvas {
  display: block;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  border-radius: 50%;
}
.globe-s3-wrapper canvas.loaded { opacity: 1; }

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s7);
  border-top: 1px solid var(--border);
  padding-top: var(--s6);
}
.article-main h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: var(--s3);
}
.article-main p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.article-main p strong { color: var(--text); font-weight: 600; }
.article-sidebar { padding-top: 4px; }
.article-figure {
  margin: 0;
  background: transparent;
  border: none;
}
.article-figure img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  margin: 0 auto;
  background: transparent;
  transform: scale(1.85);
  transform-origin: center;
}
.case-card {
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--s2);
}
.case-tag {
  display: inline-block;
  padding: 3px 9px;
  background: rgba(128,0,32,0.08);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s1);
}
.case-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: var(--s1);
  letter-spacing: -0.01em;
}
.case-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ─── SECTION 4 — LEGALLY STRONG (follows 4.txt CircularTestimonials) ─
 * 4.txt pattern:
 *   - 2-column grid layout (image panel left, content right)
 *   - Left panel has visual weight (images/badges stacked with depth)
 *   - Right panel: title, designation, quote, arrow navigation buttons
 *   - Arrow buttons → accordion expand/collapse triggers
 */
.section-legal {
  padding: var(--sp) 0;
}
.section-legal .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: start;
}

/* Left column: visual panel (maps to image panel in 4.txt) */
.legal-left h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin-bottom: var(--s1);
}
.legal-left .subheading {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--s4);
  line-height: 1.6;
}
.legal-left .desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--s5);
}

/* Partnership badge — visual panel element (like testimonial images in 4.txt) */
.partnership-badge {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  max-width: 320px;
  margin-bottom: var(--s2);
  transition: box-shadow 0.2s;
}
.partnership-badge:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.badge-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #003580, #0052CC);
}
.badge-icon.ojk {
  background: linear-gradient(135deg, #005B99, #0082CC);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.badge-text .title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.badge-text .subtitle {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Right column: accordion (maps to content+arrow-nav in 4.txt) */
.legal-right { padding-top: 4px; }
.accordion {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s;
}
.accordion-item.open { border-color: rgba(128,0,32,0.2); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 18px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
.accordion-trigger .trigger-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}
/* Arrow button — maps to prev/next arrows in 4.txt */
.trigger-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.3s;
  color: var(--text);
}
.accordion-item.open .trigger-icon {
  background: var(--accent);
  color: white;
  transform: rotate(45deg);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
}
.accordion-item.open .accordion-body { max-height: 500px; }
.accordion-body-inner {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.accordion-body-inner p { margin-bottom: 14px; }
.accordion-body-inner p:last-child { margin-bottom: 0; }
.accordion-body-inner p + p { margin-top: 0; }
.accordion-body-inner strong { color: var(--text); }

/* ─── SECTION 5 — SPOTLIGHT/BLACKBOX (follows 5.txt SplineScene + Spotlight) ─
 * 5.txt pattern:
 *   - Dark card background (bg-black/[0.96])
 *   - Spotlight component: radial-gradient follows mouse via spring (bounce:0)
 *   - Spline 3D scene on the right → robot equivalent
 *   - Left: h1 + description text
 */
.section-spotlight {
  background: var(--bg-dark);
  color: white;
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  cursor: none;       /* 5.txt: custom cursor for spotlight */
}

/* 5.txt Spotlight: radial-gradient blur circle following mouse with spring */
.spotlight-cursor {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255,255,255,0.11) 0%,
    rgba(255,255,255,0.05) 30%,
    transparent 68%
  );
  pointer-events: none;
  transform: translate(-50%,-50%);
  opacity: 0;
  z-index: 1;
  /* Spring: bounce:0 ≈ transition none, JS does the lerp */
  transition: opacity 0.35s;
}
.section-spotlight .container {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s7);
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: var(--sp);
  padding-bottom: var(--sp);
}
.spotlight-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  display: block;
  margin-bottom: 20px;
}
.spotlight-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
}
.spotlight-heading em  { font-style: italic; color: rgba(255,255,255,0.45); }
.spotlight-heading .hl { color: var(--accent); }
.spotlight-body p {
  font-size: 16px;
  line-height: 1.82;
  color: rgba(255,255,255,0.58);
  margin-bottom: var(--s2);
}
.spotlight-body p strong { color: rgba(255,255,255,0.92); }
.regs-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s4);
}
.reg-chip {
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

/* ─── ROBOT (5.txt: Spline 3D scene equivalent) ─────────── */
.robot-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  user-select: none;
}
.robot { position: relative; width: 180px; }
.robot-head {
  width: 118px; height: 95px;
  background: #111827;
  border: 1.5px solid rgba(255,255,255,0.11);
  border-radius: 18px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.robot-antenna {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 2px; height: 20px;
  background: rgba(255,255,255,0.18);
}
.robot-antenna::after {
  content: '';
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 9px; height: 9px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(128,0,32,0.7);
  animation: ant-blink 2.2s infinite;
}
@keyframes ant-blink {
  0%,100% { opacity:1; }
  50%      { opacity:0.2; }
}
.robot-eyes { display: flex; gap: 14px; }
.robot-eye {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.03);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}
.robot-pupil {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 10px rgba(128,0,32,0.75);
  will-change: transform;
}
.robot-mouth {
  width: 42px; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.1);
}
.robot-neck {
  width: 20px; height: 13px;
  background: #111827;
  border-left: 1.5px solid rgba(255,255,255,0.09);
  border-right: 1.5px solid rgba(255,255,255,0.09);
  margin: 0 auto;
}
.robot-body {
  width: 136px; height: 108px;
  background: #111827;
  border: 1.5px solid rgba(255,255,255,0.11);
  border-radius: 14px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}
.robot-chest-panel {
  width: 66px; height: 36px;
  background: rgba(128,0,32,0.08);
  border: 1px solid rgba(128,0,32,0.24);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.robot-chest-light {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(128,0,32,0.9);
  animation: chest-pulse 1.8s infinite;
}
@keyframes chest-pulse {
  0%,100% { transform:scale(1);   opacity:1; }
  50%      { transform:scale(1.4); opacity:0.65; }
}
.robot-vent { display: flex; gap: 5px; }
.robot-vent span {
  width: 5px; height: 15px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
}
.robot-arms-row {
  display: flex;
  justify-content: space-between;
  width: 166px;
  margin: 0 auto;
  position: relative;
  top: -52px;
}
.robot-arm {
  width: 16px; height: 62px;
  background: #111827;
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 8px;
}
.robot-legs-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  position: relative;
  top: -48px;
}
.robot-leg {
  width: 23px; height: 54px;
  background: #111827;
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 11px;
}
.robot-label {
  margin-top: -36px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  text-align: center;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.55);
  padding: var(--s7) 0 var(--s5);
}
.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: var(--s6);
  padding-bottom: var(--s5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--s5);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: white;
  margin-bottom: var(--s1);
  display: block;
  letter-spacing: -0.01em;
}
.footer-brand span { color: rgba(128,0,32,0.75); }
.footer-tagline {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.38);
  max-width: 300px;
  margin-bottom: var(--s3);
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 6px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.07);
}
.footer-badge span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2);
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.28); }

/* ─── INNER PAGE HERO ────────────────────────────────────── */
.page-hero {
  padding: calc(72px + var(--s7)) 0 var(--s7);
}
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin-bottom: var(--s3);
}
.page-hero-title-wrap {
  position: relative;
  display: inline-block;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}
.page-hero-decor {
  position: absolute;
  top: -60px;
  right: -220px;
  width: 360px;
  height: auto;
  display: block;
  background: transparent;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 1400px) {
  .page-hero-decor { width: 300px; right: -120px; top: -50px; }
}
@media (max-width: 1100px) {
  .page-hero-decor { width: 220px; right: -40px; top: -40px; }
}
@media (max-width: 768px) {
  .page-hero-decor { width: 120px; top: -20px; right: 0; }
}
.page-hero p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 620px;
}

/* Scoped variant for How We Work — sits under a content section, not the navbar */
.page-hero--pipeline { padding-top: 60px; padding-bottom: 0; }
.page-hero--pipeline .eyebrow { margin-bottom: 8px; }
.page-hero--pipeline h1 { font-size: clamp(34px, 3.6vw, 52px); }

/* ─── PAGE HERO — full-viewport photo variant (Research & Team) ─ */
.page-hero--photo {
  min-height: 100vh;
  width: 100%;
  padding: 0;
  position: relative;
  overflow: hidden;
  background-image: url('../components/grad.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
}
.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}
.page-hero-photo-content {
  position: absolute;
  bottom: 80px;
  left: 60px;
  right: 60px;
  z-index: 2;
  max-width: 760px;
}
.page-hero--photo h1 {
  color: #ffffff;
  max-width: 760px;
  margin-bottom: var(--s3);
}
.page-hero--photo .page-hero-subhead {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #ffffff;
  max-width: 480px;
  margin: 0 0 var(--s4) 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.hero-pill-badge--on-dark {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: var(--s3);
}
.page-hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.hero-btn--outline {
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  padding: 10px 22px;
  border-radius: 100px;
}
.hero-btn--outline:hover { background: #ffffff; color: #0a0a0a; }
.hero-btn--link {
  color: #ffffff;
  background: transparent;
  padding: 10px 6px;
}
.hero-btn--link:hover { opacity: 0.7; }

@media (max-width: 768px) {
  .page-hero-photo-content { left: 24px; right: 24px; bottom: 48px; }
  .page-hero--photo h1 { font-size: clamp(36px, 7vw, 56px); }
}

/* ─── NAVBAR — transparent state when over the photo hero ─ */
.navbar.navbar--over-hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}
.navbar.navbar--over-hero .navbar-brand,
.navbar.navbar--over-hero .navbar-nav a {
  color: #ffffff;
}
.navbar.navbar--over-hero .nav-github-icon { fill: #ffffff; }
.navbar.navbar--over-hero .btn-pill.accent {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}
.navbar.navbar--over-hero .btn-pill.accent:hover {
  background: #ffffff;
  color: #0a0a0a;
}

/* ─── DATA PARTNERSHIP (How We Work) ─────────────────────── */
.section-data-partnership {
  padding: calc(72px + var(--s5)) 0 var(--s6);
}
.partnership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.partnership-eyebrow {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: #8B1A1A;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.partnership-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--text);
  margin-bottom: var(--s4);
}
.partnership-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  max-width: 560px;
  margin-bottom: var(--s4);
}
.partnership-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: white;
  background: #8B1A1A;
  border: 1px solid #8B1A1A;
  padding: 10px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.partnership-btn:hover { background: #6a1414; border-color: #6a1414; }
.partnership-right {
  background: transparent;
  background-color: transparent;
}
.partnership-image {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
@media (max-width: 1100px) {
  .partnership-grid { grid-template-columns: 1fr; gap: var(--s5); }
}
.hero-pill-badge {
  display: inline-block;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B1A1A;
  border: 1px solid #8B1A1A;
  padding: 4px 14px;
  border-radius: 20px;
  margin-top: 12px;
}

/* ─── HOW WE WORK ────────────────────────────────────────── */
.pipeline-section { padding: 0 0 0; }
.pipeline-section .pipeline-step:last-child { padding-bottom: var(--s3); }
.pipeline-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: var(--s3);
  row-gap: var(--s2);
  padding: var(--s7) 0;
  align-items: start;
}
.pipeline-section .pipeline-step:first-child { padding-top: 0; margin-top: 56px; }

/* Rail: square at top, line flows exactly from square bottom to next square top */
.step-rail {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  width: 16px;
  align-self: stretch;
}
.step-square {
  width: 16px;
  height: 16px;
  border: 2px solid #DEDEDE;
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.step-line {
  position: absolute;
  top: 16px;                          /* exact bottom edge of this square */
  left: 7px;                          /* 2px line centred on 16px square */
  width: 2px;
  bottom: calc(-2 * var(--s7));       /* reach exact top edge of next square */
  background: #DEDEDE;
  overflow: hidden;
}
.step-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: #8B1A1A;
}
.pipeline-step:last-child .step-line { display: none; }

.step-number {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-body);
  font-size: 72px;
  font-weight: 700;
  color: #DEDEDE;
  line-height: 1;
  letter-spacing: -0.02em;
  padding-top: 0;
  margin: 0;
  transition: color 0.4s ease;
}

.step-content {
  grid-column: 2;
  grid-row: 2;
}

.step-content h3 {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: var(--s2);
  transition: color 0.4s ease;
}

/* Active state — scroll-activated (colours only; line fill is JS-driven) */
.pipeline-step.is-active .step-square {
  background: #8B1A1A;
  border-color: #8B1A1A;
}
.pipeline-step.is-active .step-number,
.pipeline-step.is-active .step-content h3 {
  color: #8B1A1A;
}
.step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s1);
}
.step-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: var(--s2);
}
.step-content p:last-of-type { margin-bottom: var(--s3); }
.step-content .pipeline-secret-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: 0.85;
  margin-top: var(--s2);
}
.step-content .pipeline-secret-note a {
  color: var(--accent);
  text-decoration: none;
}
.step-content .pipeline-secret-note a:hover { text-decoration: underline; }
.tech-chips { display: flex; flex-wrap: wrap; gap: var(--s1); }
.tech-chip {
  padding: 5px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* CTA section (shared) */
.section-cta {
  padding: var(--s4) 0 var(--s7);
  text-align: center;
}
.section-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
}
.section-cta p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: var(--s5);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ─── SPECIAL ACKNOWLEDGEMENT ────────────────────────────── */
.section-ack { padding: 60px 0 var(--sp); }
.ack-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: #8B1A1A;
  margin: 0 0 var(--s5) 0;
}
.ack-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: var(--s6);
  align-items: start;
}
.ack-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: var(--s2);
  letter-spacing: -0.015em;
}
.ack-role {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--s3);
  line-height: 1.5;
}
.ack-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  max-width: 640px;
  margin-bottom: var(--s4);
}
.ack-linkedin {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #8B1A1A;
  border: 1px solid #8B1A1A;
  padding: 8px 18px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}
.ack-linkedin:hover { background: #8B1A1A; color: white; }
.ack-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
}
.ack-person { margin-bottom: var(--s7); }
.ack-person:last-child { margin-bottom: 0; }
.ack-photo-placeholder {
  width: 180px;
  height: 180px;
  background: #E8E8E8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
}
.ack-photo-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #E8E8E8;
}

/* ─── MEET THE TEAM ──────────────────────────────────────── */
.section-team { padding: var(--sp) 0; }
.team-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: var(--s5);
  align-items: stretch;
  min-height: 540px;
}
.team-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: var(--s3);
}
.team-head { display: block; }
.team-counter {
  font-family: var(--font-body);
  display: flex;
  align-items: baseline;
  margin-bottom: var(--s2);
}
.team-counter-num {
  font-family: var(--font-body);
  font-size: 42px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.01em;
}
.team-counter-total {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  margin-left: 8px;
  color: var(--text-secondary);
}
.team-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  color: #8B1A1A;
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: var(--s3) 0 0 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.team-heading span { display: block; }
.team-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.team-thumb {
  width: 64px;
  height: 80px;
  border: none;
  background: transparent;
  border-radius: 6px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.3s;
  position: relative;
}
.team-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(240,240,240,0.2);
  transition: background 0.3s;
  pointer-events: none;
}
.team-thumb:hover { opacity: 1; }
.team-thumb:hover::after { background: transparent; }
.team-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-center { position: relative; align-self: start; }
.team-photo-card {
  width: 100%;
  height: 560px;
  border-radius: 16px;
  overflow: hidden;
  background: #E8E8E8;
}
.team-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.team-photo-card img[src*="Emilia"] {
  transform: scale(1.35);
  transform-origin: center 30%;
}
.team-photo-card img.is-fading { opacity: 0; }
.team-member-role,
.team-member-name,
.team-member-bio,
.team-experience,
.team-linkedin {
  transition: opacity 0.3s ease;
}
.team-member-role.is-fading,
.team-member-name.is-fading,
.team-member-bio.is-fading,
.team-experience.is-fading,
.team-linkedin.is-fading { opacity: 0; }

.team-experience { min-height: 64px; }
.team-experience-row {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.team-experience-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
}
/* Square / crest-style marks need a taller bound to match the visual mass of wordmarks */
.team-experience-logo[src*="SU2"],
.team-experience-logo[src*="UA"] {
  height: 56px;
}
.team-experience-logo[src*="BI"] {
  height: 48px;
}
/* Wide wordmarks — keep them shorter so 4 logos fit in one row */
.team-experience-logo[src*="HSBC"],
.team-experience-logo[src*="Ted"] {
  height: 24px;
}
.team-experience-logo[src*="Deloitte"] {
  height: 18px;
}
.team-experience-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.team-linkedin { min-height: 48px; }
.team-linkedin-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #8B1A1A;
  background: transparent;
  border: 1px solid #8B1A1A;
  padding: 8px 18px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-top: 22px;
}
.team-linkedin-btn:hover { background: #8B1A1A; color: white; }
.team-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: var(--s4);
}
.team-text { padding-top: var(--s6); }
.team-member-role {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  min-height: 24px;
}
.team-member-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--s3);
  line-height: 1.1;
  letter-spacing: -0.02em;
  min-height: 48px;
}
.team-member-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  max-width: 460px;
  min-height: 240px;
}
.team-nav {
  display: flex;
  gap: 10px;
  align-self: flex-end;
}
.team-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.18);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.team-nav-btn:hover { background: rgba(0,0,0,0.04); }
.team-nav-btn--primary {
  background: #8B1A1A;
  color: white;
  border-color: #8B1A1A;
}
.team-nav-btn--primary:hover { background: #6a1414; border-color: #6a1414; }

/* ─── RESEARCH PAGE ──────────────────────────────────────── */
.research-section { padding: var(--sp) 0; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
  margin-bottom: var(--s7);
}
.metric-card {
  padding: var(--s4) var(--s3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.metric-value {
  font-family: var(--font-body);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--s1);
}
.metric-value .accent { color: var(--accent); }
.metric-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.research-block { margin-bottom: var(--s7); }
.research-block h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.research-block p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--s2);
}
.research-block p strong { color: var(--text); }

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--s4);
  margin-bottom: var(--s5);
}
/* Keep Model, F1 and Accuracy snug on the left; let Performance absorb the slack */
.comparison-table th:not(.th-perf),
.comparison-table td:not(:last-child) {
  width: 1%;
  white-space: nowrap;
  padding-right: 40px;
}
.comparison-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-bottom: 2px solid var(--border);
}
.comparison-table td {
  padding: 14px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.comparison-table tr.highlight td            { background: rgba(128,0,32,0.03); }
.comparison-table tr.highlight td:first-child { font-weight: 700; color: var(--accent); }

.th-perf { min-width: 200px; }
.score-label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.score-bar-wrap { display: flex; align-items: center; gap: 12px; min-width: 150px; }
.score-bar-track {
  flex: 1; height: 5px;
  background: var(--border);
  border-radius: 3px; overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.tsne-canvas-wrap {
  width: 100%;
  height: 320px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: var(--s5);
  position: relative;
  overflow: hidden;
}
#tsne-canvas { width: 100%; height: 100%; display: block; }
.tsne-slider {
  position: relative;
  display: flex;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  gap: var(--s4);
  margin-top: var(--s5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.tsne-slider::-webkit-scrollbar { display: none; }
.tsne-slider.is-dragging { cursor: grabbing; }
.tsne-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
}
.tsne-img-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.tsne-slide img {
  width: 100%;
  height: 440px;
  object-fit: contain;
  display: block;
  background: var(--white);
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.12s ease-out;
}
.tsne-slide figcaption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 10px;
  text-align: center;
}
.tsne-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
  margin-bottom: var(--s5);
}
.tsne-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tsne-dot.is-active { background: #8B1A1A; transform: scale(1.25); }

.tsne-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(0,0,0,0.88);
  cursor: zoom-out;
}
.tsne-lightbox.is-open { display: flex; }
.tsne-lightbox img {
  max-width: 95%;
  max-height: 92%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
  .tsne-slide img { height: 300px; }
  .tsne-lightbox { padding: 16px; }
}
.tsne-legend {
  position: absolute;
  bottom: 16px; right: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.legend-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  color: var(--text-secondary);
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ─── PRIVACY PAGE ───────────────────────────────────────── */
.privacy-section { padding: var(--sp) 0; }
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--s7);
  align-items: stretch;
}
.privacy-content h2 {
  font-family: var(--font-body);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--accent);
  margin-bottom: 18px;
  margin-top: var(--s6);
}
.privacy-content h2:first-child { margin-top: 0; }

.privacy-subtitle {
  display: block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(120, 120, 124, 1);
}
.privacy-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.privacy-content p strong { color: var(--text); }

.privacy-updated {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: var(--s5);
  line-height: 1;
}

.privacy-sidebar-wrap {
  position: sticky;
  top: 96px;
}

/* ─── CONTACT & FEEDBACK SECTION (privacy page) ──────────────── */
.section-contact {
  padding: var(--sp) 0;
  background: var(--bg);
}
.contact-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--s6);
}
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 16px 0 var(--s3);
}
.contact-subheading {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s7);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.contact-item {
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.contact-value {
  font-family: var(--font-body);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
  word-break: break-word;
  line-height: 1.2;
}
.contact-value:hover { opacity: 0.78; }
.contact-value--plain { cursor: default; }
.contact-value--plain:hover { opacity: 1; }

.contact-map {
  margin-top: var(--s3);
  width: 100%;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  filter: grayscale(0.15);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact-note {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(140, 140, 144, 1);
  margin: 6px 0 0;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--s5);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.contact-form-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 var(--s4);
}

.form-row {
  margin-bottom: var(--s3);
}
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.form-row label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(58, 53, 48, 0.55);
  font-size: 11px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.form-row textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(58, 53, 48, 0.45);
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(139, 26, 26, 0.08);
}

.contact-submit {
  margin-top: var(--s3);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.contact-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }
  .form-row--split { grid-template-columns: 1fr; }
}
.compliance-sidebar {
  padding: var(--s3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.compliance-sidebar h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.compliance-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.compliance-item:last-child { border-bottom: none; }
.compliance-item .reg-name {
  font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 3px;
}
.compliance-item .reg-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.compliance-status {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 5px;
  font-size: 11px; font-weight: 600;
  color: #16a34a;
}
.compliance-status::before {
  content: '';
  width: 6px; height: 6px;
  background: #16a34a;
  border-radius: 50%;
}

/* Privacy sidebar spacing variant */
.compliance-sidebar--spaced { margin-top: 20px; }
/* Privacy alert text */
.reg-desc--alert { color: var(--accent); font-weight: 600; }

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ─── SECTION 1 — ContainerScroll (1.txt) ───────────────── */
/* h-[80rem] section, perspective:1000px inner, card: bg-[#222222]
   border-4 border-[#6C6C6C] rounded-[30px] h-[40rem], inner: bg-zinc-900 */
.cs-section {
  min-height: 1280px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  position: relative;
  overflow: visible;
}

.cs-wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 48px 80px;
  position: relative;
  perspective: 1000px;
}

.cs-header {
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
  will-change: transform;
}

.cs-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--s3);
}

.cs-subhead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto var(--s5);
}

.cs-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* 1.txt Card: -mt-12 max-w-5xl h-[40rem] border-4 #6C6C6C bg-[#222222] rounded-[30px] p-6 */
.cs-card {
  max-width: 1024px;
  margin: 40px auto 0;
  height: 689px;
  width: 100%;
  border: 4px solid #6C6C6C;
  padding: 24px;
  background: #222222;
  border-radius: 30px;
  box-shadow: 0 0 #0000004d, 0 9px 20px #0000004a, 0 37px 37px #00000042,
              0 84px 50px #00000026, 0 149px 60px #0000000a, 0 233px 65px #00000003;
  will-change: transform;
  transform-origin: center 85%;
}

/* 1.txt inner: bg-zinc-900 rounded-2xl overflow-hidden */
.cs-card-inner {
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-card-inner .globe-wrapper {
  max-width: 100%;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.cs-card-inner .cs-dashboard {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* ─── SECTION 2 — AnimatedHero (2.txt) ──────────────────── */
/* Centered column, badge → cycling h2 → body → two buttons */
.section-animated-hero {
  padding: var(--sp) 0;
}

.ah-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  gap: var(--s4);
}

.ah-badge { font-size: 13px; }

.ah-heading {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--text);
}

.ah-static { display: block; }

.ah-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.ah-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ah-stats {
  display: flex;
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: var(--s5);
  justify-content: center;
}

.ah-stat {
  padding: 0 var(--s5);
  text-align: center;
}

.ah-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── SECTION 3 — Globe Feature (3.txt) ─────────────────── */
/* rounded-3xl bg-muted border shadow-md px-16 py-24,
   globe: absolute -bottom-20 -right-40 scale-150 */
.section-globe-feature {
  padding: var(--sp) 0;
}

.gf-card {
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border-radius: 32px;
  padding: 96px 64px;
  position: relative;
  overflow: hidden;
}

.gf-row {
  display: flex;
  align-items: flex-end;
  gap: var(--s7);
  position: relative;
}

.gf-text {
  flex: 0 0 auto;
  max-width: 500px;
  position: relative;
  z-index: 10;
}
.gf-heading { white-space: nowrap; }

.gf-heading {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--text);
  margin-bottom: var(--s4);
}

.gf-accent { color: var(--accent); }

.gf-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--s4);
}

/* 3.txt: relative h-[180px] container for the overflowing globe */
.gf-globe-slot {
  flex: 1;
  position: relative;
  height: 620px;
  min-width: 0;
}

/* 3.txt: Globe absolute -bottom-20 -right-40 scale-150 */
.gf-globe-overflow {
  position: absolute;
  top: -310px;
  right: -320px;
  width: 820px;
  height: 820px;
  background: transparent;
  overflow: visible;
}

.gf-globe-overflow > div {
  background: transparent !important;
}

.gf-globe-overflow #globe {
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: grab;
}

/* Attribution sits directly below the visible globe, right-aligned */
.gf-globe-attribution {
  position: absolute;
  bottom: 130px;
  right: -40px;
  left: auto;
  transform: none;
  text-align: right;
  margin: 0;
  width: auto;
  max-width: 90%;
  padding: 0;
  box-sizing: border-box;
  white-space: normal;
  z-index: 5;
}

.gf-attr-primary {
  font-size: 13px;
  font-weight: 600;
  color: #3a3530;
  line-height: 1.4;
  margin-bottom: 4px;
  text-align: right;
  white-space: normal;
  overflow: visible;
}

.gf-attr-secondary {
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  color: #8a827a;
  line-height: 1.5;
  text-align: right;
}

.article-h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: var(--s3);
}

/* Spacing between gf-card and article-grid */
.section-globe-feature .article-grid {
  margin-top: var(--s7);
}

/* Article collapse toggle */
.article-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 12px 0;
  margin-top: var(--s6);
}
.article-toggle:hover { opacity: 0.75; }
.toggle-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-style: normal;
}
.article-toggle.open .toggle-arrow {
  transform: rotate(90deg);
}
.article-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.article-collapse.open {
  max-height: 3000px;
}
.article-dropdown {
  max-width: 820px;
  margin: 0 auto;
  padding-top: var(--s4);
}
.article-dropdown-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
  color: var(--text);
}
.article-dropdown p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--s3);
}
.article-jp-link {
  display: inline-block;
  margin-top: var(--s3);
  padding: 12px 26px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.article-jp-link:hover {
  background: var(--accent);
  color: #fff;
}

/* ─── SECTION 5 — CORE BELIEF / DATA SOVEREIGNTY ─────────── */
.section-belief {
  padding: var(--sp) 0;
}

/* Pull-quote block */
.belief-pullquote {
  position: relative;
  text-align: center;
  padding: var(--s7) 0 calc(var(--s7) + 16px);
  margin-bottom: var(--s7);
}
.belief-quote-mark {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 360px;
  line-height: 1;
  color: rgba(0,0,0,0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.belief-quote-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 300;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 820px;
  margin: 0 auto;
}

/* Two-column grid */
.belief-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
}
.belief-heading {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: var(--s3);
}
.belief-right p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.belief-promise {
  font-weight: 600;
  color: var(--text) !important;
  font-style: italic;
}
.belief-privacy-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: var(--s3);
  letter-spacing: 0.01em;
}
.belief-privacy-link:hover { text-decoration: underline; }

/* Bottom note */
.belief-footer {
  margin-top: var(--s7);
  text-align: center;
}
.belief-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: var(--s4);
}
.belief-note {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ─── SECTION 4 — CircularTestimonials (4.txt) ───────────── */
/* max-w-56rem container, perspective-1000 image panel,
   active card center, adj cards translateX ±gap rotateY ±15° */
/* ─── FEATURE SHOWCASE (vanilla port of shadcn FeatureShowcase) ─ */
.fs-section { padding: var(--sp) 0; }
.fs-grid {
  max-width: var(--container, 1280px);
  margin: 0 auto;
  padding: 0 var(--s4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: start;
}
.fs-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: var(--s4);
}
.fs-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: none;
}
.fs-desc {
  margin-top: var(--s4);
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.fs-stats {
  margin-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fs-chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: rgba(0,0,0,0.05);
  border-radius: 100px;
  padding: 5px 12px;
}
.fs-accordion {
  margin-top: var(--s6);
  max-width: 520px;
}
.fs-acc-item { border-bottom: 1px solid var(--border); }
.fs-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.fs-acc-trigger:hover { text-decoration: underline; }
.fs-acc-chevron { flex-shrink: 0; opacity: 0.6; transition: transform 0.2s ease; }
.fs-acc-item.is-open .fs-acc-chevron { transform: rotate(180deg); }
.fs-acc-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.fs-acc-item.is-open .fs-acc-content { max-height: 600px; }
.fs-acc-inner {
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.fs-acc-sub {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.fs-ctas {
  margin-top: var(--s5);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.fs-btn--primary { background: var(--accent); color: #fff; }
.fs-btn--primary:hover { background: #6a1414; }
.fs-btn--secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.fs-btn--secondary:hover { background: rgba(0,0,0,0.04); }

.fs-card {
  position: relative;
  height: 560px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.fs-media { position: absolute; inset: 0; overflow: hidden; }
.fs-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.fs-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.fs-tablist {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}
.fs-tab {
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.fs-tab:hover { color: var(--text); }
.fs-tab.is-active { background: var(--text); color: var(--white); }

/* Dot-style tab controls with a sliding active indicator */
.fs-tablist--dots { gap: 10px; padding: 9px 14px; }
.fs-tablist--dots .fs-tab {
  position: relative;
  z-index: 1;
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s ease;
}
.fs-tablist--dots .fs-tab:hover { background: rgba(0,0,0,0.4); }
.fs-dot-indicator {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%) translateX(0);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .fs-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .fs-card { height: 420px; }
}

.section-ct {
  padding: var(--sp) 0;
}

/* Carousel: arrows flank a stage of cards, three visible at once */
.ct-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--s2);
}

.ct-stage {
  position: relative;
  flex: 1;
  height: 460px;
}

.ct-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: #14141a;
  box-shadow: 0 12px 34px rgba(0,0,0,0.18);
  cursor: pointer;
  will-change: transform, opacity;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), opacity 0.5s ease, box-shadow 0.4s ease;
}
.ct-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Position states (set by JS) */
.ct-card.is-center {
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
  opacity: 1;
  box-shadow: 0 26px 60px rgba(0,0,0,0.30);
}
.ct-card.is-left {
  transform: translate(calc(-50% - 285px), calc(-50% + 26px)) scale(0.86);
  z-index: 2;
  opacity: 1;
}
.ct-card.is-right {
  transform: translate(calc(-50% + 285px), calc(-50% + 26px)) scale(0.86);
  z-index: 2;
  opacity: 1;
}
.ct-card.is-hidden {
  transform: translate(-50%, -50%) scale(0.72);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Hover overlay rises from the bottom */
.ct-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 30px 26px;
  background: rgba(10,10,10,0.88);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.ct-card:hover .ct-overlay { transform: translateY(0); }
.ct-ov-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ct-ov-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.ct-ov-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: #ffffff;
}

/* Arrow buttons */
.ct-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  border: none;
  background: #141414;
  color: #f1f1f7;
  flex-shrink: 0;
  z-index: 4;
}
.ct-arrow:hover { background: var(--accent); }

/* ─── SECTION 5 — SplineScene + Spotlight (5.txt) ────────── */
/* bg-black/[0.96], flex h-full, left: flex-1 p-8 z-10,
   right: flex-1 relative (Spline → Robot), ibelick spotlight */
.section-spline {
  background: #0a0a0a;
  color: white;
  position: relative;
  overflow: hidden;
  cursor: none;
}

.spline-flex {
  display: flex;
  min-height: 768px;
  position: relative;
  z-index: 2;
}

.spline-left {
  flex: 0 0 45%;
  max-width: 45%;
  padding: 56px 48px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.spline-right {
  flex: 1 1 55%;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

/* 5.txt SplineScene fills the right panel */
.spline-scene,
spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* Covers the Spline "Built with Spline" watermark — full-height right panel */
.spline-watermark-cover {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 220px;
  background: #0a0a0a;
  z-index: 999;
  pointer-events: none;
}

.spline-heading {
  font-family: var(--font-body);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--s3);
  color: white;
}

.spline-heading em  { font-style: italic; font-weight: 400; color: rgba(255,255,255,0.45); }
.spline-heading .hl { font-weight: 400; color: #C9A84C; }

.spline-left p {
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(255,255,255,0.58);
  margin-bottom: 14px;
}

.spline-left p strong { color: rgba(255,255,255,0.92); }

/* Override spotlight-eyebrow for dark section context */
.section-spline .spotlight-eyebrow {
  color: rgba(255,255,255,0.38);
  margin-bottom: 20px;
}

/* ─── STRUGGLE HEADER (above globe section) ─────────────── */
.struggle-header {
  text-align: center;
  margin-bottom: var(--s6);
}
.struggle-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
}
.struggle-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* ─── ILLICIT FLOWS SECTION ─────────────────────────────── */
.section-illicit-flows {
  background: #F5F5F7;
  padding: var(--sp) 0;
}
.illicit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
  margin-bottom: var(--s5);
}
.illicit-chart-col {
  position: relative;
  width: 100%;
  height: 440px;
}
.illicit-chart-col canvas {
  width: 100% !important;
  height: 100% !important;
}
.illicit-text-col {
  display: flex;
  flex-direction: column;
}
.illicit-counter-line {
  font-family: var(--font-body);
  font-size: clamp(56px, 7.5vw, 96px);
  font-weight: 700;
  color: #8B1A1A;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: var(--s3);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.illicit-dollar,
.illicit-suffix { font-weight: 700; }
.illicit-counter {
  display: inline-block;
  min-width: 2.4ch;
  font-variant-numeric: tabular-nums;
}
.illicit-worth {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  padding: 4px 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  vertical-align: middle;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.illicit-worth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 213, 79, 0.6);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.45s;
  z-index: -1;
}
.illicit-worth.is-shown {
  opacity: 1;
  transform: translateY(0);
}
.illicit-worth.is-shown::before {
  transform: scaleX(1);
}
.illicit-caption {
  font-size: 15px;
  color: #333333;
  max-width: 440px;
  margin: 0 0 var(--s4);
  line-height: 1.6;
}
.illicit-divider {
  width: 100%;
  border: none;
  border-top: 1px solid #E0E0E0;
  margin: 0 0 var(--s4);
}
.illicit-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
.illicit-stat-num {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 600;
  color: #8B1A1A;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.illicit-stat-lbl {
  font-size: 12.5px;
  color: #333333;
  line-height: 1.5;
}
.illicit-source {
  font-size: 10px;
  color: #6E6E73;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ─── ARTICLE EXTERNAL LINK BUTTON ──────────────────────── */
.article-external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-top: var(--s4);
  border: 1px solid var(--accent);
  padding: 10px 20px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.article-external-link:hover { background: var(--accent); color: white; }

/* ─── PRIVACY PAGE SPLINE HERO ──────────────────────────── */
.section-spline--privacy-hero {
  padding-top: 80px;
}

/* ─── NAV GITHUB ICON ────────────────────────────────────── */
.nav-github-icon { vertical-align: -2px; margin-right: 3px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero .container              { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-right                   { order: -1; }
  .globe-wrapper                { max-width: 360px; margin: 0 auto; }
  .belief-grid                  { grid-template-columns: 1fr; gap: var(--s6); }
  .section-legal .container     { grid-template-columns: 1fr; gap: var(--s6); }
  .section-spotlight .container { grid-template-columns: 1fr; }
  .article-grid                 { grid-template-columns: 1fr; gap: var(--s5); }
  .footer-top                   { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .metric-grid                  { grid-template-columns: repeat(2,1fr); }
  .privacy-grid                 { grid-template-columns: 1fr; }
  .trust-stats                  { grid-template-columns: repeat(3,1fr); }

  /* Section 1 */
  .cs-section   { min-height: auto; }
  .cs-card      { height: auto; min-height: 400px; }

  /* Section 3 */
  .gf-card      { padding: 48px 32px; }
  .gf-row       { flex-direction: column; }
  .gf-text      { max-width: 100%; }
  .gf-globe-slot { height: 480px; }
  .gf-globe-overflow { width: 440px; height: 440px; top: -20px; right: -40px; }

  /* Section 4 */
  .ct-stage     { height: 420px; }
  .ct-card      { width: 280px; height: 360px; }
  .ct-card.is-left  { transform: translate(calc(-50% - 205px), calc(-50% + 22px)) scale(0.82); }
  .ct-card.is-right { transform: translate(calc(-50% + 205px), calc(-50% + 22px)) scale(0.82); }

  /* Section 5 */
  .spline-flex  { flex-direction: column; height: auto; min-height: 600px; }
  .spline-left  { max-width: 100%; }
  .spline-right { flex: 0 0 340px; width: 100%; }

  .illicit-grid        { grid-template-columns: 1fr; gap: var(--s5); }
  .illicit-chart-col   { height: 320px; }
  .illicit-stats-row   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sp: 72px; }
  .container { padding: 0 24px; }
  .navbar-nav { display: none; }

  /* Section 1 */
  .cs-wrap         { padding: 100px 24px 60px; }
  .cs-card         { min-height: 320px; padding: 12px; }
  .cs-card-inner   { border-radius: 10px; }

  /* Section 2 */
  .ah-stat         { padding: 0 var(--s3); }

  /* Section 3 */
  .gf-card         { padding: 40px 24px; border-radius: 20px; }
  .gf-globe-slot   { display: none; }

  /* Section 4 */
  .ct-carousel     { gap: 8px; padding: 0; }
  .ct-stage        { height: 380px; }
  .ct-card         { width: 240px; height: 320px; }
  .ct-card.is-left,
  .ct-card.is-right { opacity: 0; pointer-events: none; }
  .ct-ov-desc      { font-size: 12px; }

  .trust-stats { grid-template-columns: 1fr; }
  .trust-stats .stat-item {
    padding: 20px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .trust-stats .stat-item:last-child { border-bottom: none; }

  .footer-top       { grid-template-columns: 1fr; }
  .metric-grid      { grid-template-columns: 1fr 1fr; }
  .pipeline-step    { padding: var(--s6) 0; }
  .step-line        { bottom: calc(-2 * var(--s6)); }
  .step-number      { font-size: 54px; }

  .ack-grid         { grid-template-columns: 1fr; gap: var(--s4); }
  .ack-right        { justify-content: flex-start; }

  .team-grid        { grid-template-columns: 1fr; gap: var(--s4); min-height: 0; }
  .team-left        { flex-direction: row; justify-content: space-between; align-items: center; }
  .team-thumbnails  { margin-top: 0; }
  .team-photo-card  { min-height: 360px; }
  .team-right       { padding-left: 0; }
  .team-text        { padding-top: var(--s4); }
  .globe-s3-wrapper { max-width: 100%; }
}

/* ─── GLOBE CONTAINER (Three.js) ──────────────────────── */
#globe-container canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
}
#globe-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; background: transparent;
  z-index: 10; transition: opacity 0.7s;
}
#globe-loading-text {
  font-family: monospace; font-size: 11px;
  letter-spacing: 0.22em; color: rgba(0,0,0,0.35);
}
#globe-loading-bar-wrap { width: 120px; height: 1px; background: rgba(0,0,0,0.12); }
#globe-loading-bar { height: 1px; width: 0%; background: rgba(139,26,26,0.6); transition: width 0.4s; }
