/* ═══════════════════════════════════════════════
   StudioLAB — Combined: Frosted Doors + Dark Lobby
   + Track Lights + Video Frames + Partners Wall
   ═══════════════════════════════════════════════ */

/* ─── Color design tokens ───────────────────────
   Single source of truth for the site palette. Values are the exact
   literals previously hardcoded throughout this file, so computed
   styles are unchanged. `*-rgb` tokens hold the raw channel triple for
   use inside rgba()/rgb() at varying alpha. @font-face lives in
   shared/fonts.css (loaded by both shells). Scope: colors only. */
:root {
  /* Surfaces */
  --sl-bg: #1a1816;        /* page background */
  --sl-surface: #111010;   /* reveal sections, footer, a11y bar */
  --sl-panel: #161514;     /* project modal panel */

  /* Ink / neutrals */
  --sl-ink: #f0ece6;       /* primary warm-white text */
  --sl-ink-rgb: 240, 236, 230;
  --sl-white: #ffffff;
  --sl-white-rgb: 255, 255, 255;
  --sl-black-rgb: 0, 0, 0;

  /* Accents */
  --sl-gold-rgb: 201, 168, 76;    /* section labels, news, contact */
  --sl-amber-rgb: 232, 196, 122;  /* awards modal */
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Keep anchor-focused targets clear of the fixed #main-nav (issue 7). */
  scroll-padding-top: 7rem;
}

/* Global keyboard focus ring — sits above overlays so focus is never hidden. */
:focus-visible {
  outline: 2px solid var(--sl-white);
  outline-offset: 2px;
}

body {
  /* Stack lives in shared/fonts.css (--sl-font-sans) — change it there. */
  font-family: var(--sl-font-sans, 'Inter', system-ui, -apple-system, sans-serif);
  background: var(--sl-bg);
  color: var(--sl-ink);
  overflow-x: hidden;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden-video {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ─── Canvas ────────────────────────────────── */

#corridor-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* ─── Frosted Glass Door Overlay ────────────── */

#door-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

/* Cinematic color grading — heavy vignette + top-bottom crush */
.door-cinematic-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 62% 52% at 50% 42%,
      rgba(var(--sl-black-rgb), 0) 0%,
      rgba(var(--sl-black-rgb), 0) 26%,
      rgba(var(--sl-black-rgb), 0.3) 72%,
      rgba(var(--sl-black-rgb), 0.6) 90%,
      rgba(var(--sl-black-rgb), 0.78) 100%
    ),
    radial-gradient(
      ellipse 100% 55% at 50% 100%,
      rgba(var(--sl-black-rgb), 0.55) 0%,
      rgba(var(--sl-black-rgb), 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(var(--sl-black-rgb), 0.3) 0%,
      rgba(var(--sl-black-rgb), 0) 12%,
      rgba(var(--sl-black-rgb), 0) 88%,
      rgba(var(--sl-black-rgb), 0.15) 100%
    );
  mix-blend-mode: multiply;
  opacity: 0.94;
}

.door-cinematic-grain {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  /* Static noise pattern — avoids expensive feTurbulence SVG filter on GPU */
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAG0lEQVQI12NkYGD4z8BQDwAAAP//AwBGRgYAAQAFAAGq6YRVAAAAASUVORK5CYII=");
  background-size: 4px 4px;
}

@media (prefers-reduced-motion: reduce) {
  .door-cinematic-grain {
    opacity: 0.07;
  }
}

.door-glow {
  position: absolute;
  top: 2%;
  left: 50%;
  width: min(78vw, 1500px);
  height: 96vh;
  transform: translateX(-50%);
  background:
    radial-gradient(
      ellipse 42% 40% at 50% 34%,
      rgba(255, 210, 140, 0.52) 0%,
      rgba(225, 175, 115, 0.2) 34%,
      transparent 64%
    ),
    radial-gradient(
      ellipse 28% 45% at 50% 46%,
      rgba(255, 242, 218, 0.18) 0%,
      transparent 48%
    ),
    radial-gradient(
      ellipse 75% 25% at 50% 94%,
      rgba(225, 165, 100, 0.14) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 50% 16% at 50% 5%,
      rgba(210, 160, 95, 0.09) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
  filter: blur(1.5px);
}

/* ─── Video Silhouette Behind Glass ────────── */

.door-silhouette {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: blur(3px) contrast(1.4);
  opacity: 0;
  animation: silhouette-fade-in 2.5s ease 0.8s forwards;
}

.door-silhouette-left  { left: 36px; }
.door-silhouette-right { right: 36px; }

@keyframes silhouette-fade-in {
  to { opacity: 0.28; }
}

@media (max-width: 768px) {
  .door-silhouette-left  { left: 26px; }
  .door-silhouette-right { right: 26px; }
}

/* ─── Frosted Glass Doors ──────────────────── */

.door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  backdrop-filter: blur(22px) saturate(1.05) brightness(0.85) contrast(1.1);
  -webkit-backdrop-filter: blur(22px) saturate(1.05) brightness(0.85) contrast(1.1);
  will-change: transform;
  z-index: 1;
}

/* Visible frost texture — fine directional scratch + noise grain */
.door::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      91deg,
      rgba(var(--sl-white-rgb), 0.025) 0px,
      rgba(var(--sl-white-rgb), 0) 1px,
      rgba(var(--sl-white-rgb), 0.015) 2px,
      rgba(var(--sl-white-rgb), 0) 4px
    ),
    repeating-linear-gradient(
      178deg,
      rgba(var(--sl-white-rgb), 0.015) 0px,
      rgba(var(--sl-white-rgb), 0) 2px,
      rgba(var(--sl-white-rgb), 0.01) 3px,
      rgba(var(--sl-white-rgb), 0) 6px
    ),
    repeating-conic-gradient(
      rgba(var(--sl-white-rgb), 0.02) 0% 25%,
      rgba(var(--sl-black-rgb), 0.02) 0% 50%
    ) 0 0 / 2px 2px;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}

