/* ==========================================================================
   NIKU ELECTRIC — styles.css
   Brand-derived palette: the old site's #4164d8 / #6195e6 / #0a0d66 blues,
   rebuilt as a system (deep navy ground, lifted blue for text, brand blue
   for fills, cool paper for light sections, one amber "signal" for LEDs).
   ========================================================================== */

:root {
  --bg: #070912;
  --bg-2: #0c1020;
  --bg-3: #11162b;
  --paper: #f3f4f8;
  --paper-2: #e6e8f0;
  --ink: #0a0d2e;
  --fg: #f3f4f8;

  --muted: rgba(243, 244, 248, .58);
  --muted-ink: rgba(10, 13, 46, .62);
  --line: rgba(243, 244, 248, .12);
  --line-ink: rgba(10, 13, 46, .13);
  --surface: var(--bg);

  --blue: #4164d8;          /* brand primary — fills, buttons (old site) */
  --blue-bright: #7d97ff;   /* brand primary lifted for text and lines on dark */
  --blue-deep: #0050bd;     /* brand deep blue — accent on light surfaces */
  --sky: #6195e6;           /* old site highlight ("sinine") */
  --navy: #0a0d66;          /* old site "tummansininen" */
  --signal: #ffb547;        /* instrument amber: LEDs and calibration marks only */

  --font-display: "Bricolage Grotesque", "Archivo", "Helvetica Neue", Impact, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --nav-h: 76px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 28px;
  --max: 1600px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; line-height: 1; }

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 4px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 12px var(--blue-bright); }

.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); }
.avatar--lg { width: 64px; height: 64px; }
.lk-badge { height: 52px; width: auto; border-radius: 10px; }
.lk-badge--sm { height: 38px; border-radius: 8px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--gutter);
  transition: transform 1s var(--ease-in-out);
}
.preloader.is-done { transform: translateY(-100%); }
.preloader__meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.preloader__count {
  align-self: flex-end;
  font-family: var(--font-display); font-weight: 800; font-stretch: 80%;
  font-size: clamp(5rem, 18vw, 16rem); line-height: .8; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.preloader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--blue-bright); }
.blink { animation: blink 1s steps(2) infinite; font-style: normal; }
@keyframes blink { to { opacity: 0; } }

/* ---------- Cursor ---------- */
/* The blend sits on the fixed wrapper: z-index makes it its own stacking context, so a
   blend on the dot/ring only mixed with the empty wrapper and stayed light (invisible on paper) */
.cursor { position: fixed; left: 0; top: 0; z-index: 999; pointer-events: none; display: none; mix-blend-mode: difference; }
.has-cursor .cursor { display: block; }
.cursor__dot {
  position: absolute; left: 0; top: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg); transform: translate(-50%, -50%);
}
.cursor__ring {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(243, 244, 248, .7);
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), background .35s, border-color .35s;
}
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; background: rgba(243, 244, 248, .14); }
.cursor.is-label { mix-blend-mode: normal; }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; background: var(--blue); border-color: var(--blue); }
.cursor__label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }

/* ---------- Grain / progress ---------- */
/* Static noise, one viewport in size: no repaint of a 4x layer every few frames */
.grain {
  position: fixed; inset: 0; z-index: 998; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--blue-bright); transform-origin: left; transform: scaleX(0); z-index: 970; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 960;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: transform .6s var(--ease-out), background .4s, border-color .4s, color .4s;
}
.nav.is-scrolled { background: rgba(7, 9, 18, .62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.on-paper { color: var(--ink); --line: var(--line-ink); --muted: var(--muted-ink); }
.nav.on-paper.is-scrolled { background: rgba(243, 244, 248, .72); }
body.menu-open .nav { color: var(--fg); background: transparent; border-color: transparent; --line: rgba(243,244,248,.12); --muted: rgba(243,244,248,.58); }

.nav__brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; justify-self: start; }
.nav__mark { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgba(125, 151, 255, .55)); }
.nav__brand-text span { font-weight: 300; letter-spacing: .06em; margin-left: .3rem; }

.nav__links { display: flex; gap: 2.2rem; }
.nav__links a { position: relative; font-size: .92rem; padding: .35rem 0; opacity: .72; transition: opacity .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 1.5rem; }
.nav__clock { display: inline-flex; gap: .6rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav__clock b { font-weight: 500; font-variant-numeric: tabular-nums; color: inherit; }

.nav__burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.nav__burger span { position: absolute; left: 11px; right: 11px; top: 50%; height: 2px; background: currentColor; transition: transform .45s var(--ease-out); }
.nav__burger span:first-child { transform: translateY(-4px); }
.nav__burger span:last-child { transform: translateY(4px); }
body.menu-open .nav__burger span:first-child { transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.01em;
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-out), border-color .45s;
  will-change: transform;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--blue); transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; border-color: var(--blue); }
