/* ==========================================================================
   YaneCode Labs — Services 3D & Intégration VR
   Système de design : ChemLabs Light Canvas (#ffffff / #e0f8f4 / #00277a / #21cdad)
   ========================================================================== */

:root {
  /* Brand & Accent */
  --primary: #21cdad;
  --on-primary: #ffffff;
  --primary-hover: #20ba9e;
  --primary-focus: #33d1b4;

  /* Ink */
  --ink: #4f597a;
  --ink-readable: #334155;
  --ink-muted: #00277a;
  --ink-subtle: #64748b;
  --ink-tertiary: #21cdad;
  --hero-ink-deep: #00154a;

  /* Surfaces & Hairlines */
  --canvas: #ffffff;
  --surface-1: #e0f8f4;
  --surface-2: #00277a;
  --surface-3: #d1d1d1;
  --hairline: #00277a;
  --hairline-strong: #21cdad;
  --inverse-canvas: #101012;
  --inverse-ink: #ffffff;

  /* Typography */
  --font-display: "Lexend", sans-serif;
  --font-body: "Roboto", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radius Scale */
  --rounded-xs: 3px;
  --rounded-sm: 6px;
  --rounded-md: 6px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-xxl: 24px;
  --rounded-pill: 9999px;
  --rounded-full: 9999px;

  /* Spacing Scale (4px base) */
  --space-xxs: 4px;
  --space-xs: 7px;
  --space-sm: 10px;
  --space-md: 15px;
  --space-lg: 22px;
  --space-xl: 32px;
  --space-xxl: 55px;
  --space-section: 96px;

  /* Elevation & Motion */
  --shadow-card: 0px 5px 83px 0px rgba(13, 14, 67, 0.10);
  --shadow-lift: 0px 14px 36px 0px rgba(0, 39, 122, 0.12);
  --focus-ring: 0 0 0 2px rgba(51, 209, 180, 0.5);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1536px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-muted);
  background: var(--canvas);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-muted);
}

p {
  margin: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-md);
  z-index: 200;
  background: var(--surface-2);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--rounded-md);
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: var(--space-md);
}

.container {
  width: min(100% - 64px, var(--container));
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 120px;
}

