@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');

/* ==========================================================================
   Remodeling City - Master Scrollytelling Design System & Stylesheet
   ========================================================================== */

/* ── 1. Tokens & Color Palette ────────────────────────────────────────────── */
:root {
  /* Editorial Fog Light Mode (Default) */
  --bg-color: #e8e8e8;
  --bg-gradient: radial-gradient(circle at 50% 45%, #f2f2f2 0%, #e6e6e6 75%, #dddddd 100%);
  --fog-glow: rgba(255, 255, 255, 0.45);
  
  --text-heading: rgba(0, 0, 0, 0.92);
  --text-body: rgba(0, 0, 0, 0.62);
  --text-muted: rgba(0, 0, 0, 0.45);

  --accent-gold: #e5a93c;
  --accent-gold-dark: #c88820;
  --gold-gradient: linear-gradient(135deg, #ffd976 0%, #e5a93c 50%, #c88820 100%);
  --gold-gradient-hover: linear-gradient(135deg, #ffe08b 0%, #f0b54b 50%, #d4952d 100%);
  --accent-gold-glow: rgba(229, 169, 60, 0.35);
  --accent-gold-subtle: rgba(229, 169, 60, 0.12);

  --card-bg: rgba(255, 255, 255, 0.72);
  --card-border: rgba(0, 0, 0, 0.08);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);

  --pill-bg: rgba(0, 0, 0, 0.05);
  --pill-border: rgba(0, 0, 0, 0.09);
  --pill-text: rgba(0, 0, 0, 0.78);

  --input-bg: rgba(255, 255, 255, 0.92);
  --input-border: rgba(0, 0, 0, 0.12);
  --input-text: #111827;

  --nav-bg: rgba(232, 232, 232, 0.85);
  --nav-border: rgba(0, 0, 0, 0.06);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Velvet Dark Theme */
body:not(.theme-light) {
  --bg-color: #0d0f13;
  --bg-gradient: radial-gradient(circle at 50% 45%, #181b22 0%, #0d0f13 80%, #080a0c 100%);
  --fog-glow: rgba(200, 154, 60, 0.08);

  --text-heading: rgba(255, 255, 255, 0.95);
  --text-body: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.45);

  --card-bg: rgba(20, 24, 32, 0.75);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);

  --pill-bg: rgba(255, 255, 255, 0.06);
  --pill-border: rgba(255, 255, 255, 0.12);
  --pill-text: rgba(255, 255, 255, 0.85);

  --input-bg: rgba(14, 17, 23, 0.88);
  --input-border: rgba(255, 255, 255, 0.14);
  --input-text: #f9fafb;

  --nav-bg: rgba(13, 15, 19, 0.85);
  --nav-border: rgba(255, 255, 255, 0.06);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ── 3. Preloader ─────────────────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  max-width: 320px;
  width: 90%;
}

.preloader-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.9s linear infinite;
}

body:not(.theme-light) .preloader-spinner {
  border-color: rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-gold);
}

.preloader-text {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  margin-bottom: 14px;
}

