/* ============================================================
   Martinez Professional Construction — Design System
   Dark premium theme · Sora + Inter · ambient-glow lighting + grain
   ============================================================ */

:root {
  --ink-950: #06080C;
  --ink-900: #0A0C10;
  --ink-800: #12161D;
  --ink-700: #1B212B;
  --blue-600: #1D4ED8;
  --blue-500: #2563EB;
  --blue-400: #60A5FA;
  --paper: #F5F7FA;
  --paper-dim: #E8ECF1;
  --white: #FFFFFF;
  --slate-300: #C3CAD5;
  --slate-500: #8B93A1;
  --slate-700: #3E4653;
  --amber-400: #F59E0B;
  --amber-300: #FBBF24;
  --line: rgba(96, 165, 250, 0.14);
  --radius: 14px;
  --font-head: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 90px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--ink-900);
  color: var(--slate-300);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Premium grain — sits BEHIND all content (z-index:-1) so solid elements like
   buttons and cards stay crisp; only the dark backdrop picks up the texture. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-400); text-decoration: none; }

/* keyboard-accessibility: a clear, on-brand focus ring (only for keyboard users) */
:focus-visible { outline: 2px solid var(--amber-400); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Ambient lighting backdrop (replaces the old blueprint grid).
   Soft, layered radial glows read as light, not decoration — a corner glow
   plus an opposite-side glow give dark sections a three-dimensional feel. */
.bp-grid { position: relative; }
.bp-grid::before {
  content: '';
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(62% 60% at 10% -12%, rgba(29, 78, 216, 0.22), transparent 60%),
    radial-gradient(52% 55% at 110% 118%, rgba(37, 99, 235, 0.15), transparent 62%);
}
/* the cinematic hero supplies its own lighting via the media layer */
.hero-cinema::before { display: none; }

/* ============ LIQUID GLASS ============ */
.liquid-glass {
  background: rgba(8, 11, 17, 0.5);
  background-blend-mode: luminosity;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.10) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.10) 80%, rgba(255,255,255,0.30) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* ============ NAV (floating glass pill) ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: auto;
  display: flex; align-items: center;
  padding: 16px clamp(16px, 4vw, 60px) 0;
  background: none; border: none;
  transition: padding 0.35s ease;
}
.nav-inner {
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 11px 12px 11px 20px;
  display: flex; align-items: center; gap: 32px;
  border-radius: 16px;
  transition: box-shadow 0.35s ease, background 0.35s ease;
}
.nav.scrolled { padding-top: 10px; }
.nav.scrolled .nav-inner {
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand svg { width: 44px; height: auto; }
.brand-text { line-height: 1.05; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  color: var(--blue-400); letter-spacing: 0.02em; display: block;
}
.brand-sub {
  font-size: 0.55rem; letter-spacing: 0.28em; color: var(--white);
  text-transform: uppercase; display: block; font-weight: 500;
}

.nav-links { display: flex; align-items: center; gap: 28px; margin-left: auto; list-style: none; }
.nav-call { display: none; }
.nav-links > li { position: relative; }
.nav-links a {
  color: var(--slate-300); font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }

/* The glass nav clips its ::before border with overflow:hidden — but that also
   clips the dropdown. Let the dropdown escape while keeping the glass edge. */
.nav-inner.liquid-glass { overflow: visible; }

/* dropdown */
.has-drop > a::after {
  content: ''; display: inline-block; margin-left: 7px;
  width: 7px; height: 7px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}
.has-drop:hover > a::after { transform: rotate(225deg) translateY(2px); }
.drop {
  position: absolute; top: calc(100% + 16px); left: -16px; min-width: 244px;
  /* fully opaque, elevated panel so it always stands out from the page behind */
  background: #0E1219;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 14px; padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0,0,0,0.4);
}
/* hover bridge so the menu doesn't vanish when crossing the gap */
.drop::before {
  content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.has-drop:hover .drop, .has-drop:focus-within .drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.drop a {
  display: block; padding: 11px 14px; border-radius: 9px; font-size: 0.88rem;
  color: var(--slate-300); font-weight: 500; transition: background 0.18s ease, color 0.18s ease;
}
.drop a:hover, .drop a:focus-visible {
  background: var(--blue-600); color: var(--white);
}

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 0.92rem;
  padding: 14px 28px; border-radius: 11px; border: none; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
/* light sheen that sweeps across on hover */
.btn::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); transition: left 0.6s ease; pointer-events: none;
}
.btn:hover::after { left: 140%; }
/* Primary CTA — saturated amber/yellow with BRIGHT WHITE bold text. A soft dark
   text-shadow lifts the white off the yellow so it stays crisp and readable,
   and a dark ring keeps the button defined on the translucent nav and on photos. */
