/* =============================================================================
   Lapa Recycling: style.css
   -----------------------------------------------------------------------------
   Rakenne:
   1. Pohja (rivit alla, ennen LAPA RECYCLING -osiota): demon tuuli-seedin
      tyylit sellaisenaan. Mittakaava on referenssipikseleinä muodossa
      calc(N * var(--u)): --u on 1 px 1650 px näkymässä ja skaalautuu siitä.
      Tabletin ja mobiilin mitat ovat pohjan lopussa omina arvoinaan.
   2. LAPA RECYCLING -osio tiedoston lopussa: brändi, alasivujen osat ja
      kaikki sivustokohtaiset muutokset. Sama valitsin voi olla molemmissa,
      ja loppupään versio voittaa.

   Fontti: Manrope (OFL), omalta palvelimelta kansiosta /fontit/.
   ============================================================================= */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fontit/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fontit/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- Värit: pohjan oletukset, Lapan värit yliajetaan osiossa 1 ---- */
  --vari-tumma: #1a3027;            /* tummat osiot ja footer */
  --vari-tumma-viiva: #354b42;      /* hiusviivat tummalla pohjalla */
  --vari-tumma-reuna: #3c5248;      /* outline-napin reuna tummalla */
  --vari-korostus: #c8f369;         /* napit, pisteet, korostetut yksiköt */
  --vari-korostus-hover: #d8f98f;   /* korostusnapin hover */
  --vari-korostus-teksti: #0c0f0e;  /* teksti korostusvärin päällä */

  --vari-tausta: #ffffff;
  --vari-tausta-alt: #f3f5f7;       /* vaaleanharmaat osiot */
  --vari-kortti: #ffffff;
  --vari-kortti-hover: #fbfcfc;

  --vari-otsikko: #0c0f0e;
  --vari-teksti: #363a38;           /* leipäteksti */
  --vari-teksti-vahva: #262828;     /* lyhyet faktatekstit */
  --vari-teksti-kortti: #474946;    /* korttien leipäteksti */
  --vari-himmea: #5b6d66;           /* labelit, yksiköt, isot järjestysnumerot */
  --vari-selite: #414440;           /* tilastojen selitteet */
  --vari-paivays: #5a5a5a;

  --vari-viiva: #e3e5e4;            /* hiusviivat valkoisella */
  --vari-viiva-alt: #d9dcde;        /* hiusviivat harmaalla */
  --vari-kortti-viiva: #dadada;

  --vari-tumma-teksti: #c9ddd4;     /* leipäteksti tummalla */
  --vari-tumma-himmea: #9aada4;     /* labelit tummalla */
  --vari-footer-label: #60766d;
  --vari-footer-linkki: #bed0c7;
  --vari-footer-pieni: #99aca3;
  --vari-footer-ala: #aec1b8;

  --vari-hero-varjo: 8, 16, 12;     /* heron liukuvärjäyksen sävy (rgb) */
  --vari-cta-pohja: #1b201e;
  --vari-cta-varjo: rgba(18, 22, 20, 0.66);

  /* ---- Typografia ---- */
  --fontti: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* ---- Mittakaava ---- */
  --u: clamp(0.8px, 0.0606vw, 1.12px);
  --reunus: calc(55 * var(--u));
  --osio: calc(150 * var(--u));
  --osio-tiivis: calc(128 * var(--u));
  --header-korkeus: calc(101 * var(--u));
  --header-korkeus-pieni: calc(78 * var(--u));
  --pyoristys: 4px;

  /* ---- Liike ---- */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-korkeus-pieni);
}

body {
  margin: 0;
  background: var(--vari-tausta);
  color: var(--vari-teksti);
  font-family: var(--fontti);
  font-weight: 300;
  font-size: max(16px, calc(18 * var(--u)));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--vari-korostus); outline-offset: 3px; }

.sr-only {
  position: absolute; 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; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--pyoristys);
  background: var(--vari-korostus); color: var(--vari-korostus-teksti);
  font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

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

.container {
  width: 100%;
  max-width: calc(1650 * var(--u));
  margin-inline: auto;
  padding-inline: var(--reunus);
}

.ico { width: max(12px, calc(16 * var(--u))); height: max(12px, calc(16 * var(--u))); flex: none; }

/* ============ Tekstityylit ============ */
.display {
  font-size: calc(59 * var(--u));
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.008em;
  color: var(--vari-otsikko);
}
.display--lg { font-size: calc(65 * var(--u)); line-height: 1.05; letter-spacing: -0.004em; }
.display--xl { font-size: calc(81.6 * var(--u)); line-height: 1.02; letter-spacing: -0.006em; }

.label {
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.145em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vari-himmea);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  margin-bottom: calc(36 * var(--u));
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.152em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vari-himmea);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: max(5px, calc(6 * var(--u)));
  height: max(5px, calc(6 * var(--u)));
  border-radius: 50%;
  background: var(--vari-korostus);
}
.eyebrow--accent { color: var(--vari-korostus); }

/* ============ Napit ja linkit ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(14 * var(--u));
  min-height: calc(59 * var(--u));
  padding: calc(18 * var(--u)) calc(31 * var(--u)) calc(18 * var(--u)) calc(32 * var(--u));
  border: 1px solid transparent;
  border-radius: var(--pyoristys);
  font-size: max(12.5px, calc(15.8 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.029em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn .ico { width: max(13px, calc(17 * var(--u))); height: max(13px, calc(17 * var(--u))); transition: transform .45s var(--ease); }
.btn:hover .ico { transform: translate(2px, -2px); }
.btn:hover .ico:has(use[href="#i-nuoli-oikea"]) { transform: translateX(4px); }

.btn--accent { background: var(--vari-korostus); color: var(--vari-korostus-teksti); }
.btn--accent:hover { background: var(--vari-korostus-hover); }

.btn--outline { border-color: var(--vari-otsikko); color: var(--vari-otsikko); }
.btn--outline:hover { background: var(--vari-otsikko); color: #fff; }

.btn--outline-light { border-color: var(--vari-tumma-reuna); color: #fff; }
.btn--outline-light:hover { border-color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .06); }

.btn--ghost {
  min-height: calc(49 * var(--u));
  padding: 0 calc(22 * var(--u));
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
  font-size: max(12px, calc(14.5 * var(--u)));
  letter-spacing: 0.06em;
}
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--vari-otsikko); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: calc(12 * var(--u));
  font-size: max(12.5px, calc(15.8 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vari-otsikko);
}
.link-arrow .ico { transition: transform .45s var(--ease); }
.link-arrow:hover .ico { transform: translate(3px, -3px); }

/* ============ Header ============ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), transform .55s var(--ease);
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-korkeus);
  transition: height .45s var(--ease);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--vari-tumma) 94%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header.is-scrolled .header__inner { height: var(--header-korkeus-pieni); }
.header.is-hidden { transform: translateY(-100%); }

.header__logo {
  position: relative;
  z-index: 2;
  font-size: max(14px, calc(17.8 * var(--u)));
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.header__logo span { margin-inline: 0.02em; }

.nav__list { display: flex; align-items: center; gap: calc(39 * var(--u)); }
.nav__link {
  position: relative;
  font-size: max(12px, calc(14.5 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__mobile-cta { display: none; }

.header__actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: calc(16 * var(--u));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--pyoristys);
}
.menu-toggle__bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* ============ 01 Hero ============ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: calc(640 * var(--u));
  max-height: calc(1080 * var(--u));
  overflow: hidden;
  color: #fff;
  background: var(--vari-tumma);
}
.hero__media { position: absolute; inset: 0; }
.hero__media picture, .hero__media img, .hero__media video { width: 100%; height: 100%; }
.hero__media img, .hero__media video { object-fit: cover; object-position: 50% 62%; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(var(--vari-hero-varjo), .34) 0%,
      rgba(var(--vari-hero-varjo), 0) 24%,
      rgba(var(--vari-hero-varjo), 0) 42%,
      rgba(var(--vari-hero-varjo), .42) 66%,
      rgba(var(--vari-hero-varjo), .78) 88%,
      rgba(var(--vari-hero-varjo), .88) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: calc(61 * var(--u));
}
.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(48 * var(--u));
}
.hero__title {
  font-size: calc(121 * var(--u));
  font-weight: 400;
  line-height: .98;
  letter-spacing: -0.015em;
  color: #fff;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  /* tila alapidennyksille, jotta g ja p eivät leikkaudu rivinostossa */
  padding-bottom: .24em;
  margin-bottom: -.24em;
}
.hero__title .line > span { display: block; }
.hero__side {
  flex: none;
  width: calc(323 * var(--u));
  margin-bottom: calc(18 * var(--u));
  font-size: max(14px, calc(16 * var(--u)));
  line-height: 1.52;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, .86);
}
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(48 * var(--u));
  margin-top: calc(45 * var(--u));
}
.hero__lead {
  max-width: calc(530 * var(--u));
  font-size: max(16px, calc(20 * var(--u)));
  line-height: 1.5;
  color: #fff;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(27 * var(--u));
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: calc(10 * var(--u)) calc(24 * var(--u));
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.hero__tags li { display: flex; align-items: center; gap: calc(9 * var(--u)); }
.hero__tags li::before {
  content: "";
  width: max(5px, calc(6 * var(--u)));
  height: max(5px, calc(6 * var(--u)));
  border-radius: 50%;
  background: var(--vari-korostus);
}

/* ============ Osiot ============ */
.section { padding-block: var(--osio); }
.section--tight { padding-block: var(--osio-tiivis); }
.section--alt { background: var(--vari-tausta-alt); }
.section--dark { background: var(--vari-tumma); color: var(--vari-tumma-teksti); }

/* Osion yläotsikkorivi: numero vasemmalla, tunnuslause oikealla, viiva alla */
.sec-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(24 * var(--u));
  padding-bottom: calc(34 * var(--u));
}
.sec-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--vari-viiva);
  transform-origin: left;
}
.section--alt .sec-head::after { background: var(--vari-viiva-alt); }
.sec-head__index,
.sec-head__title {
  font-size: max(11.5px, calc(14.5 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.135em;
  line-height: 1.2;
  text-transform: uppercase;
}
.sec-head__index { color: var(--vari-himmea); }
.sec-head__title { color: var(--vari-otsikko); text-align: right; }

/* ============ 02 About + 03 luvut ============ */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(550 * var(--u)));
  align-items: start;
  column-gap: calc(80 * var(--u));
}
.about__title { max-width: calc(590 * var(--u)); }
.about__text {
  max-width: calc(640 * var(--u));
  margin-top: calc(40 * var(--u));
  font-size: max(16px, calc(19 * var(--u)));
  line-height: 1.55;
  letter-spacing: 0.02em;
}
.about__btn { margin-top: calc(44 * var(--u)); }

