/* canSCAN Website – inspired by web UI: dark theme, #FFE600 accent, Archivo */
:root {
  --color-bg: #000000;
  --color-surface: #0d0d0d;
  --color-surface-alt: #1a1a1a;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.65);
  --color-text-faint: rgba(255, 255, 255, 0.5);
  --color-accent: #FFE600;
  --color-accent-hover: #ffe633;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-card-border: rgba(255, 255, 255, 0.1);
  --font-sans: "Archivo", system-ui, sans-serif;
  --hero-min-height: 100vh;
  --header-height: 8.25rem; /* header min-height + padding (1.5x); scroll-margin so section top meets header bottom */
  --platform-bg: #0d0c08; /* dark yellow-gold base so light rays read as radiant section */
}

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

html {
  scroll-behavior: smooth;
}

/* Stylized scrollbar: subtle, on-brand; overlays content so it doesn't reserve space */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
@media (min-width: 1px) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
  }
  ::-webkit-scrollbar-corner {
    background: transparent;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header: use --header-height so scroll-margin stays in sync */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 1.125rem 3rem;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  display: block;
  text-decoration: none;
}

.logo__img {
  display: block;
  height: 72px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.425rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease;
}

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

/* Login: plain nav link with a centered divider before it */
.nav__login {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 3rem;
  margin-left: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__login::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1.4em;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

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

/* Hamburger: show on narrow only */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 230, 0, 0.25);
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 1200px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Menu overlay: blurred backdrop + liquid glass panel */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  /* Close: longer fade so blur can fade out first */
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0.4s;
}
.nav-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  /* Open: short overlay fade so blur layer isn't gated; blur then animates on its own */
  transition: opacity 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 0s;
}

.nav-overlay__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
  transform: translateZ(0);
}

/* Blur layer fades in over 0.6s so blur appears gradually (overlay already at 1 after 0.18s) */
.nav-overlay__backdrop-blur {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-overlay.is-open .nav-overlay__backdrop-blur {
  opacity: 1;
  transition-duration: 0.6s;
}

.nav-overlay__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 2.5rem));
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.75rem;
  background: rgba(15, 15, 18, 0.65);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  cursor: default;
}

.nav-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-overlay__link {
  position: relative;
  display: block;
  padding: 1rem 0.5rem;
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-overlay__link + .nav-overlay__link {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-overlay__link:hover {
  color: var(--color-accent);
}

.nav-overlay__link--login {
  margin-top: 0.5rem;
  padding-top: 1.4rem;
  font-weight: 600;
}

.nav-overlay__link--login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.nav-overlay__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav-overlay__close:hover {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 230, 0, 0.35);
  transform: rotate(90deg);
}

/* Hero: full-viewport video */
.hero {
  position: relative;
  height: 100vh;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Gradient to black at bottom of video */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 40%,
    transparent 60%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 1) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 7rem; /* slightly higher above the scroll arrow */
  transform: translateX(-50%);
  z-index: 3;
  width: min(96vw, 90rem);
  max-width: none;
  padding: 0 2rem 0;
  text-align: center;
}

/* Hero: same style as "Introducing canSCAN Viewer" – big heading + tagline */
.hero-heading {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.08;
  text-align: center;
  margin: 0 auto;
  color: var(--color-text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 0 40px rgba(0, 0, 0, 0.35);
  width: 90vw;
  max-width: 70rem;
  text-wrap: balance;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-heading {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }
}
.hero-heading__line1 {
  /* Allow wrap on narrow viewports so "Location Capture." stays fully visible */
  display: inline-block;
  max-width: 100%;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 2rem;
  color: var(--color-text);
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  animation: hero-tagline-cta-fade 2s ease 2s forwards;
}

@keyframes hero-tagline-cta-fade {
  to {
    opacity: 1;
  }
}

.hero-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-bg);
  background: var(--color-accent);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
  opacity: 0;
  animation: hero-tagline-cta-fade 2s ease 2s forwards;
}

