/* BLING AI shared motion layer. Loaded after route styles so every page uses
   the same 2D language without changing the documented typography/spacing. */
:root {
  --rv-motion-ease: cubic-bezier(.22, .61, .36, 1);
  --rv-motion-fast: 260ms;
  --rv-motion-base: 620ms;
  --rv-motion-x: 0;
  --rv-motion-y: 0;
  --social-primary: #149dff;
  --social-primary-dark: #0874bb;
  --social-primary-soft: rgba(20, 157, 255, .12);
  --social-on-primary: #ffffff;
  --social-surface: rgba(247, 251, 255, .9);
  --social-border: rgba(20, 157, 255, .42);
  --social-shadow: rgba(0, 21, 45, .18);
}

html { scroll-behavior: auto !important; }
*, *::before, *::after { -webkit-overflow-scrolling: auto !important; }
body { overflow-x: clip; }

/* Compact contact dock stays out of the opening viewport until the banner has
   been passed, keeping the initial composition quiet on every route. */
.social-dock {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--social-border);
  border-radius: 16px;
  background: var(--social-surface);
  box-shadow: 0 16px 42px var(--social-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.92);
  transition: opacity 320ms var(--rv-motion-ease),
              visibility 320ms var(--rv-motion-ease),
              transform 320ms var(--rv-motion-ease);
}
.social-dock.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.social-dock a,
.social-dock button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(20, 157, 255, .24);
  border-radius: 10px;
  background: rgba(255, 255, 255, .68);
  color: var(--social-primary-dark);
  text-decoration: none;
  transition: transform 220ms var(--rv-motion-ease),
              background-color 220ms var(--rv-motion-ease),
              border-color 220ms var(--rv-motion-ease),
              color 220ms var(--rv-motion-ease),
              box-shadow 220ms var(--rv-motion-ease);
}
.social-dock a:hover,
.social-dock a:focus-visible,
.social-dock button:hover,
.social-dock button:focus-visible {
  border-color: var(--social-primary);
  background: var(--social-primary);
  color: var(--social-on-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(20, 157, 255, .22);
}
.social-dock .social-dock-top {
  border-color: transparent;
  background: linear-gradient(145deg, var(--social-primary), var(--social-primary-dark));
  color: var(--social-on-primary);
  box-shadow: 0 8px 20px rgba(20, 157, 255, .25);
}
.social-dock svg { width: 18px; height: 18px; fill: currentColor; }
.social-dock .social-dock-wordmark {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -.04em;
}

@media (max-width: 800px) {
  .social-dock {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    gap: 5px;
    padding: 6px;
    border-radius: 13px;
  }
  .social-dock a,
  .social-dock button {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .social-dock svg { width: 16px; height: 16px; }
  .social-dock .social-dock-wordmark { font-size: 10px; }
}

/* Page entrance uses only compositor-friendly properties. */
body.rv-page-enter > * {
  animation: rv-page-enter 720ms var(--rv-motion-ease) both;
}
@keyframes rv-page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Shared two-axis reveal. Content stays visible when JS is unavailable. */
.rv-motion-target {
  --rv-reveal-x: 0px;
  --rv-reveal-y: 24px;
  opacity: 1;
  transform: none;
}
.js .rv-motion-target {
  opacity: 0;
  transform: translate3d(var(--rv-reveal-x), var(--rv-reveal-y), 0);
  transition: opacity var(--rv-motion-base) var(--rv-motion-ease),
              transform var(--rv-motion-base) var(--rv-motion-ease);
}
.js .rv-motion-target.rv-motion-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.rv-motion-target[data-reveal="left"] { --rv-reveal-x: -34px; --rv-reveal-y: 8px; }
.rv-motion-target[data-reveal="right"] { --rv-reveal-x: 34px; --rv-reveal-y: 8px; }
.rv-motion-target[data-reveal="up"] { --rv-reveal-x: 0; --rv-reveal-y: 30px; }

/* Light pointer field for hero and category media. */
.rv-parallax-field { transform: translate3d(calc(var(--rv-motion-x) * 1px), calc(var(--rv-motion-y) * 1px), 0); transition: transform 900ms var(--rv-motion-ease); }
.rv-parallax-field[data-rv-depth="2"] { transform: translate3d(calc(var(--rv-motion-x) * .42px), calc(var(--rv-motion-y) * .42px), 0); }
.rv-parallax-field[data-rv-depth="3"] { transform: translate3d(calc(var(--rv-motion-x) * .18px), calc(var(--rv-motion-y) * .18px), 0); }

/* Cards respond in both axes. Hover is an enhancement; keyboard/touch remain
   fully usable and fall back to a small lift. */
.rv-tilt-card {
  --rv-tilt-x: 0deg;
  --rv-tilt-y: 0deg;
  --rv-card-y: 0px;
  transform: translate3d(0, var(--rv-card-y), 0) perspective(900px) rotateX(var(--rv-tilt-x)) rotateY(var(--rv-tilt-y));
  transform-origin: center;
  transition: transform var(--rv-motion-fast) var(--rv-motion-ease), box-shadow var(--rv-motion-fast) var(--rv-motion-ease), border-color var(--rv-motion-fast) var(--rv-motion-ease);
  will-change: transform;
}
.rv-tilt-card:hover,
.rv-tilt-card:focus-within { --rv-card-y: -6px; }
.rv-tilt-card.rv-tilt-active { transition-duration: 90ms; }
.js .rv-motion-target.rv-motion-visible.rv-tilt-card {
  transform: translate3d(0, var(--rv-card-y), 0) perspective(900px) rotateX(var(--rv-tilt-x)) rotateY(var(--rv-tilt-y));
}

/* Primary hero CTA: a calm two-second pulse for the highlighted action. */
.hero-actions .btn-dark {
  animation: rv-cta-pulse 2s ease-in-out infinite;
  will-change: transform;
}
.hero--static .hero-actions .btn-dark { animation: none !important; }
@keyframes rv-cta-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.035); }
}

