/* ============================================================
   HAXOR — main.css
   Precision Engineering · Institutional Authority · 3D System
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  /* Canvas */
  --bg:              #050A14;
  --surface:         #0A1628;
  --border:          #0F2040;

  /* Text */
  --text:            #F0F4FF;
  --text-muted:      #4A6080;

  /* Accent */
  --accent:          #0047FF;
  --accent-glow:     rgba(0, 71, 255, 0.13);
  --accent-hover:    rgba(0, 71, 255, 0.22);
  --mono-accent:     #00D4AA;

  /* Typography */
  --font-sans:  'Space Grotesk', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --section-pad: 8rem 0;
  --container:   1200px;

  /* Motion */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --dur:      0.65s;
  --dur-fast: 0.35s;

  /* Radius */
  --radius-sm: 3px;
  --radius-md: 6px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, select, button, textarea { font-family: inherit; }

/* --- NOISE TEXTURE (dark sections) --- */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}
/* --- SECTIONS BASE --- */
.section {
  padding: var(--section-pad);
  position: relative;
}
.section-dark  { background: var(--bg); }
.section-cream { background: var(--surface); }

.section h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 3rem;
}

.section-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

/* --- SCROLL REVEAL BASE STATES --- */
[data-anim] {
  opacity: 0;
  transform: translateY(40px) rotateX(8deg);
  transform-origin: top center;
  transition: none; /* GSAP controls this */
}
[data-anim].visible {
  opacity: 1;
  transform: none;
}
[data-anim="fade-left"] {
  transform: translateX(-30px) rotateY(4deg);
}
[data-anim="fade-right"] {
  transform: translateX(30px) rotateY(-4deg);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              background var(--dur-fast),
              color var(--dur-fast),
              border-color var(--dur-fast);
  transform-style: preserve-3d;
}
.btn:hover {
  transform: translateZ(6px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0,71,255,0.25);
}
.btn-ghost-dark {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-ghost-dark:hover {
  background: var(--accent-hover);
  color: var(--text);
}
.btn-ghost-cream {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-ghost-cream:hover {
  background: var(--accent-hover);
  color: var(--text);
}
.btn-solid {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}
.btn-solid:hover {
  background: #0055FF;
  box-shadow: 0 8px 32px rgba(0,71,255,0.4);
}
.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 0.85rem;
}

/* --- HEADER --- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: var(--bg);
  border-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--text);
  text-transform: uppercase;
}
nav {
  display: flex;
  gap: 2.5rem;
}
nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color var(--dur-fast);
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--dur-fast) var(--ease);
}
nav a:hover { color: var(--text); }
nav a:hover::after { width: 100%; }
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.lang-switcher {
  display: flex;
  gap: 0.25rem;
}
.lang-pill {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.lang-pill:hover,
.lang-pill.active {
  color: var(--text);
  border-color: var(--accent);
}

/* --- HERO --- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 12vh;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* 8-column grid lines */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(12.5% - 1px),
    rgba(0, 71, 255, 0.06) calc(12.5% - 1px),
    rgba(0, 71, 255, 0.06) 12.5%
  );
  pointer-events: none;
  z-index: 0;
}

