/* ==========================================================================
   Fsquared Lighting Design — Production Stylesheet
   ========================================================================== */

:root {
  --bg: #050507;
  --bg-elevated: rgba(12, 12, 16, 0.86);
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.22);
  --gold: #d4af37;
  --gold-light: #f3d98b;
  --gold-glow: rgba(212, 175, 55, 0.28);
  --text-primary: #f5f5f3;
  --text-secondary: #c7c7cf;
  --text-muted: #9898a6;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-script: 'Mrs Saint Delafield', cursive;
  --radius-card: 2rem;
  --radius-inner: 1.35rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  height: 1350vh;
}

body.linear-mode {
  height: auto;
  overflow-y: auto;
}

body.modal-open {
  overflow: hidden;
}

/* Hide native scrollbar only in desktop spatial viewport mode */
body:not(.linear-mode)::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.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;
}

/* ==========================================================================
   Atmospheric Background Layers
   ========================================================================== */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 25%, rgba(212, 175, 55, 0.08), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(45, 55, 78, 0.14), transparent 60%),
    #050507;
}

.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  background: radial-gradient(
    540px circle at var(--x, 50vw) var(--y, 50vh),
    rgba(243, 217, 139, 0.09),
    rgba(255, 255, 255, 0.025) 42%,
    transparent 72%
  );
  mix-blend-mode: screen;
  transition: background 0.4s ease;
}

body.in-dark-chamber #cursor-glow {
  background: radial-gradient(
    360px circle at var(--x, 50vw) var(--y, 50vh),
    rgba(255, 232, 165, 0.2),
    rgba(212, 175, 55, 0.08) 48%,
    transparent 74%
  );
}

@media (hover: none), (pointer: coarse) {
  #cursor-glow {
    display: none;
  }
}

/* ==========================================================================
   Floating Navigation & Mobile Drawer
   ========================================================================== */

.site-header {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
  pointer-events: none;
}

.glass-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0.75rem 0.6rem 1.35rem;
  border-radius: 9999px;
  background: rgba(8, 8, 12, 0.74);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65);
  max-width: 1060px;
  width: auto;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
  padding: 0.15rem 0.25rem;
  flex-shrink: 0;
}

.brand-f {
  font-family: var(--font-script);
  font-size: 2.25rem;
  line-height: 0.85;
  color: var(--text-primary);
  transform: translateY(3px);
}

.brand-sup {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
  transform: translateY(-0.55rem);
}

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

.nav-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn.is-active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-inquire {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #09090b;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.28);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn-inquire:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.42);
}

.mobile-menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 2.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-close {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 1.5rem 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
}

.mobile-nav-link span.idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-light);
}

.mobile-nav-link.is-active {
  color: var(--gold-light);
}

/* ==========================================================================
   Right-Side Vertical Depth Rail (Desktop Spatial Mode)
   ========================================================================== */

