/* ==========================================================================
   Above Perspective — dronové umývanie povrchov
   Design tokens → base → layout → components → sections → utilities

   Theming: dark is the default. Light mode only swaps black ↔ white; the brand
   green and all content (brush strokes, images, layout) stay the same.
   ========================================================================== */

:root {
  /* Brand — identical in both themes */
  --green: #1FFF93;
  --green-hover: #5CFFB0;
  --black: #0A0A0A;          /* text on green */
  --white: #FFFFFF;

  /* Theme: dark (default) */
  --bg: #0A0A0A;
  --bg-rgb: 10, 10, 10;      /* for translucent overlays in the background color */
  --fg-rgb: 255, 255, 255;   /* for translucent tints in the text color */
  --surface-1: #111312;
  --surface-2: #171A18;
  --surface-3: #1F2321;
  --text: #F4F5F4;
  --text-muted: #A7AEAA;
  --line: rgba(var(--fg-rgb), .12);
  --line-strong: rgba(var(--fg-rgb), .24);
  --footer-bg: #050505;
  --tool-bg: rgba(var(--bg-rgb), .72);
  /* Same grey in both themes: the side tools float over light and dark sections alike,
     and this value keeps roughly 4.4:1 against black as well as white. */
  --tool-grey: #757575;
  --logo-filter: none;

  /* Contrast surfaces (paper section, form card, comparison table) */
  --paper: #EEEEEA;          /* matches the white brush stroke */
  --paper-text: #0A0A0A;
  --paper-muted: #4A4F4C;
  --paper-line: rgba(10, 10, 10, .14);
  --field-bg: #FFFFFF;
  --field-bd: rgba(10, 10, 10, .2);
  --field-error: #B42323;
  --field-error-bd: #C23B3B;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230A0A0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  --table-bg: #FFFFFF;
  --table-text: #0A0A0A;
  --table-muted: #4A4F4C;
  --table-line: rgba(10, 10, 10, .14);
  --table-hl-bg: #0A0A0A;
  --table-hl-text: #FFFFFF;
  --table-hl-line: rgba(255, 255, 255, .1);

  /* Illustration drone */
  --drone-body: #F2F2F0;
  --drone-top: #DADDDB;
  --drone-arm: #C9CECB;
  --drone-dark: #2A2E2C;

  /* Type */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-body: 1rem;
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  --fs-display: clamp(2.7rem, 1.2rem + 6vw, 6.6rem);

  /* Space & shape */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(80px, 10vw, 140px);
  --edge-h: clamp(90px, 13vw, 200px);
  --band-h: clamp(100px, 14vw, 220px);
  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 999px;
  /* taller at the top of the page so the centred logo stays readable,
     compact once the page is scrolled */
  --header-h: 128px;
  --header-h-sm: 88px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  /* Layers */
  --z-edge: 2;
  --z-band: 3;
  --z-grain: 90;
  --z-tools: 95;
  --z-header: 100;
  --z-menu: 110;
  --z-skip: 1000;
}

/* Theme: light — black and white swap, green untouched */
[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F3F0;
  --bg-rgb: 243, 243, 240;
  --fg-rgb: 10, 10, 10;
  --surface-1: #FFFFFF;
  --surface-2: #E8E8E4;
  --surface-3: #FFFFFF;
  --text: #0A0A0A;
  --text-muted: #4A4F4C;
  --footer-bg: #FAFAF8;
  --tool-bg: rgba(255, 255, 255, .85);
  --logo-filter: invert(1);

  --paper: #0A0A0A;
  --paper-text: #F4F5F4;
  --paper-muted: #A7AEAA;
  --paper-line: rgba(255, 255, 255, .14);
  --field-bg: #171A18;
  --field-bd: rgba(255, 255, 255, .22);
  --field-error: #FF8A8A;
  --field-error-bd: #FF7A7A;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23F4F5F4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  --table-bg: #151716;
  --table-text: #F4F5F4;
  --table-muted: #A7AEAA;
  --table-line: rgba(255, 255, 255, .14);
  --table-hl-bg: #FFFFFF;
  --table-hl-text: #0A0A0A;
  --table-hl-line: rgba(10, 10, 10, .1);

  --drone-body: #1C1F1D;
  --drone-top: #2F3331;
  --drone-arm: #3A3F3C;
  --drone-dark: #D5D9D7;
}

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

