/* =========================================================================
   EXCALIBUR — design tokens
   ========================================================================= */
:root,
[data-theme='dark'] {
  --color-bg: #05050a;
  --color-surface: #0c0c15;
  --color-surface-2: #111120;
  --color-surface-offset: #16162a;
  --color-surface-offset-2: #1b1b32;
  --color-divider: #1f1f38;
  --color-border: #2a2a48;

  --color-text: #ffffff;
  --color-text-muted: #a5a5c4;
  --color-text-faint: #6c6c8c;
  --color-text-inverse: #05050a;

  --color-primary: #246bfd;
  --color-primary-hover: #4c85ff;
  --color-primary-active: #1a52c4;
  --color-primary-highlight: #172852;
  --color-primary-ink: #ffffff;

  --color-secondary: #713bff;
  --color-secondary-hover: #8f5fff;
  --color-secondary-highlight: #26184f;

  --color-live: #ff3b5c;
  --color-live-highlight: #3a1620;

  --color-success: #48c78e;
  --color-error: #ff5a6a;

  --radius-sm: 0.4rem;
  --radius-md: 0.7rem;
  --radius-lg: 1.1rem;
  --radius-xl: 1.6rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 0 1px rgba(36,107,253,0.3), 0 0 32px rgba(113,59,255,0.22);

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Alumni Sans', 'Oswald', 'Arial Narrow', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;
  --content-full: 100%;
}

[data-theme='light'] {
  --color-bg: #f4f6ff;
  --color-surface: #ffffff;
  --color-surface-2: #eef1fd;
  --color-surface-offset: #e4e8fb;
  --color-surface-offset-2: #dae0f9;
  --color-divider: #d3d9f2;
  --color-border: #c3cbec;

  --color-text: #05050a;
  --color-text-muted: #43466b;
  --color-text-faint: #7c7fa3;
  --color-text-inverse: #ffffff;

  --color-primary: #246bfd;
  --color-primary-hover: #1a52c4;
  --color-primary-active: #143f99;
  --color-primary-highlight: #dbe6ff;
  --color-primary-ink: #ffffff;

  --color-secondary: #713bff;
  --color-secondary-hover: #5c2ed1;
  --color-secondary-highlight: #e7dcff;

  --color-live: #c8283f;
  --color-live-highlight: #f6d9dd;

  --shadow-sm: 0 1px 2px rgba(5,5,10,0.1);
  --shadow-md: 0 8px 24px rgba(5,5,10,0.12);
  --shadow-lg: 0 24px 64px rgba(5,5,10,0.16);
  --shadow-glow: 0 0 0 1px rgba(36,107,253,0.25), 0 0 32px rgba(36,107,253,0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) { color-scheme: dark; }
}

/* =========================================================================
   Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

body.tpl-light { position: relative; }

img, picture, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; text-wrap: balance; letter-spacing: 0; }
p, li { text-wrap: pretty; }

::selection { background: color-mix(in oklab, var(--color-primary) 35%, transparent); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.container { width: min(100% - 2.5rem, var(--content-wide)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, var(--content-narrow)); margin-inline: auto; }
.container-default { width: min(100% - 2.5rem, var(--content-default)); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 7vw, 7.5rem); position: relative; }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =========================================================================
   Type
   ========================================================================= */
