/* ===== Variables ===== */
:root {
  --accent: #FCAB87;
  --secondary: #E1D0C9;
  --body-text: #E1D0C9;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(6, 6, 6, 0.93);
}

/* ===== Global Fixed Video Background ===== */
.site-video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0a0a0a;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.site-video-bg video {
  /* 44% wider, anchored top-right — excess bleeds left, pushing Josh clear of text zone */
  width: 144%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.0)  0%,
    rgba(0, 0, 0, 0.0)  48%,
    rgba(0, 0, 0, 0.65) 54%,
    rgba(0, 0, 0, 0.78) 100%
  );
}


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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--body-text);
  font-family: 'Rufina', serif;
  overflow-x: hidden;
}

/* ===== Fixed Nav ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  pointer-events: none;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 41px;
  color: var(--accent);
  text-decoration: none;
  pointer-events: all;
  transition: color 0.6s ease;
}

.nav-cta {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  text-decoration: none;
  border: 1.5px solid var(--accent);
  padding: 11.5px 30px;
  pointer-events: all;
  transition: color 0.6s ease, border-color 0.6s ease, background 0.3s;
}

.nav-cta:hover {
  color: var(--bg-dark);
  background: var(--accent);
  border-color: var(--accent);
}

/* White nav state — active over panels 5, 6, 7 */
.site-nav--light .nav-logo {
  color: #ffffff;
}

.site-nav--light .nav-cta {
  color: #ffffff;
  border-color: #ffffff;
}

.site-nav--light .nav-cta:hover {
  color: var(--bg-dark);
  background: #ffffff;
  border-color: #ffffff;
}

/* ===== Dot Nav ===== */
.dot-nav {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
  appearance: none;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ===== Scroll Sections ===== */
.scroll-section {
  position: relative;
  height: 130vh;
}

.scroll-section--last {
  height: 100vh;
}

/* CTA section: sticky so content holds while video translates away above it */
.cta-section {
  background: #090909;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 5;
  overflow: hidden;
}

/* CTA panel: centered column with left-aligned copy inside */
#section-6 .panel-content {
  padding-left: 20%;
  padding-right: 20%;
  align-items: flex-start;
}

#section-6 .cta-headline {
  font-size: 62px;
  max-width: none;
}

.scroll-section--combined {
  height: 240vh;
}

/* Flip stage: relative so back-face can overlay front-face */
#flip-stage-1 {
  position: relative;
  width: 100%;
}

/* Back face sits absolutely on top of front face for cross-fade.
   pointer-events: none keeps it from blocking the front face until it's active. */
#flip-back-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
}

/* Block every descendant too — children override a parent's pointer-events: none
   unless they're targeted explicitly, so we must cover the whole subtree. */
#flip-back-1, #flip-back-1 * {
  pointer-events: none;
}

/* Headline span colors for coin-flip section */
#hl-ai {
  color: var(--accent);
}

#hl-human {
  color: var(--body-text);
}

/* Panels 2+3 (combined section): shifted further right than the default 52% */
#content-1 {
  padding-left: 57%;
}

/* Panel 5: guaranteed gap on both sides. Video column crops as viewport narrows;
   content column stays fixed. */
#content-3 {
  padding-left: 120px;
  padding-right: 96px;
  justify-content: flex-end;
}

/* Video col can shrink into whatever space remains after the content col takes its 620px.
   overflow: hidden ensures the video crops rather than overflows. */
#content-3 .gp-video-col {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

/* Override the 620px cap that the card-positioned rules apply to split panels */
#content-3 .glass-panel,
#content-4 .glass-panel {
  max-width: 1400px;
}

/* Panel 5: doubled vertical spacing between body copy → videos → CTA */
#content-3 .body-copy {
  margin-bottom: 64px;
}

#content-3 .video-grid-2 {
  margin-bottom: 64px;
}

/* Panels 5 & 6: gap between video column and content column */
#content-3 .gp-video-col,
#content-4 .gp-video-col {
  padding-right: 32px;
}