html {
  /* The page background lives here so the cursor highlight can sit between it
     and the content — it lights the background only, never the cards or text */
  background: var(--bg);
  transition: background-color var(--dur) var(--ease-out);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-sm) + 16px);
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

body.menu-open { overflow: hidden; }

/* Film grain — echoes the grunge texture of the printed materials */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] body::after { filter: invert(1); opacity: .05; }

/* Emerald highlight trailing the pointer, under the grain — like light behind
   frosted glass. Two layers: a wide halo that lags, a smaller core that follows
   closer. Moved with transforms only; mouse and trackpad users. */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 800ms var(--ease-out);
}
.cursor-glow.is-active { opacity: 1; }
/* Softness comes from the gradient stops, not from a blur filter or a blend mode:
   both would force a full repaint on every scrolled frame */
.cursor-glow__blob {
  --s: 1000px;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  /* One round, even light. The stops follow a gaussian curve and the colour stays
     the same the whole way, so there is no visible step, ring or banding —
     same brightness in the middle, just a gentler fade into transparency. */
  background: radial-gradient(closest-side,
    rgba(14, 176, 124, .28) 0%,
    rgba(14, 176, 124, .273) 6%,
    rgba(14, 176, 124, .253) 12%,
    rgba(14, 176, 124, .224) 18%,
    rgba(14, 176, 124, .188) 24%,
    rgba(14, 176, 124, .15) 30%,
    rgba(14, 176, 124, .114) 36%,
    rgba(14, 176, 124, .082) 42%,
    rgba(14, 176, 124, .056) 48%,
    rgba(14, 176, 124, .036) 54%,
    rgba(14, 176, 124, .022) 60%,
    rgba(14, 176, 124, .013) 66%,
    rgba(14, 176, 124, .0073) 72%,
    rgba(14, 176, 124, .0038) 78%,
    rgba(14, 176, 124, .0019) 84%,
    rgba(14, 176, 124, .0009) 90%,
    rgba(14, 176, 124, .0003) 95%,
    transparent 100%);
  will-change: transform;
  contain: strict;
}

[data-theme="light"] .cursor-glow__blob {
  background: radial-gradient(closest-side,
    rgba(5, 150, 105, .18) 0%,
    rgba(5, 150, 105, .176) 6%,
    rgba(5, 150, 105, .163) 12%,
    rgba(5, 150, 105, .144) 18%,
    rgba(5, 150, 105, .121) 24%,
    rgba(5, 150, 105, .096) 30%,
    rgba(5, 150, 105, .073) 36%,
    rgba(5, 150, 105, .053) 42%,
    rgba(5, 150, 105, .036) 48%,
    rgba(5, 150, 105, .023) 54%,
    rgba(5, 150, 105, .014) 60%,
    rgba(5, 150, 105, .0084) 66%,
    rgba(5, 150, 105, .0047) 72%,
    rgba(5, 150, 105, .0024) 78%,
    rgba(5, 150, 105, .0012) 84%,
    rgba(5, 150, 105, .0006) 90%,
    rgba(5, 150, 105, .0002) 95%,
    transparent 100%);
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--green); color: var(--black); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}
/* Green ring is too faint on light surfaces — keyboard focus only */
[data-theme="light"] :focus-visible { outline-color: var(--text); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  border-radius: var(--pill);
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: var(--section-y); }

.section-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
    gap: 64px;
  }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  -webkit-mask: linear-gradient(90deg, #000 0 70%, transparent 70% 78%, #000 78%);
  mask: linear-gradient(90deg, #000 0 70%, transparent 70% 78%, #000 78%);
}
.section--paper .eyebrow { color: var(--paper-text); }
.section--paper .eyebrow::before { height: 6px; }

.h2 {
  font-size: var(--fs-h2);
  text-transform: uppercase;
}
.hl { color: var(--green); }

.lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 60ch;
}
.section--paper .lead { color: var(--paper-muted); }

/* Green brush marker behind words on the paper section */
.marker {
  position: relative;
  z-index: 0;
  white-space: nowrap;
  /* follows the section it sits on: black on the white section, white on the black one */
  color: var(--paper-text);
}
.marker::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.12em;
  right: -.12em;
  top: -.06em;
  bottom: -.04em;
  background: var(--green);
  border-radius: 3px 10px 4px 12px;
  transform: rotate(-1.2deg) skewX(-8deg);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }

