/* ==========================================================================
   MARTIN EVANS .ORG — SCROLL-DRIVEN REDESIGN DESIGN SYSTEM (V2)
   High-performance cinematic scrollytelling with real STL Three.js rendering
   ========================================================================== */

:root {
  color-scheme: light dark;

  --bg-dark: #05080e;
  --bg-card: rgba(13, 19, 30, 0.75);
  --bg-card-hover: rgba(22, 32, 50, 0.88);
  --panel-glass: rgba(16, 24, 38, 0.7);
  --line-subtle: rgba(214, 227, 255, 0.08);
  --line-active: rgba(99, 216, 255, 0.35);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --cyan-accent: #63d8ff;
  --mint-accent: #7ff1cb;
  --amber-accent: #fbbf24;
  --magenta-accent: #f43f5e;
  
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-ambient: 0 20px 50px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 30px rgba(99, 216, 255, 0.25);
  --glow-mint: 0 0 30px rgba(127, 241, 203, 0.2);
  
  --header-height: 72px;

  &:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
  }
  &:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
  }
}

/* ==========================================================================
   LIGHT MODE DESIGN TOKENS
   ========================================================================== */
html.light,
html[data-theme="light"],
body.light,
:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light !important;
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: rgba(241, 245, 249, 0.98);
  --panel-glass: rgba(255, 255, 255, 0.88);
  --line-subtle: rgba(15, 23, 42, 0.1);
  --line-active: rgba(2, 132, 199, 0.45);
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  
  --cyan-accent: #0284c7;
  --mint-accent: #0d9488;
  --shadow-ambient: 0 15px 40px rgba(0, 0, 0, 0.08);
  --glow-cyan: 0 0 25px rgba(2, 132, 199, 0.15);
  --glow-mint: 0 0 25px rgba(13, 148, 136, 0.15);
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  position: relative;
  background: 
    radial-gradient(circle at 10% 15%, rgba(99, 216, 255, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 90% 45%, rgba(127, 241, 203, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(99, 216, 255, 0.06) 0%, transparent 45%),
    var(--bg-dark);
  min-height: 100vh;
  line-height: 1.6;
}

/* Background noise texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.08);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-accent), var(--mint-accent));
  box-shadow: 0 0 14px rgba(99, 216, 255, 0.8), 0 0 4px rgba(255, 255, 255, 0.6);
  border-radius: 0 4px 4px 0;
  transform-origin: left;
  transition: width 0.05s ease-out;
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes grow-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
  .scroll-progress-bar {
    width: 100%;
    transform: scaleX(0);
    animation: grow-progress auto linear forwards;
    animation-timeline: scroll();
    animation-range: 0% 100%;
  }
}

/* ==========================================================================
   STICKY HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 900;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--panel-glass);
  border-bottom: 1px solid var(--line-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:hover {
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 14px rgba(99, 216, 255, 0.25);
}

html.light .theme-toggle-btn,
html[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html.light .theme-toggle-btn:hover,
html[data-theme="light"] .theme-toggle-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.theme-icon-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon-slot {
  transform: rotate(15deg);
}

.theme-icon-moon {
  display: none;
}

.theme-icon-sun {
  display: block;
  color: #fbbf24;
}

html.light .theme-icon-sun,
html[data-theme="light"] .theme-icon-sun,
body.light .theme-icon-sun {
  display: none !important;
}

html.light .theme-icon-moon,
html[data-theme="light"] .theme-icon-moon,
body.light .theme-icon-moon {
  display: block !important;
  color: #0f172a;
}

/* ==========================================================================
   COMPREHENSIVE LIGHT MODE COMPONENT OVERRIDES
   ========================================================================== */
html.light body,
html[data-theme="light"] body,
body.light {
  background-color: #f8fafc !important;
  background: 
    radial-gradient(circle at 10% 15%, rgba(2, 132, 199, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 45%, rgba(13, 148, 136, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(2, 132, 199, 0.05) 0%, transparent 45%),
    #f8fafc !important;
  color: #0f172a !important;
}

html.light body::after,
html[data-theme="light"] body::after {
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

html.light .site-header,
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

html.light .brand-logo,
html[data-theme="light"] .brand-logo {
  filter: invert(1);
}

html.light .nav-pill,
html[data-theme="light"] .nav-pill {
  color: #334155;
}

html.light .nav-pill:hover,
html.light .nav-pill.active,
html[data-theme="light"] .nav-pill:hover,
html[data-theme="light"] .nav-pill.active {
  color: #0284c7;
  background: rgba(15, 23, 42, 0.06);
}

html.light .nav-cta,
html[data-theme="light"] .nav-cta {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(13, 148, 136, 0.12));
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: #0284c7;
}

html.light .nav-cta:hover,
html[data-theme="light"] .nav-cta:hover {
  background: #0284c7;
  color: #ffffff;
}

/* Floating HUD Rail in Light Mode */
html.light .hud-pill,
html[data-theme="light"] .hud-pill {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

html.light .hud-pill:hover,
html.light .hud-pill.active,
html[data-theme="light"] .hud-pill:hover,
html[data-theme="light"] .hud-pill.active {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.18);
}

html.light .hud-pill-dot,
html[data-theme="light"] .hud-pill-dot {
  background: #94a3b8;
}

html.light .hud-pill-label,
html[data-theme="light"] .hud-pill-label {
  color: #475569;
}

html.light .hud-pill:hover .hud-pill-dot,
html.light .hud-pill.active .hud-pill-dot,
html[data-theme="light"] .hud-pill:hover .hud-pill-dot,
html[data-theme="light"] .hud-pill.active .hud-pill-dot {
  background: #0284c7;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
}

html.light .hud-pill.active .hud-pill-label,
html[data-theme="light"] .hud-pill.active .hud-pill-label {
  color: #0284c7;
}

/* Hero elements in Light Mode */
html.light .hero-floating-stat,
html[data-theme="light"] .hero-floating-stat {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

html.light .hero-stat-badge-dot,
html[data-theme="light"] .hero-stat-badge-dot {
  background: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.45);
}

html.light .hero-stat-text,
html[data-theme="light"] .hero-stat-text {
  color: #475569;
}

html.light .hero-stat-highlight,
html[data-theme="light"] .hero-stat-highlight {
  color: #0f172a;
}

html.light .stat-value,
html[data-theme="light"] .stat-value {
  color: #0f172a;
}

html.light .hero-title-scrolly .gradient-text,
html[data-theme="light"] .hero-title-scrolly .gradient-text {
  background: linear-gradient(135deg, #0f172a 30%, #0284c7 70%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Discipline Cards in Light Mode */
html.light .discipline-slide-card,
html[data-theme="light"] .discipline-slide-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

html.light .discipline-heading,
html.light .pillar-title,
html[data-theme="light"] .discipline-heading,
html[data-theme="light"] .pillar-title {
  color: #0f172a;
}

html.light .discipline-desc,
html[data-theme="light"] .discipline-desc {
  color: #334155;
}

html.light .discipline-visual-frame,
html[data-theme="light"] .discipline-visual-frame {
  border-color: rgba(15, 23, 42, 0.1);
  background: #f1f5f9;
}

html.light .discipline-visual-frame.is-motion,
html[data-theme="light"] .discipline-visual-frame.is-motion {
  background: #050811;
  border-color: rgba(15, 23, 42, 0.18);
}

html.light .discipline-nav-tabs,
html[data-theme="light"] .discipline-nav-tabs {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

html.light .discipline-tab,
html[data-theme="light"] .discipline-tab {
  color: #64748b;
}

html.light .discipline-tab:hover,
html[data-theme="light"] .discipline-tab:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.04);
}

html.light .discipline-tab.active,
html[data-theme="light"] .discipline-tab.active {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.15);
}

html.light .discipline-ctrl-btn,
html[data-theme="light"] .discipline-ctrl-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html.light .discipline-ctrl-btn:hover,
html[data-theme="light"] .discipline-ctrl-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.2);
}

/* 3D Workshop Blueprint in Light Mode */
html.light .blueprint-screen,
html[data-theme="light"] .blueprint-screen {
  background: 
    linear-gradient(rgba(2, 132, 199, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.06) 1px, transparent 1px),
    #f1f5f9;
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 15px 40px rgba(2, 132, 199, 0.08);
}

html.light .blueprint-visual-stage,
html[data-theme="light"] .blueprint-visual-stage {
  background: #e2e8f0;
}

html.light .stl-hint-badge,
html[data-theme="light"] .stl-hint-badge {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

html.light .stl-reset-button,
html[data-theme="light"] .stl-reset-button {
  background: rgba(255, 255, 255, 0.92);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

html.light .callout-pin,
html[data-theme="light"] .callout-pin {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: #0284c7;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

html.light .spec-badge,
html[data-theme="light"] .spec-badge {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
}

html.light .spec-value,
html[data-theme="light"] .spec-value {
  color: #0f172a;
}

/* Motion Lab in Light Mode */
html.light .motion-card,
html[data-theme="light"] .motion-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

html.light .motion-title,
html[data-theme="light"] .motion-title {
  color: #0f172a;
}

html.light .motion-badge,
html[data-theme="light"] .motion-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0d9488;
}

html.light .motion-desc,
html[data-theme="light"] .motion-desc {
  color: #475569;
}

/* Photography Ribbon & Lightbox in Light Mode */
html.light .photo-card-info,
html[data-theme="light"] .photo-card-info {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.8) 70%, transparent);
}

html.light .photo-title,
html[data-theme="light"] .photo-title {
  color: #0f172a;
}

html.light .photo-location,
html[data-theme="light"] .photo-location {
  color: #0284c7;
}

html.light .lightbox-frame,
html[data-theme="light"] .lightbox-frame {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.15);
}

