:root {
  --bg-primary: #0A0A0B;
  --bg-secondary: #121214;
  --bg-elevated: #1A1A1D;
  --text-primary: #F5F5F4;
  --text-secondary: #A8A8A6;
  --text-muted: #6B6B68;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #C9A86A;
  --accent-soft: rgba(201, 168, 106, 0.12);
  
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
}

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

/* Global focus ring — visible for keyboard users, hidden for mouse */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

html {
  font-family: var(--font-body);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) transparent;
}

html::-webkit-scrollbar {
  width: 5px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 100px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

html::-webkit-scrollbar-corner {
  background: transparent;
}

html::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: normal;
  line-height: 1.2;
}

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

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

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

/* Layout Utilities */
/* Alternate backgrounds handled by wrapping sections or via nth-child, or utility classes */
.bg-secondary {
  background-color: var(--bg-secondary);
}

/* Wrapper for main content sections that need max-width */
/* Vertical rhythm is owned by .section-padding; hero and CTA manage their own. */
.container {
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 100;
  transition: background-color 0.3s ease, border-bottom 0.3s ease, backdrop-filter 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
}

.navbar.nav-hidden {
  transform: translateY(-100%);
}

.navbar.scrolled {
  background-color: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 6rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
  justify-self: start;
}

.nav-logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: min(256px, 52vw);
}

.nav-links {
  display: flex;
  gap: 2rem;
  justify-self: center;
  grid-column: 2;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  justify-self: end;
  grid-column: 3;
}

.powered-by {
  font-size: 12px;
  padding: 6px 12px;
  background: var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
}

.menu-toggle {
  display: none;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.hamburger, .hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: absolute;
  transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-nav-links a {
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-container {
    grid-template-columns: 1fr auto;
  }
  .nav-links, .powered-by { display: none; }
  .menu-toggle { display: block; }
  .nav-right {
    grid-column: 2;
  }
}

/* Menu open state */
body.menu-open { overflow: hidden; }
.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 200;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: clamp(5rem, 12vh, 9rem);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(201, 168, 106, 0.04) 0%, transparent 60%);
  z-index: -1;
  overflow: hidden;
}

/* Background video playlist */
.hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-vid.active { opacity: 1; }

/* Logo video — zoom in and shift left to crop the bottom-right arc */
#hero-vid-2 {
  transform: scale(1.18) translateX(-5%);
  transform-origin: center center;
}

/* Dim overlay — lighter in the content zone, darker at edges */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(10, 10, 11, 0.92) 0%,      /* top: nav area */
      rgba(10, 10, 11, 0.85) 28%,      /* upper content */
      rgba(10, 10, 11, 0.82) 60%,      /* headline / subhead zone */
      rgba(10, 10, 11, 0.94) 100%      /* bottom transition */
    ),
    radial-gradient(
      ellipse 80% 60% at 50% 45%,
      rgba(10, 10, 11, 0.20) 0%,
      rgba(10, 10, 11, 0.65) 100%      /* heavy edge vignette */
    );
}

/* Animated gradient mesh blobs — sit above the overlay for gold ambience */
.hero-background::before,
.hero-background::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  pointer-events: none;
  z-index: 2;
}

.hero-background::before {
  width: 70vw;
  height: 70vw;
  top: -25%;
  left: -15%;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.08) 0%, transparent 68%);
  animation: meshDrift1 22s ease-in-out infinite alternate;
}

.hero-background::after {
  width: 55vw;
  height: 55vw;
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.05) 0%, transparent 65%);
  animation: meshDrift2 28s ease-in-out infinite alternate;
}

@keyframes meshDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8vw, 6vh) scale(1.12); }
}

@keyframes meshDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6vw, -8vh) scale(0.9); }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  padding: 0 clamp(1.25rem, 5vw, 2rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.display {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--text-primary);
}

.display .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
}

.subhead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Sheen sweep on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -150%;
  width: 60%;
  height: 200%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.32) 50%, transparent 80%);
  transform: skewX(-15deg);
  transition: left 0.48s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(245, 245, 244, 0.22);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-primary);
}

