/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Ink */
  --c-ink: #1d1d1f;
  --c-ink-secondary: #48484a;
  --c-ink-tertiary: #6e6e73;
  --c-ink-inverse: #f5f5f7;

  /* Surfaces */
  --c-bg: #f5f5f7;
  --c-bg-warm: #eeeef0;
  --c-surface-glass: rgba(255, 255, 255, 0.55);
  --c-surface-glass-strong: rgba(255, 255, 255, 0.82);
  --c-surface-solid: #ffffff;

  /* Hairlines */
  --c-hairline: rgba(15, 23, 42, 0.08);
  --c-bevel-light: rgba(255, 255, 255, 0.9);

  /* Shadows — directional 3D depth (bottom-right edge darker, like brushed metal) */
  --shadow-card:
    3px 4px 8px -1px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.05),
    inset -1px -1px 2px rgba(15, 23, 42, 0.05);
  --shadow-card-hover:
    6px 10px 18px -2px rgba(15, 23, 42, 0.16),
    0 4px 12px rgba(15, 23, 42, 0.08),
    inset -1px -1px 2px rgba(15, 23, 42, 0.06);

  /* Ink shadows */
  --c-ink-shadow-light: rgba(15, 23, 42, 0.04);
  --c-ink-shadow-med: rgba(15, 23, 42, 0.28);
  --c-ink-shadow-strong: rgba(15, 23, 42, 0.35);
  --c-inner-highlight: rgba(255, 255, 255, 0.18);

  /* Brushed-metal shine (highlight + shadow ridge that sweeps on hover) */
  --c-shine-hi: rgba(255, 255, 255, 0.85);
  --c-shine-lo: rgba(15, 23, 42, 0.08);

  /* Brand */
  --c-accent: #0066b1;
  --c-accent-light: rgba(0, 102, 177, 0.08);
  --c-accent-hover: #005091;
  --c-accent-shadow: rgba(0, 102, 177, 0.25);
  --c-accent-shadow-hover: rgba(0, 102, 177, 0.35);

  /* Typography */
  --fs-hero: clamp(2.5rem, 5vw, 4rem);
  --fs-heading: clamp(1.5rem, 3vw, 2.25rem);
  --fs-sub: clamp(0.95rem, 1.5vw, 1.125rem);
  --fs-body: 0.875rem;

  --ff-heading: "Futura", "Trebuchet MS", Arial, sans-serif;
  --ff-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Layout */
  --radius: 20px;
  --radius-sm: 14px;
  --radius-pill: 9999px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.5, 1.6, 0.4, 1);
  --dur-fast: 140ms;
  --dur-med: 220ms;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
ul,
ol {
  list-style: none;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── Typography ───────────────────────────────────────────── */
.t-hero {
  font-family: var(--ff-heading);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--c-ink);
  text-rendering: geometricPrecision;
  font-feature-settings:
    "kern" 1,
    "liga" 1,
    "calt" 1;
}

.t-heading {
  font-family: var(--ff-body);
  font-size: var(--fs-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}

.t-sub {
  font-size: var(--fs-sub);
  line-height: 1.5;
  color: var(--c-ink-tertiary);
}

/* ── Glass surface (shared) ──────────────────────────────── */
.glass {
  background: var(--c-surface-glass-strong);
  border: 1px solid var(--c-hairline);
  box-shadow: inset 0 1px 0 0 var(--c-bevel-light);
}

/* ── Card (single reusable surface with brushed-metal hover) ── */
.card {
  position: relative;
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}

/* Brushed-metal ridge — a dim band + bright highlight + dim band that sweeps across on hover */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    var(--c-shine-lo) 45%,
    var(--c-shine-hi) 50%,
    var(--c-shine-lo) 55%,
    transparent 65%
  );
  transform: skewX(-18deg);
  transition: left 0.9s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Brushed-metal shine plays ONCE when the card crosses ~40% from top of viewport */
.card.shine-ready::before {
  left: 130%;
}

/* ── Button (reusable) ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 500;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-med) var(--ease-out);
}

/* Primary/accent: solid BMW blue + soft halo + same directional 3D depth
   shadow as cards (bottom-right outer drop + bottom-right inset edge darken). */
.btn--primary,
.btn--accent {
  background: var(--c-accent);
  color: white;
  border: none;
  outline: 2px solid rgba(0, 102, 177, 0.18);
  outline-offset: 3px; /* visible gap between ring and button surface */
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 var(--c-inner-highlight);
}

.btn--primary:hover,
.btn--accent:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow:
    var(--shadow-card-hover),
    inset 0 1px 0 var(--c-inner-highlight);
}

.btn--primary:hover .btn__icon,
.btn--accent:hover .btn__icon {
  transform: translateX(4px);
}

.btn--primary:active,
.btn--accent:active {
  transform: scale(0.97);
}

