/* Coditify – design system 0.1 (Design-kanvaasi "Coditify – verkkosivuston uudistus").
   Mobile first. Fontit omalta palvelimelta (ei Google Fonts -kutsuja).
   Muutoksen jälkeen aja: tools/bump-asset-versions.sh (päivittää ?v=-leimat HTML-tiedostoihin). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2-variations"), url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-wght.woff2") format("woff2-variations"), url("/assets/fonts/source-serif-4-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Yksityiskohtakerrokset: tekstuuri ja tasalevyinen fontti (järjestelmäfontti, ei latausta) */
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --hairline-dark: rgba(255, 255, 255, 0.045);

  /* Värit */
  --bg: #f3f5f6;
  --surface: #ffffff;
  --ink: #1e2a33;
  --muted: #4a5862;
  --line: #d5dce0;
  --line-soft: #e3e8eb;
  --border: #7a8a95;
  --dark-line: #3a4b57;
  --on-dark: #f3f5f6;
  --on-dark-muted: #c9d3d9;
  --on-dark-subtle: #aebbc4;
  --accent: #e8752a;
  --accent-border: #a9521b;
  --accent-soft: #fbe3d3;
  --accent-ink: #8a3f10;
  --ok: #2f5d50;
  --ok-soft: #e6eeeb;
  --neutral-soft: #eef1f3;

  /* Fokusrengas: vaalealla pohjalla tummempi oranssi (4,91:1), tummalla --accent (4,89:1).
     Kirkas --accent jää vaalealla 2,74:1:een eli alle 3:1 vaatimuksen. */
  --focus: var(--accent-border);

  /* Syvyys */
  --raised: -6px -6px 12px #ffffff, 6px 6px 12px rgba(30, 42, 51, 0.16);
  --raised-sm: -3px -3px 6px #ffffff, 3px 3px 6px rgba(30, 42, 51, 0.18);
  --pressed: inset 4px 4px 8px rgba(30, 42, 51, 0.18), inset -4px -4px 8px #ffffff;
  --inset: inset 3px 3px 6px rgba(30, 42, 51, 0.14), inset -3px -3px 6px #ffffff;
  --float: 0 28px 56px rgba(8, 14, 18, 0.38), 0 2px 6px rgba(8, 14, 18, 0.22);

  /* Liike */
  --t: 150ms;
  --t-slow: 520ms;
  --ease: cubic-bezier(0.2, 0, 0.2, 1);

  /* Typografia */
  --serif: "Source Serif 4", Georgia, Cambria, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --h1: 40px;
  --h2: 30px;

  /* Asettelu */
  --wrap: 1200px;
  --px: 20px;
  --gap: 16px;
  --pad: 72px;
  --hero-pad: 56px;
  --rg: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img,
svg {
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
}

h1 {
  font-size: var(--h1);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--h2);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 24px;
  line-height: 1.25;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Tummilla pinnoilla kirkas oranssi erottuu, vaalealla tarvitaan tummempi sävy. */
.hero,
.page-hero,
.section--dark,
.site-footer {
  --focus: var(--accent);
}

.visually-hidden {
  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: absolute;
  left: 16px;
  top: -200px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Asettelu ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--px);
  padding-right: var(--px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--rg);
}

.grid > * {
  grid-column: span 4;
}

