/* ============================================================
   STEFAN — funnel videos
   Dark cinematic design system, electric blue / violet edition.
   Palette: midnight ink / deep charcoal-blue / ice / electric
   blue → violet gradient accents / rec red (record light only)
   Type: Fraunces (display) · Archivo (body)
   ============================================================ */

:root {
  --ink: #07080f;
  --char: #10131e;
  --char-2: #171b2b;
  --ice: #e9edf8;
  --ice-dim: #b6bdd4;
  --slate: #8b93ab;
  --accent: #6d8cff;
  --accent-2: #8b5cf6;
  /* gradient ends chosen so white text keeps ≥4.5:1 contrast (WCAG AA) */
  --grad: linear-gradient(135deg, #3a63e8, #7443e0);
  --accent-soft: rgba(109, 140, 255, 0.14);
  --rec: #ff4d5a;
  --line: rgba(233, 237, 248, 0.1);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;

  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.3s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video,
canvas {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: #3a63e8;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- film grain ---------- */

.grain {
  position: fixed;
  inset: -100%;
  width: 300%;
  height: 300%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

/* ---------- layout helpers ---------- */

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

section {
  padding-block: var(--space-6);
  position: relative;
}

/* Scene marker: eyebrow that encodes film structure */
.scene {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.scene::after {
  content: "";
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* centered variant: mirrored rule lines keep the text truly centered */
.scene-center {
  justify-content: center;
}

.scene-center::before {
  content: "";
  height: 1px;
  width: 64px;
  background: linear-gradient(270deg, var(--accent), transparent);
}

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: var(--space-4);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* 1fr auto 1fr keeps the switch truly centered regardless of the
     monogram/CTA widths on either side */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  transition: background var(--dur), backdrop-filter var(--dur);
}

.nav .monogram {
  justify-self: start;
}

.nav .btn {
  justify-self: end;
}

.nav.scrolled {
  background: rgba(7, 8, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.monogram {
  display: flex;
  align-items: center;
  transition: opacity var(--dur), transform var(--dur) var(--ease-out);
}

.monogram .nav-logo {
  height: 24px;
  width: auto;
  /* black source wordmark → uniform ice-white on the dark nav */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.monogram:hover {
  transform: translateY(-1px);
  opacity: 0.85;
}

/* ---------- the A/B bus switch (signature) ---------- */

.bus-switch {
  position: relative;
  /* equal 1fr columns keep both buttons the same width (sized by the
     wider label), so the 50%-wide thumb lines up on both sides */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: var(--char);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.bus-switch .thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 5px);
  background: linear-gradient(180deg, var(--char-2), #0d101a);
  border: 1px solid rgba(109, 140, 255, 0.4);
  border-radius: 999px;
  transition: transform 0.35s var(--ease-out);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 18px rgba(109, 140, 255, 0.14);
}

.bus-switch[data-view="work"] .thumb {
  transform: translateX(calc(100% + 2px));
}

.bus-switch button {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  padding: 0.45rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  transition: color var(--dur);
  border-radius: 999px;
  min-height: 40px;
}

.bus-switch button[aria-selected="true"] {
  color: var(--accent);
}

.bus-switch button .led {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 0.45rem;
  vertical-align: 2px;
  opacity: 0.4;
  transition: opacity var(--dur), box-shadow var(--dur);
}

.bus-switch button[aria-selected="true"] .led {
  opacity: 1;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), background var(--dur), color var(--dur), border-color var(--dur);
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(79, 124, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 34px rgba(109, 92, 246, 0.45);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ice);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav .btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.82rem;
}

.btn-label-short {
  display: none;
}

/* ---------- views & the crossfade transition ---------- */

.view {
  display: none;
  opacity: 1;
  transform: none;
  transition: opacity 0.42s var(--ease-out), transform 0.42s var(--ease-out);
}

.view.active {
  display: block;
}

.view.leaving {
  opacity: 0;
  transform: translateY(-14px);
  transition-duration: 0.2s;
}

.view.arriving {
  opacity: 0;
  transform: translateY(18px);
  transition: none;
}

/* ---------- hero ---------- */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  /* bottom padding reserves room for the pinned logo band, so the
     centered content balances in the space above it */
  padding-block: 0 8.5rem;
  overflow: hidden;
}

/* on very short viewports the strip would crowd the CTAs — drop it */
@media (max-height: 620px) {
  .hero-logos {
    display: none;
  }
  .hero {
    padding-bottom: 0;
  }
}

/* reduced motion wraps the marquee into rows; on narrow screens that
   would collide with the hero CTAs — hide the strip there instead */
@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .hero-logos {
    display: none;
  }
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* static fallback: layered gradients + generated still (if present) */
  background:
    radial-gradient(ellipse 70% 55% at 18% 8%, rgba(79, 124, 255, 0.22), transparent 62%),
    radial-gradient(ellipse 55% 45% at 85% 95%, rgba(139, 92, 246, 0.16), transparent 65%),
    var(--ink);
}

.hero-media .hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.8s var(--ease-out);
}

/* while the live canvas light is running, the baked-in still steps back
   so the cursor-steered beam reads as THE light source */
.hero-media.live .hero-still {
  opacity: 0.32;
}

.hero-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* above the scrim — the live light must not be dimmed */
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1; /* darkens only the static still, for text legibility */
  background:
    linear-gradient(180deg, rgba(7, 8, 15, 0.45) 0%, rgba(7, 8, 15, 0.1) 35%, rgba(7, 8, 15, 0.72) 100%),
    radial-gradient(ellipse at 30% 60%, rgba(7, 8, 15, 0.35), transparent 65%);
}

.hero-content {
  padding-top: 5.5rem;
  padding-bottom: var(--space-4);
}

/* ---------- hero showcase: floating ad cards + result chips ---------- */

.hero-showcase {
  display: none; /* desktop-only — shown at ≥1024px below */
  position: relative;
  perspective: 1200px;
  z-index: 3; /* above the hero canvas (2) */
  min-height: 480px;
}

/* wrapper: placement + entrance; JS parallax writes the independent
   `translate` property, which composes with the transform used here */
.sc-item {
  position: absolute;
  will-change: translate;
  opacity: 0;
  /* entrance: released by .in (added by JS after the headline lands) */
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.sc-item.in {
  opacity: 1;
  transform: none;
}

.sc-item[data-depth="1"] {
  width: min(250px, 19vw);
  right: 6%;
  top: 4%;
  z-index: 3;
}

.sc-item[data-depth="2"] {
  width: min(190px, 14.5vw);
  right: 46%;
  top: 20%;
  z-index: 2;
}

.sc-item[data-depth="3"] {
  width: min(150px, 11.5vw);
  right: 76%;
  top: 46%;
  z-index: 1;
}

/* the card itself: static 3D tilt, visual chrome */
.sc-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(109, 140, 255, 0.14), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(139, 92, 246, 0.1), transparent 55%),
    linear-gradient(160deg, var(--char-2), var(--char) 70%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(79, 124, 255, 0.08);
}

.sc-item[data-depth="1"] .sc-card {
  transform: rotateY(-14deg) rotateX(4deg);
}

.sc-item[data-depth="2"] .sc-card {
  transform: rotateY(10deg) rotateX(-2deg);
  filter: brightness(0.82);
}

.sc-item[data-depth="3"] .sc-card {
  transform: rotateY(16deg) rotateX(-4deg);
  filter: brightness(0.62);
}

.sc-card .sc-media,
.sc-card img,
.sc-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc-card .sc-label {
  position: absolute;
  left: 10px;
  bottom: 14px;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  background: rgba(7, 8, 15, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

/* the little "ad progress" strip that sells the ad-unit look */
.sc-card .sc-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: rgba(233, 237, 248, 0.18);
  z-index: 2;
  overflow: hidden;
}

.sc-card .sc-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  transform-origin: left;
  background: var(--grad);
  animation: sc-progress 7s linear infinite;
}

@keyframes sc-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.sc-card .sc-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(233, 237, 248, 0.07) 45%, transparent 60%);
}

/* chip: placement + entrance + JS parallax (via `translate`);
   the bob animation lives on the inner span so nothing conflicts */
.sc-chip {
  position: absolute;
  z-index: 4;
  will-change: translate;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}

.sc-chip.in {
  opacity: 1;
}

.sc-chip .sc-bob {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ice);
  background: rgba(16, 19, 30, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(109, 140, 255, 0.35);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45), 0 0 18px rgba(79, 124, 255, 0.18);
  white-space: nowrap;
  animation: chip-bob 5.2s ease-in-out infinite;
}