.text-hero { font-size: clamp(3.4rem, 1.2rem + 9vw, 8.6rem); font-weight: 900; line-height: 0.86; text-transform: uppercase; letter-spacing: 0.005em; }
.text-2xl { font-size: clamp(2.4rem, 1.2rem + 4vw, 4.4rem); font-weight: 900; line-height: 0.94; text-transform: uppercase; letter-spacing: 0.005em; }
.text-xl { font-size: clamp(1.8rem, 1.2rem + 1.9vw, 2.7rem); font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; }
.text-lg { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); font-weight: 500; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 700; margin-bottom: 1rem;
}
.eyebrow-rune { color: var(--color-secondary); }
h1 + .lede, h2 + .lede, h1 + p, h2 + p { margin-top: 1.1rem; }
.lede { color: var(--color-text-muted); font-size: clamp(1.02rem, 1rem + 0.2vw, 1.2rem); max-width: 62ch; }
.gold { color: var(--color-primary); }
.violet { color: var(--color-secondary); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), background var(--transition-interactive), color var(--transition-interactive), border-color var(--transition-interactive);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: var(--color-primary-ink); box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-secondary { background: var(--color-secondary); color: #fff; }
.btn-secondary:hover { background: var(--color-secondary-hover); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn .icon { width: 1.05em; height: 1.05em; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid var(--color-divider);
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background: color-mix(in oklab, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(14px);
  z-index: -1;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.brand svg { width: 34px; height: 34px; color: var(--color-primary); }
.brand-logo { height: 22px; width: auto; display: block; }
.footer-brand .brand-logo.footer-wordmark { height: 34px; }

/* Minimal top bar: logo left, translucent menu trigger right */
.nav-toggle {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.14);
  background: color-mix(in oklab, var(--color-surface) 55%, transparent);
  backdrop-filter: blur(10px);
  cursor: pointer; transition: background var(--transition-interactive), border-color var(--transition-interactive), transform var(--transition-interactive);
  flex-shrink: 0;
}
.nav-toggle:hover { background: color-mix(in oklab, var(--color-surface) 85%, transparent); border-color: rgba(255,255,255,0.28); }
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle span { width: 18px; height: 2px; background: var(--color-text); display: block; border-radius: 1px; transition: transform 220ms ease, opacity 220ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Backdrop behind the drawer */
.nav-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: color-mix(in oklab, var(--color-bg) 70%, transparent);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 280ms ease;
}
.nav-overlay.is-open { opacity: 1; }

/* Right-side sliding menu drawer */
.nav-drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 80;
  width: min(400px, 88vw); height: 100%;
  background: var(--color-bg);
  border-left: 1px solid var(--color-divider);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  padding: 1.4rem 1.6rem 2rem;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.nav-close {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-full);
  border: 1px solid var(--color-border); background: var(--color-surface);
  cursor: pointer; flex-shrink: 0;
}
.nav-close span { position: absolute; width: 16px; height: 2px; background: var(--color-text); border-radius: 1px; }
.nav-close span:first-child { transform: rotate(45deg); }
.nav-close span:last-child { transform: rotate(-45deg); }
.nav-drawer .nav-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; flex: 1; list-style: none; margin: 0; padding: 0; }
.nav-drawer .nav-menu a { display: block; width: 100%; padding: 1rem 0.1rem; font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--color-text-muted); border-bottom: 1px solid var(--color-divider); }
.nav-drawer .nav-menu a:hover, .nav-drawer .nav-menu a.is-active, .nav-drawer .nav-menu .current-menu-item > a, .nav-drawer .nav-menu .current_page_item > a { color: var(--color-text); }
.nav-drawer .nav-menu li { width: 100%; list-style: none; }
.nav-drawer-foot { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--color-divider); }
.nav-drawer-foot .btn { flex: 1; justify-content: center; }

@media (max-width: 480px) {
  .nav-drawer { width: 100vw; padding: 1.2rem 1.2rem 1.6rem; }
  .nav-drawer .nav-menu a { font-size: 1.3rem; }
}