/* Glass reflection — visible sheen across the surface */
.door::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      130deg,
      rgba(var(--sl-white-rgb), 0.18) 0%,
      rgba(var(--sl-white-rgb), 0.06) 10%,
      rgba(var(--sl-white-rgb), 0) 28%,
      rgba(var(--sl-black-rgb), 0.02) 50%,
      rgba(var(--sl-white-rgb), 0) 65%,
      rgba(var(--sl-white-rgb), 0.05) 80%,
      rgba(220, 230, 245, 0.1) 100%
    ),
    radial-gradient(
      ellipse 50% 40% at 46% 36%,
      rgba(255, 225, 170, 0.06) 0%,
      transparent 60%
    );
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 2;
}

/* Frost texture + warm light bleed — rich, lux feel */
.door-frost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 45% at 54% 30%, rgba(190, 155, 105, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse 45% 65% at 40% 58%, rgba(165, 135, 95, 0.14) 0%, transparent 42%),
    radial-gradient(ellipse 55% 28% at 48% 88%, rgba(175, 145, 100, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse 32% 22% at 62% 15%, rgba(210, 175, 125, 0.14) 0%, transparent 38%),
    radial-gradient(ellipse 40% 30% at 28% 42%, rgba(180, 150, 100, 0.08) 0%, transparent 50%);
  mix-blend-mode: screen;
}

.door-left {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(3, 4, 6, 0.99) 0%,
    rgba(8, 9, 14, 0.975) 5%,
    rgba(14, 16, 22, 0.96) 14%,
    rgba(22, 24, 28, 0.94) 32%,
    rgba(30, 30, 32, 0.92) 56%,
    rgba(36, 34, 31, 0.9) 78%,
    rgba(42, 40, 36, 0.88) 100%
  );
  border-right: 1px solid rgba(var(--sl-white-rgb), 0.09);
  box-shadow:
    inset -1px 0 0 rgba(var(--sl-white-rgb), 0.07),
    inset 0 0 220px rgba(200, 155, 100, 0.04),
    inset 0 2px 0 rgba(var(--sl-white-rgb), 0.035),
    inset 0 -4px 16px rgba(var(--sl-black-rgb), 0.28),
    8px 0 48px rgba(var(--sl-black-rgb), 0.5),
    2px 0 0 rgba(var(--sl-white-rgb), 0.04);
}

.door-right {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(3, 4, 6, 0.99) 0%,
    rgba(8, 9, 14, 0.975) 5%,
    rgba(14, 16, 22, 0.96) 14%,
    rgba(22, 24, 28, 0.94) 32%,
    rgba(30, 30, 32, 0.92) 56%,
    rgba(36, 34, 31, 0.9) 78%,
    rgba(42, 40, 36, 0.88) 100%
  );
  border-left: 1px solid rgba(var(--sl-white-rgb), 0.09);
  box-shadow:
    inset 1px 0 0 rgba(var(--sl-white-rgb), 0.07),
    inset 0 0 220px rgba(200, 155, 100, 0.04),
    inset 0 2px 0 rgba(var(--sl-white-rgb), 0.035),
    inset 0 -4px 16px rgba(var(--sl-black-rgb), 0.28),
    -8px 0 48px rgba(var(--sl-black-rgb), 0.5),
    -2px 0 0 rgba(var(--sl-white-rgb), 0.04);
}

