/* Kungla Elekter v2: live current in electric blue. Night-navy ground, copper wires, blue current.
   The hero is a wiring network on canvas (js/main.js). See DESIGN.md. */
@font-face {
  font-family: "Roboto Flex";
  src: url("../fonts/roboto-flex-latin-full-normal.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
  ascent-override: 94%; descent-override: 24%; line-gap-override: 0%;   /* fixed metrics: Safari otherwise sets this font about 7 px high in buttons */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Flex";
  src: url("../fonts/roboto-flex-latin-ext-full-normal.woff2") format("woff2-variations");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
  ascent-override: 94%; descent-override: 24%; line-gap-override: 0%;   /* fixed metrics: Safari otherwise sets this font about 7 px high in buttons */
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* the Novu signature under the footer, the same on every Novu-made site */
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --night: #0A1220;
  --night-2: #0F192B;
  --night-3: #18253C;
  --night-4: #273754;
  --on: #EEF3FA;
  --on-2: #A3B3CB;
  --spark: #5BA8FF;          /* current, glows, blue text on night */
  --spark-rgb: 91, 168, 255;
  --blue: #1D5FE0;           /* buttons and bands, white text on it */
  --blue-hover: #2A6CF0;
  --copper: #C47E45;
  --copper-dim: #5E4430;
  --paper: #F3F6FB;
  --ink: #0B1220;
  --line: #CBD5E3;
  --font: "Roboto Flex", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --band: clamp(72px, 10vw, 136px);
  --r: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--night); scrollbar-color: var(--night-4) var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--on);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blue); color: #fff; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--spark);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