.sc-chip .sc-bob img {
  display: block;
  height: calc(26px * var(--ls, 1));
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* logo-chips preview variant: no category labels on the cards */
.hero-showcase.chips-logos .sc-label {
  display: none;
}

.sc-chip[data-chip="0"] { right: 2%; top: 40%; }
.sc-chip[data-chip="1"] { right: 40%; top: 6%; }
.sc-chip[data-chip="2"] { right: 58%; top: 72%; }

.sc-chip[data-chip="1"] .sc-bob { animation-delay: 1.4s; }
.sc-chip[data-chip="2"] .sc-bob { animation-delay: 2.6s; }

@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.rec-line {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgba(7, 8, 15, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
  flex-shrink: 0;
  animation: rec-pulse 1.6s ease-in-out infinite;
}

@keyframes rec-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 77, 90, 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(255, 77, 90, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 14ch;
  margin-bottom: var(--space-3);
}

.hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) rotate(1.5deg);
  animation: word-in 0.7s var(--ease-out) forwards;
}

@keyframes word-in {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero .subline {
  max-width: 54ch;
  color: var(--ice);
  opacity: 0.82;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: var(--space-4);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* two-column hero with the showcase on the right, desktop only */
@media (min-width: 1024px) {
  .hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-4);
    align-items: center;
  }
  .hero-showcase {
    display: block;
  }
}

