/* ==========================================================================
   Svävartvätt — design system
   ========================================================================== */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/assets/fonts/familjen-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/assets/fonts/familjen-grotesk-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 400 700; font-style: italic; font-display: swap;
}

:root {
  --paper: #f3f1ea;
  --paper-2: #e9e5da;
  --paper-3: #ddd8ca;
  --ink: #0d1b1e;
  --ink-2: #31464a;
  --ink-3: #5c6f72;
  --line: rgba(13, 27, 30, 0.12);
  --line-2: rgba(13, 27, 30, 0.22);
  --brand: #60c4c5;
  --brand-2: #9adcdd;
  --brand-deep: #0e6f71;
  --brand-ink: #0a4547;
  --night: #0b1517;
  --night-2: #12211f;
  --night-line: rgba(232, 240, 238, 0.12);
  --moss: #6b7a2e;
  --hose: #2f9fa1;
  --hose-dark: #1b6c6e;
  --orange: #ef8636; /* the offer button colour from the old site */

  --font-sans: "Familjen Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--2: clamp(0.66rem, 0.64rem + 0.08vw, 0.72rem);
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.15rem);
  --step-3: clamp(1.9rem, 1.4rem + 2.2vw, 3.3rem);
  --step-4: clamp(2.4rem, 1.5rem + 4vw, 5rem);
  --step-5: clamp(2.8rem, 1rem + 5.4vw, 6.4rem);

  --gutter: clamp(20px, 4.2vw, 64px);
  --maxw: 1200px;
  --header-h-s: 64px; /* the header once the page has scrolled */
  --radius: 6px;
  --radius-lg: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip; position: relative;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--brand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--brand); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--radius); transform: translateY(-160%); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 2; }