.preloader-bar {
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

body:not(.theme-light) .preloader-bar {
  background: rgba(255, 255, 255, 0.08);
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: var(--accent-gold);
  transition: width 0.25s ease;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── 4. Master Architectural Navigation Bar (Universal Across All Pages) ── */
.top-nav, .video-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 clamp(16px, 4vw, 48px);
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 11, 14, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  gap: 16px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

body.theme-light .top-nav, html.theme-light .top-nav,
body.theme-light .video-nav, html.theme-light .video-nav {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.brand-link, .nav-brand {
  text-decoration: none !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 13px !important;
  z-index: 1001;
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title, .brand-name {
  font-family: var(--font-display, var(--ds-font-display, 'Outfit', sans-serif));
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.15;
  transition: color 0.3s ease;
}

body.theme-light .brand-title, body.theme-light .brand-name,
html.theme-light .brand-title, html.theme-light .brand-name {
  color: #090b0e;
}

.brand-sub, .brand-tag {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffe28a 0%, #e5a93c 50%, #c88820 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-top: 1px;
}

/* Minimalist Architectural Gold Pillar Beam (Replaces busy monogram) */
.brand-beam {
  width: 3px;
  height: 32px;
  background: linear-gradient(135deg, #f3d47d 0%, #c99726 100%);
  border-radius: 1.5px;
  box-shadow: 0 0 10px rgba(184, 134, 11, 0.4);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-link:hover .brand-beam {
  transform: scaleY(1.08);
  box-shadow: 0 0 16px rgba(184, 134, 11, 0.6);
}

.brand-title, .brand-name {
  font-family: var(--font-display, var(--ds-font-display, 'Outfit', sans-serif));
  font-size: 1.30rem;
  font-weight: 850;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  transition: color 0.3s ease;
}

body.theme-light .brand-title, body.theme-light .brand-name,
html.theme-light .brand-title, html.theme-light .brand-name {
  color: #08090c;
}

.brand-sub, .brand-tag {
  font-family: var(--font-sans, var(--ds-font-sans, 'Plus Jakarta Sans', sans-serif));
  font-size: 0.60rem;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #dfa837;
  margin-top: 3px;
  line-height: 1;
}

.nav-actions-group, .nav-links-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
}

.nav-page-link, .nav-links-menu a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none !important;
  font-size: 0.90rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 8px 2px;
  background: transparent !important;
  transition: color 0.25s ease;
  white-space: nowrap;
}

body.theme-light .nav-page-link, body.theme-light .nav-links-menu a,
html.theme-light .nav-page-link, html.theme-light .nav-links-menu a {
  color: rgba(9, 11, 14, 0.72);
}

/* Modern Glowing Underline Indicator */
.nav-page-link::after, .nav-links-menu a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ffd976 0%, #e5a93c 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, box-shadow 0.28s ease;
}

.nav-page-link:hover, .nav-links-menu a:hover {
  color: #ffffff !important;
}

body.theme-light .nav-page-link:hover, body.theme-light .nav-links-menu a:hover,
html.theme-light .nav-page-link:hover, html.theme-light .nav-links-menu a:hover {
  color: #090b0e !important;
}

.nav-page-link:hover::after, .nav-links-menu a:hover::after {
  transform: scaleX(0.5);
  opacity: 0.5;
}

.nav-page-link.active, .nav-links-menu a.active {
  color: #e5a93c !important;
  font-weight: 600;
}

body.theme-light .nav-page-link.active, body.theme-light .nav-links-menu a.active,
html.theme-light .nav-page-link.active, html.theme-light .nav-links-menu a.active {
  color: #c88820 !important;
}

.nav-page-link.active::after, .nav-links-menu a.active::after {
  transform: scaleX(1);
  opacity: 1;
  box-shadow: 0 0 10px rgba(229, 169, 60, 0.55);
}

/* ── Light / Dark Theme Button ───────────────────────────────────────────── */
.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

body.theme-light .theme-btn, html.theme-light .theme-btn {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
  color: #090b0e;
}

.theme-btn:hover {
  transform: scale(1.06);
  border-color: #e5a93c;
  box-shadow: 0 0 12px rgba(229, 169, 60, 0.25);
}

.theme-btn svg {
  width: 18px;
  height: 18px;
}

.theme-btn .moon-icon {
  display: none;
}
.theme-btn .sun-icon {
  display: block;
}

body.theme-light .theme-btn .moon-icon,
html.theme-light .theme-btn .moon-icon {
  display: block;
}

body.theme-light .theme-btn .sun-icon,
html.theme-light .theme-btn .sun-icon {
  display: none;
}

/* ── Primary Gold CTA Button ─────────────────────────────────────────────── */
.nav-quote-btn, .nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, #ffd976 0%, #e5a93c 50%, #c88820 100%) !important;
  color: #090b0e !important;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(229, 169, 60, 0.36);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.nav-quote-btn:hover, .nav-cta-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ffe08b 0%, #f0b54b 50%, #d4952d 100%) !important;
  box-shadow: 0 6px 24px rgba(229, 169, 60, 0.55);
}

/* ── Mobile Hamburger Button ─────────────────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

body.theme-light .mobile-menu-btn, html.theme-light .mobile-menu-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

body.theme-light .hamburger-line, html.theme-light .hamburger-line {
  background: #090b0e;
}

/* ── Mobile Glassmorphic Drawer ──────────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 11, 14, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px 32px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.35s;
}

body.theme-light .mobile-drawer, html.theme-light .mobile-drawer {
  background: rgba(255, 255, 255, 0.97);
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none !important;
  font-size: 0.96rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

body.theme-light .mobile-nav-item, html.theme-light .mobile-nav-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #090b0e;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  background: rgba(229, 169, 60, 0.14);
  border-color: #e5a93c;
  color: #e5a93c;
}

.mobile-drawer-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: linear-gradient(135deg, #ffd976 0%, #e5a93c 50%, #c88820 100%);
  color: #090b0e !important;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(229, 169, 60, 0.36);
}

@media (max-width: 960px) {
  .nav-page-link, .nav-links-menu a {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* Scroll Progress Line */
.scroll-progress-line {
  position: fixed;
  top: 72px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent-gold);
  z-index: 101;
  transition: width 0.05s linear;
}

/* ── 5. Scrollytelling Container & Sticky Viewport ────────────────────────── */
.scrolly-container {
  position: relative;
  height: 400vh; /* 400vh scroll runway */
  width: 100%;
}

.sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollyCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Seamless Edge Fog & Vignette Overlays */
.fog-ambient-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 40%, var(--bg-color) 92%);
  z-index: 2;
  pointer-events: none;
  opacity: 0.75;
}