.btn .arrow { width: .95em; height: .95em; transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn--sm { padding: .68rem 1.1rem; font-size: .85rem; }
.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 10px 30px rgba(65, 100, 216, .25); }
.btn--blue::before { background: var(--fg); }
.btn--blue:hover { color: var(--ink); border-color: var(--fg); }
.btn--ghost { background: transparent; }
.btn--ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink::before { background: var(--blue); }
.btn--ink:hover { color: #fff; border-color: var(--blue); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper::before { background: var(--ink); }
.btn--paper:hover { color: var(--paper); border-color: var(--ink); }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 950; background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .85s var(--ease-in-out), visibility 0s .85s;
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .85s var(--ease-in-out); }
.menu__links a {
  display: flex; align-items: baseline; gap: 1.2rem; overflow: hidden;
  font-family: var(--font-display); font-weight: 800; font-stretch: 80%;
  font-size: clamp(3rem, 12vw, 7.5rem); line-height: 1.05; letter-spacing: -.035em;
  padding: .06em 0;
}
.menu__links a small { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; color: var(--muted); font-weight: 400; }
.menu__links a span { display: block; transform: translateY(110%); transition: transform .9s var(--ease-out), color .3s; }
.menu__links a:hover span { color: var(--blue-bright); }
.menu.is-open .menu__links a span { transform: none; }
.menu.is-open .menu__links a:nth-child(1):not(:where(p.lkw-a) > *) span { transition-delay: .25s; }
.menu.is-open .menu__links a:nth-child(2):not(:where(p.lkw-a) > *) span { transition-delay: .32s; }
.menu.is-open .menu__links a:nth-child(3):not(:where(p.lkw-a) > *) span { transition-delay: .39s; }
.menu.is-open .menu__links a:nth-child(4):not(:where(p.lkw-a) > *) span { transition-delay: .46s; }
.menu.is-open .menu__links a:nth-child(5):not(:where(p.lkw-a) > *) span { transition-delay: .53s; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: .95rem; }
.menu__foot > div { display: grid; gap: .35rem; }
.menu__foot a:hover { color: var(--blue-bright); }

/* ---------- Reveal utilities ---------- */
/* Hidden only when JavaScript runs (the head script adds .js); :where() keeps the old specificity */
:where(.js) [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* Hero = the first view: its texts paint at once, only the slide animates */
.hero [data-reveal] { opacity: 1; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .14em 0; margin: -.08em 0 -.14em; }
[data-split] .w__i { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease-out); }
[data-split].is-in .w__i { transform: none; }

/* ---------- Sections ---------- */
section { position: relative; }
.sheet { border-radius: var(--radius) var(--radius) 0 0; margin-top: calc(-1 * var(--radius)); position: relative; z-index: 2; background: var(--surface); }
.section--paper { --surface: var(--paper); background: var(--paper); color: var(--ink); --line: var(--line-ink); --muted: var(--muted-ink); }

.section-head {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 3rem; align-items: end;
  padding: clamp(4.5rem, 10vw, 9rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.section-head .index { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; color: var(--muted); align-self: start; padding-top: .8rem; display: flex; gap: .8rem; align-items: center; }
.section-head .index::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section-head h2 { font-size: clamp(3rem, 8.5vw, 8rem); font-weight: 800; font-stretch: 82%; letter-spacing: -.035em; line-height: .96; text-wrap: balance; }
.section-head p { grid-column: 2; max-width: 44ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--muted); line-height: 1.45; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr; grid-template-columns: minmax(0, 1fr);
  padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 0;
  overflow: hidden; position: relative;
  background: var(--bg);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 151, 255, .18) 0%, rgba(65, 100, 216, .07) 35%, transparent 65%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s;
  mix-blend-mode: screen;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__inner { position: relative; z-index: 1; width: 100%; min-width: 0; max-width: var(--max); margin: 0 auto; align-self: end; }
.hero__eyebrow { flex-wrap: wrap; row-gap: .3rem; }
.hero__eyebrow .sep { opacity: .5; }

.hero__title {
  font-size: clamp(2.75rem, 8.4vw, 9.6rem);
  font-weight: 800; font-stretch: 80%;
  letter-spacing: -.03em; line-height: .96;
  margin: 1.4rem 0 clamp(1.8rem, 4vw, 3rem);
}
.hero__title .line { display: block; overflow: hidden; padding: .06em 0 .22em; margin: -.06em 0 -.22em; }
.hero__title .line > span { display: block; transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
:where(.js) .hero__title .line > span { transform: translateY(112%); }
.is-ready .hero__title .line > span { transform: none; }
.hero__title em { font: inherit; font-style: normal; letter-spacing: inherit; color: var(--blue-bright); }

.hero__row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: end; }
.hero__lede { max-width: 48ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); color: var(--muted); line-height: 1.5; }
.hero__cta { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }

.hero__strip {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.15rem 0 1.4rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll { display: inline-flex; align-items: center; gap: .6rem; }
.hero__scroll i { width: 32px; height: 1px; background: var(--blue-bright); position: relative; overflow: hidden; display: inline-block; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: translateX(-100%); animation: scan 2s var(--ease-in-out) infinite; }
@keyframes scan { to { transform: translateX(100%); } }

/* ---------- Marquee ---------- */
.marquee { padding: clamp(2.5rem, 5vw, 4rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.marquee__label { display: flex; justify-content: center; margin-bottom: 1.6rem; }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee__track--rev { animation-direction: reverse; margin-top: .75rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 0 .3em; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-stretch: 85%;
  font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: 1.2; letter-spacing: -.03em;
}
.marquee__item::after { content: ""; width: .16em; height: .16em; border-radius: 50%; background: var(--blue-bright); }
.marquee__track--outline .marquee__item { color: var(--bg); -webkit-text-stroke-width: clamp(1px, .025em, 2px); -webkit-text-stroke-color: rgba(243, 244, 248, .45); paint-order: stroke fill; letter-spacing: .04em; }
.marquee__track--outline .marquee__item::after { background: transparent; border: 1px solid rgba(243, 244, 248, .45); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(6rem, 14vw, 13rem) var(--gutter); background: var(--bg); }
.manifesto__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 12rem 1fr; gap: 2rem 3rem; align-items: start; }
.manifesto__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.9vw, 3.6rem); line-height: 1.12; letter-spacing: -.028em;
  max-width: 30ch;
}
.manifesto__text .w { opacity: .14; transition: opacity .35s; }
.manifesto__text .w.is-lit { opacity: 1; }
.manifesto__text em { font-style: normal; }
.manifesto__text em .w.is-lit { color: var(--blue-bright); }