.btn-amber {
  background: linear-gradient(180deg, #EF9310 0%, #DE7D07 52%, #C86B04 100%);
  color: #FFFFFF; font-weight: 800; letter-spacing: 0.012em;
  text-shadow: 0 1px 2px rgba(45, 26, 0, 0.75), 0 0 1px rgba(45, 26, 0, 0.5);
  box-shadow: 0 10px 26px rgba(210, 120, 6, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.28), 0 0 0 1px rgba(120, 68, 0, 0.6);
}
.btn-amber:hover {
  background: linear-gradient(180deg, #F7A11C 0%, #E9880C 52%, #D67606 100%);
  color: #FFFFFF; transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(210, 120, 6, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.38), 0 0 0 1px rgba(120, 68, 0, 0.6);
}
/* Secondary CTA — SOLID (no translucency) so text is always legible, even over
   a busy hero photo. Dark fill, white text, defined border. */
.btn-ghost {
  background: rgba(14, 18, 25, 0.92); color: var(--white);
  border: 1px solid rgba(195, 202, 213, 0.45);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.btn-ghost:hover {
  background: #12161D; border-color: var(--blue-400); color: var(--blue-400);
  transform: translateY(-2px);
}
/* White CTA variant — solid white, dark text; maximum standout on dark sections */
.btn-white {
  background: var(--white); color: var(--ink-950); font-weight: 800;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}
.btn-white:hover { background: #E9EEF5; transform: translateY(-2px); }
.btn-blue { background: var(--blue-600); color: var(--white); box-shadow: 0 10px 26px rgba(29,78,216,0.35); }
.btn-blue:hover { background: var(--blue-500); transform: translateY(-2px); }
.nav .btn { padding: 11px 22px; font-size: 0.85rem; }

/* mobile nav */
.nav-toggle {
  display: none; margin-left: auto; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 110;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px auto; transition: all 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; position: relative; z-index: 3; }
  /* keep the brand + toggle visible above the full-screen menu overlay */
  .brand { position: relative; z-index: 3; }
  /* backdrop-filter on the pill would trap the fixed overlay inside the nav box,
     so drop it on mobile and give the bar a solid background instead */
  .nav-inner.liquid-glass {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(10, 12, 16, 0.96);
    border: 1px solid rgba(96, 165, 250, 0.14);
  }
  .nav-inner.liquid-glass::before { display: none; }

  /* full-screen, opaque, scrollable menu */
  .nav-links {
    position: fixed; inset: 0; z-index: 2;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; margin: 0;
    padding: calc(var(--nav-h) + 26px) 26px calc(env(safe-area-inset-bottom, 0px) + 36px);
    background:
      radial-gradient(130% 55% at 50% 0%, rgba(29, 78, 216, 0.18), rgba(6, 8, 12, 0) 62%),
      #07090D;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.26s ease, transform 0.26s ease, visibility 0.26s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > li { position: static; width: 100%; }

  /* large, tappable top-level rows */
  .nav-links > li:not(.nav-cta):not(.nav-call) > a {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
    color: #fff; padding: 18px 4px; text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links > li:not(.nav-cta):not(.nav-call) > a[aria-current="page"] { color: var(--blue-400); }

  /* chevron on the expandable Services / Company rows (rotates when open) */
  .nav-links > li.has-drop > a::after {
    content: ''; display: inline-block; width: 9px; height: 9px; flex: none;
    margin-left: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform 0.22s ease; opacity: 0.55;
  }
  .nav-links > li.has-drop.expanded > a::after { transform: rotate(-135deg); opacity: 0.9; }

  /* accordion submenu: collapsed by default, revealed when its row is tapped */
  .drop {
    display: none; position: static; list-style: none; margin: 2px 0 12px; padding: 4px 0 0;
    opacity: 1; visibility: visible; transform: none;
    background: none; border: none; box-shadow: none; min-width: 0;
  }
  .drop::before { display: none; }
  .has-drop.expanded > .drop { display: block; }
  .drop li { width: 100%; }
  .drop a {
    display: block; padding: 13px 4px 13px 18px; text-align: left;
    font-size: 1.06rem; font-weight: 500; color: var(--slate-300);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .drop a[aria-current="page"], .drop a:hover, .drop a:focus-visible { color: var(--blue-400); }

  /* mobile-only call row */
  .nav-call { display: block; margin-top: 22px; }
  .nav-call a {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--slate-300); font-weight: 600; font-size: 1.06rem; padding: 6px 4px;
  }

  /* prominent full-width CTA */
  .nav-links .nav-cta { margin-top: 14px; }
  .nav-links .nav-cta .btn {
    display: flex; width: 100%; justify-content: center;
    font-size: 1.05rem; padding: 17px 18px;
  }
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: min(92vh, 1000px); display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
}
/* full-bleed cinematic hero (home) — media shown as a full picture/video,
   text sits on a directional scrim for legibility */
.hero-cinema {
  min-height: min(100vh, 1040px);
  padding-bottom: 92px;
}

/* Single constant video/photo backdrop for the whole hero. */
.hero-media {
  position: absolute; inset: 0; z-index: -2;
}
.hero-media img,
.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1;
}
.hero-media video { z-index: 1; }

/* Background videos autoplay silently and loop forever with no user controls.
   pointer-events:none stops taps from summoning controls; the webkit rules hide
   the native iOS/Safari play-button overlay and any media control chrome. */
.hero-video { pointer-events: none; }
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button,
video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Lighter, professional scrim: the media reads rich and near-raw, with just
   enough gradient at the bottom-left (where the copy sits) for legibility. */
.hero-cinema .hero-media::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to top, rgba(6,8,12,0.82) 0%, rgba(6,8,12,0.14) 44%, rgba(6,8,12,0) 74%),
    linear-gradient(100deg, rgba(6,8,12,0.58) 0%, rgba(6,8,12,0.16) 46%, rgba(6,8,12,0) 74%);
}
/* non-cinema (interior) heroes keep the simpler treatment */
.hero:not(.hero-cinema) .hero-media img { opacity: 0.35; }
.hero:not(.hero-cinema) .hero-media::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(100deg, rgba(6,8,12,0.96) 30%, rgba(6,8,12,0.55) 70%, rgba(29,78,216,0.25) 100%);
}

/* angled brand accent (PCL geometric corner shape) */
.hero-accent {
  position: absolute; top: 0; right: 0; z-index: -1;
  width: 340px; height: 300px; pointer-events: none;
  background: linear-gradient(135deg, rgba(29,78,216,0.9), rgba(37,99,235,0.35));
  clip-path: polygon(100% 0, 100% 70%, 30% 0);
  opacity: 0.85;
}
.hero-accent::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--amber-400), transparent 55%);
  clip-path: polygon(100% 0, 100% 34%, 66% 0);
  opacity: 0.8;
}