.section { position: relative; padding-block: clamp(88px, 11vw, 168px); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.section--paper2 { background: var(--paper-2); }
.section--night { background: var(--night); color: #e8f0ee; }
.on-dark { color: #e8f0ee; }
.on-dark .muted, .section--night .muted { color: #9fb3b1; }
.muted { color: var(--ink-3); }

/* ---------- type ---------- */
.h-display { font-size: var(--step-5); line-height: 0.92; letter-spacing: -0.045em; font-weight: 600; }
.h1 { font-size: var(--step-4); line-height: 0.98; letter-spacing: -0.04em; font-weight: 600; }
.h2 { font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.h3 { font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; }
.h4 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.card-title { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); max-width: 36ch; letter-spacing: -0.005em; }
.section--night .lead { color: #c4d3d1; }
.prose { max-width: 62ch; color: var(--ink-2); }
.prose p + p { margin-top: 1em; }
.section--night .prose { color: #c4d3d1; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 780px; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 22px 64px; }
.section-head--split > :last-child { padding-bottom: 6px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-hover: var(--brand-ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 22px; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn:focus-visible { background: var(--btn-hover); }
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform 0.45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--offer { --btn-bg: var(--orange); --btn-fg: var(--ink); --btn-hover: #f49d5b; }
.btn--brand { --btn-bg: var(--brand); --btn-fg: var(--ink); --btn-hover: var(--brand-2); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-hover: rgba(13, 27, 30, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover, .btn--ghost:focus-visible { box-shadow: inset 0 0 0 1px var(--ink); }
.on-dark .btn--ghost, .section--night .btn--ghost { --btn-fg: #e8f0ee; --btn-hover: rgba(232, 240, 238, 0.06); box-shadow: inset 0 0 0 1px rgba(232, 240, 238, 0.26); }
.on-dark .btn--ghost:hover, .section--night .btn--ghost:hover { box-shadow: inset 0 0 0 1px #e8f0ee; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 0.95rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 3px;
  transition: background-size 0.5s var(--ease-out), gap 0.4s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1.5px; gap: 14px; }
.link-arrow svg { width: 16px; height: 16px; }
.section--night .link-arrow { color: #e8f0ee; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); background: var(--paper); /* opaque, so the hose on the subpages comes out from under it */
  transition: height 0.5s var(--ease-out), background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled { height: var(--header-h-s); background: rgba(243, 241, 234, 0.84); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgba(13, 27, 30, 0.5); }
.site-header .bar { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; justify-self: start; color: var(--brand); flex: none; }
.logo { height: 26px; width: auto; overflow: visible; transform-origin: 0 50%; transition: transform 0.5s var(--ease-out); }
.is-scrolled .logo { transform: scale(0.93); }
.logo .logo-word { fill: var(--brand-deep); transition: fill 0.4s; }
.logo .logo-mark { fill: var(--brand); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; padding: 10px 14px; font-weight: 500; font-size: 0.98rem; color: var(--ink-2); border-radius: var(--radius);
  transition: color 0.3s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: var(--brand-deep);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--ink); }
.bar-cta .btn[aria-current="page"] { --btn-bg: var(--brand-deep); --btn-fg: #fff; --btn-hover: var(--brand-ink); }
.nav a:not(.btn):hover::after, .nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.bar-cta { display: flex; align-items: center; justify-self: end; gap: 8px; flex: none; }
.bar-cta .tel {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px; border-radius: var(--radius);
  font-size: 0.98rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap;
  transition: background-color 0.3s;
}
.bar-cta .tel:hover { background: rgba(13, 27, 30, 0.06); }
.bar-cta .tel .ico { width: 17px; height: 17px; color: var(--brand-deep); flex: none; }
.bar-cta .btn { gap: 10px; }
.cta-short { display: none; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: var(--radius); position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out); }
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--paper); padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 8px; visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out), visibility 0s 0.7s;
}
.menu-open .mobile-menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.7s var(--ease-out); }
.mobile-menu a.big { font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.12; display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(24px); transition: opacity 0.5s, transform 0.7s var(--ease-out); }
.menu-open .mobile-menu a.big { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i, 0) * 0.06s); }
.mobile-menu .menu-foot { margin-top: auto; display: grid; gap: 14px; }
.mobile-menu a.big[aria-current="page"] { color: var(--brand-deep); }
.mobile-menu .menu-foot p { font-size: var(--step--1); color: var(--ink-3); }
.mobile-menu .menu-foot p a { display: inline-block; padding-block: 8px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(28px, 5vh, 64px)) 0 clamp(72px, 9vw, 128px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero h1 { font-size: var(--step-5); line-height: 0.93; letter-spacing: -0.048em; font-weight: 600; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line--last { padding-bottom: 0.3em; margin-bottom: -0.18em; } /* room for the line under "drönare" */
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: line-up 1.1s var(--ease-out) forwards; animation-delay: calc(0.15s + var(--i) * 0.09s); }
@keyframes line-up { to { transform: translateY(0); } }
.hero h1 .accent { position: relative; color: var(--brand-deep); }
.hero h1 .squiggle { position: absolute; left: -2%; bottom: -0.16em; width: 106%; height: 0.3em; overflow: visible; }
.hero h1 .squiggle path { fill: none; stroke: var(--brand); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease-out) 1.05s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { max-width: 32ch; }
.fade-up { opacity: 0; transform: translateY(18px); animation: fade-up 1s var(--ease-out) forwards; animation-delay: var(--d, 0.5s); }
@keyframes fade-up { to { opacity: 1; transform: none; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--step--1); color: var(--ink-2); }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof svg { width: 14px; height: 14px; color: var(--brand-deep); }
/* the photo sits beside the copy; on short screens it is cut lower rather than made narrower, so it stays in the
   first screen. Its hose leaves through the bottom edge (--hx across: set by main.js for the actual crop, with the
   value for the plain 4:5 crop as fallback), where a brass coupling joins it to the hose that runs down the page */
.hero-media { --hx: 66.75%; position: relative; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; max-height: max(460px, calc(100svh - var(--header-h) - 150px)); object-fit: cover; object-position: 90% 50%; border-radius: var(--radius-lg); background: var(--paper-3); animation: media-in 1.3s var(--ease-out) 0.25s both; }
@keyframes media-in { from { opacity: 0; transform: translateY(28px); } }
.hose-exit { position: absolute; z-index: 1; left: var(--hx); top: 100%; width: 22px; height: 35.2px; margin: -15.4px 0 0 -11px; filter: drop-shadow(0 3px 3px rgba(13, 27, 30, 0.25)); animation: fade-in 0.5s var(--ease-out) 1s both; }
.hose-exit svg { display: block; width: 100%; height: 100%; }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- hero variants ----------
   html.hero-full: the photo fills the first screen inside a thin frame and the copy sits on it, lower left (phones and
   tablets: photo first, copy under it). html.hero-wash adds the unwashed facade left of the spray; it is washed clean
   from the right, up to where the spray meets the wall (--wx, set by main.js for the actual crop), as the page opens. */
.hero-photo { display: block; position: relative; }
.hero-dirty { display: none; }
@media (min-width: 981px) {
  .hero-full .hero { --frame: clamp(8px, 0.9vw, 14px); display: flex; flex-direction: column; justify-content: flex-end; min-height: max(640px, 100svh); padding: calc(var(--header-h) + 96px) 0 calc(var(--frame) + clamp(44px, 7.5vh, 104px)); }
  .hero-full .hero-grid { position: static; display: block; }
  .hero-full .hero-copy { position: relative; z-index: 2; max-width: 720px; }
  .hero-full .hero-media { position: absolute; z-index: 0; top: var(--header-h); left: var(--frame); right: var(--frame); bottom: var(--frame); margin: 0; }
  .hero-full .hero-photo { position: absolute; inset: 0; overflow: hidden; border-radius: 12px; background: #3a3426; }
  .hero-full .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: 50% 50%; border-radius: 0; animation: hero-settle 2.8s var(--ease-out) both; }
  .hero-full .hero-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(9, 18, 20, 0.76) 0%, rgba(9, 18, 20, 0.56) 30%, rgba(9, 18, 20, 0.14) 54%, rgba(9, 18, 20, 0) 66%),
      linear-gradient(0deg, rgba(9, 18, 20, 0.5) 0%, rgba(9, 18, 20, 0) 42%); }
  .hero-full .hero h1 { color: var(--paper); }
  .hero-full .hero h1 .accent { color: var(--brand-2); }
  .hero-full .hero .lead { color: rgba(243, 241, 234, 0.88); max-width: 36ch; }
  .hero-full .proof { color: rgba(243, 241, 234, 0.84); }
  .hero-full .proof svg { color: var(--brand); }
  .hero-full .hero .cta-row .btn:not(.btn--ghost) { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-hover: #fff; }
  .hero-full .hero .btn--ghost { --btn-fg: var(--paper); --btn-hover: rgba(243, 241, 234, 0.1); box-shadow: inset 0 0 0 1px rgba(243, 241, 234, 0.45); }
  .hero-full .hero .btn--ghost:hover, .hero-full .hero .btn--ghost:focus-visible { box-shadow: inset 0 0 0 1px var(--paper); }
  .hero-full .hero :focus-visible { outline-color: var(--brand); }
  .hero-full .hero h1, .hero-full .hero .lead, .hero-full .proof { text-shadow: 0 1px 28px rgba(9, 18, 20, 0.45); }
  .hero-wash .hero-photo::after {
    background: linear-gradient(90deg, rgba(9, 18, 20, 0.76) 0%, rgba(9, 18, 20, 0.6) 25%, rgba(9, 18, 20, 0.26) 37%, rgba(9, 18, 20, 0) 47%),
      linear-gradient(0deg, rgba(9, 18, 20, 0.5) 0%, rgba(9, 18, 20, 0) 42%); }
}
@media (max-width: 980px) {
  .hero-full .hero-grid { display: flex; flex-direction: column-reverse; gap: 32px; }
  .hero-full .hero-media { margin-inline: calc(10px - var(--gutter)); }
  .hero-full .hero-photo { overflow: hidden; border-radius: 10px; }
  .hero-full .hero-media img { border-radius: 0; }
  .hero-full .hero { padding-top: var(--header-h); }
}
@media (max-width: 640px) {
  .hero-full .hero-media img { object-position: 85% 50%; }
}
@keyframes hero-settle { from { transform: scale(1.06); } }
@property --wash { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
.hero-wash .hero-dirty {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; --wash: var(--wx, 50%);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--wash) - 0.9%), transparent calc(var(--wash) + 0.9%));
  mask-image: linear-gradient(90deg, #000 calc(var(--wash) - 0.9%), transparent calc(var(--wash) + 0.9%));
}
@media (min-width: 981px) { .hero-wash .hero-dirty { animation: hero-settle 2.8s var(--ease-out) both, wash 2.6s var(--ease-in-out) 0.9s both; } }
@media (max-width: 980px) { .hero-wash .hero-dirty { animation: wash 2.6s var(--ease-in-out) 0.9s both; } }
@keyframes wash { from { --wash: 104%; } }

/* ?hero=3d: the panel shows the facade out of focus (the left part of the hero photo, blurred; it moves a little
   against the drone's lean, set by hero3d.js as --px/--py) and main.js mounts the 3D drone on it: DJI's CAD model of
   the Matrice 400. The drone's hose leaves the panel at --hx, also set by hero3d.js */
.hero-3d .hero-media { --hx: 66.5%; }
.hero-3d .hero-photo img:not(.hero-dirty) { object-position: 0% 32%; transform-origin: 0% 32%; transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(2.4); filter: blur(9px) brightness(0.82) saturate(0.92); animation: none; will-change: transform; }
.hero-3d-canvas { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 980px) { .hero-3d .hero-media { --hx: 58%; } .hero-3d .hero-media img:not(.hero-dirty) { aspect-ratio: 16 / 10; } }
@media (max-width: 640px) { .hero-3d .hero-media img:not(.hero-dirty) { aspect-ratio: 1 / 1; } }

/* ---------- hose overlay ---------- */
.hose-layer { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.hose-layer path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hose-layer .hose-shadow { stroke: rgba(13, 27, 30, 0.12); }
.hose-layer .hose-edge { stroke: var(--hose-dark); }
.hose-layer .hose-body { stroke: var(--hose); }
.hose-layer .hose-shine { stroke: rgba(255, 255, 255, 0.38); }
.hose-layer .hose-pulse { fill: rgba(226, 252, 252, 0.92); }
.hose-layer .hose-head { transition: opacity 0.3s; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- statement ---------- */
.statement { font-size: var(--step-3); line-height: 1.14; letter-spacing: -0.03em; font-weight: 500; max-width: 24ch; }
.statement .w { color: rgba(13, 27, 30, 0.16); transition: color 0.35s linear; }
.statement .w.on { color: var(--ink); }
.statement-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: end; }
.statement-wrap .prose { font-size: var(--step-1); line-height: 1.5; padding-bottom: 8px; }

.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line-2); }
.benefit { position: relative; padding: 28px 28px 8px 0; display: grid; align-content: start; gap: 14px; }
.benefit + .benefit { padding-left: 28px; border-left: 1px solid var(--line); }
.benefit h3 { font-size: var(--step-1); letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
.benefit p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- problems ---------- */
.problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 36px); }
.problem { display: grid; gap: 26px; align-content: start; }
.problem .photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper-3); }
.problem .photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.problem.is-in .photo img { transform: scale(1); }
.problem:hover .photo img { transform: scale(1.03); }
.problem .body { display: grid; gap: 12px; padding-right: 6%; }
.problem .body p { color: var(--ink-2); }
.problem .body .link-arrow { margin-top: 6px; justify-self: start; }

/* ---------- before / after ---------- */
@property --p { syntax: "<number>"; inherits: true; initial-value: 50; }
/* materials: a list of materials beside a large before/after. The line on the list's left edge glides to the
   chosen material (placed by initTabs) */
.mat { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); }
.mat-side { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.mat-side .link-arrow { align-self: flex-start; }
.mat-tabs { position: relative; display: grid; border-top: 1px solid var(--line-2); }
.mat-tabs button { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; row-gap: 3px; align-items: center; padding: 20px 8px 20px 18px; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink-3); transition: color 0.3s, background-color 0.4s; }
.mat-tabs button:hover { color: var(--ink-2); background: rgba(13, 27, 30, 0.025); }
.mat-tabs button[aria-selected="true"] { color: var(--ink); }
.mat-tabs i { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 4px; background: var(--paper-3) center / 220% no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); transition: background-size 0.9s var(--ease-out); }
.mat-tabs button:hover i, .mat-tabs button[aria-selected="true"] i { background-size: 150%; }
.mat-tabs b { align-self: end; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.mat-tabs small { align-self: start; font-size: var(--step--1); line-height: 1.45; color: var(--ink-3); }
.mat-tabs .thumb { position: absolute; left: 0; top: 0; width: 2px; height: 0; background: var(--brand-deep); transition: transform 0.6s var(--ease-out), height 0.6s var(--ease-out), width 0.6s var(--ease-out); }
html:not(.js) .mat-tabs { display: none; }
.mat-stage { display: grid; gap: 14px; align-content: start; }
.mat-stage .ba { aspect-ratio: 3 / 2; }
.ba-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: var(--step--1); color: var(--ink-3); }
html:not(.js) .ba-panel[hidden] { display: block; }
html:not(.js) .ba-panel + .ba-panel { margin-top: 16px; }
html:not(.js) .ba-line, html:not(.js) .ba-range { display: none; }
.ba { --p: 50; position: relative; isolation: isolate; aspect-ratio: 16 / 9; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3); cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; pointer-events: none; -webkit-user-drag: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0); }
.ba-line { position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(var(--p) * 1%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(13, 27, 30, 0.25); pointer-events: none; }
.ba-grip { position: absolute; top: 50%; left: 50%; width: 8px; height: 56px; margin: -28px 0 0 -4px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px rgba(13, 27, 30, 0.06), 0 6px 16px -4px rgba(13, 27, 30, 0.5); transition: height 0.4s var(--ease-out), margin 0.4s var(--ease-out); }
.ba:hover .ba-grip, .ba.is-drag .ba-grip { height: 72px; margin-top: -36px; }
.ba:has(.ba-range:focus-visible) .ba-grip { outline: 2px solid var(--brand-deep); outline-offset: 3px; }
.ba-label { position: absolute; z-index: 1; top: clamp(12px, 1.6vw, 20px); padding: 6px 11px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2; color: #fff; background: rgba(13, 27, 30, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; transition: opacity 0.3s; }
.ba-label--before { left: clamp(12px, 1.6vw, 20px); opacity: clamp(0, (var(--p) - 12) / 10, 1); } /* fades as the line reaches it */
.ba-label--after { right: clamp(12px, 1.6vw, 20px); opacity: clamp(0, (88 - var(--p)) / 10, 1); }
.ba-range { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; } /* keyboard and screen readers */
.ba.is-anim { transition: --p 1.2s var(--ease-out); }

/* ---------- process ---------- */
.process { position: relative; display: grid; gap: clamp(56px, 7vw, 96px); padding-left: 120px; }
.step { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px clamp(32px, 5vw, 80px); align-items: start; }
.step .node {
  position: absolute; left: -120px; top: -6px; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3);
  transition: background-color 0.6s var(--ease-out), color 0.6s, box-shadow 0.6s;
}
.step.is-wet .node { background: var(--ink); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--ink); }
.step h3 { font-size: var(--step-2); letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; }
.step p { color: var(--ink-2); max-width: 48ch; }
.step .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- comparison ---------- */
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto repeat(3, auto); }
.method { position: relative; grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; padding-right: clamp(20px, 2.6vw, 36px); }
.method + .method { padding-left: clamp(20px, 2.6vw, 36px); }
.method h3 { padding: 22px 0 24px; border-top: 1px solid rgba(232, 240, 238, 0.34); font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: #e8f0ee; }
.method ul { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; }
.method li { padding: 18px 0 22px; border-top: 1px solid var(--night-line); color: #9fb3b1; line-height: 1.5; text-wrap: pretty; }
.method--ours { background: rgba(96, 196, 197, 0.075); padding-bottom: 4px; }
.method--ours::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--brand); transform-origin: left; transition: transform 1.3s var(--ease-out) 0.45s; }
.js .method--ours:not(.is-in)::before { transform: scaleX(0); }
.method--ours h3 { border-top-color: transparent; color: #fff; }
.method--ours li { color: #e8f0ee; border-top-color: rgba(96, 196, 197, 0.26); }
.method--ours strong { color: var(--brand); font-weight: 600; }

/* ---------- audiences ---------- */
.audiences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(30px, 3.4vw, 44px) clamp(14px, 1.8vw, 24px); }
.audience { display: grid; gap: 16px; align-content: start; color: inherit; }
.audience .shot { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3); }
.audience .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
a.audience:hover .shot img { transform: scale(1.045); }
.audience h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.audience h3 .arrow { width: 18px; height: 18px; flex: none; color: var(--brand-deep); transition: transform 0.5s var(--ease-out); }
a.audience:hover h3 .arrow { transform: translateX(5px); }
.audience p { color: var(--ink-2); font-size: 0.97rem; margin-top: -4px; }