/* ---------- Services: sticky stack ---------- */
.services { padding-bottom: clamp(5rem, 10vw, 10rem); background: var(--bg); }
/* Media panels inside cards */
.media {
  position: relative; overflow: hidden; border-radius: 20px;
  aspect-ratio: 4 / 5; max-height: 58vh; width: 100%;
  background: var(--bg-2); isolation: isolate;
}
.media--wide { aspect-ratio: 4 / 3; }
.media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(7, 9, 18, .55), transparent 55%); }
.media--panel { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.media--panel::before { display: none; }
.media__emblem { position: absolute; top: 1rem; right: 1rem; width: 52px; height: auto; opacity: .95; filter: drop-shadow(0 0 14px rgba(65, 100, 216, .5)); }
.media__chip {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2;
  background: rgba(7, 9, 18, .72); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(243, 244, 248, .14); border-radius: 999px; padding: .55rem .9rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Process ---------- */
.process { padding-bottom: clamp(5rem, 10vw, 9rem); }
.process__media { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 21 / 8; margin-bottom: clamp(2.5rem, 6vw, 5rem); background: var(--paper-2); }
.process__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.process__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(7, 9, 18, .5), transparent 50%); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 1px; background: var(--line); }
.steps__line { position: absolute; left: 0; top: 12px; height: 1px; width: var(--p, 0%); background: var(--blue); transition: width .25s linear; }
.step { position: relative; padding-top: 2.4rem; }
.step::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 1px solid var(--muted); transition: background .35s, border-color .35s, box-shadow .35s; }
.step.is-on::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(65, 100, 216, .2); }
.step__num { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; color: var(--muted); }
.step h3 { font-size: clamp(1.35rem, 1.8vw, 1.8rem); font-weight: 700; letter-spacing: -.025em; margin: .55rem 0 .6rem; line-height: 1.05; }
.step p { color: var(--muted); font-size: .95rem; line-height: 1.5; max-width: 26ch; }

/* ---------- References ---------- */
.refs { padding-bottom: clamp(5rem, 10vw, 9rem); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid var(--line); margin-bottom: clamp(2rem, 5vw, 4rem); }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 1.6rem 0 1.4rem; border-right: 1px solid var(--line); padding-right: 1rem; }
.stat:last-child:not(:where(p.lkw-a) > *) { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-stretch: 82%; font-size: clamp(2.4rem, 5.5vw, 5rem); letter-spacing: -.035em; line-height: 1.05; margin-bottom: .5rem; font-variant-numeric: tabular-nums; }
.stat > span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat b span { font: inherit; letter-spacing: inherit; color: inherit; }

.refs__wrap { position: relative; }
.refs__list { border-top: 1px solid var(--line); }
.ref {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 3.5rem 1fr auto; grid-template-areas: "idx name svc"; gap: 1.5rem; align-items: baseline;
  padding: clamp(.9rem, 1.8vw, 1.4rem) .75rem;
  border-bottom: 1px solid var(--line);
  transition: color .35s;
}
.ref::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); }
.ref:hover::before { transform: scaleY(1); transform-origin: top; }
.ref:hover { color: #fff; }
.ref__idx { grid-area: idx; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; color: var(--muted); transition: color .35s; }
.ref:hover .ref__idx { color: rgba(255, 255, 255, .7); }
.ref__thumb { grid-area: thumb; display: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--paper); align-self: center; }
.ref__name { grid-area: name; font-family: var(--font-display); font-weight: 700; font-stretch: 88%; font-size: clamp(1.7rem, 4vw, 3.8rem); letter-spacing: -.035em; line-height: 1.05; transition: transform .5s var(--ease-out); }
.ref:hover .ref__name { transform: translateX(1rem); }
.ref__svc { grid-area: svc; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; max-width: 40ch; transition: color .35s; }
.ref:hover .ref__svc { color: rgba(255, 255, 255, .8); }
.refs__preview {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  width: 280px; height: 280px; border-radius: 18px; overflow: hidden; background: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(243, 244, 248, .12);
  opacity: 0; transform: translate(-50%, -50%) scale(.82) rotate(-5deg);
  transition: opacity .3s, transform .55s var(--ease-out);
}
.refs__preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
.refs__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.about { padding-bottom: clamp(5rem, 10vw, 9rem); }
.about__quote {
  margin: 0 0 clamp(3rem, 6vw, 5rem);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5vw, 4.8rem); letter-spacing: -.035em; line-height: 1.04;
  max-width: 24ch; text-wrap: balance;
}
.about__quote em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--blue-deep); }
.about__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }

.portrait {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--paper-2); color: #fff;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  display: flex; flex-direction: column; justify-content: space-between;
  --muted: rgba(243, 244, 248, .7);
}
.portrait__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.portrait::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 9, 18, .94) 0%, rgba(7, 9, 18, .5) 28%, transparent 55%); }
.portrait__top { display: flex; justify-content: space-between; }
.portrait__top .eyebrow { color: var(--ink); background: rgba(243, 244, 248, .75); padding: .35rem .6rem; border-radius: 999px; backdrop-filter: blur(6px); }
.portrait__meta { display: grid; gap: .2rem; }
.portrait__meta b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.portrait__meta span { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.about__text p { font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.6; color: rgba(10, 13, 46, .78); margin-bottom: 1.3rem; max-width: 60ch; }
.about__lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.9rem) !important; line-height: 1.25 !important; letter-spacing: -.02em; color: var(--ink) !important; }

