/* ============================================================
   Loud Level Productions — INDUSTRIAL BRUTALIST system
   Mode: Tactical Telemetry (dark) — declassified live-events ops
   Substrate: deactivated-CRT black · white phosphor · hazard red
   Type: Archivo only — 900 for macro headings, 500 tracked caps for labels, 400 body
   Geometry: 90° corners only · visible grid lines · no gradients
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --fg: #eaeaea;
  --muted: #8a8a8a;
  --muted-2: #5f5f5f;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  /* Accent = Loud Level logo blue (level-meter gradient: cyan -> deep blue).
     Token kept named --red for brevity; value is the brand blue, not red. */
  --red: #36a6e8;          /* logo blue — primary accent */
  --red-bright: #5ec8f8;   /* logo cyan — hover/active */
  --red-ink: #04121f;      /* near-black ink for text on blue fills */
  --green: #e6c200;        /* logo yellow dot — single status element only */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif; /* the one typeface — weights do the work */
  --enter: cubic-bezier(0.22, 1, 0.36, 1);  /* decisive entrance */
  --wipe: cubic-bezier(0.77, 0, 0.175, 1);   /* mechanical clip wipe */
  --z-nav: 40;
  --z-menu: 45;
  --z-wa: 30;
  --z-overlay: 60;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip (not hidden) so it doesn't break position:sticky on the scroll story */
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }

a { color: var(--fg); text-decoration: none; }

::selection { background: var(--red); color: var(--red-ink); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---------- layout primitives ---------- */

.wrap { width: 100%; margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2.5rem); }

.rule { height: 0; border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule-red { border-top: 2px solid var(--red); }

/* hazard warning stripe */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0,
    var(--red) 14px,
    var(--bg) 14px,
    var(--bg) 28px
  );
}

/* ---------- type ---------- */

.macro {
  font-family: var(--font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.88;
  margin: 0;
}

h1.macro { font-size: clamp(2.6rem, 11.5vw, 11rem); }
h2.macro { font-size: clamp(2.4rem, 7vw, 5.5rem); }
/* sentence-length headline: smaller scale, looser leading, capped measure */
h1.macro.macro-long { font-size: clamp(2.1rem, 6.6vw, 6.4rem); line-height: 0.92; max-width: 15ch; }
h3 {
  font-family: var(--font);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  margin: 0 0 0.6rem;
}

.mono {
  font-family: var(--font); font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag {
  font-family: var(--font); font-weight: 500;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.tag-red { color: var(--red); }

.eyebrow {
  font-family: var(--font); font-weight: 500;
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
}
.eyebrow::before { content: "["; color: var(--muted); }
.eyebrow::after { content: "]"; color: var(--muted); }

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  max-width: 56ch;
}
.lede strong { color: var(--fg); font-weight: 600; }

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 1.05rem;
  font-family: var(--font); font-weight: 500;
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  transition: color 0.15s linear, background-color 0.15s linear;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--fg);
  background: var(--bg-2);
}
.nav-links a[aria-current="page"] { color: var(--red); }

/* services dropdown */
.nav-links { align-self: stretch; }
.has-sub { position: relative; align-self: stretch; display: flex; align-items: center; }
.has-sub > a::after { content: " +"; color: var(--red); }
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s linear, transform 0.2s var(--enter), visibility 0s linear 0.2s;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.sub-menu a { border-left: 0; border-top: 1px solid var(--line); padding: 0.8rem 1.05rem; }