.section {
  padding-top: var(--pad);
  padding-bottom: var(--pad);
}

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section--line {
  border-bottom: 1px solid var(--line);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack--lg {
  gap: 20px;
}

.stack--xl {
  gap: 24px;
  align-items: flex-start;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--dark .eyebrow,
.page-hero .eyebrow,
.hero .eyebrow {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.section--dark .muted,
.page-hero .muted,
.hero .muted {
  color: var(--on-dark-muted);
}

.measure {
  max-width: 34em;
}

.measure-wide {
  max-width: 36em;
}

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-image var(--t) var(--ease),
    background-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease),
    color var(--t) var(--ease),
    translate var(--t) var(--ease);
}

.btn svg {
  flex-shrink: 0;
}

.btn--primary {
  background: linear-gradient(180deg, #f39255 0%, var(--accent) 100%);
  color: var(--ink);
  border: 1px solid var(--accent-border);
  box-shadow: 0 6px 20px rgba(232, 117, 42, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #f6a06a 0%, #ee8540 100%);
  box-shadow: 0 8px 28px rgba(232, 117, 42, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--raised);
}

.btn--secondary:active {
  box-shadow: var(--pressed);
}

/* Tummalla pohjalla ei neumorfismia */
.section--dark .btn--secondary,
.hero .btn--secondary {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--on-dark-subtle);
  box-shadow: none;
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 26px;
}

.footer-logo {
  align-self: flex-start;
  width: auto;
  height: 26px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-desktop {
  display: none;
}

/* Mobiilissa headerissa näkyy lyhyt CTA; kielivalinta on valikon sisällä */
.header-right > .lang {
  display: none;
}

/* Lyhyt CTA mobiilissa: loppuosa piilotetaan vain näkyvistä, ruudunlukija lukee sen */
.cta-long {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.lang--menu {
  align-self: flex-start;
  margin-top: 16px;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
}

.nav-desktop a {
  display: inline-block;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t) var(--ease);
}

.nav-desktop a[aria-current="page"],
.nav-desktop a:hover {
  border-bottom-color: var(--ink);
}

/* Kielivalinta */
.lang {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--inset);
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
}

.lang a[aria-current="true"] {
  background: var(--bg);
  border-color: var(--ink);
  box-shadow: var(--raised-sm);
  color: var(--ink);
}

/* Mobiilivalikko: <details>, toimii ilman JavaScriptiä */
.menu-mobile summary {
  list-style: none;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--raised);
  cursor: pointer;
}

.menu-mobile summary::-webkit-details-marker {
  display: none;
}

.menu-mobile .icon-close,
.menu-mobile[open] .icon-open {
  display: none;
}

.menu-mobile[open] .icon-close {
  display: block;
}

.menu-mobile[open] summary {
  box-shadow: var(--pressed);
}

.menu-mobile nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px var(--px) 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 24px rgba(30, 42, 51, 0.12);
}

.menu-mobile nav ul {
  list-style: none;
  padding: 0;
}

.menu-mobile nav li a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.menu-mobile nav li a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.menu-mobile nav .btn {
  margin-top: 16px;
}

/* ---------- Hero: sama tausta etusivulla (.hero) ja alasivuilla (.page-hero) ---------- */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  background-color: #0e1822;
  /* Mobiilissa hehkut korttien takana, ettei oranssi hehku osu oranssin yläotsikon taakse */
  background-image:
    radial-gradient(60% 22% at 92% 58%, rgba(232, 117, 42, 0.38) 0%, rgba(232, 117, 42, 0) 70%),
    radial-gradient(80% 35% at 70% 75%, rgba(38, 104, 122, 0.45) 0%, rgba(38, 104, 122, 0) 70%),
    linear-gradient(160deg, #142331 0%, #0e1822 55%, #0b141c 100%);
  color: var(--on-dark);
  overflow: hidden;
  padding-top: var(--hero-pad);
  padding-bottom: var(--hero-pad);
}

/* Hienovarainen vino valopinta ja ohuet kaaret (koristeita, aria-hidden) */
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  left: 38%;
  width: 46%;
  height: 140%;
  border-radius: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  transform: rotate(28deg);
}

/* WebGL-tausta. Puhtaasti koristeellinen: ilman JS:ää tai WebGL:ää alla olevat
   radial-gradientit näkyvät sellaisenaan, eikä hero muutu. */
.hero-canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Maskataan hiukkaset pois tekstin päältä, jotta ne eivät voi vaikuttaa
     kontrastiin. Mobiilissa teksti on ylhäällä, työpöydällä vasemmalla. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 58%, #000 88%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 58%, #000 88%);
}

.hero-arcs {
  position: absolute;
  z-index: -1;
  right: -10%;
  top: 10%;
  width: 70%;
  height: auto;
  pointer-events: none;
}

.hero h1,
.page-hero h1 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  /* Tasaa rivien pituudet. Selain, joka ei tue tätä, rivittää normaalisti. */
  text-wrap: balance;
}

.hero .lead {
  font-size: 18px;
}

.hero .grid {
  row-gap: 56px;
  align-items: center;
}

.hero .btn {
  margin-top: 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
}

.mock {
  position: relative;
  padding: 18px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.05),
    0 0 56px rgba(170, 200, 230, 0.2),
    0 28px 56px rgba(4, 8, 12, 0.55);
  font-size: 13px;
  line-height: 1.4;
}

.mock--a {
  align-self: flex-end;
  width: 94%;
  gap: 12px;
}

/* Työnkulkukortti alkaa dokumenttikortin alareunasta ja menee sen päälle vain vähän */
.mock--b {
  align-self: flex-start;
  width: 86%;
  margin-top: -20px;
  gap: 4px;
}