html.light .lightbox-meta,
html[data-theme="light"] .lightbox-meta {
  background: rgba(248, 250, 252, 0.98);
}

html.light .lightbox-title,
html[data-theme="light"] .lightbox-title {
  color: #0f172a;
}

html.light .lightbox-close-btn,
html[data-theme="light"] .lightbox-close-btn {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

/* Contact Card & Footer in Light Mode */
html.light .contact-card-cinematic,
html[data-theme="light"] .contact-card-cinematic {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.95));
  border: 1px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07);
}

html.light .form-field input,
html.light .form-field select,
html.light .form-field textarea,
html[data-theme="light"] .form-field input,
html[data-theme="light"] .form-field select,
html[data-theme="light"] .form-field textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

html.light .form-field label,
html[data-theme="light"] .form-field label {
  color: #334155;
}

html.light .site-footer,
html[data-theme="light"] .site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(241, 245, 249, 0.98);
  color: #475569;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-text {
  white-space: nowrap;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-subtle);
  transition: transform 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}

.brand-link:hover .brand-logo {
  transform: rotate(15deg) scale(1.05);
  border-color: var(--cyan-accent);
}

.brand-text span {
  color: var(--cyan-accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 0.8vw, 0.65rem);
  white-space: nowrap;
}

.nav-pill {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-pill:hover,
.nav-pill.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.nav-pill.active {
  color: var(--cyan-accent);
}

.nav-cta {
  background: linear-gradient(135deg, rgba(99, 216, 255, 0.15), rgba(127, 241, 203, 0.15));
  border: 1px solid rgba(99, 216, 255, 0.3);
  color: var(--cyan-accent);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: linear-gradient(135deg, rgba(99, 216, 255, 0.3), rgba(127, 241, 203, 0.3));
  box-shadow: 0 0 20px rgba(99, 216, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   FLOATING HUD RAIL (Scrubber & Telemetry)
   Bottom-aligned in the corner so it never obscures hero portrait/face
   ========================================================================== */
.scroll-hud-rail {
  position: fixed !important;
  right: 2rem !important;
  bottom: 2rem !important;
  top: auto !important;
  transform: none !important;
  z-index: 850 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 0.55rem;
  pointer-events: none;
}

.hud-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(10, 16, 26, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-subtle);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 26px;
  overflow: hidden;
  white-space: nowrap;
}

.hud-pill-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: 0;
}

.hud-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--text-dim);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