.btn--primary { --btn-bg: var(--green); --btn-fg: var(--black); --btn-bd: var(--green); }
.btn--primary:hover { --btn-bg: var(--green-hover); --btn-bd: var(--green-hover); }
.btn--primary:focus-visible { outline-color: var(--text); }

.btn--ghost:hover { --btn-bd: var(--green); --btn-fg: var(--green); }

.btn--glass {
  --btn-bg: rgba(var(--fg-rgb), .1);
  --btn-bd: rgba(var(--fg-rgb), .22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover { --btn-bg: var(--green); --btn-fg: var(--black); --btn-bd: var(--green); }

/* Black button on green (service CTA card) — same in both themes */
.btn--dark { --btn-bg: var(--black); --btn-fg: var(--white); --btn-bd: var(--black); }
.btn--dark:hover { --btn-bg: #222; --btn-bd: #222; }
.btn--dark:focus-visible { outline-color: var(--black); }

/* Button on the contrast (paper) surface — swaps with the theme */
.btn--invert { --btn-bg: var(--paper-text); --btn-fg: var(--paper); --btn-bd: var(--paper-text); }
.btn--invert:hover { --btn-bg: var(--green); --btn-fg: var(--black); --btn-bd: var(--green); }
.btn--invert:focus-visible { outline-color: var(--paper-text); }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: .78rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: height var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), backdrop-filter var(--dur);
  border-bottom: 1px solid transparent;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(var(--bg-rgb), .72), rgba(var(--bg-rgb), 0));
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
}
.site-header.is-scrolled {
  height: var(--header-h-sm);
  background: rgba(var(--bg-rgb), .82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header.is-scrolled::before { opacity: 0; }

/* Split navigation: half the links left of the logo, half right, logo centred.
   The side columns are equal, so the logo always sits exactly in the middle. */
.header__inner {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  padding: 2px clamp(18px, 2.5vw, 40px);
}
.brand img, .footer__logo { filter: var(--logo-filter); }
/* the same stacked lockup as in the footer; it shrinks with the bar on scroll */
.brand__logo {
  width: 124px;
  height: auto;
  transition: width var(--dur) var(--ease-out);
}
.site-header.is-scrolled .brand__logo { width: 72px; }

.nav--left { grid-column: 1; justify-self: end; }
/* room on the right so the links never run into the floating controls */
.nav--right { grid-column: 3; justify-self: start; padding-right: 8px; }
.nav ul { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.nav li { white-space: nowrap; }
.nav a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(var(--fg-rgb), .86);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Social links ---------- */
.socials { display: flex; align-items: center; gap: 8px; }
.social {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.social svg { width: 19px; height: 19px; }
.social:hover { background: var(--green); border-color: var(--green); color: var(--black); }
/* far left of the bar, mirroring the controls on the right */
.socials--header {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.socials--header .social { width: 38px; height: 38px; background: rgba(var(--bg-rgb), .35); }
/* comes after the base background, otherwise the header icons never turn green */
.socials--header .social:hover { background: var(--green); border-color: var(--green); color: var(--black); }
.socials--footer { margin-top: 22px; }
/* three icons need a bit more room than the nav breakpoint gives */
@media (max-width: 1279px) { .socials--header { display: none; } }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgba(var(--bg-rgb), .35);
}
.lang__btn {
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] { background: var(--green); color: var(--black); }

.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(var(--bg-rgb), .35);
}
.burger span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-block; }
  .brand { grid-column: 1 / -1; }
  /* language switch on the left, burger on the right, logo centred between them;
     both sit in line with the page margins instead of hugging the screen */
  .header__actions {
    left: var(--gutter);
    right: var(--gutter);
    justify-content: space-between;
  }
}
/* Phones: a shorter bar, the logo scales with it, and the controls shrink
   so nothing runs into the centred logo */
@media (max-width: 640px) {
  :root { --header-h: 126px; --header-h-sm: 80px; }
  .brand__logo { width: 108px; }
  .site-header.is-scrolled .brand__logo { width: 66px; }
  .lang__btn { min-width: 32px; min-height: 32px; padding: 0 6px; font-size: .7rem; }
  .burger { width: 40px; height: 40px; }
  .burger span { left: 11px; right: 11px; }
  .burger span:nth-child(1) { top: 13px; }
  .burger span:nth-child(2) { top: 19px; }
  .burger span:nth-child(3) { top: 25px; }
  .header__actions { gap: 8px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h-sm) + 24px) var(--gutter) 32px;
  background: var(--bg);
  isolation: isolate;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
/* display:flex above would otherwise override the hidden attribute and leave an
   invisible full-screen layer that swallows every click on the page */
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu__nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.6rem, 7vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
}
.mobile-menu__nav a:hover { color: var(--green); }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 14px; }
.mobile-menu__foot a:not(.btn) { color: var(--text-muted); font-weight: 600; }
/* keep header (burger) above the open menu */
body.menu-open .site-header { z-index: calc(var(--z-menu) + 1); background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .site-header::before { opacity: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 calc(clamp(48px, 7vw, 88px) + var(--band-h) * .5);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  transform-origin: 70% 30%;
  animation: hero-zoom 18s var(--ease-out) both;
}
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), .94) 0%, rgba(var(--bg-rgb), .78) 34%, rgba(var(--bg-rgb), .25) 64%, rgba(var(--bg-rgb), .1) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(var(--bg-rgb), 0) 38%);
}
@media (max-width: 760px) {
  .hero::before {
    background:
      linear-gradient(0deg, var(--bg) 6%, rgba(var(--bg-rgb), .82) 52%, rgba(var(--bg-rgb), .35) 100%);
  }
}