/* ==========================================================================
   Scroll-Triggered Motion Reveals
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html.has-reveal-anim [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.62s var(--ease-out-expo), transform 0.62s var(--ease-out-expo);
  }

  html.has-reveal-anim [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Buttons (Sampled Spec)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 44px;
  border-radius: var(--rounded-md);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.22;
  transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out, border-color 0.25s ease-in-out, transform 0.2s var(--ease-out-expo), box-shadow 0.2s ease-in-out;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out-expo);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn-primary,
.btn-demo {
  background-color: var(--surface-2);
  color: var(--on-primary);
  border: 0;
  padding: 20px 30px;
}

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

.btn-primary:active,
.btn-demo:active {
  background-color: var(--primary-focus);
  transform: translateY(1px);
}

.btn-secondary {
  background-color: var(--canvas);
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
  padding: 19px 26px;
}

.btn-secondary:hover {
  background-color: var(--surface-1);
  border-color: var(--hairline-strong);
  transform: translateY(-1px);
}

.btn-nav {
  padding: 14px 24px;
}

.btn-sm {
  padding: 11px 18px;
  font-size: 15px;
}

.btn-on-dark {
  background-color: var(--primary);
  color: var(--ink-muted);
  border: 0;
  padding: 22px 30px;
}

.btn-on-dark:hover {
  background-color: var(--canvas);
  color: var(--ink-muted);
}

/* ==========================================================================
   Top Navigation (107px, #ffffff) — Complete Vector Logo Asset
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-muted);
  transition: box-shadow 0.25s ease-in-out;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 39, 122, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 107px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 62px;
  width: auto;
  display: block;
}

.brand-logo-img.footer-logo {
  height: 54px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  position: relative;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink-readable);
  white-space: nowrap;
  padding: 4px 0;
  transition: color 0.25s ease-in-out;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-current {
  color: var(--ink-muted);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-current::after {
  transform: scaleX(1);
}

.scroll-progress-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(0, 39, 122, 0.08);
  overflow: hidden;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--ink-muted) 0%, var(--primary) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.12s linear;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--rounded-pill);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--rounded-pill);
  transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
}

.lang-btn[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--on-primary);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink-muted);
  place-items: center;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--hairline);
  background: var(--canvas);
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.mobile-drawer.open {
  display: grid;
  gap: var(--space-sm);
}

.mobile-drawer a:not(.btn) {
  padding: 12px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--surface-3);
}

/* ==========================================================================
   Section 1 — Daylight Architectural Hero (Paper Canvas + Full-Bleed VR Photo)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--canvas);
  color: var(--ink-muted);
  min-height: clamp(580px, 76vh, 770px);
  padding: clamp(24px, 2.5vw, 34px) 0 clamp(22px, 2.4vw, 30px);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2vw, 24px);
}

.hero-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 24%;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.03);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroKenBurns {
  0% {
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.02);
  }
  100% {
    transform: translate3d(calc(var(--px, 0px) - 10px), calc(var(--py, 0px) - 6px), 0) scale(1.07);
  }
}

.hero.motion-paused .hero-bg-img {
  animation: none;
  transform: scale(1.01);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      96deg,
      #ffffff 0%,
      rgba(255, 255, 255, 0.96) 36%,
      rgba(255, 255, 255, 0.80) 50%,
      rgba(255, 255, 255, 0.16) 66%,
      rgba(255, 255, 255, 0.0) 82%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.25) 0%,
      transparent 20%,
      rgba(224, 248, 244, 0.42) 100%
    );
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: var(--space-xxl);
  align-items: end;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.67;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero-eyebrow {
  color: var(--ink-muted);
  font-weight: 600;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  padding: 5px 14px;
  border-radius: var(--rounded-md);
}

.eyebrow-bar {
  width: 22px;
  height: 2px;
  background-color: var(--primary);
  display: inline-block;
  flex-shrink: 0;
}

.hero-copy h1 {
  font-size: clamp(2.05rem, 3.85vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--ink-muted);
  max-width: 18ch;
}

.hero-lead {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.22vw, 19px);
  font-weight: 500;
  line-height: 1.48;
  color: var(--ink-readable);
  max-width: 50ch;
}

.hero-cta-row {
  margin-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.hero-quick-bar {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.hero-quick-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-right: var(--space-xxs);
}

.hero-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.hero-quick-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out, transform 0.2s var(--ease-out-expo);
}

.hero-quick-btn:hover,
.hero-quick-btn:focus-visible {
  background: var(--surface-2);
  border-color: var(--surface-2);
  color: var(--on-primary);
  transform: translateY(-1px);
}

/* Open right visual showcase + crisp Paper Session Card (NO dark neon glassmorphism) */
.hero-showcase-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
}

.hero-vr-clearance {
  flex: 1 1 auto;
  min-height: 145px;
}

.hero-session-card {
  position: relative;
  overflow: hidden;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lift);
  display: grid;
  gap: var(--space-md);
}

.hero-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
}

.hero-session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding-top: 2px;
}

.hero-session-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-muted);
}

.hero-session-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--rounded-sm);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-session-icon svg {
  width: 17px;
  height: 17px;
}

.hero-motion-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.hero-motion-btn:hover {
  background: var(--surface-2);
  color: var(--on-primary);
}

.hero-motion-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-session-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-readable);
}

.hero-session-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xs);
}

.hero-kpi-cell {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: var(--space-xs) var(--space-sm);
}

.hero-kpi-cell span {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-readable);
}

.hero-kpi-cell b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}

.hero-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 11px 16px;
  border-radius: var(--rounded-md);
  background: var(--surface-2);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s var(--ease-out-expo);
}

.hero-panel-link:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
  transform: translateY(-1px);
}

