/* Veikon Pumppu – tyylit (Apple design -periaatteet, ks. suunnittelu/suunnitelma.md)
   Rakenne: 1 tokenit · 2 perusta · 3 asettelu · 4 komponentit · 5 osiot · 6 paneeli ja katselin · 7 käyttäjän asetukset */

/* ───────────────────────── 1. Tokenit ───────────────────────── */
:root {
  color-scheme: light dark;

  /* Järjestelmäfontti: SF Pro (Apple), Segoe UI Variable (Windows 11), Roboto (Android). Ei latauksia. */
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Koko, riviväli ja tracking kulkevat yhdessä: iso teksti tiukka ja tiivis, pieni teksti väljä. */
  --fs-display: clamp(2.625rem, 1.55rem + 4.6vw, 5rem);
  --fs-headline: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-headline-s: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
  --fs-stat: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  --fs-title: clamp(1.3125rem, 1.18rem + 0.55vw, 1.75rem);
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.5rem);
  --fs-eyebrow: clamp(1.0625rem, 1rem + 0.3vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-caption: 0.8125rem;

  --lh-display: 1.04;
  --lh-headline: 1.08;
  --lh-title: 1.2;
  --lh-lead: 1.38;
  --lh-body: 1.5;
  --lh-small: 1.42;

  --tr-display: -0.032em;
  --tr-headline: -0.024em;
  --tr-stat: -0.03em;
  --tr-title: -0.014em;
  --tr-lead: -0.008em;
  --tr-body: 0em;
  --tr-small: 0.004em;
  --tr-caption: 0.012em;

  /* Mitat rem-yksiköinä: käyttäjän tekstikoko skaalaa myös asettelun. */
  --gutter: 1.25rem;
  --container: 73.75rem;
  --section-pad: clamp(4.5rem, 2.8rem + 6.5vw, 8.5rem);
  --head-gap: clamp(2.5rem, 2rem + 2vw, 4rem);
  --radius-tile: clamp(1.125rem, 0.95rem + 0.75vw, 1.75rem);
  --radius-control: 0.875rem;
  --radius-pill: 980px;
  --header-h: 3.25rem;

  /* Väri, vaalea. Teksti ja korostus logosta, taustat kuvien lämpimästä harmaasta. */
  --bg: #fcfcfa;
  --bg-alt: #f3f2ee;
  --surface: #ffffff;
  --tile: #f3f2ee;
  --tile-alt: #ffffff;
  --label: #17233b;
  --label-2: #4f5868;
  --label-3: #5f6675;
  --separator: rgb(23 35 59 / 0.13);
  --tint: #3b5eab;
  --tint-hover: #34549b;
  --tint-pressed: #2c4886;
  --on-tint: #ffffff;
  --tint-soft: rgb(59 94 171 / 0.1);
  --tint-soft-pressed: rgb(59 94 171 / 0.18);
  --press: rgb(23 35 59 / 0.07);
  --focus: #3b5eab;
  --scrim: rgb(9 13 22 / 0.42);
  --material: rgb(252 252 250 / 0.74);
  --material-thick: rgb(252 252 250 / 0.8);
  --material-edge: rgb(255 255 255 / 0.7);
  --edge-shade: rgb(23 35 59 / 0.07);
  --shadow-float: 0 0.75rem 2rem rgb(23 35 59 / 0.16), 0 0.125rem 0.375rem rgb(23 35 59 / 0.08);
  --shadow-sheet: 0 -0.25rem 2.5rem rgb(9 13 22 / 0.16);

  /* Liike: lyhyt ja hillitty. Eleet käyttävät jousia (site.js), nämä vain tilamuutoksille. */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1422;
    --bg-alt: #131b2b;
    --surface: #1a2335;
    --tile: #161f31;
    --tile-alt: #1c2639;
    --label: #f1f3f7;
    --label-2: #b3bbca;
    --label-3: #9aa3b4;
    --separator: rgb(241 243 247 / 0.14);
    --tint: #8eaaf0;
    --tint-hover: #a2b9f3;
    --tint-pressed: #7b99e6;
    --on-tint: #0e1422;
    --tint-soft: rgb(142 170 240 / 0.14);
    --tint-soft-pressed: rgb(142 170 240 / 0.24);
    --press: rgb(241 243 247 / 0.08);
    --focus: #8eaaf0;
    --scrim: rgb(0 0 0 / 0.56);
    --material: rgb(14 20 34 / 0.74);
    --material-thick: rgb(30 40 60 / 0.74);
    --material-edge: rgb(255 255 255 / 0.1);
    --edge-shade: rgb(0 0 0 / 0.3);
    --shadow-float: 0 0.75rem 2rem rgb(0 0 0 / 0.5), 0 0 0 0.5px rgb(255 255 255 / 0.08);
    --shadow-sheet: 0 -0.25rem 2.5rem rgb(0 0 0 / 0.5);
  }
}