.nav-cta {
  font-family: var(--font);
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--red-ink);
  background: var(--red);
  padding: 0.55rem 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  transition: background-color 0.15s linear;
}
.nav-cta:hover { background: var(--red-bright); color: var(--red-ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  cursor: pointer;
  position: relative;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.3s linear, opacity 0.2s linear;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 64px 0 0;
  z-index: var(--z-menu);
  background: var(--bg);
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.nav-open .mobile-menu { display: flex; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(1.6rem, 8vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--fg);
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--red); background: var(--bg-2); }
.mobile-menu .menu-contact a {
  font-family: var(--font); font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s linear, color 0.15s linear, border-color 0.15s linear, transform 0.05s linear;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; }

.btn-red { background: var(--red); color: var(--red-ink); }
.btn-red:hover { background: var(--red-bright); color: var(--red-ink); }

.btn-line {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn-line:hover { border-color: var(--fg); background: var(--bg-2); }

/* ---------- level meter (signature, retuned as VU telemetry) ---------- */

.meter {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
}
.meter i {
  width: 8px;
  background: var(--fg);
  animation: level 1.15s steps(8, end) infinite alternate;
  transform-origin: bottom;
  height: 100%;
}
.meter i:nth-child(1) { animation-delay: -0.10s; animation-duration: 0.9s; }
.meter i:nth-child(2) { animation-delay: -0.45s; animation-duration: 1.25s; }
.meter i:nth-child(3) { animation-delay: -0.80s; animation-duration: 1.0s; }
.meter i:nth-child(4) { animation-delay: -0.25s; animation-duration: 1.4s; }
.meter i:nth-child(5) { animation-delay: -0.60s; animation-duration: 0.85s; }
.meter i:nth-child(6) { animation-delay: -1.00s; animation-duration: 1.2s; }
.meter i:nth-child(7) { animation-delay: -0.35s; animation-duration: 1.05s; }
/* peak bars run hot */
.meter i:nth-child(2n) { background: var(--red); }

@keyframes level {
  from { transform: scaleY(0.16); }
  to   { transform: scaleY(1); }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 64px;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-media img { filter: grayscale(1) contrast(1.15) brightness(0.62); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 10, 10, 0.55);
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); /* block only — keep .wrap's side gutter */
}
.hero h1.macro { margin-bottom: 1.6rem; }
.hero .lede { margin: 0 0 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0; }
.hero-ctas .btn { border: 1px solid var(--line-2); }
.hero-ctas .btn-red { border-color: var(--red); }
.hero-ctas .btn + .btn { border-left: 0; }

/* hero telemetry strip pinned to bottom of hero */
.hero-tele {
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0;
  background: rgba(10, 10, 10, 0.82);
}
.hero-tele > * {
  padding: 0.85rem clamp(1rem, 2vw, 1.6rem);
  font-family: var(--font); font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  white-space: nowrap;
}
.hero-tele > *:first-child { border-left: 0; }
.hero-tele .meter-mini { display: flex; align-items: center; gap: 0.7rem; }
.hero-tele .meter { height: 22px; gap: 3px; }
.hero-tele .meter i { width: 5px; }
.hero-tele .scroll { color: var(--fg); justify-self: end; }

/* ---------- marquee / data ticker ---------- */

.ticker {
  overflow: hidden;
  padding: 0;
  background: var(--red);
  border-bottom: 1px solid var(--line);
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker span {
  font-family: var(--font);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-ink);
  white-space: nowrap;
  padding: 0.7rem 1.6rem;
  display: inline-flex;
  align-items: center;
}
.ticker span::after { content: "///"; margin-left: 1.6rem; opacity: 0.55; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- section scaffold ---------- */

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .lede { align-self: end; }

.idx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font); font-weight: 500;
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 1rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line);
}
.idx-row .red { color: var(--red); }
.idx-row a { color: var(--muted); transition: color 0.15s linear; }
.idx-row a:hover { color: var(--fg); }

/* ---------- services grid (blueprint) ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  grid-column: span 3;
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background-color 0.15s linear;
}
.svc:hover { background: var(--bg-2); }
.svc-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.svc-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.8);
  transition: filter 0.2s linear, transform 0.4s linear;
}
.svc:hover .svc-media img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.03); }
.svc-body { padding: clamp(1.2rem, 2vw, 1.8rem); flex: 1; display: flex; flex-direction: column; }
.svc-ch {
  font-family: var(--font); font-weight: 500;
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
}
.svc p { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.4rem; flex: 1; }
/* the label is a <p> too — stop it sharing the description's flex-grow (misaligned card titles) */
.svc .svc-ch { flex: none; margin-bottom: 0.8rem; color: var(--red); font-size: 0.7rem; }
.svc-link {
  font-family: var(--font); font-weight: 500;
  font-size: 0.81rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.svc-link::after { content: ">>>"; color: var(--red); transition: transform 0.2s linear; }
.svc:hover .svc-link::after { transform: translateX(5px); }
.svc-cover { position: absolute; inset: 0; z-index: 2; }
.svc-wide { grid-column: span 2; }

/* ---------- split feature / spec sheet ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.split-media { background: var(--bg); }
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.82);
}
.split-body { background: var(--bg); padding: clamp(1.8rem, 4vw, 3rem); }

/* introduction video: load-on-view facade (<video> injected by main.js) */
.split-video { background: var(--bg); display: flex; flex-direction: column; justify-content: center; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-block: 1px solid var(--line); }
.video-frame img, .video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame video { object-fit: cover; }
.video-frame img { object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.6); transition: filter 0.2s linear; }
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--red-ink);
}
.video-play svg {
  width: clamp(64px, 8vw, 92px);
  height: clamp(64px, 8vw, 92px);
  padding: clamp(18px, 2.2vw, 26px);
  box-sizing: border-box;
  background: var(--red);
  transition: background-color 0.15s linear, transform 0.2s var(--enter);
}
.video-play:hover svg, .video-play:focus-visible svg { background: var(--red-bright); transform: scale(1.06); }
.video-frame:hover img { filter: grayscale(0.4) contrast(1.05) brightness(0.75); }