.depth-rail {
  position: fixed;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.depth-dot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.2rem 0.25rem;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.depth-dot-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.depth-dot:hover .depth-dot-label,
.depth-dot.is-active .depth-dot-label {
  opacity: 1;
  transform: translateX(0);
}

.depth-dot-pip {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.28);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.depth-dot:hover .depth-dot-pip {
  background: rgba(255, 255, 255, 0.75);
}

.depth-dot.is-active {
  color: var(--gold-light);
}

.depth-dot.is-active .depth-dot-pip {
  background: var(--gold-light);
  transform: scale(1.45);
  box-shadow: 0 0 12px rgba(243, 217, 139, 0.7);
}

/* ==========================================================================
   Spatial Viewport (Desktop) & Linear Mode (Mobile / Reduced Motion)
   ========================================================================== */

.spatial-viewport {
  position: fixed;
  inset: 0;
  perspective: 1450px;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
}

.spatial-section {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(980px, calc(100vw - 5.5rem));
  max-height: calc(100vh - 6.75rem);
  transform: translate(-50%, -50%) translateZ(-1000px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spatial-section.is-visible {
  pointer-events: auto;
}

.spatial-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
  color: rgba(255, 248, 224, 0.92);
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 4.3vw, 3.8rem);
  white-space: nowrap;
  will-change: transform, opacity;
  z-index: 16;
  text-shadow: 0 0 18px rgba(243, 217, 139, 0.72), 0 0 42px rgba(212, 175, 55, 0.38);
}

/* Secret Phrase Overlay (Dark Chamber Flashlight Easter Egg) */
.secret-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.secret-container.is-active {
  opacity: 1;
}

.secret-phrase {
  margin: 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
  line-height: 1.24;
  letter-spacing: 0.04em;
  color: rgba(243, 217, 139, 0.16);
  background: radial-gradient(
    circle 260px at var(--x, 50vw) var(--y, 50vh),
    rgba(255, 238, 178, 1),
    rgba(212, 175, 55, 0.5) 50%,
    rgba(243, 217, 139, 0.13) 82%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-attachment: fixed;
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.25));
}

.secret-cue {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(243, 217, 139, 0.58);
}

/* Linear Mode Overrides */
body.linear-mode .spatial-viewport {
  position: relative;
  inset: auto;
  perspective: none;
  overflow: visible;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  padding: 6.25rem 1rem 3rem;
}

body.linear-mode .spatial-section {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 760px;
  max-height: none;
  margin: 0 auto;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.linear-mode .spatial-hint,
body.linear-mode .depth-rail {
  display: none;
}

body.linear-mode .secret-container {
  position: relative;
  inset: auto;
  padding: 2.5rem 1.25rem 4rem;
  opacity: 1 !important;
}

body.linear-mode .secret-phrase {
  opacity: 1 !important;
  background: none;
  -webkit-text-fill-color: initial;
  color: rgba(243, 217, 139, 0.85);
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.28);
}

body.linear-mode .secret-cue {
  display: none;
}

/* ==========================================================================
   Shared Typography & Glass Card Surfaces
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.section-heading {
  margin: 0.45rem 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text-primary);
}

.glass-card {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(150deg, rgba(12, 12, 18, 0.34) 0%, rgba(5, 5, 9, 0.48) 100%);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  border: 1px solid rgba(243, 217, 139, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(243, 217, 139, 0.24), rgba(255, 255, 255, 0.04) 45%, transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ==========================================================================
   Section 0 — Hero
   ========================================================================== */

.hero-wrap {
  text-align: center;
  max-width: 780px;
  padding: 2rem 1rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
}

.hero-location-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 10px var(--gold-light);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.6rem, 8.5vw, 7.2rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-light);
}

.hero-subtitle {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 300;
  color: var(--text-secondary);
}

.hero-cta-row {
  margin-top: 2.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.btn-primary-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.65rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #09090b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.3);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.btn-primary-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(212, 175, 55, 0.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(243, 217, 139, 0.45);
}

.hero-scroll-cue {
  margin-top: 2.25rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.hero-scroll-cue:hover {
  color: var(--gold-light);
}

.hero-scroll-cue svg {
  animation: floatDown 2.2s ease-in-out infinite;
}

@keyframes floatDown {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ==========================================================================
   Section 1 — Philosophy
   ========================================================================== */

.philosophy-card {
  padding: clamp(1.75rem, 4vw, 3.25rem);
  max-width: 920px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}

.philosophy-title {
  font-size: clamp(2.35rem, 4vw, 3.35rem);
  margin-bottom: 1.15rem;
}

.philosophy-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.75;
}

.pillar-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar-item {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-inner);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.pillar-item:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 217, 139, 0.35);
}

.pillar-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 600;
  color: var(--gold-light);
}