/* Hover or active: expands gracefully to reveal chapter title */
.hud-pill:hover,
.hud-pill.active {
  max-width: 200px;
  padding: 0.35rem 0.85rem;
  background: rgba(10, 16, 26, 0.9);
  border-color: var(--cyan-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hud-pill:hover .hud-pill-label,
.hud-pill.active .hud-pill-label {
  opacity: 1;
  max-width: 160px;
  margin-right: 0.65rem;
}

.hud-pill.active .hud-pill-dot {
  background: var(--cyan-accent);
  box-shadow: 0 0 10px var(--cyan-accent);
  transform: scale(1.3);
}

.hud-pill.active .hud-pill-label {
  color: var(--cyan-accent);
  font-weight: 600;
}

/* ==========================================================================
   ACT I: THE HERO SCROLL APERTURE
   Multi-stage sticky viewport (220vh track, 100vh pinned)
   ========================================================================== */
.hero-scroll-track {
  height: 220vh;
  position: relative;
}

.hero-sticky-frame {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 2rem;
  z-index: 2;
}

.hero-ambient-orb {
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 216, 255, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: pulse-orb 8s ease-in-out infinite alternate;
}

@keyframes pulse-orb {
  0% { transform: scale(0.9) translate(-50px, -30px); opacity: 0.6; }
  100% { transform: scale(1.15) translate(40px, 20px); opacity: 0.9; }
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(99, 216, 255, 0.08);
  border: 1px solid rgba(99, 216, 255, 0.25);
  color: var(--cyan-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-pulse-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-accent);
  box-shadow: 0 0 8px var(--mint-accent);
  animation: blink 2s infinite;
}

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

.hero-title-scrolly {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title-scrolly .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan-accent) 70%, var(--mint-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--cyan-accent), var(--mint-accent));
  color: #05080e;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(99, 216, 255, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--line-subtle);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--line-active);
  transform: translateY(-2px);
}