.badge-tiktok-live { display: inline-flex; align-items: center; gap: 0.55rem; }
.badge-tiktok-live .tiktok-mark { display: inline-flex; align-items: center; background: #fff; padding: 3px 9px; border-radius: var(--radius-full); line-height: 0; }
.badge-tiktok-live .tiktok-mark img { height: 13px; width: auto; display: block; }

.founder-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; }
.founder-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.founder-card .founder-body { padding: 1.6rem 1.8rem 1.9rem; }
.founder-card h4 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.2rem; }
.founder-card .founder-role { color: var(--color-primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.7rem; }
.founder-card p { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.6; }

/* =========================================================================
   Page loader / transition overlay
   ========================================================================= */
.page-loader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: var(--color-bg); transition: opacity 0.35s ease, visibility 0.35s ease; opacity: 1; visibility: visible; }
.page-loader::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 25%, color-mix(in oklab, var(--color-primary) 20%, transparent), transparent 60%), radial-gradient(ellipse at 75% 75%, color-mix(in oklab, var(--color-secondary) 20%, transparent), transparent 60%); }
.page-loader img { position: relative; width: 120px; max-width: 32vw; animation: excaliburLoaderPulse 1.05s ease-in-out infinite; filter: drop-shadow(0 0 24px color-mix(in oklab, var(--color-primary) 55%, transparent)); }
.page-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes excaliburLoaderPulse { 0%, 100% { opacity: 0.5; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .page-loader img { animation: none; } }
.nav-menu { display: flex; align-items: center; gap: 1.7rem; flex-wrap: wrap; }
.nav-menu a { font-size: 0.92rem; font-weight: 600; color: var(--color-text-muted); position: relative; padding: 0.3rem 0; }
.nav-menu a:hover, .nav-menu a.is-active, .nav-menu .current-menu-item > a, .nav-menu .current_page_item > a { color: var(--color-text); }
.nav-menu a.is-active::after, .nav-menu .current-menu-item > a::after, .nav-menu .current_page_item > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--color-primary); border-radius: 1px; }
.header-actions { display: flex; align-items: center; gap: 0.8rem; }
.theme-toggle { width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid var(--color-border); display: grid; place-items: center; background: var(--color-surface); flex-shrink: 0; }
.theme-toggle svg { width: 18px; height: 18px; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; min-height: clamp(600px, 94vh, 980px); display: flex; align-items: center; overflow: hidden; padding-block: clamp(6rem, 13vw, 9rem) clamp(3rem, 6vw, 5rem); cursor: pointer; }
.hero.cursor-active { cursor: none; }
.hero-video-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,5,10,0.35) 0%, rgba(5,5,10,0.6) 45%, rgba(5,5,10,0.92) 100%),
    linear-gradient(90deg, rgba(5,5,10,0.8) 0%, rgba(5,5,10,0.35) 55%, rgba(5,5,10,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-content .badge { color: rgba(255,255,255,0.92); background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); backdrop-filter: blur(8px); }
.hero-content .badge-tiktok-live .tiktok-mark { background: #fff; }
.hero-content .text-hero { color: #ffffff; }
.hero-content .lede { color: rgba(255,255,255,0.85); }
.hero-content .btn-ghost { color: #ffffff; border-color: rgba(255,255,255,0.35); }
.hero-content .btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary-hover); }
.hero-content .hero-stat b { color: #ffffff; }
.hero-content .hero-stat span { color: rgba(255,255,255,0.72); }
.hero-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--color-border); color: var(--color-text-muted); background: var(--color-surface); }
.badge-live { color: var(--color-live); border-color: color-mix(in oklab, var(--color-live) 45%, var(--color-border)); }
.badge-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-live); box-shadow: 0 0 0 3px var(--color-live-highlight); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-actions a, .hero-actions button { position: relative; z-index: 3; }
.hero-stats { display: flex; gap: clamp(1.4rem, 3vw, 2.6rem); margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stat b { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); display: block; color: var(--color-primary); }
.hero-stat span { font-size: 0.82rem; color: var(--color-text-muted); }
.hero-visual-cursor { position: fixed; z-index: 5; top: 0; left: 0; transform: translate(-50%, -50%) scale(0.7); pointer-events: none; background: rgba(20, 220, 210, 0.95); color: #05050a; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; padding: 0.75rem 1.5rem; border-radius: var(--radius-full); opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; box-shadow: var(--shadow-lg); white-space: nowrap; }
.hero-visual-cursor.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hero-visual-cursor::after { content: '▶'; margin-left: 0.5rem; font-size: 0.7rem; }

/* Video lightbox — opens the hero footage full-screen with sound on click. */
.video-lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 2.5rem); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.video-lightbox.is-open { opacity: 1; visibility: visible; }
.video-lightbox-overlay { position: absolute; inset: 0; background: rgba(5, 5, 10, 0.92); backdrop-filter: blur(8px); }
.video-lightbox-inner { position: relative; z-index: 1; width: min(1100px, 100%); max-height: 88vh; }
.video-lightbox-inner video { width: 100%; max-height: 88vh; border-radius: var(--radius-lg); display: block; background: #000; box-shadow: var(--shadow-lg); }
.video-lightbox-close { position: absolute; top: -3.2rem; right: 0; width: 40px; height: 40px; border-radius: var(--radius-full); background: rgba(255,255,255,0.08); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.25); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.4rem; line-height: 1; transition: background var(--transition-interactive); }
.video-lightbox-close:hover { background: rgba(255,255,255,0.18); }
@media (max-width: 640px) {
  .video-lightbox-close { top: -2.8rem; right: 0; width: 36px; height: 36px; }
}

/* =========================================================================
   Section headers
   ========================================================================= */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); flex-wrap: wrap; }
.section-head .lede { margin-top: 0.6rem; }

/* =========================================================================
   Cards & grids
   ========================================================================= */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.8rem;
  transition: transform var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--color-primary) 40%, var(--color-border)); box-shadow: var(--shadow-md); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--color-primary-highlight); color: var(--color-primary); display: grid; place-items: center; margin-bottom: 1.2rem; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: 0.005em; margin-bottom: 0.6rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-weight: 700; font-size: 0.88rem; color: var(--color-primary); }
