/* ============================================================
   GALMAVECA — Home page stylesheet
   Loaded after styles.css. Sections:
     1. Hero (full-bleed bg image + navy overlay)
     2. Friction points grid
     3. Strategic Bridge
     4. End-to-End pillars
     5. Capabilities (compact cards + image carousel)
     6. Why Galmaveca? (comparison table / mobile tabs)
     7. Process video (two vertical clips + copy)
     8. Marquee strip (decorative band)
     9. Animated overview (horizontal clip)

   The final CTA lives in styles.css (.cta-flame) — capabilities.html
   uses it too and does not load this file. The process route
   (.gv-*) lives there too, for the same reason.
   ============================================================ */


/* ============================================================
   1. HERO — full-bleed photo under a navy scrim, text on top
   ============================================================ */
.hero {
  /* Mirrors .container's padding-inline so the hero text column lines up
     with every other section title. Overridden at >=768px below. */
  --hero-pad: var(--space-5);

  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-block: var(--space-16);
  overflow: hidden;
  isolation: isolate;
  /* Navy base — shows through before the photo loads, and behind any
     part of the frame the photo does not cover. Fixed to the brand navy in
     both themes: it is a photo scrim, not a themed surface. */
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Photo layer — full bleed, sits under everything */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Navy scrim as a vignette — densest behind the centered copy, easing off
   toward the left and right edges so the photo still breathes there.
   The linear layer darkens top and bottom so the sticky header and the
   seam with the next section stay clean. */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(15, 43, 70, 0.42) 0%,
      rgba(15, 43, 70, 0) 28%,
      rgba(15, 43, 70, 0) 74%,
      rgba(15, 43, 70, 0.38) 100%
    ),
    radial-gradient(
      ellipse 72% 65% at 50% 48%,
      rgba(15, 43, 70, 0.88) 0%,
      rgba(15, 43, 70, 0.78) 55%,
      rgba(15, 43, 70, 0.58) 100%
    );
}

.hero__inner {
  position: relative;
  width: 100%;
  /* Same box as .container, so the copy stays inside the site's grid */
  max-width: var(--container-max);
  padding-inline: var(--hero-pad);
  margin: 0 auto;
  z-index: 2;
}

/* Centered column — the photo runs full-bleed behind it now, so there is
   no reason to keep the right half clear */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

/* Eyebrow — orange */
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-6);
}

/* Headline — white over the scrim, accent span in orange */
.hero__headline {
  font-family: var(--font-sans);
  color: var(--color-white);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 auto;
  max-width: 820px;
}

.hero-accent {
  color: var(--color-accent);
  font-weight: inherit;
  letter-spacing: inherit;
}

/* Subtitle — white at 78% over the scrim */
.hero__subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  max-width: 620px;
  margin: var(--space-8) auto var(--space-10);
}

/* CTA — pill, solid orange (centered by the parent's text-align) */
.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.25rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background-color: #b8651a;
  border-color: #b8651a;
  color: var(--color-white);
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(217, 122, 27, 0.3);
}

/* Tablet — reduced padding, copy still reads over the scrim */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    /* Matches .container's padding-inline at this breakpoint */
    --hero-pad: var(--space-8);
    padding-block: var(--space-16);
  }
}

/* Desktop — roomier padding, wider centered column */
@media (min-width: 1024px) {
  .hero {
    --hero-pad: var(--space-8);
    padding-block: var(--space-20);
  }
  .hero__content,
  .hero__headline {
    max-width: 900px;
  }
}

/* Mobile — narrow frame, so the scrim goes near-solid for legibility */
@media (max-width: 767px) {
  .hero {
    min-height: 82vh;
    padding-block: var(--space-14) var(--space-20);
  }
  /* No room for a vignette falloff on a phone — darken evenly and let the
     photo read through the bottom, under the CTA. */
  .hero__bg::after {
    background:
      linear-gradient(
        180deg,
        rgba(15, 43, 70, 0.9) 0%,
        rgba(15, 43, 70, 0.88) 55%,
        rgba(15, 43, 70, 0.7) 100%
      );
  }
  .hero__cta {
    width: 100%;
  }
}