.hero-panel-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Filiale YaneCode + Cases Chiffres Clés en pied de Hero */
.hero-trust-strip {
  position: relative;
  z-index: 2;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 39, 122, 0.18);
  display: grid;
  grid-template-columns: minmax(265px, auto) minmax(0, 1fr);
  gap: var(--space-md);
  align-items: stretch;
}

.hero-subsidiary-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-radius: var(--rounded-lg);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 18px rgba(0, 39, 122, 0.08);
  color: var(--ink-muted);
  text-decoration: none;
  transition:
    transform 0.22s var(--ease-out-expo),
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.hero-subsidiary-card:hover,
.hero-subsidiary-card:focus-visible {
  transform: translateY(-2px);
  background: var(--canvas);
  border-color: var(--primary);
  box-shadow: var(--shadow-lift);
}

.hero-subsidiary-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.hero-subsidiary-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}

.hero-subsidiary-logo {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.hero-subsidiary-arrow {
  margin-left: auto;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--rounded-sm);
  background: var(--canvas);
  border: 1px solid rgba(0, 39, 122, 0.22);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out-expo);
}

.hero-subsidiary-arrow svg {
  width: 15px;
  height: 15px;
}

.hero-subsidiary-card:hover .hero-subsidiary-arrow,
.hero-subsidiary-card:focus-visible .hero-subsidiary-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--hero-ink-deep);
  transform: translate(2px, -2px);
}

.hero-figures-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.hero-stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--rounded-lg);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--hairline);
  box-shadow: 0 6px 22px rgba(0, 39, 122, 0.08);
  transition: transform 0.22s var(--ease-out-expo), border-color 0.22s ease, box-shadow 0.22s ease;
}

.hero-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lift);
}

.hero-stat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--rounded-md);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-stat-card:hover .hero-stat-icon {
  background: var(--surface-2);
  border-color: var(--surface-2);
  color: var(--primary);
}

.hero-stat-icon svg {
  width: 21px;
  height: 21px;
}

.hero-stat-body {
  min-width: 0;
}

.hero-stat-value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  line-height: 1.08;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hero-ink-deep);
  font-variant-numeric: tabular-nums;
}

.hero-stat-unit {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--rounded-sm);
  background: var(--surface-1);
  border: 1px solid var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--hero-ink-deep);
}

.hero-stat-label {
  margin: 4px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-readable);
}

@media (max-width: 1120px) {
  .hero-trust-strip {
    grid-template-columns: 1fr;
  }

  .hero-subsidiary-card {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .hero-figures-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Section Surfaces (Paper #ffffff -> Surface-1 #e0f8f4 -> Surface-2 #00277a)
   ========================================================================== */

.section-paper {
  background-color: var(--canvas);
  padding: var(--space-section) 0;
}

.section-mint {
  background-color: var(--surface-1);
  padding: var(--space-section) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--ink-muted);
  max-width: 18ch;
}

.section-desc {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink-readable);
  max-width: 44ch;
}

/* ==========================================================================
   Section 2 — Simulateur Interactif 3D & Vue Casque VR
   ========================================================================== */

.lab-studio-shell {
  border-radius: var(--rounded-xl);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  box-shadow: var(--shadow-card);
}

.lab-studio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.tp-preset-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tp-preset-btn {
  min-height: 40px;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink-muted);
  padding: 8px 16px;
  border-radius: var(--rounded-pill);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out, border-color 0.25s ease-in-out;
}

.tp-preset-btn:hover {
  background: var(--surface-1);
}

.tp-preset-btn[aria-selected="true"] {
  background: var(--surface-2);
  color: var(--on-primary);
  border-color: var(--surface-2);
}

.vr-mode-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.vr-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out, border-color 0.25s ease-in-out;
}

.vr-toggle-btn:hover {
  border-color: var(--hairline-strong);
}

.vr-toggle-btn[aria-pressed="true"] {
  background: var(--surface-2);
  border-color: var(--surface-2);
  color: var(--on-primary);
}

.webxr-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--rounded-sm);
  background: var(--surface-1);
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
}