.card-link svg { width: 16px; height: 16px; transition: transform var(--transition-interactive); }
.card:hover .card-link svg { transform: translateX(3px); }

/* Streamer card */
.streamer-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 3/4; background: var(--color-surface); }
.streamer-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.streamer-card:hover img { transform: scale(1.06); }
.streamer-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(5,5,10,0.92)); }
.streamer-card .info { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 2; color: #fff; }
.streamer-card .info h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; }
.streamer-card .info .niche { font-size: 0.72rem; color: var(--color-primary-hover); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.streamer-card .views { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2; background: rgba(10,10,16,0.72); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: var(--radius-full); display: flex; align-items: center; gap: 0.3rem; }
.streamer-card .views svg { width: 12px; height: 12px; color: var(--color-primary); }

/* Case study card */
.case-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); }
.case-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.video-lesson-card { display: block; color: var(--color-text); }
.video-lesson-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--color-surface-offset); }
.video-lesson-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.video-lesson-card:hover .video-lesson-thumb img { transform: scale(1.05); }
.video-lesson-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(10,10,16,0.55); border: 1px solid rgba(255,255,255,0.35); color: #fff; display: grid; place-items: center; transition: transform var(--transition-interactive), background var(--transition-interactive); }
.video-lesson-play svg { width: 22px; height: 22px; }
.video-lesson-card:hover .video-lesson-play { transform: translate(-50%, -50%) scale(1.1); background: var(--color-primary); }
.video-lesson-duration { position: absolute; right: 0.7rem; bottom: 0.7rem; background: rgba(10,10,16,0.72); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: var(--radius-full); }
.case-card .body { padding: 1.6rem; }
.case-stats { display: flex; gap: 1.2rem; margin: 1rem 0; flex-wrap: wrap; }
.case-stat { background: var(--color-surface-offset); border-radius: var(--radius-md); padding: 0.6rem 0.9rem; }
.case-stat b { display: block; font-family: var(--font-display); font-weight: 900; color: var(--color-primary); font-size: 1.4rem; }
.case-stat span { font-size: 0.72rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* Testimonial card */
.testimonial-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.testimonial-quote-icon { color: var(--color-secondary); width: 28px; height: 28px; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.testimonial-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-author b { display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--color-text-muted); }
.stars { display: inline-flex; gap: 0.15rem; }
.stars svg { width: 14px; height: 14px; }
.star-on { color: var(--color-primary); }
.star-off { color: var(--color-border); }

/* Stat blocks */
.stat-block { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.8rem; position: relative; }
.stat-block .index { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 0.78rem; color: var(--color-text-faint); font-weight: 700; }
.stat-block b { display: block; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); color: var(--color-text); }
.stat-block span { color: var(--color-text-muted); font-size: 0.85rem; }

/* Checklist */
.checklist { display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--color-text-muted); }
.checklist svg { width: 20px; height: 20px; color: var(--color-primary); flex: none; margin-top: 0.1rem; }

/* Timeline / process steps */
.steps { display: grid; gap: 1.4rem; }
.step { display: flex; gap: 1.2rem; align-items: flex-start; }
.step-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-primary); width: 3rem; flex: none; }
.step h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; }
.step p { color: var(--color-text-muted); font-size: 0.92rem; }

/* =========================================================================
   Forms
   ========================================================================= */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.45rem; color: var(--color-text-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-md);
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--color-primary); }
.form-card { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(1.6rem, 3vw, 2.8rem); box-shadow: var(--shadow-md); }
.form-note { font-size: 0.8rem; color: var(--color-text-faint); margin-top: 0.9rem; }
.alert { padding: 0.9rem 1.2rem; border-radius: var(--radius-md); font-size: 0.9rem; margin-bottom: 1.4rem; }
.alert-success { background: color-mix(in oklab, var(--color-success) 18%, var(--color-surface)); border: 1px solid color-mix(in oklab, var(--color-success) 45%, var(--color-border)); color: var(--color-text); }
.alert-error { background: color-mix(in oklab, var(--color-error) 18%, var(--color-surface)); border: 1px solid color-mix(in oklab, var(--color-error) 45%, var(--color-border)); color: var(--color-text); }

