/* =========================================================
   TRZ Environmental — cinematic scroll site
   ========================================================= */
:root {
  --ink: #061317;
  --ink-2: #0a1d23;
  --ink-3: #10282f;
  --teal: #01797a;          /* logo teal */
  --teal-2: #0aa3a0;
  --teal-bright: #3fd9cb;
  --ember: #ff8a3d;
  --ember-soft: #ffb37a;
  --bone: #eaf1f0;
  --muted: #a3b8b9;
  --line: rgba(234, 241, 240, 0.12);
  --glass: rgba(9, 28, 34, 0.5);
  --glass-strong: rgba(8, 24, 29, 0.78);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 76px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-loading { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
em { font-style: normal; color: var(--teal-bright); }
.mono { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--bone); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--teal-bright); margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 12px var(--ember); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.h2 { font-size: clamp(2.1rem, 4.6vw, 4rem); margin-bottom: 24px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; cursor: pointer;
  background: var(--bg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, border-color 0.35s;
  white-space: nowrap;
}
.btn span { transition: transform 0.35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary {
  --bg: linear-gradient(135deg, #5ae6d6 0%, var(--teal-bright) 45%, #18b3a9 100%);
  color: #04201f;
  box-shadow: 0 10px 30px -10px rgba(63, 217, 203, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(63, 217, 203, 0.8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost { border-color: rgba(234, 241, 240, 0.32); color: var(--bone); background: rgba(6, 19, 23, 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(234, 241, 240, 0.08); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; color: var(--teal-bright); text-decoration: none; font-weight: 600; }
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span, .post:hover .link-arrow span { transform: translateX(5px); }

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(20, 52, 60, 0.55), rgba(6, 19, 23, 0.55));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(234, 241, 240, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(63, 217, 203, 0.45), transparent 35%, transparent 65%, rgba(255, 138, 61, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- Global FX layers ---------- */
.fx-particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 50; pointer-events: none; mix-blend-mode: screen; opacity: 0.85; }
.fx-tint { position: fixed; inset: 0; z-index: 51; pointer-events: none; mix-blend-mode: soft-light; background-color: rgba(1, 121, 122, 0.22); transition: background-color 1.4s var(--ease); }
.fx-vignette { position: fixed; inset: 0; z-index: 52; pointer-events: none; background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
.fx-grain { position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 53; pointer-events: none; opacity: 0.075; background-image: var(--grain, none); background-size: 220px 220px; animation: grain 0.9s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-content: center; justify-items: center; gap: 26px; background: var(--ink); }
.loader__mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.loader__mark img { width: 74px; height: auto; filter: drop-shadow(0 0 30px rgba(63, 217, 203, 0.35)); }
.loader__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.loader__ring circle { fill: none; stroke: var(--teal-bright); stroke-width: 1.5; stroke-dasharray: 352; stroke-dashoffset: 352; stroke-linecap: round; }
.loader__label { color: var(--muted); }
body:not(.is-loading) .loader { pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  transition: background 0.5s, backdrop-filter 0.5s, border-color 0.5s, transform 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(6, 19, 23, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav__logo { display: block; background: rgba(255, 255, 255, 0.94); border-radius: 12px; padding: 5px 12px; box-shadow: 0 8px 24px -10px rgba(0,0,0,.5); flex-shrink: 0; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav__links a { text-decoration: none; font-size: 0.95rem; color: rgba(234, 241, 240, 0.82); position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--teal-bright); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__phone { text-decoration: none; color: var(--bone); font-size: 0.8rem; letter-spacing: 0.08em; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(6,19,23,.4); cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--bone); transition: transform 0.4s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 58; background: rgba(6, 19, 23, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 700; font-stretch: 112%; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu__foot { display: grid; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; will-change: transform; background: #071a20 url("../assets/video/hero-poster.jpg") center / cover no-repeat; }
.hero__zoom { position: absolute; inset: 0; will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(6, 19, 23, 0.9) 0%, rgba(6, 19, 23, 0.55) 45%, rgba(6, 19, 23, 0.15) 75%),
  linear-gradient(0deg, var(--ink) 0%, transparent 30%),
  linear-gradient(180deg, rgba(6, 19, 23, 0.6) 0%, transparent 20%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 96px; }
.hero__title { font-size: clamp(2.6rem, 5.3vw, 5.4rem); margin-bottom: 26px; font-weight: 750; }
.hero__lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(234, 241, 240, 0.85); max-width: 40ch; margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.hero__proof li { display: flex; align-items: center; gap: 10px; }
.hero__proof li::before { content: ""; width: 14px; height: 1px; background: var(--ember); }
.hero__form { padding: clamp(22px, 2.4vw, 32px); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: var(--muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.68rem; }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--teal-bright), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Forms ---------- */
.form-head { margin-bottom: 18px; }
.form-kicker { color: var(--ember-soft); margin-bottom: 8px; font-size: 0.7rem; }
.form-title { font-size: clamp(1.35rem, 2vw, 1.75rem); margin-bottom: 18px; font-stretch: 105%; }
.form-head .form-title { margin-bottom: 0; }
.lead-form { display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 0.82rem; color: var(--muted); min-width: 0; }
.field > span { font-weight: 500; letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid rgba(234, 241, 240, 0.16);
  background: rgba(3, 12, 15, 0.55); color: var(--bone);
  font: inherit; font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(163, 184, 185, 0.6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-bright); box-shadow: 0 0 0 3px rgba(63, 217, 203, 0.2); background: rgba(3, 12, 15, 0.75); }
.field--select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233fd9cb' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: #0a1d23; color: var(--bone); }
.field.is-invalid input, .field.is-invalid select { border-color: #ff7b6b; box-shadow: 0 0 0 3px rgba(255, 123, 107, 0.18); }
.field .err { color: #ff9d90; font-size: 0.78rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-legal { font-size: 0.75rem; color: var(--muted); margin: 0; text-align: center; }
.form-status { margin: 0; font-size: 0.9rem; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #ff9d90; }
.pet-note { margin: 0; font-size: 0.85rem; color: var(--ember-soft); background: rgba(255, 138, 61, 0.08); border: 1px solid rgba(255, 138, 61, 0.25); padding: 10px 12px; border-radius: var(--radius-sm); }
.form-success { text-align: left; display: grid; gap: 12px; padding: 8px 0; }
.form-success .tick { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(63, 217, 203, 0.14); color: var(--teal-bright); font-size: 1.5rem; border: 1px solid rgba(63,217,203,.4); }
.form-success h3 { font-size: 1.5rem; }
.form-success p { margin: 0; color: rgba(234,241,240,.85); }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 2; overflow: hidden; border-block: 1px solid var(--line); background: rgba(10, 29, 35, 0.6); padding: 18px 0; }
.ticker__track { display: flex; width: max-content; gap: 36px; align-items: center; will-change: transform; }
.ticker__track span { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 600; font-stretch: 115%; white-space: nowrap; color: rgba(234,241,240,.88); }
.ticker__track i { color: var(--ember); font-style: normal; }

/* ---------- Story (scroll-scrubbed cinematic transition) ---------- */
.story { position: relative; background: #000; }
.story__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.story__canvas, .story__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__canvas { opacity: 0; transition: opacity 0.6s; }
.story__canvas.is-ready { opacity: 1; }
.story__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.15) 0%, rgba(0,0,0,.65) 100%), linear-gradient(0deg, rgba(6,19,23,.75), transparent 40%); }
.story__lines { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--gutter); text-align: center; }
.story__line { grid-area: 1 / 1; max-width: 18ch; margin: 0; font-size: clamp(2rem, 5vw, 4.4rem); font-weight: 700; font-stretch: 112%; line-height: 1.08; letter-spacing: -0.02em; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6); }
.story__line--big { font-size: clamp(2.4rem, 7vw, 6.4rem); max-width: 14ch; }
.story__line em { color: var(--ember-soft); }
.story__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; height: 2px; background: rgba(234,241,240,.15); border-radius: 2px; overflow: hidden; }
.story__progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal-bright), var(--ember)); transform: scaleX(0); transform-origin: left; }
.js .story__line { opacity: 0; }
.js .story__fallback { opacity: 0; }
.story__canvas { z-index: 1; }
.story__shade, .story__lines, .story__progress { z-index: 2; }

/* ---------- Services ---------- */
.services { position: relative; padding: clamp(80px, 10vw, 140px) 0 60px; background: linear-gradient(180deg, #000 0%, var(--ink) 18%); }
.services__pin { position: relative; }
.services__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 60px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.services__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.services__head .h2 { margin-bottom: 0; }
.services__intro { color: var(--muted); margin: 0; max-width: 48ch; }
.services__rail { overflow: hidden; }
.services__track { display: flex; gap: 22px; padding: 0 var(--gutter); width: max-content; }
.svc { width: clamp(280px, 26vw, 380px); flex-shrink: 0; display: flex; flex-direction: column; overflow: hidden; }
.svc__img { aspect-ratio: 4 / 4.2; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; position: relative; }
.svc__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,19,23,.85), transparent 55%); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: filter 0.6s; filter: saturate(0.9); }
.svc:hover .svc__img img { filter: saturate(1.15) brightness(1.08); }
.svc__body { padding: 0 24px 24px; margin-top: -36px; position: relative; display: flex; flex-direction: column; flex: 1; }
.svc__num { color: var(--ember-soft); margin-bottom: 10px; }
.svc h3 { font-size: 1.45rem; margin-bottom: 12px; }
.svc p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.svc__cta { align-self: flex-start; background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--teal-bright); font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; border-bottom: 1px solid rgba(63,217,203,.35); }
.svc__cta:hover { border-color: var(--teal-bright); }
.svc--end { justify-content: center; padding: 36px; gap: 18px; background: linear-gradient(160deg, rgba(1, 121, 122, 0.45), rgba(6, 19, 23, 0.6)); }
.svc--end p { color: var(--ember-soft); margin: 0; }
.svc--end h3 { font-size: 1.9rem; }
.svc--end .btn { align-self: flex-start; }
.services__foot { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.services__bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.services__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-bright), var(--ember)); transform: scaleX(0); transform-origin: left; }
.services__hint { color: var(--muted); }

/* ---------- Process ---------- */
.process { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.process__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 64px); }
.process__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.process__visual { position: relative; }
.process__frame { position: sticky; top: calc(var(--nav-h) + 6vh); height: min(72vh, 640px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.process__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.9s var(--ease), transform 1.6s var(--ease); }
.process__frame img.is-active { opacity: 1; transform: scale(1); }
.process__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,19,23,.7), transparent 40%); }
.process__count { position: absolute; left: 24px; bottom: 22px; z-index: 2; color: var(--bone); }
.process__count b { color: var(--teal-bright); font-weight: 500; font-size: 1rem; }
.process__steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; border-top: 1px solid var(--line); opacity: 0.35; transition: opacity 0.6s var(--ease); }
.step.is-active { opacity: 1; }
.step__img { display: none; }
.step__num { color: var(--ember-soft); margin-bottom: 14px; }
.step h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); margin-bottom: 16px; }
.step p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.step .btn { align-self: flex-start; margin-top: 12px; }

