/* Tianyu Xu — v3: Jobs-style minimal × graphite × yellow accent */

:root {
  /* === BRAND PALETTE — Apple-style graphite === */
  --bg: #000000;              /* true black — primary dark surface */
  --bg-2: #0A0A0A;            /* near-black — section alt */
  --bg-3: #1D1D1F;            /* Apple graphite — card surface */
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);

  --fg: #FBFBFA;              /* off-white — primary text on dark */
  --fg-soft: #E5E8EB;
  --fg-mute: #94A3B8;
  --fg-dim: #64748B;
  --fg-faint: #334155;

  --accent: #FFCD00;          /* signature brand yellow */
  --accent-deep: #F2B900;     /* deeper yellow for hover */
  --accent-soft: #FFE066;     /* lighter yellow for subtle fills */
  --accent-glow: rgba(255,205,0,0.30);

  --accent-2: #829CBF;        /* cat-eye blue — secondary accent */
  --accent-2-deep: #5E7FA8;
  --navy: #1D3D5D;            /* deep navy for small accents */

  /* light surfaces (for occasional use) */
  --light-bg: #FBFBFA;
  --light-fg: #000000;

  --line: rgba(255,255,255,0.06);
  --line-mid: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.16);

  --radius: 14px;
  --radius-lg: 28px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --max-w: 1320px;
  --gutter: 40px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg-soft);
  font-feature-settings: 'cv11','ss01','ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

.mono { font-family: var(--font-mono); }
.serif { font-family: var(--font-serif); }
.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

::selection { background: rgba(255,205,0,0.35); color: #000000; }

/* layout */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 700px) { :root { --gutter: 20px; } }

.section { position: relative; padding: 112px 0; overflow: hidden; }
.section--xl { padding: 144px 0; }
.section--border-y { border-block: 1px solid var(--line); }

/* eyebrow — quiet, editorial */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--fg-mute);
  font-weight: 500;
  margin-bottom: 18px;
}
.eyebrow__hash { color: var(--accent); font-weight: 600; }

/* hero-title — Apple-tight */
.h-title {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}

/* section title sizes */
.h-display { font-size: clamp(56px, 8.6vw, 120px); }
.h-1       { font-size: clamp(44px, 5.6vw, 80px); }
.h-2       { font-size: clamp(32px, 3.6vw, 52px); }

/* buttons — Apple-clean: sentence case, no glow, refined */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--fg);
  color: #000000;
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn--accent {
  background: var(--accent);
  color: #000000;
}
.btn--accent:hover {
  background: #FFE066;
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: #000000;
}
.btn--ghost {
  background: rgba(255,255,255,0.06);
  color: var(--fg);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
}
.btn--link {
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--accent);
  border-bottom: none;
}
.btn--link:hover { color: #FFE066; }

/* pill (with pulse) */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgba(255,205,0,0.30);
  background: rgba(255,205,0,0.08);
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,205,0,0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,205,0,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(255,205,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,205,0,0); }
}

/* glass card */
.glass {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.glass:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,205,0,0.32);
}
.glass--lg { border-radius: 36px; }

/* image placeholder — looks intentional */
.ph {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,205,0,0.10), rgba(130,156,191,0.06)),
    radial-gradient(circle at 30% 30%, rgba(255,205,0,0.18), transparent 60%),
    #1D1D1F;
  border: 1px dashed rgba(255,205,0,0.30);
  border-radius: 24px;
  color: var(--fg-mute);
}
.ph__corner {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(10,10,12,0.85);
  border: 1px solid rgba(255,205,0,0.25);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  z-index: 2;
}
.ph__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}
.ph__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  z-index: 2;
  text-align: center;
  padding: 24px;
}
.ph__center-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.ph__center-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

/* portrait — grayscale to color hover */
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .8s ease;
}
.portrait:hover img { filter: grayscale(0) contrast(1); }

/* input */
.input {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-mid);
  border-radius: 14px;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,205,0,0.04);
}
.input::placeholder { color: var(--fg-faint); }
textarea.input { resize: vertical; min-height: 120px; font-family: inherit; }

.label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--fg-mute);
  margin-bottom: 10px;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  background: rgba(0,0,0,0.72);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 18px;
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.nav__role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}
.nav__links {
  display: flex; gap: 2px; padding: 5px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.nav__links a {
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--fg-mute);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--fg); background: rgba(255,255,255,0.05); }
@media (max-width: 980px) { .nav__links a { padding: 7px 9px; font-size: 11.5px; letter-spacing: -0.01em; } }