.credibility-strip {
  margin-top: auto;
  padding-top: 4rem;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 767px) {
  .hero-section {
    padding-top: 96px;
    padding-bottom: clamp(3rem, 8vh, 5rem);
    justify-content: flex-start;
  }

  .hero-content {
    padding-top: 2rem;
  }

  .display {
    font-size: clamp(2.2rem, 9vw, 3rem);
    margin-bottom: 1.25rem;
  }

  .subhead {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .credibility-strip {
    padding-top: 2.5rem;
    font-size: 13px;
  }
}

/* Animations */
.animate-stagger {
  opacity: 0;
  transform: translateY(24px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Layout & Typography Helpers */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-large { margin-top: 4rem; }

.section-padding { padding-top: clamp(5rem, 12vh, 9rem); padding-bottom: clamp(5rem, 12vh, 9rem); }

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.section-body {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 760px;
  line-height: 1.7;
}

.section-closing {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Tension / Gap Section */
.gap-visual {
  margin-top: 3.5rem;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.gap-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

@media (max-width: 767px) {
  .gap-visual {
    margin-top: 2.5rem;
  }

  .gap-svg {
    width: 100%;
    height: auto;
  }

  /* Scale up all labels — viewBox is 920 wide but phone is ~360px (scale ≈0.39),
     so SVG font-size="10–12" renders at ~4px on screen. Target ~9px on screen. */
  .gap-svg text {
    font-size: 24px;
    letter-spacing: 0.5;
  }
}

/* SVG path draw-on animation */
.gap-chart-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}

.gap-business-line {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
}

.gap-brand-line {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.55s;
}

.gap-dot {
  opacity: 0;
  transition: opacity 0.5s ease 1.6s;
}

.gap-visual.in-view .gap-chart-path {
  stroke-dashoffset: 0;
}

.gap-visual.in-view .gap-dot {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gap-chart-path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transition: none;
  }
  .gap-dot {
    opacity: 1;
    transition: none;
  }
}

/* Tension Cards — 3-column grid */
.tension-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.tension-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem;
  padding-top: calc(1.75rem + 44px + 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.3s ease;
  position: relative;
}

.tension-card:hover {
  border-color: var(--border-strong);
}

.tension-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
}

.tension-icon svg {
  width: 100%;
  height: 100%;
}

.tension-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

.tension-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.tension-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
}

@media (max-width: 768px) {
  .tension-cards {
    grid-template-columns: 1fr;
  }

  .gap-label {
    display: none;
  }
}

/* Card Beam SVG Overlay */
.card-beam-svg {
  position: absolute;
  top: -1px;
  left: -1px;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.card-beam-rect {
  fill: none;
  stroke: #C9A86A;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 0 9999;
}

/* Tension Icon Animations
   Paused by default — only run when parent card has .card-active.
   CSS animation-play-state: paused freezes at the current frame,
   so resuming (card re-activates) continues exactly where it stopped. */
.anim-arrow-gold {
  transform-box: fill-box;
  transform-origin: center;
  animation: arrowRise 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-play-state: paused;
}

.anim-arrow-grey {
  transform-box: fill-box;
  transform-origin: center;
  animation: arrowDrift 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-play-state: paused;
}

.anim-diamond {
  transform-box: fill-box;
  transform-origin: center;
  animation: diamondTilt 4s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-play-state: paused;
}

.anim-shackle {
  animation: shackleJiggle 3.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  animation-play-state: paused;
}

.anim-play-tri {
  animation: playPulse 3.5s ease-in-out infinite;
  animation-play-state: paused;
}

/* All icons run when their card is the active one */
.card-active .anim-arrow-gold,
.card-active .anim-arrow-grey,
.card-active .anim-diamond,
.card-active .anim-shackle,
.card-active .anim-play-tri {
  animation-play-state: running;
}

@keyframes arrowRise {
  0%, 100% { transform: translateY(0); }
  45%, 55% { transform: translateY(-5px); }
}

@keyframes arrowDrift {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  45%, 55% { transform: translateY(-1.5px); opacity: 0.55; }
}

@keyframes diamondTilt {
  0%, 100%  { transform: rotate(0deg);   opacity: 0.85; }
  25%       { transform: rotate(18deg);  opacity: 1; }
  75%       { transform: rotate(-18deg); opacity: 1; }
}

@keyframes shackleJiggle {
  0%, 55%, 100% { transform: translateY(0); }
  18%           { transform: translateY(-5px); }
  35%           { transform: translateY(-3px); }
}

@keyframes playPulse {
  0%, 55%, 100% { opacity: 0.35; }
  15%, 38%      { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
  .anim-arrow-gold,
  .anim-arrow-grey,
  .anim-diamond,
  .anim-shackle,
  .anim-play-tri { animation: none; }

  .card-beam-svg { display: none; }
}

/* Suite Grid */
.suite-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .suite-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .suite-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.suite-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 2rem 2.5rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.24s ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 240px;
}

.suite-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--border-strong);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

/* Intro hint pulse — fires once after the auto-open demo closes */
@keyframes suiteCardHint {
  0%   { border-color: var(--border-subtle); box-shadow: none; }
  40%  { border-color: rgba(201,168,106,0.5); box-shadow: 0 0 18px rgba(201,168,106,0.18); }
  100% { border-color: var(--border-subtle); box-shadow: none; }
}
.suite-intro-hint {
  animation: suiteCardHint 0.9s ease-out forwards;
}

.suite-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.suite-card p {
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
  font-size: 1rem;
}

.card-bg-number {
  position: absolute;
  top: -10px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  z-index: 1;
  pointer-events: none;
}

/* ── Suite card hover: fade out when overlay opens ── */
.suite-grid {
  position: relative; /* needed for abs overlay */
  min-height: 540px;  /* floor so overlay always has room */
}
.suite-grid.suite-exp-open .suite-card {
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
/* suppress the lift-on-hover while cards are fading */
.suite-grid.suite-exp-open .suite-card:hover {
  transform: translateY(6px) scale(0.97);
}

/* ── Suite expanded overlay ── */
.suite-exp {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.984);
  transition:
    opacity    0.38s cubic-bezier(0.16, 1, 0.3, 1),
    transform  0.38s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}
.suite-exp.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Main content row: info + media */
.suite-exp-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.25rem;
  min-height: 0;
}