.hero-portrait-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(214, 227, 255, 0.15);
  box-shadow: var(--shadow-ambient);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.hero-portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) brightness(0.98);
  transform-origin: center center;
  will-change: transform;
}

.hero-portrait-frame:hover {
  border-color: var(--line-active);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 216, 255, 0.2);
}

.hero-floating-stat {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(5, 8, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-stat-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-accent);
  box-shadow: 0 0 10px var(--cyan-accent);
  flex-shrink: 0;
  display: inline-block;
  animation: blink 2.5s infinite;
}

.hero-stat-text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.hero-stat-highlight {
  color: var(--text-main);
  font-weight: 600;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
}

.stat-value.cyan { color: var(--cyan-accent); }
.stat-value.mint { color: var(--mint-accent); }

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scroll-indicator-cue {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  animation: float-cue 2.4s ease-in-out infinite;
}

@keyframes float-cue {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ==========================================================================
   ACT II: CORE DISCIPLINES (SCROLL IN ONE BY ONE & INTERACTIVE TABS)
   Sticky 220vh track with 4 sequential sliding stages & direct switcher
   ========================================================================== */
.disciplines-scrolly-track {
  height: 220vh;
  position: relative;
  margin-top: 4rem;
}

.disciplines-sticky-frame {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4.5rem 2rem 2rem 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.disciplines-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
  width: 100%;
}

.disciplines-title-col {
  display: flex;
  flex-direction: column;
}

/* Interactive Switcher Tabs */
.discipline-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.4rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.discipline-tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.discipline-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.discipline-tab.active {
  color: var(--cyan-accent);
  background: rgba(99, 216, 255, 0.12);
  border-color: rgba(99, 216, 255, 0.35);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(99, 216, 255, 0.15);
}

.discipline-tab .tab-index {
  opacity: 0.75;
  font-size: 0.72rem;
}

/* Step Counter & Controls */
.discipline-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.discipline-ctrl-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.discipline-ctrl-btn:hover {
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(99, 216, 255, 0.25);
}

.discipline-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.discipline-stepper-active {
  color: var(--cyan-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.disciplines-stage-container {
  position: relative;
  width: 100%;
  height: 480px;
}

.discipline-slide-card {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.discipline-slide-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  border-color: var(--line-active);
  z-index: 10;
}

.discipline-slide-card.passed {
  opacity: 0;
  transform: translateY(-40px) scale(0.97);
  pointer-events: none;
  z-index: 2;
}

.discipline-copy-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.discipline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.discipline-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.discipline-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.discipline-visual-frame {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #020408;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.discipline-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.discipline-slide-card:hover .discipline-visual-frame img {
  transform: scale(1.04);
}

.discipline-visual-frame.is-motion {
  background: #000000;
}

.discipline-visual-frame.is-motion img {
  object-fit: contain;
}

/* ==========================================================================
   ACT III: DEEP DIVE — 3D WORKSHOP & REAL THREE.JS STL RENDERING
   Sticky scrollytelling breakdown (240vh track)
   ========================================================================== */
.workshop-scrolly-track {
  height: 240vh;
  position: relative;
  margin-top: 4rem;
}

.workshop-sticky-frame {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.workshop-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  width: 100%;
  align-items: center;
}

.blueprint-screen {
  position: relative;
  background: 
    linear-gradient(rgba(99, 216, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 216, 255, 0.04) 1px, transparent 1px),
    #070d18;
  background-size: 24px 24px;
  border: 1px solid rgba(99, 216, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 0 50px rgba(99, 216, 255, 0.12);
  overflow: hidden;
}

.blueprint-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(99, 216, 255, 0.2);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-accent);
}

.blueprint-visual-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #040810;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Three.js STL viewport */
.stl-canvas-viewport {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  z-index: 2;
}

.stl-canvas-viewport:active {
  cursor: grabbing;
}

.stl-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan-accent);
  z-index: 10;
  transition: opacity 0.4s ease;
}