/* footer */
.footer { padding: 80px 0 36px; border-top: 1px solid var(--line); }

/* =====================================================
   RESPONSIVE — comprehensive breakpoints
   ===================================================== */

/* Large desktop (default everything as-is) */

/* Mid desktop / large tablet */
@media (max-width: 1180px) {
  :root { --gutter: 32px; --max-w: 1100px; }
  .section { padding: 96px 0; }
  .section--xl { padding: 120px 0; }
}

/* Tablet */
@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .section { padding: 80px 0; }
  .section--xl { padding: 96px 0; }
  .h-display { font-size: clamp(48px, 9vw, 88px); }
  .h-1       { font-size: clamp(36px, 6.4vw, 60px); }
  .h-2       { font-size: clamp(28px, 5vw, 44px); }
}

/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  /* Tighter section rhythm on mobile — same content, less empty scroll */
  .section { padding: 48px 0; }
  .section--xl { padding: 56px 0; }
  .h-display { font-size: clamp(38px, 11vw, 64px); }
  .h-1       { font-size: clamp(28px, 9vw, 48px); }
  .h-2       { font-size: clamp(24px, 7vw, 36px); }
  .glass { border-radius: 24px; }
  .glass--lg { border-radius: 26px; padding: 24px !important; }
  .btn { padding: 13px 22px; font-size: 13px; }
  .eyebrow { font-size: 10px; margin-bottom: 14px; }
  .footer { padding: 44px 0 24px; }
  /* Hero: cap height + reduce internal padding so it feels right on phones */
  .hero-full { min-height: 78vh; max-height: none; }
  /* Tighten section heads and stat row */
  .section-head { margin-bottom: 24px !important; }
  .stat-row { gap: 18px; }
  /* Tighten overly generous inline section intros */
  .h-quote { margin-bottom: 28px !important; }
}
@media (max-width: 400px) {
  /* Extra-tight rhythm on tiny phones */
  .section { padding: 40px 0; }
  .section--xl { padding: 48px 0; }
}

/* prevent any element from forcing horizontal overflow */
.wrap { width: 100%; }

/* =====================================================
   V3 ADDITIONS — page-scaffold patterns
   ===================================================== */

/* full-viewport hero (home) */
.hero-full {
  position: relative;
  /* cap with a CSS-pixel max so the hero scales with browser zoom (Cmd-/+);
     100vh alone is anchored to the visible viewport and never shrinks on zoom-out. */
  min-height: min(100vh, 1080px);
  max-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-full__media {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,205,0,0.10), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(130,156,191,0.08), transparent 55%),
    #000;
}
.hero-full__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    /* left-side wash so text area is darker than the rest of the frame */
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.30) 45%, rgba(0,0,0,0.10) 100%),
    /* top-down dim with deep floor */
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.95) 100%);
  z-index: 1;
}
.hero-full__media iframe,
.hero-full__media video {
  position: absolute; top: 50%; left: 50%;
  /* size iframe to cover the viewport at 16:9, no letterboxing */
  width: max(100%, 177.78vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  object-fit: cover;
  border: 0;
  pointer-events: none;
}

/* editorial light section ("story" / villain) */
.section--light {
  background: #FBFBFA;
  color: #0a0a0a;
}
.section--light .h-title,
.section--light h2,
.section--light h3 { color: #0a0a0a; }
.section--light .eyebrow { color: #6b7280; }
.section--light .italic-serif { color: #0a0a0a; }
.section--light .h-quote em,
.section--light .h-quote i { color: #0a0a0a; }

/* big editorial quote text */
.h-quote {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-size: clamp(36px, 5.4vw, 76px);
  text-wrap: balance;
  margin: 0;
}
.h-quote em, .h-quote i {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}

/* pillar columns */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; gap: 20px; } }
.pillar { padding: 36px 32px; min-height: 320px; display: flex; flex-direction: column; gap: 20px; }
.pillar__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
}
.pillar__title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
  line-height: 1.1;
}
.pillar__body {
  color: var(--fg-mute);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

/* video tile (hover-to-play feel via placeholder) */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .tile-grid { grid-template-columns: 1fr; } }
.tile-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .tile-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tile-grid--3 { grid-template-columns: 1fr; } }

.video-tile {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #1d1d1f, #0a0a0a);
  aspect-ratio: 16/9;
  transition: transform .25s ease, border-color .25s ease;
}
.video-tile:hover { transform: translateY(-2px); border-color: rgba(255,205,0,0.35); }