.hero__inner {
  display: grid;
  gap: 40px;
  align-items: end;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: .94;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.hero__title .line {
  display: block;
  margin-bottom: .12em;
  font-size: .5em;          /* starting size; main.js scales it to the width of the line below */
  line-height: 1.05;
  letter-spacing: .01em;
  white-space: nowrap;
}
.hero__title .hl {
  display: block;
  letter-spacing: -.03em;
}

.hero__lead {
  margin-top: 28px;
  max-width: 56ch;
  font-size: var(--fs-lead);
  color: rgba(var(--fg-rgb), .84);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Hero typing loop: static #ABOVE plus a word that types and deletes itself */
.typing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3em;
  margin-top: 40px;
  min-height: 1.3em;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.typing__word { color: var(--green); }
.typing__cursor {
  width: .07em;
  height: 1em;
  align-self: center;
  background: var(--green);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ---------- Brush band dividers (hero → page, page → footer) ---------- */
.brush-divider {
  position: relative;
  z-index: var(--z-band);
  height: 0;
  pointer-events: none;
}
.brush-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--band-h) * -.55);
  height: var(--band-h);
  background: url("../img/brush-band-white.png") center / 100% 100% no-repeat;
}
.brush-divider--flip::before { transform: rotate(180deg); }
[data-theme="light"] .brush-divider::before { background-image: url("../img/brush-band-black.png"); }

/* ---------- USP pillars ---------- */
.usp { padding-top: calc(clamp(64px, 8vw, 110px) + var(--band-h) * .3); overflow: hidden; }
.usp__grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 860px) { .usp__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.pillar {
  position: relative;
  padding: 36px 30px 34px;
  border-top: 1px solid var(--line-strong);
  /* var(--bg) under the gradient keeps the block opaque, so the cursor highlight
     passes behind it instead of shining through */
  background: linear-gradient(180deg, rgba(var(--fg-rgb), .035), rgba(var(--fg-rgb), 0) 70%), var(--bg);
  border-radius: 0 0 var(--radius) var(--radius);
}
.pillar::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 56px; height: 3px;
  background: var(--green);
}
/* number and icon share one row, so they stay aligned at any font size */
.pillar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pillar__num {
  display: block;
  font-size: clamp(3.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(var(--fg-rgb), .28);
}
.pillar__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 {
  margin-top: 22px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  text-transform: uppercase;
}
.pillar p { margin-top: 12px; color: var(--text-muted); }

/* ---------- Services ---------- */
.services { padding-top: 0; }
.services__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 70% at 100% 100%, rgba(31, 255, 147, .08), transparent 60%),
    linear-gradient(165deg, var(--surface-3), var(--surface-1) 60%);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.svc:hover { transform: translateY(-6px); border-color: rgba(31, 255, 147, .55); }

