/* ============================================================
   LEV3L MECHANICAL LLC — Design System
   Cinematic dark base · Brand cyan (#38bdf8) + Amber (#f5a524)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Base / surfaces */
  --bg:            #05090F;
  --bg-2:          #0A121C;
  --surface:       #0E1926;
  --surface-2:     #142331;
  --surface-3:     #1C2F40;
  --border:        rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.24);

  /* Text */
  --text:          #EAF1F8;
  --text-muted:    #93A4B5;
  --text-dim:      #607488;

  /* Brand (from current site) */
  --brand:         #38BDF8;
  --brand-2:       #0EA5E9;
  --brand-3:       #0284C7;
  --brand-glow:    rgba(56, 189, 248, 0.16);

  /* Secondary accent */
  --amber:         #F5A524;
  --amber-2:       #E08C10;
  --amber-glow:    rgba(245, 165, 36, 0.18);

  /* Semantic */
  --success:       #34D399;
  --danger:        #F87171;

  /* Type */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Radius / shadow */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow:      0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px var(--border), 0 24px 60px -24px rgba(0, 0, 0, 0.7);

  /* Layout */
  --container: 1200px;
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --dur: 0.5s;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #041018; }

/* Ambient page glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(50% 40% at 100% 10%, rgba(245, 165, 36, 0.07), transparent 55%),
    radial-gradient(70% 60% at 50% 120%, rgba(56, 189, 248, 0.06), transparent 60%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; z-index: 1; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.grid { display: grid; gap: 24px; }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 899px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
.display { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 700; letter-spacing: -0.035em; }
.h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-muted); max-width: 60ch; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--brand)); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--brand), transparent); }

.grad-text { background: linear-gradient(120deg, var(--brand) 0%, #9BE4FF 55%, var(--amber) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.amber-text { color: var(--amber); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h2 { margin: 18px 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 15px 28px; border-radius: 999px;
  min-height: 48px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  letter-spacing: -0.01em; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #1A1205;
  box-shadow: 0 10px 30px -10px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--amber-glow), inset 0 1px 0 rgba(255,255,255,0.3); }

.btn--brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #041018;
  box-shadow: 0 10px 30px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--brand:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px var(--brand-glow); }

.btn--ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--brand); transform: translateY(-2px); }

.btn--sm { padding: 11px 20px; min-height: 42px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 9, 15, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { line-height: 1; }
.brand__name b { color: var(--brand); }
.brand__name span { display: block; font-family: var(--font-mono); font-size: 0.56rem; font-weight: 500; letter-spacing: 0.28em; color: var(--text-dim); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: 0.94rem; font-weight: 500; color: var(--text-muted);
  padding: 10px 16px; border-radius: 999px; position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a.active { color: var(--text); }
.nav__links a.active::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand);
}
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.9rem; color: var(--text); font-weight: 500; }
.nav__phone svg { width: 16px; height: 16px; color: var(--brand); }

.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; }
.nav__toggle span { position: relative; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }
.nav__toggle span::before { top: -7px; } .nav__toggle span::after { top: 7px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 940px) {
  .nav__phone span { display: none; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8, 14, 22, 0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px; gap: 4px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.3s var(--ease);
  }
  .nav.is-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 15px 18px; font-size: 1.05rem; border-radius: 12px; }
  .nav__links a:hover { background: rgba(255,255,255,0.04); }
  .nav__links a.active::after { display: none; }
  .nav__links a.active { background: var(--brand-glow); }
}
@media (max-width: 520px) { .nav__actions .btn--primary { display: none; } }

/* ---------- Blueprint / hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(56px, 8vw, 120px); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(56,189,248,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%);
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 860px; }
.hero .display { margin: 22px 0 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--brand), transparent); animation: scrollpulse 2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

.page-hero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 90px)); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero .hero__grid { mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 20%, transparent 75%); }
.page-hero .container { position: relative; z-index: 2; max-width: 820px; }
.page-hero .h1 { margin: 18px 0 20px; }

/* ---------- Chips / pills ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,0.03); color: var(--text-muted); }
.chip svg { width: 14px; height: 14px; color: var(--brand); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background:
    radial-gradient(135% 130% at 100% 0%, rgba(56,189,248,0.055), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 30px 30px;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  overflow: hidden;
}
/* signature: blueprint accent line drawn across the top on hover */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand), rgba(56,189,248,0));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(170px 170px at var(--mx, 50%) var(--my, 0%), var(--brand-glow), transparent 70%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 34px 66px -34px rgba(0,0,0,0.75); }
.card:hover::after { opacity: 1; }