.lab-studio-body {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  min-height: 520px;
}

.lab-viewport-wrap {
  position: relative;
  min-height: 460px;
  background: var(--inverse-canvas);
  overflow: hidden;
}

#vrLabCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.vr-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  background: var(--inverse-canvas);
  color: var(--inverse-ink);
}

.vr-fallback.visible {
  display: flex;
}

.vr-fallback h3 {
  color: var(--inverse-ink);
}

.vr-visor-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.lab-viewport-wrap.vr-active .vr-visor-hud {
  opacity: 1;
}

.vr-visor-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 3px var(--hairline-strong);
}

.vr-visor-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--primary);
  border-radius: var(--rounded-full);
}

.vr-visor-reticle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: var(--rounded-full);
  background: var(--inverse-ink);
  transform: translate(-50%, -50%);
}

.vr-visor-banner {
  position: absolute;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 28px);
  padding: 6px 14px;
  border-radius: var(--rounded-pill);
  background: var(--inverse-canvas);
  border: 1px solid var(--hairline-strong);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewport-toolbar {
  position: absolute;
  left: var(--space-md);
  right: var(--space-md);
  bottom: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  z-index: 5;
}

.vp-control-group {
  display: inline-flex;
  gap: var(--space-xxs);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  padding: 4px;
  border-radius: var(--rounded-md);
}

.vp-icon-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--rounded-xs);
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vp-icon-btn:hover {
  background: var(--surface-1);
}

.vp-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--rounded-sm);
  background: var(--canvas);
  color: var(--ink-muted);
  border: 1px solid var(--hairline);
}

.lab-dock {
  background: var(--canvas);
  border-left: 1px solid var(--hairline);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.dock-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.dock-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
}

.dock-live-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

.instr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.instr-cell {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--space-md);
}

.instr-cell.hl {
  border-color: var(--hairline-strong);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.instr-cell .lbl {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-muted);
}

.instr-cell .val {
  margin-top: var(--space-xxs);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-muted);
}

.dock-control-box {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--space-md);
}

.slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: var(--space-sm);
}

.slider-row output {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-muted);
}

input[type="range"].lab-range {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  cursor: pointer;
}

.dock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.vr-steps {
  display: grid;
  gap: var(--space-xs);
}

.vr-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 9px 12px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--surface-3);
  background: var(--canvas);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-muted);
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.vr-step.done {
  border-color: var(--hairline-strong);
  background: var(--surface-1);
}

.vr-step-dot {
  width: 24px;
  height: 24px;
  border-radius: var(--rounded-full);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  flex-shrink: 0;
}

.vr-step.done .vr-step-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--ink-muted);
}

.dock-demo-note {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.dock-demo-note span {
  font-size: 15px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Section 3 — Impact Metrics, Galerie Visuelle 3D/VR & Comparatif
   ========================================================================== */

.impact-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.impact-metric-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-xxs);
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease-in-out;
}

.impact-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.impact-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-muted);
}

.impact-lbl {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-readable);
}

.lab-visual-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xxl);
}

.lab-gallery-card {
  margin: 0;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease-out-expo), box-shadow 0.28s ease-in-out;
}

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

.lab-gallery-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-1);
}

.lab-gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out-expo);
}

.lab-gallery-card:hover .lab-gallery-media img {
  transform: scale(1.05);
}

.lab-gallery-card figcaption {
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.gallery-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--rounded-sm);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  white-space: nowrap;
}

.lab-gallery-card figcaption strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-muted);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.compare-panel {
  border-radius: var(--rounded-lg);
  padding: var(--space-xl);
}

.compare-problem {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
}

.compare-solution {
  background: var(--surface-2);
  color: var(--inverse-ink);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}

.compare-panel h3 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}

.compare-solution h3 {
  color: var(--inverse-ink);
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.compare-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--space-md);
  align-items: start;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--hairline);
}

.compare-solution .compare-list li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.compare-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.compare-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--rounded-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
}

