/* =========================================================
   Dome Digital – moottorin perustyylit
   ---------------------------------------------------------
   ÄLÄ kirjoita tähän asiakaskohtaisia värejä tai fontteja.
   Ne ovat teema.css:ssä (tokenit). Tämä tiedosto käyttää vain
   tokeneita, joten sama CSS toimii tummalla ja vaalealla teemalla.
   Asiakaskohtaiset rakennemuutokset: lisää ne teema.css:n loppuun.
   ========================================================= */

:root {
  /* Johdetut värit – lasketaan teeman tokeneista, ei kovakoodattuja rgba-arvoja. */
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 22%, transparent);
  --line-hover: color-mix(in srgb, var(--text) 40%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 30%, transparent);
  --header-bg: color-mix(in srgb, var(--bg-deep) 92%, transparent);
  --shadow-deep: color-mix(in srgb, #000 70%, transparent);

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.05rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3.1rem);

  --wrap: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-space: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;

  --z-header: 40;
  --z-mobile-cta: 30;
  --z-demo: 35;
  --z-nav: 50;
}

/* ---------- Perusta ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; color-scheme: var(--color-scheme, dark); }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--bg-image, none);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight, 650); line-height: 1.12; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.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; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.btn-external { margin-top: 1.5rem; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: var(--radius-btn, 999px); border: 2px solid transparent;
  font-weight: 600; font-size: var(--step-0); text-decoration: none; cursor: pointer; white-space: nowrap;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-dark { background: var(--bg-deep); color: var(--text); }
.btn-dark:hover { background: var(--surface-1); }
.btn-sm { min-height: 42px; padding: 0.45rem 1rem; font-size: var(--step--1); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 48px;
  color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-2);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.text-link .icon { transition: transform var(--dur-fast) ease; }
.text-link:hover .icon { transform: translateX(3px); }
.plain-link { text-decoration: none; }
.plain-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Yläpalkki ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); height: var(--header-h);
  transition: background-color var(--dur) ease, border-color var(--dur) ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: var(--header-bg); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; max-width: 1400px; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-logo { height: 44px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-top: 0.3rem; }

.nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; white-space: nowrap;
  text-decoration: none; font-size: 0.94rem; font-weight: 500; color: var(--text-muted); border-radius: 999px;
  transition: color var(--dur-fast) ease; position: relative;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
.nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.lang-switch { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang-switch button {
  display: inline-flex; align-items: center; gap: 0.4rem; min-width: 44px; min-height: 36px; padding-inline: 0.55rem;
  border: 0; background: transparent; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text-muted); cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.flag { width: 20px; height: 13px; flex: none; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong); }

.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: transparent; border-radius: 50%; cursor: pointer; place-items: center; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ----------
   Kuva on työpöydällä absoluuttisesti oikeassa reunassa, joten se EI kasvata
   hero-osion korkeutta. Näin otsikko, selite, painikkeet, luottamusmerkit ja
   arvostelunauha mahtuvat ensimmäiseen näkymään myös matalalla läppärillä
   (~1514×692). Katso ohjeet/04-hero-ja-asettelu.md ennen kuin muutat tätä. */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(0.5rem, 0.35rem + 0.6vw, 1rem)); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -25vmax; top: -18vmax; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 10%, transparent) 55%, transparent 72%);
  pointer-events: none;
}
.hero-grid { position: relative; }
.hero-copy { display: flow-root; max-width: 880px; }
.open-status { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--step--1); font-weight: 500; color: var(--text-muted); margin-bottom: 0.75rem; padding: 0.4rem 0.9rem 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-muted); }
.open-status[data-state="open"] .status-dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.open-status[data-state="closed"] .status-dot { background: var(--accent-2); }