/* Panel 6: guaranteed gap on both sides. Video column crops as viewport narrows. */
#content-4 {
  padding-left: 120px;
  padding-right: 96px;
  justify-content: flex-end;
}

#content-4 .gp-video-col {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

/* Panel 6: spacing between headline → pair → controls → CTA */
#content-4 .panel-headline {
  margin-bottom: 36px;
}

#content-4 .testimonial-pair {
  margin-bottom: 0;
}

#content-4 .testimonial-controls {
  margin-bottom: 44px;
}

/* Panel 7: match the 96px right offset used by panels 5 & 6 */
#content-5 {
  padding-right: 96px;
}

/* Section-5 sticky must stay above the video (z-index 10) during the scroll-off transition */
#section-5 .sticky-container {
  z-index: 12;
}

/* Back face body copy: constrained so line 1 breaks after "built" */
#flip-back-1 .body-copy {
  max-width: 555px;
}

/* ===== Glass Panel (panels 2+3) ===== */
/* backdrop-filter is incompatible with 3D-transformed ancestors — the blur
   compositing layer always drifts from its siblings during rotationX/Y.
   We replicate the frosted-glass look with a rich opaque-dark background,
   lit edges, and the shine overlay instead. */
.glass-panel {
  position: relative;
  background: rgba(12, 12, 12, 0.82);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1.5px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 44px 52px 52px;
  overflow: hidden;
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.glass-blur {
  display: none; /* no longer needed */
}

/* Shine overlay — top-left gradient simulating glass lit from the left */
.glass-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.04) 30%,
    transparent 62%
  );
  pointer-events: none;
  will-change: transform;
}

/* ===== Sticky Container ===== */
.sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  /* z-index 2 ensures content sits above the fixed video (z-index 0) */
  z-index: 2;
}

/* Panel 7: covers the video with solid black */
.sticky-container--black {
  background: #090909;
  z-index: 5;
}

/* ===== Panel Content ===== */
.panel-content {
  position: relative;
  z-index: 10;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Hero / panels 1–2: content on right half */
.panel-content--right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 52%;
  padding-right: 72px;
}

/* Panel 3 & CTA: content left-aligned, generous right space */
.panel-content--left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 8%;
  padding-right: 6%;
}

/* Panel 4 dark card: left-of-center (matches reference) */
.panel-content--card-left-center {
  display: flex;
  justify-content: flex-start;
  padding: 0 64px 0 40%;
}

/* Panels 5–6 with dark card, right-aligned */
.panel-content--card-right {
  display: flex;
  justify-content: flex-end;
  padding: 0 64px;
}

/* Glass panels inside card-positioned containers match the old dark-card sizing */
.panel-content--card-left-center .glass-panel,
.panel-content--card-right .glass-panel {
  max-width: 620px;
  width: 100%;
}

/* Split glass panel: full-height video flush left, content on the right.
   Content column holds the original 620px panel width.
   Video column adds width to the left, roughly doubling the total. */
.glass-panel--with-video {
  display: flex;
  flex-direction: row;
  padding: 0;
  width: 100%;
  max-width: 1400px;
  overflow: hidden;
}

.gp-video-col {
  flex: 0 0 728px;
  position: relative;
  padding: 10px 0 10px 10px; /* 10px buffer left/top/bottom; flush on right */
}

.gp-video-col video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.gp-content-col {
  flex: 0 0 620px;   /* same width the panel had before the video was added */
  padding: 44px 52px 52px;
}

/* Ambient glass — solid black, no shadow, sharp corners */
.glass-panel--ambient {
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1.5px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  border-radius: 0;
}

/* Light-on-dark text for ambient panels (5, 6, 7) — matches panels 2–4 */
.glass-panel--ambient .panel-headline {
  color: var(--secondary);
}

.glass-panel--ambient .panel-headline .accent {
  color: var(--accent);
}

.glass-panel--ambient .body-copy {
  color: var(--body-text);
}

.glass-panel--ambient .subheadline {
  color: var(--secondary);
}

.glass-panel--ambient .img-label {
  color: var(--secondary);
}