.about__facts { margin-top: calc(7 * var(--u)); border-bottom: 1px solid var(--vari-viiva); }
.about__fact { border-top: 1px solid var(--vari-viiva); padding: calc(38 * var(--u)) 0 calc(30 * var(--u)); }
.about__fact .label { font-size: max(10.5px, calc(11.8 * var(--u))); font-weight: 600; letter-spacing: 0.21em; }
.about__fact dd {
  max-width: calc(340 * var(--u));
  margin-top: calc(22 * var(--u));
  font-size: max(16px, calc(19 * var(--u)));
  line-height: 1.44;
  letter-spacing: -0.008em;
  color: var(--vari-teksti-vahva);
}

.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: calc(133 * var(--u));
}
.stats::before,
.stats::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--vari-viiva);
  transform-origin: left;
}
.stats::before { top: 0; }
.stats::after { bottom: 0; }
.stat { padding: calc(59 * var(--u)) calc(16 * var(--u)) calc(47 * var(--u)) 0; }
.stat__index {
  display: block;
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
  color: var(--vari-himmea);
}
.stat__value {
  display: flex;
  align-items: baseline;
  margin-top: calc(27 * var(--u));
  font-size: calc(81.6 * var(--u));
  font-weight: 220;
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--vari-otsikko);
}
.stat__unit { margin-left: .03em; font-size: .62em; letter-spacing: -0.01em; color: var(--vari-himmea); }
.stat__label {
  margin-top: calc(17 * var(--u));
  font-size: max(11.5px, calc(14.5 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vari-selite);
}

/* ============ 04 Solutions ============ */
.solutions { padding-top: calc(141 * var(--u)); }
.solutions__intro {
  max-width: calc(775 * var(--u));
  margin-top: calc(74 * var(--u));
  font-size: max(17px, calc(20 * var(--u)));
  line-height: 1.55;
  letter-spacing: 0.022em;
  color: #323736;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: calc(66 * var(--u));
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(48 * var(--u));
  min-height: calc(536 * var(--u));
  padding: calc(41 * var(--u)) calc(26 * var(--u)) calc(46 * var(--u)) calc(35 * var(--u));
  background: var(--vari-kortti);
  transition: background-color .45s var(--ease);
}
.card:first-child { border-radius: 3px 0 0 3px; }
.card:last-child { border-radius: 0 3px 3px 0; }
.card + .card { border-left: 1px solid var(--vari-kortti-viiva); }
.card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--vari-korostus);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.card:hover { background: var(--vari-kortti-hover); }
.card:hover::before { transform: scaleX(1); }
.card__index {
  font-size: max(11.5px, calc(14.5 * var(--u)));
  font-weight: 400;
  letter-spacing: 0.138em;
  line-height: 1.2;
  color: var(--vari-himmea);
}
.card__icon {
  width: max(24px, calc(28 * var(--u)));
  height: max(24px, calc(28 * var(--u)));
  fill: none;
  stroke: #1e2822;
  stroke-width: 1.35;
  stroke-linejoin: round;
  transition: transform .5s var(--ease);
}
.card:hover .card__icon { transform: translateY(-3px); }
.card__title {
  margin-top: calc(36 * var(--u));
  font-size: max(21px, calc(28 * var(--u)));
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--vari-otsikko);
}
.card__text {
  margin-top: calc(12 * var(--u));
  font-size: max(15px, calc(16 * var(--u)));
  line-height: 1.5;
  letter-spacing: 0.009em;
  color: var(--vari-teksti-kortti);
}

/* ============ 05 Projects ============ */
.project {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(74 * var(--u));
  align-items: center;
  padding-block: calc(79 * var(--u));
}
.project:first-of-type { padding-top: calc(75 * var(--u)); }
.project:last-of-type { padding-bottom: 0; }
.project + .project { border-top: 1px solid var(--vari-viiva); padding-top: calc(81 * var(--u)); }
.project--reverse .project__media { order: 2; }
.project__body { padding-top: calc(14 * var(--u)); }
.project__media {
  aspect-ratio: 733 / 551;
  overflow: hidden;
  border-radius: var(--pyoristys);
  background: var(--vari-tausta-alt);
}
.project__media picture, .project__media img { width: 100%; height: 100%; }
.project__media img { object-fit: cover; transition: transform 1.3s var(--ease); }
.project:hover .project__media img { transform: scale(1.035); }
.project__title {
  max-width: 8.6em;
  margin-top: calc(27 * var(--u));
  font-size: calc(52 * var(--u));
  font-weight: 300;
  line-height: .965;
  letter-spacing: -0.028em;
  color: var(--vari-otsikko);
}
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: calc(16 * var(--u)) calc(56 * var(--u));
  margin-top: calc(29 * var(--u));
  padding: calc(33 * var(--u)) 0 calc(31 * var(--u));
  border-top: 1px solid var(--vari-viiva);
  border-bottom: 1px solid var(--vari-viiva);
}
.project__meta .label { font-size: max(10.5px, calc(11.8 * var(--u))); font-weight: 600; letter-spacing: 0.205em; }
.project__meta dd {
  margin-top: calc(16 * var(--u));
  font-size: max(17px, calc(22.7 * var(--u)));
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.012em;
  color: #0e0e0e;
}
.project .link-arrow { margin-top: calc(40 * var(--u)); }

/* ============ 06 Approach ============ */
.approach { padding-top: calc(130 * var(--u)); padding-bottom: var(--osio); }
.approach .eyebrow { letter-spacing: 0.208em; }
.approach__title { max-width: calc(590 * var(--u)); }
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: calc(71 * var(--u));
}
.principle { padding: calc(10 * var(--u)) calc(40 * var(--u)) calc(18 * var(--u)) 0; }
.principle + .principle { border-left: 1px solid var(--vari-viiva-alt); padding-left: calc(55 * var(--u)); }
.principle__index {
  display: block;
  font-size: calc(65.8 * var(--u));
  font-weight: 220;
  line-height: 1;
  color: var(--vari-himmea);
}
.principle__title {
  margin-top: calc(27 * var(--u));
  font-size: max(12.5px, calc(15.8 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vari-otsikko);
}
.principle__text {
  max-width: calc(440 * var(--u));
  margin-top: calc(17 * var(--u));
  font-size: max(16px, calc(19 * var(--u)));
  line-height: 1.42;
  letter-spacing: -0.009em;
  color: #37393b;
  text-wrap: balance;
}

/* ============ 07 Commitment ============ */
.commitment__grid {
  display: grid;
  grid-template-columns: minmax(0, 840fr) minmax(0, 621fr);
  column-gap: calc(80 * var(--u));
  align-items: start;
}
.commitment__body { padding-top: calc(19 * var(--u)); }
.commitment .eyebrow { margin-bottom: calc(59 * var(--u)); font-size: max(11px, calc(14.2 * var(--u))); letter-spacing: 0.2465em; }
.commitment__title { max-width: calc(780 * var(--u)); color: #fff; }
.commitment__text {
  max-width: calc(690 * var(--u));
  margin-top: calc(33 * var(--u));
  font-size: max(16px, calc(21 * var(--u)));
  line-height: 1.48;
  color: var(--vari-tumma-teksti);
}
.commitment .btn { margin-top: calc(51 * var(--u)); }
.commitment__stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: calc(24 * var(--u)) calc(60 * var(--u));
  margin-top: calc(55 * var(--u));
  padding-top: calc(55 * var(--u));
}
.commitment__stats::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--vari-tumma-viiva);
  transform-origin: left;
}
.commitment__value {
  font-size: calc(42 * var(--u));
  font-weight: 220;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}
.commitment__unit { margin-left: .04em; font-size: .72em; color: var(--vari-korostus); }
.commitment__label {
  margin-top: calc(24 * var(--u));
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vari-tumma-himmea);
}
.commitment__media {
  aspect-ratio: 621 / 803;
  overflow: hidden;
  border-radius: var(--pyoristys);
  background: var(--vari-tumma-viiva);
}
.commitment__media picture, .commitment__media img { width: 100%; height: 100%; }
.commitment__media img { object-fit: cover; }

/* ============ 08 Insights ============ */
.insights { padding-top: calc(152 * var(--u)); padding-bottom: calc(158 * var(--u)); }
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: calc(50 * var(--u));
  margin-top: calc(74 * var(--u));
}
.post__link { display: block; }
.post__media {
  aspect-ratio: 480 / 321;
  overflow: hidden;
  border-radius: var(--pyoristys);
  background: var(--vari-tausta-alt);
}
.post__media picture, .post__media img { width: 100%; height: 100%; }
.post__media img { object-fit: cover; transition: transform 1.2s var(--ease); }
.post__link:hover .post__media img { transform: scale(1.045); }
.post .label { margin-top: calc(38 * var(--u)); }
.post__title {
  max-width: calc(300 * var(--u));
  margin-top: calc(21 * var(--u));
  font-size: max(19px, calc(25 * var(--u)));
  font-weight: 400;
  line-height: 1.26;
  letter-spacing: 0.024em;
  color: var(--vari-otsikko);
}
.post__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: calc(23 * var(--u));
  padding-top: calc(25 * var(--u));
  border-top: 1px solid var(--vari-viiva);
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 400;
  letter-spacing: 0.109em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vari-paivays);
}
.post__meta .ico { color: var(--vari-otsikko); transition: transform .45s var(--ease); }
.post__link:hover .post__meta .ico { transform: translate(3px, -3px); }