.hero h1 { font-size: clamp(2.15rem, 1.4rem + 2.5vw, 3.6rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; }
.hero h1 span { display: block; }
.hero h1 em { display: block; font-style: italic; font-weight: 600; color: var(--accent); }
.hero .lead { margin-top: 0.65rem; max-width: 40rem; font-size: var(--step-1); line-height: 1.5; color: var(--text-muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 1rem; }

/* Luottamusmerkit herossa: Google-arvosana (jos kynnys täyttyy) ja/tai 1 muu. */
.hero-trust { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.6rem; margin-top: 1rem; }
.rating-chip, .trust-badge {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem;
  text-decoration: none; padding: 0.6rem 1rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color var(--dur-fast) ease;
}
.rating-chip:hover, .trust-badge:hover { border-color: var(--line-strong); }
.rating-chip, .trust-badge { width: fit-content; max-width: 100%; }
.rating-count { white-space: nowrap; }
.rating-value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.rating-count { font-size: var(--step--1); color: var(--text-muted); }
.trust-badge img { height: 28px; width: auto; }
.trust-badge span { font-size: var(--step--1); line-height: 1.3; }
.trust-badge strong { display: block; font-size: var(--step-0); }
/* Maininnat herossa (teema.asettelu.maininnat = hero, oletus): pieni rivi luottamussignaalien alla */
.hero-maininnat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem; margin-top: 0.9rem; }
.hero-maininnat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.hero-maininnat ul { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.1rem; margin: 0; padding: 0; list-style: none; }
.hero-maininnat a { display: inline-flex; align-items: baseline; gap: 0.4em; color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.hero-maininnat a:hover { border-bottom-color: var(--line-strong); }
.hero-maininnat .trust-text { font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); }
.hero-maininnat .trust-year { font-size: 0.78rem; color: var(--text-muted); }
.hero-maininnat img { height: 20px; width: auto; align-self: center; }

.stars { position: relative; display: inline-block; line-height: 0; }
.stars-base, .stars-fill { display: flex; gap: 2px; }
.stars svg { width: 1.1rem; height: 1.1rem; }
.stars-base svg { fill: var(--surface-3); }
.stars-fill { position: absolute; inset: 0; overflow: hidden; width: calc(var(--rating, 5) / 5 * 100%); }
.stars-fill svg { fill: var(--star, var(--accent)); }

.hero-visual { position: relative; float: right; width: clamp(210px, 31vw, 380px); aspect-ratio: 1; margin: 0 0 1.1rem 1.75rem; }
@media (min-width: 681px) {
  /* translate EIKÄ transform: sisääntuloanimaatio (rise) käyttää transformia. */
  .hero-visual { float: none; position: absolute; top: 50%; right: 0; translate: 0 -50%; width: clamp(260px, 30vw, 430px); max-height: 100%; margin: 0; }
  .hero-copy { max-width: min(58%, 620px); }
}
.hero-kuva { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--hero-radius, 50%); box-shadow: 0 40px 80px -30px var(--shadow-deep), 0 0 0 10px color-mix(in srgb, var(--text) 5%, transparent); }
.hero-kuva img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
/* Yrityksen motto kylttinä (hero.motto): pystylauta kuvan vasemmassa alakulmassa, puhelimessa nauha kuvan alareunassa.
   Värit tokeneista; asiakas voi säätää --motto-bg / --motto-text / --motto-accent asiakas.css:ssä. */
.hero-motto {
  position: absolute; z-index: 2; left: -1.6rem; bottom: -0.8rem; margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.2em;
  padding: 1em 0.85em; border-radius: 4px;
  background: var(--motto-bg, var(--text)); color: var(--motto-text, var(--bg));
  box-shadow: 0 24px 50px -24px var(--shadow-deep);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(0.7rem, 1.15vw, 0.95rem);
  line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
}
.motto-rivi { display: block; }
.motto-ja {
  color: var(--motto-accent, var(--accent)); font-weight: 500; text-transform: none;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
}
/* Pystyrivi (rivi.pysty): merkki per rivi kuten kyltissä. Ei writing-modea: flex-asettelu laskee sen korkeuden väärin. */
.motto-pysty { display: flex; flex-direction: column; align-items: center; line-height: 1.12; }
@media (max-width: 900px) {   /* kapeilla ruuduilla kyltti on vaakanauha kuvan alareunassa: ei vie tekstipalstan tilaa */
  .hero-motto { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.15em 0.5em; padding: 0.45em 0.7em; font-size: 0.68rem; }
  .motto-pysty { flex-direction: row; }
}
.hero-merkki {
  position: absolute; left: -2%; bottom: 6%; z-index: 3; width: 32%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 0.1rem;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 16px 30px -12px var(--shadow-deep); transform: rotate(-8deg);
}
.hero-merkki span { font-size: clamp(0.55rem, 1vw, 0.7rem); font-weight: 600; line-height: 1.15; max-width: 80%; margin-inline: auto; }
.hero-merkki strong { font-family: var(--font-display); font-size: clamp(0.95rem, 2.4vw, 2rem); line-height: 1; font-weight: 800; }