/* Embed variant — iframe fills the tile, badges stay as non-blocking overlays */
.video-tile--embed { cursor: default; }
.video-tile--embed:hover { transform: none; border-color: var(--line); }
.video-tile__iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  z-index: 1;
}
.video-tile--embed .video-tile__tag {
  pointer-events: none;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
}
.video-tile__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: 2;
}
.video-tile__play svg {
  width: 56px; height: 56px;
  fill: rgba(255,255,255,0.92);
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.45));
  transition: transform .2s ease;
}
.video-tile:hover .video-tile__play svg { transform: scale(1.08); }
.video-tile__meta {
  position: absolute; left: 18px; bottom: 16px; right: 18px;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.video-tile__title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
}
.video-tile__year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}
.video-tile__tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,205,0,0.3);
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
}

/* stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1100px) { .stat-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stat-row { grid-template-columns: 1fr; } }
.stat__num {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: var(--fg);
  margin-bottom: 8px;
}
.stat__num em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  text-transform: uppercase;
}

/* about row */
.about-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .about-row { grid-template-columns: 1fr; gap: 32px; } }

/* engagement format cards */
.format-card {
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: block;
}
.format-card__body { padding: 40px 44px; }
@media (max-width: 600px) { .format-card__body { padding: 28px 24px; } }
.format-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.format-card__title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--fg);
}
.format-card__body p {
  color: var(--fg-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.format-card__body strong { color: var(--fg); font-weight: 600; }
.format-card__body ul, .format-card__body ol { color: var(--fg-mute); line-height: 1.6; padding-left: 22px; margin: 0 0 14px; }
.format-card__body li { margin-bottom: 8px; }

/* prose */
.prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 720px;
}
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose em.accent { font-style: italic; color: var(--accent); font-family: var(--font-serif); font-weight: 700; }

/* form */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }
.form__full { grid-column: 1 / -1; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ffcd00' d='M0 0h12L6 8z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* tag pill */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255,205,0,0.08);
  border: 1px solid rgba(255,205,0,0.30);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-transform: uppercase;
}
.tag--neutral {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-mid);
  color: var(--fg-mute);
}

/* small chip row */
.chip-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* footer columns */
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 20px; } }
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 16px;
}
.foot-col a {
  display: block;
  color: var(--fg-soft);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 4px 0;
  transition: color .15s;
}
.foot-col a:hover { color: var(--accent); }

/* page hero */
.page-hero {
  padding: 140px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-hero__title {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  font-size: clamp(48px, 7vw, 96px);
  margin: 0 0 24px;
  text-wrap: balance;
}
.page-hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}
.page-hero__sub {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--fg-mute);
  max-width: 720px;
  margin: 0;
  text-wrap: pretty;
}
@media (max-width: 700px) { .page-hero { padding: 100px 0 48px; } }

/* number / detail list (specs) */
.specs {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 14px;
}
.specs li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-soft);
}
.specs li strong {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  padding-top: 2px;
}
@media (max-width: 600px) { .specs li { grid-template-columns: 1fr; gap: 6px; } }

/* lite link group (no card chrome) */
.link-stack {
  display: grid; gap: 10px;
}
.link-stack a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-soft);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.link-stack a:hover { color: var(--accent); }
.link-stack a span:last-child { color: var(--fg-mute); font-size: 12px; }

/* nav active state */
.nav__links a.is-active {
  color: var(--fg);
  background: rgba(255,205,0,0.10);
}