/* ---------- credibility band ---------- */

.stats {
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(109, 140, 255, 0.04), transparent);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.stat {
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  color: var(--accent);
  line-height: 1.1;
}

.stat span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- video testimonials ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.t-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(109, 140, 255, 0.12), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(139, 92, 246, 0.08), transparent 55%),
    linear-gradient(160deg, var(--char-2), var(--char) 70%);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), border-color var(--dur);
  text-align: left;
  width: 100%;
  display: block;
}

.t-card:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 140, 255, 0.45);
}

/* featured testimonial spans the full row, big and cinematic */
.t-card.featured {
  grid-column: 1 / -1;
}

.t-card.featured .quote {
  font-size: clamp(1.3rem, 2.6vw, 2rem);
}

.t-card img.poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.t-card .t-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3);
  background: linear-gradient(180deg, transparent 30%, rgba(7, 8, 15, 0.88));
}

.t-card .quote {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.t-card .who {
  font-size: 0.8rem;
  color: var(--slate);
  letter-spacing: 0.06em;
}

.play-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(7, 8, 15, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(233, 237, 248, 0.25);
  display: grid;
  place-items: center;
  transition: background var(--dur), transform 0.35s var(--ease-out), border-color var(--dur);
}

.t-card:hover .play-badge,
.p-card:hover .play-badge {
  background: var(--grad);
  border-color: transparent;
  transform: scale(1.08);
}

.play-badge svg {
  width: 18px;
  height: 18px;
  fill: var(--ice);
  margin-left: 3px;
  transition: fill var(--dur);
}

.t-card:hover .play-badge svg,
.p-card:hover .play-badge svg {
  fill: #fff;
}

/* ---------- mentor endorsement (the unsolicited one) ---------- */

.mentor-grid {
  display: grid;
  grid-template-columns: minmax(200px, 250px) 1.15fr minmax(220px, 290px);
  gap: var(--space-4);
  align-items: center;
}

.mentor-video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(109, 140, 255, 0.12), transparent 55%),
    linear-gradient(160deg, var(--char-2), var(--char) 70%);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), border-color var(--dur);
  display: block;
}