.hero-facts { list-style: none; margin: clamp(3rem, 2rem + 3vw, 4.5rem) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hero-facts li { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-top: 1px solid var(--line-strong); }
.hero-facts .icon { width: 1.5rem; height: 1.5rem; color: var(--accent); margin-top: 0.1rem; }
.hero-facts strong { display: block; font-weight: 600; }
.hero-facts li > span > span { font-size: var(--step--1); color: var(--text-muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(3) { animation-delay: 60ms; }
  .hero-copy > :nth-child(4) { animation-delay: 120ms; }
  .hero-copy > :nth-child(5) { animation-delay: 180ms; }
  .hero-copy > :nth-child(6) { animation-delay: 240ms; }
  .hero-copy > :nth-child(7) { animation-delay: 300ms; }
  .hero-visual { animation-duration: 900ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Luottamusnauha (heti heron alla) ---------- */
.trust-strip { border-block: 1px solid var(--line); background: var(--surface-1); }
.trust-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; padding-block: 1.1rem; }
.trust-strip-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.trust-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; }
.trust-strip a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; text-decoration: none; color: var(--text); opacity: 0.85; transition: opacity var(--dur-fast) ease; }
.trust-strip a:hover { opacity: 1; }
.trust-strip img { height: var(--trust-logo-h, 26px); width: auto; }
.trust-strip .trust-text { font-weight: 600; }
.trust-strip .trust-year { font-size: var(--step--1); color: var(--text-muted); }

/* ---------- Osiot ---------- */
.section { padding-block: var(--section-space); }
.section-alt { background: var(--bg-deep); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent-2); border-radius: 2px; }
.section h2 { font-size: var(--step-3); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-lead { margin-top: 1rem; color: var(--text-muted); font-size: var(--step-1); line-height: 1.5; }

/* Toiminto-kaista (esim. Wolt, ajanvaraus) */
.cta-band {
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: var(--accent); color: var(--on-accent);
}
.cta-band h3 { font-size: var(--step-2); }
.cta-band p { margin-top: 0.4rem; max-width: 36rem; font-weight: 500; }

/* ---------- Meistä ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center; }
/* Meistä ilman kuvia (meista.kuvat tyhjä): yksi keskitetty palsta, faktat rinnakkain */
.about-grid:not(:has(.about-photos)) { grid-template-columns: minmax(0, 1fr); max-width: 50rem; margin-inline: auto; text-align: left; }
@media (min-width: 720px) {
  .about-grid:not(:has(.about-photos)) .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
  .about-grid:not(:has(.about-photos)) .about-facts div { grid-template-columns: 1fr; gap: 0.35rem; }
}
.about-photos { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.9rem; padding: 0 0 2rem 2rem; }
.about-panel { position: absolute; left: 0; bottom: 0; width: 62%; height: 70%; background: var(--accent-2); border-radius: var(--radius-lg); }
.ph { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.ph-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ph-tall { grid-column: 1 / 4; aspect-ratio: 3 / 4; }
.ph-tall2 { grid-column: 4 / -1; aspect-ratio: 3 / 4; }
.about-copy > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--text-muted); font-size: 1.05rem; max-width: 36rem; }
.about-copy h2 { max-width: 30rem; }
.about-facts { margin: 2.25rem 0 0; display: grid; }
.about-facts div { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; gap: 1rem; align-items: baseline; padding-block: 0.9rem; border-top: 1px solid var(--line); }
.about-facts dt { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--text); }
.about-facts dd { margin: 0; color: var(--text-muted); }
.about-facts dd::before { content: "\2022"; color: var(--accent); font-weight: 700; margin-right: 0.5em; }

/* ---------- Arvostelut ---------- */
.reviews { background: var(--surface-1); border-block: 1px solid var(--line); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
.reviews-score { display: flex; align-items: center; gap: 1.1rem; }
.score-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); line-height: 0.9; font-variant-numeric: tabular-nums; }
.stars-lg svg { width: 1.6rem; height: 1.6rem; }
.score-count { margin-top: 0.5rem; color: var(--text-muted); font-size: var(--step--1); }

/* Nauha liikkuu elementin omalla vierityksellä (scrollLeft) → raahattava.
   Ks. ohjeet/05-arvostelut-places.md: ÄLÄ käytä setPointerCapturea. */