.compare-problem .compare-icon {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
}

.compare-solution .compare-icon {
  background: var(--primary);
  color: var(--ink-muted);
}

.compare-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--space-xxs);
}

.compare-problem .compare-list span {
  font-size: 16px;
  color: var(--ink-muted);
}

.compare-solution .compare-list span {
  font-size: 16px;
  color: var(--surface-1);
}

/* ==========================================================================
   Section 4 — Services 3D & VR (Feature Cards avec Aperçus Visuels)
   ========================================================================== */

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

.service-tile {
  border-radius: var(--rounded-lg);
  padding: var(--space-xl);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
  transition: transform 0.28s var(--ease-out-expo), box-shadow 0.28s ease-in-out;
}

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

.service-tile.span-7 {
  grid-column: span 7;
}

.service-tile.span-5 {
  grid-column: span 5;
}

.service-tile.dark-accent {
  background: var(--surface-2);
  color: var(--inverse-ink);
}

.dark-accent h3 {
  color: var(--inverse-ink);
}

.service-visual-frame {
  aspect-ratio: 16 / 8;
  border-radius: var(--rounded-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-1);
}

.dark-accent .service-visual-frame {
  border-color: rgba(33, 205, 173, 0.55);
}

.service-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.55s var(--ease-out-expo);
}

.service-tile:hover .service-visual-frame img {
  transform: scale(1.045);
}

.service-head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--rounded-md);
  display: grid;
  place-items: center;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  flex-shrink: 0;
}

.dark-accent .service-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--ink-muted);
}

.service-tile h3 {
  font-size: 24px;
  line-height: 1.25;
}

.service-tile p {
  font-family: var(--font-body);
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.55;
}

.dark-accent p {
  color: var(--surface-1);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 11px;
  border-radius: var(--rounded-sm);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
}

.dark-accent .tech-tag {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
  color: var(--inverse-ink);
}

/* ==========================================================================
   Section 5 — Disciplines & Catalogue TP avec Visuels 3D (#ffffff Canvas)
   ========================================================================== */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.filter-tab {
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--rounded-pill);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.filter-tab:hover {
  background: var(--surface-1);
}

.filter-tab[aria-selected="true"] {
  background: var(--surface-2);
  color: var(--on-primary);
}

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

.tp-item {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: box-shadow 0.28s ease-in-out, background-color 0.25s ease-in-out, transform 0.28s var(--ease-out-expo);
}

.tp-item:hover {
  background: var(--surface-1);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.tp-item.hidden {
  display: none;
}

.tp-item-thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--rounded-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-1);
}

.tp-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.55s var(--ease-out-expo);
}

.tp-item:hover .tp-item-thumb img {
  transform: scale(1.06);
}

.tp-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.tp-domain-badge {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--rounded-pill);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
}

.tp-vr-ready {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-tertiary);
}

.tp-item h3 {
  font-size: 22px;
  line-height: 1.28;
}

.tp-item p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-muted);
  flex: 1;
}

.tp-item-foot {
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.tp-formula {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 700;
}

.tp-load-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid var(--primary);
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.tp-load-btn:hover {
  color: var(--primary-hover);
  transform: translateX(2px);
}

/* ==========================================================================
   Section 6 — Parcours Étudiant Animé (Rail de Progression 01 -> 05)
   ========================================================================== */

.journey-rail-wrap {
  display: grid;
  gap: var(--space-lg);
}

.journey-progress-track {
  width: 100%;
  height: 6px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-pill);
  overflow: hidden;
}

.journey-progress-fill {
  height: 100%;
  width: 20%;
  background: var(--primary);
  border-radius: var(--rounded-pill);
  transition: width 0.55s var(--ease-out-expo);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.journey-step {
  text-align: left;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform 0.28s var(--ease-out-expo), background-color 0.28s ease-in-out, color 0.28s ease-in-out, box-shadow 0.28s ease-in-out;
}

.journey-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.journey-step.is-active {
  background: var(--surface-2);
  color: var(--inverse-ink);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.journey-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.journey-step h3 {
  font-size: 20px;
  color: var(--ink-muted);
}

.journey-step.is-active h3 {
  color: var(--inverse-ink);
}

.journey-step p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink-readable);
}