/* ============================================================
   2. FRICTION POINTS — 5 horizontal cards in a single row
   With staggered scroll-in entrance + hover micro-interactions
   ============================================================ */
.friction-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin: 3.75rem 0 0;
  padding: 0;
  list-style: none;
}

.friction-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: 1.75rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;

  /* Top stripe via inset shadow — no layout shift when hover thickens it.
     Navy in light mode; orange in dark, where navy on navy would vanish. */
  box-shadow: inset 0 3px 0 var(--color-card-stripe);

  /* Initial hidden state — Intersection Observer adds .animate-in to grid */
  opacity: 0;
  transform: translateY(20px);

  /* Hover transitions (kick in after entrance animation) */
  transition: transform 300ms ease, border-color 400ms ease-out, box-shadow 400ms ease-out;
}

/* Entrance animation triggered by .animate-in on the parent grid */
.friction-grid.animate-in .friction-card {
  animation: cardEnter 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.friction-grid.animate-in .friction-card:nth-child(1) { animation-delay: 0ms; }
.friction-grid.animate-in .friction-card:nth-child(2) { animation-delay: 100ms; }
.friction-grid.animate-in .friction-card:nth-child(3) { animation-delay: 200ms; }
.friction-grid.animate-in .friction-card:nth-child(4) { animation-delay: 300ms; }
.friction-grid.animate-in .friction-card:nth-child(5) { animation-delay: 400ms; }

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

/* Card hover — lift + thicker navy stripe + navy soft shadow + navy-tinted border */
.friction-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--shadow-rgb), 0.12);
  box-shadow: inset 0 4px 0 var(--color-card-stripe),
              0 12px 28px rgba(var(--shadow-rgb), 0.10);
}

/* Eyebrow — small uppercase navy tag at the top of each card (subtle by default) */
.friction-card__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(15, 43, 70, 0.6);
  margin: 0;
  line-height: 1;
  transition: color 400ms ease-out;
}

.friction-card:hover .friction-card__eyebrow {
  color: var(--color-heading);
}

/* Icon — light orange container with orange symbol; bouncy on hover */
.friction-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-accent-tint);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 400ms ease;
}

.friction-card:hover .friction-card__icon {
  transform: scale(1.05);
  background-color: var(--color-accent-tint-strong);
}

/* Inner SVG — slight rotation on hover */
.friction-card__icon svg {
  width: 22px;
  height: 22px;
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.friction-card:hover .friction-card__icon svg {
  transform: rotate(-5deg);
}

/* Title — navy on white bg. Reserves exactly 2 line boxes so the
   description below starts on the same baseline in every card,
   whether the title wraps to one line or two. */
.friction-card__title {
  --title-leading: 1.2;

  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  font-weight: 600;
  color: var(--color-heading);
  line-height: var(--title-leading);
  letter-spacing: -0.01em;
  margin: 0;
  min-height: calc(var(--title-leading) * 2em);
  flex-shrink: 0;
}

/* Description — carbon gray */
.friction-card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Tablet 768-1023 — 3 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .friction-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Mobile — horizontal scroll */
@media (max-width: 767px) {
  .friction-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 3rem calc(var(--space-5) * -1) 0;
    padding: 0.25rem var(--space-5) 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .friction-grid::-webkit-scrollbar { display: none; }

  .friction-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }
}

/* Reduced motion — disable all animations, show final state */
@media (prefers-reduced-motion: reduce) {
  .friction-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .friction-card:hover,
  .friction-card:hover .friction-card__number,
  .friction-card:hover .friction-card__icon,
  .friction-card:hover .friction-card__icon svg {
    transform: none;
  }

  .friction-card__number,
  .friction-card__icon,
  .friction-card__icon svg {
    transition: none !important;
  }
}


/* ============================================================
   3. STRATEGIC BRIDGE — header on top, points + flags below (compact)
   ============================================================ */
.bridge-section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 50% 45% at 95% 8%, rgba(217, 122, 27, 0.08) 0%, transparent 70%),
    /* Bottom-left wash softened: was rgba(var(--scrim-rgb), 0.18) with a 60%
       falloff, which read as a gray smudge in the corner. */
    radial-gradient(ellipse 95% 80% at 0% 100%, rgba(var(--scrim-rgb), 0.05) 0%, transparent 75%),
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(var(--scrim-rgb), 0.12) 0%, transparent 60%),
    var(--color-bg);
}