.hero-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* Scroll-down indicator: centred at bottom of hero */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--color-text);
  opacity: 0.85;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.hero-scroll-indicator:hover {
  color: var(--color-accent);
  opacity: 1;
}
.hero-scroll-indicator__arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 0.65rem solid transparent;
  border-right: 0.65rem solid transparent;
  border-top: 0.85rem solid currentColor;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}
@keyframes hero-scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.35rem); }
}

/* Sections: scroll-margin so anchor targets sit below fixed header */
#platform,
#platform-tools,
#steps,
#contact {
  scroll-margin-top: var(--header-height);
}

.section {
  padding: 4rem 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

.section--alt {
  background: var(--color-surface);
}

/* Intro: what we do — instant clarity (3D location scanning for film & TV) */
.intro-section {
  max-width: none;
  padding: 3rem 2rem 4rem;
  background: #000;
  text-align: center;
  position: relative;
}

.intro-section__headline {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--color-accent);
  text-shadow: 0 0 30px rgba(255, 230, 0, 0.35);
}

.intro-section__tagline {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: var(--color-text);
  opacity: 0.9;
}

.intro-section__caption {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-faint);
}

.intro-section__carousel {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.intro-section__carousel-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  will-change: transform;
  animation: intro-carousel-scroll 40s linear infinite;
}

.intro-section__img-wrap {
  flex: 0 0 calc(15vh * 16 / 9);
  height: 15vh;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.intro-section__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

@keyframes intro-carousel-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Carousel ending: funnel to contact (after …and more coming soon) */
.carousel-ending {
  max-width: none;
  padding: 5rem 2rem 6rem;
  background: #000;
  text-align: center;
  position: relative;
}

.carousel-ending__headline {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 1.25rem;
  color: var(--color-accent);
  text-shadow: 0 0 30px rgba(255, 230, 0, 0.5), 0 0 60px rgba(255, 230, 0, 0.25);
}

.carousel-ending__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1.5rem;
  margin-bottom: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.carousel-ending__cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-text);
  transform: translateY(-1px);
}

.carousel-ending__cta--compact {
  margin-bottom: 0;
}

.carousel-ending__carousel {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

/* Center dark band over moving carousel: transparent -> black -> transparent */
.carousel-ending__carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.85) 35%,
    rgba(0, 0, 0, 1) 44%,
    rgba(0, 0, 0, 1) 56%,
    rgba(0, 0, 0, 0.85) 65%,
    rgba(0, 0, 0, 0) 100%
  );
}

.carousel-ending__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  pointer-events: none;
}

.carousel-ending__overlay .carousel-ending__headline,
.carousel-ending__overlay .carousel-ending__cta {
  pointer-events: auto;
}

/* Two identical sets, no gap between them, so -50% translate is a perfect loop */
.carousel-ending__track {
  display: flex;
  align-items: center;
  gap: 2rem;
  will-change: transform;
}

.carousel-ending__set {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.carousel-ending .intro-section__img-wrap {
  flex: 0 0 calc(16vh * 16 / 9);
  height: 16vh;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.carousel-ending .intro-section__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.carousel-ending__caption {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-faint);
}

/* Steps section: reuse platform/productions background (warm dark + light rays + gradients) */
.steps-section {
  max-width: none;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--platform-bg);
  position: relative;
  overflow: hidden;
}

.steps-section__rays {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  z-index: 0;
  pointer-events: none;
}

.steps-section__rays .light-rays-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Keep headline, tagline and steps box above the rays and gradients */
.steps-section > *:not(.steps-section__rays) {
  position: relative;
  z-index: 2;
}

/* Gradient from black at top – same as platform section */
.steps-section::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 35vh;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Gradient to black at bottom – same as platform section */
.steps-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35vh;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Match Introducing canSCAN Viewer title style */
.steps-section__headline {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 0.35em;
  color: var(--color-accent);
  text-shadow: 0 0 40px rgba(255, 230, 0, 0.4);
}

.steps-section__tagline {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 4rem;
  color: var(--color-text);
  opacity: 0.95;
}

/* Box with 3 steps; staggered fade-in when section is in view */
.steps-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