.journey-step.is-active p {
  color: var(--surface-1);
}

/* ==========================================================================
   Section 7 — Bannière Démo (#00277a Surface-2) & Footer (#ffffff)
   ========================================================================== */

.cta-section {
  background-color: var(--canvas);
  padding: var(--space-section) 0;
}

.cta-banner {
  background: var(--surface-2);
  color: var(--inverse-ink);
  border-radius: var(--rounded-xxl);
  padding: var(--space-xxl);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}

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

.cta-box h2 {
  font-size: clamp(1.75rem, 3vw, 40px);
  line-height: 1.25;
  color: var(--inverse-ink);
  max-width: 24ch;
}

.cta-box p {
  margin-top: var(--space-md);
  color: var(--surface-1);
  font-size: 18px;
  max-width: 54ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.site-footer {
  background: var(--canvas);
  color: var(--ink-muted);
  padding: var(--space-xxl) 0 var(--space-xl);
  border-top: 1px solid var(--hairline);
  font-size: 15px;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--hairline);
}

.footer-entity-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-entity-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.ettousy-logo-img {
  height: 54px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-entity-desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
}

.footer-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-muted);
}

.footer-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--primary-hover);
  flex-shrink: 0;
}

.footer-meta-item a {
  transition: color 0.2s ease-in-out;
}

.footer-meta-item a:hover {
  color: var(--primary-hover);
}

.footer-social-block {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--space-xs);
}

.footer-social-lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--rounded-sm);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s var(--ease-out-expo);
}

.footer-social-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-social-pill:hover {
  background: var(--surface-2);
  border-color: var(--surface-2);
  color: var(--inverse-ink);
  transform: translateY(-2px);
}

.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 68px 0 0;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink-readable);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  font-family: var(--font-display);
  font-weight: 600;
}

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

@media (max-width: 960px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    padding-right: 0;
  }
}

/* ==========================================================================
   Responsive Breakpoints (1280px, 1024px, 768px, 480px)
   ========================================================================== */

@media (max-width: 1280px) {
  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 15.5px;
  }

  .btn-nav {
    padding: 12px 18px;
    font-size: 15.5px;
  }
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: grid;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .lab-studio-body,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .impact-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-visual-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-bg-img {
    object-position: 75% top;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.90) 46%,
      rgba(255, 255, 255, 0.35) 75%,
      rgba(255, 255, 255, 0.85) 100%
    );
  }

  .hero-showcase-col {
    min-height: 0;
  }

  .hero-vr-clearance {
    min-height: 160px;
  }

  .lab-dock {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .tp-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .journey-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .nav-inner {
    min-height: 76px;
    gap: var(--space-sm);
  }

  .brand-logo-img {
    height: 46px;
    width: auto;
  }

  .brand-logo-img.footer-logo {
    height: 44px;
  }

  .nav-actions .btn-demo {
    display: none;
  }

  .nav-actions {
    gap: var(--space-xs);
    flex-shrink: 0;
  }

  .hero {
    min-height: 0;
    padding: 36px 0 46px;
  }

  .hero-vr-clearance {
    min-height: 110px;
  }

  .section-paper,
  .section-mint,
  .cta-section {
    padding: var(--space-xxl) 0;
  }

  .hero-copy h1 {
    letter-spacing: -1.4px;
  }

  .hero-session-kpis {
    grid-template-columns: 1fr;
  }

  .services-bento {
    grid-template-columns: 1fr;
  }

  .service-tile.span-7,
  .service-tile.span-5 {
    grid-column: span 1;
  }

  .lab-visual-gallery,
  .tp-catalog-grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: var(--space-xl);
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .brand-logo-img {
    height: 40px;
  }

  .hero-eyebrow {
    font-size: 13px;
    padding: 5px 11px;
  }

  .impact-metrics-row,
  .instr-grid,
  .dock-actions {
    grid-template-columns: 1fr;
  }

  .hero-quick-pills {
    width: 100%;
  }

  .hero-quick-btn {
    flex: 1 1 auto;
  }

  .journey-detail-card {
    flex-direction: column;
    align-items: stretch;
  }

  .back-to-top-btn {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   Enhanced Platform Interactions, Movements & Instrumentation Visuals
   ========================================================================== */

/* Hero Animated Scientific Mini-Preview (#heroLabMiniVis) */
.hero-lab-mini {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}

.hero-lab-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-vis-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-sm);
  padding: 3px;
}