/* hero entrance — pure CSS so it always completes (never JS-ticker-dependent).
   Base state is visible; the animation just adds a graceful rise-in. */
@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-inner > .eyebrow,
.hero-inner > h1,
.hero-inner > .hero-sub,
.hero-inner > .hero-ctas,
.hero-inner > .trust-bar,
.page-hero .eyebrow,
.page-hero h1,
.page-hero .lede,
.page-hero .hero-ctas {
  animation: heroUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-inner > .eyebrow { animation-delay: 0.05s; }
.hero-inner > h1 { animation-delay: 0.14s; }
.hero-inner > .hero-sub { animation-delay: 0.28s; }
.hero-inner > .hero-ctas { animation-delay: 0.4s; }
.hero-inner > .trust-bar { animation-delay: 0.52s; }
.page-hero h1 { animation-delay: 0.1s; }
.page-hero .lede { animation-delay: 0.22s; }
.page-hero .hero-ctas { animation-delay: 0.34s; }

/* hero headline (single, clean) */
.hero-inner { max-width: 780px; }
.hero-inner > .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.35rem, 5.6vw, 4.3rem);
  line-height: 1.05; letter-spacing: -0.035em; color: var(--white);
  margin: 0 0 22px;
}
.hero h1 .accent { color: var(--blue-400); }