@media (min-width: 48em) {
  :root { --gutter: 2rem; }
}

/* ───────────────────────── 2. Perusta ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--font-text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tr-body);
  font-optical-sizing: auto;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; hyphens: manual; }
p, dd, li { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
a { color: var(--tint); text-decoration: none; text-underline-offset: 0.18em; }
@media (hover: hover) { a:hover { text-decoration: underline; } }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[role="list"] { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 0.75rem; top: 0.75rem; z-index: 100;
  padding: 0.625rem 1rem; border-radius: var(--radius-pill);
  background: var(--label); color: var(--bg); font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; text-decoration: none; }

.icon {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ───────────────────────── 3. Asettelu ───────────────────────── */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.section { padding-block: var(--section-pad); }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 46rem; margin-inline: auto; text-align: center; }
.section-head--start { margin-inline: 0; text-align: start; }

.split { display: grid; gap: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
@media (min-width: 64em) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ───────────────────────── 4. Komponentit ───────────────────────── */

/* Typografiset roolit */
.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--label-2);
}
.headline {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-headline);
  line-height: var(--lh-headline);
  letter-spacing: var(--tr-headline);
  font-weight: 700;
}
.lead {
  margin-top: 1.125rem;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  letter-spacing: var(--tr-lead);
  color: var(--label-2);
}
.title {
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  letter-spacing: var(--tr-title);
}
.title--small { font-size: var(--fs-body); line-height: 1.3; letter-spacing: 0; color: var(--label-2); }
.caption {
  margin-top: 0.625rem;
  font-size: var(--fs-caption);
  line-height: var(--lh-small);
  letter-spacing: var(--tr-caption);
  color: var(--label-3);
}
.caption--center { text-align: center; }

/* Painikkeet: palaute painalluksessa, ei vasta irrotuksessa (skill §1). */
.button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border: 0; border-radius: var(--radius-pill);
  background: var(--tint); color: var(--on-tint);
  font-size: var(--fs-body); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em;
  text-align: center; text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 220ms var(--ease-out), background-color 160ms linear;
}
@media (hover: hover) { .button:hover { background: var(--tint-hover); text-decoration: none; } }
.button:active { transform: scale(0.97); background: var(--tint-pressed); transition: transform 100ms ease-out, background-color 0s; }
.button--large { min-height: 3.125rem; padding-inline: 1.625rem; }
.button--block { display: flex; width: 100%; }
.button--secondary { background: var(--tint-soft); color: var(--tint); }
@media (hover: hover) { .button--secondary:hover { background: var(--tint-soft-pressed); } }
.button--secondary:active { background: var(--tint-soft-pressed); }
.button--plain { background: transparent; color: var(--tint); padding-inline: 0.75rem; }
@media (hover: hover) { .button--plain:hover { background: var(--tint-soft); } }
.button--plain:active { background: var(--tint-soft); }
.button--small { min-height: 2rem; padding: 0.3rem 0.875rem; font-size: 0.875rem; letter-spacing: -0.005em; }
/* Pieni painike, mutta osuma-alue 44 px */
.button--small::after { content: ""; position: absolute; inset: -0.375rem -0.25rem; }

.actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

/* Osuma-alue 44 px ilman, että rivi kasvaa */
.link-ext { display: inline-flex; align-items: center; gap: 0.15em; font-weight: 500; padding-block: 0.6rem; margin-block: -0.6rem; }
.link-ext .icon { width: 1em; height: 1em; }

/* Kuvalinkki: avautuu katselimeen omalta paikaltaan */
.photo {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-tile);
  background: var(--tile);
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms var(--ease-out);
}
.photo img { width: 100%; }
.photo:active { transform: scale(0.985); transition-duration: 100ms; }
.photo.is-source { visibility: hidden; }

/* Tietolista (nimike + arvo) */
.specs { display: grid; }
.specs__row {
  display: grid; gap: 0.25rem;
  padding-block: 1rem;
  border-top: 1px solid var(--separator);
}
.specs__row:last-child { border-bottom: 1px solid var(--separator); }
.specs dt { font-weight: 600; }
.specs dd { color: var(--label-2); }
@media (min-width: 40em) {
  .specs__row { grid-template-columns: minmax(8rem, 2fr) minmax(0, 5fr); gap: 1.5rem; }
}

/* ───────────────────────── 5. Osiot ───────────────────────── */

/* Demopalkki: neutraali, ei kilpaile yrityksen toimintojen kanssa */
.demo-bar { background: var(--bg-alt); color: var(--label-2); }
/* Tekstin seassa oleva linkki erottuu muustakin kuin väristä */
.demo-bar a, .footer a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.demo-bar__text {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 0.5rem var(--gutter);
  font-size: var(--fs-caption); line-height: 1.4; letter-spacing: var(--tr-caption);
  text-align: center;
}