.glass-panel--ambient .btn-outline {
  color: var(--body-text);
  border-color: var(--body-text);
}

.glass-panel--ambient .btn-outline:hover {
  color: var(--bg-dark);
  background: var(--accent);
  border-color: var(--accent);
}

.glass-panel--ambient .testimonial-quote,
.glass-panel--ambient .testimonial-quote .accent {
  color: var(--secondary);
}

.glass-panel--ambient .testimonial-attr {
  color: rgba(225, 208, 201, 0.55);
}

.glass-panel--ambient .tdot::after {
  background: rgba(255, 255, 255, 0.20);
}

.glass-panel--ambient .tdot.active::after {
  background: var(--body-text);
  transform: none;
}

.glass-panel--ambient .testimonial-avatar-wrap {
  background: rgba(210, 205, 200, 0.18);
}

.glass-panel--ambient .testimonial-next {
  border-color: rgba(255, 255, 255, 0.30);
  color: rgba(255, 255, 255, 0.65);
}

.glass-panel--ambient .testimonial-next:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Typography ===== */
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 112px;
  line-height: 1.12;
  color: var(--accent);
  margin-bottom: 28px;
}

.panel-headline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 54px;
  line-height: 1.12;
  color: var(--secondary);
  margin-bottom: 24px;
}

.cta-headline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.12;
  color: var(--secondary);
  margin-bottom: 48px;
  max-width: 860px;
}

/* Desktop: keep first span on one line, hide mobile line breaks */
.cta-nowrap { white-space: nowrap; }
.mob-br { display: none; }

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

.underlined {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.body-large {
  font-family: 'Rufina', serif;
  font-size: 28px;
  line-height: 1.57;
  color: var(--body-text);
  margin-bottom: 20px;
}

.body-copy {
  font-family: 'Rufina', serif;
  font-size: 20px;
  line-height: 1.57;
  color: var(--body-text);
  margin-bottom: 32px;
}

.service-list {
  font-family: 'Rufina', serif;
  font-size: 18px;
  color: var(--body-text);
  margin-bottom: 44px;
  letter-spacing: 0.01em;
}

.hero-tagline-mobile {
  display: none;
}

.subheadline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--secondary);
  margin-bottom: 20px;
}

/* ===== Buttons ===== */
.btn-outline {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--body-text);
  border: 1.5px solid var(--body-text);
  padding: 16px 40px;
  text-decoration: none;
  transition: color 0.25s, background 0.25s, border-color 0.25s;
  cursor: pointer;
}

.btn-outline:hover {
  color: var(--bg-dark);
  background: var(--accent);
  border-color: var(--accent);
}

/* CTA panel (last) keeps accent border */
#section-7 .btn-outline {
  border-color: var(--accent);
  color: var(--body-text);
}

#section-7 .btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ===== Inline Panel Video ===== */
.video-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 36px;
  cursor: pointer;
  flex-shrink: 0;
  pointer-events: auto;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* .is-hovered toggled by JS — sidesteps CSS :hover hit-testing issues */
.video-embed-wrap.is-hovered {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.65);
}

.panel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(70%);
  transition: filter 0.4s ease;
}

.video-embed-wrap.is-hovered .panel-video {
  filter: saturate(100%);
}

.video-cta-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.28) 100%
  );
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Overlay stays visible on hover — play button inverts instead */

.video-play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: transparent;
  padding-left: 3px; /* optical centre for triangle */
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.video-embed-wrap.is-hovered .video-play-icon {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--bg-dark);
}

.video-cta-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Autoplaying videos (panels 2 & 3, desktop): video plays immediately at full
   saturation; overlay, icon, and label stay visible in both states.
   On hover the icon fills white alongside the existing pop-out effect. */
.video-embed-wrap.is-autoplaying .panel-video { filter: saturate(100%); }
.video-embed-wrap.is-autoplaying.is-hovered .video-play-icon {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--bg-dark);
}

/* ===== Video Placeholder ===== */
.video-placeholder {
  background: rgba(210, 205, 200, 0.82);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  width: 100%;
  max-width: 460px;
  margin-bottom: 36px;
}