/* ─── Door Handles — dark architectural pull bars ── */

.door-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: min(346px, 53.3vh);
  border-radius: 3.5px;
  z-index: 6;
  background: linear-gradient(
    90deg,
    #3a3836 0%,
    #706a64 10%,
    #a09890 26%,
    #c0b8ae 42%,
    #d0c8be 50%,
    #c0b8ae 58%,
    #a09890 74%,
    #706a64 90%,
    #3a3836 100%
  );
  box-shadow:
    3px 4px 22px rgba(var(--sl-black-rgb), 0.75),
    0 0 6px rgba(var(--sl-black-rgb), 0.35),
    inset 0 1px 2px rgba(var(--sl-white-rgb), 0.35),
    inset 0 -1px 2px rgba(var(--sl-black-rgb), 0.45);
}

/* Warm ambient reflection along the bar */
.door-handle::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 0;
  right: 0;
  height: 32%;
  background: linear-gradient(
    180deg,
    rgba(240, 220, 180, 0.3) 0%,
    rgba(240, 220, 180, 0.04) 100%
  );
  border-radius: inherit;
  pointer-events: none;
}

/* Mounting rosettes — round caps at each end */
.door-handle::after {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    #8a8680 0%,
    #5a5652 45%,
    #3a3836 100%
  );
  box-shadow:
    0 0 5px rgba(var(--sl-black-rgb), 0.5),
    inset 0 1px 2px rgba(var(--sl-white-rgb), 0.22),
    0 calc(min(346px, 53.3vh)) 0 0 #3a3836,
    0 calc(min(346px, 53.3vh)) 5px rgba(var(--sl-black-rgb), 0.5);
}

.door-left .door-handle {
  right: 40px;
}

.door-right .door-handle {
  left: 40px;
}

/* ─── Door Hinge Strip — architectural panel with two 3D beveled edges ── */

.door-hinge-strip {
  position: absolute;
  top: 0;
  width: 36px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  background: #484440;
  box-shadow:
    inset 0 1px 0 rgba(var(--sl-white-rgb), 0.08),
    inset 0 -1px 0 rgba(var(--sl-black-rgb), 0.5);
}

/* Left 3D bevel — inset 6px from left edge */
.door-hinge-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6px;
  width: 5px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(var(--sl-white-rgb), 0.18) 0px,
    rgba(var(--sl-white-rgb), 0.18) 1px,
    rgba(var(--sl-black-rgb), 0.9) 1px,
    rgba(var(--sl-black-rgb), 0.9) 3px,
    rgba(var(--sl-white-rgb), 0.16) 3px,
    rgba(var(--sl-white-rgb), 0.16) 4px,
    transparent 5px
  );
}

/* Right 3D bevel — inset 6px from right edge */
.door-hinge-strip::after {
  content: '';
  position: absolute;
  top: 0;
  right: 6px;
  width: 5px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0px,
    rgba(var(--sl-white-rgb), 0.16) 1px,
    rgba(var(--sl-white-rgb), 0.16) 2px,
    rgba(var(--sl-black-rgb), 0.9) 2px,
    rgba(var(--sl-black-rgb), 0.9) 4px,
    rgba(var(--sl-white-rgb), 0.18) 4px,
    rgba(var(--sl-white-rgb), 0.18) 5px
  );
}

.door-left .door-hinge-strip {
  left: 0;
  box-shadow:
    inset 0 1px 0 rgba(var(--sl-white-rgb), 0.08),
    inset 0 -1px 0 rgba(var(--sl-black-rgb), 0.5),
    6px 0 20px rgba(var(--sl-black-rgb), 0.5);
}

.door-right .door-hinge-strip {
  right: 0;
  box-shadow:
    inset 0 1px 0 rgba(var(--sl-white-rgb), 0.08),
    inset 0 -1px 0 rgba(var(--sl-black-rgb), 0.5),
    -6px 0 20px rgba(var(--sl-black-rgb), 0.5);
}

/* ─── Center Seam — warm light bleed between doors ── */

.door-seam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 220, 160, 0) 0%,
    rgba(255, 220, 160, 0.1) 12%,
    rgba(255, 230, 180, 0.22) 35%,
    rgba(255, 235, 190, 0.28) 48%,
    rgba(255, 235, 190, 0.28) 52%,
    rgba(255, 230, 180, 0.22) 65%,
    rgba(255, 220, 160, 0.1) 88%,
    rgba(255, 220, 160, 0) 100%
  );
  box-shadow:
    0 0 6px rgba(255, 210, 140, 0.1),
    0 0 18px rgba(255, 200, 130, 0.05),
    0 0 40px rgba(255, 200, 130, 0.025);
}