.review-marquee {
  margin-bottom: 2rem; overflow-x: auto; overflow-y: hidden;
  scroll-behavior: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  cursor: grab; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.review-marquee::-webkit-scrollbar { display: none; }
.review-marquee.is-dragging { cursor: grabbing; user-select: none; }
.review-marquee img { -webkit-user-drag: none; user-select: none; }
.review-track { display: flex; width: max-content; gap: 1rem; }
.review-track .review-card { width: min(85vw, 320px); flex: none; }
.review-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.review-card .stars svg { width: 1rem; height: 1rem; }
.review-text { font-size: 1rem; line-height: 1.6; color: var(--text); display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-card.is-expanded .review-text { -webkit-line-clamp: unset; }
.review-more { align-self: flex-start; background: none; border: 0; padding: 0; min-height: 32px; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.review-author { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.review-author img { width: 36px; height: 36px; border-radius: 50%; }
.review-author a { font-weight: 600; text-decoration: none; }
.review-author a:hover { text-decoration: underline; }
.review-author small { display: block; color: var(--text-muted); font-size: 0.8rem; }
.review-author small a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.review-card.is-focused { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); transition: border-color var(--dur) ease, box-shadow var(--dur) ease; }
.review-marquee.is-dragging .review-card { cursor: grabbing; }

/* Hero-osion tiivis nauha: tähdet + nimi, alla kaksi riviä tekstiä. */
.hero-reviews { margin-top: 0.5rem; margin-bottom: 0; background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: var(--radius); padding-block: 0.45rem; }
.hero-reviews .review-track { gap: 0.6rem; align-items: stretch; }
.hero-reviews .review-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; width: min(86vw, 460px); padding: 0.55rem 0.95rem; cursor: pointer; transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease; }
.hero-reviews .review-card:hover { border-color: var(--line-strong); background: var(--surface-3); }
.hero-reviews .stars { flex: none; order: 1; }
.hero-reviews .review-author { order: 2; flex: none; margin: 0; padding-top: 0; border-top: 0; gap: 0.4rem; }
.hero-reviews .review-author img { width: 22px; height: 22px; }
.hero-reviews .review-author small { display: none; }
.hero-reviews .review-author span { font-size: var(--step--1); }
.hero-reviews .review-text { order: 3; flex: 1 0 100%; min-width: 0; margin: 0; font-size: var(--step--1); line-height: 1.4; -webkit-line-clamp: 2; }
.hero-reviews .review-more { display: none; }

.reviews-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.reviews-source { margin-top: 1.5rem; font-size: 0.8rem; color: var(--text-muted); }

/* Lehtilainaukset ja muut mainninnat */
.press-quotes { list-style: none; margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.press-quote { margin: 0; padding: 1.5rem; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; }
.press-quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.4; quotes: "\201C" "\201D"; }
:lang(fi) .press-quote blockquote, :lang(sv) .press-quote blockquote { quotes: "\201D" "\201D"; }
.press-quote blockquote::before { content: open-quote; }
.press-quote blockquote::after { content: close-quote; }
.press-quote figcaption { margin-top: 0.9rem; display: flex; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--text-muted); }
.press-quote figcaption img { height: 22px; width: auto; }
.press-quote a { color: var(--text); }

/* Tripadvisor-widget: ladataan vasta lähellä osiota (app.js) */
.tripadvisor { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); min-height: 1px; }
.tripadvisor-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ---------- Lomake ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.book-intro > p:not(.eyebrow):not(.book-line) { margin-top: 1.25rem; color: var(--text-muted); font-size: 1.05rem; max-width: 30rem; }
.book-line { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.5rem; text-decoration: none; font-weight: 600; font-size: var(--step-1); }
.book-line .icon { width: 2.8rem; height: 2.8rem; padding: 0.7rem; border-radius: 50%; background: var(--surface-2); color: var(--accent); }
.book-line small { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
a.book-line:hover > span { text-decoration: underline; text-underline-offset: 4px; }

.book-form { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 1.1rem; }
.type-choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.type-choice legend { font-weight: 600; margin-bottom: 0.7rem; padding: 0; }
.type-choice label { position: relative; cursor: pointer; }
.type-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.type-choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 500; font-size: 0.95rem; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.type-choice label:hover span { border-color: var(--text); }
.type-choice input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.type-choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field-row-3 { grid-template-columns: 1.3fr 1fr 0.8fr; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-weight: 500; font-size: 0.95rem; }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  background: var(--bg); border: 1.5px solid var(--line-strong); color: var(--text); font-size: 1rem;
  transition: border-color var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-hover); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 0.88rem; color: var(--danger); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-submit { justify-self: start; min-width: 14rem; }