.pillar-sub {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   Section 2 — Vision
   ========================================================================== */

.vision-card {
  padding: clamp(2rem, 4.5vw, 3.75rem);
  max-width: 840px;
  text-align: center;
}

.vision-title {
  font-size: clamp(2.6rem, 4.8vw, 3.9rem);
  margin: 0.6rem 0 1.4rem;
}

.vision-quote {
  margin: 0 auto 1.75rem;
  max-width: 38rem;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

.vision-signature {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--gold-light);
  line-height: 1.1;
}

.madness-wrap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.madness-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.2rem;
  border-radius: 9999px;
  border: 1px solid rgba(243, 217, 139, 0.34);
  background: rgba(212, 175, 55, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}

.madness-seal:hover {
  transform: translateY(-1px);
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(243, 217, 139, 0.65);
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.28);
}

.madness-seal.is-active {
  background: linear-gradient(135deg, rgba(243, 217, 139, 0.92), rgba(212, 175, 55, 0.92));
  color: #09090b;
  border-color: var(--gold-light);
  font-weight: 700;
  box-shadow: 0 0 30px rgba(243, 217, 139, 0.5);
}

.madness-glyph {
  display: inline-block;
  transition: transform 0.45s ease;
}

.madness-seal.is-active .madness-glyph {
  transform: rotate(180deg) scale(1.2);
}

.madness-whisper {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--gold-light);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: opacity 0.35s ease, max-height 0.35s ease, transform 0.35s ease;
}

body.madness-active .madness-whisper {
  opacity: 0.92;
  max-height: 2.5rem;
  transform: translateY(0);
}

body.madness-active .glass-card {
  border-color: rgba(243, 217, 139, 0.38);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62), 0 0 42px rgba(212, 175, 55, 0.12), inset 0 1px 0 rgba(255, 236, 179, 0.22);
}

body.madness-active .spatial-hint {
  color: rgba(255, 240, 185, 0.98);
  text-shadow: 0 0 24px rgba(243, 217, 139, 0.92), 0 0 56px rgba(212, 175, 55, 0.55);
}

/* ==========================================================================
   Section 3 — Services
   ========================================================================== */

.services-wrap {
  width: 100%;
  max-width: 1040px;
}

.services-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.services-heading {
  font-size: clamp(2.15rem, 3.6vw, 3rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.service-card {
  padding: 2.1rem 1.65rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 217, 139, 0.35);
}

.service-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(243, 217, 139, 0.25);
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  transition: transform 0.35s var(--ease-out);
}

.service-card:hover .service-icon {
  transform: scale(1.08);
}

.service-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 500;
}

.service-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Section 4 — Engineering (Interactive Layer Analyzer)
   ========================================================================== */

.engineering-card {
  padding: clamp(1.35rem, 3vw, 2.35rem);
  max-width: 1060px;
}

.engineering-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.engineering-title {
  font-size: clamp(2rem, 3.3vw, 2.75rem);
}

.engineering-sub {
  margin: 0;
  max-width: 24rem;
  font-size: 0.84rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: right;
}

.engineering-stage {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.15rem;
  align-items: stretch;
  width: 100%;
}

.engineering-visual {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 44vh, 420px);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #08080a;
}

.engineering-photo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.engineering-photo-layer.is-active {
  opacity: 1;
}

.tech-grid-overlay {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  opacity: 0.14;
  pointer-events: none;
}

.engineering-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 7, 0.48) 0%, transparent 40%, rgba(5, 5, 7, 0.28) 100%);
  pointer-events: none;
}

/* Dynamic Lighting Layer Overlay */
.light-layer-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.55s ease, opacity 0.55s ease;
  mix-blend-mode: screen;
}

.light-layer-fx[data-mode="cove"] {
  background: radial-gradient(ellipse 75% 32% at 50% 10%, rgba(243, 217, 139, 0.44), transparent 72%);
}

.light-layer-fx[data-mode="spot"] {
  background: radial-gradient(circle 190px at 78% 40%, rgba(255, 232, 168, 0.52), rgba(212, 175, 55, 0.14) 45%, transparent 72%);
}