/* ============ 09 CTA ============ */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: calc(174 * var(--u)) calc(171 * var(--u));
  background: var(--vari-cta-pohja);
  color: #fff;
  text-align: center;
}
.cta__media { position: absolute; inset: 0; }
.cta__media picture, .cta__media img { width: 100%; height: 100%; }
.cta__media img { object-fit: cover; object-position: 50% 55%; filter: grayscale(.3) brightness(.92); }
.cta__media::after { content: ""; position: absolute; inset: 0; background: var(--vari-cta-varjo); }
.cta__content { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta .eyebrow { margin-bottom: 0; font-size: max(11px, calc(14.2 * var(--u))); letter-spacing: 0.134em; }
.cta__title { max-width: calc(800 * var(--u)); margin-top: calc(48 * var(--u)); color: #fff; }
.cta__text {
  margin-top: calc(13 * var(--u));
  font-size: max(17px, calc(23 * var(--u)));
  line-height: 1.4;
  letter-spacing: 0.009em;
  color: rgba(255, 255, 255, .72);
}
.cta .btn { margin-top: calc(56 * var(--u)); }

/* ============ Footer ============ */
.footer {
  padding: calc(116 * var(--u)) 0 calc(44 * var(--u));
  background: var(--vari-tumma);
  color: var(--vari-footer-linkki);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 385fr) repeat(4, minmax(0, 288fr));
  padding-bottom: calc(96 * var(--u));
  border-bottom: 1px solid var(--vari-tumma-viiva);
}
.footer__brand {
  align-self: start;
  margin-top: calc(2 * var(--u));
  font-size: calc(49.3 * var(--u));
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #fff;
}
.footer__brand span { color: var(--vari-korostus); }
.footer__label {
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.127em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vari-footer-label);
}
.footer__col ul {
  display: grid;
  gap: calc(17 * var(--u));
  margin-top: calc(35 * var(--u));
  font-size: max(15px, calc(17.5 * var(--u)));
  line-height: 1.45;
}
.footer__col a { transition: color .3s var(--ease); }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: calc(42 * var(--u));
  font-size: max(13px, calc(14.5 * var(--u)));
  letter-spacing: 0.02em;
  color: var(--vari-footer-pieni);
}
.footer__legal {
  display: flex;
  gap: calc(33 * var(--u));
  font-size: max(12px, calc(15.1 * var(--u)));
  letter-spacing: 0.038em;
  text-transform: uppercase;
  color: var(--vari-footer-ala);
}
.footer__legal a:hover { color: #fff; }

/* ============ Animaatiot ============ */
/* Heron sisääntulo: kuva laskeutuu, otsikkorivit nousevat maskin takaa */
.js .hero__media picture,
.js .hero__media video { transform: scale(1.08); transition: transform 2.6s var(--ease-out); }
.js.is-loaded .hero__media picture,
.js.is-loaded .hero__media video { transform: none; }

.js .hero__title .line > span { transform: translateY(108%); transition: transform 1.25s var(--ease-out) .25s; }
.js .hero__title .line:nth-child(2) > span { transition-delay: .38s; }
.js.is-loaded .hero__title .line > span { transform: none; }

.js .hero-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease) calc(var(--viive, 0) * 110ms + 250ms),
              transform 1.1s var(--ease-out) calc(var(--viive, 0) * 110ms + 250ms);
}
.js.is-loaded .hero-in { opacity: 1; transform: none; }