/* Nav: keep links visible on more screens — tighten spacing instead of hiding */
@media (max-width: 1180px) {
  .nav__links a { padding: 8px 11px; font-size: 12px; }
  .nav__links { gap: 0; padding: 4px; }
}
@media (max-width: 980px) {
  .nav__links a { padding: 7px 9px; font-size: 11.5px; letter-spacing: -0.01em; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* Sections targeted by nav anchors offset by sticky header height */
section[data-scroll-anchor] { scroll-margin-top: 72px; }

/* =====================================================
   BENTO GRID — for content + offerings sections
   ===================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
}

/* Masterclass row variant: 16:9 poster left, narrower stacked cells right. */
.bento--masterclass {
  display: flex;
  align-items: stretch;
  grid-auto-rows: auto;
  grid-template-columns: none;
}
.bento--masterclass > .bento-cell--thumb {
  flex: 0 0 auto;
  width: calc(66% - 8px);
  aspect-ratio: 16 / 9;
  grid-column: auto;
  grid-row: auto;
}
.bento--masterclass > .bento-cell--thumb img.bento-cell__thumb-img {
  object-fit: cover;
}
.bento--masterclass__side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bento--masterclass__side > .bento-cell {
  flex: 1 1 0;
  grid-column: auto;
  grid-row: auto;
  padding: 28px;
}
@media (max-width: 1100px) {
  .bento--masterclass > .bento-cell--thumb { width: calc(62% - 8px); }
}
@media (max-width: 820px) {
  .bento--masterclass { flex-direction: column; }
  .bento--masterclass > .bento-cell--thumb { width: 100%; }
  .bento--masterclass__side { flex-direction: row; }
  .bento--masterclass__side > .bento-cell { min-height: 200px; }
}
@media (max-width: 560px) {
  .bento--masterclass__side { flex-direction: column; }
}

.bento-cell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
  text-decoration: none;
  color: inherit;
}
.bento-cell:hover {
  border-color: rgba(255,205,0,0.32);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

/* bento internals */
.bento-cell__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}
.bento-cell__title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--fg);
  margin: 0;
}

.bento-cell__body {
  color: var(--fg-mute);
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 0;
}
.bento-cell__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.bento-cell__year {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}
.bento-cell__arrow {
  font-size: 18px;
  color: var(--fg-mute);
  transition: color .2s, transform .2s;
}
.bento-cell:hover .bento-cell__arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* mini trust strip — under hero */
.trust-line {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(0,0,0,0.4);
}
.trust-line__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  text-transform: uppercase;
  font-weight: 600;
}
.trust-line__inner b { color: var(--accent); font-weight: 700; }
.trust-line__years--short { display: none; }      /* short years only show on mobile */
.trust-line__sep { color: var(--line-strong); }

/* trainings primary section — special framing */
.primary-offer {
  position: relative;
  isolation: isolate;
}

/* ───── book cover images (link wrapper) ───── */
.book-cover-img {
  display: block;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.book-cover-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.book-cover-img:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6);
}

/* inline mini-CTA wedge in trainings.
   Solid color (no gradient) — eliminates all GPU compositor flicker. */
.cta-wedge {
  background: #1a1508;
  border: 1px solid #473b08;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-wedge h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2.2vw, 30px);
  margin: 0;
  color: var(--fg);
  line-height: 1.15;
  max-width: 680px;
}

/* inquire form section */
.inquire-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 700px) { .inquire-form { grid-template-columns: 1fr; } }
.inquire-form__full { grid-column: 1 / -1; }

/* ===== Responsive grid utilities (for inline-style overrides) ===== */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .method-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px)  { .method-grid { grid-template-columns: 1fr; } }

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; gap: 32px; } }

/* Trainings full-width image strip (visual rest before content density) */
.trainings-strip {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 6;
}
@media (max-width: 700px) { .trainings-strip { aspect-ratio: 4 / 3; } }

/* Section header — left text block + right link, responsive */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}
.section-head__text { max-width: 720px; flex: 1 1 480px; }
.section-head__aside { flex: 0 0 auto; }
@media (max-width: 700px) {
  .section-head { margin-bottom: 32px; }
  .section-head__aside { width: 100%; }
}

/* Final mobile polish */
@media (max-width: 540px) {
  .hero-full { min-height: auto; max-height: none; }
  .hero-full .wrap { padding-block: 96px 56px !important; }
  .nav__inner { padding-block: 14px; gap: 12px; }
  .nav__brand .nav__role { display: none; }
  .nav .btn { padding: 10px 14px !important; font-size: 12px !important; }
  .section, .section--xl { padding: 56px 0; }
  .trust-line__inner {
    font-size: 10px;
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;       /* left-align each badge */
    justify-content: flex-start;
  }
  .trust-line__sep { display: none; }         /* hide dots; stacked layout doesn't need them */
  .trust-line__years--long { display: none; }
  .trust-line__years--short { display: inline; }
  .pillar { padding: 28px 22px; min-height: auto; }
  .cta-wedge { padding: 24px; }
  .cta-wedge h3 { font-size: 22px; }
}


/* grid min-width:0 fix — lets grid columns shrink below their content's min-content */
.foot-grid > * { min-width: 0; }
.h-title, h1, h2, h3 { overflow-wrap: break-word; }


/* =====================================================
   FLEX BENTO — adaptive grid driven by --span and --ratio.
   Title + tag live as a persistent overlay INSIDE each tile
   (top-left). The overlay fades on hover and is fully hidden
   while a video is actively playing (.is-playing).
   ===================================================== */