/* Keep the compact header CTA on one readable line. Sized to hug the label
   now that the trailing arrow is gone. */
.site-header .header-actions .btn-outline.btn-sm {
  width: 124px;
  min-width: 124px;
  padding-inline: 20px;
  gap: 0;
  white-space: nowrap;
}

/* The right-hand benefits column is centered as one typographic block; the
   title stays on one line at desktop widths while remaining fluid on mobile. */
.why-copy { text-align: center; }
.why-copy .section-title { margin-inline: auto; white-space: nowrap; }
.why-copy .accent-line { margin-inline: auto; }
.why-copy .benefit-list li { align-items: center; }
.why-copy .benefit-list li > div { flex: 1 1 auto; text-align: center; }
.why-copy .benefit-list p { margin-inline: auto; }
.why-line { display: none; }

/* Restore the dark technology canvas across the homepage. */
:root {
  --rv-ink: #f5fbff;
  --rv-body: #c7d8e8;
  --rv-muted: #91abc1;
  --rv-soft: #06152d;
  --rv-tint: #0a2444;
  --rv-line: rgba(133, 190, 231, .28);
}
html,
body {
  background: #02050d !important;
  color: var(--rv-body);
}
.section,
.services,
.gallery,
.partner-section,
.process-section,
.why-section,
.contact-section {
  background: linear-gradient(145deg, #06152d 0%, #071d3b 52%, #041126 100%) !important;
  color: var(--rv-body);
}
.section:nth-of-type(even),
.process-section,
.contact-section {
  background: linear-gradient(145deg, #020817 0%, #06152d 54%, #082044 100%) !important;
}
.robot-card,
.service-card,
.news-card {
  border-color: var(--rv-line);
  background: linear-gradient(155deg, rgba(10, 36, 68, .94), rgba(3, 14, 31, .98));
  color: var(--rv-body);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}
.process-num {
  background: #071426;
  color: var(--rv-accent);
}
.contact-form {
  border-color: var(--rv-line);
  background: rgba(7, 22, 44, .78);
}
.form-field input,
.form-field textarea {
  border-color: var(--rv-line);
  background: rgba(2, 8, 20, .6);
  color: var(--rv-ink);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #63819a;
}

/* Keep legal contact details aligned with the existing contact links. */
.contact-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(100%, 260px);
}
.contact-meta > div small {
  color: var(--rv-muted);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.contact-meta > div strong {
  color: var(--rv-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

/* Keep ambient motion sparse and pause it outside the viewport. */
.rv-ambient { animation-play-state: paused !important; }
.rv-ambient.rv-motion-visible,
.rv-ambient.is-motion-active { animation-play-state: running !important; }

/* Reduced-motion preferences never disable the product's motion system. */
html.motion-force .rv-ambient,
html.motion-force .rv-ambient.rv-motion-visible,
html.motion-force .rv-ambient.is-motion-active,
html.motion-force .partner-track { animation-play-state: running !important; }

/* Shared preference control injected into each header. */
.rv-motion-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(132, 208, 255, .42);
  border-radius: 999px;
  background: rgba(2, 8, 20, .34);
  color: #dff4ff;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.2;
  transition: color var(--rv-motion-fast) var(--rv-motion-ease), background-color var(--rv-motion-fast) var(--rv-motion-ease), border-color var(--rv-motion-fast) var(--rv-motion-ease);
}
.rv-motion-toggle:hover,
.rv-motion-toggle[aria-pressed="true"] { border-color: #83d5ff; background: rgba(20, 157, 255, .2); color: #fff; }

.rv-motion-disabled *,
.motion-disabled * {
  animation-play-state: paused !important;
  transition-duration: 0ms !important;
  scroll-behavior: auto !important;
}
.rv-motion-disabled .rv-motion-target,
.motion-disabled .rv-motion-target,
.rv-motion-disabled .rv-parallax-field,
.motion-disabled .rv-parallax-field,
.rv-motion-disabled .rv-tilt-card,
.motion-disabled .rv-tilt-card {
  opacity: 1 !important;
  transform: none !important;
  will-change: auto;
}

@media (max-width: 800px) {
  .rv-motion-toggle { min-height: 32px; padding-inline: 8px; font-size: 9px; }
  .rv-parallax-field { transition-duration: 0ms; }
  .rv-tilt-card { transform: translate3d(0, var(--rv-card-y), 0); }
  .why-copy .section-title { white-space: normal; }
}

@media (min-width: 1200px) {
  .header-inner { grid-template-columns: 112px minmax(0, 1fr) auto !important; }
  .header-actions { min-width: 0; width: auto; }
}

/* Shared six-category media and enquiry layout. */
.category-experience {
  width: 100%;
  padding: 80px 0;
  background: #000;
  color: #c7d8e8;
}
.category-experience-inner {
  width: min(86vw, var(--rv-container));
  margin-inline: auto;
}
.category-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 38px;
}
.category-section-heading .subpage-kicker { grid-column: 1 / -1; margin-bottom: -12px; }
.category-section-heading h2,
.category-contact-form h2 {
  margin: 0;
  color: #f5fbff;
  font-family: RV-Montserrat, Montserrat, sans-serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.28;
}
.category-section-heading > p:last-child {
  max-width: 420px;
  justify-self: end;
  color: #91abc1;
  font-size: 15px;
  line-height: 1.5;
}
.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(180px, 1fr);
  gap: 24px;
  align-items: start;
}
.experience-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.experience-image {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(133, 190, 231, .28);
  border-radius: 12px;
  background: #071426;
}
.experience-image img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  transition: transform .6s var(--rv-motion-ease), filter .6s var(--rv-motion-ease);
}
.experience-image:hover img { transform: scale(1.05); filter: saturate(1.12); }
.experience-image figcaption {
  padding: 10px 12px 12px;
  color: #c7d8e8;
  font-size: 12px;
  line-height: 1.4;
}
.experience-videos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.experience-video {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(133, 190, 231, .28);
  border-radius: 10px;
  background: #071426;
}
.experience-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: .82;
}
.experience-video span {
  display: block;
  padding: 8px 10px 9px;
  color: #a9e2ff;
  font-size: 10px;
  letter-spacing: .04em;
  line-height: 1.4;
  text-transform: uppercase;
}
.category-contact-form {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 36px;
  margin-top: 80px;
  padding: 32px;
  border: 1px solid rgba(133, 190, 231, .28);
  border-radius: 14px;
  background: linear-gradient(145deg, #06152d, #020817);
}
.category-contact-section {
  width: 100%;
  /* Matches the padding-block rhythm of .category-process above it. */
  padding: 56px 0 80px;
  background: #000;
}
.category-contact-inner {
  width: min(86vw, var(--rv-container, 1280px));
  margin-inline: auto;
}
.category-contact-section .category-contact-form { margin-top: 0; }
.category-contact-form .subpage-kicker { margin: 0 0 12px; }
.category-contact-form h2 { font-size: 32px; }
.category-contact-form > div:first-child > p:last-child { margin-top: 16px; color: #91abc1; font-size: 15px; line-height: 1.5; }
.category-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.category-form-fields label {
  display: grid;
  gap: 7px;
  color: #91abc1;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.category-form-fields label.is-wide,
.category-form-fields button,
.category-form-status { grid-column: 1 / -1; }
.category-form-fields input,
.category-form-fields textarea {
  width: 100%;
  border: 1px solid rgba(133, 190, 231, .28);
  border-radius: 8px;
  background: rgba(2, 8, 20, .6);
  color: #f5fbff;
  padding: 12px 13px;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
  outline: 0;
  resize: vertical;
}
.category-form-fields input:focus,
.category-form-fields textarea:focus { border-color: #58b8ff; box-shadow: 0 0 0 3px rgba(20, 157, 255, .12); }
.category-form-fields .btn { justify-self: start; min-width: 160px; }
.category-form-status { min-height: 22px; margin: 0; color: #91abc1; font-size: 12px; }
.category-form-status.is-error { color: #ff9eb1; }
.category-form-status.is-success { color: #81dbb5; }

@media (max-width: 800px) {
  .category-experience { padding-block: 56px; }
  .category-section-heading { display: block; margin-bottom: 28px; }
  .category-section-heading .subpage-kicker { margin-bottom: 10px; }
  .category-section-heading h2 { font-size: 32px; }
  .category-section-heading > p:last-child { max-width: 100%; margin-top: 14px; }
  .experience-layout { grid-template-columns: 1fr; gap: 20px; }
  .experience-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .experience-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-contact-section { padding-bottom: 56px; }
  .category-contact-form { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; padding: 22px; }
  .category-contact-section .category-contact-form { margin-top: 0; }
}

@media (max-width: 500px) {
  .experience-videos { grid-template-columns: 1fr; }
  .category-form-fields { grid-template-columns: 1fr; }
  .category-form-fields label.is-wide,
  .category-form-fields button,
  .category-form-status { grid-column: auto; }
  .category-form-fields .btn { width: 100%; }
}

/* Five-stage delivery timeline shared by all robot category detail pages. */
.category-process {
  width: 100%;
  padding: 80px 0;
  background: linear-gradient(145deg, #06152d 0%, #071d3b 52%, #041126 100%);
  color: #c7d8e8;
}
.category-process-inner {
  width: min(86vw, var(--rv-container, 1280px));
  margin-inline: auto;
}
.category-process-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 46px;
}
.category-process-heading .subpage-kicker {
  grid-column: 1 / -1;
  margin: 0 0 -12px;
}
.category-process-heading h2 {
  margin: 0;
  color: #f5fbff;
  font-family: RV-Montserrat, Montserrat, sans-serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.category-process-heading > p:last-child {
  max-width: 420px;
  justify-self: end;
  margin: 0;
  color: #91abc1;
  font-size: 15px;
  line-height: 1.5;
}
.category-process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-process-grid::before {
  content: '';
  position: absolute;
  top: 31px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, rgba(72, 191, 255, .2), rgba(72, 191, 255, .72), rgba(72, 191, 255, .2));
}
.category-process-step {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
}
.category-process-num {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border: 1px solid rgba(72, 191, 255, .72);
  border-radius: 50%;
  background: #071426;
  color: #62caff;
  font-family: RV-Montserrat, Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 0 0 8px #06152d;
}
.category-process-step h3 {
  margin: 0;
  color: #f5fbff;
  font-family: RV-Montserrat, Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.category-process-step p {
  max-width: 190px;
  margin: 10px auto 0;
  color: #91abc1;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .category-process { padding-block: 56px; }
  .category-process-heading {
    display: block;
    margin-bottom: 30px;
  }
  .category-process-heading .subpage-kicker { margin-bottom: 10px; }
  .category-process-heading h2 { font-size: 32px; line-height: 1.25; }
  .category-process-heading > p:last-child {
    max-width: 100%;
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.55;
  }
  .category-process-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .category-process-grid::before {
    top: 32px;
    right: auto;
    bottom: 32px;
    left: 28px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, rgba(72, 191, 255, .2), rgba(72, 191, 255, .72), rgba(72, 191, 255, .2));
  }
  .category-process-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    text-align: left;
  }
  .category-process-num {
    width: 56px;
    height: 56px;
    margin: 0;
    font-size: 16px;
    box-shadow: 0 0 0 6px #06152d;
  }
  .category-process-step h3 { font-size: 22px; line-height: 1.25; }
  .category-process-step p { max-width: none; margin: 7px 0 0; font-size: 14px; line-height: 1.55; }
}

/* Product direction: keep the full show active even when the OS requests
   reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .splash-panel,
  .splash-panel--left,
  .splash-panel--right,
  .subpage-splash-panel,
  .subpage-splash-panel--top,
  .subpage-splash-panel--bottom { transition: transform 820ms var(--rv-motion-ease) !important; }
  .hero-halo,
  .hero-halo::after,
  .hero-halo-inner,
  .hero-orbit-dot,
  .partner-track,
  .loading-dots i { animation-play-state: running !important; }
  .hero-halo { animation-name: rv-halo-spin !important; animation-duration: 24s !important; }
  .partner-track { animation-name: rv-partner-marquee !important; animation-duration: 34s !important; }
}

/* Final palette: black canvas with a distinct blue footer. */
html,
body {
  background: #000 !important;
}
.site-header,
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .92) !important;
}
.section,
.services,
.gallery,
.partner-section,
.process-section,
.why-section,
.news-section,
.contact-section,
.cta-band,
.subpage-main,
.partner-rail,
.category-detail,
.article-shell {
  background: #000 !important;
}
.site-footer {
  background: linear-gradient(145deg, #000 0%, #03152f 52%, #07529a 100%) !important;
  color: #eef8ff;
}
.site-footer .footer-grid {
  border-bottom-color: rgba(220, 243, 255, .34);
}
.site-footer .footer-grid a,
.site-footer .footer-grid span,
.site-footer .footer-brand p,
.site-footer .footer-bottom {
  color: #d3edff;
}
.site-footer .footer-grid a:hover {
  color: #fff;
}
.section.partner-section,
.section.contact-section,
body .partner-rail {
  background: #000 !important;
  background-image: none !important;
}

/* Header sits directly over each banner at the top of every route. */
.site-header,
.site-header.is-scrolled,
.site-header.header-scrolled {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.site-header.is-scrolled,
.site-header.header-scrolled {
  background: rgba(0, 0, 0, .88) !important;
  border-bottom-color: rgba(133, 190, 231, .28) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .26) !important;
}

/* Use the custom progress rail without showing the browser scrollbar beside it. */
html {
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.system-scroll-progress {
  pointer-events: auto;
  cursor: ns-resize;
  touch-action: none;
}
.system-scroll-progress:focus-visible {
  outline: 1px solid #83d5ff;
  outline-offset: 6px;
}

/* Blue sections become full bleed while their 86vw content grid stays put. */
body:not(.subpage):not(.category-page):not(.article-page) main > .section:nth-of-type(even):not(.partner-section):not(.contact-section) {
  width: 100%;
  margin-inline: 0;
}
body:not(.subpage):not(.category-page):not(.article-page) main > .section:nth-of-type(even):not(.partner-section):not(.contact-section) > .container {
  width: min(86vw, var(--rv-container));
  margin-inline: auto;
}

/* Process steps enter in numeric order over a 2.4s sequence (0.6s each). */
.process-section .process-step.rv-motion-target {
  transition-duration: 600ms;
}
.process-section .process-step:nth-child(2).rv-motion-target { transition-delay: 0ms; }
.process-section .process-step:nth-child(3).rv-motion-target { transition-delay: 600ms; }
.process-section .process-step:nth-child(4).rv-motion-target { transition-delay: 1200ms; }
.process-section .process-step:nth-child(5).rv-motion-target { transition-delay: 1800ms; }

/* Keep the category media block balanced: three image rows beside one video
   rail, with both columns stretching to the same overall height. */
@media (min-width: 801px) {
  .category-experience-inner {
    width: min(86vw, var(--container, 1280px));
  }
  .experience-layout {
    grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
    align-items: stretch;
    min-height: clamp(640px, 58vw, 860px);
  }
  .experience-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-content: stretch;
    min-height: 100%;
  }
  .experience-image {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }
  .experience-image:nth-child(n + 3) {
    grid-column: auto;
  }
  .experience-image img {
    flex: 1 1 auto;
    height: 0;
    min-height: 0;
    aspect-ratio: auto;
  }
  .experience-videos {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    align-content: stretch;
    min-height: 100%;
  }
  .experience-video {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }
  .experience-video video {
    flex: 1 1 auto;
    height: 0;
    min-height: 0;
    aspect-ratio: auto;
  }
}

@media (max-width: 800px) {
  .category-experience-inner {
    width: 86vw;
  }
}

/* Mobile controls stay inside the viewport and keep their own scroll context. */
@media (max-width: 800px) {
  .main-nav {
    max-height: calc(100dvh - var(--header, 72px) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
  .nav-dropdown-menu {
    max-height: 0;
  }
  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: min(380px, calc(100dvh - var(--header, 72px) - 100px));
    overflow-y: auto;
  }
  .service-switcher {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    margin-inline: -2px;
    padding: 0 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .service-switcher::-webkit-scrollbar { display: none; }
  .service-tab {
    flex: 0 0 auto;
    min-width: max-content;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .category-media {
    min-height: 0;
    height: min(48svh, 420px);
    aspect-ratio: 1 / 1.05;
  }
  .category-cta {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .experience-gallery,
  .experience-videos {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-inline: -2px;
    padding: 0 2px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .experience-gallery::-webkit-scrollbar,
  .experience-videos::-webkit-scrollbar { display: none; }
  .experience-image,
  .experience-video {
    flex: 0 0 78%;
    width: 78%;
    scroll-snap-align: start;
  }
  .experience-image img { aspect-ratio: 1 / 1.08; }
}
@media (max-width: 500px) {
  .experience-image,
  .experience-video { flex-basis: 86%; width: 86%; }
}

/* Keep the four performance videos compact and scannable on mobile. */
@media (max-width: 800px) {
  .experience-videos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .experience-video {
    width: auto;
    min-width: 0;
    flex: none;
    scroll-snap-align: none;
  }
  .experience-video video { aspect-ratio: 16 / 9; }
}

/* ---- Click-to-play gallery videos ---------------------------------- */
.experience-video-trigger {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.experience-video-trigger video {
  transition: opacity .35s ease, transform .45s ease;
}
.experience-video-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 20, .06) 0%, rgba(2, 8, 20, .46) 100%);
  opacity: .85;
  transition: opacity .35s ease;
  pointer-events: none;
}
.experience-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  transition: transform .32s cubic-bezier(.2, .7, .3, 1), opacity .32s ease;
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}
.experience-video-play circle {
  fill: rgba(4, 12, 26, .52);
  stroke: rgba(255, 255, 255, .9);
  stroke-width: 2.5;
}
.experience-video-play path { fill: #fff; }

@media (hover: hover) {
  .experience-video-trigger:hover video { opacity: 1; transform: scale(1.035); }
  .experience-video-trigger:hover::after { opacity: .55; }
  .experience-video-trigger:hover .experience-video-play { transform: translate(-50%, -50%) scale(1.12); }
}
.experience-video-trigger:focus-visible {
  outline: 2px solid #58b8ff;
  outline-offset: 2px;
  border-radius: 9px;
}
.experience-video-trigger:active .experience-video-play { transform: translate(-50%, -50%) scale(.94); }

.video-modal-caption {
  margin: 0;
  padding: 11px 14px 13px;
  border-top: 1px solid rgba(88, 184, 255, .18);
  color: #a9e2ff;
  font-size: 11px;
  letter-spacing: .05em;
  line-height: 1.4;
  text-transform: uppercase;
}
.video-modal-caption:empty { display: none; }


/* ---- Video lightbox ------------------------------------------------ */
.video-modal {
  width: min(92vw, 1080px);
  max-width: 1080px;
  padding: 0;
  border: 0;
  overflow: visible;
  background: transparent;
}
.video-modal::backdrop {
  background: rgba(1, 5, 13, .84);
  backdrop-filter: blur(6px);
}
.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(88, 184, 255, .35);
  border-radius: 14px;
  background: #02050d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.video-shell video {
  display: block;
  width: 100%;
  max-height: 78svh;
  aspect-ratio: 16 / 9;
  background: #02050d;
}
.video-modal .lightbox-close { right: 12px; top: 12px; }
@media (max-width: 600px) {
  .video-modal { width: 94vw; }
  .video-shell video { aspect-ratio: 16 / 9; max-height: 60svh; }
}

/* The desktop column stretches each card, so the trigger has to pass that
   height through to the video it wraps. */
@media (min-width: 801px) {
  .experience-video-trigger {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }
}

/* ---- CMS per-device visibility -------------------------------------- */
@media (min-width: 801px) { .cms-hide-desktop { display: none !important; } }
@media (max-width: 800px) { .cms-hide-mobile { display: none !important; } }

/* html has overflow-x:clip, so body{overflow:hidden} no longer reaches the
   viewport and the page scrolls behind an open modal. Lock html itself, and
   reserve the scrollbar gutter so locking does not shift the layout. */
html { scrollbar-gutter: stable; }
html:has(body.modal-open),
html:has(body.menu-open) { overflow: hidden; }

/* Lenis inertial scrolling (desktop pointers only — see assets/js/smooth-scroll.js). */
html.lenis,
html.lenis body { height: auto; }
html.lenis-smooth { scroll-behavior: auto !important; }
html.lenis-stopped { overflow: hidden; }
html.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
html.lenis-scrolling iframe { pointer-events: none; }