.spec { margin: 1.8rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.spec div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.spec div .n {
  font-family: var(--font); font-weight: 500;
  font-size: 0.77rem;
  color: var(--red);
  letter-spacing: 0.06em;
}
.spec strong { color: var(--fg); font-weight: 600; }

/* ---------- stats strip (telemetry readout) ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.strip div { padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1rem, 2vw, 1.6rem); background: var(--bg); }
.strip b {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  display: block;
  margin-bottom: 0.7rem;
}
.strip .red { color: var(--red); }
.strip span {
  color: var(--muted);
  font-family: var(--font); font-weight: 500;
  font-size: 0.79rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ---------- contact / quote ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact-info { background: var(--bg); padding: clamp(1.8rem, 4vw, 3rem); }
.contact-rows { display: grid; gap: 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.contact-rows .row { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-rows .row b {
  font-family: var(--font);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.45rem;
}
.contact-rows .row a, .contact-rows .row span { font-size: 1.05rem; font-weight: 600; color: var(--fg); }
.contact-rows .row a:hover { color: var(--red); }

.contact-form { background: var(--bg-2); padding: clamp(1.8rem, 4vw, 3rem); }
.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-family: var(--font); font-weight: 500;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font); font-weight: 500;
  font-size: 1.0rem; /* >=16px stops iOS zoom on focus */
  letter-spacing: 0.02em;
  transition: border-color 0.15s linear;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 0.4rem; }

/* ---------- CTA band ---------- */

.cta-band {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.cta-band .meter { justify-content: center; margin: 0 auto 2rem; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .hero-ctas .btn { border: 1px solid var(--line-2); }
.cta-band .hero-ctas .btn-red { border-color: var(--red); }
.cta-band .hero-ctas .btn + .btn { border-left: 0; }

/* ---------- footer ---------- */

.site-footer { border-top: 2px solid var(--red); background: var(--bg); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: 3rem;
}
.footer-grid .brand img { height: 46px; }
.footer-grid p { color: var(--muted); font-size: 0.92rem; max-width: 36ch; margin-top: 1.2rem; }
.footer-grid h4 {
  font-family: var(--font);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.2rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-grid a { color: var(--muted); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--red); }
.captcha { min-height: 78px; margin: 0.4rem 0 1.2rem; }
.captcha .g-recaptcha { transform-origin: 0 0; }
@media (max-width: 400px) { .captcha .g-recaptcha { transform: scale(0.86); } }
@media (max-width: 345px) { .captcha .g-recaptcha { transform: scale(0.74); } }
.socials { display: flex; gap: 0.6rem; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line-2); color: var(--fg);
  transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: var(--red); border-color: var(--red); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted-2);
  font-family: var(--font); font-weight: 500;
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- map embed ---------- */

.map-card { border: 1px solid var(--line); background: var(--bg); }
.map-card iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.92);
}
@media (max-width: 700px) { .map-card iframe { height: 320px; } }

/* ---------- WhatsApp button ---------- */