/* Compact section padding (~20-25% less than default .section) */
.section.bridge-section {
  padding-block: var(--space-12);
}

@media (min-width: 768px) {
  .section.bridge-section {
    padding-block: var(--space-16);
  }
}

/* Compact header — tighter h2 + reduced bottom margin */
.bridge-section__header {
  margin-bottom: var(--space-8);
  max-width: 760px;
}

.bridge-section__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
}

/* 2-column body — tighter top spacing */
.bridge__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-8);
}

@media (min-width: 1024px) {
  .bridge__columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

/* ---- LEFT: 4 key points list ---- */
.bridge__points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bridge__point {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
}

.bridge__point:first-child {
  border-top: none;
  padding-top: 0;
}

.bridge__point-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: var(--color-accent-tint);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Initial state for entry — icon hidden until parent becomes visible */
  scale: 0;
  rotate: -90deg;

  /* Hover responses (kick in after entry animation settles) */
  transition: scale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.35s ease;
}

.bridge__point-icon svg {
  width: 18px;
  height: 18px;
  rotate: 0deg;
  transition: rotate 0.3s ease-out;
}

/* Continuous very-subtle pulse on the check (starts after entries complete) */
.fade-in.is-visible .bridge__point-icon svg {
  animation: iconPulse 3s ease-in-out 1.1s infinite;
}

/* Entry: pop into place with overshoot, staggered per point */
.fade-in.is-visible .bridge__point-icon {
  animation: iconEntry 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.fade-in.is-visible .bridge__point:nth-child(1) .bridge__point-icon { animation-delay: 200ms; }
.fade-in.is-visible .bridge__point:nth-child(2) .bridge__point-icon { animation-delay: 320ms; }
.fade-in.is-visible .bridge__point:nth-child(3) .bridge__point-icon { animation-delay: 440ms; }
.fade-in.is-visible .bridge__point:nth-child(4) .bridge__point-icon { animation-delay: 560ms; }

@keyframes iconEntry {
  from { scale: 0; rotate: -90deg; }
  to   { scale: 1; rotate: 0deg; }
}

@keyframes iconPulse {
  0%, 100% { scale: 1; }
  50%      { scale: 1.04; }
}

/* Hover on the whole row */
.bridge__point:hover .bridge__point-icon {
  scale: 1.05;
  background-color: var(--color-accent-tint-strong);
}

.bridge__point:hover .bridge__point-icon svg {
  rotate: 8deg;
}

.bridge__point:hover .bridge__point-title {
  transform: translateX(4px);
}

.bridge__point-body {
  flex: 1;
  min-width: 0;
}

.bridge__point-title {
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 0.4rem;
  transition: transform 0.4s ease-out;
}

.bridge__point-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---- RIGHT: Flags-based visualization ---- */
.bridge__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.bridge-flags__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* USA main flag — compact circle */
.bridge-flags__main-flag {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 43, 70, 0.18), 0 0 0 1px rgba(15, 43, 70, 0.06);
}

.bridge-flags__main-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bridge-flags__main-label {
  margin-top: 0.6rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-heading);
  line-height: 1.2;
}

.bridge-flags__sub-label {
  margin-top: 0.2rem;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Inline stages with separator dots */
.bridge-flags__stages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.bridge-flags__stage-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

/* Connector — compact vertical arrow */
.bridge-flags__connector {
  width: 30px;
  height: 45px;
  margin: 0.85rem 0;
  flex-shrink: 0;
}

.bridge-flags__connector svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bridge-flags__travel-dot {
  fill: var(--color-accent);
  offset-path: path('M 15 2 L 15 36');
  offset-distance: 0%;
  animation: bridgeFlowDown 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(217, 122, 27, 0.7));
}