.form-privacy { font-size: 0.84rem; color: var(--text-muted); }
.form-privacy a { color: var(--text); }
.form-summary { padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.form-summary p { font-weight: 600; }
.form-summary ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.form-summary a { color: var(--danger); }
.form-status:empty { display: none; }
.form-status { padding: 1rem 1.1rem; border-radius: var(--radius-sm); font-weight: 500; }
.form-status[data-kind="success"] { background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1.5px solid var(--ok); }
.form-status[data-kind="error"] { background: color-mix(in srgb, var(--danger) 8%, transparent); border: 1.5px solid var(--danger); }

/* ---------- Yhteystiedot ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 1rem + 5vw, 5rem); align-items: stretch; }
.contact-info h2 { max-width: 26rem; }
.info-block { margin-top: 2rem; }
.info-block h3 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.info-block p { font-size: 1.05rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours th, .hours td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); font-weight: 600; }
.hours-note { margin-top: 0.6rem; font-size: var(--step--1); color: var(--text-muted); }
.map-frame { position: relative; min-height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-load { display: grid; justify-items: center; gap: 0.75rem; padding: 2rem; text-align: center; color: var(--text-muted); font-size: var(--step--1); }

/* ---------- Alatunniste ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 2.5rem; }
.footer-logo { height: 64px; width: auto; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); margin-top: 0.9rem; }
.footer-tagline { color: var(--text-muted); }
.footer-nav { display: grid; align-content: start; gap: 0.15rem; }
.footer-nav a, .footer-links a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; text-decoration: none; color: var(--text-muted); }
.footer-nav a:hover, .footer-links a:hover { color: var(--text); }
.footer-contact { display: grid; gap: 0.35rem; align-content: start; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 0.4rem; }
.some-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.some-links a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text-muted); transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.some-links a:hover { color: var(--text); border-color: var(--text); }
.some-links .icon { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); }
.footer-legal-id { display: grid; gap: 0.3rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; align-items: center; }

.mobile-cta { display: none; }

/* ---------- Tietosuojaseloste ---------- */
.legal-page { position: relative; z-index: 5; min-height: 100vh; background: var(--bg); }
.legal-wrap { max-width: 760px; margin: 0 auto; padding: clamp(90px, 10vw, 130px) var(--gutter) 100px; }
.legal-back { display: inline-block; margin-bottom: 28px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.legal-back:hover { color: var(--accent); }
.legal-page h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0.3em 0 0.2em; }
.legal-page h2 { font-size: clamp(1.1rem, 1.7vw, 1.3rem); margin: 2em 0 0.5em; }
.legal-page p, .legal-page li { color: var(--text-muted); margin: 0 0 1em; line-height: 1.65; }
.legal-page ul { padding-left: 1.2em; }
.legal-updated { font-size: 0.82rem; color: var(--text-muted); opacity: 0.8; }
.legal-box { background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 16px 20px; margin: 1.2em 0; }
.legal-box p { color: var(--text); margin: 0; }
.legal-page a { color: var(--accent); }

/* ---------- Näkyviin tulo vierittäessä ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsiivisuus ---------- */
@media (max-width: 1280px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: var(--z-nav);
    background: var(--bg-deep); border-bottom: 1px solid var(--line); padding: 0.75rem var(--gutter) 1.5rem;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { width: 100%; min-height: 52px; font-size: 1.15rem; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; }
  .nav a[aria-current="true"]::after { left: 0; right: auto; width: 24px; bottom: 10px; }
  .site-header.nav-open { background: var(--bg-deep); }
}

@media (max-width: 900px) {
  .about-grid, .book-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .about-photos { order: 2; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .map-frame { min-height: 340px; }
}

@media (max-width: 680px) { .hero h1 { clear: both; } }

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand { gap: 0.5rem; }
  .brand-logo { height: 38px; }
  .brand-name { font-size: 1.05rem; white-space: nowrap; }
  .brand-name small { font-size: 0.6rem; }
  .header-cta { display: none; }
  .header-actions { gap: 0.5rem; }
  .lang-switch button { min-width: 30px; padding-inline: 0.4rem; gap: 0.3rem; }
  .lang-switch .lang-code { display: none; }
  .lang-switch button:not(:has(.flag)) .lang-code { display: inline; }
  /* Puhelimessa kuva on leveä kuvanauha: näyttää tuotteen isona mutta vie vähemmän pystytilaa. */
  .hero-visual { float: none; width: 100%; aspect-ratio: 2.6 / 1; margin: 0 0 0.7rem; flex: none; min-height: 0; }
  .hero-kuva { border-radius: var(--radius-lg); box-shadow: 0 18px 40px -26px var(--shadow-deep), 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent); }
  .hero-kuva img { object-position: center 45%; transform: none; }
  .hero-merkki { width: 78px; left: auto; right: 4%; bottom: 8%; }
  .hero-merkki strong { font-size: 1.3rem; }
  .hero-merkki span { font-size: 0.58rem; }
  .hero .lead { font-size: 0.95rem; line-height: 1.45; margin-top: 0.6rem; }
  .open-status { margin-bottom: 0.6rem; }
  .cta-row { margin-top: 0.85rem; }
  .hero-trust { margin-top: 0.85rem; }
  /* Arvosana kahdelle riville kapeana laatikkona, ei koko leveyttä. */
  .rating-chip { display: inline-grid; grid-template-columns: auto auto; justify-content: start; }
  .rating-count { grid-column: 1 / -1; }
  /* Pääpainike on alapalkissa, joten herossa sama piilotetaan (ei toistoa). */
  .hero .cta-row [data-primary-cta] { display: none; }
  /* Todisteet ennen pyyntöä: arvosana ja arvostelut painikkeiden edelle. */
  .hero-copy { display: flex; flex-direction: column; }
  .hero-copy > .open-status, .hero-copy > .hero-trust { align-self: flex-start; }
  .hero-copy > .hero-reviews { order: 1; }
  .hero-copy > .cta-row { order: 2; margin-top: 0.9rem; }
  .cta-row .btn { flex: 1 1 auto; }
  .field-row, .field-row-3 { grid-template-columns: minmax(0, 1fr); }
  .btn-submit { justify-self: stretch; }
  .about-photos { padding: 0 0 1.25rem 1.25rem; gap: 0.6rem; }
  .about-facts div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { margin-bottom: 76px; }
  .trust-strip .wrap { gap: 0.5rem 1.25rem; }
  .trust-strip ul { gap: 0.25rem 1.25rem; }
  .mobile-cta {
    display: block; position: fixed; inset: auto 0 0 0; z-index: var(--z-mobile-cta);
    padding: 0.7rem var(--gutter) calc(0.7rem + env(safe-area-inset-bottom));
    background: linear-gradient(to top, color-mix(in srgb, var(--bg-deep) 98%, transparent) 70%, transparent);
  }
  .mobile-cta .btn { width: 100%; }
  html { scroll-padding-bottom: 90px; }
}