.bento-flex {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  grid-auto-flow: dense;
  align-items: start;
}

/* Row-based variant: each .bento-row sets its own column ratios via --cols. */
.bento-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bento-row {
  display: grid;
  gap: 14px;
  grid-template-columns: var(--cols, 1fr 1fr);
  align-items: stretch;
}
/* Tiles inside .bento-row sit in the row's own grid template — they should
   NOT inherit the 12-col span behaviour from .bento-flex. */
.bento-row > .bento-flex__tile { grid-column: auto; }
.bento-flex__tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  grid-column: span var(--span, 6);
  aspect-ratio: var(--ratio, 16/9);
  transition: border-color .25s ease;
  display: block;
  min-width: 0;
}

/* tablet — collapse 12-col → 6-col */
@media (max-width: 1000px) {
  .bento-flex { grid-template-columns: repeat(6, 1fr); }
  .bento-flex__tile { grid-column: span var(--span-md, 6); }
}
/* mobile — single column (bento-flex grid fallback) */
@media (max-width: 560px) {
  .bento-flex { grid-template-columns: 1fr; gap: 12px; }
  .bento-flex__tile { grid-column: span 1 !important; }
}

/* =====================================================
   MOBILE VIDEO CAROUSEL — horizontal swipe
   Converts vertical .bento-rows stacks into swipeable
   carousels with scroll-snap. Desktop is untouched.
   ===================================================== */

/* dots hidden by default (desktop) */
.bento-carousel-dots { display: none; }

@media (max-width: 560px) {
  /* Horizontal scroll container */
  .bento-rows {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: var(--gutter);
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    /* Bleed to screen edges for immersive peek effect */
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    padding-bottom: 4px;
    /* Hide native scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .bento-rows::-webkit-scrollbar { display: none; }

  /* Flatten .bento-row so tiles become direct flex items */
  .bento-rows > .bento-row {
    display: contents;
  }

  /* Each tile = swipeable card */
  .bento-rows .bento-flex__tile {
    flex: 0 0 80vw;
    min-width: 80vw;
    max-height: 56vh;
    scroll-snap-align: start;
    border-radius: 14px;
  }

  /* Carousel dot indicators */
  .bento-carousel-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0 0;
  }
  .bento-carousel-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--fg-faint);
    border: 0; padding: 0;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
  }
  .bento-carousel-dot.is-active {
    background: var(--accent);
    transform: scale(1.5);
  }
}

/* embedded iframe fills the tile */
.bento-flex__iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; z-index: 1;
}

/* persistent overlay label — editorial top-down "film credit" treatment.
   Full-width dark gradient at the top of the tile + text aligned top-left.
   pointer-events: none so the iframe still receives all clicks. */
.bento-flex__label {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  pointer-events: none;
  padding: 22px 24px 56px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.38) 55%, rgba(0,0,0,0) 100%);
  transition: opacity .3s ease, transform .3s ease;
}
.bento-flex__label-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.bento-flex__label-tag::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-2px);
}
.bento-flex__label-title {
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

/* fade label out on hover (preview) and when the video is actively playing */
.bento-flex__tile:hover .bento-flex__label,
.bento-flex__tile.is-playing .bento-flex__label {
  opacity: 0;
  transform: translateY(-4px);
}

/* Custom center play button — shows when video has not yet been activated.
   Hides Vimeo's own controls (controls=0 in iframe src). On click, the tile
   swaps the iframe src to enable native Vimeo controls + autoplay. */
.bento-flex__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  z-index: 3;
  transition: opacity .25s ease, background .25s ease;
}
.bento-flex__play::before {
  content: '';
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    rgba(0, 0, 0, 0.55)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'><path d='M8 5v14l11-7z'/></svg>")
    center / 32px no-repeat;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform .25s ease, background .25s ease;
}
.bento-flex__tile:hover .bento-flex__play::before {
  transform: scale(1.08);
  background-color: rgba(255, 205, 0, 0.92);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'><path d='M8 5v14l11-7z'/></svg>");
  border-color: transparent;
}
.bento-flex__tile.is-activated .bento-flex__play {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 560px) {
  .bento-flex__play::before { width: 56px; height: 56px; background-size: 24px; }
}

/* sub-section header inside the content bento */
.content-subhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 56px 0 24px;
  flex-wrap: wrap;
}
.content-subhead:first-of-type { margin-top: 16px; }
.content-subhead__text { max-width: 720px; }
.content-subhead h3 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
  color: var(--fg);
}
.content-subhead p {
  color: var(--fg-mute);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}