/* Tab strip at the bottom */
.suite-exp-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 0 0.25rem;
  flex-shrink: 0;
}
.suite-tab {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 0.38rem 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.38);
  cursor: pointer;
  transition:
    color        0.18s ease,
    border-color 0.18s ease,
    background   0.18s ease,
    transform    0.18s ease;
  white-space: nowrap;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.suite-tab:hover {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}
.suite-tab.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201,168,106,0.08);
}

/* Left panel — content */
.suite-exp-info {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.suite-exp-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.85;
}
.suite-exp-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.15;
}
.suite-exp-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}
.suite-exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.suite-exp-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.suite-exp-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.55;
}
.suite-exp-cta {
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: var(--accent);
  text-decoration: none;
  opacity: 0.65;
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 0.5rem;
  transition: opacity 0.18s ease;
}
.suite-exp-cta:hover { opacity: 1; }

/* Right panel — media */
.suite-exp-media {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Ambient glow in media panel */
.suite-exp-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201,168,106,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: suiteMediaGlow 4s ease-in-out infinite;
}
@keyframes suiteMediaGlow {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}
.suite-exp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.suite-exp-img.se-loaded { opacity: 1; }
/* Brand Graphics overlay — zoom + shift left to crop Grok watermark from bottom-right */
#sExpVideo[data-card="2"] {
  transform: scale(1.09) translateX(-3%);
  transform-origin: top left;
}
/* Placeholder */
.suite-exp-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.suite-exp-ph-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.16);
}

/* Mobile: static cards, no expand interaction, no overflow */
@media (max-width: 767px) {
  /* Prevent any child from bleeding outside the viewport */
  #solution {
    overflow-x: hidden;
  }

  .suite-grid {
    min-height: auto;
    gap: 0.625rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* Cards: full-width, compact, static — no pointer interaction */
  .suite-card {
    min-height: auto;
    padding: 1.25rem;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    cursor: default;
    pointer-events: none;  /* disable tap-to-expand on mobile */
  }

  /* Never fade cards out on mobile — always visible */
  .suite-grid.suite-exp-open .suite-card {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: none;
  }

  .suite-card h3 {
    font-size: 1.1rem;
  }

  .suite-card p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .card-bg-number {
    font-size: 5rem;
    top: -6px;
    right: -4px;
  }

  /* Completely hide the expand overlay on mobile */
  .suite-exp,
  .suite-exp.is-open {
    display: none !important;
  }
}

/* ── Constellation satellite hover modal ── */
.c-modal {
  position: fixed;
  width: 300px;
  background: rgba(18, 18, 20, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(201, 168, 106, 0.22);
  border-radius: 14px;
  overflow: hidden;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.88) translateY(6px);
  transition:
    opacity   0.26s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.55),
    0 0 0 0.5px rgba(201,168,106,0.1) inset;
}
.c-modal.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.c-modal-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.c-modal-num {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  opacity: 0.7;
}
.c-modal-title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.c-modal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0a0a0b;
  display: flex;
  align-items: center;
  justify-content: center;
}
.c-modal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.c-modal-video.cm-loaded { opacity: 1; }
.c-modal-ph {
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Deep Dives */
.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .deep-dive-grid {
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
  }
  
  /* Alternate layout: Text on right, Visual on left */
  .deep-dive-grid.alternate .deep-dive-text {
    order: 2;
  }
  .deep-dive-grid.alternate .deep-dive-visual {
    order: 1;
  }

  /* 02 Logo: larger visual column */
  #dd-logo {
    grid-template-columns: 1.8fr 1fr;
    gap: 4rem;
  }
  #dd-logo .media-landscape {
    aspect-ratio: 16 / 11;
  }
  #dd-logo .media-landscape video {
    transform: scale(1.28) translateX(-8%);
    transform-origin: center center;
  }

  /* 04 Website: larger visual column (visual has order:1 → col 1 = 2fr, text order:2 → col 2 = 0.8fr) */
  #dd-website {
    grid-template-columns: 2fr 0.8fr;
    gap: 4rem;
  }
  #dd-website .media-landscape {
    aspect-ratio: 16 / 10;
  }
  #dd-website .media-landscape video {
    transform: scale(1.08);
    transform-origin: top left;
    object-position: left top;
  }
  #dd-logo .media-landscape video {
    transform: scale(1.09);
    transform-origin: top left;
    object-position: left top;
  }
}

/* Cinematic Film video — zoom in and shift left to hide bottom-right AI overlay */
#dd-film .media-landscape video,
#dd-film .media-slot video {
  object-position: 20% center;
  transform: scale(1.18);
  transform-origin: center center;
}

/* Presentation section — give visual the larger column so the video frame is bigger */
@media (min-width: 1024px) {
  #dd-presentation .deep-dive-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

/* Presentation video — zoom in and anchor left to push watermark off right edge */
#dd-presentation .media-landscape video {
  object-position: 20% center;
  transform: scale(1.22);
  transform-origin: center center;
}