/* Yläpalkki: läpikuultava materiaali, sisältö vierii alta. Reunaefekti vain kun sisältöä on palkin alla. */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: background-color 200ms linear;
}
.js .header:not([data-scrolled]) {
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.header::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 100%;
  height: 0.875rem;
  background: linear-gradient(to bottom, var(--edge-shade), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms linear;
}
.header[data-scrolled]::after { opacity: 1; }
.header__inner {
  display: flex; align-items: center; gap: 1rem;
  max-width: calc(var(--container) + 2 * var(--gutter));
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.brand {
  display: inline-flex; align-items: center; gap: 0.625rem;
  min-height: 2.75rem;
  margin-right: auto;
  color: var(--label);
  font-weight: 600; letter-spacing: -0.012em;
}
@media (hover: hover) { .brand:hover { text-decoration: none; } }
.brand__logo { width: 2rem; height: 2rem; border-radius: 50%; }
.nav { display: none; }
.nav__list { display: flex; gap: 0.25rem; }
/* Materiaalin päällä: koko tekstiväri ja hieman painavampi leikkaus, ei himmeää harmaata (skill §12, vibrancy). */
.nav__link {
  display: inline-flex; align-items: center;
  min-height: 2.75rem; padding-inline: 0.75rem;
  color: var(--label);
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.006em;
  border-radius: var(--radius-pill);
  transition: background-color 120ms linear;
}
@media (hover: hover) { .nav__link:hover { text-decoration: none; background: var(--press); } }
.nav__link:active { background: var(--press); }
.header__end { display: flex; align-items: center; gap: 0.5rem; }
.lang {
  display: inline-grid; place-items: center;
  min-width: 2.75rem; min-height: 2.75rem;
  color: var(--label);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
}
@media (hover: hover) { .lang:hover { text-decoration: none; background: var(--press); } }
.header__cta { display: none; }
@media (min-width: 40em) { .header__cta { display: inline-flex; } }
@media (min-width: 60em) { .nav { display: block; } .brand { margin-right: 0; } .nav { margin-inline: auto; } }

.sentinel { height: 1px; margin-bottom: -1px; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 1.2rem + 3.6vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.hero__text {
  max-width: 54rem;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  text-align: center;
}
.hero__title { font-weight: inherit; }
.display {
  display: block;
  margin-top: 0.625rem;
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tr-display);
  font-weight: 700;
}
.display__line { display: inline-block; }
.hero__lead { max-width: 38rem; margin-inline: auto; margin-top: 1.25rem; }
.hero__figure {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: clamp(2rem, 1.25rem + 2.2vw, 3rem) auto 0;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.photo--hero { border-radius: clamp(1.25rem, 0.9rem + 1.2vw, 2rem); }

/* Tiedot */
.facts__title {
  font-family: var(--font-display);
  font-size: var(--fs-headline-s);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-align: center;
}
.facts__list { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); display: grid; }
.fact {
  display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--separator);
}
.fact:last-child { border-bottom: 1px solid var(--separator); }
.fact__value {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  line-height: 1;
  letter-spacing: var(--tr-stat);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.fact__text { color: var(--label-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.fact__link { display: inline-flex; margin-top: 0.25rem; font-size: var(--fs-small); min-height: 2.75rem; }
@media (min-width: 40em) {
  .facts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
  .fact { grid-template-columns: 1fr; gap: 0.75rem; padding-block: 1.75rem; }
  .fact:nth-last-child(2) { border-bottom: 1px solid var(--separator); }
}
@media (min-width: 64em) {
  .facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { border-bottom: 1px solid var(--separator); }
}

/* Palvelut */
.tiles {
  display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  margin-top: var(--head-gap);
}
.tile {
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-tile);
  background: var(--tile);
}
.section--alt .tile { background: var(--tile-alt); }
.tile__figure .photo { border-radius: 0; background: transparent; }
.tile__figure .caption { padding: 0 clamp(1.25rem, 1rem + 1vw, 2rem); }
.tile__body { padding: 0.875rem clamp(1.25rem, 1rem + 1vw, 2rem) clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.tile__body .title { margin-bottom: 0.5rem; }
.tile__body p { color: var(--label-2); }
.tile--wide .tile__body { padding-top: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
.tile__body--brands { border-top: 1px solid var(--separator); }
/* Erotin kunkin nimen edessä. Lista on siirretty erottimen leveyden verran vasemmalle ja kääre leikkaa, joten
   rivin alussa oleva erotin jää näkymättömiin: ei roikkuvia pisteitä rivien päissä. */
.brands-wrap { margin-top: 0.625rem; overflow: hidden; }
.brands { display: flex; flex-wrap: wrap; row-gap: 0.25rem; margin-left: -1.5rem; }
.brands li { font-size: var(--fs-title); line-height: 1.3; letter-spacing: var(--tr-title); font-weight: 600; }
.brands li::before { content: "·"; display: inline-block; width: 1.5rem; text-align: center; color: var(--label-3); font-weight: 400; }
@media (min-width: 48em) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile__body--brands { border-top: 0; border-left: 1px solid var(--separator); }
}

/* Työn kulku */
.steps { margin-top: 2.5rem; display: grid; }
.step {
  position: relative;
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem;
  padding-bottom: 1.75rem;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before {
  content: "";
  position: absolute; left: calc(1.25rem - 0.5px); top: 3rem; bottom: 0.5rem;
  width: 1px; background: var(--separator);
}
.step__num {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--tile-alt);
  box-shadow: inset 0 0 0 1px var(--separator);
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.step__title { margin-top: 0.4rem; font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--tr-title); }
.step__body p { margin-top: 0.375rem; color: var(--label-2); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; align-items: start; }
.gallery .caption { font-size: 0.75rem; }
@media (min-width: 64em) {
  .gallery { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 0.5rem; }
  .gallery .caption { font-size: var(--fs-caption); }
}

/* Hinta: yhtälö */
.sum { margin-top: var(--head-gap); display: grid; gap: 0.75rem; }
.sum__item {
  position: relative;
  padding: 1.25rem 1.5rem 1.375rem 3.75rem;
  border-radius: var(--radius-tile);
  background: var(--tile);
}
.sum__item:first-child { padding-left: 1.5rem; }
.sum__op {
  position: absolute; left: 1.375rem; top: 1.05rem;
  font-family: var(--font-display);
  font-size: 1.75rem; line-height: 1; font-weight: 300;
  color: var(--label-3);
}
.sum__title { font-size: var(--fs-title); line-height: var(--lh-title); letter-spacing: var(--tr-title); }
.sum__text { margin-top: 0.375rem; color: var(--label-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.sum__item--total { background: var(--label); color: var(--bg); }
.sum__item--total .sum__op { color: inherit; opacity: 0.75; }
.sum__item--total .sum__text { color: inherit; opacity: 0.86; font-size: var(--fs-body); }
@media (min-width: 64em) {
  .sum { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .sum__item, .sum__item:first-child { padding: 4rem 1.75rem 1.75rem; }
  .sum__op { left: 1.75rem; top: 1.5rem; font-size: 2rem; }
  .sum__item--total {
    grid-column: 1 / -1;
    display: flex; align-items: baseline; gap: 1.5rem;
    padding: 1.75rem 1.75rem 1.75rem 4.5rem;
  }
  .sum__item--total .sum__op { top: 1.6rem; }
  .sum__item--total .sum__text { margin-top: 0; }
}

/* Yritys */
#yritys .specs { align-self: center; }

/* Yhteys */
.contact__inner { max-width: 46rem; text-align: center; }
.contact__phone-row { margin-top: 1.5rem; }
.contact__phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: var(--tr-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding-block: 0.25rem;
}
@media (hover: hover) { .contact__phone:hover { text-decoration: none; color: var(--tint-hover); } }
.contact__phone:active { color: var(--tint-pressed); }
.contact .actions { margin-top: 1.5rem; }
.contact__specs { margin-top: 3rem; text-align: start; }

/* Alatunniste */
.footer {
  padding-block: 2rem;
  background: var(--bg-alt);
  color: var(--label-3);
  font-size: var(--fs-caption); line-height: var(--lh-small); letter-spacing: var(--tr-caption);
}
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.75rem; }
.footer__inner p:last-child { margin-left: auto; }
.footer a { display: inline-block; padding-block: 0.8rem; }

/* Kelluva toimintapalkki (kapea näyttö). Ilmestyy, kun heron toiminnot poistuvat näkyvistä. */
.dock { display: none; }
@media (max-width: 47.99em) {
  .js .footer { padding-bottom: calc(2rem + 4.75rem + env(safe-area-inset-bottom)); }
  html.js { scroll-padding-bottom: 6rem; }
  .js .dock {
    position: fixed; z-index: 60;
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    display: flex; gap: 0.5rem;
    padding: 0.4375rem;
    border-radius: var(--radius-pill);
    background: var(--material-thick);
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    backdrop-filter: saturate(180%) blur(28px);
    box-shadow: var(--shadow-float), inset 0 1px 0 var(--material-edge);
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0) scale(0.94);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 240ms linear, transform 420ms var(--ease-out), visibility 0s linear 420ms;
  }
  .js .dock[data-visible] {
    opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    transition: opacity 200ms linear, transform 420ms var(--ease-out), visibility 0s;
  }
  .dock .button { flex: 1 1 0; min-height: 3rem; padding-inline: 0.75rem; }
  .dock .button--secondary { flex: 0 1 auto; padding-inline: 1.125rem; }
}

/* 404 */
.notfound {
  min-height: 100svh;
  display: grid; place-content: center; justify-items: center; gap: 1.25rem;
  padding: 3rem var(--gutter);
  text-align: center;
}
.notfound__logo { width: 4rem; height: 4rem; border-radius: 50%; }
.notfound .lead { max-width: 32rem; margin-top: 0; }
.notfound__en { color: var(--label-2); font-size: var(--fs-small); }

/* ───────────────────────── 6. Paneeli ja katselin ───────────────────────── */
.sheet, .viewer {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--label);
  overflow: hidden;
}
.sheet::backdrop, .viewer::backdrop { background: transparent; }
.sheet:not([open]), .viewer:not([open]) { display: none; }
.sheet__scrim, .viewer__scrim { position: absolute; inset: 0; opacity: 0; }
.sheet__scrim { background: var(--scrim); }

.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  width: 100%; max-width: 34rem; max-height: calc(100% - max(0.75rem, env(safe-area-inset-top)) - 0.5rem);
  margin-inline: auto;
  background: var(--surface);
  border-radius: 1.375rem 1.375rem 0 0;
  box-shadow: var(--shadow-sheet);
  padding-bottom: env(safe-area-inset-bottom);
  will-change: transform;
  outline: none;
}
.sheet__grab { flex: none; padding: 0.4375rem 1.25rem 0; touch-action: pinch-zoom; cursor: grab; user-select: none; -webkit-user-select: none; }
.is-dragging .sheet__grab, .is-dragging .sheet__body { cursor: grabbing; }
.sheet__grabber {
  display: block; width: 2.25rem; height: 0.3125rem; margin: 0 auto 0.625rem;
  border-radius: var(--radius-pill); background: var(--label-3); opacity: 0.4;
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sheet__title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.sheet__close {
  position: relative;
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem; margin-right: -0.4rem;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--label-2);
  -webkit-tap-highlight-color: transparent;
}
.sheet__close::before {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 1.875rem; height: 1.875rem; border-radius: 50%;
  background: var(--tile); transition: transform 100ms ease-out;
}
.sheet__close .icon { position: relative; width: 1rem; height: 1rem; stroke-width: 2.6; }
.sheet__close:active::before { transform: scale(0.9); background: var(--press); }
.sheet__lead { margin-top: 0.25rem; color: var(--label-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.sheet__body {
  overflow-y: auto; overscroll-behavior: contain;
  padding: 0 1.25rem 1.25rem;
  touch-action: pan-y;
}
.sheet__body[data-drag="on"] { touch-action: pinch-zoom; }
.is-dragging, .is-dragging * { user-select: none; -webkit-user-select: none; }

.group { margin: 1.25rem 0 0; padding: 0; border: 0; min-width: 0; }
.group__label {
  display: block; margin: 0 0 0.5rem 0.25rem; padding: 0;
  font-size: var(--fs-caption); line-height: 1.3; letter-spacing: 0.01em; font-weight: 600;
  color: var(--label-2);
}
.group__opt { font-weight: 400; }
.choices { overflow: hidden; border-radius: var(--radius-control); background: var(--tile); }
.choice {
  position: relative;
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 2.875rem; padding: 0.625rem 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.choice + .choice::before {
  content: ""; position: absolute; top: 0; left: 1rem; right: 0; height: 1px; background: var(--separator);
}
.choice:active { background: var(--press); }
.choice__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.choice__text { flex: 1; }
.choice__check { width: 1.25rem; height: 1.25rem; color: var(--tint); stroke-width: 2.4; visibility: hidden; }
.choice:has(.choice__input:checked) .choice__check { visibility: visible; }
.choice:has(.choice__input:checked) .choice__text { font-weight: 600; }
.choice:has(.choice__input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--radius-control); }
.input {
  width: 100%; min-height: 2.875rem;
  padding: 0.625rem 1rem;
  border: 0; border-radius: var(--radius-control);
  background: var(--tile); color: var(--label);
  font-size: var(--fs-body);
}
.input::placeholder { color: var(--label-3); opacity: 1; }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
/* Esikatselu viestikuplana: tuttu vertauskuva lähtevästä viestistä */
.bubble {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 1.125rem 1.125rem 0.375rem 1.125rem;
  background: var(--tint-soft);
  color: var(--label);
  font-size: 1rem; line-height: 1.45;
  white-space: pre-line;
}
.note { margin-top: 0.625rem; color: var(--label-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.note--fine { margin-top: 1rem; font-size: var(--fs-caption); color: var(--label-3); text-align: center; }
.sheet__actions { display: grid; gap: 0.625rem; margin-top: 1.5rem; }
.sheet__alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }

@media (min-width: 48em) {
  .sheet__panel {
    inset: 0; margin: auto;
    width: min(30rem, calc(100% - 3rem)); height: fit-content;
    max-height: min(46rem, calc(100% - 3rem));
    border-radius: 1.5rem;
    padding-bottom: 0;
    box-shadow: 0 1.5rem 4rem rgb(9 13 22 / 0.28);
  }
  .sheet__grabber { display: none; }
  .sheet__grab { padding-top: 1.25rem; cursor: auto; touch-action: auto; }
  .sheet__body { padding-bottom: 1.5rem; }
}

/* Katselin */
.viewer { color: #fff; }
.viewer__scrim { background: rgb(6 8 12); }
.viewer__stage { position: absolute; inset: 0; touch-action: pinch-zoom; }
.viewer__img {
  position: absolute; left: 0; top: 0;
  max-width: none;
  transform-origin: 0 0;
  will-change: transform;
  border-radius: 0.75rem;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  cursor: grab;
}
.is-dragging .viewer__img { cursor: grabbing; }
.viewer__caption {
  position: absolute; left: 0; right: 0;
  bottom: max(1rem, env(safe-area-inset-bottom));
  padding-inline: 1.5rem;
  color: rgb(255 255 255 / 0.86);
  font-size: var(--fs-small); line-height: var(--lh-small);
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.viewer__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  color: #fff;
  opacity: 0;
  transition: transform 100ms ease-out;
}
.viewer__close:active { transform: scale(0.92); }
.viewer__close .icon { width: 1.125rem; height: 1.125rem; stroke-width: 2.4; }
.viewer__close:focus-visible { outline-color: #fff; }

/* Vähennetty liike: ristihäivytys (site.js asettaa luokan) */
.is-fading .sheet__panel, .is-fading .sheet__scrim, .is-fading .viewer__scrim,
.is-fading .viewer__img, .is-fading .viewer__caption, .is-fading .viewer__close {
  transition: opacity 200ms linear;
}

/* ───────────────────────── 7. Käyttäjän asetukset ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .photo, .nav__link { transition: none; }
  .js .dock, .js .dock[data-visible] { transform: none; transition: opacity 200ms linear, visibility 0s linear 200ms; }
  .js .dock[data-visible] { transition: opacity 200ms linear, visibility 0s; }
}

@media (prefers-reduced-transparency: reduce) {
  .header, .js .dock, .viewer__close {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .header { background: var(--bg) !important; }
  .js .dock { background: var(--surface); }
  .viewer__close { background: rgb(60 64 72); }
}

@media (prefers-contrast: more) {
  :root { --label-2: var(--label); --label-3: var(--label); --separator: var(--label); --tint-soft: transparent; }
  .header, .js .dock { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .header { border-bottom: 1px solid var(--label); }
  .js .dock { box-shadow: none; outline: 1px solid var(--label); }
  .tile, .sum__item, .choices, .input, .button--secondary { box-shadow: inset 0 0 0 1px var(--label); }
}

@media (forced-colors: active) {
  .button, .sheet__close, .viewer__close { border: 1px solid ButtonText; }
  .choice:has(.choice__input:checked) { outline: 2px solid Highlight; outline-offset: -2px; }
}

@media print {
  .header, .dock, .demo-bar, .sheet, .viewer, .skip { display: none !important; }
  .section { padding-block: 1.5rem; }
}