.wa-btn {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: var(--z-wa);
  width: 48px;
  height: 48px;
  background: #1faf53;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-content: center;
  color: #fff;
  transition: transform 0.1s linear, background-color 0.15s linear;
}
.wa-btn:hover { background: #25c35e; color: #fff; }
.wa-btn:active { transform: translateY(1px); }
.wa-btn svg { width: 24px; height: 24px; }

/* ---------- inner page hero ---------- */

.page-hero {
  position: relative;
  min-height: 58svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(64px + clamp(3rem, 8vw, 6rem)) 0 clamp(2rem, 4vw, 3.5rem);
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .hero-media, .page-hero .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.page-hero .hero-media img { filter: grayscale(1) contrast(1.15) brightness(0.55); object-position: center 35%; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 10, 10, 0.6); }
.page-hero h1.macro { margin-bottom: 1.2rem; }
/* heroes with no background image */
.page-hero.no-media { min-height: auto; border-bottom: 1px solid var(--line); }
.page-hero.no-media::after { display: none; }

/* ---------- prose columns (inner pages) ---------- */

.prose { max-width: 68ch; color: var(--muted); }
.prose strong { color: var(--fg); }
.prose p { margin: 0 0 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

.prose-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-items: stretch;
}
.prose-cols > * { background: var(--bg); padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.prose-cols .aside { background: var(--bg-2); }

.aside-label {
  font-family: var(--font); font-weight: 500;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.2rem;
}
.aside-label::before { content: "[ "; color: var(--muted); }
.aside-label::after { content: " ]"; color: var(--muted); }
.aside-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.aside-list li {
  font-family: var(--font); font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.7rem;
}
.aside-list li::before { content: "+"; color: var(--red); flex-shrink: 0; }

/* ---------- recent work gallery (shown in colour — the work is the colour) ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.shot { margin: 0; background: var(--bg); display: flex; flex-direction: column; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.shot figcaption {
  padding: 0.8rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- service pages: process steps / FAQ / related ---------- */

.steps, .faq, .related {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps { grid-template-columns: repeat(4, 1fr); }
.faq { grid-template-columns: 1fr 1fr; }
.related { grid-template-columns: repeat(3, 1fr); }
.steps li, .faq-item, .related-item { background: var(--bg); padding: clamp(1.4rem, 2.6vw, 2.2rem); }
.steps .n {
  display: block;
  font-weight: 900;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--red);
  margin-bottom: 1.4rem;
  font-variant-numeric: tabular-nums;
}
.steps h3, .faq-item h3, .related-item h3 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.1; margin-bottom: 0.8rem; }
.faq-item h3 { text-transform: none; letter-spacing: -0.01em; font-weight: 700; line-height: 1.25; color: var(--fg); }
.steps p, .faq-item p, .related-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.faq-item p { max-width: 60ch; }
.related-item { display: flex; flex-direction: column; color: var(--fg); transition: background-color 0.15s linear; }
.related-item p { flex: 1; margin-bottom: 1.4rem; }
.related-item:hover { background: var(--bg-2); color: var(--fg); }
.related-item:hover .svc-link::after { transform: translateX(5px); }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }

/* ---------- reveal (scroll-triggered) ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--enter), transform 0.55s var(--enter);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* staggered cascade across the service grid (40ms steps, <300ms total) */
html.js .services-grid .svc:nth-child(1) { transition-delay: 0.00s; }
html.js .services-grid .svc:nth-child(2) { transition-delay: 0.05s; }
html.js .services-grid .svc:nth-child(3) { transition-delay: 0.10s; }
html.js .services-grid .svc:nth-child(4) { transition-delay: 0.15s; }
html.js .services-grid .svc:nth-child(5) { transition-delay: 0.20s; }
html.js .services-grid .svc:nth-child(6) { transition-delay: 0.25s; }
html.js .services-grid .svc:nth-child(7) { transition-delay: 0.30s; }

/* ---------- hero entrance (on load) ---------- */

@keyframes wipe-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise-in-sm { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* hero text starts hidden, then settles in once the boot loader lifts
   (html.booted is set by JS after the preloader; falls back to visible with no JS) */
html.js .hero .eyebrow,
html.js .hero .lede,
html.js .hero .hero-ctas,
html.js .hero-tele,
html.js .page-hero .eyebrow,
html.js .page-hero .lede { opacity: 0; }

html.booted .hero .eyebrow   { animation: rise-in-sm 0.5s var(--enter) 0.15s forwards; }
html.booted .hero .lede      { animation: rise-in 0.6s var(--enter) 0.45s forwards; }
html.booted .hero .hero-ctas { animation: rise-in 0.6s var(--enter) 0.55s forwards; }
html.booted .hero-tele       { animation: rise-in 0.6s var(--enter) 0.70s forwards; }
html.booted .page-hero .eyebrow { animation: rise-in-sm 0.5s var(--enter) 0.10s forwards; }
html.booted .page-hero .lede    { animation: rise-in 0.6s var(--enter) 0.30s forwards; }

/* ---------- word-by-word heading reveal (JS splits .macro headings) ---------- */
.reveal-text .word { display: inline-block; overflow: hidden; vertical-align: top; }
.reveal-text .word > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 0.7s var(--enter);
  will-change: transform;
}
.reveal-text.in .word > span { transform: none; }