.card__icon {
  width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(56,189,248,0.18), rgba(56,189,248,0.02));
  border: 1px solid rgba(56,189,248,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  color: var(--brand); margin-bottom: 22px;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.card:hover .card__icon { transform: translateY(-3px); border-color: rgba(56,189,248,0.42); }
.card__icon svg { width: 27px; height: 27px; }
.card--amber .card__icon { background: linear-gradient(150deg, rgba(245,165,36,0.18), rgba(245,165,36,0.03)); border-color: rgba(245,165,36,0.22); color: var(--amber); }
.card__tag { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); opacity: 0.85; margin-bottom: 11px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 22px; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--brand); }
.card__link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .stats, .stats--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats, .stats--4 { grid-template-columns: 1fr; } }
.stat { background: var(--bg-2); padding: 34px 26px; text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; }
.stat__num .grad-text { display: inline; }
.stat__label { margin-top: 12px; font-size: 0.9rem; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.stat__suffix { color: var(--brand); }

/* ---------- Feature / split ---------- */
.split { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } .split--rev > :first-child { order: 2; } }
.feature-list { display: grid; gap: 18px; margin-top: 28px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item__ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.2); color: var(--brand); }
.feature-item__ico svg { width: 20px; height: 20px; }
.feature-item h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.feature-item p { color: var(--text-muted); font-size: 0.94rem; }

/* Visual panel (SVG equipment) */
.visual-panel { position: relative; border-radius: var(--r-xl); border: 1px solid var(--border); background: radial-gradient(120% 100% at 50% 0%, var(--surface-2), var(--bg-2)); padding: 34px; overflow: hidden; box-shadow: var(--shadow); }
.visual-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(56,189,248,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,0.06) 1px, transparent 1px); background-size: 30px 30px; mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000, transparent 75%); }
.visual-panel svg { position: relative; z-index: 1; width: 100%; height: auto; }

/* ---------- Projects ---------- */
.project { position: relative; display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.project:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.project__media { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(120% 120% at 30% 0%, var(--surface-3), var(--bg)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project__media::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(56,189,248,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,0.07) 1px, transparent 1px); background-size: 34px 34px; opacity: 0.7; }
.project__media svg { position: relative; z-index: 1; width: 62%; height: auto; color: var(--brand); filter: drop-shadow(0 8px 24px rgba(56,189,248,0.2)); }
.project__tag { position: absolute; top: 16px; left: 16px; z-index: 2; }
.project__body { padding: 28px; }
.project__specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.spec { font-family: var(--font-mono); font-size: 0.74rem; padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-muted); }
.spec b { color: var(--brand); font-weight: 500; }

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 780px) { .process { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.process__step { position: relative; padding: 30px 26px 28px; border: 1px solid var(--border); border-radius: var(--r); background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); transition: transform 0.45s var(--ease), border-color 0.45s var(--ease); }
.process__step:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.process__step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; color: var(--brand);
  background: linear-gradient(150deg, rgba(56,189,248,0.16), rgba(56,189,248,0.03));
  border: 1px solid rgba(56,189,248,0.24);
}
.process__step h4 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 8px; }
.process__step p { font-size: 0.92rem; color: var(--text-muted); }
/* connector rail between steps (desktop) */
@media (min-width: 780px) {
  .process__step:not(:last-child)::after {
    content: ""; position: absolute; top: 53px; right: -24px; width: 24px; height: 1px;
    background: linear-gradient(90deg, rgba(56,189,248,0.45), rgba(56,189,248,0.04));
  }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--text-muted); white-space: nowrap; }