/* Scroll-reveal: nousee ja häivyttyy esiin */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease) calc(var(--viive, 0) * 90ms),
              transform 1.1s var(--ease-out) calc(var(--viive, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Kuvat: kevyt zoom ulos samalla kun kehys nousee */
.js .reveal .post__media picture,
.js .project__media.reveal picture,
.js .commitment__media.reveal picture { transform: scale(1.08); transition: transform 1.6s var(--ease-out) calc(var(--viive, 0) * 90ms); }
.js .reveal.is-visible .post__media picture,
.js .project__media.reveal.is-visible picture,
.js .commitment__media.reveal.is-visible picture { transform: none; }

/* Hiusviivat piirtyvät vasemmalta oikealle */
.js .reveal-lines::before,
.js .reveal-lines::after { transform: scaleX(0); transition: transform 1.4s var(--ease-out) .1s; }
.js .reveal-lines.is-visible::before,
.js .reveal-lines.is-visible::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-in { opacity: 1; transform: none; }
  .js .hero__title .line > span,
  .js .hero__media picture, .js .hero__media video,
  .js .reveal picture,
  .js .reveal-lines::before, .js .reveal-lines::after { transform: none; }
}

/* ============ Tabletti ============ */
@media (max-width: 1099px) {
  :root {
    --reunus: 32px;
    --osio: 112px;
    --osio-tiivis: 100px;
    --header-korkeus: 84px;
    --header-korkeus-pieni: 68px;
  }

  .menu-toggle { display: inline-flex; }

  /* Mobiilivalikko: koko näytön tumma paneeli */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-korkeus) + 24px) var(--reunus) 48px;
    background: var(--vari-tumma);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav__link {
    display: inline-block;
    padding: 6px 0;
    font-size: clamp(32px, 6.4vw, 52px);
    font-weight: 300;
    letter-spacing: -0.02em;
    text-transform: none;
    line-height: 1.15;
  }
  .nav__link::after { bottom: 4px; }
  .nav__mobile-cta { display: block; margin-top: 28px; }
  .nav__list > li { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
  .nav.is-open .nav__list > li { opacity: 1; transform: none; }
  .nav.is-open .nav__list > li:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav__list > li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__list > li:nth-child(4) { transition-delay: .15s; }
  .nav.is-open .nav__list > li:nth-child(5) { transition-delay: .2s; }
  .nav.is-open .nav__list > li:nth-child(6) { transition-delay: .25s; }
  .nav.is-open .nav__list > li:nth-child(7) { transition-delay: .3s; }
  body.menu-open { overflow: hidden; }
  body.menu-open .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .header__logo { font-size: 15px; }
  .btn--ghost { min-height: 42px; font-size: 12.5px; }

  .hero { max-height: none; min-height: 600px; }
  .hero__content { padding-bottom: 48px; }
  .hero__top { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero__title { font-size: clamp(54px, 8.6vw, 92px); }
  .hero__side { width: auto; max-width: 440px; font-size: 16px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 36px; }
  .hero__lead { font-size: 18px; max-width: 520px; }
  .hero__actions { align-items: flex-start; }
  .hero__tags { justify-content: flex-start; }

  .display { font-size: clamp(38px, 5.6vw, 54px); }
  .display--lg { font-size: clamp(40px, 6vw, 58px); }
  .display--xl { font-size: clamp(44px, 7vw, 68px); }
  .eyebrow { margin-bottom: 28px; }

  .about__grid { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .about__title { max-width: 620px; }
  .about__facts { margin-top: 0; }
  .about__fact dd { max-width: 520px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 96px; }
  .stat { padding: 40px 16px 36px 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--vari-viiva); }
  .stat__value { font-size: clamp(56px, 8vw, 72px); margin-top: 24px; }

  .solutions__intro { margin-top: 48px; font-size: 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; gap: 1px; background: var(--vari-kortti-viiva); border-radius: 3px; overflow: hidden; }
  .card, .card:first-child, .card:last-child { min-height: 400px; border-radius: 0; }
  .card + .card { border-left: 0; }

  .project { grid-template-columns: minmax(0, 1fr); row-gap: 36px; padding-block: 64px; }
  .project:first-of-type { padding-top: 56px; }
  .project + .project { padding-top: 64px; }
  .project--reverse .project__media { order: 0; }
  .project__title { font-size: clamp(36px, 5.4vw, 48px); margin-top: 22px; }
  .project__meta { margin-top: 28px; }
  .project__meta dd { font-size: 19px; }

  .principles { margin-top: 56px; }
  .principle__index { font-size: 56px; }

  .commitment__grid { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .commitment__body { padding-top: 0; }
  .commitment .eyebrow { margin-bottom: 32px; }
  .commitment__media { aspect-ratio: 4 / 3; }
  .commitment__value { font-size: 44px; }

  .posts {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 46%);
    gap: 28px;
    margin-top: 48px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: thin;
  }
  .post { scroll-snap-align: start; }
  /* sivuttain piilossa olevat kortit eivät saa venyttää karusellia alaspäin */
  .js .posts .reveal { transform: none; }
  .post__title { max-width: none; font-size: 21px; }

  .cta { padding-block: 120px; }

  .footer { padding-top: 88px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; padding-bottom: 64px; }
  .footer__brand { grid-column: 1 / -1; font-size: 44px; }
}

/* ============ Mobiili ============ */
@media (max-width: 767px) {
  :root {
    --reunus: 20px;
    --osio: 88px;
    --osio-tiivis: 80px;
    --header-korkeus: 72px;
    --header-korkeus-pieni: 62px;
  }

  .header__cta { display: none; }

  .hero { min-height: 560px; }
  .hero__content { padding-bottom: 36px; }
  .hero__title { font-size: clamp(42px, 12.4vw, 60px); line-height: 1; }
  .hero__side { font-size: 15px; }
  .hero__lead { font-size: 17px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }

  .display, .display--lg { font-size: clamp(34px, 9.6vw, 44px); line-height: 1.05; }
  .display--xl { font-size: clamp(38px, 10.6vw, 50px); }

  .about__text { font-size: 17px; }
  .about__fact { padding: 28px 0 24px; }
  .about__fact dd { font-size: 17px; }

  .stats { margin-top: 72px; }
  .stat { padding: 32px 12px 28px 0; }
  .stat__value { font-size: clamp(44px, 13vw, 56px); margin-top: 18px; }
  .stat__label { font-size: 11.5px; }

  .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 22px; }
  .sec-head__title { text-align: left; }

  .solutions__intro { font-size: 17px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card, .card:first-child, .card:last-child { min-height: 0; padding: 30px 24px 32px; gap: 56px; }
  .card__title { font-size: 23px; margin-top: 28px; }

  .project { padding-block: 48px; row-gap: 28px; }
  .project:first-of-type { padding-top: 44px; }
  .project + .project { padding-top: 48px; }
  .project__title { font-size: clamp(32px, 9vw, 40px); }
  .project__meta { gap: 20px 40px; padding: 24px 0 22px; }
  .project__meta dd { font-size: 18px; margin-top: 12px; }
  .project .link-arrow { margin-top: 28px; }

  .principles { grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
  .principle { padding: 28px 0 30px; }
  .principle + .principle { border-left: 0; border-top: 1px solid var(--vari-viiva-alt); padding-left: 0; }
  .principle__index { font-size: 48px; }
  .principle__title { margin-top: 22px; font-size: 13.5px; }
  .principle__text { font-size: 17px; margin-top: 14px; }

  .commitment__text { font-size: 17px; }
  .commitment__value { font-size: 40px; }

  .posts { grid-auto-columns: 84%; gap: 18px; }
  .post .label { margin-top: 26px; }
  .post__title { margin-top: 16px; font-size: 20px; }

  .cta { padding-block: 96px; }
  .cta__text { margin-top: 20px; font-size: 17px; }

  .footer { padding-top: 72px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer__brand { font-size: 40px; }
  .footer__col ul { margin-top: 18px; gap: 10px; font-size: 16px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}


/* =============================================================================
   LAPA RECYCLING: sivustokohtaiset tyylit
   -----------------------------------------------------------------------------
   Yllä oleva pohja on demon tuuli-seed sellaisenaan. Kaikki Lapan omat
   ratkaisut ovat tässä osiossa, ja ne voittavat pohjan samannimiset säännöt.

    1. Brändivärit
    2. Ilmeen hienosäätö (kuusikulmio, pyöristys)
    3. Header, logo ja päävalikko
    4. Kielivalitsin
    5. Etusivu: hero, about ja luvut
    6. Palvelukortit ja konsultointilaatikko
    7. Palvelualueen kartta
    8. Alasivujen hero ja murupolku
    9. Esittely, tarkistuslista ja kaksi korttia
   10. Tumma tietonauha ja luvut
   11. Usein kysytyt kysymykset
   12. Referenssit
   13. Yritys
   14. Yhteystiedot ja lomake
   15. Tietosuojaseloste ja 404
   16. Footer
   17. Tabletti
   18. Mobiili
   ============================================================================= */

/* ---------- 1. Brändivärit: Lapan turkoosi ja tumma petrooli ---------- */
:root {
  --vari-tumma: #0e2b31;
  --vari-tumma-viiva: #24464d;
  --vari-tumma-reuna: #2f555d;
  --vari-korostus: #26bcbe;           /* Lapan liikemerkin turkoosi */
  --vari-korostus-hover: #4fd3d5;
  --vari-korostus-teksti: #06191c;
  --vari-korostus-tumma: #137f82;     /* turkoosi tekstinä valkoisella (kontrasti 4.6:1) */

  --vari-tausta-alt: #f2f5f6;
  --vari-otsikko: #0b1214;
  --vari-teksti: #343a3c;
  --vari-teksti-vahva: #232a2c;
  --vari-teksti-kortti: #454c4e;
  --vari-himmea: #557077;
  --vari-selite: #3d4648;
  --vari-paivays: #586366;

  --vari-viiva: #e1e7e8;
  --vari-viiva-alt: #d4dde0;
  --vari-kortti-viiva: #d8e0e2;

  --vari-tumma-teksti: #c3d9dc;
  --vari-tumma-himmea: #8fabb0;
  --vari-footer-label: #78979d;
  --vari-footer-linkki: #b6ced2;
  --vari-footer-pieni: #8fa9ae;
  --vari-footer-ala: #a6bfc3;

  --vari-hero-varjo: 4, 20, 24;
  --vari-cta-pohja: #0c1f23;
  --vari-cta-varjo: rgba(6, 24, 28, 0.7);

  --vari-virhe: #b42318;
  --vari-ok: #0f6b4f;

  --kartta-vari-1: #3ed2d4;
  --kartta-vari-2: #1a9fa3;

  --pyoristys: 6px;
  --kuusikulmio: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ---------- 2. Ilmeen hienosäätö ----------
   Pisteet ovat Lapan liikemerkin kuusikulmioita, ei ympyröitä. */
.eyebrow::before,
.hero__tags li::before {
  width: max(7px, calc(8 * var(--u)));
  height: max(8px, calc(9 * var(--u)));
  border-radius: 0;
  clip-path: var(--kuusikulmio);
}
.card::before { height: 3px; }
.sec-head__index { color: var(--vari-otsikko); }
.section--dark .eyebrow:not(.eyebrow--accent) { color: var(--vari-tumma-himmea); }

/* ---------- 3. Header, logo ja päävalikko ----------
   Header pysyy aina esillä (Mikon pyyntö demossa). Ylhäällä läpinäkyvä ja
   iso logo, skrollatessa valkoinen tausta ja pienempi tumma logo. */
@media (min-width: 1100px) {
  :root {
    --header-korkeus: calc(112 * var(--u));
    --header-korkeus-pieni: calc(76 * var(--u));
  }
}
.header {
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease), color .45s var(--ease);
}
.header.is-hidden { transform: none; }
.header__logo { display: grid; }
.header__logo img {
  grid-area: 1 / 1;
  width: auto;
  height: max(40px, calc(64 * var(--u)));
  transition: height .45s var(--ease), opacity .35s var(--ease);
}
.header__logo-tumma { opacity: 0; }
.header.is-scrolled {
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(11, 18, 20, .08), 0 10px 30px rgba(11, 18, 20, .05);
  color: var(--vari-otsikko);
}
.header.is-scrolled .header__logo img { height: max(34px, calc(46 * var(--u))); }
.header.is-scrolled .header__logo-vaalea { opacity: 0; }
.header.is-scrolled .header__logo-tumma { opacity: 1; }
.header.is-scrolled .btn--ghost { border-color: rgba(11, 18, 20, .2); color: var(--vari-otsikko); }
.header.is-scrolled .btn--ghost:hover { background: var(--vari-otsikko); border-color: var(--vari-otsikko); color: #fff; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Palvelut-alavalikko: desktopilla avautuu hiirellä ja näppäimistön
   fokuksella (ei vaadi JavaScriptiä), mobiilivalikossa näkyy aina. */
.nav__item--sub { position: relative; }
.nav__chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  vertical-align: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .35s var(--ease);
}
.nav__sub {
  display: grid;
  gap: 2px;
}
.nav__sub a { display: block; }
@media (min-width: 1100px) {
  .header.is-scrolled .nav__link { color: var(--vari-otsikko); }
  .nav__sub {
    position: absolute;
    top: 100%;
    left: calc(-22 * var(--u));
    z-index: 5;
    min-width: calc(300 * var(--u));
    margin-top: calc(18 * var(--u));
    padding: 10px;
    border-radius: var(--pyoristys);
    background: #fff;
    box-shadow: 0 24px 60px rgba(4, 20, 24, .18), 0 0 0 1px rgba(11, 18, 20, .06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility .3s;
  }
  /* näkymätön silta linkin ja paneelin välissä, ettei hiiren siirto sulje valikkoa */
  .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(22 * var(--u)); }
  .nav__item--sub:hover .nav__sub,
  .nav__item--sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__item--sub:hover .nav__chevron,
  .nav__item--sub:focus-within .nav__chevron { transform: translateY(2px) rotate(225deg); }
  .nav__sub a {
    padding: 13px 16px;
    border-radius: 4px;
    font-size: max(14px, calc(16 * var(--u)));
    font-weight: 500;
    letter-spacing: 0;
    color: var(--vari-otsikko);
    transition: background-color .25s var(--ease), color .25s var(--ease);
  }
  .nav__sub a:hover,
  .nav__sub a[aria-current="page"] { background: var(--vari-tausta-alt); color: var(--vari-korostus-tumma); }
}
/* Mobiilivalikko on tumma paneeli: header palaa sen ajaksi vaaleaksi */
body.menu-open .header.is-scrolled { background: transparent; box-shadow: none; color: #fff; }
body.menu-open .header.is-scrolled .header__logo-vaalea { opacity: 1; }
body.menu-open .header.is-scrolled .header__logo-tumma { opacity: 0; }

/* ---------- 4. Kielivalitsin: linkki saman sivun toiseen kieliversioon ---------- */
.lang {
  display: inline-flex;
  align-items: center;
  margin-right: calc(6 * var(--u));
  font-size: max(12px, calc(14.5 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}
.lang__btn {
  position: relative;
  padding: 10px 7px;
  color: rgba(255, 255, 255, .62);
  transition: color .3s var(--ease);
}
.lang__btn::after {
  content: "";
  position: absolute;
  left: 7px; right: 7px; bottom: 3px;
  height: 1.5px;
  background: var(--vari-korostus);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.lang__btn:hover,
.lang__btn[aria-current="true"] { color: #fff; }
.lang__btn[aria-current="true"]::after { transform: scaleX(1); }
.lang__sep { color: rgba(255, 255, 255, .3); }
.header.is-scrolled .lang__btn { color: rgba(11, 18, 20, .5); }
.header.is-scrolled .lang__btn:hover,
.header.is-scrolled .lang__btn[aria-current="true"] { color: var(--vari-otsikko); }
.header.is-scrolled .lang__sep { color: rgba(11, 18, 20, .22); }
body.menu-open .header.is-scrolled .lang__btn { color: rgba(255, 255, 255, .62); }
body.menu-open .header.is-scrolled .lang__btn[aria-current="true"] { color: #fff; }
body.menu-open .header.is-scrolled .lang__sep { color: rgba(255, 255, 255, .3); }

/* ---------- 5. Etusivu: hero, about ja luvut ---------- */
/* Video on luonnostaan vaalea: hero tarvitsee vahvemman tummennuksen kuin valokuva */
.hero__shade {
  background:
    linear-gradient(to bottom,
      rgba(var(--vari-hero-varjo), .58) 0%,
      rgba(var(--vari-hero-varjo), .22) 22%,
      rgba(var(--vari-hero-varjo), .24) 42%,
      rgba(var(--vari-hero-varjo), .62) 66%,
      rgba(var(--vari-hero-varjo), .86) 88%,
      rgba(var(--vari-hero-varjo), .92) 100%),
    rgba(var(--vari-hero-varjo), .12);
}
.hero__lead { max-width: calc(640 * var(--u)); }

.about__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(560 * var(--u)));
  column-gap: calc(80 * var(--u));
  align-items: end;
}
.about__split .about__title { max-width: calc(640 * var(--u)); }
.about__split .about__text { max-width: none; margin-top: 0; }
.about__split + .stats { margin-top: calc(110 * var(--u)); }
.stat__unit--pre { margin: 0 .14em 0 0; }

.solutions:not(.section--alt) .card { background: var(--vari-tausta-alt); }
.solutions:not(.section--alt) .card:hover { background: #e9eff0; }
.solutions:not(.section--alt) .card + .card { border-left-color: #fff; }
.card__icon { stroke: #15292d; stroke-linecap: round; }

/* Osion otsikkorivin oikea reuna: linkki kaikkiin (referenssit) */
.sec-head__link { display: inline-flex; align-items: center; gap: 10px; color: var(--vari-otsikko); }
.sec-head__link .ico { transition: transform .45s var(--ease); }
.sec-head__link:hover .ico { transform: translate(3px, -3px); }

/* ---------- 6. Palvelukortit ja konsultointilaatikko ---------- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(20 * var(--u));
  margin-top: calc(74 * var(--u));
}
.service-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: calc(56 * var(--u)); }
.service-cards--3 .service-card__link { aspect-ratio: 4 / 3.6; }
.service-card__link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: calc(30 * var(--u));
  overflow: hidden;
  border-radius: var(--pyoristys);
  background: var(--vari-tumma);
  color: #fff;
}
.service-card__media { position: absolute; inset: 0; z-index: -2; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.service-card__link::before,
.service-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: opacity .5s var(--ease);
}
.service-card__link::before {
  background: linear-gradient(to bottom,
    rgba(var(--vari-hero-varjo), .4) 0%,
    rgba(var(--vari-hero-varjo), 0) 24%,
    rgba(var(--vari-hero-varjo), .08) 44%,
    rgba(var(--vari-hero-varjo), .78) 74%,
    rgba(var(--vari-hero-varjo), .94) 100%);
}
.service-card__link::after { background: rgba(var(--vari-hero-varjo), .5); opacity: 0; }
.service-card__index {
  position: absolute;
  top: calc(28 * var(--u));
  left: calc(30 * var(--u));
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1;
  color: rgba(255, 255, 255, .85);
}
.service-card__arrow {
  position: absolute;
  top: calc(18 * var(--u));
  right: calc(18 * var(--u));
  display: grid;
  place-items: center;
  width: max(38px, calc(46 * var(--u)));
  height: max(38px, calc(46 * var(--u)));
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.service-card__arrow .ico { transition: transform .45s var(--ease); }
.service-card__label {
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--kartta-vari-1);
}
.service-card__title {
  margin-top: calc(12 * var(--u));
  font-size: max(20px, calc(29 * var(--u)));
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.012em;
  color: #fff;
}
.service-card__more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease), opacity .45s var(--ease); }
.service-card__more-inner { min-height: 0; overflow: hidden; }
.service-card__meta {
  display: grid;
  gap: calc(12 * var(--u));
  margin-top: calc(20 * var(--u));
  padding-top: calc(18 * var(--u));
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.service-card__meta dt {
  font-size: max(10.5px, calc(11.8 * var(--u)));
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .66);
}
.service-card__meta dd { margin-top: 4px; font-size: max(14.5px, calc(16.5 * var(--u))); line-height: 1.35; color: #fff; }
.service-card__cta {
  display: inline-block;
  margin-top: calc(22 * var(--u));
  padding-bottom: 4px;
  border-bottom: 1px solid var(--vari-korostus);
  font-size: max(12px, calc(14.5 * var(--u)));
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}
.service-card__link:hover .service-card__media img { transform: scale(1.06); }
.service-card__link:hover::after { opacity: 1; }
.service-card__link:hover .service-card__arrow,
.service-card__link:focus-visible .service-card__arrow {
  background: var(--vari-korostus);
  border-color: var(--vari-korostus);
  color: var(--vari-korostus-teksti);
}
.service-card__link:hover .service-card__arrow .ico { transform: translate(2px, -2px); }
@media (min-width: 1100px) {
  /* kahden rivin otsikkotila: kategoriat samalla linjalla kaikissa korteissa */
  .service-card__title { min-height: 2.24em; }
}
/* Desktopilla tiedot paljastuvat hoverissa, kosketusnäytöillä ne jäävät pois */
@media (hover: hover) and (min-width: 1100px) {
  .service-card__more { grid-template-rows: 0fr; opacity: 0; }
  .service-card__link:hover .service-card__more,
  .service-card__link:focus-visible .service-card__more { grid-template-rows: 1fr; opacity: 1; }
  .service-cards--3 .service-card__more { grid-template-rows: 1fr; opacity: 1; }
}
@media (hover: none), (max-width: 1099px) {
  .service-card__meta { display: none; }
  .service-card__cta { margin-top: 16px; }
  .service-card__link::before {
    background: linear-gradient(to bottom,
      rgba(var(--vari-hero-varjo), .4) 0%,
      rgba(var(--vari-hero-varjo), 0) 22%,
      rgba(var(--vari-hero-varjo), .2) 45%,
      rgba(var(--vari-hero-varjo), .86) 76%,
      rgba(var(--vari-hero-varjo), .95) 100%);
  }
}
.js .service-card.reveal .service-card__media { transform: scale(1.08); transition: transform 1.6s var(--ease-out) calc(var(--viive, 0) * 90ms); }
.js .service-card.reveal.is-visible .service-card__media { transform: none; }

/* Konsultointi: palveluista poikkeava, siksi oma laatikkonsa korttien alla */
.consult {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: calc(40 * var(--u));
  margin-top: calc(20 * var(--u));
  padding: calc(40 * var(--u)) calc(46 * var(--u));
  border-radius: var(--pyoristys);
  background: var(--vari-tumma);
  color: var(--vari-tumma-teksti);
}
.consult__icon {
  width: max(46px, calc(58 * var(--u)));
  height: max(52px, calc(66 * var(--u)));
  fill: none;
  stroke: var(--vari-korostus);
  stroke-width: 1.5;
}
.consult__label {
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--kartta-vari-1);
}
.consult__title {
  margin-top: calc(10 * var(--u));
  font-size: max(20px, calc(29 * var(--u)));
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.012em;
  color: #fff;
}
.consult__text {
  max-width: calc(720 * var(--u));
  margin-top: calc(10 * var(--u));
  font-size: max(15px, calc(17 * var(--u)));
  line-height: 1.5;
}

/* ---------- 7. Palvelualueen kartta ---------- */
.map { position: relative; overflow: hidden; }
.map__inner { position: relative; }
.map__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: calc(560 * var(--u));
  min-height: calc(900 * var(--u));
}
.map__title { color: #fff; }
.map__text {
  max-width: calc(500 * var(--u));
  margin-top: calc(30 * var(--u));
  font-size: max(16px, calc(19 * var(--u)));
  line-height: 1.55;
  color: var(--vari-tumma-teksti);
}
.map__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: calc(48 * var(--u));
  border-top: 1px solid var(--vari-tumma-viiva);
}
.map__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  width: 100%;
  padding: calc(17 * var(--u)) calc(8 * var(--u)) calc(17 * var(--u)) 0;
  border-bottom: 1px solid var(--vari-tumma-viiva);
  font-size: max(14.5px, calc(16.5 * var(--u)));
  font-weight: 400;
  text-align: left;
  color: var(--vari-tumma-teksti);
  transition: color .3s var(--ease);
}
.map__item::after {
  content: "";
  position: absolute;
  left: 0; right: calc(12 * var(--u)); bottom: -1px;
  height: 1px;
  background: var(--vari-korostus);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.map__item-num {
  min-width: 2ch;
  font-size: max(11px, calc(12.5 * var(--u)));
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--vari-tumma-himmea);
  transition: color .3s var(--ease);
}
.map__flag {
  flex: none;
  width: 21px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}
.map__item:hover,
.map__item.is-active { color: #fff; }
.map__item.is-active::after,
.map__item:hover::after { transform: scaleX(1); }
.map__item.is-active .map__item-num { color: var(--vari-korostus); }
.map__canvas { position: absolute; inset: 0; z-index: 1; }
.map__routes, .map__points, .map__hq, .map__shadow, .map__glow { pointer-events: none; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__neighbours, .map__graticule { transition: opacity 1.2s var(--ease); }
.map__graticule { fill: none; stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.map__neighbours { color: rgba(255, 255, 255, .15); }
.map__neighbours path { fill: url(#mapDots); stroke: rgba(255, 255, 255, .07); stroke-width: .7; }
.map__glow { opacity: 0; transition: opacity 1.6s var(--ease) .2s; }
.map__shadow { opacity: .3; }
.map__country {
  fill: url(#mapFill);
  stroke: var(--vari-tumma);
  stroke-width: 1.1;
  stroke-linejoin: round;
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: 50% 60%;
  transition: opacity .45s var(--ease), transform .6s var(--ease-out), filter .45s var(--ease);
}
.map.is-focus .map__country { opacity: .35; }
.map.is-focus .map__country.is-active {
  opacity: 1;
  transform: translateY(-5px) scale(1.015);
  filter: brightness(1.14) drop-shadow(0 12px 18px rgba(0, 0, 0, .38));
}
.map__route {
  fill: none;
  stroke: #9af1f2;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: .006 .012;
  opacity: 0;
  transition: opacity .6s var(--ease), stroke-width .4s var(--ease);
  animation: reitti-virta 18s linear infinite;
}
@keyframes reitti-virta { to { stroke-dashoffset: -1; } }
.map.is-focus .map__route { opacity: .1; }
.map.is-focus .map__route.is-active { opacity: 1; stroke-width: 2; }
.map__point-ring {
  fill: rgba(14, 43, 49, .35);
  stroke: rgba(255, 255, 255, .6);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .45s var(--ease-out), stroke .3s var(--ease), fill .3s var(--ease);
}
.map__point-dot { fill: #fff; }
.map__point-num {
  fill: rgba(255, 255, 255, .9);
  font-family: var(--fontti);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  paint-order: stroke;
  stroke: rgba(10, 34, 39, .55);
  stroke-width: 3px;
}
.map__point.is-active .map__point-ring { transform: scale(1.6); stroke: #fff; fill: var(--vari-korostus); }
.map__hq-dot { fill: #fff; stroke: var(--vari-korostus); stroke-width: 3.5; }
.map__hq-pulse {
  fill: none;
  stroke: var(--vari-korostus);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: hq-pulssi 2.8s var(--ease-out) infinite;
}
.map__hq-pulse--2 { animation-delay: 1.4s; }
@keyframes hq-pulssi {
  0% { transform: scale(.6); opacity: .85; }
  100% { transform: scale(3.4); opacity: 0; }
}
.map__hq-label {
  fill: #fff;
  font-family: var(--fontti);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: rgba(10, 34, 39, .7);
  stroke-width: 4px;
}
.map__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(8, 28, 33, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px)) scale(.96);
  transition: opacity .25s var(--ease), transform .35s var(--ease-out);
}
.map__tip.is-visible { opacity: 1; transform: translate(-50%, calc(-100% - 20px)); }
.map__tip-flag { width: 27px; height: 18px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.map__tip-text { display: flex; flex-direction: column; gap: 3px; }
.map__tip-name { font-size: 17px; font-weight: 500; letter-spacing: -.005em; line-height: 1.1; }
.map__tip-meta { font-size: 11px; font-weight: 600; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase; color: var(--vari-korostus); }
/* Sisääntulo: maat porrastetusti, sitten kaaret ja pisteet. is-ready poistaa viiveet hoverista. */
.js .map__country { opacity: 0; transform: translateY(16px); }
.js .map__point,
.js .map__hq,
.js .map__shadow { opacity: 0; transition: opacity .8s var(--ease); }
.map.is-visible .map__glow { opacity: 1; }
.map.is-visible .map__country {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease) calc(var(--i) * 90ms + 150ms), transform 1.1s var(--ease-out) calc(var(--i) * 90ms + 150ms);
}
.map.is-visible .map__shadow { opacity: .3; transition-delay: .4s; }
.map.is-visible .map__route { opacity: .5; transition: opacity .8s var(--ease) calc(var(--i) * 80ms + 1000ms); }
.map.is-visible .map__point { opacity: 1; transition: opacity .6s var(--ease) calc(var(--i) * 70ms + 900ms); }
.map.is-visible .map__hq { opacity: 1; transition-delay: .8s; }
.map.is-ready .map__country { transition: opacity .45s var(--ease), transform .6s var(--ease-out), filter .45s var(--ease); }
.map.is-ready .map__route { transition: opacity .5s var(--ease), stroke-width .4s var(--ease); }
.map.is-ready .map__point { transition: opacity .5s var(--ease); }
.map.is-ready.is-focus .map__route { opacity: .1; }
.map.is-ready.is-focus .map__route.is-active { opacity: 1; }
.map.is-ready.is-focus .map__country { opacity: .35; }
.map.is-ready.is-focus .map__country.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .map__route, .map__hq-pulse { animation: none; }
  .js .map__country { opacity: 1; transform: none; }
  /* pisteiden ja HQ:n sijainti on SVG:n transform-attribuutissa: CSS-transformiin
     ei saa koskea (demossa tämä siirsi pisteet kartan vasempaan yläkulmaan) */
  .js .map__point, .js .map__hq, .js .map__shadow { opacity: 1; }
  .js .map__route { opacity: .5; }
}

/* ---------- 8. Alasivujen hero ja murupolku ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(760 * var(--u));
  padding-top: calc(var(--header-korkeus) + 80 * var(--u));
  padding-bottom: calc(78 * var(--u));
  overflow: hidden;
  color: #fff;
  background: var(--vari-tumma);
}
.page-hero--matala { min-height: calc(600 * var(--u)); }
.page-hero--tumma { min-height: 0; padding-top: calc(var(--header-korkeus) + 130 * var(--u)); padding-bottom: calc(96 * var(--u)); }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media picture,
.page-hero__media img { width: 100%; height: 100%; }
.page-hero__media img { object-fit: cover; object-position: 50% 55%; }
.page-hero .hero__shade {
  background:
    linear-gradient(to bottom,
      rgba(var(--vari-hero-varjo), .62) 0%,
      rgba(var(--vari-hero-varjo), .3) 30%,
      rgba(var(--vari-hero-varjo), .45) 55%,
      rgba(var(--vari-hero-varjo), .88) 100%),
    rgba(var(--vari-hero-varjo), .14);
}
/* Palvelusivujen hero: teksti on alaosassa, joten tummennus kasvaa alaspäin
   ja koko kuvaa himmennetään hieman enemmän kuin muilla alasivuilla */
.page-hero--palvelu .hero__shade {
  background:
    linear-gradient(to bottom,
      rgba(var(--vari-hero-varjo), .6) 0%,
      rgba(var(--vari-hero-varjo), .32) 25%,
      rgba(var(--vari-hero-varjo), .5) 50%,
      rgba(var(--vari-hero-varjo), .82) 75%,
      rgba(var(--vari-hero-varjo), .95) 100%),
    rgba(var(--vari-hero-varjo), .2);
}
.page-hero__content { position: relative; z-index: 2; width: 100%; }
.page-hero__title {
  max-width: calc(1180 * var(--u));
  font-size: calc(92 * var(--u));
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}
.page-hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .2em;
  margin-bottom: -.2em;
}
.page-hero__title .line > span { display: block; }
.page-hero__lead {
  max-width: calc(700 * var(--u));
  margin-top: calc(30 * var(--u));
  font-size: max(16px, calc(20 * var(--u)));
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(14 * var(--u));
  margin-top: calc(42 * var(--u));
}
.page-hero .eyebrow { margin-bottom: calc(26 * var(--u)); }
.js .page-hero__media picture { transform: scale(1.06); transition: transform 2.4s var(--ease-out); }
.js.is-loaded .page-hero__media picture { transform: none; }
.js .page-hero__title .line > span { transform: translateY(108%); transition: transform 1.2s var(--ease-out) .2s; }
.js.is-loaded .page-hero__title .line > span { transform: none; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-bottom: calc(34 * var(--u));
  font-size: max(11px, calc(12.8 * var(--u)));
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}
.crumbs li + li::before { content: "/"; margin: 0 10px; color: rgba(255, 255, 255, .38); }
.crumbs a { transition: color .3s var(--ease); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current="page"] { display: inline-flex; align-items: center; gap: 10px; color: var(--kartta-vari-1); }
.crumbs [aria-current="page"]::before { order: -2; margin-right: 0; }
.crumbs [aria-current="page"]::after {
  content: "";
  order: -1;
  width: 7px;
  height: 8px;
  background: var(--vari-korostus);
  clip-path: var(--kuusikulmio);
}

/* ---------- 9. Esittely, tarkistuslista ja kaksi korttia ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(540 * var(--u)));
  column-gap: calc(110 * var(--u));
  align-items: start;
}
.intro__title { max-width: calc(720 * var(--u)); }
.prose { max-width: calc(720 * var(--u)); }
.prose > p,
.prose > ul { margin-top: calc(26 * var(--u)); }
.intro__title + .prose { margin-top: calc(44 * var(--u)); }
.prose > :first-child { margin-top: 0; }
.prose p {
  font-size: max(16px, calc(19 * var(--u)));
  line-height: 1.62;
  letter-spacing: .008em;
}
.prose a:not(.btn) { color: var(--vari-korostus-tumma); text-decoration: underline; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--vari-otsikko); }
.prose strong { font-weight: 600; color: var(--vari-teksti-vahva); }
.intro__btn { margin-top: calc(44 * var(--u)); }
.intro__aside { display: grid; gap: calc(44 * var(--u)); }
.intro__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--pyoristys);
  background: var(--vari-tausta-alt);
}
.intro__media picture, .intro__media img { width: 100%; height: 100%; }
.intro__media img { object-fit: cover; }
.js .intro__media.reveal picture { transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.js .intro__media.reveal.is-visible picture { transform: none; }
/* Desktopilla kuva on yhtä korkea kuin tekstisarake, kuitenkin vähintään 3:2
   (sarakkeen leveys 540 / 1,5 = 360). Tekstin pituus määrää korkeuden, ei kuva. */
@media (min-width: 1100px) {
  .intro__grid { align-items: stretch; }
  .intro__aside { position: relative; min-height: calc(360 * var(--u)); }
  .intro__aside > .intro__media { position: absolute; inset: 0; aspect-ratio: auto; }
}

.checklist__title {
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vari-himmea);
}
.checklist { margin-top: calc(18 * var(--u)); border-top: 1px solid var(--vari-viiva); }
.checklist li {
  position: relative;
  padding: calc(16 * var(--u)) 0 calc(16 * var(--u)) calc(30 * var(--u));
  border-bottom: 1px solid var(--vari-viiva);
  font-size: max(15.5px, calc(17.5 * var(--u)));
  line-height: 1.45;
  color: var(--vari-teksti-vahva);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(16 * var(--u) + .42em);
  width: 9px;
  height: 10px;
  background: var(--vari-korostus);
  clip-path: var(--kuusikulmio);
}

/* Kolmen kortin rivi (tarkastukset ja jätehuolto): sama korttityyli kuin
   vaiheissa, mutta kolme saraketta myös tabletilla */
.cards--kolme { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Teksti alkaa samalta korkeudelta kaikissa korteissa, vaikka pituus vaihtelee */
.cards--kolme .card { justify-content: flex-start; gap: calc(150 * var(--u)); min-height: 0; }
@media (max-width: 767px) {
  .cards--kolme { grid-template-columns: minmax(0, 1fr); }
  .cards--kolme .card { gap: 56px; }
}
.osio__otsikko { max-width: calc(760 * var(--u)); margin-top: calc(56 * var(--u)); }
.osio__ingressi {
  max-width: calc(720 * var(--u));
  margin-top: calc(24 * var(--u));
  font-size: max(16px, calc(19 * var(--u)));
  line-height: 1.6;
}

/* ---------- 10. Tumma tietonauha ja luvut ---------- */
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(640 * var(--u)));
  column-gap: calc(100 * var(--u));
  align-items: end;
}
.band__title { max-width: calc(640 * var(--u)); color: #fff; }
.band__text {
  max-width: calc(600 * var(--u));
  margin-top: calc(28 * var(--u));
  font-size: max(16px, calc(19 * var(--u)));
  line-height: 1.55;
  color: var(--vari-tumma-teksti);
}
.band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(20 * var(--u)) calc(36 * var(--u));
  margin-top: calc(40 * var(--u));
}
.band__actions .link-arrow { color: #fff; transition: color .35s var(--ease); }
.band__actions .link-arrow:hover { color: var(--vari-korostus); }
.band__actions .link-arrow:hover .ico { transform: translateX(4px); }
.band__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--vari-tumma-viiva);
}
.band__stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band__stat { padding: calc(34 * var(--u)) calc(16 * var(--u)) 0 0; }
.band__stat .commitment__label { margin-top: calc(18 * var(--u)); line-height: 1.35; }

/* ---------- 11. Usein kysytyt kysymykset ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, calc(440 * var(--u))) minmax(0, 1fr);
  column-gap: calc(110 * var(--u));
  align-items: start;
}
.faq__intro {
  margin-top: calc(26 * var(--u));
  font-size: max(16px, calc(18 * var(--u)));
  line-height: 1.55;
}
.faq__intro a { color: var(--vari-korostus-tumma); text-decoration: underline; text-underline-offset: 3px; }
.faq__list { border-top: 1px solid var(--vari-viiva); }
.faq__item { border-bottom: 1px solid var(--vari-viiva); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: calc(28 * var(--u)) 0;
  list-style: none;
  cursor: pointer;
  font-size: max(17px, calc(22 * var(--u)));
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--vari-otsikko);
  transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .4s var(--ease);
}
.faq__item summary:hover { color: var(--vari-korostus-tumma); }
.faq__item[open] summary::after { transform: rotate(135deg); }
.faq__answer {
  max-width: calc(780 * var(--u));
  padding: 0 calc(56 * var(--u)) calc(30 * var(--u)) 0;
  font-size: max(15.5px, calc(18 * var(--u)));
  line-height: 1.62;
}

/* ---------- 12. Referenssit ---------- */
/* Kortti: alarivi (sijainti ja vuosi) on samalla korkeudella, vaikka otsikot ovat eri pituisia */
.post__link { display: flex; flex-direction: column; height: 100%; }
.post__body { display: flex; flex-direction: column; flex: 1; }
.post__body > :nth-last-child(2) { margin-bottom: calc(23 * var(--u)); }
.post__meta { margin-top: auto; }
@media (min-width: 1100px) {
  .post__title { max-width: calc(430 * var(--u)); }
}

.posts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(40 * var(--u)); row-gap: calc(90 * var(--u)); }
.posts--2 .post__title { max-width: calc(620 * var(--u)); font-size: max(21px, calc(32 * var(--u))); line-height: 1.18; }
.post__lead {
  max-width: calc(600 * var(--u));
  margin-top: calc(14 * var(--u));
  font-size: max(15.5px, calc(17.5 * var(--u)));
  line-height: 1.55;
  color: var(--vari-teksti-kortti);
}
/* Pariton määrä: ensimmäinen kortti koko rivin levyisenä, kuva vasemmalla ja teksti oikealla */
@media (min-width: 768px) {
  .posts--2 > .post:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .posts--2 > .post:first-child:nth-last-child(odd) .post__link {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    column-gap: max(24px, calc(64 * var(--u)));
    align-items: stretch;
  }
  /* Kuva ei veny tekstin korkeuteen (kuvasuhde leventäisi sen tekstin päälle) */
  .posts--2 > .post:first-child:nth-last-child(odd) .post__media { align-self: start; width: 100%; }
  .posts--2 > .post:first-child:nth-last-child(odd) .label { margin-top: 0; }
}
@media (min-width: 1100px) {
  .posts--2 > .post:first-child:nth-last-child(odd) .post__title { font-size: calc(42 * var(--u)); }
  .posts--2 > .post:first-child:nth-last-child(odd) .post__lead { font-size: max(16px, calc(20 * var(--u))); }
}

/* Yksittäinen referenssi: pitkä otsikko heroon, teksti ja pääkuva rinnakkain, muut kuvat riviin */
/* Hankekuvat ovat kirkkaita, joten tummennus on jo murupolun kohdalla vahvempi */
.page-hero.page-hero--referenssi .hero__shade {
  background:
    linear-gradient(to bottom,
      rgba(var(--vari-hero-varjo), .6) 0%,
      rgba(var(--vari-hero-varjo), .46) 25%,
      rgba(var(--vari-hero-varjo), .6) 50%,
      rgba(var(--vari-hero-varjo), .84) 80%,
      rgba(var(--vari-hero-varjo), .92) 100%),
    rgba(var(--vari-hero-varjo), .2);
}
.page-hero--referenssi .page-hero__title { max-width: calc(1240 * var(--u)); font-size: calc(72 * var(--u)); line-height: 1.06; overflow-wrap: break-word; }
.ref__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(640 * var(--u)));
  column-gap: calc(110 * var(--u));
  align-items: start;
}
.ref__body {
  position: sticky;
  top: calc(var(--header-korkeus-pieni) + 32px);
}
.ref__teksti p {
  max-width: calc(760 * var(--u));
  font-size: max(17.5px, calc(26 * var(--u)));
  font-weight: 300;
  line-height: 1.5;
  color: var(--vari-teksti-vahva);
  text-wrap: pretty;
}
.ref__teksti p + p { margin-top: calc(28 * var(--u)); }
.ref__palvelu {
  max-width: calc(760 * var(--u));
  margin-top: calc(56 * var(--u));
  padding-top: calc(28 * var(--u));
  border-top: 1px solid var(--vari-viiva);
}
.ref__palvelu dt {
  font-size: max(10.5px, calc(11.8 * var(--u)));
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vari-himmea);
}
.ref__palvelu dd { margin-top: 12px; }
.ref__kuva,
.ref__kuvat figure { overflow: hidden; border-radius: var(--pyoristys); background: var(--vari-tausta-alt); }
.ref__kuva img { width: 100%; height: auto; }
/* Kuvat rivissä samankorkuisina: leveys jaetaan kuvasuhteen mukaan, joten kuvia ei rajata */
.ref__kuvat {
  display: flex;
  gap: calc(24 * var(--u));
  margin-top: calc(100 * var(--u));
}
.ref__kuvat figure { flex: var(--suhde) 1 0; min-width: 0; aspect-ratio: var(--suhde); }
.ref__kuvat picture,
.ref__kuvat img { width: 100%; height: 100%; }
.ref__kuvat img { object-fit: cover; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(24 * var(--u));
  margin-top: calc(80 * var(--u));
}
.gallery figure { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--pyoristys); background: var(--vari-tausta-alt); }
.gallery picture, .gallery img { width: 100%; height: 100%; }
.gallery img { object-fit: cover; }
/* Yrityssivun kolmen kuvan galleria (19.11.2026): pystykuvat rinnakkain */
.gallery--kolme { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--kolme figure { aspect-ratio: 4 / 5; }
.ref-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: calc(90 * var(--u));
  padding-top: calc(36 * var(--u));
  border-top: 1px solid var(--vari-viiva);
}
.ref-nav a { display: grid; gap: 10px; max-width: 46%; }
.ref-nav a:last-child { text-align: right; justify-items: end; margin-left: auto; }
.ref-nav .label { display: inline-flex; align-items: center; gap: 10px; }
.ref-nav__title {
  text-wrap: balance;
  font-size: max(17px, calc(22 * var(--u)));
  font-weight: 400;
  line-height: 1.3;
  color: var(--vari-otsikko);
  transition: color .3s var(--ease);
}
.ref-nav a:hover .ref-nav__title { color: var(--vari-korostus-tumma); }
.ico--vasen { transform: scaleX(-1); }

/* ---------- 13. Yritys ---------- */
.story { display: grid; gap: 0; }
.story__item {
  display: grid;
  grid-template-columns: minmax(0, calc(400 * var(--u))) minmax(0, 1fr);
  column-gap: calc(110 * var(--u));
  padding-block: calc(56 * var(--u));
  border-top: 1px solid var(--vari-viiva);
}
.story__item:last-child { border-bottom: 1px solid var(--vari-viiva); }
.story__head { display: flex; gap: calc(18 * var(--u)); align-items: baseline; }
.story__index {
  font-size: max(11px, calc(13.2 * var(--u)));
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--vari-himmea);
}
.story__title {
  font-size: max(21px, calc(30 * var(--u)));
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--vari-otsikko);
}
.story__text p {
  max-width: calc(780 * var(--u));
  font-size: max(16px, calc(19.5 * var(--u)));
  line-height: 1.62;
}
.story__text p + p { margin-top: calc(18 * var(--u)); }
.seal {
  display: flex;
  align-items: center;
  gap: calc(28 * var(--u));
  margin-top: calc(32 * var(--u));
}
.seal img { width: max(96px, calc(124 * var(--u))); height: auto; }
.seal p { font-size: max(14px, calc(15.5 * var(--u))); line-height: 1.5; color: var(--vari-himmea); }
.founders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(28 * var(--u));
  margin-top: calc(64 * var(--u));
}
.founder {
  padding: calc(44 * var(--u)) calc(44 * var(--u)) calc(40 * var(--u));
  border-radius: var(--pyoristys);
  background: #fff;
}
.founder__name {
  font-size: max(22px, calc(34 * var(--u)));
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--vari-otsikko);
}
.founder .label { margin-top: calc(14 * var(--u)); }
.founder__text {
  max-width: calc(520 * var(--u));
  margin-top: calc(22 * var(--u));
  font-size: max(15.5px, calc(17.5 * var(--u)));
  line-height: 1.55;
  color: var(--vari-teksti-kortti);
}
.contact-links { display: grid; gap: 10px; margin-top: calc(26 * var(--u)); }
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: max(15.5px, calc(17.5 * var(--u)));
  font-weight: 500;
  color: var(--vari-otsikko);
  transition: color .3s var(--ease);
}
.contact-links a:hover { color: var(--vari-korostus-tumma); }
.contact-links .ico { width: 18px; height: 18px; color: var(--vari-korostus-tumma); }