/* ---------- Matalat näytöt ----------
   Esim. läppäri 125 %:n skaalauksella (~1514×692) tai lyhyt puhelin. */
@media (min-width: 641px) and (max-height: 800px) {
  .hero { padding-top: calc(var(--header-h) + 0.35rem); padding-bottom: 1.5rem; }
  .hero h1 { font-size: clamp(2rem, 1.2rem + 2.1vw, 3.1rem); }
  .hero .lead { font-size: 1.06rem; margin-top: 0.5rem; }
  .open-status { margin-bottom: 0.5rem; }
  .cta-row, .hero-trust { margin-top: 0.8rem; }
  .hero-reviews { margin-top: 0.45rem; }
}
@media (min-width: 641px) and (max-width: 900px) and (max-height: 800px) {
  .hero .lead { font-size: 1rem; }
  .hero-visual { width: clamp(210px, 26vw, 300px); }
  .hero-copy { max-width: min(64%, 620px); }
}
@media (max-width: 640px) and (max-height: 820px) {
  .hero-visual { aspect-ratio: 3.1 / 1; margin-bottom: 0.55rem; }
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 0.92rem; margin-top: 0.5rem; }
  .open-status { margin-bottom: 0.5rem; }
  .cta-row, .hero-trust { margin-top: 0.7rem; }
  .hero-reviews { margin-top: 0.4rem; }
}

/* =========================================================
   DEMON TILAUSPALKKI – näkyy vain demossa (html.is-demo).
   Go-live: sivu.json "demo": false → tayta.py poistaa palkin.
   ========================================================= */