/* credibility band (Kiewit-style, right under hero) */
.cred-band {
  background: var(--ink-950);
  border-bottom: 1px solid rgba(96,165,250,0.1);
  padding: 40px 0;
}
.cred-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.cred {
  display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap;
  padding-left: 22px; position: relative;
}
.cred::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; border-radius: 2px;
  background: linear-gradient(var(--blue-500), var(--blue-400));
}
.cred-num, .cred-suf {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem); color: var(--white); line-height: 1;
}
.cred-suf { color: var(--blue-400); }
.cred-label {
  flex-basis: 100%; font-size: 0.82rem; color: var(--slate-500);
  margin-top: 8px; letter-spacing: 0.02em;
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-400); font-weight: 600; margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--blue-400); }
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 600px;
  margin-bottom: 40px; color: var(--slate-300); line-height: 1.65;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 54px; }

.trust-bar {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  padding-top: 28px; border-top: 1px solid rgba(96, 165, 250, 0.18);
}
.trust-item { display: flex; align-items: center; gap: 11px; font-size: 0.88rem; color: var(--slate-300); }
.trust-item svg { width: 20px; height: 20px; color: var(--amber-400); flex-shrink: 0; }

/* soft ambient glow separator (replaces the old measurement-tick line) */
.ticks {
  position: relative; height: 1px; margin: 0; border: 0;
  background: none; overflow: visible;
}
.ticks::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 80%); height: 140px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(29, 78, 216, 0.20), transparent 70%);
  filter: blur(28px); pointer-events: none;
}

/* ============ SECTIONS ============ */
section { position: relative; }
.section { padding: 104px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; margin-bottom: 16px; }
.section-head p { font-size: 1.02rem; color: var(--slate-500); }
.section-light .section-head p { color: var(--slate-700); }

.section-light { background: var(--paper); }
.section-light h2, .section-light h3 { color: var(--ink-900); }
.section-light { color: var(--slate-700); }

/* On light sections, eyebrows use a darker blue so they stay legible on paper. */
.section-light .eyebrow { color: var(--blue-600); }
.section-light .eyebrow::before { background: var(--blue-600); }

/* Cards on light sections render LIGHT (white with dark text) to match the
   .step cards, instead of inheriting the section's dark text onto a dark card
   (which produced unreadable gray-on-black). Keeps the theme consistent:
   dark section = dark cards, light section = light cards. */
.section-light .svc-card,
.section-light .info-tile {
  background: var(--white);
  border-color: var(--paper-dim);
  box-shadow: 0 6px 24px rgba(10, 12, 16, 0.05);
}
.section-light .svc-card { background: var(--white); }
.section-light .svc-card h3,
.section-light .info-tile h3 { color: var(--ink-900); }
.section-light .svc-card p,
.section-light .info-tile p,
.section-light .info-tile a { color: var(--slate-700); }
.section-light .svc-card:hover {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 22px 44px rgba(10, 12, 16, 0.1);
}
.section-light .svc-icon {
  background: linear-gradient(160deg, rgba(29, 78, 216, 0.14), rgba(29, 78, 216, 0.06));
  border-color: rgba(29, 78, 216, 0.22);
}
.section-light .info-tile svg { color: var(--blue-600); }

/* Forms on light sections become clean light forms (white card, dark inputs). */
.section-light .form-card {
  background: var(--white);
  border-color: var(--paper-dim);
  box-shadow: 0 10px 30px rgba(10, 12, 16, 0.06);
}
.section-light .form-card h3 { color: var(--ink-900); }
.section-light .form-card label { color: var(--slate-700); }
.section-light .form-card input,
.section-light .form-card select,
.section-light .form-card textarea {
  background: #fff;
  border-color: #d5dbe4;
  color: var(--ink-900);
}
.section-light .form-note { color: var(--slate-500); }
.section-light .folio-item.placeholder {
  background: #fff; border-color: #cdd5e0; color: var(--slate-500);
}