.deep-dive-text {
  text-align: left;
}

.deep-dive-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.deep-dive-promise {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.deep-dive-body {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.deep-dive-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.deep-dive-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.deep-dive-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.deep-dive-list-lead {
  color: var(--accent);
  font-weight: 600;
}

/* Media Slots / Placeholders */
.media-slot {
  width: 100%;
  background: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid transparent;
  /* aspect-ratio defined by variant classes below; ensures no layout shift */
}

.media-slot.is-empty {
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  /* aspect-ratio still enforced by .media-landscape/.media-wide/.media-portrait */
}

.media-slot.is-empty::after {
  content: attr(data-asset);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: monospace;
  padding: 1rem;
  text-align: center;
  word-break: break-all;
}

.media-slot img,
.media-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* remove inline baseline gap */
}

/* Axiom gallery card — zoom in and shift left to crop bottom-right watermark */
#gc-axiom .media-slot video {
  transform: scale(1.18) translateX(-7%);
  transform-origin: center center;
}

.media-landscape {
  aspect-ratio: 16 / 11;
}


.media-wide {
  aspect-ratio: 16 / 9;
}

.media-portrait {
  aspect-ratio: 9 / 19.5;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.pillar p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 600px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-primary);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(
    to top,
    rgba(6,6,7,1.0)  0%,
    rgba(6,6,7,0.97) 30%,
    rgba(6,6,7,0.80) 60%,
    rgba(6,6,7,0)    100%
  );
  text-align: left;
  pointer-events: none;
}

.gallery-card:hover .media-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6,6,7,0.35);
  pointer-events: none;
}

.gallery-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.gallery-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.gallery-result {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .gallery-overlay {
    opacity: 1;
    transform: none;
    background: linear-gradient(
      to top,
      rgba(6,6,7,1.0)  0%,
      rgba(6,6,7,0.97) 35%,
      rgba(6,6,7,0.75) 65%,
      rgba(6,6,7,0)    100%
    );
  }
}

/* Timeline / Process */
.timeline-container {
  position: relative;
  text-align: left;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: var(--border-strong);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.5s ease-out;
}

.timeline-line.in-view {
  transform: scaleY(1);
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-left: 3rem;
}

.timeline-step {
  position: relative;
}

.step-dot {
  position: absolute;
  left: -3rem;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  transform: translateX(-6px) scale(0);
  transition: transform 0.4s ease 0.4s;
}

.timeline-step.in-view .step-dot {
  transform: translateX(-6px) scale(1);
}

.step-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-step h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-step p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .timeline-line {
    top: 24px;
    left: 0;
    width: 100%;
    height: 2px;
    transform-origin: left;
    transform: scaleX(0);
  }
  
  .timeline-line.in-view {
    transform: scaleX(1);
    transform-origin: left;
  }

  .timeline-steps {
    flex-direction: row;
    padding-left: 0;
    gap: 2rem;
  }
  
  .timeline-step {
    flex: 1;
  }
  
  .step-dot {
    left: 0;
    top: -30px;
    transform: translateY(-5px) scale(0);
  }
  
  .timeline-step.in-view .step-dot {
    transform: translateY(-5px) scale(1);
  }
}

/* Tiers */
.tiers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
}

@media (min-width: 1024px) {
  .tiers-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0.75rem 0; /* breathing room so scale(1.05) shadow isn't clipped */
  }
}

/* Contain the featured card scale so it can't bleed into horizontal scroll */
#tiers {
  overflow-x: clip;
}

.tier-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.tier-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
}

.tier-card.featured {
  border-color: var(--accent);
  position: relative;
  box-shadow: 0 0 20px rgba(201,168,106,0.1);
  animation: borderGlow 4s infinite alternate;
}

@media (min-width: 1024px) {
  .tier-card.featured {
    transform: scale(1.05);
  }
  .tier-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
  }
}

@keyframes borderGlow {
  0% { box-shadow: 0 0 10px rgba(201,168,106,0.1); }
  100% { box-shadow: 0 0 30px rgba(201,168,106,0.25); }
}

.ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: 20px;
}

.tier-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tier-positioning {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  min-height: 4.5rem;
}

.tier-list {
  list-style: none;
  margin-bottom: 3rem;
  flex-grow: 1;
}

.tier-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.tier-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.w-full {
  width: 100%;
}

/* Guarantee Panel */
.guarantee-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
}

.guarantee-list {
  list-style: none;
  max-width: 600px;
  margin-top: 3rem;
}

.guarantee-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.guarantee-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.checkmark {
  background: var(--accent-soft);
  color: var(--accent);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: bold;
}

/* Utilities */
.relative { position: relative; }
.z-10 { z-index: 10; }
.mt-small { margin-top: 0.5rem; }

/* Closing CTA */
.cta-section {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-primary);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(201, 168, 106, 0.08) 0%, transparent 60%);
  animation: slowPulse 8s infinite alternate;
  z-index: 1;
}

@keyframes slowPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}

.cta-button-wrapper {
  margin-top: 3rem;
  margin-bottom: 4rem;
}

.pulse-glow {
  box-shadow: 0 0 15px rgba(245, 245, 244, 0.15);
  animation: buttonGlow 3s infinite alternate;
}