@keyframes bridgeFlowDown {
  0%   { offset-distance: 0%;  opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* LATAM block label spacing */
.bridge__viz .bridge-flags__block + .bridge-flags__connector + .bridge-flags__block .bridge-flags__main-label {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

/* LATAM grid — 3 cols x 2 rows (compact) */
.bridge-flags__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 280px;
}

.bridge-flags__country {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;

  /* Initial hidden state — staggered entrance triggered by .fade-in.is-visible */
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1), transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.is-visible .bridge-flags__country {
  opacity: 1;
  transform: scale(1);
}

.fade-in.is-visible .bridge-flags__country:nth-child(1) { transition-delay: 100ms; }
.fade-in.is-visible .bridge-flags__country:nth-child(2) { transition-delay: 180ms; }
.fade-in.is-visible .bridge-flags__country:nth-child(3) { transition-delay: 260ms; }
.fade-in.is-visible .bridge-flags__country:nth-child(4) { transition-delay: 340ms; }
.fade-in.is-visible .bridge-flags__country:nth-child(5) { transition-delay: 420ms; }
.fade-in.is-visible .bridge-flags__country:nth-child(6) { transition-delay: 500ms; }

.bridge-flags__small-flag {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background-color: var(--color-surface);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.bridge-flags__country:hover .bridge-flags__small-flag {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(217, 122, 27, 0.28);
  border-color: rgba(217, 122, 27, 0.35);
}

.bridge-flags__small-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bridge-flags__country-name {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-heading);
  text-align: center;
  line-height: 1.2;
}

/* ---- Stagger entrance for key points (driven by section's .fade-in/.is-visible) ---- */
.fade-in .bridge__point {
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.is-visible .bridge__point {
  opacity: 1;
  transform: translateX(0);
}

.fade-in.is-visible .bridge__point:nth-child(1) { transition-delay: 0ms; }
.fade-in.is-visible .bridge__point:nth-child(2) { transition-delay: 120ms; }
.fade-in.is-visible .bridge__point:nth-child(3) { transition-delay: 240ms; }
.fade-in.is-visible .bridge__point:nth-child(4) { transition-delay: 360ms; }

/* ---- Mobile: viz goes BELOW points (natural order — no flex order needed) ---- */
@media (max-width: 767px) {
  .bridge__viz {
    max-width: 360px;
  }
}

/* ---- Reduced motion: disable animations ---- */
@media (prefers-reduced-motion: reduce) {
  .bridge-flags__travel-dot {
    animation: none;
    offset-distance: 50%;
    opacity: 1;
  }
  .bridge-flags__country,
  .fade-in .bridge__point {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .bridge-flags__country:hover .bridge-flags__small-flag {
    transform: none;
  }
  .bridge__point-icon,
  .fade-in.is-visible .bridge__point-icon,
  .fade-in.is-visible .bridge__point-icon svg {
    animation: none !important;
    transition: none !important;
    scale: 1 !important;
    rotate: 0deg !important;
  }
  .bridge__point:hover .bridge__point-icon,
  .bridge__point:hover .bridge__point-icon svg,
  .bridge__point:hover .bridge__point-title {
    scale: 1;
    rotate: 0deg;
    background-color: #fef3e7;
    transform: none;
  }
}


/* ============================================================
   5. CAPABILITIES — compact cards + image carousel.
   The full .service-row layout moved to capabilities.css when the five
   services got their own page.
   ============================================================ */

/* --- Compact cards: same shape and hover language as .friction-card --- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin: 3.75rem 0 0;
  padding: 0;
  list-style: none;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  /* Extra bottom padding reserves the corner the arrow sits in */
  padding: 1.75rem 1.75rem 2.75rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: inset 0 3px 0 var(--color-card-stripe);
  text-decoration: none;
  transition: transform 300ms ease, border-color 400ms ease-out, box-shadow 400ms ease-out;
}

.svc-card:hover,
.svc-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(var(--shadow-rgb), 0.12);
  box-shadow: inset 0 4px 0 var(--color-card-stripe),
              0 12px 28px rgba(var(--shadow-rgb), 0.10);
}

.svc-card__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(15, 43, 70, 0.6);
  line-height: 1;
  transition: color 400ms ease-out;
}

.svc-card:hover .svc-card__num {
  color: var(--color-heading);
}

.svc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: var(--color-accent-tint);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 400ms ease;
}

.svc-card:hover .svc-card__icon {
  transform: scale(1.05);
  background-color: var(--color-accent-tint-strong);
}