/* =====================================================
   PAINT ISOLATION — prevent autoplaying iframes from
   inducing compositor flicker on nearby gradient boxes.
   ===================================================== */
.bento-flex__tile--embed,
.video-tile--embed,
.hero-full__media {
  isolation: isolate;
  contain: paint;
}
/* Note: do NOT set transform here — the hero iframe relies on
   transform: translate(-50%, -50%) for centering, and a translateZ()
   would clobber it. isolation + contain: paint are enough. */

/* the .glass blur is expensive; isolate so it doesn't constantly recomposite */
.glass {
  isolation: isolate;
}


/* bento cell — thumbnail variant.
   Uses an <img> child (more reliable than a background-image; immune to the
   .bento-cell:hover background swap). Img fills the cell; a top+bottom gradient
   keeps the corner tag and bottom CTA legible. */
.bento-cell--thumb {
  background: #0a0a0a !important;
  position: relative;
  padding: 0 !important;
  border-color: rgba(255,205,0,0.25);
  overflow: hidden;
}
.bento-cell--thumb:hover { background: #0a0a0a !important; border-color: rgba(255,205,0,0.55); transform: translateY(-2px); }
.bento-cell__thumb-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}
.bento-cell--thumb::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

.bento-cell__thumb-meta {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.bento-cell__thumb-meta .bento-cell__tag {
  background: rgba(0,0,0,0.55);
  padding: 6px 12px;
  border-radius: 999px;
  align-self: flex-start;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@media (max-width: 900px) {
  .mc-bento { grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* =====================================================
   TESTIMONIAL RAIL — horizontal swipe carousel.
   Shows 6 cards per "page" by default; scroll-snap on x.
   Cards size against the rail container so 6 fit perfectly.
   ===================================================== */
.testimonial-rail-wrap {
  position: relative;
  margin-top: 28px;
}
.testimonial-rail {
  --rail-gap: 16px;
  --rail-cols: 6;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--rail-cols) - 1) * var(--rail-gap)) / var(--rail-cols));
  gap: var(--rail-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* breathing room so focus rings + hover shadows don't clip */
  padding: 4px 4px 12px;
  margin: -4px -4px 0;
}
.testimonial-rail::-webkit-scrollbar { display: none; }

.testimonial-card {
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.testimonial-card:hover {
  border-color: rgba(255,205,0,0.32);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.testimonial-card__mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 44px;
  line-height: 0.3;
  color: var(--accent);
  margin-top: 6px;
  margin-bottom: 2px;
  height: 18px;
}
.testimonial-card__quote {
  color: var(--fg-soft);
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin: 0;
  flex: 1;
  text-wrap: pretty;
}
.testimonial-card__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.testimonial-card__person {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.testimonial-card__person span {
  color: var(--fg-mute);
  font-weight: 500;
}
.testimonial-card__org {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  line-height: 1.55;
}
.testimonial-card__org b {
  color: var(--accent);
  font-weight: 700;
}
.testimonial-card--anon .testimonial-card__org {
  font-size: 10px;
}

/* Controls row */
.rail-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}
.rail-progress {
  flex: 1;
  height: 2px;
  background: var(--line-mid);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.rail-progress__bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--accent);
  border-radius: 2px;
  width: 40%;
  transition: width .25s ease, transform .25s ease;
}
.rail-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--fg-mute);
  text-transform: uppercase;
  font-weight: 600;
  min-width: 64px;
  text-align: right;
}
.rail-count b {
  color: var(--fg);
  font-weight: 700;
}
.rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-mid);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  -webkit-appearance: none;
  padding: 0;
}
.rail-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.rail-btn:active:not(:disabled) { transform: scale(0.94); }
.rail-btn:disabled { opacity: 0.32; cursor: default; }
.rail-btn svg { width: 16px; height: 16px; }

/* Responsive: drop visible columns as viewport shrinks */
@media (max-width: 1180px) {
  .testimonial-rail { --rail-cols: 5; }
}
@media (max-width: 1024px) {
  .testimonial-rail { --rail-cols: 4; }
}
@media (max-width: 820px) {
  .testimonial-rail { --rail-cols: 3; }
}
@media (max-width: 640px) {
  .testimonial-rail {
    --rail-gap: 14px;
    grid-auto-columns: 78%;
  }
  .testimonial-card { min-height: 280px; }
  .rail-controls { gap: 14px; }
  .rail-count { display: none; }
}