.marquee__item svg { width: 18px; height: 18px; color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(44px, 6vw, 76px); text-align: center; border: 1px solid var(--border-strong); background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 120% at 50% -10%, var(--brand-glow), transparent 60%), radial-gradient(50% 100% at 100% 120%, var(--amber-glow), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .h2 { margin-bottom: 16px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- Service-area / map ---------- */
.map-panel { position: relative; border: 1px solid var(--border); border-radius: var(--r-xl); background: radial-gradient(100% 100% at 50% 0%, var(--surface-2), var(--bg-2)); padding: 34px; overflow: hidden; box-shadow: var(--shadow); }
.map-panel svg { width: 100%; height: auto; }
.map-city { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Contact ---------- */
.form { display: grid; gap: 20px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.03em; }
.field label .req { color: var(--amber); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 14px 16px; min-height: 50px; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input[type="file"] { padding: 11px 14px; cursor: pointer; color: var(--text-muted); }
.field input[type="file"]::file-selector-button { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; margin-right: 14px; padding: 9px 15px; border-radius: 8px; border: 1px solid var(--border-strong); background: rgba(255,255,255,0.05); color: var(--text); cursor: pointer; transition: border-color 0.2s var(--ease), background 0.2s var(--ease); }
.field input[type="file"]::file-selector-button:hover { border-color: var(--brand); background: rgba(56,189,248,0.1); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2393A4B5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--danger); }
.field__error { font-size: 0.8rem; color: var(--danger); min-height: 1em; display: none; }
.field.is-error .field__error { display: block; }
.form__note { font-size: 0.85rem; color: var(--text-dim); }
.form-status { display: none; padding: 16px 18px; border-radius: var(--r-sm); font-size: 0.95rem; }
.form-status.is-success { display: block; background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.3); color: var(--success); }
.form-status.is-error { display: block; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3); color: var(--danger); }

.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.contact-card__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.2); color: var(--brand); }
.contact-card__ico svg { width: 22px; height: 22px; }
.contact-card h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 3px; }
.contact-card a, .contact-card p { color: var(--text-muted); font-size: 0.95rem; }
.contact-card a:hover { color: var(--brand); }

/* ---------- Values / list check ---------- */
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); }
.check-list svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.check-list b { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(56,189,248,0.03)); padding: clamp(56px, 7vw, 88px) 0 40px; margin-top: 40px; }
.footer__grid { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } }
.footer__brand p { color: var(--text-muted); font-size: 0.95rem; margin-top: 18px; max-width: 34ch; }
.footer h5 { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 20px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--brand); }
.footer__contact { display: grid; gap: 14px; }
.footer__contact a, .footer__contact p { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; }
.footer__contact svg { flex: none; width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.footer__contact a:hover { color: var(--brand); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.85rem; }
.footer__bottom a { color: var(--text-dim); }
.footer__bottom a:hover { color: var(--text-muted); }
.footer__credit { flex-basis: 100%; text-align: center; color: var(--text-dim); font-size: 0.8rem; margin-top: 6px; }
.footer__credit a { color: var(--text-muted); }
.footer__credit a:hover { color: var(--brand); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll::after, .marquee__track { animation: none; }
}

/* ---------- Blueprint hero scene ---------- */
.hero--scene { min-height: min(90vh, 880px); display: flex; align-items: center; padding-top: calc(var(--nav-h) + clamp(24px, 5vw, 56px)); padding-bottom: clamp(56px, 8vw, 110px); }
.hero--scene > .container { position: relative; z-index: 2; }
.hero__scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; animation: heroin 1.5s var(--ease) 0.15s forwards; }
.hero__scene svg { position: absolute; right: -2%; bottom: -6%; width: min(80%, 1160px); height: auto; color: var(--brand); animation: bpfloat 18s ease-in-out infinite; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 6%, rgba(5,9,15,0.86) 34%, rgba(5,9,15,0.42) 62%, rgba(5,9,15,0.1) 100%),
    linear-gradient(0deg, var(--bg) 1%, transparent 24%);
}
@media (max-width: 1024px) {
  .hero__scene svg { width: min(96%, 940px); opacity: 0.72; }
  .hero__scrim { background: linear-gradient(90deg, var(--bg) 4%, rgba(5,9,15,0.82) 42%, rgba(5,9,15,0.52) 76%, rgba(5,9,15,0.3) 100%), linear-gradient(0deg, var(--bg) 2%, transparent 30%); }
}
@media (max-width: 720px) {
  .hero__scene svg { right: -24%; bottom: auto; top: 5%; width: 152%; opacity: 0.28; }
}
@keyframes heroin { from { opacity: 0; transform: translateY(12px) scale(1.015); } to { opacity: 1; transform: none; } }
@keyframes bpfloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-12px, -9px); } }