.btn--glass {
  color: var(--c-ink);
}

.btn--glass:hover {
  transform: translateY(-1px);
  background: var(--c-surface-solid);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--dur-med) var(--ease-out);
}

/* ── Section ──────────────────────────────────────────────── */
.section {
  padding: var(--space-xl) 0;
}

/* Brushed-metal grey surface. Three stacked layers:
   1. Highlight band — fixed to viewport vertical center; content scrolls
      under it, so each band appears to "catch" reflection at mid-screen.
   2. Procedural brushed grain — SVG turbulence inline, ~600 bytes, no network.
      baseFrequency '0.04 0.9' = horizontal scratches (anisotropic, like a
      real brushed steel sheet).
   3. Base color — unchanged --c-bg-warm so the rest of the cascade is intact. */
.section--alt {
  background:
    linear-gradient(
        180deg,
        transparent 36%,
        rgba(255, 255, 255, 0.08) 46%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0.08) 54%,
        transparent 64%
      )
      center center / 100% 100vh fixed,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.002 0.9' numOctaves='4' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
      repeat,
    var(--c-bg-warm);
  position: relative;
}

.section--alt::before,
.section--alt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  pointer-events: none;
  background: repeating-conic-gradient(
      var(--c-bg) 0% 25%,
      var(--c-bg-warm) 0% 50%
    )
    0 0 / 14px 14px;
}

.section--alt::before {
  top: 0;
}
.section--alt::after {
  bottom: 0;
}
.section--alt:last-of-type::after {
  display: none;
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.section__header .t-heading {
  margin-bottom: var(--space-sm);
}

/* ── Service detail (FAQ-style two-col) ──────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.service-detail__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-detail__number {
  font-size: var(--fs-hero);
  font-weight: 800;
  color: var(--c-accent);
  opacity: 0.2;
  line-height: 1;
}

.service-detail__text {
  font-size: var(--fs-sub);
  color: var(--c-ink-secondary);
  line-height: 1.7;
}

.service-detail__text strong {
  color: var(--c-ink);
  font-weight: 600;
}

.service-detail__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-detail__qa {
  padding: var(--space-lg);
}

.service-detail__qa h3 {
  font-size: var(--fs-sub);
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: var(--space-sm);
}

.service-detail__qa p {
  font-size: var(--fs-body);
  color: var(--c-ink-secondary);
  line-height: 1.6;
}

/* ── Process steps ───────────────────────────────────────── */
.process-steps {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.process-step {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-accent-light);
  font-size: var(--fs-body);
  color: var(--c-accent);
  font-weight: 500;
}

.process-step__arrow {
  color: var(--c-ink-tertiary);
  font-size: var(--fs-body);
}

.reveal-ready .process-step,
.reveal-ready .process-step__arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.reveal-ready .is-visible .process-step,
.reveal-ready .is-visible .process-step__arrow {
  opacity: 1;
  transform: translateX(0);
}

.reveal-ready .is-visible .process-step:nth-child(1) {
  transition-delay: 0.1s;
}
.reveal-ready .is-visible .process-step__arrow:nth-child(2) {
  transition-delay: 0.15s;
}
.reveal-ready .is-visible .process-step:nth-child(3) {
  transition-delay: 0.2s;
}
.reveal-ready .is-visible .process-step__arrow:nth-child(4) {
  transition-delay: 0.25s;
}
.reveal-ready .is-visible .process-step:nth-child(5) {
  transition-delay: 0.3s;
}
.reveal-ready .is-visible .process-step__arrow:nth-child(6) {
  transition-delay: 0.35s;
}
.reveal-ready .is-visible .process-step:nth-child(7) {
  transition-delay: 0.4s;
}
.reveal-ready .is-visible .process-step__arrow:nth-child(8) {
  transition-delay: 0.45s;
}
.reveal-ready .is-visible .process-step:nth-child(9) {
  transition-delay: 0.5s;
}

/* ── Card image variant (no padding, clipped corners) ───── */
.card--img {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

/* ── Inline CTA strip ────────────────────────────────────── */
.cta-strip {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--c-surface-solid);
  border: 1px solid var(--c-accent-light);
}

.cta-strip__text {
  font-size: var(--fs-sub);
  color: var(--c-ink-tertiary);
  margin-bottom: var(--space-md);
}

/* ── Separator ────────────────────────────────────────────── */
.separator {
  width: 48px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  margin: 0 auto var(--space-md);
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-hairline);
  box-shadow: 0 1px 4px var(--c-ink-shadow-light);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: var(--fs-sub);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--c-ink);
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-size: var(--fs-body);
  color: var(--c-ink-tertiary);
  transition: color var(--dur-med) var(--ease-out);
}

.nav__link:hover {
  color: var(--c-ink);
}