.svc-card__icon svg {
  width: 24px;
  height: 24px;
}

/* Two reserved lines so the descriptions line up across all five cards */
.svc-card__title {
  --title-leading: 1.2;

  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  font-weight: 600;
  color: var(--color-heading);
  line-height: var(--title-leading);
  letter-spacing: -0.01em;
  margin: 0;
  min-height: calc(var(--title-leading) * 2em);
  flex-shrink: 0;
}

.svc-card__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Out of the flow, so five equal-height cards do not each reserve a line
   of empty space under the description for an arrow that only shows on hover */
.svc-card__arrow {
  position: absolute;
  right: 1.75rem;
  bottom: 1.4rem;
  font-size: var(--text-lg);
  line-height: 1;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.svc-card:hover .svc-card__arrow,
.svc-card:focus-visible .svc-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.svc-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-12);
}

/* Tablet — 3 columns, same as the friction grid */
@media (min-width: 768px) and (max-width: 1023px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Mobile — horizontal scroll with snap, matching the friction cards */
@media (max-width: 767px) {
  .svc-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 3rem calc(var(--space-5) * -1) 0;
    padding: 0.25rem var(--space-5) 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .svc-grid::-webkit-scrollbar { display: none; }

  .svc-grid > li {
    flex: 0 0 260px;
    scroll-snap-align: start;
  }

  .svc-more .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card,
  .svc-card__icon,
  .svc-card__arrow {
    transition: none;
  }

  .svc-card:hover {
    transform: none;
  }

  .svc-card:hover .svc-card__icon {
    transform: none;
  }

  .svc-card__arrow {
    opacity: 1;
    transform: none;
  }
}


/* ------------------------------------------------------------
   5b. CAPABILITIES CAROUSEL
   scroll-snap track; main.js only moves scrollLeft, so the whole
   thing still scrolls and snaps natively if the JS never runs.
   ------------------------------------------------------------ */
.svc-carousel {
  position: relative;
  margin-top: var(--space-16);
}

.svc-carousel__track {
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
}

.svc-carousel__track::-webkit-scrollbar { display: none; }

/* Mobile — one slide at a time */
.svc-carousel__slide {
  flex: 0 0 100%;
  /* start, not center: every slide then sits flush left with the next one
     peeking in on the right, instead of slivers on both sides */
  scroll-snap-align: start;
}

.svc-carousel__link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  max-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-bg-soft-surface);
  text-decoration: none;
}

.svc-carousel__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.svc-carousel__link:hover img,
.svc-carousel__link:focus-visible img {
  transform: scale(1.03);
}

/* Caption on a dark gradient so it reads over any photo */
/* The box spans the whole photo so the gradient can be measured
   against it: `to top` with the last stop at 35% means the wash
   only ever touches the bottom third. */
.svc-carousel__caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  color: var(--color-white);
  background: linear-gradient(
    to top,
    rgba(10, 31, 51, 0.88) 0%,
    rgba(10, 31, 51, 0.45) 22%,
    transparent 35%
  );
}

/* Arrows — navy circles, orange on hover */
.svc-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-fast), transform var(--transition-fast),
              opacity var(--transition-fast);
}

.svc-carousel__arrow:hover,
.svc-carousel__arrow:focus-visible {
  background-color: var(--color-accent);
  transform: translateY(-50%) scale(1.06);
}

.svc-carousel__arrow svg {
  width: 20px;
  height: 20px;
}

.svc-carousel__arrow--prev { left: 16px; }
.svc-carousel__arrow--next { right: 16px; }

/* Dots */
.svc-carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: 1.5rem;
}

.svc-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(15, 43, 70, 0.22);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.svc-carousel__dot:hover {
  background-color: rgba(15, 43, 70, 0.45);
}

.svc-carousel__dot.is-active {
  background-color: var(--color-accent);
  transform: scale(1.25);
  cursor: default;
}

/* Tablet — wide slide, the next one already peeking in */
@media (min-width: 768px) {
  .svc-carousel__slide {
    flex: 0 0 72%;
  }

  .svc-carousel__link {
    aspect-ratio: 16 / 9;
    max-height: 440px;
  }

  /* The arrows track the right edge of the main slide, so they stay
     16px inside it instead of drifting out to the track border. */
  .svc-carousel__arrow--next { right: calc(28% + 16px); }
}