/* ─── Door Content — Left (Logo) ───────────── */

.door-content-left {
  position: absolute;
  top: 50%;
  right: calc(43.5px + 4rem + 100px - clamp(44px, 4.4vw, 74px));
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 6;
}

.door-logo {
  width: clamp(270px, 27vw, 450px);
  height: auto;
  opacity: 0;
  transform: translateY(24px);
  filter:
    drop-shadow(0 4px 32px rgba(var(--sl-black-rgb), 0.5))
    drop-shadow(0 0 2px rgba(var(--sl-black-rgb), 0.5));
  animation: soft-rise 0.65s cubic-bezier(0.25, 0.1, 0.25, 1) 0.15s forwards;
}

/* ─── Door Content — Right (Copy) ──────────── */

.door-content-right {
  position: absolute;
  top: 50%;
  left: calc(43.5px + 4rem + 100px);
  transform: translateY(-50%);
  pointer-events: none;
  text-align: left;
  z-index: 6;
}

.door-tagline {
  font-size: clamp(0.87rem, 1.275vw, 1.08rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--sl-ink);
  opacity: 0;
  transform: translateY(18px);
  line-height: 1.55;
  white-space: normal;
  max-width: min(340px, 32vw);
  max-height: min(72vh, 520px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  text-shadow:
    0 1px 32px rgba(var(--sl-black-rgb), 0.5),
    0 0 1px rgba(var(--sl-black-rgb), 0.4);
  animation: soft-rise-dim 0.65s cubic-bezier(0.25, 0.1, 0.25, 1) 0.7s forwards;
}

@keyframes soft-rise {
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

@keyframes soft-rise-dim {
  to {
    opacity: 0.72;
    transform: translateY(0);
  }
}

/* ─── Scroll cue (fixed bottom CTA) ─────────── */

.scroll-cue {
  position: fixed;
  bottom: calc(1.5rem + 25px);
  left: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
  font-family: inherit;
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  font-weight: 300;
  color: rgba(var(--sl-ink-rgb), 0.92);
  letter-spacing: 0.02em;
  text-align: center;
}

.scroll-cue.is-visible {
  opacity: 1;
}

.scroll-cue-text {
  margin: 0;
  white-space: nowrap;
}

.scroll-cue-arrow {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  animation: scroll-cue-arrow-bounce 1.35s ease-in-out infinite;
}

@keyframes scroll-cue-arrow-bounce {
  0%, 100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: rotate(45deg) translateY(5px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue-arrow {
    animation: none;
    opacity: 0.85;
  }

  /* Calm non-essential CSS animations/transitions for users who request it.
     Scroll-driven WebGL camera work is functional motion and stays. */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Increased contrast (OS "more contrast" preference) ─── */

@media (prefers-contrast: more) {
  .nav-link { opacity: 1; }

  .news-excerpt,
  .news-link { color: var(--sl-ink); }

  .news-tag,
  .pm-tag,
  .section-label { color: rgb(var(--sl-gold-rgb)); }

  .pm-desc { color: rgba(var(--sl-ink-rgb), 0.92); }

  .am-eyebrow,
  .am-item-year { color: rgb(var(--sl-amber-rgb)); }

  .am-item-desc { color: rgba(240, 232, 210, 0.95); }
}

/* ─── Navigation ────────────────────────────── */

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transition: opacity 0.6s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  z-index: 50;
  opacity: 0;
  /* visibility:hidden removes the hidden nav links from the tab order so
     keyboard focus can't land on an invisible control (issue 7). */
  visibility: hidden;
  pointer-events: none;
}

#main-nav.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-logo img {
  height: 71px;
  width: auto;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo:hover img {
  opacity: 1;
}

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

.nav-link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sl-ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.nav-link:hover { opacity: 1; }

/* ─── Project Modal ──────────────────────────── */

#project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  /* `safe center` + scroll keeps tall content reachable at 200% zoom instead
     of clipping the top of the panel (WCAG 1.4.4 / 1.4.10). */
  align-items: safe center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(var(--sl-black-rgb), 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  transition:
    background 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    backdrop-filter 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#project-modal.open {
  background: rgba(var(--sl-black-rgb), 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.pm-panel {
  position: relative;
  width: 90vw;
  max-width: 720px;
  background: var(--sl-panel);
  border: 1px solid rgba(var(--sl-white-rgb), 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#project-modal.open .pm-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pm-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(var(--sl-white-rgb), 0.15);
  border-radius: 50%;
  background: rgba(var(--sl-black-rgb), 0.5);
  color: rgba(var(--sl-white-rgb), 0.7);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}

.pm-close::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
}

.pm-close:focus-visible {
  outline: 2px solid var(--sl-white);
  outline-offset: 2px;
}

.pm-close:hover {
  border-color: rgba(var(--sl-white-rgb), 0.35);
  color: var(--sl-white);
}

.pm-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  overflow: hidden;
}

.pm-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.pm-video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.pm-content {
  padding: 2rem 2rem 2.5rem;
}

.pm-tags {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.pm-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--sl-gold-rgb), 0.95);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(var(--sl-gold-rgb), 0.2);
}

.pm-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--sl-ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.pm-subhead {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(var(--sl-ink-rgb), 0.8);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.pm-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(var(--sl-ink-rgb), 0.78);
  line-height: 1.7;
}

/* ─── Awards Gallery Modal ───────────────────── */

#awards-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: safe center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(var(--sl-black-rgb), 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  pointer-events: none;
  transition:
    background 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    backdrop-filter 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#awards-modal.open {
  background: rgba(6, 5, 4, 0.82);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  pointer-events: auto;
}

.am-panel {
  position: relative;
  width: min(96vw, 1040px);
  max-height: min(96vh, 1020px);
  padding: 3.2rem 3rem 2.4rem;
  background:
    radial-gradient(140% 60% at 50% 0%, rgba(var(--sl-amber-rgb), 0.10) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(180deg, #14110f 0%, #0a0807 100%);
  border: 1px solid rgba(var(--sl-amber-rgb), 0.10);
  box-shadow:
    0 50px 120px rgba(var(--sl-black-rgb), 0.65),
    0 0 0 1px rgba(var(--sl-white-rgb), 0.02) inset;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Awards unified list */
.am-list {
  list-style: none;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  overflow-y: auto;
  padding: 0;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .am-list {
    grid-template-columns: 1fr;
  }
}

.am-item {
  padding: 0.85rem 1rem;
  background: rgba(var(--sl-amber-rgb), 0.04);
  border: 1px solid rgba(var(--sl-amber-rgb), 0.10);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.am-item-name {
  font-size: 1.065rem;
  font-weight: 500;
  color: rgba(240, 232, 210, 0.95);
  line-height: 1.3;
}

.am-item-year {
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--sl-amber-rgb), 0.85);
}

.am-item-desc {
  font-size: 0.96rem;
  color: rgba(240, 232, 210, 0.8);
  line-height: 1.5;
  margin-top: 0.2rem;
}

#awards-modal.open .am-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.am-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 10;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(var(--sl-amber-rgb), 0.16);
  border-radius: 50%;
  background: rgba(var(--sl-black-rgb), 0.3);
  color: rgba(232, 220, 200, 0.55);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s, color 0.35s, background 0.35s, transform 0.35s;
}

.am-close::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.am-close:focus-visible {
  outline: 2px solid var(--sl-white);
  outline-offset: 2px;
}

.am-close:hover {
  border-color: rgba(var(--sl-amber-rgb), 0.45);
  color: var(--sl-white);
  background: rgba(var(--sl-amber-rgb), 0.06);
}

.am-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(var(--sl-amber-rgb), 0.85);
  margin-bottom: 1.4rem;
}

.am-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.am-nav {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(var(--sl-amber-rgb), 0.14);
  background: transparent;
  color: rgba(232, 220, 200, 0.55);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s, color 0.35s, background 0.35s, transform 0.35s;
}

.am-nav:hover {
  border-color: rgba(var(--sl-amber-rgb), 0.55);
  color: var(--sl-white);
  background: rgba(var(--sl-amber-rgb), 0.05);
}

.am-nav:active {
  transform: scale(0.92);
}

.am-media {
  position: relative;
  width: 240px;
  /* Aspect locked to the trophy crops in data/awards.json (130×240). */
  aspect-ratio: 13 / 24;
  flex-shrink: 0;
  /* Soft warm halo behind the trophy crop reinforces the museum-spotlight feel
     without competing with the cubby light baked into the image itself. */
  background:
    radial-gradient(75% 45% at 50% 8%, rgba(255, 218, 168, 0.16) 0%, rgba(255, 218, 168, 0) 70%);
}

.am-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 218, 168, 0.04);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  /* Subtle inner shadow so the crop reads as a recessed niche, plus a hairline
     warm border that ties the modal back to the cubby on the wall. */
  box-shadow:
    inset 0 0 80px rgba(var(--sl-black-rgb), 0.4),
    inset 0 1px 0 rgba(var(--sl-amber-rgb), 0.18),
    0 30px 60px rgba(var(--sl-black-rgb), 0.55);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.am-image.loaded {
  opacity: 1;
  transform: translateY(0);
}