.display {
  font-weight: 720;
  font-variation-settings: "wdth" 82, "opsz" 72;
  letter-spacing: -0.022em;
  line-height: .98;
  text-wrap: balance;
}
/* A heading switching on: the warm-up glow fades to steady light. */
.display.is-lit { animation: warm 1.6s ease-out 1; }
@keyframes warm {
  0% { text-shadow: 0 0 24px rgba(var(--spark-rgb), .6), 0 0 2px rgba(var(--spark-rgb), .9); }
  100% { text-shadow: 0 0 0 rgba(var(--spark-rgb), 0); }
}

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 18, 32, .94); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.is-scrolled { border-color: var(--night-3); }
.top__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark__glyph { width: 34px; height: 34px; flex: none; overflow: visible; }
.mark__glyph path { fill: none; stroke: var(--spark); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mark__glyph circle { fill: var(--spark); }
.mark:hover .mark__glyph { filter: drop-shadow(0 0 6px rgba(var(--spark-rgb), .75)); }
.mark--foot .mark__glyph { width: 26px; height: 26px; }
/* The K is one wire: on load it is drawn from the stem out to both terminals. */
.top .mark__glyph path { stroke-dasharray: 100 100; animation: wire-in .9s var(--ease) both; }
.top .mark__glyph path:nth-of-type(2) { animation-delay: .35s; }
.top .mark__glyph path:nth-of-type(3) { animation-delay: .6s; }
.top .mark__glyph circle { transform-box: fill-box; transform-origin: center; animation: pop .4s 1.05s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes wire-in { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.mark__word { font-size: 20px; letter-spacing: -0.01em; font-variation-settings: "wdth" 80; font-weight: 450; white-space: nowrap; }
.mark__word b { font-weight: 800; }
.top__nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.top__nav a { text-decoration: none; color: var(--on-2); padding: 6px 0; position: relative; transition: color .2s; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--spark); box-shadow: 0 0 10px rgba(var(--spark-rgb), .8); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top__nav a:hover { color: var(--on); }
.top__nav a:hover::after { transform: scaleX(1); }
.top__call {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  text-decoration: none; font-weight: 750; font-variant-numeric: tabular-nums;
  padding: 10px 16px; border-radius: 12px; font-size: 16px;
  transition: background .2s, box-shadow .3s, transform .2s var(--ease);
}
.top__call svg { width: 18px; height: 18px; fill: #fff; }
.top__call:hover { background: var(--blue-hover); box-shadow: 0 0 0 4px rgba(var(--spark-rgb), .18), 0 8px 24px -8px rgba(var(--spark-rgb), .6); }
.top__call:active { transform: scale(.97); }

/* ---------- hero: the text in a clear field, the wiring all around it ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; touch-action: pan-y;
  display: grid; align-items: center;
  min-height: clamp(600px, calc(100svh - 72px), 880px);
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 96px);
}
.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__text { width: fit-content; max-width: 100%; }
.hero__title { font-size: clamp(3.4rem, 8.4vw, 6rem); }
.hero__lead { margin-top: 26px; font-size: clamp(18px, 1.5vw, 20px); color: var(--on-2); max-width: 36ch; }
.callnum { display: inline-flex; flex-direction: column; margin-top: 34px; text-decoration: none; }
.callnum__num {
  font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 740; line-height: .92; color: var(--spark);
  font-variation-settings: "wdth" 80, "opsz" 72; letter-spacing: -0.015em; font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.callnum:hover .callnum__num { color: #8EC3FF; }
.callnum__who { margin-top: 12px; font-size: 16px; color: var(--on-2); display: inline-flex; align-items: center; gap: 10px; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--spark); animation: live 2s ease-out infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(var(--spark-rgb), .75); } 100% { box-shadow: 0 0 0 12px rgba(var(--spark-rgb), 0); } }
.hero__actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font: 750 17px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, transform .2s var(--ease), box-shadow .3s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-hover); box-shadow: 0 0 0 4px rgba(var(--spark-rgb), .2), 0 12px 30px -10px rgba(var(--spark-rgb), .65); }
.btn--line { background: var(--night); color: var(--on); border-color: var(--night-4); }
.btn--line:hover { border-color: var(--spark); color: var(--spark); }

/* ---------- services: four circuits on one live wire, each with its own small working drawing ---------- */
.power { background: var(--night-2); color: var(--on); padding-block: var(--band); }
.power__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.power__title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.power__lead { margin-top: 20px; color: var(--on-2); font-size: 18px; max-width: 34ch; }
.power__head .btn { margin-top: 30px; }

.circuits { --tile: 104px; list-style: none; margin: 0; padding: 0 0 0 64px; position: relative; }
.circuits::before { content: ""; position: absolute; left: 21px; top: calc(6px + var(--tile) / 2); bottom: var(--wb, 72px); width: 2px; background: var(--copper); opacity: .8; border-radius: 2px; }
.svc { position: relative; display: grid; grid-template-columns: var(--tile) 1fr; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--night-4); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.svc:first-of-type { padding-top: 6px; }
.svc:last-of-type { border-bottom: 0; }
.svc__node { position: absolute; left: -51px; top: calc(24px + var(--tile) / 2 - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--night-2); border: 2px solid var(--copper); transition: background .3s, border-color .3s, box-shadow .3s; }
.svc:first-of-type .svc__node { top: calc(6px + var(--tile) / 2 - 7px); }
.svc__icon { width: var(--tile); height: var(--tile); border-radius: 22px; background: var(--night-3); display: grid; place-items: center; transition: background .4s, box-shadow .4s, transform .3s var(--ease); }
.svc:active .svc__icon { transform: scale(.96); }
.svc__icon svg { width: 78%; height: 78%; fill: none; stroke: var(--on-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: stroke .3s; }
.svc__icon .f { fill: var(--night-4); stroke: none; }
.svc__icon .s { stroke-width: 1.6; opacity: .55; }
.svc h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 720; letter-spacing: -0.01em; font-variation-settings: "wdth" 84; transition: color .3s, text-shadow .3s; }
.svc p { margin-top: 6px; color: var(--on-2); font-size: 16.5px; line-height: 1.55; max-width: 44ch; }
.svc.is-lit .svc__node { background: var(--spark); border-color: var(--spark); }
.svc.is-lit .svc__icon { background: rgba(var(--spark-rgb), .1); box-shadow: inset 0 0 0 1.5px rgba(var(--spark-rgb), .35); }
.svc.is-lit .svc__icon svg { stroke: #CFE5FF; }
.svc.is-lit .svc__icon .f { fill: var(--spark); }
@media (hover: hover) { .svc:hover .svc__icon { box-shadow: inset 0 0 0 1.5px rgba(var(--spark-rgb), .75); } }

/* The drawings. "is-lit" is the finished state; "is-play" runs the job once and ends on it.
   1. Kaabeldus: the cable is laid into the box, current runs through, the box comes alive. */
.a-cable { stroke-dasharray: 100 100; }
.a-run { stroke: #fff; stroke-width: 3.6; stroke-dasharray: 16 200; stroke-dashoffset: 16; opacity: 0; }
.svc.is-play .a-cable { animation: a-draw .8s var(--ease) both; }
.svc.is-play .a-run { animation: a-run .7s .7s cubic-bezier(.45, 0, .55, 1) both; }
.svc.is-play .a-led { animation: a-on .25s 1.3s both; }
@keyframes a-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes a-run { 0% { stroke-dashoffset: 16; opacity: 1; } 95% { stroke-dashoffset: -100; opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes a-on { from { fill: var(--night-4); } to { fill: var(--spark); } }
/* 2. Elektrikilbid: the breakers are switched up one after another, then the rail is live. */
.a-lever { transform: translateY(18px); }
.svc.is-lit .a-lever { transform: translateY(0); }
.svc.is-play .a-lever { animation: a-flip .34s calc(.15s + var(--i) * .15s) cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes a-flip { from { transform: translateY(18px); fill: var(--night-4); } to { transform: translateY(0); fill: var(--spark); } }
.a-rail { stroke-dasharray: 100 100; }
.svc.is-play .a-rail { animation: a-draw .5s .85s var(--ease) both; }
/* 3. Elektripaigaldus: the switch is pressed and the socket has power. */
.a-key { transform: translateY(14px); }
.svc.is-lit .a-key { transform: translateY(0); }
.svc.is-play .a-key { animation: a-key .24s .25s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes a-key { from { transform: translateY(14px); fill: var(--night-4); } to { transform: translateY(0); fill: var(--spark); } }
.svc.is-play .a-hole { animation: a-on .2s .6s both; }
.a-ping { opacity: 0; transform-origin: 66px 48px; }
.svc.is-play .a-ping { animation: a-ping .8s .6s ease-out both; }
@keyframes a-ping { 0% { opacity: .9; transform: scale(.75); } 100% { opacity: 0; transform: scale(1.75); } }
/* 4. Valgustus: the lamp flickers on and the light spreads. */
.a-glass { fill: rgba(var(--spark-rgb), 0); }
.svc.is-lit .a-glass { fill: rgba(var(--spark-rgb), .3); }
.svc.is-play .a-glass { animation: a-flick .7s .15s steps(1, end) both; }
@keyframes a-flick {
  0% { fill: rgba(91, 168, 255, 0); } 15% { fill: rgba(91, 168, 255, .4); } 28% { fill: rgba(91, 168, 255, .05); }
  45% { fill: rgba(91, 168, 255, .4); } 58% { fill: rgba(91, 168, 255, .12); } 100% { fill: rgba(91, 168, 255, .3); }
}
.a-ray { stroke-dasharray: 100 100; stroke-dashoffset: 100; }
.svc.is-lit .a-ray { stroke-dashoffset: 0; }
.svc.is-play .a-ray { animation: a-draw .4s calc(.62s + var(--i) * .05s) var(--ease) both; }
/* 5. Piksekaitse: lightning hits the rod, the current runs down the conductor into the ground. */
.a-bolt { stroke-width: 3; opacity: .35; }
.svc.is-lit .a-bolt { opacity: 1; stroke: var(--spark); }
.svc.is-play .a-bolt { animation: a-strike .45s .15s steps(1, end) both; }
@keyframes a-strike { 0% { opacity: 0; } 20% { opacity: 1; } 40% { opacity: .2; } 60%, 100% { opacity: 1; } }
.a-zap { stroke: #fff; stroke-width: 3.6; stroke-dasharray: 16 200; stroke-dashoffset: 16; opacity: 0; }
.svc.is-play .a-zap { animation: a-run .75s .55s cubic-bezier(.45, 0, .55, 1) both; }
.svc.is-lit .a-earth { stroke: var(--spark); }
.svc.is-play .a-earth { animation: a-earth .3s 1.25s both; }
@keyframes a-earth { from { stroke: var(--on-2); } to { stroke: var(--spark); } }

/* ---------- reach: the map, and a button for every town ---------- */
.reach { background: var(--night); padding-block: var(--band); overflow: hidden; }
.reach__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: "text map" "pick map"; grid-template-rows: 1fr 1fr; column-gap: clamp(28px, 5vw, 72px); row-gap: 28px; }
.reach__text { grid-area: text; align-self: end; }
.reach__map { grid-area: map; margin: 0; align-self: center; }
.reach__pick { grid-area: pick; align-self: start; }
.reach__title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.reach__text p { margin-top: 22px; color: var(--on-2); font-size: 18px; max-width: 36ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none; font: 560 15px/1 var(--font); color: var(--on-2); cursor: pointer;
  min-height: 40px; padding: 0 15px; border-radius: 999px; background: transparent; border: 1.5px solid var(--night-4);
  transition: color .2s, border-color .2s, background .2s, box-shadow .3s, transform .2s var(--ease);
}
.chip:hover { color: var(--on); border-color: var(--spark); }
.chip:active { transform: scale(.96); }
.chip.is-on { color: #fff; background: var(--blue); border-color: var(--blue); }
.reach__status { margin-top: 18px; min-height: 3.2em; color: var(--on); font-size: 16.5px; max-width: 40ch; }
.map { width: 100%; height: auto; overflow: visible; }
.map__land { fill: var(--night-3); stroke: var(--night-4); stroke-width: 2.2; stroke-linejoin: round; }
.route { fill: none; stroke: var(--copper); stroke-width: 2.2; stroke-linecap: round; opacity: .75; transition: opacity .4s, stroke .3s, stroke-width .3s; }
.route-pulse { fill: none; stroke: #9CCBFF; stroke-width: 3.4; stroke-linecap: round; opacity: 0; }
.map__pulses { filter: drop-shadow(0 0 3px rgba(var(--spark-rgb), .8)); }
.city { cursor: pointer; transition: opacity .4s; }
.city__hit { fill: transparent; }
.city__dot { fill: var(--night); stroke: var(--on); stroke-width: 2.4; transition: fill .3s, stroke .3s; }
.city__ring { fill: none; stroke: var(--spark); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.city text { fill: var(--on-2); font: 500 21px var(--font); transition: fill .3s; }
@media (hover: hover) { .city:hover .city__dot { stroke: var(--spark); } .city:hover text { fill: var(--on); } }
/* one town picked: its route carries the current, the rest step back */
.map.has-sel .route { opacity: .2; }
.map.has-sel .route.is-sel { opacity: 1; stroke: var(--spark); stroke-width: 3; }
.map.has-sel .city { opacity: .55; }
.map.has-sel .city.is-sel { opacity: 1; }
.city.is-sel .city__dot { fill: var(--spark); stroke: #fff; }
.city.is-sel text { fill: #fff; font-weight: 700; }
.city.is-sel .city__ring { animation: ring 1.5s var(--ease) infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(3.4); } }
.home__dot { fill: var(--spark); stroke: var(--night); stroke-width: 3; }
.home__pulse { fill: var(--spark); transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
.home__label { fill: var(--on); font: 800 26px var(--font); }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(4.2); opacity: 0; } }

/* ---------- start: a blue band ---------- */
.start { background: var(--blue); color: #fff; padding-block: var(--band); }
.start__title { font-size: clamp(2.4rem, 5vw, 4rem); }
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.steps li { border-top: 3px solid #fff; padding-top: 22px; }
.steps__n { display: block; font-size: 64px; font-weight: 760; line-height: 1; color: #fff; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: 14px; font-size: 22px; font-weight: 740; letter-spacing: -0.01em; font-variation-settings: "wdth" 85; }
.steps p { margin-top: 8px; color: #EEF4FF; max-width: 34ch; }
.steps a { color: #fff; font-weight: 700; }

/* ---------- contact ---------- */
.contact { background: var(--night); color: var(--on); padding-block: var(--band); position: relative; overflow: hidden; isolation: isolate; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
.contact__mail { margin-top: 18px; font-size: 19px; }
.contact__mail a { color: var(--on); }
.contact__mail a:hover { color: var(--spark); }
.facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 14px 40px; }
.facts dt { color: var(--on-2); font-size: 14px; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.form { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 20px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.form { scroll-margin-top: 84px; }
.form__head { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.who { display: inline-flex; margin: 0; padding: 4px; border: 0; border-radius: 12px; background: #E3EAF5; min-inline-size: 0; }
.who legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.who label { position: relative; }
.who input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.who span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9px; font-size: 16px; font-weight: 650; color: #3A4659; transition: background .2s, color .2s; }
.who input:checked + span { background: var(--blue); color: #fff; }
.who label:hover input:not(:checked) + span { color: var(--ink); }
.who input:focus-visible + span { outline: 3px solid var(--spark); outline-offset: 2px; }
.form__firm[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form__title { font-size: 28px; font-weight: 760; font-variation-settings: "wdth" 80; letter-spacing: -0.01em; }
.field { display: grid; gap: 8px; font-size: 16px; font-weight: 600; }
.field input, .field textarea {
  font: 400 17px/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 100%;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #66748A; }
.field input:hover, .field textarea:hover { border-color: #A9B6CA; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 95, 224, .22); outline: none; }
.form .btn { justify-self: start; }
.form__note { background: #E3EDFF; border-radius: 12px; padding: 14px 16px; font-size: 15.5px; color: var(--ink); }
.form__note.is-error { background: #FDE8E6; }
.form__privacy { margin-top: -6px; font-size: 14px; color: #4A5568; }
.form__privacy a { color: var(--ink); font-weight: 600; }
.field.is-bad input { border-color: #C2362B; box-shadow: 0 0 0 3px rgba(194, 54, 43, .15); }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__note a { color: var(--ink); font-weight: 700; }

/* ---------- foot ---------- */
.foot { padding-block: 36px 0; border-top: 1px solid var(--night-3); font-size: 14.5px; color: var(--on-2); background: var(--night); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.foot__in .mark__word { color: var(--on); font-size: 18px; }
.foot__in a { margin-left: auto; color: var(--on-2); }
.foot__in a:hover { color: var(--spark); }
.foot-novu { margin-top: 32px; border-top: 1px solid var(--night-3); padding: 15px 20px; text-align: center; }
.foot-novu a { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11.5px; letter-spacing: .06em; color: #7F8BA0; text-decoration: none; transition: color .2s; }
.foot-novu a:hover { color: #fff; }
.foot-novu strong { color: var(--spark); font-weight: 600; }

/* ---------- privacy page ---------- */
.legal { padding-block: clamp(48px, 8vw, 96px) var(--band); }
.legal__in { max-width: 68ch; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.legal__lead { margin-top: 18px; color: var(--on-2); font-size: 18px; }
.legal h2 { margin-top: 44px; font-size: 22px; font-weight: 720; letter-spacing: -0.01em; font-variation-settings: "wdth" 85; }
.legal p, .legal ul { margin-top: 12px; color: var(--on-2); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--on); font-weight: 600; }
.legal a { color: var(--spark); }
.legal__date { margin-top: 48px; font-size: 14px; }
.legal__back { margin-top: 28px; }   /* keeps .btn inline-flex so the label stays centred */

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .power__grid, .contact__grid { grid-template-columns: 1fr; }
  .reach__grid { grid-template-columns: 1fr; grid-template-areas: "text" "map" "pick"; grid-template-rows: auto; row-gap: 22px; }
  .reach__text, .reach__pick { align-self: auto; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .form__row { grid-template-columns: 1fr; }
  body { font-size: 16.5px; }
  .top__in { height: 64px; gap: 14px; }
  .top__nav { display: none; }
  .top__call { margin-left: auto; padding: 10px 14px; }
  .mark__word { font-size: 18px; }
  /* the text on top, the wiring in the open field under it */
  .hero { align-items: start; min-height: calc(100svh - 64px); padding-block: 30px 300px; }
  .hero__actions .btn { flex: 1; }
  .circuits { --tile: 68px; padding-left: 44px; }
  .circuits::before { left: 13px; }
  .svc { gap: 16px; align-items: start; }
  .svc__node { left: -38px; }
  .svc__icon { border-radius: 18px; }
  .chip { min-height: 44px; padding: 0 16px; }
  .city text { font-size: 44px; }
  .home__label { font-size: 50px; }
  .foot__in a { margin-left: 0; }
}

/* SVG text: Safari draws none in a narrowed width of this font (wdth axis or font-stretch), so map labels stay at normal width */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .route-pulse { display: none; }
}