.video-placeholder span {
  font-family: 'Rufina', serif;
  font-size: 15px;
  color: rgba(30, 25, 20, 0.6);
  font-weight: 400;
}

/* ===== 2-column video grid (panels 4) ===== */
.video-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}

.video-grid-2 .video-placeholder,
.video-grid-2 .video-embed-wrap {
  max-width: none;
  height: 170px;
  margin-bottom: 0;
  border-radius: 14px;
}

/* ===== Work grid (panel 3) ===== */
/* Panel 4: pull content left so the grid has more room */
#content-2 {
  padding-left: 28%;
  padding-right: 72px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 44px;
  width: 100%;
  max-width: 960px;
}

.work-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.img-placeholder {
  background: rgba(210, 205, 200, 0.80);
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  width: 100%;
}

.img-label {
  font-family: 'Rufina', serif;
  font-size: 15px;
  color: var(--secondary);
}

/* ===== Support grid (panel 6) ===== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 8px;
}

.support-grid .img-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
}

.support-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* ===== Testimonial (panel 6) ===== */
.testimonial-pair {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

/* Circular clip wrapper */
.testimonial-avatar-wrap {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background: rgba(210, 205, 200, 0.18);
}

.testimonial-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity 0.25s ease;
}

.testimonial-body {
  flex: 1;
}

.testimonial-quote {
  font-family: 'Rufina', serif;
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--secondary);
  margin-bottom: 10px;
  list-style: none;
  transition: opacity 0.25s ease;
}

.testimonial-attr {
  font-family: 'Rufina', serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
  transition: opacity 0.25s ease;
}

/* Controls row: dots + next arrow sit below the testimonial */
.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  margin-bottom: 0;
}

.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tdot {
  /* Larger hit area without changing visible size */
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

/* The visible pip is the ::after pseudo-element */
.tdot::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease, transform 0.25s ease;
  display: block;
}

.tdot:hover::after {
  background: rgba(255, 255, 255, 0.5);
}

/* Extra dots shown only on mobile (1-per-page carousel) */
.tdot--mobile {
  display: none;
}

/* Mobile/desktop copy variants */
.body-copy--mobile {
  display: none;
}

.tdot.active::after {
  background: var(--body-text);
}

/* Next arrow button */
.testimonial-next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  padding: 0;
}

.testimonial-next:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.testimonial-next:active {
  background: rgba(252, 171, 135, 0.12);
}

/* ============================================================
   MOBILE STYLES — max-width: 767px
   Desktop (≥ 768px) is completely untouched.
   All rules below are additive overrides only.
   ============================================================ */