.is-demo { --demo-cta-h: 62px; }
.is-demo body, body.is-demo { padding-bottom: var(--demo-cta-h); }
.demo-cta {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-demo);
  background: linear-gradient(to top, color-mix(in srgb, var(--bg-deep) 99%, transparent) 72%, color-mix(in srgb, var(--bg-deep) 90%, transparent));
  border-top: 1px solid var(--line-strong);
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  font-family: var(--font-body);
}
.demo-cta__inner { max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.demo-cta__text { margin: 0; font-size: var(--step--1); line-height: 1.35; color: var(--text-muted); }
.demo-cta__text strong { color: var(--accent); font-weight: 600; }
.demo-cta__was { text-decoration: line-through; text-decoration-thickness: 1.5px; opacity: 0.7; font-weight: 400; margin-right: 0.15em; }
.demo-cta__btn { flex: none; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1.2rem; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: var(--step--1); text-decoration: none; white-space: nowrap; transition: background var(--dur-fast) var(--ease-out); }
.demo-cta__btn:hover, .demo-cta__btn:focus-visible { background: var(--accent-hover); }
.demo-cta__valid { color: var(--text); font-weight: 500; white-space: nowrap; }
.demo-cta__valid-m { display: none; }
.demo-cta__arrow { width: 1em; height: 1em; fill: currentColor; flex: none; }
.demo-cta__label-short { display: none; }
@media (max-width: 640px) {
  .is-demo { --demo-cta-h: 82px; }
  .demo-cta__text, .demo-cta__label-long { display: none; }
  .demo-cta__label-short { display: inline; }
  .demo-cta__btn { width: 100%; justify-content: center; }
  .demo-cta__inner { flex-direction: column; align-items: stretch; gap: 0.35rem; }
  .demo-cta__valid-m { display: block; margin: 0; font-size: 0.8rem; line-height: 1.2; text-align: center; color: var(--text-muted); }
  .is-demo .mobile-cta { inset: auto 0 var(--demo-cta-h) 0; }
  .is-demo .footer-bottom { margin-bottom: calc(76px + var(--demo-cta-h)); }
  html.is-demo { scroll-padding-bottom: calc(90px + var(--demo-cta-h)); }
}
@media print { .demo-cta { display: none; } }

/* Kosketusnäytöt: kaikki kosketuskohteet ≥ 44 px ilman että asettelu muuttuu muualla. */
@media (pointer: coarse) {
  .lang-switch button { min-height: 44px; }
}

/* =========================================================
   ASETTELUKIRJASTO – teema.asettelu valitsee variantit (ohjeet/04).
   Jokainen uusi asiakas lisää tänne vähintään yhden uuden variantin,
   jotta peräkkäiset demot eivät näytä samalta.
   ========================================================= */

/* hero: kyltti – suorakulmainen pystykuva roikkuu tangosta naruilla kuin banderolli (Kampai 2026) */
.as-hero-kyltti .hero-kuva { border-radius: 2px 2px 4px 4px; border-top: 10px solid var(--text); box-shadow: 0 34px 60px -34px var(--shadow-deep); }
.as-hero-kyltti .hero-visual::before {
  content: ""; position: absolute; z-index: 1; top: -34px; left: -8%; right: -8%; height: 8px;
  border-radius: 4px; background: var(--text);
  box-shadow: -6px 0 0 -1px var(--text), 6px 0 0 -1px var(--text);
}
.as-hero-kyltti .hero-visual::after {   /* kaksi narua tangosta kuvan yläreunaan */
  content: ""; position: absolute; z-index: 0; top: -28px; left: 0; right: 0; height: 30px;
  background:
    linear-gradient(var(--text), var(--text)) 18% 0 / 2px 100% no-repeat,
    linear-gradient(var(--text), var(--text)) 82% 0 / 2px 100% no-repeat;
}
@media (min-width: 681px) {
  /* tanko ja narut vievät ~34 px kuvan yläpuolelta → laske kuvaa, ettei tanko osu headeriin */
  .as-hero-kyltti .hero-visual { right: calc(var(--gutter) + 2.5%); aspect-ratio: 4 / 5; width: clamp(250px, 29vw, 400px); max-height: calc(100% - 44px); translate: 0 calc(-50% + 22px); }
  /* teksti ei saa jäädä kyltin (motto) alle: palsta = tila − kuva − kyltin ulkonema */
  .as-hero-kyltti .hero-copy { max-width: min(620px, calc(100% - clamp(250px, 29vw, 400px) - 2.5% - 3.75rem)); }
}
@media (min-width: 681px) and (max-width: 900px) {   /* kyltti on tässä vaakanauha kuvan sisällä → palsta saa leveyttä */
  .as-hero-kyltti .hero-visual { width: clamp(220px, 30vw, 270px); aspect-ratio: 1; }
  .as-hero-kyltti .hero-copy { max-width: min(58%, 620px); }
}
@media (max-width: 680px) {
  .as-hero-kyltti .hero-visual::before, .as-hero-kyltti .hero-visual::after { display: none; }
  .as-hero-kyltti .hero-kuva { border-top-width: 6px; }
}

/* meista: banderollit – kolme kuvaa roikkuu tangosta naruilla kuin hallin kangasbanderollit:
   tumma ylälista, eri pituudet, kevyt kallistus ja hidas heilahdus (pois, jos liike vähennetty) */
.as-meista-banderollit .about-panel { display: none; }
.as-meista-banderollit .about { overflow-x: clip; }   /* kallistus ei saa tehdä vaakavieritystä */
.as-meista-banderollit .about-photos {
  grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start;
  gap: clamp(0.8rem, 2vw, 1.4rem); padding: 2.6rem 0.4rem 1rem;
}
.as-meista-banderollit .about-photos::before {   /* tanko päätynuppeineen */
  content: ""; position: absolute; top: 0; left: -4%; right: -4%; height: 9px; border-radius: 5px; background: var(--text);
  box-shadow: 0 6px 12px -6px var(--shadow-deep);
}
.as-meista-banderollit .about-photos::after {    /* narut: kaksi per banderolli */
  content: ""; position: absolute; top: 8px; left: 0.4rem; right: 0.4rem; height: calc(2.6rem - 8px);
  background:
    linear-gradient(var(--text), var(--text)) 7% 0 / 2px 100% no-repeat,
    linear-gradient(var(--text), var(--text)) 26% 0 / 2px 100% no-repeat,
    linear-gradient(var(--text), var(--text)) 41% 0 / 2px 100% no-repeat,
    linear-gradient(var(--text), var(--text)) 59% 0 / 2px 100% no-repeat,
    linear-gradient(var(--text), var(--text)) 74% 0 / 2px 100% no-repeat,
    linear-gradient(var(--text), var(--text)) 93% 0 / 2px 100% no-repeat;
  opacity: 0.85;
}
.as-meista-banderollit .about-photos .ph {
  grid-column: auto; aspect-ratio: 2 / 5; border-radius: 0 0 3px 3px;
  border-top: 12px solid var(--text);              /* kankaan yläreunan lista */
  box-shadow: 0 22px 34px -22px var(--shadow-deep), inset 0 0 0 1px color-mix(in srgb, var(--text) 12%, transparent);
  transform-origin: 50% 0; rotate: -1.2deg;
}
.as-meista-banderollit .about-photos .ph:nth-of-type(2) { aspect-ratio: 2 / 4.2; rotate: 0.8deg; }
.as-meista-banderollit .about-photos .ph:nth-of-type(3) { aspect-ratio: 2 / 4.7; rotate: -0.5deg; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes banderolli-heilahdus { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 0.6deg; } }
  .as-meista-banderollit .about-photos .ph { animation: banderolli-heilahdus 7s ease-in-out infinite; }
  .as-meista-banderollit .about-photos .ph:nth-of-type(2) { animation-duration: 8.5s; animation-delay: -3s; }
  .as-meista-banderollit .about-photos .ph:nth-of-type(3) { animation-duration: 7.8s; animation-delay: -5s; }
}