/* Desktop — 62% leaves a generous slice of the next slide showing */
@media (min-width: 1024px) {
  .svc-carousel__slide {
    flex: 0 0 62%;
  }

  .svc-carousel__arrow--next { right: calc(38% + 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .svc-carousel__track {
    scroll-behavior: auto;
  }

  .svc-carousel__link:hover img {
    transform: none;
  }
}


/* ============================================================
   6. WHY GALMAVECA — comparison table (desktop) / tabs (mobile)
   Replaced the old .vs-grid / .vs-card layout.
   ============================================================ */
.cmp {
  position: relative;
  max-width: 1000px;
  margin: var(--space-12) auto 0;
  /* Room for the Galmaveca column to overhang the panel top and bottom */
  padding-block: 12px;
}


/* ------------------------------------------------------------
   Desktop table
   ------------------------------------------------------------ */
.cmp__table-wrap {
  display: none;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cmp__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Column headers — small, wide-tracked, muted */
.cmp__head {
  padding: var(--space-6) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  vertical-align: bottom;
}

.cmp__head--label {
  width: 34%;
}

/* The Galmaveca column: navy from top to bottom, a little wider, and
   overhanging the panel by 12px at each end. The overhang is drawn by
   pseudo-elements on the first and last cells of the column, so it always
   lines up with the column no matter how the table resolves its widths. */
.cmp__head--us,
.cmp__cell--us {
  position: relative;
  width: 20%;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.cmp__head--us {
  padding-block: var(--space-6);
}

.cmp__head--us::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 14px;
  background-color: var(--color-primary);
  border-radius: 12px 12px 0 0;
}

.cmp__table tbody tr:last-child .cmp__cell--us::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 14px;
  background-color: var(--color-primary);
  border-radius: 0 0 12px 12px;
}

.cmp__brand {
  display: block;
  font-size: var(--text-lg);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-wide);
  text-transform: none;
  color: var(--color-white);
}

.cmp__badge {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-accent);
  border-radius: var(--radius-pill);
}

/* Row label — charcoal, medium, left aligned */
.cmp__row-label {
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  text-align: left;
  line-height: var(--leading-snug);
}

.cmp__cell {
  padding: var(--space-5) var(--space-3);
  text-align: center;
  vertical-align: middle;
}

/* Hairlines between rows, drawn only on the neutral cells so they do not
   cut across the navy column */
.cmp__table tbody tr + tr .cmp__row-label,
.cmp__table tbody tr + tr .cmp__cell:not(.cmp__cell--us) {
  border-top: 1px solid var(--color-border);
}

.cmp__table tbody tr:hover .cmp__row-label,
.cmp__table tbody tr:hover .cmp__cell:not(.cmp__cell--us) {
  background-color: var(--color-bg-soft-surface);
}


/* ------------------------------------------------------------
   Marks
   ------------------------------------------------------------ */
.cmp__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  /* Middle, not baseline: otherwise a bare circle and a circle followed by
     the word "Partial" sit at different heights in the same row */
  vertical-align: middle;
}

.cmp__mark svg {
  width: 12px;
  height: 12px;
}