.am-info {
  margin: 2.2rem 0 1.6rem;
  text-align: center;
  max-width: 480px;
}

.am-year {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(var(--sl-amber-rgb), 0.75);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding: 0 1.2rem;
}

/* Hairline rules flanking the year, like a museum plaque date. */
.am-year::before,
.am-year::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--sl-amber-rgb), 0) 0%, rgba(var(--sl-amber-rgb), 0.5) 100%);
}
.am-year::before { right: 100%; }
.am-year::after  {
  left: 100%;
  background: linear-gradient(90deg, rgba(var(--sl-amber-rgb), 0.5) 0%, rgba(var(--sl-amber-rgb), 0) 100%);
}

.am-name {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 200;
  color: #f4ede0;
  letter-spacing: 0.005em;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.am-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(244, 237, 224, 0.5);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.am-thumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.am-thumb {
  position: relative;
  width: 38px;
  /* Match the crop aspect so each trophy thumb scales uniformly. */
  aspect-ratio: 13 / 24;
  border: 1px solid rgba(var(--sl-amber-rgb), 0.10);
  background-color: rgba(255, 218, 168, 0.04);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  opacity: 0.4;
  transition:
    opacity 0.35s,
    border-color 0.35s,
    transform 0.35s,
    box-shadow 0.35s;
}

.am-thumb:hover {
  opacity: 0.8;
  border-color: rgba(var(--sl-amber-rgb), 0.35);
}

.am-thumb.active {
  opacity: 1;
  border-color: rgba(var(--sl-amber-rgb), 0.6);
  box-shadow:
    0 0 0 1px rgba(var(--sl-amber-rgb), 0.18),
    0 8px 18px rgba(var(--sl-black-rgb), 0.45);
  transform: translateY(-2px);
}

.am-thumb.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 12px;
  height: 1px;
  background: rgba(var(--sl-amber-rgb), 0.75);
}