.team { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.team li { display: grid; grid-template-columns: 48px 1fr 1.2fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.team b { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.team span { color: var(--muted); font-size: .95rem; }
.team a { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .04em; border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.team a:hover { color: var(--blue-deep); border-color: var(--blue-deep); }

.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-deep); }

.about .stats { margin-top: clamp(3rem, 6vw, 5rem); margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(5rem, 10vw, 9rem); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__people { display: grid; gap: 1rem; }
.person { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto auto; gap: .2rem 1.1rem; align-items: center; padding: 1.4rem; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); transition: border-color .35s, transform .5s var(--ease-out); }
.person:hover { border-color: rgba(125, 151, 255, .5); transform: translateY(-2px); }
.person .avatar { grid-row: 1 / 4; align-self: start; }
.person__name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.025em; }
.person__role { color: var(--muted); font-size: .95rem; }
.person__links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: .6rem; }
.person__links a { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .03em; padding-bottom: .15rem; border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; overflow-wrap: anywhere; }
.person__links a:hover { color: var(--blue-bright); border-color: var(--blue-bright); }
.contact__label { display: flex; margin: 2.2rem 0 .9rem; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.office { padding: 1.2rem 0 0; border-top: 1px solid var(--line); }
.office b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: .3rem; }
.office span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.billing { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.billing > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.billing dt { color: var(--muted); }
.billing dd { margin: 0; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; }

.lkw-lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); position: relative; }
.field { position: relative; padding-top: 1.3rem; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: .7rem 0; color: var(--fg); font: inherit; outline: none; resize: vertical;
  transition: border-color .3s;
}
.field label {
  position: absolute; left: 0; top: 2rem; color: var(--muted); pointer-events: none;
  transition: transform .4s var(--ease-out), color .3s, font-size .3s, letter-spacing .3s;
  transform-origin: left top;
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-2rem); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-bright);
}
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--blue-bright); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b57; }
.field--full { grid-column: 1 / -1; }
.form__submit { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.form__note { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form__success, .form__error { grid-column: 1 / -1; display: none; padding: 1rem 1.2rem; border-radius: 14px; font-size: .95rem; }
.form__success { background: rgba(65, 100, 216, .16); border: 1px solid rgba(125, 151, 255, .45); }
.form__error { background: rgba(255, 107, 87, .1); border: 1px solid rgba(255, 107, 87, .4); }
.lkw-lead-form.is-sent .form__success { display: block; }
.lkw-lead-form.is-sent .field, .lkw-lead-form.is-sent .form__submit { display: none; }
.lkw-lead-form.is-error .form__error { display: block; }

/* ---------- Footer ---------- */
.footer { padding: clamp(4rem, 8vw, 7rem) var(--gutter) 1.6rem; border-top: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.footer__word {
  display: block; text-align: center; white-space: nowrap; margin: 0 0 clamp(2rem, 5vw, 4rem);
  font-family: var(--font-display); font-weight: 800; font-stretch: 82%;
  font-size: clamp(3.2rem, 14.6vw, 16.5rem); line-height: .82; letter-spacing: -.01em;
  color: var(--bg); -webkit-text-stroke-width: clamp(1px, .012em, 2px); -webkit-text-stroke-color: rgba(243, 244, 248, .38); paint-order: stroke fill;
  transition: color .6s var(--ease-out), -webkit-text-stroke-color .6s;
}
.footer__word:hover { color: var(--blue-bright); -webkit-text-stroke-color: var(--blue-bright); }
.footer__brand { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2rem; }
.footer__logo { height: 36px; width: auto; }
.footer__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.footer__col { display: grid; gap: .45rem; align-content: start; justify-items: start; }
.footer__col h4 { margin-bottom: .6rem; }
.footer__col a { transition: color .3s; }
.footer__col a:hover { color: var(--blue-bright); }
.footer__col span { color: rgba(243, 244, 248, .8); }
.social { display: inline-flex; align-items: center; gap: .55rem; }
.social img { width: 20px; height: 20px; opacity: .85; transition: opacity .3s; }
.social:hover img { opacity: 1; }
.footer__bottom { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__row { grid-template-columns: 1fr; }
  .hero__cta { justify-content: flex-start; }
  .media { max-height: 70vh; }
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 480px; }
  .contact__grid { grid-template-columns: 1fr; }
  .manifesto__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 1024px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__clock { display: none; }
  .nav__burger { display: block; }
  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 1.6rem; border-left: 1px solid var(--line); }
  .steps::before { display: none; }
  .steps__line { top: 0; left: -1px; width: 1px; height: var(--p, 0%); transition: height .25s linear; }
  .step { padding: 1.2rem 0 1.4rem; }
  .step::before { left: -1.6rem; top: 1.55rem; transform: translateX(-50%); }
  .step p { max-width: 50ch; }
  .process__media { aspect-ratio: 16 / 9; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2):not(:where(p.lkw-a) > *) { border-right: 0; }
}

@media (max-width: 900px) {
  .refs__preview { display: none; }
  .ref { grid-template-columns: 2.6rem 56px 1fr; grid-template-areas: "idx thumb name" "idx thumb svc"; gap: .35rem 1rem; align-items: center; }
  .ref__thumb { display: block; }
  .ref__svc { text-align: left; max-width: none; }
  .ref:hover .ref__name { transform: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; --radius: 20px; }
  .nav .btn--sm { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__title { font-size: clamp(2.6rem, 13.5vw, 4.5rem); }
  .hero__strip { gap: .8rem 1.4rem; font-size: .62rem; }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .section-head p { grid-column: 1; }
  .section-head h2 { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .media { aspect-ratio: 4 / 5; max-height: none; }
  .media--wide { aspect-ratio: 4 / 4; }
  .media--panel { aspect-ratio: 4 / 3; }
  .lkw-lead-form { grid-template-columns: 1fr; padding: 1.4rem; }
  .ref { grid-template-columns: 2.2rem 48px 1fr; }
  .ref__thumb { width: 48px; height: 48px; }
  .team li { grid-template-columns: 48px 1fr; gap: .2rem 1rem; }
  .team li .avatar { grid-row: 1 / 4; }
  .offices { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats, .stats--3 { grid-template-columns: 1fr 1fr; }
  .stats--3 > :last-child:not(:where(p.lkw-a) > *) { grid-column: 1 / -1; }
  .stat { border-right: 0; }
  .marquee__item { font-size: 2rem; }
  .process__media { aspect-ratio: 4 / 3; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], [data-split] .w__i, .hero__title .line > span, .menu__links a span { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Multi-page additions: skip link, page heroes, breadcrumbs, prose,
   service sections, FAQ, tiles, maps, CTA band
   ========================================================================== */
.skip { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--blue); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 1rem; }
.inline-link { border-bottom: 1px solid currentColor; transition: color .3s; }
.inline-link:hover { color: var(--blue-bright); }
.section--paper .inline-link:hover { color: var(--blue-deep); }

/* Page hero (subpages) */
.hero--page { min-height: 64svh; }
.hero--page .hero__title { font-size: clamp(2.6rem, 7.6vw, 8.2rem); margin-top: 1.2rem; line-height: .98; }
.hero--page .hero__row { grid-template-columns: 1.15fr .85fr; }
.hero--page .hero__strip { margin-top: clamp(2.2rem, 5vw, 4rem); padding-bottom: calc(var(--radius) + 1.6rem); }
.breadcrumb { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.breadcrumb a { transition: color .3s; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb span[aria-current] { color: var(--fg); }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.jump a { font-size: .8rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; white-space: nowrap; }
.jump a:hover { background: var(--fg); color: var(--ink); border-color: var(--fg); }

/* Prose (readable long-form text) */
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(2.5rem, 5.4vw, 5rem); font-weight: 800; font-stretch: 82%; letter-spacing: -.035em; line-height: .96; margin: .9rem 0 1.5rem; }
.prose h3 { font-size: clamp(1.25rem, 1.6vw, 1.55rem); font-weight: 700; letter-spacing: -.02em; margin: 2.2rem 0 .8rem; }
.prose p { font-size: clamp(1.02rem, 1.2vw, 1.15rem); line-height: 1.65; color: var(--muted); margin-bottom: 1.1rem; }
.prose p strong { color: inherit; font-weight: 600; }
.prose .lead { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 1.9vw, 1.8rem); line-height: 1.3; letter-spacing: -.02em; color: inherit; margin-bottom: 1.4rem; }
.section--paper .prose p { color: rgba(10, 13, 46, .78); }
.section--paper .prose .lead { color: var(--ink); }
.list { display: grid; gap: .55rem; margin: 0 0 1.4rem; }
.list li { position: relative; padding-left: 1.4rem; font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.5; }
.list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue-bright); }
.section--paper .list li::before { background: var(--blue); }
.list--2 { grid-template-columns: 1fr 1fr; gap: .55rem 1.5rem; }
.brief { border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.4rem; margin: 1.8rem 0 0; background: rgba(125, 151, 255, .07); }
.section--paper .brief { background: rgba(65, 100, 216, .06); }
.brief h3 { margin: 0 0 .9rem; font-size: .7rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brief dl { margin: 0; display: grid; gap: .6rem; }
.brief dl div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; font-size: .95rem; line-height: 1.45; }
.brief dt { color: var(--muted); }
.brief dd { margin: 0; }
.brief dd a { border-bottom: 1px solid var(--line); transition: color .3s, border-color .3s; }
.brief dd a:hover { color: var(--blue-bright); border-color: var(--blue-bright); }
.section--paper .brief dd a:hover { color: var(--blue-deep); border-color: var(--blue-deep); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

/* Service sections */
.svc { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.svc__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.svc__aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.svc__aside .media { max-height: 74vh; }
.svc--alt .svc__grid { grid-template-columns: .95fr 1.05fr; }
.svc--alt .svc__aside { order: -1; }
.faq-section, .offices-section, .billing-section, .trust { padding-bottom: clamp(5rem, 10vw, 9rem); }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 78ch; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .5); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.4vw, 1.2rem); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--blue-deep); transition: transform .35s var(--ease-out); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; }
.faq details > div p, .faq details > div li { font-size: 1rem; line-height: 1.6; color: rgba(10, 13, 46, .8); }
.faq details > div p { margin-bottom: .6rem; }
.faq .list { margin-bottom: 0; }

/* Reference tiles (home teaser) */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tile { display: grid; gap: .6rem; align-content: start; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s; }
.tile:hover img { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10, 13, 46, .15); }
.tile b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.tile span { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.refs .actions { justify-content: center; margin-top: 2.5rem; }
.refs.section--paper .stat b { color: var(--ink); }

/* Trust block (references page) */
.trust__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-top: clamp(4.5rem, 9vw, 8rem); }
.trust__badges { display: grid; gap: 1.5rem; justify-items: start; }
.lk-badge--xl { height: 128px; border-radius: 18px; box-shadow: 0 20px 50px rgba(17, 153, 85, .2); }