@keyframes buttonGlow {
  0% { box-shadow: 0 0 10px rgba(245, 245, 244, 0.1); }
  100% { box-shadow: 0 0 25px rgba(245, 245, 244, 0.3); }
}

.cta-credit {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Contact Section */
.contact-section .section-title {
  margin-bottom: 1rem;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 2.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-name {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-sep {
  color: var(--text-muted);
}

.contact-link {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-cta {
  margin-top: 2.5rem;
}

/* Footer */
.site-footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.text-muted {
  color: var(--text-muted);
}

.footer-brand strong {
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    text-align: left;
  }
}

/* Film play button */
.film-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.film-play-btn svg {
  width: 28px;
  height: 28px;
}

.film-play-btn .icon-play { margin-left: 4px; }
.film-play-btn .icon-pause { display: none; }
.film-play-btn.playing .icon-play { display: none; }
.film-play-btn.playing .icon-pause { display: block; }

.film-play-btn:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translate(-50%, -50%) scale(1.08);
}

.media-slot.is-empty .film-play-btn { display: none; }

/* ─── Speed Comparison Visualization ─── */
.speed-vis {
  max-width: 920px;
  margin: 3.5rem auto 0;
}

.speed-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* All bars start collapsed; expand when parent .speed-vis gets .in-view */
.sb-old, .sb-new {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
}

/* Old-way bars stagger sequentially to feel laborious */
.sb-old-1 { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s; }
.sb-old-2 { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.65s; }
.sb-old-3 { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.0s; }
.sb-old-4 { transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 1.7s; }
.sb-old-5 { transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) 2.05s; }
.sb-old-6 { transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) 2.28s; }

/* LoopSuit bars all fire simultaneously to feel effortless */
.sb-new-1,
.sb-new-2,
.sb-new-3,
.sb-new-4,
.sb-new-5,
.sb-new-6 { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s; }

.sb-new-dot  { opacity: 0; transition: opacity 0.4s ease 0.8s; }
.sb-new-line,
.sb-new-text { opacity: 0; transition: opacity 0.5s ease 0.85s; }

.speed-vis.in-view .sb-old     { transform: scaleX(1); }
.speed-vis.in-view .sb-new     { transform: scaleX(1); }
.speed-vis.in-view .sb-new-dot  { opacity: 1; }
.speed-vis.in-view .sb-new-line { opacity: 1; }
.speed-vis.in-view .sb-new-text { opacity: 1; }

.speed-desktop { display: block; }
.speed-mobile  { display: none; }