.am-counter {
  margin-top: 1.4rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(var(--sl-amber-rgb), 0.32);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .am-panel {
    padding: 2.4rem 1.4rem 1.6rem;
  }
  .am-stage {
    gap: 0.6rem;
  }
  .am-media {
    width: 200px;
  }
  .am-nav {
    width: 34px;
    height: 34px;
  }
  .am-thumb {
    width: 32px;
  }
  .am-info { margin: 1.8rem 0 1.2rem; }
}

/* ─── Scroll Sections ───────────────────────── */

#hero {
  height: 200vh;
  position: relative;
  pointer-events: none;
}

#corridor-section {
  height: 560vh;
  position: relative;
  pointer-events: none;
}

/* ─── Lab Room ─────────────────────────────── */

#lab-intro {
  width: 100%;
  box-sizing: border-box;
  min-height: 110vh;
  min-height: 110dvh;
  padding: 5.5rem 2rem 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lab-scroll {
  height: 400vh;
  margin: 0;
  padding: 0;
  border: 0;
  position: relative;
  pointer-events: none;
  background: transparent;
}

#lab-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#lab-canvas.visible {
  opacity: 1;
}

/* ─── Shared Section Styles ────────────────── */

.reveal-section {
  position: relative;
  z-index: 20;
  background: var(--sl-surface);
}

.reveal-el,
.reveal-line {
  opacity: 0;
  transform: translateY(40px);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(var(--sl-gold-rgb), 0.95);
  margin-bottom: 1.5rem;
}

.section-heading {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 200;
  letter-spacing: -0.01em;
  color: var(--sl-ink);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

/* ─── Statement Section ────────────────────── */

.statement-inner {
  max-width: 820px;
  text-align: center;
}

.statement-label {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(var(--sl-gold-rgb), 0.95);
  margin-bottom: 2.5rem;
}

.statement-body {
  text-align: left;
}

.statement-body p {
  font-size: clamp(0.95rem, 1.35vw, 1.12rem);
  font-weight: 300;
  color: rgba(var(--sl-ink-rgb), 0.82);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.statement-body p:last-child {
  margin-bottom: 0;
}

/* ─── News Section ──────────────────────────── */

#news {
  padding: 4rem 2rem 8rem;
}

.news-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.news-card {
  display: block;
  text-decoration: none;
  color: var(--sl-ink);
  background: transparent;
  border: 1px solid rgba(var(--sl-white-rgb), 0.06);
  overflow: hidden;
  transition:
    border-color 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
    background 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.news-card:hover {
  border-color: rgba(var(--sl-white-rgb), 0.12);
  background: rgba(var(--sl-white-rgb), 0.02);
}

.news-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  filter: brightness(0.75) saturate(0.85);
}

.news-card:hover .news-image img {
  transform: scale(1.05);
  filter: brightness(0.85) saturate(1);
}

.news-body {
  padding: 2rem 2rem 2.5rem;
}

.news-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--sl-gold-rgb), 0.95);
  margin-bottom: 1rem;
}