.nav__cta {
  padding: 0 20px;
  font-size: var(--fs-body);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm);
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition:
    transform var(--dur-med) var(--ease-out),
    opacity var(--dur-med) var(--ease-out);
}

/* Mobile menu */
.mobile-menu {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 76px var(--space-lg) var(--space-lg);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-hairline);
  box-shadow: 0 4px 12px var(--c-ink-shadow-light);
  flex-direction: column;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out),
    visibility 0s 300ms;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out),
    visibility 0s 0s;
}

.mobile-menu a:not(.btn) {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--c-ink-tertiary);
  transition: color var(--dur-med) var(--ease-out);
}

.mobile-menu a:not(.btn):hover {
  color: var(--c-ink);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: var(--space-3xl) 0 var(--space-xl);
  background: linear-gradient(180deg, #ffffff 0%, var(--c-bg) 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--c-surface-glass);
  font-size: var(--fs-body);
  color: var(--c-ink-tertiary);
  margin-bottom: var(--space-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
}

.hero__title {
  margin-bottom: var(--space-lg);
  color: var(--c-ink-inverse);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero__title em {
  font-style: normal;
  color: var(--c-accent);
}

.hero__sub {
  max-width: 560px;
  margin: 0 0 var(--space-xl);
  color: var(--c-ink-inverse);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 2px 16px rgba(0, 0, 0, 0.4);
}

/* ── Action row (shared flex pattern) ────────────────────── */
.actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__content .actions-row {
  justify-content: flex-start;
}

/* ── Stats strip ──────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
  max-width: 600px;
}

.stat {
  position: relative;
  text-align: left;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) calc(var(--space-lg) + 14px);
}

/* Vertical BMW-blue accent bar — sits left of the blue number, replaces the
   old horizontal underline. z-index:1 + transform:none override the inherited
   .card::before (brushed shine) so the bar paints above the glass background
   and isn't skewed. */
.stat::before {
  content: "";
  position: absolute;
  left: var(--space-lg);
  top: var(--space-lg);
  bottom: var(--space-lg);
  width: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  opacity: 0.75;
  transform: none;
  z-index: 1;
}

.stat__number {
  font-size: var(--fs-heading);
  font-weight: 700;
  color: var(--c-accent);
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

/* Lower the glass opacity for hero stat cards specifically (more see-through over the photo) */
.hero .stats .glass {
  background: rgba(255, 255, 255, 0.45);
}

.stat__label {
  color: var(--c-ink-tertiary);
  font-size: var(--fs-body);
}

/* ── Video section ────────────────────────────────────────── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.video-facade {
  position: relative;
  padding: 0;
  display: block;
  cursor: pointer;
}

.video-facade__aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--c-bg-warm);
  overflow: hidden;
}

.video-facade__aspect img {
  position: absolute;
  inset: 0;
  animation: img-fade-in 0.6s var(--ease-out) both;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  z-index: 1;
}

.video-facade__play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-ink-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px var(--c-ink-shadow-med);
  transition: transform var(--dur-med) var(--ease-spring);
}

.video-facade:hover .video-facade__play-icon {
  transform: scale(1.08);
}

.video-facade__play-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--c-ink-inverse);
  margin-left: 2px;
}

.video-facade__platform {
  font-size: var(--fs-body);
  color: var(--c-ink-inverse);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Model lists ──────────────────────────────────────────── */
.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.model-list__title {
  font-size: var(--fs-sub);
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: var(--space-md);
}

.model-list__items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.model-list__items li {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  color: var(--c-ink-secondary);
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.model-list__items li:hover {
  background: var(--c-accent-light);
  color: var(--c-ink);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--c-hairline);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: var(--fs-body);
  color: var(--c-ink-tertiary);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__link {
  font-size: var(--fs-body);
  color: var(--c-ink-tertiary);
  transition: color var(--dur-med) var(--ease-out);
}

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

/* ── Posts / Blog grid ────────────────────────────────────── */
.posts-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.posts-filter {
  padding: var(--space-sm) 20px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--c-ink-tertiary);
  transition:
    color var(--dur-med) var(--ease-out),
    background var(--dur-med) var(--ease-out);
}

.posts-filter:hover {
  color: var(--c-ink);
  background: var(--c-surface-solid);
}

.posts-filter.is-active {
  background: var(--c-accent);
  color: white;
  border: 1px solid var(--c-accent);
}

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

.post-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.post-card__image {
  width: calc(100% + var(--space-lg) * 2);
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md);
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card__tag {
  display: inline-block;
  width: fit-content;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-body);
  font-weight: 500;
  background: var(--c-accent-light);
  color: var(--c-accent);
}

.post-card__title {
  font-size: var(--fs-sub);
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.3;
}

.post-card__excerpt {
  font-size: var(--fs-body);
  color: var(--c-ink-secondary);
  line-height: 1.6;
}

.post-card__read {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--c-accent);
  margin-top: auto;
  transition: color var(--dur-med) var(--ease-out);
}

.post-card:hover .post-card__read {
  color: var(--c-accent-hover);
}

.post-card.is-hidden {
  display: none;
  opacity: 0;
  transform: scale(0.95);
}

.post-card.is-showing {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
}

/* ── Cookie consent banner ───────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: var(--space-md) var(--space-lg);
  background: var(--c-surface-solid);
  border-top: 1px solid var(--c-hairline);
  box-shadow: 0 -2px 10px var(--c-ink-shadow-light);
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-banner__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--c-accent);
}

.cookie-banner p {
  font-size: var(--fs-body);
  color: var(--c-ink-secondary);
  max-width: 600px;
}

.cookie-banner a {
  color: var(--c-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* ── Focus states (accessibility) ────────────────────────── */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.btn:focus-visible {
  outline-offset: 2px;
}

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-ready .card.reveal.is-visible:hover {
  transform: translateY(-4px);
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 var(--space-lg);
  }

  .hero__bg-img {
    object-position: 85% center;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
  .stat {
    padding: var(--space-md) var(--space-sm);
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }
  .posts-filter {
    min-height: 44px;
    padding: var(--space-sm) 20px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .models-grid {
    grid-template-columns: 1fr;
  }

  .hero__content .actions-row {
    flex-direction: column;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__links {
    justify-content: center;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  /* Burger → X animation */
  .nav__burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav__burger.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav__burger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .stat {
    padding: var(--space-sm) var(--space-xs);
  }
  .stat__number {
    font-size: var(--fs-sub);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* ─── Section hairline separator (editorial polish) ─────────── */
section + section {
  border-top: 1px solid rgba(0, 102, 177, 0.06);
}

/* ─── Image fade-in for video facades ──────────────────────── */
@keyframes img-fade-in {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* ─── Scroll-progress bar (CSS scroll-driven, no JS) ────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-progress-fill linear;
    animation-timeline: scroll(root);
  }
  @keyframes scroll-progress-fill {
    to {
      transform: scaleX(1);
    }
  }
}

/* ─── Reduced motion: kill decorative animation, keep functionality ── */
@media (prefers-reduced-motion: reduce) {
  .card::before {
    display: none;
  }
  .card,
  .card:hover,
  .btn,
  .btn:hover {
    transition: none;
  }
  .video-facade__aspect img {
    animation: none;
  }
  .scroll-progress {
    animation: none;
  }
  /* Kill the scrolling reflection — perceived as motion */
  .section--alt {
    background-attachment: scroll, scroll, scroll;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   BENTO GRID — asymmetric 2-row layout
   Row 1: big-left (cols 1-2) + small-right (col 3)
   Row 2: small-left (col 1) + big-right (cols 2-3)
═══════════════════════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-md);
}

.bento-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}

/* Hero variant: tighter min-height + same translucent glass tuning as the old stat cards.
   max-width matches the hero subtitle/title visual width so the bento doesn't poke out beyond the text. */
.hero-bento {
  margin-top: var(--space-xl);
  max-width: 660px;
}
.hero-bento .bento-cell { min-height: 130px; }
.hero-bento .bento-cell.glass { background: rgba(255, 255, 255, 0.45); }
.hero-bento .bento-cell__heading { font-size: var(--fs-body); }
.hero-bento .bento-cell__text { font-size: var(--fs-body); line-height: 1.5; }
.hero-bento .bento-cell__number { font-size: clamp(1.5rem, 3vw, 2.25rem); }

/* Auto-layout: 1st child big-left, 2nd small-right, 3rd small-left, 4th big-right */
.bento-grid > .bento-cell:nth-child(1) { grid-column: 1 / 3; }
.bento-grid > .bento-cell:nth-child(2) { grid-column: 3 / 4; }
.bento-grid > .bento-cell:nth-child(3) { grid-column: 1 / 2; }
.bento-grid > .bento-cell:nth-child(4) { grid-column: 2 / 4; }

.bento-cell--stat {
  text-align: center;
}

.bento-cell__heading {
  font-family: var(--ff-body);
  font-size: var(--fs-sub);
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: var(--space-sm);
}

.bento-cell__text {
  font-size: var(--fs-body);
  color: var(--c-ink-secondary);
  line-height: 1.65;
  max-width: 52ch;
}

.bento-cell__number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.bento-cell__label {
  font-size: var(--fs-body);
  color: var(--c-ink-tertiary);
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .bento-grid > .bento-cell {
    grid-column: 1 !important;
    min-height: auto;
    padding: var(--space-md);
  }
  /* Cap hero bento width on small screens so cards don't stretch edge-to-edge */
  .hero-bento {
    max-width: 460px;
    margin-top: var(--space-lg);
  }
  .hero-bento .bento-cell { min-height: auto; }
}