/* Expandable panel: full width below steps; open/close animated via JS data-active-step */
.steps-box__expand {
  grid-column: 1 / -1;
  max-height: 0;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height 0.4s ease, min-height 0.4s ease, border-color 0.25s ease;
  background: rgba(0, 0, 0, 0.35);
  position: relative;
}

.steps-box[data-active-step] .steps-box__expand {
  max-height: 420px;
  min-height: 320px;
  border-top-color: var(--color-border);
}

.steps-box[data-closing] .steps-box__expand {
  max-height: 0;
  min-height: 0;
  border-top-color: var(--color-border);
}

.step-expand {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  padding-bottom: 2.5rem;
  box-sizing: border-box;
  background: transparent;
  text-align: left;
  opacity: 0;
  filter: blur(0);
  pointer-events: none;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.steps-box[data-active-step="1"] .step-expand:nth-child(1),
.steps-box[data-active-step="2"] .step-expand:nth-child(2),
.steps-box[data-active-step="3"] .step-expand:nth-child(3),
.steps-box[data-closing="1"] .step-expand:nth-child(1),
.steps-box[data-closing="2"] .step-expand:nth-child(2),
.steps-box[data-closing="3"] .step-expand:nth-child(3) {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

.steps-box__expand.is-transitioning .step-expand {
  opacity: 0;
  filter: blur(6px);
}

.step-expand__media {
  flex: 0 0 42%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-surface);
}

.step-expand__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.step-expand__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-expand__body {
  flex: 1;
  flex-shrink: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-expand__title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.step-expand__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .steps-box[data-active-step] .steps-box__expand {
    max-height: 480px;
    min-height: 320px;
  }

  .step-expand {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.25rem;
    padding-bottom: 2rem;
    gap: 1.25rem;
  }

  .step-expand__media {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.step:last-child {
  border-right: none;
}

.step:hover {
  background: rgba(255, 255, 255, 0.04);
}

.steps-box[data-active-step="1"] .step[data-step="1"],
.steps-box[data-active-step="2"] .step[data-step="2"],
.steps-box[data-active-step="3"] .step[data-step="3"] {
  background: rgba(255, 230, 0, 0.06);
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.step__number {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  font-weight: 900;
  line-height: 0.9;
  color: var(--color-accent);
  letter-spacing: -0.04em;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 40px rgba(255, 230, 0, 0.2);
}

.step__content {
  max-width: 28rem;
  margin: 0 auto;
}

.step__title {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 0.4rem;
  line-height: 1.2;
}

.step__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .steps-box {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Expand area becomes part of flow: each step's content directly below it */
  .steps-box__expand {
    display: contents;
  }

  .steps-box__expand .step-expand {
    order: 0;
    position: static;
    opacity: 1;
    pointer-events: auto;
    border-top: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 1.25rem;
    gap: 1rem;
  }

  .steps-box .step:nth-child(1) { order: 1; }
  .steps-box .step:nth-child(2) { order: 3; }
  .steps-box .step:nth-child(3) { order: 5; }
  .steps-box__expand .step-expand:nth-child(1) { order: 2; }
  .steps-box__expand .step-expand:nth-child(2) { order: 4; }
  .steps-box__expand .step-expand:nth-child(3) { order: 6; }

  /* Expand panel never collapsed on mobile */
  .steps-box[data-active-step] .steps-box__expand,
  .steps-box[data-closing] .steps-box__expand {
    max-height: none;
    min-height: 0;
    overflow: visible;
    border-top: none;
    background: transparent;
  }

  .step {
    border-right: none;
    border-bottom: none;
    padding: 1.75rem 1.25rem;
  }

  .step:last-child {
    border-bottom: none;
  }

  .steps-section .steps-section__headline,
  .steps-section .steps-section__tagline {
    transition: none;
  }
  .steps-section .step:hover {
    background: rgba(255, 255, 255, 0.02);
  }
  .steps-box__expand,
  .step-expand {
    transition: none;
  }
}

/* Glass icons: platform tools */
.glass-icons-section.section {
  max-width: 96rem;
}

.glass-icons-section__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--color-text);
}

.glass-icons-section__title--more {
  margin: 2.5rem 0 0;
}

.glass-icons {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2rem 1.5rem;
  max-width: 96rem;
  margin: 0 auto;
}

.glass-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.5rem;
  min-width: 0;
}

@media (max-width: 1023px) {
  .glass-icons {
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .glass-icons {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .glass-icons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.glass-icon__blur {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--color-text-muted);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, color 0.25s ease;
}

.glass-icon:hover .glass-icon__blur {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: var(--color-text);
  transform: scale(1.05);
}

.glass-icon__blur img {
  display: block;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  object-fit: contain;
  object-position: center;
  /* SVGs in <img> don't inherit color; use filter for gray (default) and white (hover) */
  filter: brightness(0) invert(0.55);
  transition: filter 0.25s ease;
}

.glass-icon:hover .glass-icon__blur img {
  filter: brightness(0) invert(1);
}

.glass-icon__title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Introducing canSCAN Viewer – no aurora */
.section--platform {
  position: relative;
  max-width: none;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 1rem);
  padding-bottom: 2rem;
  overflow: hidden;
  background: #000000;
}

/* Scan spotlight – aurora behind, cohesive with platform/glass sections */
.section--spotlight {
  position: relative;
  max-width: none;
  padding: 4rem 2rem 5rem;
  overflow: hidden;
  background: var(--platform-bg);
}
/* Gradient from black at top of platform section – sits on top of rays so it’s visible */
.section--spotlight::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 35vh;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}
/* Gradient to black at bottom of platform section – same as top but inverted */
.section--spotlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35vh;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.spotlight-inner {
  position: relative;
  z-index: 2;
  max-width: min(90vw, 64rem);
  margin: 0 auto;
}

.spotlight-heading {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 0.25em;
  color: var(--color-accent);
  text-shadow: 0 0 40px rgba(255, 230, 0, 0.35);
}

.spotlight-tagline {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--color-text-muted);
}