.light-layer-fx[data-mode="down"] {
  background: radial-gradient(ellipse 40% 58% at 30% 34%, rgba(255, 244, 214, 0.42), transparent 70%);
}

.sim-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.35rem 0.7rem;
  border-radius: 0.45rem;
  background: rgba(5, 5, 7, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* Interactive Hotspots */
.hotspot {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.92);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  z-index: 35;
  pointer-events: auto;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.65);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.hotspot::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(243, 217, 139, 0.65);
  animation: pulseRing 2.1s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

.hotspot-tag {
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  transform: translateX(-50%) translateY(-2px);
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  background: rgba(5, 5, 7, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-primary);
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  pointer-events: none;
}

.hotspot:hover,
.hotspot.is-active {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.18);
}

.hotspot.is-active .hotspot-tag {
  border-color: var(--gold-light);
  color: var(--gold-light);
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes pulseRing {
  0% { transform: scale(0.55); opacity: 0.95; }
  100% { transform: scale(2.05); opacity: 0; }
}

/* Tech Data Analysis Panel */
.tech-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem 1.45rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.tech-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.tech-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tech-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px var(--gold-light);
}

.tech-tabs {
  display: inline-flex;
  gap: 0.3rem;
}

.tech-tab {
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.tech-tab.is-active {
  color: #09090b;
  background: var(--gold-light);
  border-color: var(--gold-light);
  font-weight: 700;
}

.tech-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: opacity 0.25s ease;
}

.tech-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.65rem 0;
  margin-bottom: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-metric-label {
  margin: 0 0 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tech-metric-val {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: opacity 0.25s ease;
}

.tech-effect-label {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.tech-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-secondary);
  transition: opacity 0.25s ease;
}

/* ==========================================================================
   Section 5 — Portfolio (Region Works)
   ========================================================================== */

.portfolio-card {
  padding: clamp(1.25rem, 2.8vw, 2.1rem);
  max-width: 1020px;
}

.portfolio-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.portfolio-heading {
  font-size: clamp(1.95rem, 3.2vw, 2.65rem);
}

.portfolio-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.portfolio-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.portfolio-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-pill {
  padding: 0.3rem 0.72rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: rgba(243, 217, 139, 0.45);
  color: var(--text-primary);
}

.filter-pill.is-active {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #09090b;
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.project-tile {
  position: relative;
  height: 178px;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0c10;
  text-align: left;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.project-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 217, 139, 0.5);
}

.project-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.06);
  transition: transform 0.75s var(--ease-out), filter 0.45s ease;
}

.project-tile:hover img {
  transform: scale(1.06);
  filter: brightness(1.03) contrast(1.08);
}

.project-tile-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 7, 0.94) 8%, rgba(5, 5, 7, 0.22) 55%, transparent 100%);
  pointer-events: none;
}

.project-tile-body {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.85rem;
  z-index: 2;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.22rem;
}

.project-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.08;
  color: var(--text-primary);
}

.project-scope {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Section 6 — Lighting Lab (Knowledge + CCT + Contact)
   ========================================================================== */

.lab-card {
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  max-width: 1020px;
}

.lab-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 3.8vw, 3rem);
  align-items: center;
}

.lab-heading {
  font-size: clamp(2rem, 3.3vw, 2.65rem);
  margin-bottom: 1rem;
}

/* Before / After Slider */
.ba-slider {
  position: relative;
  width: 100%;
  height: 295px;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0d;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}

.ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after {
  z-index: 0;
  filter: none;
  transition: filter 0.2s ease;
}

.ba-cct-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-color: transparent;
  opacity: 0;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ba-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  filter: none;
}