/* Contact page extras */
.form__title { grid-column: 1 / -1; font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: -.3rem; }
.contact .brief { margin-top: 1.5rem; }
.billing-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.billing--lg > div { padding: 1rem 0; font-size: 1.02rem; }
.billing--lg dd { font-size: .92rem; }
.btn.social img { width: 18px; height: 18px; opacity: .9; }

/* Maps (consent-friendly: iframe injected on click) */
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.map {
  position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--line);
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 1rem; color: var(--fg);
  background:
    radial-gradient(circle at 62% 38%, rgba(65, 100, 216, .35), transparent 42%),
    repeating-linear-gradient(0deg, rgba(243, 244, 248, .06) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(243, 244, 248, .06) 0 1px, transparent 1px 44px),
    linear-gradient(160deg, #10152c, #070912);
  --muted: rgba(243, 244, 248, .62); --line: rgba(243, 244, 248, .14);
}
.map__pin { position: absolute; left: 62%; top: 38%; width: 14px; height: 14px; border-radius: 50%; background: var(--blue-bright); box-shadow: 0 0 0 10px rgba(125, 151, 255, .16), 0 0 34px rgba(125, 151, 255, .7); transform: translate(-50%, -50%); }
.map__pin::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(125, 151, 255, .5); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.map__card { position: relative; z-index: 2; width: min(100%, 380px); display: grid; gap: .25rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: rgba(7, 9, 18, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(243, 244, 248, .14); }
.map__card b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; }
.map__card > span:not(.eyebrow) { color: var(--muted); }
.map__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.map__actions .btn { color: var(--fg); }
.map__actions .btn--blue { color: #fff; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.map .media__chip { display: none; }
.map.is-loaded .map__card, .map.is-loaded .map__pin { display: none; }
.map.is-loaded .media__chip { display: inline-flex; }

/* CTA band */
.cta-band { --surface: var(--blue); background: linear-gradient(160deg, #4a6fe6 0%, var(--blue) 45%, #2f4fc0 100%); color: #fff; --muted: rgba(255, 255, 255, .75); --line: rgba(255, 255, 255, .25); }
.cta-band .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.cta-band h2 { font-size: clamp(2.4rem, 6vw, 5.5rem); font-weight: 800; font-stretch: 82%; letter-spacing: -.035em; line-height: .96; }
.cta-band p { margin-top: 1rem; max-width: 46ch; color: var(--muted); font-size: clamp(1.02rem, 1.2vw, 1.15rem); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
.cta-band .btn:not(.btn--paper) { border-color: rgba(255, 255, 255, .35); }
.cta-band .btn:not(.btn--paper)::before { background: #fff; }
.cta-band .btn:not(.btn--paper):hover { color: var(--ink); border-color: #fff; }

@media (max-width: 1024px) {
  .svc__grid, .svc--alt .svc__grid { grid-template-columns: 1fr; }
  .svc__aside { position: static; }
  .svc--alt .svc__aside { order: 0; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .maps { grid-template-columns: 1fr; }
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .hero--page .hero__row { grid-template-columns: 1fr; }
  .jump { justify-content: flex-start; }
  .trust__grid, .billing-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .list--2 { grid-template-columns: 1fr; }
  .brief dl div { grid-template-columns: 1fr; gap: .1rem; }
  .hero--page { min-height: 0; }
  .hero--page .hero__title { font-size: clamp(2.4rem, 12vw, 4rem); }
  .map { aspect-ratio: 1; }
  .lk-badge--xl { height: 96px; }
  .footer__grid { grid-template-columns: 1fr; }
  .billing > div { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .billing dd { min-width: 0; overflow-wrap: anywhere; }
}

/* ==========================================================================
   Home services overview tiles + icon media panel
   ========================================================================== */
.svc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc-tile { display: flex; flex-direction: column; gap: .75rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-3); color: inherit; transition: transform .5s var(--ease-out), border-color .35s, box-shadow .5s; }
.svc-tile:hover { transform: translateY(-4px); border-color: rgba(125, 151, 255, .45); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.svc-tile .media { aspect-ratio: 4 / 3; max-height: none; border-radius: 14px; margin-bottom: .4rem; }
.svc-tile .media::before { display: none; }
.svc-tile__meta { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.svc-tile h3 { font-size: clamp(1.7rem, 2.3vw, 2.4rem); font-weight: 800; font-stretch: 85%; letter-spacing: -.03em; line-height: 1.02; }
.svc-tile p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.svc-tile__link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; margin-top: auto; padding-top: .5rem; transition: color .3s; }
.svc-tile__link .arrow { width: .9em; height: .9em; transition: transform .4s var(--ease-out); }
.svc-tile:hover .svc-tile__link { color: var(--blue-bright); }
.svc-tile:hover .svc-tile__link .arrow { transform: translate(2px, -2px); }
.actions--center { justify-content: center; margin-top: 2.5rem; }
.media--icon { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, rgba(65, 100, 216, .38), transparent 55%), var(--bg-2); }
.media--icon::before { display: none; }
.media--icon img { width: min(42%, 220px); height: auto; filter: drop-shadow(0 0 36px rgba(125, 151, 255, .55)); }
@media (max-width: 1024px) { .svc-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .svc-tiles { grid-template-columns: 1fr; } }

/* ==========================================================================
   15.10.2026 client round (Niko): four-line hero, two-part intro, two service
   tiles, logo marquee, service cards, logo wall + gallery, bigger contact photos
   ========================================================================== */
.hero__title--4 { font-size: clamp(2.4rem, 7.1vw, 8rem); }

/* Home intro: two labelled paragraphs on the manifesto grid, calmer size, no scrub */
.manifesto--duo { display: grid; gap: clamp(3rem, 6vw, 5rem); padding-top: clamp(5rem, 10vw, 9rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.manifesto--duo .manifesto__text { font-size: clamp(1.2rem, 1.75vw, 1.7rem); line-height: 1.3; max-width: 48ch; }

/* Home: two service tiles */
.svc-tiles--2 { grid-template-columns: 1fr 1fr; }
.svc-tiles--2 .media { aspect-ratio: 16 / 10; }
.svc-tiles--2 h3 { font-size: clamp(1.6rem, 2.1vw, 2.2rem); }

/* Logo marquee (customer logos, on paper) */
.logo-marquee { position: relative; overflow: hidden; margin: 0 0 clamp(1rem, 2vw, 1.5rem); padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.logo-marquee::before, .logo-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(2rem, 8vw, 8rem); z-index: 2; pointer-events: none; }
.logo-marquee::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(to left, var(--paper), transparent); }
.logo-marquee__label { display: flex; justify-content: center; margin-bottom: 1.8rem; }
.logo-marquee__track { align-items: center; gap: clamp(2.5rem, 5vw, 5rem); animation-duration: 110s; }
.logo-marquee__img { flex: none; width: auto; height: clamp(32px, 3.2vw, 52px); max-width: 190px; object-fit: contain; }

/* Services page: card grid for the analyser services */
.svc__head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.svc__head .lead { max-width: 60ch; }
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.svc-card { display: grid; gap: .55rem; align-content: start; padding: 1.1rem 1.1rem 1.6rem; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-3); }
.svc-card .media { aspect-ratio: 5 / 4; max-height: none; border-radius: 14px; margin-bottom: .5rem; }
.svc-card .media::before { background: linear-gradient(to top, rgba(7, 9, 18, .35), transparent 50%); }
.svc-card h3 { font-size: clamp(1.35rem, 1.8vw, 1.8rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: .3rem 0 .2rem; }
.svc-card p { color: var(--muted); font-size: clamp(.98rem, 1.1vw, 1.08rem); line-height: 1.6; }
.svc-card--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.svc-card--wide .media { aspect-ratio: 4 / 3; margin: 0; }
.svc-card__text { display: grid; gap: .55rem; }
.svc__foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: end; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.svc__foot .brief { margin-top: 0; }
.svc__foot .actions { justify-content: flex-end; margin-top: 0; }

/* References page: logo wall + gallery */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.logo-wall li { display: grid; place-items: center; aspect-ratio: 5 / 3; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .62); transition: transform .5s var(--ease-out), box-shadow .5s; }
.logo-wall li:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10, 13, 46, .12); }
.logo-wall img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 1rem; }
.gallery figure { position: relative; overflow: hidden; border-radius: 18px; background: var(--bg-3); aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.gallery figure.is-tall { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.gallery img, .gallery video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery video { object-fit: contain; background: #000; }
.gallery figcaption { position: absolute; left: .9rem; bottom: .9rem; z-index: 2; max-width: calc(100% - 1.8rem); background: rgba(7, 9, 18, .72); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(243, 244, 248, .14); border-radius: 999px; padding: .5rem .85rem; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery figure.is-video figcaption { bottom: auto; top: .9rem; }
.refs .logo-wall { margin-top: clamp(1rem, 2vw, 1.5rem); }

/* Contact page: bigger photos on the person cards */
.avatar--xl { width: 128px; height: 128px; border-radius: 24px; }
.person--photo { grid-template-columns: 128px 1fr; gap: .25rem 1.4rem; padding: 1.4rem; }

@media (max-width: 1024px) {
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .svc__foot { grid-template-columns: 1fr; }
  .svc__foot .actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .svc-cards { grid-template-columns: 1fr; }
  .svc-card--wide { grid-template-columns: 1fr; }
  .svc-card--wide .media { margin-bottom: .5rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero__title--4 { font-size: clamp(2.2rem, 11.5vw, 3.9rem); }
  .svc-tiles--2 { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .logo-wall li { padding: .8rem .9rem; }
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.is-tall { grid-row: auto; aspect-ratio: 3 / 4; }
  .avatar--xl { width: 96px; height: 96px; border-radius: 18px; }
  .person--photo { grid-template-columns: 96px 1fr; gap: .2rem 1rem; padding: 1.1rem; }
  .logo-marquee__img { height: 30px; max-width: 150px; }
  .manifesto--duo .manifesto__text { max-width: none; }
}

.footer__marks { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.trust__marks { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

/* ==========================================================================
   18.10.2026 client round (Niko 16.10): longer hero headline, one heading font,
   Palvelut dropdown + two service pages, five stats, gallery captions wrap.
   The AA seal image is gone (paid licence); the rating stays as text only.
   ========================================================================== */
.hero__title--long { font-size: clamp(2.3rem, 5vw, 6.4rem); line-height: 1; }

/* Desktop nav: Palvelut dropdown */
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { display: inline-flex; align-items: center; gap: .35rem; }
.nav__chev { width: 10px; height: 10px; transition: transform .35s var(--ease-out); }
.nav__item:hover .nav__chev, .nav__item:focus-within .nav__chev { transform: rotate(180deg); }
.nav__drop {
  position: absolute; top: 100%; left: -1.2rem; padding-top: .9rem; min-width: 18rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s, transform .4s var(--ease-out), visibility 0s .3s;
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .4s var(--ease-out), visibility 0s; }
.nav__drop-panel {
  display: grid; gap: .25rem; padding: .6rem; border-radius: 18px;
  background: rgba(7, 9, 18, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(243, 244, 248, .12); box-shadow: 0 24px 60px rgba(7, 9, 18, .35); color: var(--fg);
}
.nav__links .nav__drop a { display: grid; gap: .2rem; padding: .8rem 1rem; border-radius: 12px; opacity: 1; font-size: .98rem; transition: background .3s, color .3s; }
.nav__links .nav__drop a::after { display: none; }
.nav__drop a small { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 244, 248, .55); }
.nav__links .nav__drop a:hover, .nav__links .nav__drop a.is-active { background: rgba(125, 151, 255, .14); color: var(--blue-bright); }

/* Fullscreen menu: the two service pages under Palvelut */
.menu__sub { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; padding: .2rem 0 1rem 2.6rem; }
.menu__links .menu__sub a { display: block; padding: .2rem 0; font-size: clamp(1.15rem, 4.6vw, 1.6rem); font-weight: 600; font-stretch: 90%; letter-spacing: -.02em; color: var(--muted); border: 0; }
.menu__links .menu__sub a:hover { color: var(--blue-bright); }

/* Five stats: three on the first row, two on the second */
.stats--5 { grid-template-columns: repeat(6, 1fr); row-gap: 0; }
.stats--5 .stat { grid-column: span 2; }
.stats--5 .stat:nth-child(3):not(:where(p.lkw-a) > *) { border-right: 0; }
.stats--5 .stat:nth-child(n+4):not(:where(p.lkw-a) > *) { grid-column: span 3; border-top: 1px solid var(--line); }

/* Gallery: tall photos carry their own height (two 4:3 rows + gap), so two tall
   photos side by side no longer collapse; one wide photo evens out the last row */
.gallery figure.is-tall { aspect-ratio: 460 / 706; max-width: 100%; }
.gallery figure.is-wide { grid-column: span 2; aspect-ratio: 936 / 345; }
.gallery figcaption { white-space: normal; text-overflow: clip; border-radius: 12px; line-height: 1.45; }
@media (max-width: 760px) {
  .gallery figure.is-wide { grid-column: auto; aspect-ratio: 4 / 3; }
}

/* Analyser page: original spare parts note */
.svc-note { display: grid; grid-template-columns: auto 1fr; gap: 1rem clamp(1.25rem, 3vw, 2.5rem); align-items: start; margin-top: 1.25rem; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid rgba(125, 151, 255, .35); border-radius: 22px; background: linear-gradient(135deg, rgba(65, 100, 216, .16), rgba(65, 100, 216, .04)); }
.svc-note__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.svc-note__icon svg { width: 26px; height: 26px; }
.svc-note h3 { font-size: clamp(1.35rem, 1.8vw, 1.8rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin-bottom: .55rem; }
.svc-note p { color: var(--muted); font-size: clamp(.98rem, 1.1vw, 1.08rem); line-height: 1.6; max-width: 70ch; }

/* Electrical page: two stacked photos beside the text */
.svc__aside--stack { display: grid; gap: 1.25rem; position: static; }

/* Services hub: tiles carry a little more text */
.svc-tiles--hub .svc-tile p { max-width: 52ch; }

@media (max-width: 1024px) {
  .stats--5 .stat:nth-child(2):not(:where(p.lkw-a) > *) { border-right: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero__title--long { font-size: clamp(2rem, 9.4vw, 3.2rem); }
  .stats--5 { grid-template-columns: 1fr 1fr; }
  .stats--5 .stat, .stats--5 .stat:nth-child(2):not(:where(p.lkw-a) > *), .stats--5 .stat:nth-child(n+4):not(:where(p.lkw-a) > *) { grid-column: auto; border-top: 0; border-right: 0; }
  .stats--5 .stat:nth-child(3):not(:where(p.lkw-a) > *) { grid-column: 1 / -1; }
  .svc-note { grid-template-columns: 1fr; }
  .gallery figure.is-tall { aspect-ratio: 3 / 4; }
}

/* Four top-bar links: the Helsinki clock steps aside on narrow laptops */
@media (max-width: 1240px) {
  .nav__clock { display: none; }
}

/* Long section heading (Asiakkaitamme ja yhteistyökumppaneitamme): smaller, breaks at the soft hyphen on phones */
.section-head h2.h2--long { font-size: clamp(2.4rem, 5.6vw, 5.6rem); }
@media (max-width: 640px) {
  .section-head h2.h2--long { font-size: clamp(2rem, 9.6vw, 3rem); }
}

/* Six stats: two rows of three. On phones two per row, the long ones full width */
.stats--6 { grid-template-columns: repeat(3, 1fr); row-gap: 0; }
.stats--6 .stat:nth-child(3n):not(:where(p.lkw-a) > *) { border-right: 0; }
.stats--6 .stat:nth-child(n+4):not(:where(p.lkw-a) > *) { border-top: 1px solid var(--line); }
@media (max-width: 1024px) {
  .stats--6 .stat:nth-child(2):not(:where(p.lkw-a) > *) { border-right: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .stats--6 { grid-template-columns: 1fr 1fr; }
  .stats--6 .stat, .stats--6 .stat:nth-child(2):not(:where(p.lkw-a) > *), .stats--6 .stat:nth-child(n+4):not(:where(p.lkw-a) > *) { border-top: 0; border-right: 0; }
  .stats--6 .stat:nth-child(3):not(:where(p.lkw-a) > *), .stats--6 .stat:nth-child(6):not(:where(p.lkw-a) > *) { grid-column: 1 / -1; }
}

/* Phones: a phone number never splits over two lines, and a long breadcrumb wraps instead of running off the screen */
a[href^="tel:"] { white-space: nowrap; }
.breadcrumb { flex-wrap: wrap; max-width: 100%; }