/* Stack: 3 vertical glass boxes, hover expands one */
.spotlight-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 65vh;
}

.spotlight-box {
  position: relative;
  flex: 1 1 0;
  min-height: 4rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-sans);
  transition: flex 0.4s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  container-name: spotlight-box;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Glass layer: fades in on hover so blur doesn’t snap */
.spotlight-box::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0.5;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.spotlight-box:hover::before {
  opacity: 1;
}

.spotlight-box:hover {
  flex: 2 1 0;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Full dark overlay: wipes left on hover to reveal image */
.spotlight-box__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.75) 100%
  );
  border-radius: 16px;
  pointer-events: none;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.4s ease-out;
}

.spotlight-box:hover .spotlight-box__overlay {
  /* Dark overlay covers ~45% width on the left */
  clip-path: inset(0 55% 0 0);
}

.spotlight-box__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  border-radius: 16px;
}

.spotlight-box__wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  justify-content: center;
  transition: padding 0.4s ease-out, width 0.4s ease-out;
}

.spotlight-box:hover .spotlight-box__wrap {
  width: 45%;
  padding-top: 0.75rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 1.5rem;
}

.spotlight-box__wrap::before {
  content: '';
  display: block;
  flex-shrink: 0;
  max-height: 0;
  overflow: hidden;
}