.fog-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-color) 0%, transparent 15%, transparent 85%, var(--bg-color) 100%);
  z-index: 2;
  pointer-events: none;
}

/* ── 6. Story Beats (Overlays) ────────────────────────────────────────────── */
.story-beat {
  position: absolute;
  z-index: 10;
  max-width: 580px;
  padding: 0 clamp(20px, 4vw, 40px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.story-beat.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Beat 1: Intro (Centered) */
.beat-intro {
  text-align: center;
  top: 20%;
}

/* Beat 2: Foundations (Left-aligned) */
.beat-foundations {
  left: clamp(20px, 6vw, 80px);
  top: 28%;
  text-align: left;
}

/* Beat 3: Systems (Right-aligned) */
.beat-systems {
  right: clamp(20px, 6vw, 80px);
  top: 28%;
  text-align: right;
}

/* Beat 4: Crafted Perfection (Centered Bottom) */
.beat-perfection {
  text-align: center;
  bottom: 12%;
  max-width: 680px;
}

.badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  background: var(--accent-gold-subtle);
  border: 1px solid var(--accent-gold-glow);
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

body:not(.theme-light) .badge-pill {
  color: var(--accent-gold);
}

.beat-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  line-height: 1.12;
  margin-bottom: 12px;
}

.beat-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 24px;
}

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 18px;
  animation: floatDown 2s ease-in-out infinite;
}

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

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.feature-pills.align-right {
  justify-content: flex-end;
}

.pill {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--pill-text);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  padding: 6px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(10px);
}

.beat-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent-gold);
  color: #0d0f13;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 8px 24px var(--accent-gold-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: #d4a747;
  box-shadow: 0 12px 30px var(--accent-gold-glow);
}

.phone-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  border-radius: 9999px;
  color: var(--text-heading);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.phone-link-btn:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* ── 7. Post-Scroll Content (Values & Form) ───────────────────────────────── */