/* ---------- 14. Yhteystiedot ja lomake ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, calc(500 * var(--u))) minmax(0, 1fr);
  column-gap: calc(100 * var(--u));
  align-items: start;
}
.person { padding: calc(34 * var(--u)) 0; border-top: 1px solid var(--vari-viiva); }
.person:last-of-type { border-bottom: 1px solid var(--vari-viiva); }
.person__name {
  font-size: max(21px, calc(30 * var(--u)));
  font-weight: 400;
  line-height: 1.15;
  color: var(--vari-otsikko);
}
.person .label { margin-top: 10px; }
.person .contact-links { margin-top: calc(20 * var(--u)); }
.office { margin-top: calc(48 * var(--u)); }
.office address {
  margin-top: 14px;
  font-style: normal;
  font-size: max(15.5px, calc(17.5 * var(--u)));
  line-height: 1.6;
  color: var(--vari-teksti-vahva);
}

.form {
  padding: calc(56 * var(--u)) calc(56 * var(--u)) calc(52 * var(--u));
  border-radius: var(--pyoristys);
  background: var(--vari-tausta-alt);
}
.form__title {
  font-size: max(26px, calc(44 * var(--u)));
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--vari-otsikko);
}
.form__intro { margin-top: 14px; font-size: max(15px, calc(17 * var(--u))); line-height: 1.55; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 calc(22 * var(--u)); }
.field { display: grid; gap: 8px; margin-top: calc(24 * var(--u)); }
.field label {
  font-size: max(11.5px, calc(12.8 * var(--u)));
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--vari-himmea);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--vari-viiva-alt);
  border-radius: var(--pyoristys);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--vari-otsikko);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--vari-himmea) 50%), linear-gradient(135deg, var(--vari-himmea) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--vari-korostus); box-shadow: 0 0 0 3px rgba(38, 188, 190, .2); }
.field .invalid,
.field [aria-invalid="true"] { border-color: var(--vari-virhe); }
.field__error { min-height: 0; font-size: 14px; line-height: 1.4; color: var(--vari-virhe); }
.field__error:empty { display: none; }
.form__note {
  margin-top: calc(22 * var(--u));
  font-size: max(13.5px, calc(14.5 * var(--u)));
  line-height: 1.5;
  color: var(--vari-himmea);
}
.form__note a { color: var(--vari-korostus-tumma); text-decoration: underline; text-underline-offset: 3px; }
.form .btn { margin-top: calc(26 * var(--u)); }
.form .btn:disabled { opacity: .6; cursor: progress; }
.form__status { margin-top: 18px; font-size: 15.5px; line-height: 1.5; }
.form__status:empty { display: none; }
.form__status.ok { padding: 14px 16px; border-radius: var(--pyoristys); background: #e3f4ee; color: var(--vari-ok); }
.form__status.err { padding: 14px 16px; border-radius: var(--pyoristys); background: #fdecea; color: var(--vari-virhe); }
.form__status.pending { color: var(--vari-himmea); }

/* ---------- 15. Tietosuojaseloste ja 404 ---------- */
.legal { max-width: calc(860 * var(--u)); }
.legal h2 {
  margin-top: calc(56 * var(--u));
  font-size: max(21px, calc(30 * var(--u)));
  font-weight: 400;
  line-height: 1.2;
  color: var(--vari-otsikko);
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li {
  font-size: max(16px, calc(18 * var(--u)));
  line-height: 1.62;
}
.legal p { margin-top: calc(16 * var(--u)); }
.legal ul { margin-top: calc(14 * var(--u)); display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 24px; }
.legal li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 9px;
  background: var(--vari-korostus);
  clip-path: var(--kuusikulmio);
}
.legal a { color: var(--vari-korostus-tumma); text-decoration: underline; text-underline-offset: 3px; }
.legal__updated { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--vari-himmea); }