.spotlight-box__title {
  font-size: clamp(0.8rem, 5cqi, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  flex-shrink: 0;
  margin: 0;
  max-width: 100%;
  width: max-content;
  text-align: center;
  margin-left: 50%;
  transform: translateX(-50%);
  transition: margin-left 0.4s ease-out, transform 0.4s ease-out, margin 0.4s ease-out;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.spotlight-box:hover .spotlight-box__title {
  margin-left: 0;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  transform: translateX(0);
  text-align: left;
}

.spotlight-box__expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
  flex-shrink: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.spotlight-box:hover .spotlight-box__expand {
  max-height: 10rem;
  opacity: 1;
}

.spotlight-box__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.55rem 1.3rem;
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 2cqi, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.spotlight-box:hover .spotlight-box__button {
  opacity: 1;
}

.spotlight-box__button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 2.4cqi, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pill-button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.pill-button--large {
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.pill-button--accent {
  background: var(--color-accent);
  border-color: rgba(255, 230, 0, 0.9);
  color: var(--color-bg);
}

.pill-button--accent:hover {
  background: var(--color-accent-hover);
  border-color: rgba(255, 230, 0, 1);
}

.spotlight-box__text {
  font-size: clamp(0.7rem, 2.5cqi, 1rem);
  line-height: 1.5;
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
  max-width: 26rem;
}

.spotlight-box__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.5rem 0 0;
  max-width: 100%;
}

.spotlight-box__meta {
  font-size: clamp(0.55rem, 2cqi, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
}

.spotlight-box__outcome {
  font-size: clamp(0.65rem, 2.2cqi, 0.95rem);
  font-style: italic;
  color: var(--color-text-muted);
  margin: 0.5rem 0 0;
  max-width: 100%;
}

.spotlight-box__link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: clamp(0.7rem, 2cqi, 0.9rem);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.spotlight-box__link:hover {
  text-decoration: underline;
  color: var(--color-accent-hover);
}

.spotlight-stack__error {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0;
}

.platform-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.platform-bg .light-rays-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.platform-inner {
  position: relative;
  z-index: 2;
}

.section--platform .platform-inner {
  width: 100%;
  min-height: calc(100vh - var(--header-height) - 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Overlay for ray cursor tracking; all pointer-events none so viewer and button stay clickable */
.platform-rays-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.platform-rays-overlay-piece {
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
}

/* Platform section: bold stylized heading + tagline */
.platform-heading {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  margin: 0 0 0.35em;
  color: var(--color-accent);
  text-shadow: 0 0 40px rgba(255, 230, 0, 0.4);
}

.platform-tagline {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--color-text);
  opacity: 0.95;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.section-intro {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 50rem;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* Platform row: 80% width; gap 0.5rem; on large screens embed on top, switcher underneath */
.platform-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 80vw;
  max-width: 100%;
  margin: 0 auto;
  min-height: 70vh;
}

.platform-video {
  margin-top: 0;
  width: 100%;
}

.platform-video__frame {
  position: relative;
  width: 90vw;
  height: 70vh;
  max-height: calc(100vh - var(--header-height) - 12rem);
  margin: 0 auto;
  padding-bottom: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

@media (max-width: 900px) {
  .platform-video__frame {
    max-height: calc(100vh - var(--header-height) - 9rem);
  }
}

.platform-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.platform-video__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.platform-embed {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 70vh;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  background: var(--color-surface-alt);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: flex 0.35s ease;
}

.platform-case-study {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 2rem;
  padding: 2rem;
  background: var(--color-surface-alt);
  overflow-x: hidden;
  overflow-y: auto;
}

.platform-case-study[aria-hidden="true"] {
  display: none;
}

.platform-case-study__inner {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  padding-right: 1rem;
  /* Match preview image bottom (margin: 0.125rem inside 2rem card padding) */
  padding-bottom: 0.125rem;
  position: relative;
  padding-top: 0.5rem;
  overflow-wrap: break-word;
}

/* Scrollable content so button stays bottom-aligned with photo; reflow within width so no horizontal scroll */
.platform-case-study__content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.5rem;
  overflow-wrap: break-word;
}

.platform-case-study__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 230, 0, 0.08);
  border: 1px solid rgba(255, 230, 0, 0.25);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.platform-case-study__title {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.platform-case-study__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.platform-case-study__meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.platform-case-study__meta-block {
  min-width: 0;
}

.platform-case-study__meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
  margin-bottom: 0.15rem;
}

.platform-case-study__meta-value {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text);
}

.platform-case-study__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.platform-case-study__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.platform-case-study__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.platform-case-study__body-col h4 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
}

.platform-case-study__body-col p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.platform-case-study__outcomes {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.platform-case-study__outcomes li + li {
  margin-top: 0.3rem;
}

/* Responsive: shorten or hide content on smaller viewports */
@media (max-width: 1024px) {
  .platform-case-study__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .platform-case-study__body-col p,
  .platform-case-study__outcomes {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .platform-case-study__outcomes li + li {
    margin-top: 0;
  }
}

/* Simplified spotlight: title, description, use case/departments/deliverables only; hide tags and body when space is limited */
@media (max-width: 768px) {
  .platform-case-study__meta-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .platform-case-study__tags,
  .platform-case-study__body {
    display: none;
  }
}

@media (max-width: 480px) {
  .platform-case-study {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  .platform-case-study__inner {
    padding-bottom: 1.5rem;
  }
  .platform-case-study__eyebrow {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
  .platform-case-study__title {
    font-size: 1.35rem;
  }
  .platform-case-study__text {
    -webkit-line-clamp: 2;
    margin-bottom: 0.75rem;
  }
  .platform-case-study__tags,
  .platform-case-study__body {
    display: none;
  }
}

/* Shared toggle button styles */
.platform-viewer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 230, 0, 0.2);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.platform-viewer-toggle:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 230, 0, 0.25);
  transform: translateY(-2px);
}

.platform-viewer-toggle:active {
  transform: translateY(0) scale(0.98);
}

/* In-column: full width, pinned to bottom of left column (aligned with photo) */
.platform-viewer-toggle--in-column {
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
}

@media (max-width: 768px) {
  .platform-viewer-toggle--in-column {
    display: none;
  }
}

/* Overlay: only visible when viewer is active, bottom-left */
.platform-viewer-toggle--overlay {
  position: absolute;
  bottom: 2.125rem;
  left: 2rem;
  z-index: 3;
  width: 16rem;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.platform-embed.is-viewer-active .platform-viewer-toggle--overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.platform-case-study__preview {
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 0.125rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-case-study__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.platform-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.platform-iframe.platform-iframe--hidden {
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Platform switcher: tiles always laid out horizontally under viewer */
.platform-switcher {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-width: 0;
  align-self: stretch;
  height: 20vh;
  min-height: 20vh;
  position: relative;
  transition: flex 0.35s ease;
  --x: 50%;
  --y: 50%;
  --r: 220px;
}

/* Under 1700px: tiles still underneath viewer, no layout change on hover, just highlight */
@media (max-width: 1699px) {
  .platform-row {
    flex-direction: column;
    width: 80vw;
    min-height: 0;
  }

  .platform-embed {
    flex: 0 0 auto;
    width: 100%;
    min-height: 50vh;
  }

  .platform-switcher__card {
    flex: 1;
    min-height: 0;
  }
}

.platform-switcher__card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(255, 230, 0, 0.06) 0%, #1c1c18 40%, #141414 100%);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: filter 0.3s ease;
  filter: grayscale(1) brightness(0.82);
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.2);
}

/* Only hovered tile is colored; when not hovering, selected tile is colored */
.platform-switcher__card:hover,
.platform-switcher:not(:hover) .platform-switcher__card.is-selected {
  filter: none;
}

.platform-switcher__card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 100px at var(--mouse-x) var(--mouse-y),
    var(--spotlight-color),
    transparent 65%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.platform-switcher__card:hover::before {
  opacity: 1;
}

.platform-switcher__card.is-selected {
  z-index: 5;
}

.platform-switcher__img-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  padding: 8px;
  box-sizing: border-box;
}

.platform-switcher__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.platform-switcher__label {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 0.4rem 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Grid-level overlay disabled; color/grayscale is per-card via filter */
.platform-switcher__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: 12px;
  opacity: 0;
  backdrop-filter: grayscale(1) brightness(0.78);
  -webkit-backdrop-filter: grayscale(1) brightness(0.78);
  background: rgba(0, 0, 0, 0.001);
  mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    transparent 0%,
    transparent 15%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.22) 45%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.5) 75%,
    rgba(0, 0, 0, 0.68) 88%,
    white 100%
  );
  -webkit-mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    transparent 0%,
    transparent 15%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.22) 45%,
    rgba(0, 0, 0, 0.35) 60%,
    rgba(0, 0, 0, 0.5) 75%,
    rgba(0, 0, 0, 0.68) 88%,
    white 100%
  );
}