.bp-flow { stroke: #8CE0FF; stroke-width: 3; stroke-dasharray: 4 13; stroke-linecap: round; animation: bpflow 1.3s linear infinite; }
.bp-flow--rev { animation-direction: reverse; }
.bp-flow--warm { stroke: var(--amber); }
@keyframes bpflow { to { stroke-dashoffset: -34; } }
.bp-spin { transform-box: fill-box; transform-origin: center; animation: bpspin 9s linear infinite; }
@keyframes bpspin { to { transform: rotate(360deg); } }
.bp-leader { stroke: var(--amber); stroke-width: 1.4; stroke-opacity: 0.5; stroke-dasharray: 2 6; }
.bp-ring { transform-box: fill-box; transform-origin: center; animation: bpring 2.6s var(--ease) infinite; }
@keyframes bpring { 0% { transform: scale(0.5); opacity: 0.7; } 100% { transform: scale(2.4); opacity: 0; } }
.bp-pin { transform-box: fill-box; transform-origin: center; animation: bppin 2.6s var(--ease) infinite; }
@keyframes bppin { 0%, 100% { opacity: 0.82; } 50% { opacity: 1; } }

/* ---------- 3D WebGL hero ---------- */
.hero--3d { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding-top: var(--nav-h); overflow: hidden; background: radial-gradient(120% 110% at 60% 6%, #0b1826 0%, #070d15 55%, #05090F 100%); }
.hero__top { position: relative; z-index: 2; padding: clamp(20px, 4vw, 46px) 0 clamp(12px, 2vw, 26px); }
.hero__intro { max-width: 820px; }
.hero__intro .display { font-size: clamp(2.1rem, 4.8vw, 3.9rem); margin: 16px 0 20px; }
.hero__stage { position: relative; z-index: 1; flex: 1 1 auto; min-height: 200px; }
.hero__3d { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__3d.is-ready { opacity: 1; }
.hero__3d-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,9,15,0.9) 0%, rgba(5,9,15,0.6) 36%, rgba(5,9,15,0.14) 68%, transparent 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 42%);
}
.hero--3d > .container { position: relative; z-index: 3; }
/* 3D canvas stays full-bleed; the chiller is positioned relative to the content container in hero3d.js so it never drifts on ultrawide screens */
@media (max-width: 720px) {
  .hero__3d-overlay { background: linear-gradient(0deg, var(--bg) 5%, rgba(5,9,15,0.5) 42%, rgba(5,9,15,0.25) 100%); }
}

/* ---------- Brand logo (image) ---------- */
.brand__logo { height: 38px; width: auto; display: block; }
.footer__brand .brand__logo { height: 46px; }
@media (max-width: 520px) { .brand__logo { height: 32px; } }

/* ---------- Photo hero (Hunton-style) ---------- */
.hero--photo { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; padding-top: calc(var(--nav-h) + clamp(24px, 5vw, 56px)); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; background-color: #0A121C; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.16) translate(-1.4%, -1.4%); } }
/* Rotating hero slideshow (crossfade + slow zoom) */
.hero__slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; background-color: #0A121C; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.5s ease; will-change: opacity, transform; }
.hero__slide.is-active { opacity: 1; z-index: 1; animation: heroKenburns 6.8s ease-out forwards; }
@keyframes heroKenburns { from { transform: scale(1.06); } to { transform: scale(1.15); } }
.hero__photo-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,9,15,0.95) 0%, rgba(5,9,15,0.85) 32%, rgba(5,9,15,0.55) 62%, rgba(5,9,15,0.35) 100%),
    linear-gradient(0deg, var(--bg) 1%, rgba(5,9,15,0.25) 30%, transparent 62%),
    radial-gradient(60% 80% at 45% -10%, rgba(56,189,248,0.10), transparent 60%);
}
.hero--photo > .container { position: relative; z-index: 3; }
.hero__panel {
  position: relative; max-width: 620px;
  padding: 0;
  text-shadow: 0 2px 28px rgba(0,0,0,0.6), 0 1px 5px rgba(0,0,0,0.45);
}
.hero__panel .display { margin: 18px 0 20px; font-size: clamp(2.4rem, 5.5vw, 4.3rem); }
.hero__panel .lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (max-width: 620px) { .hero__photo-overlay { background: linear-gradient(0deg, var(--bg) 2%, rgba(5,9,15,0.5) 42%, rgba(5,9,15,0.5) 100%); } }