/* Blue glow behind headline */
#hero::after {
  content: '';
  position: absolute;
  top: 30%; left: -10%;
  width: 60%; height: 50%;
  background: radial-gradient(ellipse at center, rgba(0,71,255,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-line-accent {
  color: var(--accent);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  opacity: 0;
}

/* Hero elements start hidden — animations.js reveals them */
#heroEyebrow,
.hero-line,
#heroSub,
#heroCtaBtn {
  opacity: 0;
}

/* --- SERVICES / PRACTICE AREAS --- */
.practice-list {
  border-top: 1px solid var(--border);
  perspective: 1200px;
}
.practice-row {
  display: grid;
  grid-template-columns: 3rem 1fr 2rem;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  border-left: 2px solid transparent;
  padding-left: 0;
  transition: border-color var(--dur-fast), padding-left var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
  transform-style: preserve-3d;
}
.practice-row:hover {
  border-left-color: var(--accent);
  padding-left: 1rem;
  transform: rotateX(2deg) translateY(-2px);
}
.practice-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--mono-accent);
  letter-spacing: 0.05em;
}
.practice-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.practice-body p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.practice-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform var(--dur-fast) var(--ease), color var(--dur-fast);
}
.practice-row:hover .practice-arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* --- PROCESS SECTION --- */
.process-grid {
  display: grid;
  perspective: 1200px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  margin-top: 3rem;
  background: var(--border);
}
.process-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  border-top: 2px solid transparent;
  transition: border-color var(--dur-fast),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast);
  transform-style: preserve-3d;
}
.process-card:hover {
  border-top-color: var(--accent);
  transform: rotateY(3deg) translateZ(8px);
  box-shadow: 0 12px 48px rgba(0,71,255,0.1);
}
.process-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--mono-accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.process-card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.process-card p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- AUTHORITY STATEMENT --- */
.authority-section { padding: 6rem 0; }
.authority-quote {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.4;
  border: none;
  padding: 0;
  border-left: 3px solid var(--accent);
  padding-left: 2rem;
  max-width: 700px;
}

/* --- SELECTED WORK --- */
.work-list {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.work-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 2rem;
  transition: transform var(--dur-fast) var(--ease);
  cursor: default;
}
.work-row:hover {
  transform: translateX(6px);
}
.work-row:hover .work-outcome::after {
  width: 100%;
}
.work-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 280px;
}
.work-client {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.work-service {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.work-outcome {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  text-align: right;
}


/* --- DIAGNOSTIC ENTRY --- */
.diagnostic-entry { text-align: center; }
.diagnostic-entry-inner { max-width: 640px; margin: 0 auto; }

/* CTA glow pulse */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,71,255,0); }
  50%       { box-shadow: 0 0 0 8px rgba(0,71,255,0.12); }
}
.diagnostic-entry .btn {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* --- STATS / TRACK RECORD --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 2.5rem;
}
.stat-item {
  padding: 3rem 2rem;
  border-right: 1px solid var(--border);
  text-align: left;
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--mono-accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.stat-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* --- CONTACT / BOOKING --- */
.contact-inner { max-width: 640px; margin: 0 auto; }
.booking-form { margin-top: 2.5rem; }
.booking-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.field-group { display: flex; flex-direction: column; gap: 0.4rem; }
.field-group-full { grid-column: 1 / -1; }
.field-group label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.field-group input,
.field-group textarea,
.field-group select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,71,255,0.1);
}
.optional { color: var(--text-muted); font-weight: 400; }
.time-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.time-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}
.booking-success {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--mono-accent);
  margin-top: 1rem;
}
.hidden { display: none !important; }

/* --- FOOTER --- */
#footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--text); }
.lang-switcher-footer { margin-top: 0; }

/* --- CURSOR DOT --- */
#cursorDot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width var(--dur-fast) var(--ease),
              height var(--dur-fast) var(--ease),
              opacity var(--dur-fast),
              background var(--dur-fast);
}
#cursorDot.active { opacity: 1; }
#cursorDot.expanded {
  width: 28px; height: 28px;
  background: transparent;
  border: 1px solid var(--accent);
  opacity: 0.5;
}
@media (hover: none) {
  #cursorDot { display: none; }
}

/* ============================================================
   GDPR BANNER
   ============================================================ */
.gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(12, 12, 12, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.gdpr-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.gdpr-actions { display: flex; gap: 0.75rem; }

/* ============================================================
   HAMBURGER
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
/* Animated X state */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE — 900px tablet
   ============================================================ */
@media (max-width: 900px) {
  /* Container breathing room */
  .container { padding: 0 1.25rem; }

  /* Hide desktop nav and CTA button, show hamburger */
  #header nav { display: none; }
  .header-right .btn { display: none; }
  .hamburger { display: flex; }

  /* Mobile nav dropdown */
  #mainNav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    z-index: 101;
  }
  #mainNav.open {
    display: flex;
  }
  #mainNav a {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  #mainNav a:last-child { border-bottom: none; }

  /* Lang switcher */
  .header-right { gap: 0.75rem; }

  /* Grids → single column */
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; aspect-ratio: 1; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .practice-row { grid-template-columns: 2.5rem 1fr; }
  .practice-arrow { display: none; }
  .booking-fields { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }

  /* Work rows — fix min-width overflow */
  .work-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .work-meta { min-width: unset; width: 100%; }
  .work-outcome { text-align: left; }

  /* Section padding reduction */
  :root { --section-pad: 5rem 0; }
}

/* ============================================================
   RESPONSIVE — 600px mobile
   ============================================================ */
@media (max-width: 600px) {
  /* Typography scale */
  h1, .h1 { font-size: 2.4rem; }
  h2, .h2 { font-size: 1.7rem; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .authority-quote { font-size: 1.3rem; padding-left: 1.25rem; }

  /* Hero breathing room */
  #hero { padding-bottom: 8vh; }

  /* Buttons full-width on tiny screens */
  #heroCtaBtn { width: 100%; justify-content: center; }

  /* Section padding */
  :root { --section-pad: 4rem 0; }

  /* Stats */
  .stat-item:last-child { border-bottom: none; }

  /* Modal bottom sheet */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-inner {
    max-width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }

  /* GDPR banner stack */
  .gdpr-banner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; }

  /* Touch targets */
  .btn { min-height: 44px; }
  .lang-pill { min-height: 36px; min-width: 36px; }
}

/* ============================================================
   DIAGNOSTIC MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(12, 12, 12, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-inner {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 4rem 3.5rem;
  background: #0F0F0F;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transform: scale(0.97);
  transition: transform 0.4s var(--ease);
}
.modal-overlay.open .modal-inner { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--dur-fast);
}
.modal-close:hover { color: var(--text); }

.modal-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}
.modal-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s var(--ease);
  width: 25%;
}

/* Modal step */
.modal-step { color: var(--text); }
.modal-step-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.modal-step h3 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--text);
  line-height: 1.2;
}
.modal-field {
  margin-bottom: 1.75rem;
}
.modal-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.modal-field input,
.modal-field select,
.modal-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  font-size: 1rem;
  color: var(--text);
  border-radius: 0;
  outline: none;
  transition: border-color var(--dur-fast);
}
.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus { border-bottom-color: var(--accent); }
.modal-field select option { background: #1a1a1a; color: var(--text); }

/* Checkbox options (Step 2) */
.modal-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.modal-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.modal-option:hover { border-color: var(--accent); background: var(--accent-glow); }
.modal-option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  flex-shrink: 0;
  border: none;
  border-bottom: none;
  padding: 0;
}
.modal-option span {
  font-size: 0.95rem;
  color: var(--text);
}
.modal-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* Sliders (Step 3) */
.modal-slider-field { margin-bottom: 1.75rem; }
.modal-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
}
.modal-slider-label span:first-child {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.modal-slider-label span:last-child {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--mono-accent);
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: background var(--dur-fast);
}
input[type="range"]::-webkit-slider-thumb:hover { background: var(--mono-accent); }

/* ROI exposure readout */
.modal-exposure {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.modal-exposure-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.modal-exposure-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--mono-accent);
}

/* Modal nav */
.modal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.modal-step-counter {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Success state */
.modal-success {
  text-align: center;
  padding: 2rem 0;
}
.modal-success h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.modal-success p {
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .modal-inner { padding: 3rem 1.75rem; }
  .modal-step h3 { font-size: 1.4rem; }
}