.svc__num {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--green);
}
.svc h3 {
  margin-top: 10px;
  font-size: clamp(1.45rem, 1.2rem + .8vw, 1.8rem);
  text-transform: uppercase;
  line-height: 1.05;
  /* whole words wrap to the next line instead of being split with a hyphen */
  -webkit-hyphens: none;
  hyphens: none;
}
@media (min-width: 1100px) and (max-width: 1399px) {
  .svc h3, .svc--cta h3 { font-size: 1.4rem; }
}
.svc__tag {
  margin-top: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(var(--fg-rgb), .7);
}
.svc__desc {
  margin-top: 14px;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.svc__illu {
  margin: auto -26px 0;
  padding-top: 18px;
  width: calc(100% + 52px);
  max-width: none;
  height: auto;
  aspect-ratio: 320 / 200;
}
.svc__more {
  align-self: flex-start;
  margin-top: 14px;
}

.svc--cta {
  background: var(--green);
  color: var(--black);
  border-color: var(--green);
  justify-content: space-between;
}
.svc--cta::after { display: none; }
.svc--cta:hover { border-color: var(--black); }
.svc--cta .svc__num { color: var(--black); }
.svc--cta .svc__tag, .svc--cta .svc__desc { color: rgba(10, 10, 10, .78); }
.svc--cta h3 { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); }
.svc--cta .svc__big-icon { width: 120px; height: 120px; margin: 24px 0; color: var(--black); opacity: .9; }