.ba-label {
  position: absolute;
  top: 0.85rem;
  z-index: 5;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(5, 5, 7, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  pointer-events: none;
}

.ba-label-before { left: 0.85rem; }
.ba-label-after { right: 0.85rem; color: var(--gold-light); border-color: rgba(243, 217, 139, 0.35); }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(243, 217, 139, 0.95);
  z-index: 8;
  transform: translateX(-1px);
  box-shadow: 0 0 14px rgba(243, 217, 139, 0.6);
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #09090d;
  border: 2px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
}

.ba-caption {
  margin: 0.75rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Interactive CCT Scrubber */
.cct-box {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-inner);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.15rem;
}

.cct-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.cct-readout {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cct-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffb36b;
  box-shadow: 0 0 14px #ffb36b;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.cct-range {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, #ff8a3d 0%, #ffd29d 32%, #fff6ea 58%, #cde6ff 100%);
  outline: none;
  cursor: pointer;
}

.cct-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #09090d;
  box-shadow: 0 0 0 2px var(--gold-light), 0 4px 12px rgba(0, 0, 0, 0.6);
  cursor: grab;
}

.cct-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #09090d;
  box-shadow: 0 0 0 2px var(--gold-light), 0 4px 12px rgba(0, 0, 0, 0.6);
  cursor: grab;
}

.cct-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.cct-mood {
  margin: 0.8rem 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-light);
}

.cct-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Collaborate Box */
.collaborate-card {
  padding: 1.45rem 1.5rem;
  border-radius: var(--radius-inner);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #09090b;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.collaborate-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  font-style: italic;
}

.collaborate-mail {
  display: inline-block;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.collaborate-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-dark {
  padding: 0.68rem 1.15rem;
  border-radius: 9999px;
  background: #09090d;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-dark:hover {
  transform: translateY(-1px);
  background: #17171f;
}

/* ==========================================================================
   Modals (Portfolio Case Study & Consultation Inquiry)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 4, 6, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1.75rem;
  background: linear-gradient(155deg, #121218 0%, #07070a 100%);
  border: 1px solid rgba(243, 217, 139, 0.28);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.9);
  padding: clamp(1.35rem, 3vw, 2.25rem);
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s var(--ease-out);
}

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  z-index: 20;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 5, 7, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.modal-close:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.modal-media-wrap {
  position: relative;
  margin-bottom: 1.25rem;
}

.modal-hero-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #060609;
}

.modal-view-tabs {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 9999px;
  background: rgba(5, 5, 7, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.modal-view-tab {
  padding: 0.3rem 0.72rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.modal-view-tab.is-active {
  background: var(--gold-light);
  color: #09090b;
  font-weight: 700;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Inquiry Form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-select option {
  background: #101015;
  color: #f5f5f3;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-light);
  background: rgba(255, 255, 255, 0.08);
}

.form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.form-feedback {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--gold-light);
  min-height: 1.2em;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 899px) {
  .glass-nav {
    width: 100%;
    padding: 0.55rem 0.65rem 0.55rem 1.15rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  body:not(.linear-mode) .spatial-section .glass-card {
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
  }

  .philosophy-grid,
  .services-grid,
  .portfolio-grid,
  .lab-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .engineering-sub {
    text-align: left;
  }

  .engineering-stage {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .engineering-visual {
    min-height: 235px;
    height: 235px;
  }

  .tech-panel {
    padding: 1.15rem;
  }

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

  .project-tile {
    height: 195px;
  }

  .portfolio-controls {
    align-items: flex-start;
  }

  .ba-slider {
    height: 240px;
  }

  .modal-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 599px) {
  .depth-rail {
    display: none;
  }

  .hotspot[data-layer="spot"] .hotspot-tag {
    left: auto;
    right: -6px;
    transform: translateY(-2px);
  }

  .hotspot[data-layer="spot"].is-active .hotspot-tag {
    transform: translateY(0);
  }

  .ba-label {
    font-size: 0.5rem;
    padding: 0.2rem 0.45rem;
    letter-spacing: 0.08em;
    top: 0.6rem;
  }

  .ba-label-before { left: 0.55rem; }
  .ba-label-after { right: 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