/* service cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.svc-card {
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(96,165,250,0.08), transparent 60%),
    var(--ink-800);
  border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: var(--radius); padding: 34px 30px;
  position: relative; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: block;
}
.svc-card:hover {
  transform: translateY(-7px); border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(96,165,250,0.15),
    0 0 40px rgba(29,78,216,0.18);
}
.svc-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.svc-card:hover::after { transform: scaleX(1); }
.svc-icon {
  width: 54px; height: 54px; border-radius: 13px;
  background: linear-gradient(160deg, rgba(29, 78, 216, 0.3), rgba(29,78,216,0.1));
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  transition: transform 0.3s ease;
}
.svc-card:hover .svc-icon { transform: scale(1.08) rotate(-3deg); }
.svc-icon svg { width: 26px; height: 26px; color: var(--blue-400); }
.svc-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.svc-card p { font-size: 0.92rem; color: var(--slate-500); margin-bottom: 18px; }
.svc-link {
  font-size: 0.85rem; font-weight: 600; color: var(--blue-400);
  display: inline-flex; align-items: center; gap: 7px;
}
.svc-link::after { content: '→'; transition: transform 0.2s ease; }
.svc-card:hover .svc-link::after { transform: translateX(4px); }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--paper-dim);
  border-radius: var(--radius); padding: 36px 30px; position: relative;
  box-shadow: 0 6px 24px rgba(10, 12, 16, 0.05);
}
.step-num {
  font-family: var(--font-head); font-weight: 800; font-size: 3rem;
  color: var(--blue-600); opacity: 0.16; line-height: 1; margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--ink-900); }
.step p { font-size: 0.92rem; color: var(--slate-700); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat-num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); color: var(--white); line-height: 1;
}
.stat-num .suffix { color: var(--blue-400); }
.stat-label {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate-500); margin-top: 10px; font-weight: 500;
}

/* portfolio */
.folio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.folio-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; border: 1px solid rgba(96, 165, 250, 0.12);
}
.folio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.folio-item:hover img { transform: scale(1.05); }
.folio-cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(6, 8, 12, 0.92));
  font-size: 0.85rem; color: var(--white); font-weight: 500;
}
.folio-item.placeholder {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(29,78,216,0.12), transparent 60%),
    var(--ink-800);
  border: 1px dashed rgba(96, 165, 250, 0.32);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-500); font-size: 0.85rem; text-align: center; padding: 20px;
}

/* checklist */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 0.97rem; }
.check-list svg { width: 21px; height: 21px; color: var(--amber-400); flex-shrink: 0; margin-top: 2px; }
.section-light .check-list svg { color: var(--blue-600); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--ink-800); border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: 12px; margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 20px 24px; font-family: var(--font-head);
  font-weight: 600; font-size: 1rem; color: var(--white);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.5rem; color: var(--blue-400); font-weight: 400;
  transition: transform 0.25s ease; flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 24px 22px; font-size: 0.93rem; color: var(--slate-500); }

/* testimonials */
.quote-card {
  background: var(--ink-800); border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column;
}
.quote-stars { color: var(--amber-400); letter-spacing: 3px; margin-bottom: 14px; font-size: 0.95rem; }
.quote-card blockquote { font-size: 0.97rem; color: var(--slate-300); margin-bottom: 20px; line-height: 1.6; }
.quote-who {
  font-size: 0.9rem; color: var(--white); font-weight: 600; margin-top: auto;
}
.quote-who span {
  display: block; font-size: 0.8rem; color: var(--slate-500); font-weight: 400; margin-top: 2px;
}
/* light-section variant so testimonials read on paper backgrounds too */
.section-light .quote-card { background: var(--white); border-color: var(--paper-dim); box-shadow: 0 6px 24px rgba(10,12,16,0.05); }
.section-light .quote-card blockquote { color: var(--slate-700); }
.section-light .quote-who { color: var(--ink-900); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--blue-600), #163ba6 60%, var(--ink-900));
  border-radius: 20px; padding: 72px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; max-width: 520px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-top: 10px; max-width: 480px; }
.cta-band .btn-amber { flex-shrink: 0; }

/* forms */
.form-card {
  background: var(--ink-800); border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: var(--radius); padding: 40px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--slate-500); margin-bottom: 8px;
}
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  background: var(--ink-900); border: 1px solid rgba(96, 165, 250, 0.18);
  color: var(--white); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}