.speed-svg-mob {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

@media (max-width: 640px) {
  .speed-desktop { display: none; }
  .speed-mobile  {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

/* Loop ping: bars shoot to full width every ~4 s, then contract */
@keyframes barPing {
  0%    { transform: scaleX(1); }
  12%   { transform: scaleX(6.49); }
  25%   { transform: scaleX(6.49); }
  38%   { transform: scaleX(1); }
  100%  { transform: scaleX(1); }
}

/* Once speed-vis-active is set (post-entry), reset individual transition delays */
.speed-vis.speed-vis-active .sb-new-1,
.speed-vis.speed-vis-active .sb-new-2,
.speed-vis.speed-vis-active .sb-new-3,
.speed-vis.speed-vis-active .sb-new-4,
.speed-vis.speed-vis-active .sb-new-5,
.speed-vis.speed-vis-active .sb-new-6 {
  transition-delay: 0s;
  animation: barPing 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Hover: expand all new bars to fill the track, override the loop */
.speed-vis.speed-vis-hovered .sb-new-1,
.speed-vis.speed-vis-hovered .sb-new-2,
.speed-vis.speed-vis-hovered .sb-new-3,
.speed-vis.speed-vis-hovered .sb-new-4,
.speed-vis.speed-vis-hovered .sb-new-5,
.speed-vis.speed-vis-hovered .sb-new-6 {
  animation: none;
  transform: scaleX(6.49) !important;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0s !important;
}

@media (prefers-reduced-motion: reduce) {
  .sb-old, .sb-new { transform: scaleX(1); transition: none; }
  .sb-new-dot, .sb-new-line, .sb-new-text { opacity: 1; transition: none; }
  .speed-vis.speed-vis-active .sb-new-1,
  .speed-vis.speed-vis-active .sb-new-2,
  .speed-vis.speed-vis-active .sb-new-3,
  .speed-vis.speed-vis-active .sb-new-4,
  .speed-vis.speed-vis-active .sb-new-5,
  .speed-vis.speed-vis-active .sb-new-6 { animation: none; }
}

/* ─── Process Step Icons ─── */
.step-icon-wrap {
  width: 36px;
  height: 36px;
  margin-bottom: 0.75rem;
}

.step-icon { width: 100%; height: 100%; }

.anim-compass {
  transform-box: fill-box;
  transform-origin: 18px 18px;
  animation: compassSpin 6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes compassSpin {
  0%, 100% { transform: rotate(0deg); }
  30%       { transform: rotate(35deg); }
  60%       { transform: rotate(-20deg); }
}

.anim-blocks {
  transform-box: fill-box;
  transform-origin: center;
  animation: blocksPulse 3s ease-in-out infinite;
}

@keyframes blocksPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

.anim-lens {
  animation: lensPulse 3.5s ease-in-out infinite;
}

.anim-scan {
  transform-box: fill-box;
  transform-origin: 12px 16px;
  animation: scanSweep 3.5s ease-in-out infinite;
}

@keyframes lensPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

@keyframes scanSweep {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(4px); }
}

.anim-ring {
  transform-box: fill-box;
  transform-origin: 18px 22px;
}

.anim-ring-1 { animation: ringExpand 2.8s ease-out infinite; }
.anim-ring-2 { animation: ringExpand 2.8s ease-out 0.35s infinite; }
.anim-ring-3 { animation: ringExpand 2.8s ease-out 0.7s infinite; }

@keyframes ringExpand {
  0%   { opacity: 0.8; transform: scale(0.4); }
  60%  { opacity: 0.2; }
  100% { opacity: 0;   transform: scale(1); }
}

.anim-rocket {
  animation: rocketLift 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  transform-box: fill-box;
  transform-origin: 18px 20px;
}

@keyframes rocketLift {
  0%, 100% { transform: translateY(0); }
  40%, 60% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .anim-compass, .anim-blocks, .anim-lens, .anim-scan,
  .anim-ring, .anim-rocket { animation: none; }
}

/* ─── Guarantee Shield ─── */
.guarantee-shield {
  margin-bottom: 2rem;
}

.shield-svg {
  width: 72px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.shield-outline {
  stroke-dasharray: 310;
  stroke-dashoffset: 310;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.shield-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.6s;
}

.guarantee-panel.in-view .shield-outline { stroke-dashoffset: 0; }
.guarantee-panel.in-view .shield-check   { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .shield-outline, .shield-check {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transition: none;
  }
}

/* Grain noise overlay — static texture for depth, not motion.
   z-index: 5 keeps it above page sections (z-index: auto) but
   below all fixed UI chrome (mobile-menu: 99, navbar: 100, progress: 200). */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Scroll Animations */
.fade-up-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Group 3: hide scroll bar, freeze mesh, disable sheen, lock parallax targets */
  #scroll-progress { display: none; }
  .hero-background::before,
  .hero-background::after { animation: none; }
  .btn-primary::after { display: none; }
  /* Parallax is now applied to inner img/video — reset both slot and media */
  .deep-dive .media-slot { transform: none !important; }
  .deep-dive .media-slot img,
  .deep-dive .media-slot video { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════
   Brand Constellation Orbit
   ═══════════════════════════════════════════════════════ */
.constellation-wrap {
  max-width: 960px;
  margin: 5rem auto 0;
  position: relative;
}
.constellation-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Orbit rings — draw on via stroke-dashoffset when c-active */
.c-ring { fill: none; }
.c-ring-1 { stroke-dasharray: 620;  stroke-dashoffset: 620; }
.c-ring-2 { stroke-dasharray: 990;  stroke-dashoffset: 990; }
.c-ring-3 { stroke-dasharray: 1350; stroke-dashoffset: 1350; }
.c-ring-4 { stroke-dasharray: 1650; stroke-dashoffset: 1650; }

.constellation-wrap.c-active .c-ring-1 {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.15, 1) 0.25s;
}
.constellation-wrap.c-active .c-ring-2 {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.4, 0, 0.15, 1) 0.45s;
}
.constellation-wrap.c-active .c-ring-3 {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.6s cubic-bezier(0.4, 0, 0.15, 1) 0.65s;
}
.constellation-wrap.c-active .c-ring-4 {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 3.0s cubic-bezier(0.4, 0, 0.15, 1) 0.85s;
}

/* Center core — scale in from zero, then breathe */
.c-core-main, .c-core-halo, .c-core-ring {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0s;
}
.constellation-wrap.c-active .c-core-main {
  transform: scale(1);
  animation: cBreath 3.8s ease-in-out 1.3s infinite;
}
.constellation-wrap.c-active .c-core-halo {
  transform: scale(1);
  transition-delay: 0.06s;
  animation: cHaloBreathe 3.8s ease-in-out 1.3s infinite;
}
.constellation-wrap.c-active .c-core-ring {
  transform: scale(1);
  transition-delay: 0.03s;
}
.c-core-lbl {
  transition: fill-opacity 0.6s ease 1.0s;
}
.constellation-wrap.c-active .c-core-lbl { fill-opacity: 1 !important; }

@keyframes cBreath {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.08); }
}
@keyframes cHaloBreathe {
  0%, 100% { fill-opacity: 0.05; }
  50%       { fill-opacity: 0.11; }
}

/* Satellites — fade in staggered */
.c-sat {
  opacity: 0;
  transition: opacity 0.75s ease;
}
.c-sd0 { transition-delay: 1.1s; }
.c-sd1 { transition-delay: 1.4s; }
.c-sd2 { transition-delay: 1.7s; }
.c-sd3 { transition-delay: 2.0s; }
.c-sd4 { transition-delay: 2.3s; }
.c-sd5 { transition-delay: 2.6s; }
.c-sd6 { transition-delay: 2.9s; }
.constellation-wrap.c-active .c-sat { opacity: 1; }

/* Connector lines — faint, fade in */
.c-conn {
  stroke-opacity: 0;
  transition: stroke-opacity 0.5s ease 1.5s;
}
.constellation-wrap.c-active .c-conn { stroke-opacity: 0.07; }

/* Pulse rings — expand outward from center, loop */
@keyframes cPulseRing {
  0%   { transform: scale(1);  stroke-opacity: 0.24; stroke-width: 1.6; }
  100% { transform: scale(14); stroke-opacity: 0;    stroke-width: 0.3; }
}
.c-pulse {
  fill: none;
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
}
.constellation-wrap.c-active .c-pulse {
  opacity: 1;
  animation: cPulseRing 4.2s cubic-bezier(0, 0.55, 0.55, 1) infinite;
}
.constellation-wrap.c-active .c-pd1 {
  animation: cPulseRing 4.2s cubic-bezier(0, 0.55, 0.55, 1) 1.4s infinite;
}
.constellation-wrap.c-active .c-pd2 {
  animation: cPulseRing 4.2s cubic-bezier(0, 0.55, 0.55, 1) 2.8s infinite;
}

/* Mobile: scale labels up so they're readable at the smaller viewport size */
@media (max-width: 600px) {
  .constellation-wrap { margin-top: 3rem; }

  /* Satellite labels: compensate for the 800→360px viewBox scale-down */
  .c-lbl {
    display: block;
    font-size: 22px;   /* ~10px on a 375px-wide screen after viewBox scale */
    letter-spacing: 0.5;
  }

  /* Center "LOOPSUIT" label */
  .c-core-lbl {
    font-size: 19px;   /* ~9px on screen */
    letter-spacing: 2;
  }
}

/* ═══════════════════════════════════════════════════════
   Scope Stack Visualization  (#tiers)
   ═══════════════════════════════════════════════════════ */
.scope-vis {
  max-width: 860px;
  margin: 3rem auto 0;
}
.scope-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Bars start collapsed at left edge */
.scope-bar {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
}

/* Fade-in targets start hidden */
.scope-end,
.scope-dot,
.scope-rl,
.scope-badge { opacity: 0; }

/* ── On scroll into view (uses existing .in-view observer) ── */

/* Foundation bar */
.scope-vis.in-view .scope-bar-f {
  transform: scaleX(1);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.scope-vis.in-view .scope-ef,
.scope-vis.in-view .scope-df {
  opacity: 1;
  transition: opacity 0.4s ease 1.0s;
}
.scope-vis.in-view .scope-rlf {
  opacity: 1;
  transition: opacity 0.5s ease 1.1s;
}

/* Authority bar */
.scope-vis.in-view .scope-bar-a {
  transform: scaleX(1);
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}
.scope-vis.in-view .scope-badge {
  opacity: 1;
  transition: opacity 0.5s ease 1.45s;
}
.scope-vis.in-view .scope-ea,
.scope-vis.in-view .scope-da {
  opacity: 1;
  transition: opacity 0.4s ease 1.45s;
}
.scope-vis.in-view .scope-rla {
  opacity: 1;
  transition: opacity 0.5s ease 1.55s;
}

/* Dominance bar */
.scope-vis.in-view .scope-bar-d {
  transform: scaleX(1);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.95s;
}
.scope-vis.in-view .scope-ed,
.scope-vis.in-view .scope-dd {
  opacity: 1;
  transition: opacity 0.4s ease 1.95s;
}
.scope-vis.in-view .scope-rld {
  opacity: 1;
  transition: opacity 0.5s ease 2.05s;
}

/* Mobile: hide right label column, keep bars */
@media (max-width: 640px) {
  .scope-rl { display: none; }
  .scope-vis { margin-top: 2rem; }
}

/* ── Tier-card hover highlighting ── */
.scope-row {
  transition: opacity 0.22s ease;
}

/* When any card is hovered, dim the non-active rows */
.scope-vis.hover-f .scope-row-a,
.scope-vis.hover-f .scope-row-d { opacity: 0.15; }

.scope-vis.hover-a .scope-row-f,
.scope-vis.hover-a .scope-row-d { opacity: 0.15; }

.scope-vis.hover-d .scope-row-f,
.scope-vis.hover-d .scope-row-a { opacity: 0.15; }

/* ── Case Study Overlay Modal ─────────────────────────────────────────────── */

.cs-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cs-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 12, 0.68);
  backdrop-filter: blur(28px) brightness(0.6);
  -webkit-backdrop-filter: blur(28px) brightness(0.6);
}

.cs-panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(18px) scale(0.975);
  transition: transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

.cs-modal.is-open .cs-panel {
  transform: translateY(0) scale(1);
}

/* Mobile: slide in as full-screen sheet from bottom so header is seen first */
@media (max-width: 767px) {
  .cs-panel {
    position: fixed;
    inset: 0;
    transform: translateY(100%);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0;
  }

  .cs-modal.is-open .cs-panel {
    transform: translateY(0);
  }
}

/* Mobile sticky header */
.cs-header {
  flex-shrink: 0;
  padding: 1.25rem 1.25rem 1rem;
  background: rgba(10, 10, 11, 0.98);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
}

.cs-industry {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.cs-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.cs-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.cs-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Shared tag pill */
.cs-tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: 100px;
  font-weight: 500;
  white-space: nowrap;
}

/* Scrollable media area */
.cs-media-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.875rem 0.875rem 4.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) transparent;
}