.stl-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.stl-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(99, 216, 255, 0.2);
  border-top-color: var(--cyan-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.stl-hint-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 12, 20, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 216, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-main);
  pointer-events: none;
  z-index: 15;
  white-space: nowrap;
}

.stl-reset-button {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(7, 12, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-accent);
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s ease;
}

.stl-reset-button:hover {
  border-color: var(--cyan-accent);
  background: rgba(99, 216, 255, 0.15);
}

.blueprint-photo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Callout pin tags */
.callout-pin {
  position: absolute;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(5, 12, 22, 0.92);
  border: 1px solid var(--cyan-accent);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 216, 255, 0.3);
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.pin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-accent);
  animation: pulse-pin 1.8s infinite;
}

@keyframes pulse-pin {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(99, 216, 255, 0.7); }
  50% { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(99, 216, 255, 0); }
}

.workshop-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workshop-narrative h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.specs-grid-pill {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.spec-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.spec-cell-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.spec-cell-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--cyan-accent);
}

/* ==========================================================================
   ACT IV: MOTION LAB & CREATIVE STREAM
   ========================================================================== */
.motion-lab-section {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.motion-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.motion-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.motion-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127, 241, 203, 0.4);
  box-shadow: var(--glow-mint);
}

.motion-viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #020408;
  overflow: hidden;
}

.motion-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.motion-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(5, 8, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--mint-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.motion-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.motion-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.motion-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   ACT V: PHOTOGRAPHY KINETIC RIBBON (HORIZONTAL SCROLL RAIL)
   ========================================================================== */
.photo-scrolly-track {
  height: 300vh;
  position: relative;
}

.photo-sticky-frame {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 0;
}

.photo-rail-heading {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.photo-filter-toolbar {
  display: flex;
  gap: 0.5rem;
}

.filter-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-subtle);
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  background: rgba(99, 216, 255, 0.15);
  border-color: var(--cyan-accent);
  color: var(--text-main);
}

.photo-horizontal-ribbon {
  display: flex;
  gap: 2rem;
  padding: 0 4rem;
  width: max-content;
  will-change: transform;
  transform: translateX(0);
}

.photo-gallery-item {
  position: relative;
  width: 440px;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.photo-gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--cyan-accent);
}

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

.photo-gallery-item:hover img {
  transform: scale(1.06);
}

.photo-caption-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 14, 0.95) 85%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.photo-caption-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.photo-caption-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan-accent);
  text-transform: uppercase;
}

/* ==========================================================================
   ACT VI: PROJECT TERMINAL & DIRECT COLLABORATION (CONTACT)
   Placed immediately following Photography
   ========================================================================== */