input[type="file"] { padding: 11px; font-size: 0.85rem; color: var(--slate-500); }
.form-note { font-size: 0.8rem; color: var(--slate-500); margin-top: 14px; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success-icon {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 700;
  color: var(--ink-950); background: var(--amber-400);
  box-shadow: 0 8px 22px rgba(245,158,11,0.35);
}
.form-success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-success p { font-size: 0.95rem; color: var(--slate-500); max-width: 340px; margin: 0 auto; }
.section-light .form-success h3 { color: var(--ink-900); }
.section-light .form-success p { color: var(--slate-700); }

/* contact info blocks */
.info-tile {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--ink-800); border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: 12px; padding: 22px;
}
.info-tile svg { width: 22px; height: 22px; color: var(--blue-400); flex-shrink: 0; margin-top: 3px; }
.info-tile h3 { font-size: 0.95rem; margin-bottom: 4px; }
.info-tile p, .info-tile a { font-size: 0.9rem; color: var(--slate-500); }

/* before / after pairs */
.ba-pair { display: flex; flex-direction: column; gap: 12px; }
.ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-item {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4 / 3; border: 1px solid rgba(96, 165, 250, 0.14);
}
.ba-item img { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute; top: 10px; left: 10px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(6, 8, 12, 0.82); color: var(--white);
  backdrop-filter: blur(4px);
}
.ba-tag.ba-after { background: var(--amber-400); color: var(--ink-950); }
.ba-caption { font-size: 0.9rem; font-weight: 600; color: var(--ink-900); text-align: center; }
.section-light .ba-caption { color: var(--ink-900); }

/* build-transition video */
.build-video {
  max-width: 960px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.16);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  background: var(--ink-800);
}
.build-video video { width: 100%; height: auto; display: block; }

/* service-area map embed */
.map-embed {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.16);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-weight: 600; color: var(--blue-400); font-size: 0.95rem;
}
.map-link svg { width: 18px; height: 18px; }
.map-link:hover { color: var(--amber); }

/* about page — real founder photos */
.section-sub { margin-top: 14px; color: var(--slate-300); font-size: 1.02rem; line-height: 1.6; }
.section-light .section-sub { color: var(--slate-500); }
.about-figure { margin: 0; }
.about-figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: var(--radius); border: 1px solid rgba(96, 165, 250, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.about-figure figcaption {
  margin-top: 12px; font-size: 0.86rem; letter-spacing: 0.02em;
  color: var(--slate-500); text-align: left;
}
.photo-pair {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 8px;
}
.photo-pair .about-figure img { aspect-ratio: 4 / 5; }
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; gap: 20px; } }

/* ===== service-area landing pages ===== */
.area-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
@media (max-width: 900px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .area-grid { grid-template-columns: 1fr; } }
.area-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ink-900, #0E1219); border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: var(--radius); transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.area-card:hover {
  transform: translateY(-4px); border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}
.area-card-media { aspect-ratio: 16 / 10; overflow: hidden; }
.area-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.area-card:hover .area-card-media img { transform: scale(1.05); }
.area-card-body { padding: 20px 22px 24px; }
.area-card-body h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 8px; }
.area-card-body p { color: var(--slate-300); font-size: 0.94rem; margin-bottom: 14px; line-height: 1.55; }
.section-light .area-card { background: var(--white); }
.section-light .area-card-body p { color: var(--slate-600, #5b6472); }

/* city-page hero uses the generated image as a full backdrop */
.area-hero { min-height: 62vh; }
.area-hero .hero-media img { opacity: 1; }
.area-hero .hero-media::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to top, rgba(6,8,12,0.9) 0%, rgba(6,8,12,0.3) 46%, rgba(6,8,12,0.15) 100%),
    linear-gradient(100deg, rgba(6,8,12,0.82) 0%, rgba(6,8,12,0.3) 60%, rgba(6,8,12,0.1) 100%);
}

/* nearby-cities chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 820px; margin: 0 auto; }
.chip {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.24); color: var(--slate-300);
  font-weight: 600; font-size: 0.92rem; transition: all 0.2s ease;
}
.chip:hover { border-color: var(--amber-400); color: var(--white); background: rgba(96,165,250,0.08); }

/* trust badge strip (above footer) */
.trust-strip {
  background: var(--ink-950);
  border-top: 1px solid rgba(96, 165, 250, 0.1);
  padding: 44px 0;
}
.trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 32px 52px;
}
.trust-badge {
  display: flex; flex-direction: column; align-items: center; gap: 13px;
  text-align: center; width: 132px;
}
.tb-seal {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 50% 35%, rgba(29, 78, 216, 0.22), rgba(10, 12, 16, 0.4));
  border: 1.5px solid rgba(96, 165, 250, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* decorative outer seal ring */
.tb-seal::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px dashed rgba(96, 165, 250, 0.28);
}
.tb-seal svg { width: 28px; height: 28px; color: var(--blue-400); }
.tb-label {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--slate-300); line-height: 1.4;
}
@media (max-width: 640px) {
  .trust-badges { gap: 26px 32px; }
  .trust-badge { width: 96px; }
  .tb-seal { width: 56px; height: 56px; }
  .tb-seal svg { width: 24px; height: 24px; }
  .tb-label { font-size: 0.68rem; }
}