.mentor-video:hover {
  transform: translateY(-4px);
  border-color: rgba(109, 140, 255, 0.45);
}

.mentor-video .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.mentor-video:hover .play-badge {
  background: var(--grad);
  border-color: transparent;
  transform: scale(1.08);
}

.mentor-video:hover .play-badge svg {
  fill: #fff;
}

.mentor-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.35;
  margin-bottom: var(--space-3);
}

.mentor-who {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: var(--space-3);
}

.mentor-who b {
  color: var(--ice);
  font-weight: 600;
}

.mentor-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--char);
}

.mentor-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.mentor-photo figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--slate);
  padding: 0.7rem 0.9rem;
}

@media (max-width: 1024px) {
  .mentor-grid {
    grid-template-columns: minmax(180px, 230px) 1fr;
  }
  .mentor-photo {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

@media (max-width: 700px) {
  .mentor-grid {
    grid-template-columns: 1fr;
  }
  .mentor-video {
    max-width: 300px;
  }
}

/* ---------- logo wall: diagonal ticker band across the hero ---------- */

.hero-logos {
  position: absolute;
  left: -4vw;
  right: -4vw;
  bottom: 1.2rem;
  z-index: 3; /* above the hero canvas, with the showcase */
  transform: rotate(-2.5deg);
  padding-block: 1.05rem;
  /* no overflow clip here — the label tag hangs over the top edge;
     .marquee clips its own scrolling content */
  background: rgba(13, 16, 26, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(109, 140, 255, 0.25);
  border-bottom: 1px solid rgba(109, 140, 255, 0.25);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45), 0 0 34px rgba(79, 124, 255, 0.1);
}

/* the tag pinned to the band's top edge */
.hero-logos-label {
  position: absolute;
  top: -12px;
  left: 7vw;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  box-shadow: 0 6px 20px rgba(79, 124, 255, 0.35);
}

.marquee {
  display: flex;
  gap: 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-right: clamp(2rem, 4vw, 3.5rem);
  animation: marquee 30s linear infinite;
  flex-shrink: 0;
}

.logo-sep {
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0.6;
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

.logo-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 500;
  color: var(--ice);
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity var(--dur);
}

.logo-item:hover {
  opacity: 1;
}

.logo-item img {
  /* --ls (per-logo scale from content.js) balances visual weight */
  height: calc(clamp(30px, 2.8vw, 40px) * var(--ls, 1));
  width: auto;
  /* render every logo as a uniform single-fill silhouette: any source
     color becomes the same white mark (parent opacity ghosts it) */
  filter: brightness(0) invert(1);
}

/* ---------- written reviews ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.r-card {
  background: var(--char);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: transform 0.4s var(--ease-out), border-color var(--dur);
}

.r-card:hover {
  transform: translateY(-3px);
  border-color: rgba(109, 140, 255, 0.35);
}

.r-stars {
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  margin-bottom: var(--space-2);
}

.r-card p {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: var(--space-2);
}

.r-card footer {
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reviews-cta {
  text-align: center;
}

/* ---------- about ---------- */

.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-5);
  align-items: center;
}

.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 60% 30%, rgba(109, 140, 255, 0.14), transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(139, 92, 246, 0.1), transparent 60%),
    linear-gradient(200deg, var(--char-2), var(--char));
  border: 1px solid var(--line);
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--slate);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about-body p {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ice);
  opacity: 0.85;
  margin-bottom: var(--space-3);
  max-width: 58ch;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.fact-chip {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

/* ---------- final CTA ---------- */

.final-cta {
  text-align: center;
  padding-block: calc(var(--space-6) * 1.2);
  overflow: hidden;
}

.glow-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(79, 124, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 25% at 50% 100%, rgba(139, 92, 246, 0.14), transparent 70%);
}

.cta-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 140, 255, 0.12), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s;
  opacity: 0;
  z-index: -1;
}

.final-cta h2 {
  margin-inline: auto;
  max-width: 16ch;
}