.content-wrapper {
  position: relative;
  z-index: 20;
  background: var(--bg-color);
  padding: 80px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 90px;
}

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 32px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.value-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ── 8. Form Section ──────────────────────────────────────────────────────── */
.form-container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: clamp(28px, 5vw, 54px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--card-shadow);
}

.form-header-block {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-body);
  max-width: 580px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-bottom: 24px;
}

.input-field {
  display: flex;
  flex-direction: column;
}

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

.input-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.input-field input,
.input-field select,
.input-field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 13px 15px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--input-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 38px;
}

.input-field textarea {
  resize: vertical;
  min-height: 80px;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.field-error {
  font-size: 0.74rem;
  color: #ef4444;
  margin-top: 4px;
  min-height: 14px;
}

.input-field.has-error input,
.input-field.has-error select,
.input-field.has-error textarea {
  border-color: #ef4444;
}

.form-submit-btn {
  width: 100%;
  padding: 16px 28px;
  background: var(--accent-gold);
  border: none;
  border-radius: 12px;
  color: #0d0f13;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px var(--accent-gold-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.form-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--accent-gold-glow);
}

.form-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid #0d0f13;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.form-submit-btn.loading .btn-text {
  opacity: 0.7;
}

.form-submit-btn.loading .btn-spinner {
  display: inline-block;
}

.form-feedback-box {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-top: 18px;
  text-align: center;
  line-height: 1.5;
}

.form-feedback-box.success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #16a34a;
}

body:not(.theme-light) .form-feedback-box.success {
  color: #4ade80;
}

.form-feedback-box.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #dc2626;
}

body:not(.theme-light) .form-feedback-box.error {
  color: #f87171;
}

.form-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.share-btn:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.privacy-text {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ── 9. Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 48px 24px;
  background: var(--nav-bg);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links a {
  color: var(--accent-gold);
  text-decoration: none;
}

/* ── 10. Responsive Breakpoints ───────────────────────────────────────────── */
@media (max-width: 800px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .beat-foundations, .beat-systems {
    position: absolute;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, 20px);
    text-align: center;
    width: 90%;
  }

  .story-beat.active.beat-foundations,
  .story-beat.active.beat-systems {
    transform: translate(-50%, 0);
  }

  .feature-pills, .feature-pills.align-right {
    justify-content: center;
  }

  .form-footer-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── 11. Scrollytelling Video Tour Component on Service Pages ──────────────── */
.tour-showcase-section {
  position: relative;
  z-index: 10;
}

.tour-player-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .tour-player-card {
    grid-template-columns: 1fr;
  }
}

.tour-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tour-video-overlay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(9, 11, 14, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 5px 12px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.tour-video-overlay-badge .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseGreen 2s infinite ease-in-out;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.tour-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
}

.tour-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tour-btn:hover {
  background: var(--accent-gold);
  color: #08090c;
  transform: scale(1.05);
}

.tour-timeline {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.tour-timeline-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.tour-sidebar-intel {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--card-border);
}

@media (max-width: 960px) {
  .tour-sidebar-intel {
    border-left: none;
    border-top: 1px solid var(--card-border);
  }
}

.tour-intel-header {
  margin-bottom: 16px;
}

.tour-intel-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-top: 4px;
}

.tour-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.tour-chapter-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

body:not(.theme-light) .tour-chapter-item {
  background: rgba(255, 255, 255, 0.03);
}

.tour-chapter-item:hover, .tour-chapter-item.active {
  background: rgba(229, 169, 60, 0.1);
  border-color: rgba(229, 169, 60, 0.45);
  transform: translateX(3px);
}

.chapter-num {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold);
  padding-top: 2px;
}