/* Lev3l wordmark styling inside headline */
.lev3l-word { font-style: inherit; }
.lev3l-word .three { color: var(--brand); }

/* ---------- Texas map with animated cities ---------- */
.tx-city-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.4px; }
.tx-minor-label { font-size: 9px; fill: #8aa0b5; letter-spacing: 0.2px; }
.tx-ping { transform-box: fill-box; transform-origin: center; animation: txping 2.8s var(--ease) infinite; }
@keyframes txping { 0% { transform: scale(0.4); opacity: 0.8; } 100% { transform: scale(3.4); opacity: 0; } }
.tx-glow { transform-box: fill-box; transform-origin: center; animation: txglow 2.8s ease-in-out infinite; }
@keyframes txglow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.tx-major .tx-dot { r: 6; }

/* ---------- Project photos ---------- */
.project__photo { position: relative; aspect-ratio: 16 / 11; background-size: cover; background-position: center; background-color: var(--surface-3); background-image: linear-gradient(150deg, var(--surface-3), var(--bg)); }
.project__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,9,15,0.55), transparent 45%), linear-gradient(180deg, rgba(5,9,15,0.5), transparent 30%); }
.project--wide { grid-column: 1 / -1; }
.project__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.project__thumb { width: 74px; height: 54px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid var(--border); cursor: pointer; opacity: 0.55; transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease); flex: none; padding: 0; }
.project__thumb:hover { opacity: 1; transform: translateY(-2px); }
.project__thumb.is-active { opacity: 1; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, var(--surface), var(--bg-2)); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.team-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.team-card__photo { position: relative; aspect-ratio: 4 / 5; background-size: cover; background-position: center top; background-color: var(--surface-3); background-image: linear-gradient(160deg, var(--surface-2), var(--bg)); }
.team-card__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,9,15,0.9), transparent 45%); }
.team-card__ph-ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-dim); opacity: 0.4; }
.team-card__ph-ico svg { width: 54px; height: 54px; }
.team-card__body { padding: 18px 20px 22px; position: relative; }
.team-card__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.team-card__role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-top: 6px; line-height: 1.5; }

/* ---------- Team: featured CEO + labeled cards ---------- */
.team-featured { display: grid; gap: clamp(24px, 4vw, 52px); align-items: center; margin-bottom: clamp(32px, 4vw, 56px); padding: clamp(22px, 3vw, 40px); border: 1px solid var(--border-strong); border-radius: var(--r-xl); background: linear-gradient(150deg, var(--surface-2), var(--bg-2)); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.team-featured::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 110% at 100% 0%, var(--brand-glow), transparent 62%); pointer-events: none; }
.team-featured > * { position: relative; z-index: 1; }
@media (min-width: 780px) { .team-featured { grid-template-columns: 300px 1fr; } }
.team-featured__photo { aspect-ratio: 1 / 1; border-radius: var(--r-lg); background-size: cover; background-position: center; background-color: var(--surface-3); border: 1px solid var(--border-strong); }
.team-featured__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); }
.team-featured__badge svg { width: 15px; height: 15px; }
.team-featured__name { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 6px; }
.team-featured__role { font-family: var(--font-mono); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.team-featured__bio { color: var(--text-muted); max-width: 54ch; }

.team-cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .team-cards { grid-template-columns: repeat(2, 1fr); } }
.team-card2 { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.team-card2:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.team-card2 img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

/* ---------- About images ---------- */
.about-img { width: 100%; border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--border); border: none; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