.platform-switcher__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  border-radius: 12px;
  opacity: 0;
  backdrop-filter: grayscale(1) brightness(0.78);
  -webkit-backdrop-filter: grayscale(1) brightness(0.78);
  background: rgba(0, 0, 0, 0.001);
  mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    white 0%,
    white 15%,
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 0.78) 45%,
    rgba(255, 255, 255, 0.65) 60%,
    rgba(255, 255, 255, 0.5) 75%,
    rgba(255, 255, 255, 0.32) 88%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    white 0%,
    white 15%,
    rgba(255, 255, 255, 0.9) 30%,
    rgba(255, 255, 255, 0.78) 45%,
    rgba(255, 255, 255, 0.65) 60%,
    rgba(255, 255, 255, 0.5) 75%,
    rgba(255, 255, 255, 0.32) 88%,
    transparent 100%
  );
  opacity: 1;
  transition: opacity 0.25s ease;
}

.platform-switcher__fade.is-active {
  opacity: 0;
}

/* About Us */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
}

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

.about-lead {
  font-size: 1.2rem;
  color: var(--color-text);
  margin: 0 0 1.25rem;
}

.about-content p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.about-image-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: 0.9rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 0;
  background: var(--color-surface-alt);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.service-card__image {
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.service-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  padding: 1.25rem 1.25rem 0;
  color: var(--color-accent);
}

