/* TechTuners: "Philly, wired." */

@font-face {
  font-family: "Miranda Sans";
  src: url("../fonts/miranda-sans-latin-wght.woff2") format("woff2-variations"),
       url("../fonts/miranda-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --font: "Miranda Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* fixed brand */
  --orange: #f27008;
  --orange-soft: #f39a2b;
  --blue: #2a7fd4;
  --night: #070d18;
  --on-orange: #0b1220;

  /* theme: dark (default) */
  --bg: #08101c;
  --bg-2: #0b1524;
  --surface: #0f1b2e;
  --surface-2: #13233b;
  --line: rgb(150 172 205 / 0.16);
  --line-strong: rgb(150 172 205 / 0.3);
  --text: #eef2f7;
  --muted: #a3b3c8;
  --trace: #3d8fe0;
  --accent-text: #f6a24a;
  --shadow: 0 30px 80px -30px rgb(0 0 0 / 0.6);
  --focus: #f39a2b;
  --error: #ff8a80;
  --logo-shadow: drop-shadow(0 40px 50px rgb(0 0 0 / 0.45));

  --radius: 14px;
  --pill: 999px;
  --gutter: clamp(16px, 4.17vw, 120px);
  --maxw: 1680px;
  --section: clamp(72px, 9vw, 180px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: clamp(64px, 6.6vw, 104px);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-2: #e9eef5;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --line: rgb(13 27 46 / 0.12);
  --line-strong: rgb(13 27 46 / 0.24);
  --text: #0d1b2e;
  --muted: #475a73;
  --trace: #2a7fd4;
  --accent-text: #b4530a;
  --shadow: 0 30px 70px -30px rgb(20 24 30 / 0.22);
  --focus: #b4530a;
  --error: #b3261e;
  --logo-shadow: drop-shadow(0 34px 40px rgb(20 24 30 / 0.22));
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6fa;
    --bg-2: #e9eef5;
    --surface: #ffffff;
    --surface-2: #eef2f8;
    --line: rgb(13 27 46 / 0.12);
    --line-strong: rgb(13 27 46 / 0.24);
    --text: #0d1b2e;
    --muted: #475a73;
    --trace: #2a7fd4;
    --accent-text: #b4530a;
    --shadow: 0 30px 70px -30px rgb(20 24 30 / 0.22);
    --focus: #b4530a;
    --error: #b3261e;
    --logo-shadow: drop-shadow(0 34px 40px rgb(20 24 30 / 0.22));
    color-scheme: light;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.55vw + 0.82rem, 1.3rem);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--on-orange); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--on-orange); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  --h: clamp(48px, 3.42vw, 64px);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: var(--h); padding: 0 clamp(20px, 1.8vw, 34px);
  border-radius: var(--pill); border: 1.5px solid transparent;
  font-weight: 600; font-size: clamp(0.95rem, 0.5vw + 0.75rem, 1.2rem); line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary { background: var(--orange); color: var(--on-orange); box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.5); }