.hero-vis-tab {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s var(--ease-out-expo);
}

.hero-vis-tab:hover {
  background: var(--surface-1);
}

.hero-vis-tab.is-active {
  background: var(--surface-2);
  color: var(--inverse-ink);
}

.hero-vis-formula {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-sm);
  padding: 3px 9px;
}

.hero-vis-stage {
  position: relative;
  height: 78px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  overflow: hidden;
}

.hero-vis-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(6px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}

#heroLabMiniVis[data-vis-tp="pendule"] .vis-pendule,
#heroLabMiniVis[data-vis-tp="rlc"] .vis-rlc,
#heroLabMiniVis[data-vis-tp="snell"] .vis-snell {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.anim-pendulum-arm {
  transform-box: view-box;
  transform-origin: 140px 12px;
  animation: heroPendulumSwing 2.6s ease-in-out infinite;
}

.anim-gate-led {
  fill: var(--primary);
  animation: heroGateFlash 1.3s ease-in-out infinite;
}

.anim-wave-primary {
  animation: heroWaveFlow 2.8s linear infinite;
}

.anim-wave-secondary {
  animation: heroWaveFlowAlt 2.8s linear infinite;
}

.anim-snell-beam {
  transform-box: view-box;
  transform-origin: 140px 39px;
  animation: heroBeamSweep 4.2s ease-in-out infinite;
}

@keyframes heroPendulumSwing {
  0%, 100% {
    transform: rotate(-22deg);
  }
  50% {
    transform: rotate(22deg);
  }
}

@keyframes heroGateFlash {
  0%, 42%, 58%, 100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

@keyframes heroWaveFlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(80px);
  }
}

@keyframes heroWaveFlowAlt {
  0% {
    transform: translateX(18px);
  }
  100% {
    transform: translateX(98px);
  }
}

@keyframes heroBeamSweep {
  0%, 100% {
    transform: rotate(-7deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

/* Simulator Measurement Feed Strip (#measureLogStrip) */
.measure-log-box {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(0, 39, 122, 0.22);
}

.measure-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-bottom: 6px;
}

.measure-log-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.measure-log-clear {
  border: 0;
  background: transparent;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  text-decoration: underline;
}

.measure-log-clear:hover {
  color: var(--primary-hover);
}

.measure-log-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  align-items: center;
}

.measure-log-empty {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--ink-muted);
  opacity: 0.78;
}

.measure-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--rounded-sm);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  animation: pillSlideIn 0.34s var(--ease-out-expo) both;
}

.measure-pill-idx {
  color: var(--primary-hover);
}

#btnRecordMeasure.is-recorded {
  background-color: var(--primary-hover);
  transform: scale(0.98);
}

.instr-cell {
  transition: border-color 0.25s ease-in-out, transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease-in-out;
}

.instr-cell.is-updated {
  border-color: var(--hairline-strong);
  transform: translateY(-2px);
}

.vr-step.done .vr-step-dot {
  animation: stepCheckPop 0.38s var(--ease-out-expo);
}

@keyframes pillSlideIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stepCheckPop {
  0% {
    transform: scale(0.7);
  }
  65% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

/* Comparison View Focus Switcher (.compare-toolbar) */
.compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.compare-toolbar-lbl {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}

.compare-switch-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 4px;
}