.service-card p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Contact – aligned with site: dark surface, accent, same section/headline pattern */
.contact-section {
  background: #000000;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contact-section__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-section__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.contact-section__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-accent);
  margin: 0 0 0.35em;
  text-shadow: 0 0 40px rgba(255, 230, 0, 0.25);
}

.contact-section__tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin: 0 0 2.5rem;
  max-width: 36rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem 2rem;
}

.contact-form label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 0.4rem;
}

.contact-form__row {
  margin-bottom: 1.25rem;
}

.contact-form__row:last-of-type {
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 230, 0, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 230, 0, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-faint);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form__status {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
}

.contact-form__status--success {
  color: var(--color-text);
  background: rgba(255, 230, 0, 0.1);
  border: 1px solid rgba(255, 230, 0, 0.25);
}

.contact-form__status--error {
  color: var(--color-text);
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.25);
}

.contact-form__submit {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: var(--color-accent);
  color: var(--color-bg);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.contact-form__submit:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 230, 0, 0.2);
}

.contact-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-details__block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem 1.5rem;
}

.contact-details__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.contact-details__value {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

.contact-details__value a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.contact-details__address {
  font-style: normal;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-card {
    padding: 1.5rem 1.5rem;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* Footer */
/* Productions page: list of spotlight-style cards */
.case-studies-page {
  padding-top: var(--header-height);
  padding-bottom: 4rem;
}

.case-studies-hero {
  padding: 4rem 2rem 3rem;
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.case-studies-hero__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--color-accent);
}

.case-studies-hero__tagline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0;
}

.case-studies-list {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.case-study-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 2rem;
  padding: 2rem;
  border-radius: 12px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
  scroll-margin-top: var(--header-height);
}

.case-study-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.case-study-card__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 230, 0, 0.08);
  border: 1px solid rgba(255, 230, 0, 0.25);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  width: fit-content;
}

.case-study-card__title {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-study-card__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.case-study-card__meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}

.case-study-card__meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
  margin-bottom: 0.15rem;
}

.case-study-card__meta-value {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text);
}

.case-study-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.case-study-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.case-study-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.case-study-card__body h4 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-faint);
}

.case-study-card__body p,
.case-study-card__outcomes {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.case-study-card__outcomes {
  padding-left: 1.1rem;
}

.case-study-card__outcomes li + li {
  margin-top: 0.3rem;
}

.case-study-card__preview {
  flex: 0 0 42%;
  min-width: 0;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.case-study-card__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.case-study-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  width: fit-content;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 230, 0, 0.2);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.case-study-card__cta:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 230, 0, 0.25);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .case-study-card {
    flex-direction: column;
    gap: 1.5rem;
  }
  .case-study-card__preview {
    flex: 0 0 auto;
    max-width: none;
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .case-study-card__meta-row {
    grid-template-columns: 1fr;
  }
}

.case-studies-empty {
  padding: 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

.case-studies-empty code {
  font-size: 0.9em;
  background: rgba(255,255,255,0.08);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.site-footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}