.final-cta .subline {
  color: var(--slate);
  margin-bottom: var(--space-4);
  font-size: 1.05rem;
}

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
  font-size: 0.85rem;
  color: var(--slate);
}

footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

footer.site-footer a:hover {
  color: var(--accent);
}

footer.site-footer nav {
  display: flex;
  gap: var(--space-3);
}

/* ---------- WORK view ---------- */

.work-hero {
  padding-top: 9rem;
  padding-bottom: var(--space-4);
}

.work-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: var(--space-2);
  max-width: 16ch;
}

.work-hero .subline {
  color: var(--slate);
  max-width: 52ch;
  margin-bottom: var(--space-4);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-4);
}

.filter-chip {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
  min-height: 44px;
}

.filter-chip:hover {
  color: var(--ice);
  border-color: rgba(233, 237, 248, 0.3);
}

.filter-chip.active {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
}


.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  padding-bottom: var(--space-5);
}

.p-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(109, 140, 255, 0.1), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(139, 92, 246, 0.08), transparent 55%),
    linear-gradient(150deg, var(--char-2), var(--char));
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), border-color var(--dur), opacity 0.4s var(--ease-out);
  width: 100%;
  display: block;
  text-align: left;
}

.p-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(109, 140, 255, 0.45);
}

.p-card.hidden {
  display: none;
}

.p-card img.poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* hover preview loop — fades in over the poster once actually playing */
.p-card video.preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.p-card video.preview.on {
  opacity: 1;
}

.p-card .p-overlay {
  position: absolute;
  inset: 0;
  z-index: 2; /* above the hover preview */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(180deg, transparent 45%, rgba(7, 8, 15, 0.85));
}

.p-card .p-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.p-card .p-meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.p-card .play-badge {
  width: 42px;
  height: 42px;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 2; /* above the hover preview */
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000; /* above the film grain (2000) */
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 8, 15, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 4vh 4vw;
  overflow-y: auto;
}

.lightbox.open {
  display: flex;
  animation: lb-in 0.3s var(--ease-out);
}

@keyframes lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-inner {
  /* width also capped by viewport height so a 16:9 player + caption
     always fits on short/landscape screens */
  width: min(1100px, 100%, calc((92dvh - 4.5rem) * 16 / 9));
  animation: lb-scale 0.35s var(--ease-out);
}

@keyframes lb-scale {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox video,
.lightbox iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #000;
}

.lightbox .lb-caption {
  margin-top: var(--space-2);
  display: flex;
  justify-content: space-between;
  color: var(--slate);
  font-size: 0.85rem;
}

.lightbox .lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ice);
  font-size: 1.3rem;
  line-height: 1;
  transition: border-color var(--dur), color var(--dur);
}

.lightbox .lb-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lb-missing {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--slate);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: var(--space-3);
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .hero h1 .w {
    opacity: 1;
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  /* frozen marquee would clip the client list — wrap it instead,
     and straighten the band so wrapped rows don't look askew */
  .hero-logos {
    transform: none;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 3rem;
    padding-right: 0;
    width: 100%;
  }
  .marquee-track[aria-hidden="true"] {
    display: none;
  }
  .sc-item {
    opacity: 1;
    transform: none;
  }
  .sc-chip {
    opacity: 1;
  }
  .sc-chip .sc-bob,
  .sc-card .sc-progress::after {
    animation: none;
  }
  .grain {
    display: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about .container {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .about-photo {
    max-width: 420px;
  }
}

@media (max-width: 700px) {
  section {
    padding-block: var(--space-5);
  }
  .nav {
    padding: 0.7rem 1rem;
  }
  .monogram .nav-logo {
    height: 20px;
  }
  .bus-switch button {
    padding: 0.45rem 0.8rem;
    font-size: 0.66rem;
  }
  .bus-switch button .led {
    display: none;
  }
  .btn-label-long {
    display: none;
  }
  .btn-label-short {
    display: inline;
  }
  .stats .container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3) var(--space-2);
  }
  .testimonials-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding-top: 6rem;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  footer.site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}