/* hero: rulla – kuva on paperirullalta laskettu banderolli (vrt. kangas-/paperirullabanderolli):
   paksu varjostettu ylärulla päätytulppineen, kapeampi alarulla, paperin kaari yläreunassa (Kampai 2026) */
.as-hero-rulla .hero-kuva { border-radius: 0; box-shadow: 0 34px 56px -30px var(--shadow-deep); }
.as-hero-rulla .hero-kuva::after {   /* paperi kiertyy rullalle: varjo yläreunassa */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 16%; pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.32), rgb(0 0 0 / 0.08) 45%, transparent);
}
.as-hero-rulla .hero-visual::before,
.as-hero-rulla .hero-visual::after {
  content: ""; position: absolute; z-index: 2; border-radius: 999px;
  background:
    linear-gradient(90deg, #6f6758 0 7px, transparent 7px calc(100% - 7px), #6f6758 calc(100% - 7px)),
    linear-gradient(180deg, #fefcf8 0%, #f1ece2 38%, #d9d1c1 72%, #b4aa96 100%);
  box-shadow: 0 8px 14px -6px rgb(0 0 0 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.9);
}
.as-hero-rulla .hero-visual::before { left: -7%; right: -7%; top: -16px; height: 28px; }   /* ylärulla */
.as-hero-rulla .hero-visual::after { left: -2.5%; right: -2.5%; bottom: -10px; height: 18px; } /* alarulla */
.as-hero-rulla .hero-motto { z-index: 3; }   /* mottokyltti alarullan edessä, ei sen alla */
@media (min-width: 681px) {
  .as-hero-rulla .hero-visual { right: calc(var(--gutter) + 3%); aspect-ratio: 4 / 5; width: clamp(250px, 29vw, 400px); max-height: calc(100% - 40px); translate: 0 calc(-50% + 12px); }
  .as-hero-rulla .hero-copy { max-width: min(620px, calc(100% - clamp(250px, 29vw, 400px) - 3% - 3.75rem)); }
}
@media (min-width: 681px) and (max-width: 900px) {
  .as-hero-rulla .hero-visual { width: clamp(220px, 30vw, 270px); aspect-ratio: 1; }
  .as-hero-rulla .hero-copy { max-width: min(58%, 620px); }
}
@media (max-width: 680px) {
  .as-hero-rulla .hero-visual::before { left: -2%; right: -2%; top: -9px; height: 18px; }
  .as-hero-rulla .hero-visual::after { display: none; }
  .as-hero-rulla .hero-kuva { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}