/* ---------- smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- boot loader ---------- */
#boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: transform 0.7s var(--wipe);
}
#boot.done { transform: translateY(-100%); }
#boot .boot-inner { width: min(660px, 86vw); }
#boot .boot-top, #boot .boot-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font); font-weight: 500;
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
#boot .boot-top { border-bottom: 1px solid var(--line); padding-bottom: 0.9rem; }
#boot .boot-pct {
  font-variant-numeric: tabular-nums;
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(4rem, 16vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 1.1rem 0 0.9rem;
}
#boot .boot-pct .boot-unit { color: var(--red); }
#boot .boot-bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
#boot .boot-bar i {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}
#boot .boot-label { margin-top: 0.9rem; }
html.booting { overflow: hidden; }

/* ---------- hover motion (real pointers only) ---------- */

@media (hover: hover) and (pointer: fine) {
  /* accent bar draws across the top of a service card */
  .svc::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--enter);
    z-index: 3;
    pointer-events: none;
  }
  .svc:hover::before { transform: scaleX(1); }

  /* a tactical light bar sweeps down the image on hover */
  .svc-media::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(54, 166, 232, 0.35), transparent);
    transform: translateY(-160%);
    transition: transform 0.55s var(--enter);
    pointer-events: none;
    z-index: 1;
  }
  .svc:hover .svc-media::after { transform: translateY(360%); }

  /* button icons nudge forward */
  .btn svg, .nav-cta svg { transition: transform 0.2s var(--enter); }
  .btn:hover svg, .nav-cta:hover svg { transform: translateX(3px); }
}

/* ---------- image motion ---------- */

/* slow cinematic drift on the big background images (hero + service pages) */
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
.hero-media img,
.page-hero .hero-media img {
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* content images wipe up into view as their card/section reveals */
html.js .svc .svc-media img,
html.js .split-media img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--wipe), filter 0.2s linear, transform 0.4s linear;
}
html.js .svc.in .svc-media img,
html.js .split.in .split-media img {
  clip-path: inset(0 0 0 0);
}
/* the image wipe trails the card fade slightly for a layered feel */
html.js .services-grid .svc:nth-child(1) .svc-media img { transition-delay: 0.10s; }
html.js .services-grid .svc:nth-child(2) .svc-media img { transition-delay: 0.15s; }
html.js .services-grid .svc:nth-child(3) .svc-media img { transition-delay: 0.20s; }
html.js .services-grid .svc:nth-child(4) .svc-media img { transition-delay: 0.25s; }
html.js .services-grid .svc:nth-child(5) .svc-media img { transition-delay: 0.30s; }
html.js .services-grid .svc:nth-child(6) .svc-media img { transition-delay: 0.35s; }
html.js .services-grid .svc:nth-child(7) .svc-media img { transition-delay: 0.40s; }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .nav-links, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc, .svc-wide { grid-column: span 1; }
  .split, .contact-grid, .prose-cols, .faq, .related { grid-template-columns: 1fr; }
  .steps, .gallery { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-tele { grid-template-columns: 1fr 1fr; }
  .hero-tele .meter-mini { display: none; }
}

@media (max-width: 620px) {
  .services-grid, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: space-between; }
  .hero-ctas .btn + .btn { border-left: 1px solid var(--line-2); border-top: 0; }
  .hero-tele { grid-template-columns: 1fr; }
  .hero-tele > * { border-left: 0; border-top: 1px solid var(--line); }
  .footer-bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .meter i, .ticker-track { animation: none; }
  .meter i { transform: scaleY(0.6); }
  .meter i:nth-child(2n) { transform: scaleY(0.9); }
  .meter i:nth-child(3n) { transform: scaleY(0.4); }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  /* neutralise load + hover motion: show everything in its final state */
  html.js .hero .eyebrow, html.js .hero h1.macro, html.js .hero .lede,
  html.js .hero .hero-ctas, html.js .hero-tele,
  html.js .page-hero h1.macro, html.js .page-hero .eyebrow, html.js .page-hero .lede {
    animation: none !important;
    opacity: 1;
    clip-path: none;
    transform: none;
  }
  .svc::before, .svc-media::after { display: none; }
  /* freeze image motion: no drift, images fully shown */
  .hero-media img, .page-hero .hero-media img { animation: none; transform: none; }
  html.js .svc .svc-media img, html.js .split-media img { clip-path: none; }
  /* no boot loader, no word masks, no smooth scroll under reduced motion */
  #boot { display: none !important; }
  .reveal-text .word > span { transform: none !important; }
  * { transition-duration: 0.01ms !important; }
}