@media (max-width: 767px) {

  /* ── Navigation: solid black bar, 85px tall ──────────────── */
  .site-nav {
    background: #0a0a0a;
    height: 85px;
    padding: 0 24px;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .nav-logo {
    font-size: 28px;
  }

  .nav-cta {
    font-size: 14px;
    padding: 8px 18px;
  }

  /* ── Dot nav: re-enabled at bottom-right on mobile ─────────── */
  .dot-nav {
    display: flex;
    right: 16px;
    bottom: 28px;
    top: auto;
    transform: none;
    gap: 10px;
  }

  /* ── Sticky container: top-align so tall panels don't clip ── */
  .sticky-container {
    align-items: flex-start;
  }

  /* ── Glass-panel sections: center panel in the video area ── */
  /* padding-top: 85px offsets the nav, box-sizing: border-box  */
  /* keeps height at 100vh so flex centers within the remaining */
  /* 100vh - 85px = visible background video area.              */
  #section-2 .sticky-container,
  #section-3 .sticky-container,
  #section-4 .sticky-container,
  #section-5 .sticky-container {
    top: 0;
    padding-top: 85px;
    box-sizing: border-box;
    align-items: center;
  }

  /* ── Hero content: two-column grid pinned to the bottom ───── */
  #content-0 {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto auto auto;
    padding: 93px 36px 39px 34px;
    height: 100vh;
    box-sizing: border-box;
  }

  #content-0 .hero-headline {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 12px;
    font-weight: 600;
  }

  #content-0 .body-large {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
  }

  #content-0 .service-list {
    display: none;
  }

  .hero-tagline-mobile {
    display: block;
    grid-column: 1;
    grid-row: 4;
    font-family: 'Rufina', serif;
    font-size: 14px;
    color: var(--body-text);
    margin-top: 15px;
    margin-bottom: 0;
    letter-spacing: 0.01em;
  }

  /* ── Hide Let's chat button inside hero on mobile ─────────── */
  #content-0 .btn-outline {
    display: none;
  }

  /* ── Service list: vertical with bullets on the left ─────── */
  .service-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    line-height: 1.5;
  }

  .service-list .accent {
    display: none;
  }

  .service-item::before {
    content: "•";
    color: var(--accent);
    margin-right: 8px;
  }

  /* ── Text panel 2: push below nav bar + 60px lower ─────── */
  #content-1 {
    padding-top: 185px;
  }

  #content-1 .body-copy br {
    display: none;
  }

  #content-1 .video-embed-wrap {
    width: 85%;
    max-width: 85%;
    margin-right: auto;
  }

  /* ── Text panel 3: padding-top removed — sticky container
       now centres it in the below-nav area via padding-top:85px ── */
  #content-2 {
    padding-top: 0;
  }

  /* ── Video background: starts below the 85px nav bar ─────── */
  .site-video-bg {
    top: 85px;
    height: calc(100vh - 85px);
  }

  /* Josh centered, full viewport width, anchored top. ─────── */
  .site-video-bg video {
    left: auto;
    right: 0;
    width: 100%;
    object-position: center top;
  }

  /* ── Scroll section heights: shorter on mobile ───────────── */
  .scroll-section {
    height: 180vh;
  }

  .scroll-section--combined {
    height: 340vh;
  }

  .scroll-section--last {
    height: 150vh;
  }

  /* ── Typography ───────────────────────────────────────────── */
  .hero-headline {
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 16px;
    white-space: nowrap;
  }

  .panel-headline {
    font-size: 35px;
    font-weight: 600;
  }

  .body-large {
    font-size: 17px;
  }


  .body-copy {
    font-size: 16px;
  }

  .cta-headline {
    font-size: 70px;
    font-weight: 600;
    margin-bottom: 36px;
  }

  /* ── Buttons ──────────────────────────────────────────────── */
  .btn-outline {
    font-size: 16px;
    padding: 14px 32px;
  }

  /* ── Panel content: full-width, remove large left offsets ─── */
  .panel-content--right {
    padding-left: 24px;
    padding-right: 24px;
  }

  #content-1 {
    padding-left: 24px;
    padding-right: 24px;
  }

  #content-2 {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Panels 5 & 6: remove side-push, go edge-to-edge */
  #content-3,
  #content-4 {
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
  }

  /* Panel 6 (Impact): nudge 20px above center */
  #content-4 {
    margin-top: -20px;
  }

  /* Panel 7 */
  #content-5 {
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
    margin-top: 70px;
  }

  /* Panel 7: wider right gap (35px) + tighter internal right padding */
  #content-5 .glass-panel {
    margin-left: 35px;
    margin-right: 35px;
    width: calc(100% - 70px);
    max-width: calc(100% - 70px);
    padding-bottom: 44px;
    padding-right: 24px;
  }

  /* CTA */
  #section-6 .panel-content {
    padding-left: 24px;
    padding-right: 24px;
    align-items: flex-start;
  }

  /* ── Card-positioned panels: full width ──────────────────── */
  .panel-content--card-left-center,
  .panel-content--card-right {
    padding: 0;
    justify-content: flex-start;
  }

  .panel-content--card-left-center .glass-panel,
  .panel-content--card-right .glass-panel,
  #content-3 .glass-panel,
  #content-4 .glass-panel,
  #content-5 .glass-panel {
    max-width: calc(100% - 50px);
    width: calc(100% - 50px);
    margin-left: 15px;
    margin-right: 35px;
    border-radius: 16px;
    border-left: 1.5px solid rgba(255, 255, 255, 0.22);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }

  /* Ambient glass panels: semi-transparent so background video shows through */
  #content-3 .glass-panel--ambient,
  #content-4 .glass-panel--ambient,
  #content-5 .glass-panel--ambient {
    background: rgba(12, 12, 12, 0.88);
  }

  /* ── Glass panel split: stack video above content ────────── */
  .glass-panel--with-video {
    flex-direction: column;
    max-width: 100%;
  }

  .gp-video-col {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    padding: 0 !important;
  }

  .gp-video-col video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gp-content-col {
    flex: 0 0 auto;
    width: 100%;
    padding: 32px 16px 40px 24px;
  }

  /* ── Panel 5: smaller play icons on the two CCP videos (–30%) ── */
  #video-3-wrap .video-play-icon,
  #video-4-wrap .video-play-icon {
    width: 39px;
    height: 39px;
  }
  #video-3-wrap .video-play-icon svg,
  #video-4-wrap .video-play-icon svg {
    width: 18px;
    height: 18px;
  }

  /* ── Panel 4 (Systems): hide image grid on mobile ─────────── */
  #content-2 .work-grid {
    display: none;
  }

  /* ── Panel 7 (Work funds mission): hide support grid on mobile ── */
  #content-5 .support-grid {
    display: none;
  }

  /* ── Work grid: 3 narrow columns (matches desktop intent) ── */
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 100%;
  }

  /* ── Video embed wraps: fluid height ─────────────────────── */
  .video-embed-wrap {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
  }

  /* ── Video grid in panel 5: single column ────────────────── */
  .video-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .video-grid-2 .video-embed-wrap {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  /* ── Support grid: 3 columns ─────────────────────────────── */
  .support-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  /* ── Mobile/desktop copy variants ───────────────────────── */
  .body-copy--desktop { display: none; }
  .body-copy--mobile  { display: block; }

  /* ── Panel 5 spacing ─────────────────────────────────────── */
  #content-3 .body-copy {
    margin-bottom: 32px;
  }

  #content-3 .video-grid-2 {
    margin-bottom: 32px;
  }

  /* ── Panel 6 spacing ─────────────────────────────────────── */
  #content-4 .panel-headline {
    margin-bottom: 28px;
  }

  #content-4 .testimonial-controls {
    margin-bottom: 32px;
  }

  /* ── Testimonial avatar: slightly smaller ────────────────── */
  .testimonial-avatar-wrap {
    width: 64px;
    height: 64px;
  }

  /* ── Testimonial carousel: 1 per page on mobile ──────────── */
  .tdot--mobile {
    display: inline-flex;
  }
  /* Hide the second testimonial slot — JS renders only slot 0 on mobile */
  #testimonial-img-1,
  #testimonial-quote-1,
  #testimonial-attr-1 {
    display: none;
  }
  .testimonial-pair .testimonial:last-child {
    display: none;
  }

  /* ── Back-face body copy: remove desktop max-width ───────── */
  #flip-back-1 .body-copy {
    max-width: 100%;
  }


  /* ── CTA section: vertically centered ──────────────────── */
  .cta-section {
    align-items: center;
  }

  /* CTA headline: large + mobile line-break control */
  #section-6 .cta-headline {
    font-size: 40px;
  }

  .cta-nowrap { white-space: normal; }
  .mob-br { display: initial; }

  /* ── Panel 6: hide video col on mobile ──────────────────── */
  #content-4 .gp-video-col {
    display: none;
  }

  /* ── Glass panel video col: ensure it shows on mobile ───── */
  #content-3 .gp-video-col,
  #content-4 .gp-video-col {
    position: relative;
    height: 154px;
    aspect-ratio: unset;
    overflow: hidden;
    flex: 0 0 auto;
    width: 100%;
    padding: 0 !important;
  }

  #content-3 .gp-video-col video,
  #content-4 .gp-video-col video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

}