.chapter-info h4 {
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.chapter-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.tour-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   LUXURY NAVIGATION SUB-MENU / DROPDOWN SYSTEM
   ═════════════════════════════════════════════════════════════════════════════ */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-chevron {
  width: 10px;
  height: 6px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.7;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: rgba(13, 17, 23, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(229, 169, 60, 0.28);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.75), 0 0 24px rgba(229, 169, 60, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: rgba(13, 17, 23, 0.96);
  border-left: 1px solid rgba(229, 169, 60, 0.28);
  border-top: 1px solid rgba(229, 169, 60, 0.28);
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

body.theme-light .nav-dropdown-menu {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(229, 169, 60, 0.35);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.18), 0 0 20px rgba(229, 169, 60, 0.15);
}

body.theme-light .nav-dropdown-menu::before {
  background: rgba(255, 255, 255, 0.97);
  border-left-color: rgba(229, 169, 60, 0.35);
  border-top-color: rgba(229, 169, 60, 0.35);
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-heading);
  transition: all 0.2s ease;
  background: transparent;
}

.nav-dropdown-link:hover {
  background: rgba(229, 169, 60, 0.12);
  transform: translateX(3px);
}

.nav-dropdown-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(229, 169, 60, 0.16);
  border: 1px solid rgba(229, 169, 60, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
  font-size: 1rem;
}

.nav-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.nav-badge-pill {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e5a93c 0%, #b8860b 100%);
  color: #0b0e14;
}

/* Mobile Drawer Sub-Menu Grouping */
.mobile-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 12px;
  border-left: 2px solid rgba(229, 169, 60, 0.35);
  margin: 6px 0;
}

.mobile-nav-group-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  font-weight: 800;
  padding: 4px 0 2px 6px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   SEAMLESS SIDE EDGE BLENDING & DUAL-THEME HERO ENHANCEMENT
   ═════════════════════════════════════════════════════════════════════════════ */
.hero-blend-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-color);
}

.hero-side-feather {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--bg-color) 0%, rgba(9, 11, 14, 0.85) 4%, transparent 16%, transparent 84%, rgba(9, 11, 14, 0.85) 96%, var(--bg-color) 100%),
    linear-gradient(to bottom, transparent 65%, var(--bg-color) 98%),
    linear-gradient(to bottom, var(--bg-color) 0%, transparent 12%);
}

body.theme-light .hero-side-feather {
  background:
    linear-gradient(to right, var(--bg-color) 0%, rgba(248, 250, 252, 0.9) 4%, transparent 16%, transparent 84%, rgba(248, 250, 252, 0.9) 96%, var(--bg-color) 100%),
    linear-gradient(to bottom, transparent 65%, var(--bg-color) 98%),
    linear-gradient(to bottom, var(--bg-color) 0%, transparent 12%);
}

.hero-media-blended {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%),
    linear-gradient(to bottom, black 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%),
    linear-gradient(to bottom, black 72%, transparent 100%);
  mask-composite: intersect;
}

.hero-media-blended img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 0.4s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═════════════════════════════════════════════════════════════════════════════
   REDESIGNED SERVICES PAGE STYLES (FULL CATALOG, FILTER, SPECS)
   ═════════════════════════════════════════════════════════════════════════════ */
.services-catalog-section {
  padding: 80px 24px 110px;
  max-width: 1320px;
  margin: 0 auto;
}

.services-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 auto 48px;
  max-width: 900px;
}

.service-filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.service-filter-btn:hover {
  color: var(--text-heading);
  border-color: rgba(229, 169, 60, 0.4);
  transform: translateY(-1px);
}

.service-filter-btn.active {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.2) 0%, rgba(184, 134, 11, 0.2) 100%);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(229, 169, 60, 0.18);
}

.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

@media (max-width: 768px) {
  .services-catalog-grid {
    grid-template-columns: 1fr;
  }
}

.service-catalog-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--card-shadow);
  position: relative;
}

.service-catalog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 169, 60, 0.5);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4), 0 0 24px rgba(229, 169, 60, 0.15);
}

.service-card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #11141a;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-catalog-card:hover .service-card-media img {
  transform: scale(1.06);
}

.service-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 999px;
}

.service-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 16px;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
  margin: 0;
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
}

.service-card-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(229, 169, 60, 0.15);
  border-radius: 12px;
  font-size: 0.78rem;
}