.cs-media-wrap::-webkit-scrollbar { width: 4px; }
.cs-media-wrap::-webkit-scrollbar-track { background: transparent; }
.cs-media-wrap::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 100px; }
.cs-media-wrap::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

.cs-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

/* Media item cell */
.cs-media-item {
  border-radius: 14px;
  overflow: hidden;
  background: #22222a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  position: relative;
  line-height: 0;
  grid-column: span 1;
}

/* Images and GIFs: full natural aspect ratio, never cropped */
img.cs-media-el {
  width: 100%;
  height: auto;
  display: block;
}

/* Videos: ratio set dynamically by JS from actual video dimensions after loadedmetadata */
video.cs-media-el {
  width: 100%;
  aspect-ratio: 16 / 9; /* fallback until metadata loads */
  object-fit: cover;
  display: block;
}

.cs-media-item.cs-portrait video.cs-media-el {
  aspect-ratio: 9 / 19; /* fallback for portrait until metadata loads */
}

/* GIF animated badge */
.cs-gif-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: rgba(255,255,255,0.85);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

/* Desktop info bar — hidden on mobile */
.cs-infobar {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 2rem;
  background: rgba(10, 10, 11, 0.97);
  border-top: 1px solid var(--border-subtle);
}

.cs-infobar-left { flex-shrink: 0; }