/* Yes — filled orange, white check */
.cmp__mark--yes {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* No — very light grey circle, grey cross */
.cmp__mark--no {
  background-color: var(--color-bg-soft);
  color: #9aa0a8;
}

/* Partial — outlined circle with the word beside it */
.cmp__mark--partial {
  border: 1.5px solid #c9ced6;
  background-color: transparent;
}

.cmp__partial {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  vertical-align: middle;
}

.cmp__partial-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Entrance — the orange checks pop in one by one */
.cmp__mark--yes {
  transform: scale(1);
}

.fade-in .cmp__mark--yes {
  transform: scale(0.4);
  opacity: 0;
}

.fade-in.is-visible .cmp__mark--yes {
  animation: cmpCheckIn 420ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.fade-in.is-visible .cmp__table tbody tr:nth-child(1) .cmp__mark--yes,
.fade-in.is-visible .cmp__list--own li:nth-child(1) .cmp__mark--yes { animation-delay: 80ms; }
.fade-in.is-visible .cmp__table tbody tr:nth-child(2) .cmp__mark--yes,
.fade-in.is-visible .cmp__list--own li:nth-child(2) .cmp__mark--yes { animation-delay: 160ms; }
.fade-in.is-visible .cmp__table tbody tr:nth-child(3) .cmp__mark--yes,
.fade-in.is-visible .cmp__list--own li:nth-child(3) .cmp__mark--yes { animation-delay: 240ms; }
.fade-in.is-visible .cmp__table tbody tr:nth-child(4) .cmp__mark--yes,
.fade-in.is-visible .cmp__list--own li:nth-child(4) .cmp__mark--yes { animation-delay: 320ms; }
.fade-in.is-visible .cmp__table tbody tr:nth-child(5) .cmp__mark--yes,
.fade-in.is-visible .cmp__list--own li:nth-child(5) .cmp__mark--yes { animation-delay: 400ms; }
.fade-in.is-visible .cmp__table tbody tr:nth-child(6) .cmp__mark--yes,
.fade-in.is-visible .cmp__list--own li:nth-child(6) .cmp__mark--yes { animation-delay: 480ms; }

@keyframes cmpCheckIn {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}


/* ------------------------------------------------------------
   Closing line + CTA
   ------------------------------------------------------------ */
.cmp__close {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-12);
  text-align: center;
}

.cmp__close-text {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  color: var(--color-heading);
  margin: 0;
}


/* ------------------------------------------------------------
   Mobile — navy card + rival tabs, no horizontal scrolling
   ------------------------------------------------------------ */
.cmp__mobile {
  display: block;
}

.cmp__own {
  padding: var(--space-8) var(--space-6);
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.cmp__own .cmp__brand {
  font-size: var(--text-xl);
}

.cmp__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.cmp__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
}

.cmp__list--own li {
  color: rgba(255, 255, 255, 0.95);
}

.cmp__tabs {
  margin-top: var(--space-8);
}

.cmp__tablist {
  display: flex;
  gap: var(--space-2);
  padding: 5px;
  background-color: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.cmp__tab {
  flex: 1;
  padding: var(--space-3) var(--space-2);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.cmp__tab:hover {
  color: var(--color-heading);
}

.cmp__tab.is-active {
  background-color: var(--color-primary);
  color: var(--color-white);
  cursor: default;
}

.cmp__panel {
  padding: var(--space-6);
  margin-top: var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.cmp__panel .cmp__list {
  margin-top: 0;
}

.cmp__panel .cmp__list li {
  color: var(--color-text);
  justify-content: space-between;
}

/* Benefit name left, status right. The label is always the last child, so
   reordering it to the front keeps every name starting at the same x —
   otherwise the wider "Partial" mark pushes its row's text out of line. */
.cmp__panel .cmp__list li > :last-child {
  order: -1;
  margin-right: var(--space-4);
}

/* Swap to the table from 768px up */
@media (min-width: 768px) {
  .cmp__mobile {
    display: none;
  }

  .cmp__table-wrap {
    display: block;
  }
}

@media (min-width: 1024px) {
  .cmp__row-label {
    font-size: var(--text-base);
    padding-inline: var(--space-8);
  }

  .cmp__head--us .cmp__brand {
    font-size: var(--text-xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in .cmp__mark--yes,
  .fade-in.is-visible .cmp__mark--yes {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   7. PROCESS VIDEO — copy beside a vertical clip
   The interactive route (.gv-*) lives in styles.css and is used
   by how-we-work.html; this section only points at it.
   ============================================================ */
.vid-process {
  background-color: #f5f6f8;
  padding-block: var(--space-16);
}

.vid-process__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Copy, centred above the clips --- */
.vid-process__copy {
  width: 100%;
  max-width: 720px;
  text-align: center;
  margin-bottom: var(--space-12);
}

.vid-process__title {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  color: var(--color-accent);
  margin: 0 0 var(--space-6);
}

.vid-process__text {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  margin: 0 auto var(--space-4);
  max-width: 68ch;
}

/* Keeps its orange rule, so it stays left-aligned inside the
   centred column rather than floating under a centred bar */
.vid-process__closing {
  display: inline-block;
  margin: var(--space-6) 0 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-accent);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  text-align: left;
  color: var(--color-heading);
}

.vid-process__btn {
  margin-top: var(--space-8);
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.vid-process__btn:hover,
.vid-process__btn:focus-visible {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* --- Two vertical clips side by side --- */
.vid-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px);
  justify-content: center;
  gap: var(--space-8);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vid-item {
  min-width: 0;
}

.vid-item__label {
  margin: 0 0 12px;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-accent);
}

/* The size lives here and nothing later overrides it;
   justify-self keeps the grid from stretching the box. */
.vid-item__media {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-primary-deep);
  box-shadow: 0 20px 50px rgba(15, 43, 70, 0.18);
}

.vid-item__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background-color: var(--color-primary-deep);
}

/* Two abreast once both clips fit side by side */
@media (min-width: 768px) {
  .vid-grid {
    grid-template-columns: repeat(2, minmax(0, 300px));
  }

  .vid-item__media {
    max-width: 300px;
  }
}


/* ============================================================
   8. MARQUEE STRIP — decorative band between The Problem and
   The Solution. Full-bleed, fixed height, loops on its own.
   ============================================================ */
.marquee {
  position: relative;
  height: 150px;
  padding: 0;
  overflow: hidden;            /* keeps the moving row off the page scroll */
  background-color: #0f2b46;
}

.marquee__viewport {
  height: 100%;
  overflow: hidden;
}

/* Fades at both ends so the images do not get cut off flat */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, #0f2b46 0%, rgba(15, 43, 70, 0) 100%);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, #0f2b46 0%, rgba(15, 43, 70, 0) 100%);
}

/* Two identical rows sit side by side; sliding the track by half
   its width swaps copy 1 for copy 2 at the exact same offset. */
.marquee__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: marqueeScroll 40s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

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

.marquee__row {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0 4px 0 0;          /* keeps the seam spacing even */
  height: 100%;
  list-style: none;
}

.marquee__item {
  flex: 0 0 220px;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-primary-deep);
}

.marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) brightness(0.9);
  transition: filter 400ms ease;
}

.marquee__item:hover img {
  filter: none;
}

@media (min-width: 768px) {
  .marquee { height: 180px; }
  .marquee__item { flex-basis: 260px; }
}

@media (min-width: 1024px) {
  .marquee { height: 220px; }
  .marquee__item { flex-basis: 320px; }
}

/* Discreet entry to the full gallery, pinned bottom-right */
.marquee__link {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-4);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  color: var(--color-white);
  background-color: rgba(10, 31, 51, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--transition-fast), border-color var(--transition-fast),
              color var(--transition-fast);
}