@media (hover: hover) { .btn--primary:hover { background: #ff8424; } }
.btn--ghost { border-color: rgb(255 255 255 / 0.75); color: #fff; background: rgb(8 14 26 / 0.25); }
.btn--ghost:hover { background: rgb(255 255 255 / 0.12); border-color: #fff; }
.btn .icon { width: 1.1em; height: 1.1em; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--accent-text);
  text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow .icon { transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .link-arrow:hover .icon { transform: translateX(3px); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background-color 250ms ease, box-shadow 250ms ease, backdrop-filter 250ms ease;
}
.site-header.is-solid,
.site-header--solid {
  background: rgb(7 13 24 / 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08);
}
.site-header__inner {
  height: 100%; display: flex; align-items: center; gap: clamp(16px, 2vw, 40px);
  padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: clamp(10px, 1.05vw, 20px); text-decoration: none; color: inherit; }
.brand__mark { width: clamp(34px, 3.42vw, 66px); height: auto; aspect-ratio: 584 / 581; }
.brand__name { font-size: clamp(1.25rem, 2vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.nav { margin-left: clamp(24px, 9vw, 220px); }
.nav ul { display: flex; gap: clamp(20px, 2.9vw, 64px); }
.nav a {
  color: inherit; text-decoration: none; font-size: clamp(0.95rem, 1.25vw, 1.55rem); font-weight: 500;
  padding-block: 6px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: clamp(8px, 1vw, 18px); }
.header-call {
  min-height: clamp(42px, 3.27vw, 62px); padding: 0 clamp(18px, 1.6vw, 30px);
  background: #fff; color: #0d1b2e; border-radius: var(--pill); font-weight: 600;
  font-size: clamp(0.92rem, 1.12vw, 1.4rem); display: inline-flex; align-items: center; gap: 0.5em; text-decoration: none;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.header-call:hover { background: #e6edf7; }
.header-call:active { transform: scale(0.98); }
.icon-btn {
  width: clamp(42px, 3.27vw, 56px); height: clamp(42px, 3.27vw, 56px); border-radius: 50%;
  display: inline-grid; place-items: center; border: 1.5px solid rgb(255 255 255 / 0.28);
  background: rgb(8 14 26 / 0.25); color: #fff; cursor: pointer; transition: border-color 200ms ease, background-color 200ms ease;
}
.icon-btn:hover { border-color: #fff; }
.icon-btn .icon { width: 1.25rem; height: 1.25rem; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: rgb(7 13 24 / 0.97); color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 8px var(--gutter) 28px; border-bottom: 1px solid rgb(255 255 255 / 0.1);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 200ms ease, transform 240ms var(--ease-out), visibility 0s linear 240ms;
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms ease, transform 240ms var(--ease-out); }
.mobile-nav a { display: block; padding: 14px 0; font-size: 1.35rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / 0.08); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100svh; min-height: 600px; max-height: 1600px;
  color: #fff; background: var(--night);
  container-type: size;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__stage {
  position: absolute; left: 50%; top: 50%;
  width: max(100cqw, calc(100cqh * 16 / 9));
  aspect-ratio: 16 / 9;
  translate: -50% -50%;
}
.hero__stage picture, .hero__stage img { width: 100%; height: 100%; }
.hero__stage img { object-fit: cover; }
.hero__drift { position: absolute; inset: 0; transform-origin: 60% 55%; }
.hero__video {
  /* light-only layer: black is transparent under the blend, so the still city underneath never moves */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: screen; background: transparent;
  filter: contrast(1.3); /* crushes faint compression noise to true black so it adds nothing */
  opacity: 0; transition: opacity 900ms ease;
}
.hero__video.is-playing { opacity: 1; }
.river-label {
  position: absolute; translate: -50% -50%;
  font-size: clamp(10px, 0.82vw, 18px); letter-spacing: 0.35em; text-transform: uppercase; line-height: 1.5;
  color: #b9dcff; text-shadow: 0 1px 2px rgb(0 0 0 / 0.8); text-align: center; white-space: nowrap; font-weight: 600;
}
.river-label--west { left: 13%; top: 64%; }
.river-label--east { left: 95%; top: 47%; }
.hero__labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
@media (max-aspect-ratio: 17/10) { .river-label--east { display: none; } }
@media (max-aspect-ratio: 3/2) { .river-label { display: none; } }

.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(5 9 17 / 0.72) 0%, rgb(5 9 17 / 0) 22%),
    linear-gradient(97deg, rgb(5 9 17 / 0.82) 0%, rgb(5 9 17 / 0.55) 30%, rgb(5 9 17 / 0) 56%),
    linear-gradient(0deg, rgb(5 9 17 / 0.6) 0%, rgb(5 9 17 / 0) 26%);
}
.hero__content {
  position: absolute; left: var(--gutter); top: 15.7cqh;
  width: min(62cqw, 1200px);
}
.hero h1 {
  font-size: clamp(2.6rem, min(4.98cqw, 8.9cqh), 9rem);
  line-height: 1.02; letter-spacing: -0.025em; font-weight: 700;
}
.hero__sub {
  margin-top: clamp(14px, 1.6cqh, 28px);
  font-size: clamp(1.02rem, min(1.49cqw, 2.66cqh), 2.2rem); font-weight: 500; line-height: 1.4;
  color: rgb(240 244 250 / 0.94);
}
.hero__ctas { margin-top: clamp(20px, 2.8cqh, 44px); display: flex; flex-wrap: wrap; gap: clamp(10px, 0.6cqw, 16px); }
.hero__ctas .btn { --h: clamp(48px, min(3.42cqw, 6.1cqh), 76px); font-size: clamp(0.95rem, min(1.12cqw, 2cqh), 1.5rem); padding-inline: clamp(20px, 1.9cqw, 40px); }
.hero__counties {
  position: absolute; left: var(--gutter); bottom: 5.1cqh; right: var(--gutter);
  display: flex; flex-wrap: wrap; gap: clamp(8px, 0.6cqw, 14px);
}
.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  min-height: clamp(36px, min(3.27cqw, 5.85cqh), 58px); padding: 0 clamp(14px, 1.2cqw, 24px);
  border-radius: var(--pill); border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(10 18 32 / 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: clamp(0.88rem, min(1.04cqw, 1.86cqh), 1.35rem); font-weight: 500; color: #fff;
}
.chip .icon { color: #4ea3f0; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--bg-2); }
.h2 { font-size: clamp(2.1rem, 3.6vw, 5.4rem); letter-spacing: -0.03em; }
.lead { font-size: clamp(1.08rem, 0.7vw + 0.85rem, 1.6rem); color: var(--muted); max-width: 58ch; line-height: 1.55; }
.section-head { display: grid; gap: clamp(14px, 1.4vw, 26px); max-width: 1100px; margin-bottom: clamp(40px, 5vw, 96px); }

/* Facts band */
.facts { padding-block: clamp(48px, 5vw, 96px); border-bottom: 1px solid var(--line); background: var(--bg); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.facts__grid::before {
  content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px;
  background: linear-gradient(90deg, var(--orange) 0 18%, var(--trace) 18% 100%); opacity: 0.55;
}
.fact { position: relative; padding-top: 44px; padding-right: clamp(16px, 2vw, 48px); }
.fact::before {
  content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--orange-soft); outline: 5px solid var(--bg);
}
.fact__big { font-size: clamp(2.2rem, 3.4vw, 5.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.fact__label { margin-top: 10px; color: var(--muted); font-size: clamp(0.98rem, 0.5vw + 0.8rem, 1.35rem); max-width: 26ch; }

/* Services with 3D logo */
.services { overflow: clip; }
.services__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 150px); align-items: start; }
.services__layout { position: relative; }
.services__visual { position: relative; align-self: center; z-index: 1; }
.logo3d {
  position: relative; perspective: 1200px; aspect-ratio: 4 / 5; width: 100%; max-width: 640px; margin-inline: auto;
}
.logo3d__halo {
  position: absolute; inset: 12% 8% 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(242 112 8 / 0.28), rgb(42 127 212 / 0.14) 55%, transparent 75%);
  filter: blur(20px);
}
.logo3d__obj {
  position: relative; width: 100%; height: 100%;
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transform-style: preserve-3d; transition: transform 500ms var(--ease-out);
}
.logo3d__obj img { width: 100%; height: 100%; object-fit: contain; filter: var(--logo-shadow); }
.logo3d__float { width: 100%; height: 100%; }
.services__visual figcaption { margin-top: 18px; text-align: center; color: var(--muted); font-size: 0.95rem; }

.svc-list { counter-reset: svc; }
.svc {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 1.6vw, 32px);
  padding-block: clamp(26px, 2.6vw, 48px); border-top: 1px solid var(--line);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__icon {
  position: relative; z-index: 1;
  width: clamp(48px, 3.6vw, 72px); height: clamp(48px, 3.6vw, 72px); border-radius: 50%;
  display: grid; place-items: center; color: var(--orange-soft);
  background: var(--bg); border: 2px solid rgb(243 154 43 / 0.55);
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 6px rgb(243 154 43 / 0.22);
}
.svc__icon .icon { width: 44%; height: 44%; }
.svc h3 { font-size: clamp(1.35rem, 1.6vw, 2.4rem); letter-spacing: -0.02em; }
.svc p { margin-top: 8px; color: var(--muted); max-width: 54ch; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.wire { fill: none; stroke: rgb(243 154 43 / 0.38); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.wire--draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
.wires.in .wire--draw { stroke-dashoffset: 0; }
.wire-pulse { fill: none; stroke: #ffc27a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 97; stroke-dashoffset: 100; opacity: 0; }
.wire-pad { fill: var(--bg); stroke: var(--orange-soft); stroke-width: 2; }
.wire-pad--src { fill: var(--orange-soft); }
:root[data-theme="light"] .wire { stroke: rgb(180 83 10 / 0.42); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .wire { stroke: rgb(180 83 10 / 0.42); } }
.services__more { margin-top: clamp(28px, 3vw, 56px); }

/* How it works */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.flow__line { position: absolute; left: 0; right: 0; top: 27px; height: 2px; overflow: hidden; }
.flow__line span {
  display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-soft) 40%, var(--trace));
  transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease-out);
}
.flow.in .flow__line span { transform: scaleX(1); }
.flow__step { position: relative; padding-right: clamp(16px, 2.4vw, 56px); padding-top: 80px; }
.flow__node {
  position: absolute; top: 0; left: 0; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); color: var(--orange-soft);
  outline: 8px solid var(--bg-2);
}
.flow__node .icon { width: 24px; height: 24px; }
.flow__step h3 { font-size: clamp(1.25rem, 1.45vw, 2.1rem); }
.flow__step p { margin-top: 10px; color: var(--muted); max-width: 32ch; }

/* Why / credentials */
.why { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 120px); align-items: center; }
.why__statement { font-size: clamp(2rem, 3.3vw, 5rem); letter-spacing: -0.03em; line-height: 1.05; }
.why__statement em { font-style: normal; color: var(--accent-text); }
.why__points { margin-top: clamp(28px, 3vw, 56px); display: grid; gap: 18px; }
.why__points li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.why__points .icon { margin-top: 0.25em; color: var(--trace); }
.why__points strong { font-weight: 600; }
.why__points span { color: var(--muted); }

.creds {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: #0a1424; color: #fff; padding: clamp(28px, 3vw, 56px);
  box-shadow: var(--shadow); isolation: isolate;
}
.creds::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(42 127 212 / 0.22), transparent 60%),
    linear-gradient(160deg, #10203a, #08111f 70%);
}
.creds__title { font-size: clamp(1.2rem, 1.2vw, 1.8rem); letter-spacing: -0.01em; color: #fff; font-weight: 700; }
.creds__list { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgb(255 255 255 / 0.12); border-radius: 12px; overflow: hidden; }
.creds__list li { background: rgb(9 16 30 / 0.85); padding: clamp(18px, 1.8vw, 34px); }
.creds__org { font-size: 0.85rem; color: #9fb0c6; letter-spacing: 0.06em; }
.creds__name { font-size: clamp(1.6rem, 2.2vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.creds__note { margin-top: 18px; color: #c6d3e4; font-size: 0.98rem; }

/* Coverage */
.coverage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 120px); align-items: stretch; }
.coverage__map {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; min-height: 420px; background: var(--night);
}
.coverage__map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.coverage__map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(5 9 17 / 0.75), rgb(5 9 17 / 0) 50%); }
.coverage__badge {
  position: absolute; left: clamp(18px, 2vw, 36px); bottom: clamp(18px, 2vw, 36px); z-index: 1; color: #fff;
  display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: clamp(1rem, 1vw, 1.4rem);
}
.coverage__badge .icon { color: var(--orange-soft); width: 1.5em; height: 1.5em; }
.counties { margin-top: 28px; display: grid; gap: 0; }
.counties li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.15rem, 1.3vw, 1.9rem); font-weight: 600;
}
.counties li span { color: var(--muted); font-weight: 400; font-size: 0.7em; }
.hours { margin-top: 28px; display: grid; gap: 12px; }
.hours div { display: flex; gap: 12px; align-items: center; }
.hours .icon { color: var(--orange-soft); }

/* FAQ */
.faq { max-width: 1100px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(20px, 1.8vw, 32px) 0; font-size: clamp(1.15rem, 1.35vw, 2rem); font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 260ms var(--ease-out); color: var(--accent-text); width: 1.3rem; height: 1.3rem; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding-bottom: clamp(20px, 1.8vw, 32px); color: var(--muted); max-width: 70ch; }

/* Closing / contact */
.closing { position: relative; isolation: isolate; color: #fff; background: var(--night); overflow: hidden; }
.closing__bg { position: absolute; inset: 0; z-index: -2; }
.closing__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; opacity: 0.85; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgb(5 9 17 / 0.9) 0%, rgb(5 9 17 / 0.72) 45%, rgb(5 9 17 / 0.35) 100%);
}
.closing__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 120px); align-items: center; }
.closing h2 { font-size: clamp(2.3rem, 4vw, 6rem); letter-spacing: -0.03em; }
.closing .lead { color: #c9d5e5; margin-top: 18px; }
.closing__phone {
  display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(26px, 3vw, 48px);
  font-size: clamp(1.8rem, 3vw, 4.4rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; color: #fff;
}
.closing__phone .icon { color: var(--orange-soft); }
.closing__meta { margin-top: 14px; color: #a9b8cc; }

/* Form */
.form-card {
  background: var(--surface); color: var(--text); border-radius: calc(var(--radius) + 6px);
  padding: clamp(22px, 2.4vw, 48px); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.closing .form-card { background: rgb(12 22 38 / 0.86); color: #fff; border-color: rgb(255 255 255 / 0.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.form-card h3 { font-size: clamp(1.4rem, 1.6vw, 2.3rem); }
.form-card > p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.closing .form-card > p { color: #a9b8cc; }
.form { margin-top: 22px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.closing .field label .opt { color: #a9b8cc; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--line-strong); background: var(--bg);
  font-size: 1rem; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.closing .field input, .closing .field select, .closing .field textarea { background: rgb(5 10 19 / 0.7); border-color: rgb(255 255 255 / 0.22); color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.85; }
.closing .field input::placeholder, .closing .field textarea::placeholder { color: #8fa1b8; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgb(243 154 43 / 0.3); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: #ff6b5e; }
.field .error { font-size: 0.88rem; color: var(--error); min-height: 0; }
.closing { --focus: #f39a2b; --error: #ff8a80; }
.form .btn { width: 100%; }
.form[hidden] { display: none; }
.form .btn:disabled { opacity: 0.7; cursor: progress; }
.form__status { font-size: 0.92rem; color: var(--error); }
.form__status:empty { display: none; }
.form__fine { font-size: 0.86rem; color: var(--muted); }
.closing .form__fine { color: #a9b8cc; }
.form-success { display: none; padding: 18px; border-radius: 12px; background: rgb(46 160 92 / 0.14); border: 1px solid rgb(46 160 92 / 0.45); }
.form-success.is-shown { display: block; }
.form-success strong { display: block; margin-bottom: 4px; }

/* Page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--night); overflow: hidden; padding-top: calc(var(--header-h) + clamp(56px, 7vw, 140px)); padding-bottom: clamp(56px, 7vw, 140px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(5 9 17 / 0.9) 0%, rgb(5 9 17 / 0.7) 45%, rgb(5 9 17 / 0.35) 100%); }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 7.6rem); letter-spacing: -0.03em; max-width: 16ch; }
.page-hero .lead { color: #cdd8e7; margin-top: 20px; }
.page-hero .hero__ctas { margin-top: 32px; }

/* Services page detail */
.svc-detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 96px); padding-block: clamp(40px, 4.4vw, 88px); border-top: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 1px solid var(--line); }
.svc-detail__head { display: flex; gap: 18px; align-items: flex-start; }
.svc-detail h2 { font-size: clamp(1.7rem, 2.4vw, 3.4rem); letter-spacing: -0.025em; }
.svc-detail p { color: var(--muted); font-size: clamp(1.05rem, 0.6vw + 0.85rem, 1.45rem); max-width: 60ch; }
.ticks { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--orange-soft); margin-top: 0.3em; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 40px); }
.plan { border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 2.6vw, 52px); background: var(--surface); }
.plan--feature { background-color: #0c1829; background-image: linear-gradient(160deg, #10203a, #0a1424); color: #fff; border-color: rgb(255 255 255 / 0.1); }
.plan h3 { font-size: clamp(1.5rem, 2vw, 2.8rem); letter-spacing: -0.02em; }
.plan p { margin-top: 10px; color: var(--muted); }
.plan--feature p { color: #b8c6d9; }
.plan .ticks { grid-template-columns: 1fr; }
.plan__price { margin-top: 22px; font-weight: 600; color: var(--accent-text); }
.plan--feature .plan__price { color: var(--orange-soft); }

/* About */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); overflow: hidden; }
.principle { background: var(--bg); padding: clamp(24px, 2.8vw, 56px); }
.principle .icon { width: 34px; height: 34px; color: var(--orange-soft); }
.principle h3 { margin-top: 18px; font-size: clamp(1.35rem, 1.7vw, 2.4rem); }
.principle p { margin-top: 10px; color: var(--muted); max-width: 46ch; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 120px); align-items: start; }
.contact-lines { display: grid; gap: 0; }
.contact-line { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 1px solid var(--line); }
.contact-line dt { display: flex; align-items: center; gap: 10px; }
.contact-line .icon { width: 22px; height: 22px; color: var(--orange-soft); }
.contact-line dt { font-size: 0.9rem; color: var(--muted); }
.contact-line dd { margin: 2px 0 0; font-size: clamp(1.15rem, 1.3vw, 1.8rem); font-weight: 600; }
.contact-line dd a { text-decoration: none; }
.contact-line dd a:hover { color: var(--accent-text); }
.contact-line dd small { display: block; font-size: 0.95rem; color: var(--muted); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { background: #050a13; color: #c8d3e2; padding-top: clamp(56px, 6vw, 110px); padding-bottom: 28px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: clamp(28px, 4vw, 80px); }
.footer__brand p { margin-top: 18px; max-width: 36ch; color: #9fb0c6; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: #7f93ad; font-weight: 600; margin-bottom: 14px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { margin-top: clamp(40px, 5vw, 80px); padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 0.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: #7f93ad; }
.concept-note { color: #f6b26b; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Motion (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .logo3d__float { animation: float 7s ease-in-out infinite; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
  .js .hero__content > *, .js .hero__counties { animation: rise 1000ms var(--ease-out) both; }
  .js .hero__content > :nth-child(2) { animation-delay: 120ms; }
  .js .hero__content > :nth-child(3) { animation-delay: 220ms; }
  .js .hero__counties { animation-delay: 380ms; }
  .wires.in .wire-pulse { animation: wire-run 3.4s cubic-bezier(0.4, 0, 0.6, 1) infinite; animation-delay: calc(var(--d, 0ms) + 1200ms); }
  @keyframes wire-run { 0% { stroke-dashoffset: 100; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

  @supports (animation-timeline: scroll()) {
    .hero__media { animation: hero-scroll linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    @keyframes hero-scroll { to { transform: translateY(18%) scale(1.06); opacity: 0.55; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__video { display: none; }
  .flow__line span { transform: none !important; transition: none; }
  .wire--draw { stroke-dashoffset: 0; transition: none; }
  .wire-pulse { display: none; }
  .logo3d__obj { transition: none; }
}

/* ---------- Large screens (2560) ---------- */
@media (min-width: 2200px) {
  :root { --maxw: 2200px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .services__layout, .why, .coverage, .closing__grid, .contact-grid, .svc-detail { grid-template-columns: 1fr; }
  .services__visual { position: relative; top: 0; max-width: 460px; margin-inline: auto; }
  .wires { display: none; }
  .facts__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .facts__grid::before { display: none; }
  .svc-list { position: relative; }
  .svc-list::before { content: ""; position: absolute; left: calc(clamp(48px, 3.6vw, 72px) / 2 - 1px); top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, rgb(243 154 43 / 0.4) 6%, rgb(243 154 43 / 0.4) 94%, transparent); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .flow__line { display: none; }
}

/* ---------- Hero: portrait / phone ---------- */
@media (max-aspect-ratio: 1/1) {
  .hero { height: 100svh; min-height: 640px; max-height: 1100px; }
  .hero__stage { width: max(100cqw, calc(100cqh * 1520 / 2688)); aspect-ratio: 1520 / 2688; }
  .river-label { display: none; }
    .hero__scrim { background: linear-gradient(180deg, rgb(5 9 17 / 0.85) 0%, rgb(5 9 17 / 0.55) 42%, rgb(5 9 17 / 0) 62%), linear-gradient(0deg, rgb(5 9 17 / 0.7) 0%, rgb(5 9 17 / 0) 25%); }
  .hero__content { top: calc(var(--header-h) + 5svh); width: auto; right: var(--gutter); }
  .hero h1 { font-size: clamp(2.5rem, 11cqw, 5rem); }
  .hero__sub { font-size: clamp(1.05rem, 4.4cqw, 1.5rem); }
  .hero__ctas .btn { --h: 52px; font-size: 1rem; padding-inline: 22px; }
  .hero__counties { bottom: calc(84px + 2svh); }
  .chip { min-height: 36px; font-size: 0.9rem; padding-inline: 12px; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  .header-call { display: none; }
  .form__row, .ticks, .plans, .principles { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .creds__list { grid-template-columns: 1fr 1fr; }
  .coverage__map { min-height: 300px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  body { padding-bottom: 76px; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(7 13 24 / 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid rgb(255 255 255 / 0.1);
  }
  .action-bar a {
    min-height: 54px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    text-decoration: none; font-size: 0.82rem; font-weight: 600; color: #fff; background: rgb(255 255 255 / 0.08);
  }
  .action-bar a .icon { width: 20px; height: 20px; }
  .action-bar a.is-primary { background: var(--orange); color: var(--on-orange); }
}
@media (max-width: 400px) {
  .hero__counties { gap: 6px; }
  .hero__counties .chip { min-height: 32px; padding-inline: 10px; font-size: 0.82rem; }
}
@media (max-height: 700px) and (min-aspect-ratio: 1/1) {
  .hero__counties { display: none; }
}

.closing__bg picture, .page-hero__bg picture { height: 100%; }