.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mock-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mock-title strong,
.mock-head strong {
  display: block;
  font-weight: 600;
}

.mock small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.mock-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mock-rule {
  height: 1px;
  background: var(--line-soft);
}

.tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.is-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.is-warn {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.chip.is-warn {
  border-color: var(--accent);
}

.is-wait {
  background: var(--neutral-soft);
  color: var(--muted);
}

.pending {
  align-self: flex-end;
  margin-top: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 600;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.flow-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flow-icon--ai {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
  font-size: 11px;
  font-weight: 600;
}

.flow-icon--human {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.flow-kind {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.flow-line {
  width: 2px;
  height: 14px;
  margin-left: 15px;
  background: var(--line);
}

.mini-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.mini-actions span {
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
}

.mini-actions span:first-child {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- Kortit ja listat ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card .muted {
  color: var(--muted);
}

.card-icon {
  color: var(--ink);
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card .more {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
}

.rule-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rule-list > li,
.rule-list > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 0;
  border-top: 1px solid var(--dark-line);
}

.rule-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.rule-title--sm {
  font-size: 22px;
}

.subtle {
  color: var(--on-dark-subtle);
}

.motto {
  margin-top: 24px;
  font-family: var(--serif);
  font-size: var(--h2);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.motto span {
  color: var(--accent);
}

/* ---------- Vaiheet (välilehdet, JS valinnainen) ---------- */
.step-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--raised);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition:
    border-color var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}

.step-tile:hover {
  border-color: var(--ink);
}

.step-tile[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: none;
  color: var(--on-dark);
}

.step-tile[aria-current="true"] .step-no,
.step-tile[aria-current="true"] .step-short {
  color: var(--on-dark-muted);
}

.step-no {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--muted);
}

.step-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.step-short {
  color: var(--muted);
}

.step-panels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  scroll-margin-top: 24px;
}

/* JavaScriptin kanssa näytetään vain valittu vaihe */
.js .step-detail:not(.is-active) {
  display: none;
}

.step-detail-grid {
  display: grid;
  gap: 24px;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.facts p + p {
  margin-top: 4px;
}

/* ---------- Palvelut-sivu ---------- */
.service h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
}

.principle p {
  color: var(--on-dark-muted);
}

.service {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.service-no {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--muted);
}

.ticks {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ticks svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.fit {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.fit strong {
  color: var(--ink);
}

/* ---------- Numeroitu lista (vaaleat osiot) ---------- */
.num-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.num-list li {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.num-list .n {
  min-width: 32px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--muted);
}

.num-list strong {
  display: block;
  font-weight: 600;
}

/* ---------- Tarina ---------- */
.portrait {
  align-self: start;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.portrait figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-person img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 15%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-person strong {
  display: block;
  font-weight: 600;
}

.contact-person .muted {
  font-size: 15px;
}

.person {
  align-self: start;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.person-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.prose {
  max-width: 40em;
}

/* ---------- Yhteystiedot ---------- */
.contact-big {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--raised-sm);
  cursor: pointer;
}

.copy-btn[hidden] {
  display: none;
}

.copy-btn:active {
  box-shadow: var(--pressed);
}

.copy-btn .icon-check,
.copy-btn.is-copied .icon-copy {
  display: none;
}

.copy-btn.is-copied .icon-check {
  display: block;
}

.copy-btn.is-copied {
  border-color: var(--ok);
  color: var(--ok);
}

.copy-status {
  font-size: 15px;
  font-weight: 600;
  color: var(--ok);
}

.copy-status:empty {
  display: none;
}

.details-card {
  padding: 32px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-card h2 {
  font-size: 28px;
  line-height: 1.2;
}

.details-card dl > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.details-card dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.details-card dd {
  margin: 0;
}

.note {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  font-size: 15px;
  line-height: 1.6;
  border-top: 1px solid #2e3d48;
}

.footer-top {
  padding-top: 64px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
}

.footer-brand .logo {
  font-size: 24px;
  color: var(--on-dark);
  min-height: 0;
}

.footer-brand p {
  color: var(--on-dark-subtle);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--on-dark-muted);
}

.footer-info strong {
  color: var(--on-dark);
  font-weight: 600;
}

.footer-bottom {
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid #2e3d48;
  color: var(--on-dark-subtle);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

/* ---------- Leveämmät näytöt ---------- */
@media (min-width: 64rem) {
  :root {
    --px: 40px;
    --gap: 24px;
    --pad: 120px;
    --hero-pad: 104px;
    --rg: 48px;
    --h1: 64px;
    --h2: 44px;
  }

  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .grid > * {
    grid-column: span 12;
  }

  .grid > .head {
    grid-column: 1 / -1;
    max-width: 50rem;
  }

  .grid > .s4 { grid-column: span 4; }
  .grid > .s5 { grid-column: span 5; }
  .grid > .s6 { grid-column: span 6; }
  .grid > .s7 { grid-column: span 7; }
  .grid > .s8 { grid-column: span 8; }

  .hero h1,
  .page-hero h1 {
    font-size: 56px;
  }

  .hero h1 {
    max-width: 11em;
  }

  .hero-canvas {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 40%, #000 74%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 40%, #000 74%);
  }

  .hero,
  .page-hero {
    padding-top: 72px;
    padding-bottom: 72px;
    background-image:
      radial-gradient(30% 45% at 86% 6%, rgba(232, 117, 42, 0.42) 0%, rgba(232, 117, 42, 0) 70%),
      radial-gradient(45% 60% at 72% 40%, rgba(38, 104, 122, 0.4) 0%, rgba(38, 104, 122, 0) 70%),
      linear-gradient(160deg, #142331 0%, #0e1822 55%, #0b141c 100%);
  }

  .hero-arcs {
    right: -6%;
    top: -12%;
    width: 52%;
  }

  .mock--a {
    margin-right: 6%;
    width: 70%;
  }

  .mock--b {
    width: 56%;
    margin-top: -12px;
  }

  .nav-desktop,
  .header-cta {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .header-right {
    gap: 16px;
  }

  .nav-desktop {
    margin-right: 24px;
  }

  .service h2 {
    font-size: 36px;
  }

  .services-list {
    gap: 80px;
  }

  .step-detail h3 {
    font-size: 32px;
  }

  .menu-mobile {
    display: none;
  }

  .logo img {
    height: 28px;
  }

  .portrait {
    max-width: 420px;
  }

  .lang a {
    min-height: 36px;
    padding: 0 10px;
  }

  .step-tile {
    min-height: 220px;
  }

  .step-detail {
    padding: 40px;
  }

  .step-detail-grid {
    grid-template-columns: 7fr 5fr;
    gap: 24px;
  }

  .actions--end {
    justify-content: flex-end;
  }

  .align-end {
    align-items: end;
  }
}

/* ---------- Scroll-reveal ----------
   Sisältö on oletuksena näkyvissä. Piilotus tapahtuu vain, jos JS on käytössä
   (html.js) JA käyttäjä ei ole pyytänyt vähemmän liikettä. site.js paljastaa
   elementit IntersectionObserverilla ja lopettaa niiden tarkkailun heti perään. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    translate: 0 14px;
    transition:
      opacity var(--t-slow) var(--ease),
      translate var(--t-slow) var(--ease);
  }

  .js .reveal.is-in {
    opacity: 1;
    translate: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .skip-link,
  .hero-visual {
    display: none;
  }

  .hero,
  .page-hero,
  .section--dark,
  .site-footer {
    background: none;
    color: #000;
  }
}

.mock-head--b {
  margin-bottom: 10px;
}

/* ---------- Kipupisteet ---------- */
.pain-no {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--accent-ink);
}

/* ---------- UKK: harmonikka <details>-elementeillä, toimii ilman JavaScriptiä ---------- */
.faq {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.faq-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--raised-sm);
}

.faq-icon {
  transition: box-shadow var(--t) var(--ease);
}

.faq-icon svg {
  transition: transform var(--t) var(--ease);
}

/* Plus kääntyy ×:ksi, laatikko painuu sisään */
.faq-item[open] .faq-icon {
  box-shadow: var(--pressed);
}

.faq-item[open] .faq-icon svg {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 24px;
  color: var(--muted);
  max-width: 40em;
}

@media (min-width: 64rem) {
  .faq-answer {
    padding-right: 56px;
  }
}

/* ---------- Heron lupaukset ---------- */
.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 15px;
  color: var(--on-dark-muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-points svg {
  color: var(--accent);
  flex: none;
}

/* ---------- ROI-laskuri ---------- */
.roi {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.roi-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.field input {
  font: inherit;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  color: var(--on-dark);
  background: #16212a;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.field input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--accent);
}

.roi-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
}

.roi-results div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roi-results dt {
  font-size: 14px;
  color: var(--on-dark-muted);
}

.roi-results dd {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.roi-main dd {
  color: var(--accent);
  font-size: 32px;
}

.roi-wide {
  grid-column: 1 / -1;
}

.roi-wide dd {
  font-size: 20px;
}

.roi-note {
  font-size: 14px;
  color: var(--on-dark-subtle);
}

/* ---------- Hinnat ---------- */
.price-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--dark-line);
  border-radius: 16px;
}

.price-card h3 {
  font-family: var(--sans);
  font-size: 18px;
}

.price {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
}

.price-card--free {
  border-color: var(--accent);
}

.price-card--free .price {
  color: var(--accent);
}

@media (min-width: 40rem) {
  .roi-inputs {
    grid-template-columns: repeat(3, 1fr);
  }

  .roi {
    padding: 32px;
  }
}

/* ---------- Pääpaketti (Aikaa takaisin -pilotti) ---------- */
.offer {
  grid-column: 1 / -1;
  display: grid;
  gap: 32px;
  padding: 28px 22px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--accent);
  border-radius: 20px;
  box-shadow: var(--float);
}

.section--dark .offer .muted {
  color: var(--muted);
}

.offer-badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.offer h3 {
  font-size: var(--h2);
}

.offer-lead {
  font-size: 17px;
}

.section--dark .offer .eyebrow {
  color: var(--muted);
}

.offer-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer-items li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.offer-item {
  display: flex;
  gap: 10px;
}

.offer-item svg {
  flex: none;
  margin-top: 3px;
  color: var(--ok);
}

.offer-item strong,
.offer-item .muted {
  display: block;
}

.offer-item .muted {
  font-size: 15px;
}

.offer-val {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.offer-side {
  align-items: flex-start;
  padding: 24px;
  border-radius: 16px;
  background: var(--neutral-soft);
}

.offer-sep {
  color: var(--muted);
}

.offer-price {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.offer-price span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.offer-founding {
  font-size: 15px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.offer-guarantee {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--ok-soft);
  font-size: 15px;
}

.offer-guarantee svg {
  flex: none;
  color: var(--ok);
}

.offer-capacity {
  font-size: 14px;
  color: var(--muted);
}

.single-h3 {
  margin-top: 24px;
  font-size: 22px;
}

.roi-guarantee {
  display: flex;
  gap: 8px;
  font-size: 15px;
  color: var(--on-dark-muted);
}

.roi-guarantee svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

@media (min-width: 64rem) {
  .offer {
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    padding: 40px;
  }

  .offer-side {
    padding: 32px;
  }
}

.offer-side .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 63.99rem) {
  .offer {
    padding: 22px 16px;
  }

  .offer-side {
    padding: 20px 16px;
  }
}

/* ---------- Yhteystiedot: väljempi rytmi ---------- */
.contact-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-reach {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.contact-reach .copy-row {
  gap: 12px 16px;
}

.contact-next {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

@media (min-width: 64rem) {
  .contact-main {
    gap: 48px;
  }

  .contact-next {
    padding-top: 48px;
  }
}

/* ---------- Palvelukortti linkkinä: koko kortti on klikattava ---------- */
.card--link {
  position: relative;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.card--link:hover {
  border-color: var(--ink);
  box-shadow: var(--raised-sm);
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.card-link:focus-visible {
  outline: none;
}

.card-link:focus-visible::after {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.card--link .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Etusivu: paketti ja tekijä ---------- */
.offer-teaser {
  border: 2px solid var(--accent);
  gap: 18px;
}

.offer-teaser h2 {
  font-size: var(--h2);
}

.offer-teaser-price {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.offer-teaser-price span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.offer-teaser .ticks svg {
  color: var(--ok);
  margin-top: 3px;
}

.offer-teaser-guarantee {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--ok-soft);
  font-size: 15px;
}

.offer-teaser-guarantee svg {
  flex: none;
  color: var(--ok);
}

.founder {
  align-self: start;
}

.founder img {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 15%;
  border: 1px solid var(--line);
  background: var(--surface);
}

.founder h3 {
  font-size: 24px;
}

.founder-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 600;
}

/* ---------- Etusivu: tiivis toimintatapa ---------- */
.steps-compact {
  grid-column: 1 / -1;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps-compact li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.steps-more {
  grid-column: 1 / -1;
}

/* ---------- Hinnat: säädösviite pienenä huomautuksena ---------- */
.price-note {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  color: var(--on-dark-subtle);
}

@media (min-width: 30rem) {
  .cta-long {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
}

@media (min-width: 64rem) {
  .header-right > .lang {
    display: inline-flex;
  }

  .steps-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .portrait img {
    max-height: 360px;
  }

  .offer-teaser {
    padding: 40px;
  }
}

/* =====================================================================
   Yksityiskohtakerrokset halvimmasta kalleimpaan:
   1 tekstuuri · 2 typografia · 3 omat assetit · 4 mikrointeraktiot · 5 3D
   ===================================================================== */

/* ---------- 1. Tekstuuri: grain tummille pinnoille, hiusviivaruudukko heroon ----------
   Heroissa vaalea grain on maskattu pois tekstin alta; muualla käytetään tummaa grainia. */
.section--dark,
.site-footer {
  position: relative;
  isolation: isolate;
}

.hero::after,
.page-hero::after,
.section--dark::after,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Tumma grain: tummentaa pistemäisesti, joten vaalean tekstin kontrasti ei voi heiketä */
  background-image: url("/assets/img/grain-dark.svg");
  background-size: 180px 180px;
}

/* Heroissa lisäksi hiusviivaruudukko, joka häivytetään reunoilta ja tekstin alta */
.hero::after,
.page-hero::after {
  background-image:
    url("/assets/img/grain.svg"),
    repeating-linear-gradient(90deg, var(--hairline-dark) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, var(--hairline-dark) 0 1px, transparent 1px 96px);
  background-size: 180px 180px, auto, auto;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 80% 40%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 70% at 80% 40%, #000 0%, transparent 100%);
}

/* ---------- 2. Typografia: mono-labelit, osionumerot, isot numerot, marginaalihuomautus ---------- */
.eyebrow,
.tag,
.chip,
.offer-badge,
.offer-val,
.price-note {
  font-family: var(--mono);
}

.eyebrow {
  letter-spacing: 0.06em;
}

/* Osionumero yläotsikon eteen: "02 / Laskuri". Ruudunlukija ohittaa numeron. */
main {
  counter-reset: osio;
}

.hero .eyebrow,
.page-hero .eyebrow,
main .head > .eyebrow:first-child,
main .grid > .stack > .eyebrow:first-child {
  counter-increment: osio;
}

.hero .eyebrow::before,
.page-hero .eyebrow::before,
main .head > .eyebrow:first-child::before,
main .grid > .stack > .eyebrow:first-child::before {
  content: counter(osio, decimal-leading-zero) " / ";
  content: counter(osio, decimal-leading-zero) " / " / "";
}

.pain-no {
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.service-no {
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.steps-compact .step-no {
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
}

.roi-note {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  padding-left: 14px;
  border-left: 1px solid var(--dark-line);
}

/* ---------- 3. Omat assetit: käsin piirretty aikajana vaiheiden yllä ---------- */
.steps-line {
  display: none;
  grid-column: 1 / -1;
  color: var(--accent);
}

.steps-line svg {
  display: block;
  width: 100%;
  height: 28px;
  overflow: visible;
}

.steps-line path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .js .steps-line.reveal path {
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1400ms var(--ease) 200ms;
  }

  .js .steps-line.reveal.is-in path {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 64rem) {
  .steps-line {
    display: block;
  }

  /* Etusivulla viiva kulkee vaiheiden pallojen kautta */
  .steps-line:has(+ .steps-compact) {
    position: relative;
    top: 27px;
    margin-bottom: -28px;
  }

  .steps-compact li {
    position: relative;
    border-top: 0;
  }

  .steps-compact li::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg);
  }
}

/* ---------- 4. Mikrointeraktiot ja 5. CSS 3D: vain hiirellä ja ilman vähennettyä liikettä ----------
   site.js asettaa --rx/--ry (kallistus) ja --mx/--my (magneettinappi). Ilman JS:ää arvot ovat nollia. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card--link,
  .offer-teaser,
  .price-card,
  .step-tile {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition:
      transform var(--t-slow) var(--ease),
      border-color var(--t) var(--ease),
      box-shadow var(--t) var(--ease);
  }

  .is-tilting {
    transition-duration: var(--t), var(--t), var(--t);
  }

  .btn--primary {
    translate: var(--mx, 0px) var(--my, 0px);
  }

  /* Heron esimerkkikortit eri syvyyksillä: kallistus tuo parallaksin */
  .hero-visual {
    transform-style: preserve-3d;
    transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform var(--t-slow) var(--ease);
  }

  .hero-visual .mock--a {
    transform: translateZ(24px);
  }

  .hero-visual .mock--b {
    transform: translateZ(64px);
  }
}