.form-row { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-row label { font-size: 0.82rem; font-weight: 700; color: var(--color-text-muted); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.8rem 1rem; border-radius: var(--radius-md);
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); font-size: 0.95rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--color-primary); outline: none; }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-alert { padding: 0.9rem 1.2rem; border-radius: var(--radius-md); font-size: 0.9rem; margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.5rem; }
.form-alert svg { width: 18px; height: 18px; flex: none; color: var(--color-success); }
.form-alert-success { background: color-mix(in oklab, var(--color-success) 18%, var(--color-surface)); border: 1px solid color-mix(in oklab, var(--color-success) 45%, var(--color-border)); color: var(--color-text); }
.form-alert-error { background: color-mix(in oklab, var(--color-error) 18%, var(--color-surface)); border: 1px solid color-mix(in oklab, var(--color-error) 45%, var(--color-border)); color: var(--color-text); }
.form-alert-error svg { color: var(--color-error); }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band { border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--color-surface-offset), var(--color-surface)); border: 1px solid var(--color-border); padding: clamp(2rem, 5vw, 3.6rem); position: relative; overflow: hidden; text-align: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, color-mix(in oklab, var(--color-primary) 20%, transparent), transparent 55%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* =========================================================================
   Marquee (streamers ticker / logos)
   ========================================================================= */
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2.4rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.5rem; color: var(--color-text-faint); white-space: nowrap; display: flex; align-items: center; gap: 0.6rem; }
.marquee-item .dot { color: var(--color-primary); }

/* =========================================================================
   Table of numbers on About
   ========================================================================= */
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 1rem; }
.team-card .avatar { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-lg); margin-bottom: 1rem; background: var(--color-surface-offset); display: grid; place-items: center; color: var(--color-primary); }
.team-card .avatar svg { width: 38%; height: 38%; }
.team-card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.15rem; }
.team-card span { font-size: 0.82rem; color: var(--color-text-muted); }

/* =========================================================================
   Blog list
   ========================================================================= */
.post-card { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-meta { font-size: 0.78rem; color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.post-card h3 { font-size: 1.3rem; font-weight: 700; }
.post-card p { color: var(--color-text-muted); font-size: 0.9rem; }
.pagination { display: flex; gap: 0.6rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span { padding: 0.5rem 0.9rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); font-size: 0.85rem; }
.pagination .current { background: var(--color-primary); color: var(--color-primary-ink); border-color: var(--color-primary); }

.single-article { max-width: var(--content-narrow); margin-inline: auto; }
.single-article .entry-content > * + * { margin-top: 1.2rem; }
.single-article .entry-content h2 { font-size: 1.95rem; font-weight: 800; margin-top: 2rem; }
.single-article .entry-content h3 { font-size: 1.5rem; font-weight: 700; margin-top: 1.6rem; }
.single-article .entry-content ul, .single-article .entry-content ol { padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.single-article .entry-content blockquote { border-left: 3px solid var(--color-primary); padding-left: 1.2rem; color: var(--color-text-muted); font-style: italic; }
.single-article .entry-content img { border-radius: var(--radius-lg); margin-block: 1rem; }
.single-article .entry-content a { color: var(--color-primary); text-decoration: underline; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-divider); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 0.8rem; max-width: 30ch; }
.footer-col h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-faint); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { font-size: 0.92rem; color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-primary); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--color-border); display: grid; place-items: center; }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid var(--color-divider); margin-top: 2.6rem; padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--color-text-faint); }
.footer-bottom a { color: var(--color-text-faint); }
.footer-bottom a:hover { color: var(--color-primary); }

/* =========================================================================
   404 / empty states
   ========================================================================= */