.cs-infobar-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.15;
}

.cs-infobar-industry {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.cs-infobar-desc {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.cs-infobar-tags {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  max-width: 220px;
}

/* Close button — mobile: fixed bottom center, small and unobtrusive */
.cs-close {
  position: fixed;
  bottom: env(safe-area-inset-bottom, 1.25rem);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2010;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.88);
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  line-height: 1;
}

.cs-close:hover {
  background: rgba(30, 30, 36, 0.96);
  color: rgba(255, 255, 255, 0.95);
  transform: translateX(-50%) scale(1.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.cs-close:active {
  transform: translateX(-50%) scale(0.93);
}

/* ── Desktop layout (≥768px) — bento grid, fills height, no scroll ── */
@media (min-width: 768px) {
  .cs-header { display: none; }

  .cs-infobar { display: flex; }

  /* Wrap becomes a flex container so the grid can stretch to fill it */
  /* Horizontal scrolling row — items size themselves by natural aspect ratio */
  .cs-media-wrap {
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-elevated) transparent;
  }

  .cs-media-wrap:active { cursor: grabbing; }

  .cs-media-wrap::-webkit-scrollbar { height: 4px; }
  .cs-media-wrap::-webkit-scrollbar-track { background: transparent; }
  .cs-media-wrap::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 100px; }
  .cs-media-wrap::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

  /* Switch from grid to a single horizontal flex row */
  .cs-media-grid {
    display: flex;
    flex-direction: row;
    height: 100%;
    gap: 0.875rem;
    align-items: stretch;
    width: max-content; /* let row grow as wide as needed */
  }

  /* Each item fills the row height; width flows from its natural aspect ratio */
  .cs-media-item {
    height: 100%;
    flex-shrink: 0;
    width: auto;
    grid-column: unset;
    grid-row: unset;
  }

  /* Images: natural aspect ratio — height fills row, width auto-computes */
  img.cs-media-el {
    height: 100%;
    width: auto;
    max-width: none; /* override global max-width: 100% */
    object-fit: unset;
  }

  /* Videos have no intrinsic size before metadata loads, so we give the
     container an aspect-ratio and let the video fill it */
  .cs-media-item:has(video.cs-media-el) {
    aspect-ratio: 16 / 9;
  }
  .cs-media-item.cs-portrait:has(video.cs-media-el) {
    aspect-ratio: 9 / 16;
  }

  video.cs-media-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cs-close {
    /* Desktop: top-right corner — always-visible dark pill */
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    bottom: auto;
    left: auto;
    transform: none;
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
    background: rgba(10, 10, 11, 0.82);
    color: #F5F5F4;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .cs-close:hover {
    background: rgba(10, 10, 11, 0.95);
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  }

  .cs-close:active {
    transform: scale(0.94);
  }
}

@media (min-width: 1200px) {
  .cs-media-grid { gap: 1rem; }
  .cs-infobar { padding: 1.5rem 3rem; gap: 2.5rem; }
  .cs-infobar-name { font-size: 1.75rem; }
  .cs-infobar-desc { font-size: 0.925rem; }
}

/* Gallery card: ensure pointer cursor is set */
.gallery-card[data-case] { cursor: pointer; }

/* Film section: zoom in and shift left to hide AI watermark on right edge */
.film-video {
  transform: scale(1.18) translateX(-6%);
  transform-origin: center center;
}