.compare-switch-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--rounded-sm);
  cursor: pointer;
  transition: background-color 0.22s ease-in-out, color 0.22s ease-in-out, transform 0.2s var(--ease-out-expo);
}

.compare-switch-btn:hover {
  background: rgba(255, 255, 255, 0.72);
}

.compare-switch-btn.is-active {
  background: var(--surface-2);
  color: var(--inverse-ink);
}

.comparison-grid .compare-panel {
  transition: transform 0.35s var(--ease-out-expo), opacity 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.comparison-grid[data-view="problem"] {
  grid-template-columns: 1fr;
}

.comparison-grid[data-view="problem"] .compare-solution {
  display: none;
}

.comparison-grid[data-view="solution"] {
  grid-template-columns: 1fr;
}

.comparison-grid[data-view="solution"] .compare-problem {
  display: none;
}

/* Tactile Architectural Perspective Tilt & Micro-Motions */
.lab-gallery-card,
.service-tile,
.tp-item {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift-y: 0px;
  transform: perspective(920px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift-y));
  will-change: transform;
}

.lab-gallery-card:hover,
.service-tile:hover,
.tp-item:hover {
  --lift-y: -4px;
}

.service-icon {
  transition: transform 0.35s var(--ease-out-expo), background-color 0.25s ease-in-out;
}

.service-tile:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
}

.impact-metric-card {
  transition: transform 0.28s var(--ease-out-expo), box-shadow 0.28s ease-in-out, border-color 0.25s ease-in-out;
}

.impact-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--hairline-strong);
}

.tp-item.is-filtering-in {
  animation: catalogCardIn 0.38s var(--ease-out-expo) both;
}

@keyframes catalogCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Journey Stage Inspector & Stepper Controls (#journeyStageDetail) */
.journey-detail-card {
  margin-top: var(--space-lg);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.journey-detail-body {
  max-width: 78ch;
}

.journey-detail-body.is-switching {
  animation: stageFadeSlide 0.34s var(--ease-out-expo) both;
}

@keyframes stageFadeSlide {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.journey-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: 8px;
}

.journey-detail-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--inverse-ink);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: var(--rounded-sm);
}

.journey-detail-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  padding: 4px 10px;
  border-radius: var(--rounded-sm);
}

.journey-detail-body h3 {
  font-size: 21px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.journey-detail-body p {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-readable);
}

.journey-detail-controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.journey-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--rounded-md);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, transform 0.2s var(--ease-out-expo);
}

.journey-ctrl-btn svg {
  width: 16px;
  height: 16px;
}

.journey-ctrl-btn:hover {
  background: var(--surface-1);
  border-color: var(--hairline-strong);
  transform: translateY(-1px);
}

.journey-ctrl-btn.is-next {
  background: var(--surface-2);
  color: var(--inverse-ink);
}

.journey-ctrl-btn.is-next:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Floating Back-to-Top Architectural Button (#backToTopBtn) */
.back-to-top-btn {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: var(--rounded-full);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  color: var(--ink-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.25s ease-in-out, transform 0.28s var(--ease-out-expo), background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: var(--surface-1);
  border-color: var(--hairline-strong);
  transform: translateY(-3px) scale(1.03);
}

/* Pause Toggle Support Across All Platform Keyframes */
body.animations-paused .hero-bg-img,
body.animations-paused .anim-pendulum-arm,
body.animations-paused .anim-gate-led,
body.animations-paused .anim-wave-primary,
body.animations-paused .anim-wave-secondary,
body.animations-paused .anim-snell-beam,
body.animations-paused .tp-item.is-filtering-in,
body.animations-paused .journey-detail-body.is-switching {
  animation-play-state: paused !important;
}

body.animations-paused .lab-gallery-card,
body.animations-paused .service-tile,
body.animations-paused .tp-item {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

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

  .hero-bg-img,
  .anim-pendulum-arm,
  .anim-gate-led,
  .anim-wave-primary,
  .anim-wave-secondary,
  .anim-snell-beam {
    animation: none !important;
    transform: none !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