/* Service illustrations */
.il-line { fill: none; stroke: rgba(var(--fg-rgb), .78); stroke-width: 1.4; stroke-linejoin: round; }
.il-thin { fill: none; stroke: rgba(var(--fg-rgb), .32); stroke-width: 1; }
.il-glass { fill: rgba(var(--fg-rgb), .05); }
.il-shine { fill: none; stroke: rgba(var(--fg-rgb), .07); stroke-width: 16; }
.il-bars { fill: none; stroke: rgba(var(--fg-rgb), .5); stroke-width: 7; stroke-linecap: round; }
.il-dot { fill: rgba(31, 255, 147, .2); stroke: rgba(var(--fg-rgb), .4); }
.il-dirt { fill: url(#p-dirt); }
.il-mist { fill: url(#g-mist); }
.il-spray {
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 3 8;
  animation: spray 1s linear infinite;
  animation-play-state: paused;
}
.svc:hover .il-spray, .svc:focus-within .il-spray, .svc.is-visible .il-spray { animation-play-state: running; }
@keyframes spray { to { stroke-dashoffset: -22; } }
.il-drone { animation: hover-y 3.2s ease-in-out infinite; }
@keyframes hover-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- Paper (contrast) section with brush edges ---------- */
.section--paper {
  z-index: var(--z-edge);
  background: var(--paper);
  color: var(--paper-text);
}
.section--paper::before,
.section--paper::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: var(--edge-h);
  background: url("../img/paper-edge.png") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.section--paper::before { bottom: calc(100% - 1px); }
.section--paper::after { top: calc(100% - 1px); transform: rotate(180deg); }
[data-theme="light"] .section--paper::before,
[data-theme="light"] .section--paper::after { background-image: url("../img/ink-edge.png"); }
.pad-edge-bottom { padding-bottom: calc(var(--section-y) + var(--edge-h) * .55); }
.pad-edge-top { padding-top: calc(var(--section-y) + var(--edge-h) * .75); }

/* About statement + stats */
.statement {
  /* 1180px is what the opening sentence needs on one line at the largest font size */
  max-width: 1180px;
  font-size: clamp(1.55rem, 1rem + 2.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
/* keeps the opening sentence on its own line; text-wrap:wrap cancels the
   inherited line balancing, which would otherwise split it across two lines */
.statement__lead { display: block; text-wrap: wrap; }
.statement-sub {
  margin-top: 28px;
  max-width: 62ch;
  font-size: var(--fs-lead);
  color: var(--paper-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 24px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--paper-line);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  /* sized so that "500 000 € +" still fits one column on one line */
  font-size: clamp(1.9rem, 1.2rem + 1.8vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-size: .58em; font-weight: 800; letter-spacing: 0; }
.stat__label {
  margin-top: 12px;
  max-width: 22ch;
  font-weight: 600;
  color: var(--paper-muted);
}
.stat__bar {
  display: block;
  width: 40px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 3px;
  background: var(--green);
}

/* Comparison */
.compare { margin-top: clamp(80px, 10vw, 140px); }
.compare__wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--table-bg);
  color: var(--table-text);
  box-shadow: 0 30px 60px -30px rgba(10, 10, 10, .25);
  -webkit-overflow-scrolling: touch;
}
.compare table {
  width: 100%;
  min-width: 900px;   /* five columns need more room before the wrapper scrolls */
  border-collapse: collapse;
  font-size: .95rem;
}
.compare caption { text-align: left; }
.compare th, .compare td {
  padding: 20px 24px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--table-line);
}
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--table-muted);
}
.compare tbody th { font-weight: 700; width: 24%; }
.compare .is-drone {
  background: var(--table-hl-bg);
  color: var(--table-hl-text);
}
.compare thead .is-drone { color: var(--green); border-radius: var(--radius) var(--radius) 0 0; }
.compare tbody .is-drone { border-bottom-color: var(--table-hl-line); }
.cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.cell svg { width: 22px; height: 22px; flex: none; }
.cell--yes svg { color: var(--green); }
.cell--no svg { color: #C23B3B; }
.cell--mid svg { color: #B7791F; }
.compare td:not(.is-drone) .cell--yes svg { color: #0E9F5C; }
.compare__note { margin-top: 16px; font-size: .85rem; color: var(--paper-muted); }

/* ---------- Price calculator ---------- */
.calc-block { margin-top: clamp(80px, 10vw, 140px); }
.calc {
  padding: clamp(22px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--table-bg);
  color: var(--table-text);
  box-shadow: 0 30px 60px -30px rgba(10, 10, 10, .28);
  /* the form controls follow the card, not the section behind it */
  --paper-text: var(--table-text);
  --paper-muted: var(--table-muted);
}
.calc .form { margin-top: 0; }
.calc__result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 6px;
  padding-top: 26px;
  border-top: 1px solid var(--table-line);
}
.calc__price small {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--table-muted);
}
.calc__price small::before {
  content: "";
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--green);
}
.calc__price strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.calc__price:not(.is-set) strong { color: var(--table-muted); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
.calc__note {
  display: block;
  margin-top: 10px;
  max-width: 46ch;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--table-muted);
}
@media (max-width: 640px) {
  .calc__result { flex-direction: column; align-items: stretch; }
  .calc__result .btn { width: 100%; }
}

/* ---------- Technology ---------- */
.tech__grid {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
@media (min-width: 980px) { .tech__grid { grid-template-columns: 1.05fr .95fr; } }

.hud {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 760 / 540;
  background: var(--surface-2);
}
.hud img { width: 100%; height: 100%; object-fit: cover; }
.hud::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(var(--bg-rgb), .55), rgba(var(--bg-rgb), 0) 45%),
    repeating-linear-gradient(0deg, rgba(var(--fg-rgb), .035) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.hud__corner {
  position: absolute;
  width: 34px; height: 34px;
  border: 2px solid var(--green);
  pointer-events: none;
}
.hud__corner--tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.hud__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(31,255,147,.8), transparent);
  box-shadow: 0 0 18px rgba(31,255,147,.6);
  animation: scan 5s linear infinite;
  pointer-events: none;
}
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(540px); } }
.hud__label {
  position: absolute;
  left: 32px; bottom: 30px;
  display: grid;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hud__label strong { font-size: 1.15rem; letter-spacing: .02em; }

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.spec {
  padding: 22px 22px 20px;
  background: var(--surface-1);
}
.spec__value {
  /* sized so the longest value ("360° LiDAR") stays on one line */
  font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.spec__label { margin-top: 8px; font-size: .88rem; color: var(--text-muted); font-weight: 600; }
.tech__list { display: grid; gap: 14px; margin-top: 28px; }
.tech__list li { display: flex; gap: 12px; align-items: flex-start; }
.tech__list svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 2px; }

/* ---------- Process ---------- */
.steps {
  position: relative;
  display: grid;
  gap: 18px;
  counter-reset: step;
}
@media (min-width: 1000px) {
  .steps { --steps-gap: 32px; grid-template-columns: repeat(5, 1fr); gap: var(--steps-gap); }
  .steps::before {
    content: "";
    position: absolute;
    left: 28px;
    right: 0;            /* runs on past the last number to the end of the block */
    top: 28px;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(31,255,147,.6) 0 10px, transparent 10px 18px);
  }
}
.step {
  position: relative;
  padding: 0 0 0 76px;
  min-height: 56px;
}
@media (min-width: 1000px) { .step { padding: 84px 0 0; } }
.step__num {
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 900;
  font-size: 1.05rem;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.step:hover .step__num { background: var(--green); color: var(--black); }
.step h3 { font-size: var(--fs-h3); text-transform: uppercase; }
.step p { margin-top: 8px; color: var(--text-muted); font-size: .95rem; }
@media (max-width: 999px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 27px; top: 64px; bottom: -14px;
    width: 2px;
    background: repeating-linear-gradient(180deg, rgba(31,255,147,.6) 0 8px, transparent 8px 14px);
  }
  .step { padding-bottom: 18px; }
}