.notfound__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: calc(44 * var(--u)); }
.notfound__alt {
  margin-top: calc(56 * var(--u));
  padding-top: calc(28 * var(--u));
  border-top: 1px solid var(--vari-tumma-viiva);
  font-size: max(15px, calc(17 * var(--u)));
  line-height: 1.55;
  color: var(--vari-tumma-teksti);
}
.notfound__alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 16. Footer ---------- */
.footer__grid { grid-template-columns: minmax(0, 385fr) repeat(3, minmax(0, 288fr)) minmax(0, 340fr); }
.footer__brand { display: block; }
.footer__brand img { width: calc(250 * var(--u)); min-width: 190px; height: auto; }
.footer__brand-text {
  max-width: calc(300 * var(--u));
  margin-top: calc(26 * var(--u));
  font-size: max(14px, calc(15.5 * var(--u)));
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--vari-footer-pieni);
}
.footer__col address { font-style: normal; }
.footer__col--contact ul { gap: calc(24 * var(--u)); }
.footer__person { display: grid; gap: 3px; }
.footer__name { color: #fff; }
.footer__role { margin-bottom: 4px; font-size: .86em; color: var(--vari-footer-pieni); }
.footer__person a { width: fit-content; transition: color .3s var(--ease); }
.footer__person a:hover { color: #fff; }
.footer__legal { flex-wrap: wrap; row-gap: 10px; }
/* Sivuston tekijä: leveällä rivin keskellä, pinottuna alimpana */
.footer__tekija a { font-weight: 700; transition: color .3s; }
.footer__tekija a:hover, .footer__tekija a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1099px) { .footer__tekija { order: 3; } }
@media (min-width: 768px) and (max-width: 1099px) { .footer__tekija { flex-basis: 100%; } }

/* ---------- 17. Tabletti ---------- */
@media (max-width: 1099px) {
  .nav__list { gap: 2px; }
  .nav__sub { margin: 4px 0 14px 2px; padding-left: 18px; border-left: 1px solid var(--vari-tumma-viiva); }
  .nav__sub a {
    padding: 6px 0;
    font-size: clamp(17px, 3vw, 22px);
    font-weight: 400;
    color: var(--vari-tumma-teksti);
  }
  .nav__sub a:hover,
  .nav__sub a[aria-current="page"] { color: #fff; }
  .nav__chevron { display: none; }

  .map__body { min-height: 0; max-width: 640px; }
  .map__text { margin-top: 24px; }
  .map__canvas { position: relative; inset: auto; margin-top: 40px; aspect-ratio: 940 / 900; }
  .map__svg { overflow: hidden; }
  .about__split { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .solutions:not(.section--alt) .cards { background: #fff; }
  .about__split + .stats { margin-top: 80px; }
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
  .service-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .service-cards--3 .service-card__link { aspect-ratio: 3 / 4; padding: 20px; }
  .service-cards--3 .service-card__index { top: 20px; left: 20px; }
  .service-card__link { padding: 26px; }
  .service-card__index { top: 26px; left: 26px; }
  .consult { grid-template-columns: auto minmax(0, 1fr); row-gap: 24px; padding: 32px; }
  .consult .btn { grid-column: 2; justify-self: start; }

  /* Referenssit ja kortit allekkain, ei sivuttain selattavaa karusellia */
  .posts {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 24px;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .js .posts .reveal { transform: translate3d(0, 28px, 0); }
  .js .posts .reveal.is-visible { transform: none; }

  .page-hero { min-height: 560px; padding-bottom: 56px; }
  .page-hero--matala { min-height: 460px; }
  .page-hero__title { font-size: clamp(44px, 7.4vw, 72px); }
  .page-hero__lead { font-size: 18px; max-width: 600px; }
  .crumbs ol { margin-bottom: 28px; }

  .intro__grid,
  .faq__grid,
  .ref__grid,
  .contact__grid,
  .band__grid { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .intro__aside { grid-template-columns: minmax(0, 1fr); }
  .intro__media { aspect-ratio: 16 / 10; }
  .band__stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__stats--4 .band__stat:nth-child(n + 3) { border-top: 1px solid var(--vari-tumma-viiva); margin-top: 28px; }
  .page-hero--referenssi .page-hero__title { font-size: clamp(34px, 5.4vw, 56px); }
  .ref__body { position: static; }
  .ref__kuva { max-width: 640px; }
  .ref__kuvat { margin-top: 56px; gap: 16px; }
  .story__item { grid-template-columns: minmax(0, 1fr); row-gap: 18px; padding-block: 40px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 18. Mobiili ---------- */
@media (max-width: 767px) {
  .lang { margin-right: 0; font-size: 12.5px; }
  .lang__btn { padding: 10px 6px; }
  .header__logo img { height: 38px; }
  .header.is-scrolled .header__logo img { height: 31px; }

  /* Hero: tummempi kokonaisuus, jotta otsikko erottuu videosta. Napit
     normaalin levyisiä (Mikko 30.10.2026). */
  .hero__shade {
    background:
      linear-gradient(to bottom,
        rgba(var(--vari-hero-varjo), .62) 0%,
        rgba(var(--vari-hero-varjo), .4) 24%,
        rgba(var(--vari-hero-varjo), .5) 46%,
        rgba(var(--vari-hero-varjo), .8) 68%,
        rgba(var(--vari-hero-varjo), .93) 88%,
        rgba(var(--vari-hero-varjo), .96) 100%),
      rgba(var(--vari-hero-varjo), .2);
  }
  .hero__actions { width: auto; }
  .hero__actions .btn { width: auto; justify-content: center; }

  /* Palvelukortit allekkain (Mikko 30.10.2026: ei karusellia puhelimessa) */
  .service-cards,
  .service-cards--3 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .service-card__link,
  .service-cards--3 .service-card__link { aspect-ratio: 1 / 1; padding: 22px; }
  .service-card__index { top: 22px; left: 22px; }
  .consult { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
  .consult .btn { grid-column: auto; }
  .consult__icon { width: 40px; height: 46px; }

  /* Kartta: maalista pois, maa luetaan napauttamalla. Kartta reunasta reunaan. */
  .map__list { display: none; }
  .map__canvas { aspect-ratio: 612 / 853; margin: 20px calc(-1 * var(--reunus)) 0; }
  .map__shadow, .map__glow, .map__graticule, .map__hq-pulse { display: none; }
  .map__neighbours path { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .07); }
  .map__route { animation: none; }
  .js .map .map__country { opacity: 1; transform: none; transition: opacity .25s var(--ease), fill .25s var(--ease); }
  /* pisteiden ja HQ:n sijainti on SVG:n transform-attribuutissa: CSS-transformiin ei saa koskea */
  .js .map .map__point,
  .js .map .map__hq { opacity: 1; transition: none; }
  .js .map .map__route { opacity: .5; transition: opacity .25s var(--ease); }
  .map.is-ready.is-focus .map__country.is-active { transform: none; filter: none; fill: var(--kartta-vari-1); }
  .js .map__canvas { opacity: 0; transition: opacity .45s var(--ease); }
  .map.is-visible .map__canvas { opacity: 1; }
  .map__canvas::before,
  .map__canvas::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    z-index: 2;
    height: 7%;
    pointer-events: none;
  }
  .map__canvas::before { top: 0; background: linear-gradient(var(--vari-tumma), rgba(14, 43, 49, 0)); }
  .map__canvas::after { bottom: 0; background: linear-gradient(rgba(14, 43, 49, 0), var(--vari-tumma)); }
  .map__tip { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 28, 33, .96); padding: 10px 14px 10px 12px; }
  .map__tip-name { font-size: 15px; }

  .posts,
  .posts--2 { grid-template-columns: minmax(0, 1fr); gap: 52px; }

  .page-hero { min-height: 520px; padding-bottom: 44px; }
  .page-hero--matala { min-height: 420px; }
  .page-hero--tumma { min-height: 0; padding-bottom: 56px; }
  .page-hero__title { font-size: clamp(36px, 10.4vw, 52px); }
  .page-hero__lead { font-size: 17px; }
  .page-hero .hero__shade {
    background:
      linear-gradient(to bottom,
        rgba(var(--vari-hero-varjo), .66) 0%,
        rgba(var(--vari-hero-varjo), .45) 35%,
        rgba(var(--vari-hero-varjo), .9) 100%),
      rgba(var(--vari-hero-varjo), .18);
  }
  .crumbs ol { font-size: 11px; }

  .intro__aside { grid-template-columns: minmax(0, 1fr); }
  .band__stats { grid-template-columns: minmax(0, 1fr); }
  .band__stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__stat { padding-top: 26px; }
  .band__stats:not(.band__stats--4) .band__stat + .band__stat { border-top: 1px solid var(--vari-tumma-viiva); margin-top: 26px; }
  .faq__item summary { padding: 22px 0; }
  .faq__answer { padding-right: 0; }
  .page-hero--referenssi .page-hero__title { font-size: clamp(24px, 7.4vw, 36px); line-height: 1.12; }
  .ref__kuvat { flex-direction: column; margin-top: 16px; }
  .ref__kuvat figure { flex: none; }
  .gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 56px; }
  /* Mobiilissa kaksi pystykuvaa rinnakkain ja kolmas koko leveydeltä */
  .gallery--kolme { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gallery--kolme figure:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .ref-nav a { max-width: none; }
  .founders { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .founder { padding: 30px 24px; }
  .form { padding: 30px 22px 28px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .seal { align-items: flex-start; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Etusivun esittelyosio: Ota yhteyttä -nappi ja Tarinamme-linkki rinnakkain */
.about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(20 * var(--u)) calc(36 * var(--u));
  margin-top: calc(44 * var(--u));
}
.about__actions .link-arrow { transition: color .35s var(--ease); }
.about__actions .link-arrow:hover .ico { transform: translateX(4px); }
@media (max-width: 767px) {
  .about__actions { gap: 18px 28px; margin-top: 32px; }
}

/* Mobiilivalikon Palvelut-alavalikko: palvelulinkit avautuvat Palvelut-napista.
   Napin hoitaa script.js. Ilman JavaScriptiä nappi on piilossa, tilalla on
   Palvelut-linkki ja alavalikko näkyy aina. Desktopilla ei muutosta. */
.nav__sub-toggle { display: none; }
@media (max-width: 1099px) {
  .js .nav__item--sub > .nav__link:not(.nav__sub-toggle) { display: none; }
  .js .nav__sub-toggle { display: inline-flex; align-items: center; text-align: left; }
  .nav__sub-toggle .nav__chevron {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-left: 18px;
    border-right-width: 2px;
    border-bottom-width: 2px;
    transform: translateY(-3px) rotate(45deg);
  }
  .nav__item--sub.is-open .nav__sub-toggle .nav__chevron { transform: translateY(3px) rotate(225deg); }
  .js .nav__sub {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .45s var(--ease), margin .45s var(--ease), opacity .3s var(--ease), visibility .45s;
  }
  .js .nav__item--sub.is-open .nav__sub { max-height: 24rem; margin-top: 4px; margin-bottom: 14px; opacity: 1; visibility: visible; }
}