/* ---------- Stats ---------- */
.stats { padding: 0 0 clamp(80px, 10vw, 140px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { padding: 32px 26px; }
.stat__num { font-size: clamp(3rem, 5.5vw, 4.8rem); font-weight: 750; font-stretch: 118%; line-height: 1; margin-bottom: 16px; letter-spacing: -0.03em; background: linear-gradient(180deg, var(--bone), #9ad9d2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__num small { font-size: 0.42em; margin-left: 4px; letter-spacing: 0; }
.stat__label { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Media section ---------- */
.media, .local, .contact { position: relative; overflow: hidden; isolation: isolate; }
.media { padding: clamp(100px, 12vw, 180px) 0; }
.media__bg, .local__bg, .contact__bg { position: absolute; left: 0; right: 0; top: -10%; height: 120%; z-index: -2; }
.media__bg { background: #050f12 url("../assets/video/media-poster.jpg") center / cover; }
.local__bg { background: #050f12 url("../assets/video/aerial-poster.jpg") center / cover; }
.contact__bg { top: 0; height: 100%; background: #050f12 url("../assets/video/embers-poster.jpg") center / cover; }
.media__bg video, .local__bg video, .contact__bg video { width: 100%; height: 100%; object-fit: cover; }
.media__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,19,23,.92) 0%, rgba(6,19,23,.7) 50%, rgba(6,19,23,.5) 100%), linear-gradient(0deg, var(--ink), transparent 25%), linear-gradient(180deg, var(--ink), transparent 25%); }
.media__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.media__copy > p { color: rgba(234,241,240,.82); max-width: 54ch; }
.facts { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.facts b { white-space: nowrap; font-size: 1.4rem; font-stretch: 115%; color: var(--teal-bright); }
.facts span { color: var(--muted); }
.media__form { padding: clamp(22px, 2.4vw, 32px); }

/* ---------- Law ---------- */
.law { padding: clamp(80px, 10vw, 150px) 0; }
.law__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.law__visual { position: relative; }
.law__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; border: 1px solid var(--line); }
.law__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); }
.law__badge { position: absolute; right: -18px; bottom: 32px; padding: 18px 22px; color: var(--muted); font-size: 0.72rem; }
.law__badge b { display: block; font-family: var(--display); font-size: 2rem; letter-spacing: -0.02em; color: var(--ember-soft); text-transform: none; font-stretch: 115%; }
.law__copy > p { color: rgba(234,241,240,.82); }
.checks { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(63,217,203,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.5 2.5L9 1' fill='none' stroke='%233fd9cb' stroke-width='1.6'/%3E%3C/svg%3E") center no-repeat; border: 1px solid rgba(63,217,203,.35); }
.law__ctas { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }

/* ---------- Local ---------- */
.local { padding: clamp(110px, 13vw, 190px) 0; }
.local__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(6,19,23,.55) 30%, rgba(6,19,23,.55) 70%, var(--ink) 100%); }
.local__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.local__head p { color: rgba(234,241,240,.85); max-width: 58ch; }
.local__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 30px 28px; }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: rgba(63,217,203,.12); border: 1px solid rgba(63,217,203,.3); margin-bottom: 22px; }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal-bright); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Band ---------- */
.band { padding: clamp(60px, 8vw, 110px) 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 56px); background: linear-gradient(120deg, rgba(1, 121, 122, 0.5), rgba(10, 29, 35, 0.6) 55%, rgba(255, 138, 61, 0.22)); }
.band .eyebrow { margin-bottom: 12px; }
.band__title { font-size: clamp(1.6rem, 3vw, 2.6rem); max-width: 22ch; }
.band__ctas { display: flex; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }

/* ---------- Insights ---------- */
.insights { padding: clamp(60px, 8vw, 110px) 0 clamp(80px, 10vw, 140px); }
.insights__head { margin-bottom: clamp(28px, 4vw, 52px); }
.insights__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform 0.5s var(--ease); }
.post:hover { transform: translateY(-6px); }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.06); }
.post__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__body .mono { color: var(--ember-soft); }
.post h3 { font-size: 1.35rem; }
.post p { color: var(--muted); margin: 0; flex: 1; font-size: 0.97rem; }

/* ---------- Contact ---------- */
.contact { padding: clamp(100px, 12vw, 170px) 0; }
.contact__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,19,23,.92) 0%, rgba(6,19,23,.66) 50%, rgba(6,19,23,.42) 100%), linear-gradient(180deg, var(--ink), transparent 30%); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact__copy > p { color: rgba(234,241,240,.85); max-width: 44ch; }
.contact__list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; }
.contact__list li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); align-items: baseline; }
.contact__list .mono { color: var(--muted); }
.contact__list a { text-decoration: none; font-size: 1.1rem; font-weight: 500; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--teal-bright); }
.contact__form { padding: clamp(22px, 3vw, 40px); }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: 72px 0 32px; background: #040e11; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo { display: inline-block; background: rgba(255,255,255,.95); border-radius: 12px; padding: 8px 14px; margin-bottom: 18px; }
.footer__logo img { height: 48px; width: auto; }
.footer__brand p { color: var(--muted); max-width: 34ch; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 { color: var(--teal-bright); margin-bottom: 8px; font-weight: 500; font-size: 0.72rem; }
.footer__col a { color: rgba(234,241,240,.8); text-decoration: none; font-size: 0.95rem; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--bone); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.68rem; }
.footer__base a { text-decoration: none; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta { display: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 8, 10, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal__panel { position: relative; width: min(580px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(24px, 4vw, 40px); background: linear-gradient(160deg, rgba(16, 44, 51, 0.92), rgba(6, 19, 23, 0.95)); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(6,19,23,.6); cursor: pointer; font-size: 0.95rem; }
.modal__close:hover { border-color: var(--bone); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 72px; }
  .hero__copy { max-width: 720px; }
  .hero__form { max-width: 560px; }
  .scroll-cue { display: none; }
  .media__inner, .law__grid, .contact__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local__cards, .insights__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .law__badge { right: 16px; }
  .band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 899px) {
  .services__head { grid-template-columns: 1fr; }
  .services__rail { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .services__rail::-webkit-scrollbar { display: none; }
  .svc { scroll-snap-align: start; width: min(80vw, 340px); }
  .svc__img { aspect-ratio: 4 / 3.2; }
  .services__track { padding-right: var(--gutter); }
  .services__hint { content: "Swipe"; }
  .process__grid { grid-template-columns: 1fr; }
  .process__visual { display: none; }
  .step { min-height: 0; opacity: 1; padding: 36px 0; }
  .step__img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 22px; }
}
@media (max-width: 720px) {
  :root { --nav-h: 66px; }
  body { font-size: 1rem; }
  .nav__phone { display: none; }
  .nav__actions .btn--sm { display: none; }
  .nav__logo img { height: 34px; }
  .hero__inner { padding-top: calc(var(--nav-h) + 28px); gap: 36px; }
  .hero__shade { background: linear-gradient(180deg, rgba(6,19,23,.75) 0%, rgba(6,19,23,.55) 40%, var(--ink) 100%); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: 1fr; }
  .stats__grid { gap: 12px; }
  .stat { padding: 22px 18px; }
  .local__cards, .insights__grid, .footer__grid { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
  .law__badge { right: 12px; bottom: 12px; padding: 12px 16px; }
  .law__img { aspect-ratio: 4 / 3.4; }
  .band__ctas, .band__ctas .btn { width: 100%; }
  .contact__list li { grid-template-columns: 64px 1fr; }
  .sticky-cta { display: grid; grid-template-columns: auto 1fr; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; padding: 8px; border-radius: 999px; background: rgba(6,19,23,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); transform: translateY(150%); transition: transform 0.5s var(--ease); }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { min-height: 46px; }
  .footer { padding-bottom: 110px; }
  .story__line--big { font-size: clamp(2.2rem, 11vw, 3.4rem); }
}
@media (max-width: 340px) {
  .stats__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fx-particles { display: none; }
}

/* Services pin fits one viewport on desktop */
@media (min-width: 900px) {
  .services { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 0; }
  .services__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 16px) 0 28px; }
  .services__head { margin-bottom: clamp(20px, 3vh, 40px); }
  .services__head .h2 { font-size: clamp(2rem, min(4.2vw, 6.4vh), 3.8rem); }
  .svc__img { aspect-ratio: auto; height: clamp(170px, 33vh, 380px); }
  .svc h3 { font-size: clamp(1.2rem, 2.4vh, 1.45rem); }
  .svc p { font-size: clamp(0.88rem, 1.7vh, 0.97rem); }
  .services__foot { margin-top: clamp(16px, 3vh, 36px); }
}
@media (max-width: 720px) {
  .stat__num { font-size: clamp(2.3rem, 11vw, 3rem); }
  .stat__label { font-size: 0.85rem; }
}