/* ---------- Results (before / after) ---------- */
.ba {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 1332 / 630;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  user-select: none;
  touch-action: pan-y;
}
@media (max-width: 640px) { .ba { aspect-ratio: 4 / 3; } }
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
}
.ba__before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__before img { filter: sepia(.55) saturate(.8) hue-rotate(28deg) brightness(.6) contrast(1.15); }
.ba__before::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 30% 60%, rgba(70, 82, 40, .55), transparent 70%),
    radial-gradient(40% 40% at 75% 30%, rgba(60, 60, 30, .45), transparent 70%);
  mix-blend-mode: multiply;
}
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--green);
  pointer-events: none;
}
.ba__knob {
  position: absolute;
  top: 50%; left: 50%;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.ba__knob svg { width: 26px; height: 26px; }
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba__range:focus-visible ~ .ba__handle .ba__knob { outline: 3px solid var(--text); outline-offset: 4px; }
.ba__tag {
  position: absolute;
  top: 20px;
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba__tag--before { left: 20px; background: rgba(var(--bg-rgb), .75); color: var(--text); }
.ba__tag--after { right: 20px; background: var(--green); color: var(--black); }

.results {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 800px) { .results { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.result {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
}
.result__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: rgba(31,255,147,.12);
  color: var(--green);
}
.result__icon svg { width: 22px; height: 22px; }
.result h3 { font-size: 1.02rem; text-transform: uppercase; line-height: 1.2; }
.result p { margin-top: 6px; font-size: .9rem; color: var(--text-muted); }

/* ---------- Coverage band ---------- */
.coverage {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
/* Content stays level; only the green background is tilted, like a brush stroke */
.coverage__band {
  position: relative;
  isolation: isolate;
  padding: clamp(44px, 6vw, 72px) 0;
  color: var(--black);
}
.coverage__band::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -6%;
  background: var(--green);
  transform: rotate(-2deg);
}
.coverage__inner {
  display: grid;
  gap: 24px;
  align-items: center;
}
.coverage h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4.2rem);
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: -.02em;
}
.coverage p { margin-top: 12px; max-width: 52ch; font-weight: 600; color: rgba(10,10,10,.8); }

.marquee {
  position: relative;
  margin-top: 34px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; }
.marquee__list li {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__list li::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--black);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) { .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.faq__aside { align-self: start; }
@media (min-width: 960px) { .faq__aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.help-card {
  margin-top: 36px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
}
.help-card p { color: var(--text-muted); }
.help-card a.phone {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.help-card a.mail {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}
.help-card a.phone:hover,
.help-card a.mail:hover { color: var(--green); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green); }
.faq-item__icon {
  position: relative;
  flex: none;
  width: 40px; height: 40px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  margin: -1px 0 0 -7px;
  background: currentColor;
  border-radius: 2px;
}
.faq-item__icon::after { transform: rotate(90deg); transition: transform var(--dur) var(--ease-out); }
.faq-item[open] .faq-item__icon { background: var(--green); border-color: var(--green); color: var(--black); }
.faq-item[open] .faq-item__icon::after { transform: rotate(0deg); }
.faq-item__body { padding: 0 64px 26px 0; color: var(--text-muted); }
.faq-item__body p + p { margin-top: 10px; }
.faq-item__body a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq-item__body a:hover { color: var(--text); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; padding-bottom: calc(var(--section-y) + var(--band-h) * .4); }
.contact__grid {
  position: relative;
  display: grid;
  gap: 48px;
}
@media (min-width: 1000px) { .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; } }

.contact-links { display: grid; gap: 14px; margin-top: 36px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-1);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
a.contact-link:hover { border-color: var(--green); transform: translateX(4px); }
.contact-link__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
}
.contact-link__icon svg { width: 22px; height: 22px; }
.contact-link small {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-link strong { display: block; font-size: clamp(1.02rem, .95rem + .4vw, 1.25rem); font-weight: 800; overflow-wrap: anywhere; }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--paper-text);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
[data-theme="light"] .form-card { box-shadow: 0 30px 60px -34px rgba(10, 10, 10, .45); }
.form-card h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); text-transform: uppercase; }
.form-card > p { margin-top: 8px; color: var(--paper-muted); }
/* align-items:start — without it a neighbouring field stretches when an error appears */
.form { display: grid; gap: 18px; margin-top: 28px; align-items: start; }
@media (min-width: 640px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 8px; }
.field label, .field .label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.req { color: #0E9F5C; }
[data-theme="light"] .req { color: var(--green); }
/* checkboxes are excluded: the text-input sizing would blow them up to 50px */
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--field-bd);
  border-radius: 12px;
  background: var(--field-bg);
  color: var(--paper-text);
  font-weight: 500;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--paper-text);
  box-shadow: 0 0 0 4px rgba(31, 255, 147, .7);
}
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--field-error-bd); }
/* The row is always there and only becomes visible, so an error never resizes
   the input or pushes the rest of the form around. */