.marquee__link:hover,
.marquee__link:focus-visible {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* Reduced motion — hold the strip still, images stay visible */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }

  .marquee__item img,
  .marquee__link {
    transition: none;
  }
}


/* ============================================================
   9. ANIMATED OVERVIEW — horizontal clip on a navy band
   Sits between The Solution and Capabilities, both of which are
   white, so the navy gives the page a beat of contrast.
   ============================================================ */
.anim-video {
  background:
    radial-gradient(ellipse 60% 70% at 85% 8%, rgba(217, 122, 27, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(42, 95, 143, 0.28) 0%, transparent 65%),
    var(--color-primary);
  color: var(--color-on-emphasis);
  padding-block: var(--space-16);
}

.anim-video__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.anim-video__header {
  max-width: 720px;
  margin-bottom: var(--space-10);
  text-align: center;
}

.anim-video__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: 0.8125rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.anim-video__title {
  margin: 0;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
  color: var(--color-white);
}

/* 16:9 box, capped so the clip never dominates the page.
   justify-self/margin keep it centred; the ratio holds whatever
   the source file's own dimensions are. */
.anim-video__frame {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-primary-deep);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.anim-video__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background-color: var(--color-primary-deep);
}

@media (max-width: 767px) {
  .anim-video {
    padding-block: var(--space-12);
  }

  .anim-video__header {
    margin-bottom: var(--space-8);
  }
}