.news-title {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--sl-ink);
  margin-bottom: 0.8rem;
  transition: color 0.5s ease;
}

.news-card:hover .news-title {
  color: var(--sl-white);
}

.news-excerpt {
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(var(--sl-ink-rgb), 0.75);
  margin-bottom: 1.5rem;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(var(--sl-ink-rgb), 0.8);
  text-decoration: none;
  transition: color 0.5s ease;
}

.news-card:hover .news-link {
  color: rgba(var(--sl-gold-rgb), 0.7);
}

.news-arrow {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.news-card:hover .news-arrow {
  transform: translateX(5px);
}

/* ─── Contact Section (quiet footer-style block) ── */

#contact {
  position: relative;
  padding: 5rem 2rem 4rem;
}

.contact-canvas {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(var(--sl-white-rgb), 0.06);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(var(--sl-gold-rgb), 0.95);
}

.contact-address {
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(var(--sl-ink-rgb), 0.78);
  letter-spacing: 0.01em;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--sl-gold-rgb), 0.7);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.4s ease;
}

.contact-link:hover {
  color: rgba(var(--sl-white-rgb), 0.92);
}

.contact-arrow {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.contact-link:hover .contact-arrow {
  transform: translateX(4px);
}

.contact-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.contact-social a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(var(--sl-white-rgb), 0.1);
  color: rgba(var(--sl-ink-rgb), 0.6);
  text-decoration: none;
  transition:
    color 0.4s ease,
    border-color 0.4s ease,
    background 0.4s ease;
}

.contact-social a::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
}

.contact-social a:hover {
  color: rgba(var(--sl-white-rgb), 0.95);
  border-color: rgba(var(--sl-gold-rgb), 0.45);
  background: rgba(var(--sl-gold-rgb), 0.05);
}

.contact-social a:focus-visible {
  outline: 2px solid rgba(var(--sl-gold-rgb), 0.6);
  outline-offset: 2px;
}

/* ─── Footer ────────────────────────────────── */

#main-footer {
  position: relative;
  z-index: 20;
  background: var(--sl-surface);
  padding: 4rem 2rem 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 24px;
  width: auto;
  opacity: 0.3;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(var(--sl-ink-rgb), 0.78);
  transition: color 0.5s ease;
}

.footer-nav a:hover {
  color: rgba(var(--sl-white-rgb), 0.6);
}

.footer-divider {
  height: 1px;
  background: rgba(var(--sl-white-rgb), 0.06);
  margin-bottom: 2rem;
}

.footer-legal {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}

.footer-legal li {
  display: inline-flex;
  align-items: center;
}

.footer-legal li + li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(var(--sl-white-rgb), 0.12);
  margin-right: 1.6rem;
  margin-left: -1.6rem;
}

.footer-legal a {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(var(--sl-ink-rgb), 0.7);
  transition: color 0.45s ease;
  white-space: nowrap;
}

.footer-legal a:hover {
  color: rgba(var(--sl-white-rgb), 0.9);
}

.footer-legal a.footer-legal-emphasis {
  color: rgba(var(--sl-ink-rgb), 0.7);
  font-weight: 400;
  white-space: normal;
}

.footer-legal a.footer-legal-emphasis:hover {
  color: var(--sl-white);
}

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

.footer-address {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(var(--sl-white-rgb), 0.7);
  letter-spacing: 0.03em;
}

.footer-copyright {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(var(--sl-white-rgb), 0.7);
}

/* ─── Responsive ────────────────────────────── */

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .contact-canvas { grid-template-columns: 1fr; gap: 2.4rem; }
}