.field__error {
  display: flex;
  visibility: hidden;
  align-items: center;
  gap: 6px;
  min-height: 1.25em;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--field-error);
}
.field.has-error .field__error { visibility: visible; }
.field__error svg { width: 16px; height: 16px; flex: none; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--paper-muted);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .92rem;
}
.form__status.is-success { display: flex; background: rgba(31,255,147,.35); color: var(--paper-text); }
.form__status.is-error { display: flex; background: rgba(194,59,59,.14); color: var(--field-error); }
.form__status.is-pending { display: flex; background: rgba(10,10,10,.08); color: var(--paper-muted); }
/* honeypot — out of sight and out of the tab order, but not display:none,
   so simple bots still fill it in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form__status svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: calc(clamp(64px, 8vw, 96px) + var(--band-h) * .4) 0 32px;
  background: var(--footer-bg);
  transition: background-color var(--dur) var(--ease-out);
}
.footer__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer__logo { width: 170px; }
.footer__about { margin-top: 20px; max-width: 34ch; color: var(--text-muted); }
.footer__title {
  margin-bottom: 18px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
}
.footer__list { display: grid; gap: 10px; }
.footer__list a { color: rgba(var(--fg-rgb), .82); font-weight: 600; transition: color var(--dur-fast); }
.footer__list a:hover { color: var(--green); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--text-muted);
}

/* ---------- Side tools: theme switch + scroll to top ---------- */
.side-tools {
  position: fixed;
  z-index: var(--z-tools);
  left: 24px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.theme-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--tool-bg);
  color: var(--text-muted);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--green); }
.theme-toggle__thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green);
  transition: transform var(--dur) var(--ease-out);
}
[data-theme="light"] .theme-toggle__thumb { transform: translateY(36px); }
.theme-toggle__icon {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 7px;
  transition: color var(--dur) var(--ease-out);
}
[data-theme="dark"] .theme-toggle__icon--dark,
[data-theme="light"] .theme-toggle__icon--light { color: var(--black); }

.side-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--tool-grey);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
}
.side-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.side-top__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.side-top:hover .side-top__text { color: var(--green); }
.side-top__line {
  position: relative;
  width: 2px;
  height: 64px;
  border-radius: 2px;
  background: var(--tool-grey);
  overflow: hidden;
}
.side-top__fill {
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleY(var(--progress, 0));
  transform-origin: top;
}
.side-top__icon { display: none; }

/* Compact version: bottom-right on smaller screens */
@media (max-width: 1399px) {
  .side-tools { left: auto; right: 16px; bottom: 16px; gap: 10px; }
  .side-top__text, .side-top__line { display: none; }
  .side-top {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--tool-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .side-top:hover { border-color: var(--green); color: var(--green); }
  .side-top__icon { display: block; width: 18px; height: 18px; }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { animation: none; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__list { flex-wrap: wrap; row-gap: 8px; }
  .hud__scan { display: none; }
}