/* breadcrumbs */
.crumbs {
  padding: calc(var(--nav-h) + 32px) 0 0;
  font-size: 0.8rem; color: var(--slate-500);
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--slate-700); }
.crumbs a { color: var(--slate-500); }
.crumbs a:hover { color: var(--blue-400); }

/* page hero (interior pages) */
.page-hero { padding: 40px 0 72px; position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; margin: 14px 0 18px; max-width: 800px; }
.page-hero .lede { font-size: 1.08rem; color: var(--slate-300); max-width: 640px; }

/* footer */
footer {
  background: var(--ink-950); border-top: 1px solid rgba(96, 165, 250, 0.1);
  padding: 72px 0 0;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px;
  padding-bottom: 52px;
}
.foot-grid h4 {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--slate-500); margin-bottom: 18px;
}
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a, .foot-grid p { font-size: 0.9rem; color: var(--slate-300); }
.foot-grid a:hover { color: var(--blue-400); }
.foot-about p { margin-top: 16px; max-width: 300px; font-size: 0.88rem; color: var(--slate-500); }
.foot-bottom {
  border-top: 1px solid rgba(96, 165, 250, 0.08);
  padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--slate-700);
}
.foot-bottom a { color: var(--slate-500); }

/* mobile sticky CTA bar */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; grid-template-columns: 1fr 1fr;
  background: rgba(6, 8, 12, 0.92); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(96, 165, 250, 0.2);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
}
.sticky-cta .btn { padding: 13px 10px; font-size: 0.88rem; width: 100%; }

/* reveal animations (GSAP adds .gs-ready; static fallback keeps content visible) */
.reveal { opacity: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .grid-3, .steps, .folio { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 22px; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  /* eyebrows must wrap on mobile, or their long text stretches the layout */
  .eyebrow { display: flex; flex-wrap: wrap; max-width: 100%; }
  .grid-3, .grid-2, .steps, .folio, .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .form-card { padding: 24px 18px; }

  /* HERO: roomy, well-spaced, stacked. Everything constrained to the viewport. */
  .hero { min-height: auto; }
  .hero-cinema { min-height: 88vh; padding: calc(var(--nav-h) + 44px) 0 56px; display: flex; align-items: center; }
  .hero-inner { max-width: 100%; }
  .hero-inner > .eyebrow { margin-bottom: 18px; }
  .hero h1 {
    font-size: clamp(2.05rem, 8.6vw, 2.9rem);
    line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 20px;
  }
  .hero-sub { font-size: 1.02rem; max-width: 100%; line-height: 1.62; margin-bottom: 32px; }
  .eyebrow { font-size: 0.66rem; letter-spacing: 0.16em; }
  .hero-ctas { width: 100%; gap: 12px; margin-bottom: 40px; }
  .hero-ctas .btn { flex: 1 1 100%; width: 100%; }
  .trust-bar { gap: 16px 18px; padding-top: 26px; }
  .trust-item { flex: 1 1 44%; font-size: 0.84rem; }
  .hero-accent { width: 150px; height: 130px; }

  .sticky-cta { display: grid; }
  body { padding-bottom: 74px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .cred-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }

  /* page (interior) heroes */
  .page-hero h1 { font-size: clamp(1.8rem, 7.5vw, 2.4rem); }
  .page-hero .hero-ctas .btn { flex: 1 1 100%; width: 100%; }

  /* before/after pairs stay side-by-side but tighter */
  .ba-row { gap: 8px; }

  /* headings never overflow */
  h1, h2, h3, .hero-h { overflow-wrap: break-word; }
}

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

/* focus visibility */
:focus-visible {
  outline: 2px solid var(--amber-400);
  outline-offset: 3px;
}