.contact-section {
  padding: 9rem 2rem 11rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.contact-card-cinematic {
  background: linear-gradient(145deg, rgba(16, 24, 38, 0.8), rgba(7, 11, 18, 0.95));
  border: 1px solid rgba(99, 216, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.contact-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

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

.form-full {
  grid-column: span 2;
}

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

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan-accent);
  background: rgba(99, 216, 255, 0.04);
  box-shadow: 0 0 15px rgba(99, 216, 255, 0.2);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit-row {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.copy-email-button {
  background: none;
  border: 1px solid var(--line-subtle);
  color: var(--text-muted);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.copy-email-button:hover {
  border-color: var(--cyan-accent);
  color: var(--cyan-accent);
}

/* ==========================================================================
   CINEMATIC LIGHTBOX MODAL
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(2, 4, 8, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-frame {
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-meta {
  margin-top: 1.25rem;
  text-align: center;
}

.lightbox-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.lightbox-subtitle {
  font-size: 0.85rem;
  color: var(--cyan-accent);
  font-family: var(--font-mono);
}

.lightbox-close-btn {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close-btn:hover {
  color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line-subtle);
  background: rgba(3, 5, 10, 0.95);
  padding: 3rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ACCESSIBILITY: PREFERS REDUCED MOTION
   ========================================================================== */
@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;
  }
  
  .hero-scroll-track,
  .disciplines-scrolly-track,
  .workshop-scrolly-track,
  .photo-scrolly-track {
    height: auto !important;
  }
  
  .hero-sticky-frame,
  .disciplines-sticky-frame,
  .workshop-sticky-frame,
  .photo-sticky-frame {
    position: relative !important;
    height: auto !important;
    padding: 6rem 2rem !important;
  }

  .disciplines-stage-container {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }

  .discipline-slide-card {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  
  .photo-horizontal-ribbon {
    width: 100% !important;
    flex-wrap: wrap !important;
    transform: none !important;
    padding: 0 !important;
  }
  
  .scroll-progress-bar {
    display: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content-wrap,
  .workshop-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .discipline-slide-card {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.25rem;
  }

  .disciplines-stage-container {
    height: 460px;
  }

  .discipline-tab .tab-name {
    display: none;
  }

  .discipline-tab {
    padding: 0.4rem 0.65rem;
  }

  .motion-cards-grid {
    grid-template-columns: 1fr;
  }

  .scroll-hud-rail {
    display: none !important;
  }
}

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

@media (max-width: 640px) {
  .header-inner {
    padding: 0 1rem;
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }

  .nav-cta {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }

  .disciplines-sticky-frame {
    padding: 5rem 1rem 2rem 1rem;
  }

  .discipline-slide-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .disciplines-stage-container {
    height: 520px;
  }

  .discipline-visual-frame {
    display: none;
  }

  .discipline-nav-tabs {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .disciplines-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .discipline-controls {
    align-self: flex-end;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-full,
  .form-submit-row {
    grid-column: span 1;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
}

/* ==========================================================================
   MOBILE & TABLET HORIZONTAL SWIPE CAROUSEL (< 768px)
   Replaces locked vertical pin with tactile native touch-swipe ribbon
   ========================================================================== */
@media (max-width: 768px) {
  .photo-scrolly-track {
    height: auto !important;
    padding: 3rem 0 !important;
  }

  .photo-sticky-frame {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .photo-rail-heading {
    padding: 0 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }

  .photo-filter-toolbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 0.25rem 0 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .photo-filter-toolbar::-webkit-scrollbar {
    display: none;
  }

  .photo-horizontal-ribbon {
    display: flex !important;
    gap: 1.25rem !important;
    padding: 0 1.25rem 1.5rem 1.25rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding: 0 1.25rem !important;
    transform: none !important;
    box-sizing: border-box !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 216, 255, 0.4) transparent;
  }

  .photo-horizontal-ribbon::-webkit-scrollbar {
    height: 5px;
  }

  .photo-horizontal-ribbon::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 0 1.25rem;
  }

  .photo-horizontal-ribbon::-webkit-scrollbar-thumb {
    background: var(--cyan-accent);
    border-radius: 4px;
  }

  .photo-gallery-item {
    flex-shrink: 0 !important;
    width: 82vw !important;
    max-width: 320px !important;
    height: 250px !important;
    scroll-snap-align: start !important;
  }
}