@media (max-width: 768px) {
  .scroll-cue {
    bottom: calc(1rem + 25px);
    font-size: 0.8125rem;
  }
  #main-nav { padding: 1.25rem 1.5rem; }
  .nav-logo img { height: 37px; }
  #lab-intro { padding: 4.5rem 1.5rem 14rem; }
  #news { padding: 3rem 1rem 4rem; }
  #contact { padding: 4rem 1.25rem 3rem; }
  .contact-canvas { padding-top: 2.4rem; }
  .footer-legal { gap: 0.6rem 1.2rem; }
  .footer-legal li + li::before { display: none; }
  .door-logo { width: clamp(175px, 40vw, 270px); }
  .door-tagline {
    font-size: 0.75rem;
    max-width: min(300px, 88vw);
    max-height: 58vh;
    letter-spacing: 0.025em;
  }
  .door-handle {
    height: 187px;
    width: 5px;
  }
  .door-handle::after {
    width: 13px;
    height: 13px;
    top: -7px;
    box-shadow:
      0 0 3px rgba(var(--sl-black-rgb), 0.5),
      inset 0 1px 1px rgba(var(--sl-white-rgb), 0.06),
      0 187px 0 0 var(--sl-bg),
      0 187px 3px rgba(var(--sl-black-rgb), 0.5);
  }
  .door-left .door-handle { right: 24px; }
  .door-right .door-handle { left: 24px; }
  .door-hinge-strip { width: 26px; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .news-body { padding: 1.5rem; }
}

/* ─── Skip link (a11y) ─────────────────────── */

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--sl-white);
  color: var(--sl-bg);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 0 0 10px 0;
  transform: translateY(-110%);
  transition: transform 160ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--sl-white);
  outline-offset: 2px;
}

/* ─── Site variant switch (immersive ↔ accessible) ─────────── */

.nav-link-site-switch {
  border: 1px solid rgba(var(--sl-ink-rgb), 0.45);
  border-radius: 999px;
  padding: 0.35rem 1rem !important;
  opacity: 1;
  transition: none;
  /* Solid dark backing so the beige label keeps >= 4.5:1 contrast even when
     the bright corridor wall is behind it (the background is not fixed). */
  background: rgba(17, 16, 16, 0.85);
}

.nav-link-site-switch:hover,
.nav-link-site-switch:focus-visible {
  border-color: rgba(var(--sl-white-rgb), 0.6);
}

/* ─── Keyboard accessibility controls (focus-revealed bar) ─── */

.a11y-controls {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--sl-surface);
  border-bottom: 1px solid rgba(var(--sl-ink-rgb), 0.4);
  transform: translateY(-110%);
  transition: transform 0.2s ease;
}

.a11y-controls:focus-within {
  transform: translateY(0);
}

.a11y-controls-group {
  display: contents;
}

.a11y-controls-btn {
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sl-ink);
  background: rgba(var(--sl-white-rgb), 0.06);
  border: 1px solid rgba(var(--sl-ink-rgb), 0.45);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  min-height: 44px;
  cursor: pointer;
}

.a11y-controls-btn:hover,
.a11y-controls-btn:focus-visible {
  background: rgba(var(--sl-white-rgb), 0.16);
}

/* Keep entrance content visible (not stuck at opacity:0) when motion is
   reduced or the user pauses motion, and neutralize CSS animation/transition. */
@media (prefers-reduced-motion: reduce) {
  .reveal-el,
  .reveal-line {
    opacity: 1 !important;
    transform: none !important;
  }
}

html.motion-paused .reveal-el,
html.motion-paused .reveal-line {
  opacity: 1 !important;
  transform: none !important;
}

html.motion-paused *,
html.motion-paused *::before,
html.motion-paused *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

/* ─── Mobile / coarse-pointer overrides ─────────────────────
   The hero door overlay uses backdrop-filter blur(90px) on two doors,
   an SVG filter graph on two autoplay <video> silhouettes, and overlay/
   multiply blend modes on grain + vignette layers. On iPad/iPhone Safari,
   each of those forces a full-screen composite pass per frame, so the door
   open animation drops to 10–20 fps. We trade the cinematic grading for a
   flat warm-tinted glass + simpler renders — still reads as a frosted
   double-door but composites in one pass per frame. */
@media (hover: none) and (pointer: coarse) {
  .door {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Solid warm-tinted glass replaces the 90px blur. Tuned to approximate
       the average tone of the blurred corridor scene behind it. */
    background: rgba(35, 26, 18, 0.78);
  }

  /* Drop soft-light blend on the glass reflection sheen. Still visible as
     a faint highlight via the gradient alpha values. */
  .door::after {
    mix-blend-mode: normal;
    opacity: 0.55;
  }

  /* Drop the SVG filter graph (Safari re-runs it per video frame) and the
     multiply blend. A light blur preserves the ghosted-through-glass feel
     at a fraction of the cost. */
  .door-silhouette {
    filter: blur(2px);
    mix-blend-mode: normal;
  }

  /* 35mm grain barely reads at touch viewport sizes; overlay-blending it
     full-screen every frame is pure cost. Drop entirely on mobile. */
  .door-cinematic-grain {
    display: none;
  }

  /* Keep the vignette darkening but drop the multiply blend mode. */
  .door-cinematic-vignette {
    mix-blend-mode: normal;
    opacity: 0.65;
  }
}