.empty-state { text-align: center; padding-block: 4rem; color: var(--color-text-muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-divider); padding-block: 1.3rem; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-toggle { font-family: var(--font-display); font-size: 1.3rem; color: var(--color-primary); flex: none; transition: transform var(--transition-interactive); }
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-item p { color: var(--color-text-muted); margin-top: 0.8rem; max-width: 65ch; }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.flow > * + * { margin-top: 1rem; }

/* =========================================================================
   Review carousel — real chat screenshots on a horizontal rail
   ========================================================================= */
.review-carousel { position: relative; }

/* Rail bleeds to the viewport edges so cards slide in from off-screen. */
.review-rail {
  display: flex; gap: clamp(0.9rem, 1.6vw, 1.35rem);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  /* Bleed to the viewport edges, but keep the first card aligned with the
     container so the rail reads as part of the section. */
  padding: 0.5rem max(1.25rem, calc(50vw - min(100vw - 2.5rem, var(--content-wide)) / 2)) 1.4rem;
  margin-inline: calc(50% - 50vw); width: 100vw;
  align-items: flex-start;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.review-rail::-webkit-scrollbar { display: none; }
.review-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.review-rail.is-dragging * { pointer-events: none; }
.review-rail:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 6px; border-radius: var(--radius-lg); }

.review-shot,
.review-banner-slide {
  flex: 0 0 auto; scroll-snap-align: center; margin: 0; padding: 0;
  border: 1px solid var(--color-border); background: var(--color-surface);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.review-shot {
  position: relative; width: clamp(255px, 26vw, 320px); cursor: zoom-in; display: block;
}
/* The screenshot keeps its own proportions so no text is ever cut off
   sideways. Very long chats are capped and faded at the bottom — the full
   image opens in the lightbox. */
.review-shot-frame { display: block; max-height: clamp(360px, 44vh, 480px); overflow: hidden; }
.review-shot-frame img { display: block; width: 100%; height: auto; }
.review-shot::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 4rem; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--color-surface) 92%, transparent));
}
.review-shot:hover, .review-shot:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in oklab, var(--color-primary) 55%, var(--color-border));
  box-shadow: var(--shadow-lg); outline: none;
}
.review-shot-zoom {
  position: absolute; inset: auto 0 0 0; z-index: 1; padding: 0.9rem 1rem; text-align: center;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(5,5,10,0.88));
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.review-shot:hover .review-shot-zoom, .review-shot:focus-visible .review-shot-zoom { opacity: 1; transform: translateY(0); }

/* Closing banner slide — landscape, sized to match the rail height. */
.review-banner-slide {
  width: clamp(420px, 56vw, 720px); display: block; overflow: hidden;
  background: #05050a; border-color: color-mix(in oklab, var(--color-primary) 35%, var(--color-border));
}
.review-banner-slide img { display: block; width: 100%; height: auto; }

/* Arrow controls — sit just outside the container on wide screens. */
.review-arrow {
  position: absolute; top: clamp(170px, 20vh, 215px); z-index: 4;
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  color: var(--color-text); background: color-mix(in oklab, var(--color-surface) 88%, transparent);
  border: 1px solid var(--color-border); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.review-arrow:hover { border-color: var(--color-primary); transform: scale(1.06); }
.review-arrow[disabled] { opacity: 0; pointer-events: none; }
.review-arrow-prev { left: clamp(-1.4rem, -2vw, 0.4rem); }
.review-arrow-next { right: clamp(-1.4rem, -2vw, 0.4rem); }

/* Scroll progress indicator. */
.review-progress {
  height: 3px; border-radius: var(--radius-full); overflow: hidden;
  background: var(--color-border); max-width: 220px; margin-top: 0.4rem;
}
.review-progress span {
  display: block; height: 100%; width: 25%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: transform 0.15s ease, width 0.15s ease;
}
.review-hint { margin-top: 0.85rem; font-size: 0.82rem; color: var(--color-text-muted); }

/* Lightbox for the full-size screenshot. */
.review-lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem); opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.review-lightbox.is-open { opacity: 1; visibility: visible; }
.review-lightbox-overlay { position: absolute; inset: 0; background: rgba(3, 3, 8, 0.9); backdrop-filter: blur(6px); }
.review-lightbox-inner {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  max-width: min(560px, 100%); max-height: 100%;
}
.review-lightbox-inner img {
  display: block; max-width: 100%; max-height: calc(100vh - clamp(2rem, 8vw, 5rem));
  width: auto; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.review-lightbox-close {
  position: absolute; top: -3rem; right: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1; cursor: pointer;
  color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s ease;
}
.review-lightbox-close:hover { background: rgba(255,255,255,0.24); }
.review-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 2.8rem; height: 2.8rem;
  border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; line-height: 1; cursor: pointer;
  color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.2s ease;
}
.review-lightbox-nav:hover { background: rgba(255,255,255,0.24); }
.review-lightbox-prev { left: -3.6rem; }
.review-lightbox-next { right: -3.6rem; }
.review-lightbox-counter {
  position: absolute; bottom: -2.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.75); font-size: 0.82rem; letter-spacing: 0.06em;
}

@media (max-width: 1100px) {
  .review-arrow { display: none; }
}
@media (max-width: 560px) {
  .review-shot { width: min(78vw, 300px); }
  .review-banner-slide { width: min(88vw, 420px); }
  .review-lightbox-prev { left: 0.25rem; }
  .review-lightbox-next { right: 0.25rem; }
  .review-lightbox-close { top: 0.25rem; right: 0.25rem; background: rgba(5,5,10,0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .review-rail { scroll-behavior: auto; }
}