body:not(.theme-light) .service-card-specs {
  background: rgba(255, 255, 255, 0.03);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  color: var(--text-muted);
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.spec-val {
  color: var(--text-heading);
  font-weight: 700;
  font-family: var(--font-mono, monospace);
}

.service-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-body);
}

.service-card-features li::before {
  content: '✓';
  color: var(--accent-gold);
  font-weight: 800;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border);
}

.service-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
  transition: gap 0.2s ease, transform 0.2s ease;
}

.service-card-btn:hover {
  gap: 10px;
  transform: translateX(2px);
}

/* ═════════════════════════════════════════════════════════════════════════════
   KITCHEN CABINET INSTALLATION INTERACTIVE PROCESS ANIMATION PLAYER
   ═════════════════════════════════════════════════════════════════════════════ */
.cabinet-anim-section {
  padding: 90px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.anim-player-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.anim-stage-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 16px;
  gap: 8px;
}

.anim-stage-tabs::-webkit-scrollbar {
  display: none;
}

.stage-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.stage-tab-btn:hover {
  color: var(--text-heading);
  background: rgba(229, 169, 60, 0.08);
}

.stage-tab-btn.active {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.22) 0%, rgba(184, 134, 11, 0.12) 100%);
  border-color: rgba(229, 169, 60, 0.6);
  color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(229, 169, 60, 0.15);
}

.stage-tab-num {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(229, 169, 60, 0.2);
  color: var(--accent-gold);
}

.anim-stage-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  overflow: hidden;
  background: #090b0e;
}

.anim-stage-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.02);
  pointer-events: none;
}

.anim-stage-layer.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.anim-stage-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.laser-datum-beam {
  position: absolute;
  top: 54%;
  left: 0;
  right: 0;
  height: 2px;
  background: #00ff88;
  box-shadow: 0 0 12px #00ff88, 0 0 24px rgba(0, 255, 136, 0.8), 0 0 36px rgba(0, 255, 136, 0.4);
  z-index: 5;
  pointer-events: none;
  animation: laserPulse 2.4s ease-in-out infinite;
}

@keyframes laserPulse {
  0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 4px #00ff88); }
  50% { opacity: 1; filter: drop-shadow(0 0 10px #00ff88); }
}

.laser-datum-label {
  position: absolute;
  right: 28px;
  top: -24px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #00ff88;
  color: #00ff88;
  font-family: var(--font-mono, monospace);
  font-size: 0.70rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.stage-callout {
  position: absolute;
  z-index: 8;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 169, 60, 0.5);
  border-radius: 10px;
  padding: 8px 14px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  animation: floatCallout 3s ease-in-out infinite;
}

@keyframes floatCallout {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.stage-callout h5 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  color: var(--accent-gold);
}

.stage-callout p {
  margin: 2px 0 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.8);
}

.anim-player-controls {
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.player-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-heading);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.player-btn:hover {
  background: rgba(229, 169, 60, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.player-timeline-slider {
  flex-grow: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-timeline-slider input[type="range"] {
  width: 100%;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.timeline-step-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.anim-stage-details {
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--card-border);
}

@media (max-width: 860px) {
  .anim-stage-details {
    grid-template-columns: 1fr;
  }
}

.stage-detail-headline h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-heading);
  margin: 0 0 8px;
}

.stage-detail-headline p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.stage-detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stage-spec-box {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 12px 14px;
}

body:not(.theme-light) .stage-spec-box {
  background: rgba(255, 255, 255, 0.03);
}

.stage-spec-label {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 3px;
}

.stage-spec-value {
  font-family: var(--font-mono, monospace);
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--text-heading);
}

.cabinet-anatomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.anatomy-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.anatomy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 169, 60, 0.45);
}

.anatomy-card-icon {
  font-size: 1.6rem;
}

.anatomy-card h4 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--text-heading);
  margin: 0;
}

.anatomy-card p {
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}