/* ---------- prices ---------- */
.prices { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; border-radius: 8px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.section--paper2 .seg { background: var(--paper); }
.seg button { position: relative; z-index: 1; height: 42px; padding: 0 22px; border-radius: 4px; font-weight: 600; color: var(--ink-3); transition: color 0.4s; }
.js .seg button[aria-selected="true"] { color: var(--paper); }
html:not(.js) .seg { display: none; }
html:not(.js) .price-panel[hidden] { display: block; }
.seg .thumb { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 4px; background: var(--ink); transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out); }
.price-panel { margin-top: 26px; }
.price-panel[hidden] { display: none; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.price-row:first-child { border-top: 1px solid var(--line-2); }
.price-row .what { font-size: var(--step-1); font-weight: 500; letter-spacing: -0.015em; }
.price-row .what small { display: block; font-size: 0.86rem; color: var(--ink-3); font-weight: 400; letter-spacing: 0; margin-top: 2px; }
.price-row .amount { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-row .amount small { font-size: 0.5em; letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.price-row .rot { grid-column: 1 / -1; justify-self: start; display: inline-flex; gap: 6px; align-items: center; font-size: var(--step--1); color: var(--ink-3); }
.permit { padding: 2px 0 2px 18px; border-left: 2px solid var(--brand-deep); }
.permit p { font-size: 0.95rem; color: var(--ink-2); max-width: 52ch; }

/* ---------- map ---------- */
.where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.city-list { display: grid; margin-top: 34px; border-top: 1px solid var(--line-2); }
.city-list li { border-bottom: 1px solid var(--line); }
.city-list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 4px; font-size: var(--step-1); font-weight: 500; letter-spacing: -0.02em; text-align: left; transition: color 0.3s, padding 0.5s var(--ease-out); }
.city-list button:hover, .city-list button.is-active { padding-left: 14px; color: var(--brand-deep); }
.map { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .dot { fill: var(--ink); opacity: 0.18; }
.map .city .core { fill: var(--brand-deep); transition: r 0.4s var(--ease-out); }
.map .city .lbl { font-size: 12px; font-weight: 600; fill: var(--ink); opacity: 0.0; transition: opacity 0.3s; }
.map .city.is-active .lbl, .map .city:hover .lbl { opacity: 1; }
.map .city.is-active .core { r: 7; }
/* a slow, soft halo round each town, one after the other */
.map .city .pulse { fill: var(--brand); opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; animation: map-pulse 3s var(--ease-out) var(--d, 0s) infinite; }
@keyframes map-pulse { 0% { opacity: 0.45; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3.4); } }

/* ---------- faq ---------- */
.faq { display: grid; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { position: relative; flex: none; width: 18px; height: 18px; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 1px; right: 1px; top: 8px; height: 1.5px; background: var(--ink); transition: transform 0.5s var(--ease-out); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq .answer { overflow: hidden; }
.faq .answer p { padding: 0 64px 26px 0; color: var(--ink-2); max-width: 70ch; }

/* ---------- final CTA ---------- */
.cta-final { position: relative; text-align: left; display: grid; gap: 28px; justify-items: start; }
.cta-final h2 { max-width: 15ch; }

/* ---------- form ---------- */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line);
  padding: 26px 16px 10px; font-size: 1rem; transition: box-shadow 0.35s, background-color 0.35s; resize: vertical;
}
.section--paper2 .field input, .section--paper2 .field textarea { background: var(--paper); }
.field textarea { min-height: 128px; }
.field label { position: absolute; left: 16px; top: 18px; color: var(--ink-3); font-size: 1rem; pointer-events: none; transform-origin: left top; transition: transform 0.35s var(--ease-out), color 0.35s; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand-deep); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(0.74); color: var(--brand-deep); }
.field input::placeholder, .field textarea::placeholder { color: transparent; transition: color 0.3s; }
.field input:focus::placeholder, .field textarea:focus::placeholder { color: #9aa8a9; }
.field .req { color: var(--brand-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; cursor: pointer; transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; user-select: none; }
.chips span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color 0.3s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chips input:checked + span::before { background: var(--brand); box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
.form .fine { font-size: 0.88rem; color: var(--ink-3); display: grid; gap: 2px; }
.form .submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form .error { color: #a5372a; font-size: 0.9rem; min-height: 1.2em; }
.form-success { display: none; padding: 26px; border-radius: var(--radius-lg); background: var(--ink); color: #e8f0ee; gap: 10px; }
.form.is-sent > :not(.form-success) { display: none; }
.form.is-sent .form-success { display: grid; animation: fade-up 0.8s var(--ease-out); }
.form-success .h3 { color: var(--brand); }
.btn .fly { transition: transform 0.9s var(--ease-in-out), opacity 0.9s; }
.btn.is-sending .fly { transform: translate(60px, -40px) rotate(-12deg); opacity: 0; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--night); color: #c4d3d1; padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px clamp(32px, 6vw, 96px); align-items: end; padding-bottom: clamp(56px, 7vw, 96px); }
.footer-top .h2 { color: #e8f0ee; max-width: 14ch; }
.footer-tank { --level: 44%; position: relative; isolation: isolate; justify-self: end; width: min(100%, 440px); display: grid; justify-items: start; gap: 8px; padding: clamp(30px, 3vw, 40px); border-radius: 12px; color: #e8f0ee; background: linear-gradient(180deg, rgba(232, 240, 238, 0.07), rgba(232, 240, 238, 0.02)); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9); }
.footer-tank::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(232, 240, 238, 0.22), inset 0 1px 0 1.5px rgba(255, 255, 255, 0.06); pointer-events: none; }
.footer-tank .tank-water { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.footer-tank .tank-water::before { content: ""; position: absolute; inset: auto 0 0; height: var(--level); background: linear-gradient(180deg, #2f9fa1, #1d7173); }
.footer-tank .surface { position: absolute; left: -80px; right: 0; bottom: var(--level); height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='10'%3E%3Cpath d='M0 5Q20 0 40 5T80 5V10H0Z' fill='%232f9fa1'/%3E%3C/svg%3E") repeat-x 0 0 / 80px 10px; animation: tank-surf 2.6s linear infinite paused; }
.footer-tank.is-on .surface { animation-play-state: running; }
@keyframes tank-surf { to { transform: translateX(80px); } }
.footer-tank .coupling { position: absolute; z-index: 2; top: -18px; right: 30px; width: 30px; height: 22px; }
.footer-tank .coupling svg { display: block; width: 100%; height: 100%; }
.footer-tank .coupling i { position: absolute; left: 50%; top: 3px; width: 2px; height: 2px; margin-left: -1px; }
.footer-tank .coupling::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; box-shadow: 0 0 0 2px var(--brand); opacity: 0; transform: translateY(50%) scale(0.3); pointer-events: none; }
.footer-tank.is-on .coupling::after { animation: cp-ripple 1.6s var(--ease-out) 0.1s; }
@keyframes cp-ripple { 0% { opacity: 0.9; transform: translateY(50%) scale(0.3); } 100% { opacity: 0; transform: translateY(50%) scale(2.2); } }
.tank-title { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.tank-text { color: #9fb3b1; margin-bottom: 34px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; padding-block: 44px; border-top: 1px solid var(--night-line); }
.footer-grid h4 { font-size: var(--step--1); font-weight: 600; color: #9fb3b1; margin-bottom: 14px; }
.footer-grid ul { display: grid; gap: 8px; }
.footer-grid a { color: #e8f0ee; transition: color 0.3s; }
.footer-grid a:hover { color: var(--brand); }
.footer-grid p { font-size: 0.95rem; max-width: 36ch; }
.footer-word { color: var(--brand); padding-bottom: 28px; }
.footer-word svg { width: 100%; height: auto; }
.footer-word .logo-word { fill: currentColor; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 30px; border-top: 1px solid var(--night-line); font-size: 0.86rem; color: #7f9593; }

/* ---------- page hero (subpages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 104px); }
.page-hero .inner { display: grid; gap: 26px; max-width: 980px; }
.page-hero .lead { max-width: 44ch; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: var(--step--1); color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- misc components ---------- */
.card { border-radius: var(--radius-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(22px, 3vw, 36px); }
.section--paper2 .card { background: var(--paper); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.contact-lines { display: grid; gap: 10px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 14px; font-size: var(--step-2); font-weight: 600; letter-spacing: -0.03em; }
.contact-lines a svg { width: 26px; height: 26px; color: var(--brand-deep); flex: none; }
.contact-lines a span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.5s var(--ease-out); }
.contact-lines a:hover span { background-size: 100% 2px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.photo-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.stat { padding: 22px 20px 4px 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat .v { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--ink-3); font-size: 0.92rem; }
.section--night .stat-row { border-color: var(--night-line); }
.section--night .stat + .stat { border-color: var(--night-line); }
.section--night .stat .k { color: #9fb3b1; }

.page-hero .inner > * { animation: rise-in 1s var(--ease-out) both; animation-delay: calc(0.08s + var(--i, 0) * 0.08s); }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }

/* jump links */
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; font-size: 0.95rem; transition: background-color 0.35s, color 0.35s, box-shadow 0.35s; }
.jump a:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* services (tjänster) */
.service { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.service + .service { margin-top: clamp(80px, 10vw, 150px); }
.service--flip > .photo { order: 2; }
.service .photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.service .photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.8s var(--ease-out); }
.service .photo.is-in img { transform: scale(1); }
.service .body { display: grid; gap: 22px; justify-items: start; }
.service .body p { color: var(--ink-2); max-width: 52ch; }
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 12px; align-items: start; }
.ticks li svg { width: 16px; height: 16px; margin-top: 0.32em; color: var(--brand-deep); }
.section--night .ticks li svg { color: var(--brand); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches span { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; font-size: 0.95rem; }
.swatches i { width: 28px; height: 28px; border-radius: 3px; background: var(--paper-3) center / 220% no-repeat; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); transition: background-size 0.8s var(--ease-out); }
.swatches span:hover i { background-size: 140%; }

/* tall buildings */
.tall { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.tall .copy { display: grid; gap: 24px; justify-items: start; }
.tall-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 2 / 3; width: 100%; max-width: 520px; justify-self: end; background: #1a2729; }
.tall-photo img { width: 100%; height: 100%; object-fit: cover; }

/* who we help (3 columns) */
.audiences--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* drone at work (metod) */
.precision-photo { aspect-ratio: 4 / 5; margin: 0; }
.precision-photo img { object-position: 50% 22%; }

/* address hand-off (metod -> offert) */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.calc .copy { display: grid; gap: 22px; }
.addr { display: grid; gap: 12px; }
.addr .btn { justify-self: start; }

/* om oss: two companies joined by the hose */
.orgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(64px, 7vw, 96px) clamp(20px, 4vw, 64px); }
.org { position: relative; border-radius: var(--radius-lg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(48px, 5vw, 64px) clamp(24px, 3.2vw, 44px) clamp(26px, 3.4vw, 44px); display: grid; gap: 16px; align-content: start; justify-items: start; }
.section--paper2 .org { background: var(--paper); }
.org p { color: var(--ink-2); }
.org--b { margin-top: clamp(90px, 12vw, 180px); }
.org .node, .org-result .node {
  position: absolute; top: -30px; left: clamp(24px, 3.2vw, 44px); width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3);
  transition: background-color 0.6s var(--ease-out), color 0.6s, box-shadow 0.6s;
}
.org.is-wet .node, .org-result.is-wet .node { background: var(--ink); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--ink); }
.org-result { position: relative; grid-column: 1 / -1; border-radius: var(--radius-lg); background: var(--night); color: #c4d3d1; padding: clamp(56px, 6vw, 80px) clamp(24px, 4vw, 64px) clamp(30px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: center; }
.org-result .node { left: 50%; margin-left: -30px; background: var(--night-2); box-shadow: inset 0 0 0 1.5px var(--night-line); color: #9fb3b1; }
.org-result .logo-big { width: 100%; max-width: 460px; }
.org-result .logo-big svg { width: 100%; height: auto; display: block; overflow: visible; }
.org-result .logo-big .logo-mark { fill: var(--brand); }
.org-result .logo-big .logo-word { fill: #e8f0ee; }
.org-result p { font-size: var(--step-1); line-height: 1.45; color: #c4d3d1; max-width: 34ch; }
.ext svg { transform: rotate(-45deg); transition: transform 0.45s var(--ease-out); }
.link-arrow.ext:hover svg { transform: rotate(-45deg) translateX(3px); }

/* offert */
.offer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.offer .form-card { padding: clamp(22px, 3.4vw, 44px); display: grid; gap: 26px; }
.offer-side { display: grid; gap: 18px; }
.offer-side .card { display: grid; gap: 16px; }
.offer-side .price-row { padding: 16px 0; }
.offer-side .price-row .what { font-size: 1.02rem; }
.offer-side .price-row .amount { font-size: var(--step-1); }
.offer-side .seg button { height: 38px; padding: 0 18px; }
.offer-side .price-panel { margin-top: 14px; }
.offer-main { display: grid; gap: 18px; }
.offer-contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
.offer-contact .contact-lines a { font-size: var(--step-1); }
.next { display: grid; counter-reset: next; border-top: 1px solid var(--line); }
.next li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.97rem; }
.next li::before { counter-increment: next; content: counter(next); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--brand-deep); }
.next b { color: var(--ink); font-weight: 600; }
.field.is-prefilled input { animation: prefill 1.8s var(--ease-out); }
@keyframes prefill { 0%, 30% { box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 6px rgba(96, 196, 197, 0.25); } }
.tags-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.tags-row ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags-row li { padding: 8px 14px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; }

/* 404 */
.lost { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.85; color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .site-header .bar { gap: 14px; }
  .nav a:not(.btn) { padding: 10px 10px; }
  .nav a:not(.btn)::after { left: 10px; right: 10px; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit:nth-child(3) { padding-left: 0; border-left: 0; }
  .benefit:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
  .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; --header-h-s: 60px; }
  .mat { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mat-side { display: contents; }
  .mat-tabs { order: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; border-top: 0; border-bottom: 1px solid var(--line-2); }
  .mat-tabs button { grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: start; row-gap: 8px; padding: 6px 0 16px; border-bottom: 0; }
  .mat-tabs button:hover { background: none; }
  .mat-tabs i { grid-row: auto; width: 44px; height: 44px; }
  .mat-tabs .thumb { top: auto; bottom: -1px; height: 2px; }
  .mat-stage { order: 2; }
  .mat-side .link-arrow { order: 3; }
  .nav { display: none; }
  .menu-toggle { display: block; margin-left: 0; width: 44px; height: 44px; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color 0.3s; }
  .menu-toggle:hover { background: rgba(13, 27, 30, 0.05); }
  .menu-toggle span { left: 12px; right: 12px; }
  .menu-toggle span:nth-child(1) { top: 17px; }
  .menu-toggle span:nth-child(2) { top: 25px; }
  .menu-open .menu-toggle span:nth-child(1), .menu-open .menu-toggle span:nth-child(2) { top: 21px; }
  .bar-cta .tel { box-shadow: inset 0 0 0 1.5px var(--line-2); }
  .site-header .bar { display: flex; gap: 10px; }
  .bar-cta { margin-left: auto; }
  .brand { flex: 1 1 0; min-width: 0; max-width: 204px; } /* the logo gives way so the phone and quote buttons always fit */
  .logo { width: 100%; height: auto; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-media { --hx: 77.6%; }
  .hero-media img { aspect-ratio: 3 / 2; max-height: none; object-position: 50% 50%; }
  .statement-wrap, .prices, .where, .split, .section-head--split, .footer-top { grid-template-columns: minmax(0, 1fr); }
  .problems, .compare, .grid-3, .service, .tall, .calc, .offer, .org-result { grid-template-columns: minmax(0, 1fr); }
  .service--flip > .photo { order: 0; }
  .compare { grid-template-rows: none; gap: 36px; }
  .method, .method + .method { grid-row: auto; grid-template-rows: none; padding: 0; }
  .method ul { grid-row: auto; grid-template-rows: none; }
  .compare .method--ours { padding: 0 20px 6px; }
  .method h3 { padding: 18px 0 18px; }
  .method li { padding: 14px 0 16px; }
  .tall-photo { justify-self: start; max-width: 460px; }
  .audiences--3 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .process { padding-left: 92px; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .step .node { left: -92px; width: 64px; height: 64px; }
  .footer-tank { width: min(100%, 520px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map { max-width: 380px; }
}
@media (max-width: 640px) {
  .bar-cta { gap: 6px; }
  .mat-tabs { column-gap: 12px; }
  .mat-tabs i { width: 40px; height: 40px; }
  .mat-tabs b { font-size: 1.05rem; }
  .mat-tabs small { display: none; }
  .bar-cta .tel { width: 44px; padding: 0; justify-content: center; box-shadow: inset 0 0 0 1.5px var(--line-2); }
  .bar-cta .tel .ico { width: 19px; height: 19px; }
  .bar-cta .tel .num { display: none; }
  .bar-cta .btn { padding: 0 15px; }
  .bar-cta .btn .arrow { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 12.4vw, 3.6rem); }
  .hero .lead { font-size: 1.12rem; }
  .hero-media { --hx: 66.75%; }
  .hero-media img { aspect-ratio: 4 / 5; object-position: 90% 50%; }
  .hose-exit { width: 16px; height: 25.6px; margin: -11.2px 0 0 -8px; }
  .cta-row .btn { flex: 1 1 auto; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefit, .benefit + .benefit { padding: 24px 0 8px; border-left: 0; }
  .benefit + .benefit { border-top: 1px solid var(--line); margin-top: 0; }
  .ba { aspect-ratio: 3 / 2; border-radius: var(--radius); }
  .ba-grip { width: 6px; height: 44px; margin: -22px 0 0 -3px; }
  .ba:hover .ba-grip, .ba.is-drag .ba-grip { height: 56px; margin-top: -28px; }
  .ba-label { padding: 4px 8px; font-size: 0.75rem; }
  .audiences { grid-template-columns: minmax(0, 1fr); }
  .audiences:not(.audiences--3) { gap: 14px; }
  a.audience { grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 16px; }
  a.audience .shot { border-radius: var(--radius); }
  a.audience h3 { font-size: 1.1rem; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .process { padding-left: 64px; }
  .step .node { left: -64px; width: 48px; height: 48px; font-size: 12px; }
  .faq .answer p { padding-right: 0; }
  .stat-row { grid-template-columns: minmax(0, 1fr); }
  .orgs, .tags-row, .offer-contact { grid-template-columns: minmax(0, 1fr); }
  .org--b { margin-top: 0; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .bar-cta .cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar-cta .cta-short { display: inline; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .fade-up { opacity: 1; transform: none; }
}
