/* FSE Systems – sivuston tyylit (v10)

   Suunta: nykyisen fsesystems.com-sivun tunnistettava ilme viimeisteltynä.
   - Tumma teollisuuspohja, oranssi brändiväri isoina laattoina ja toiminnoissa.
   - Exo 2 versaalina otsikoissa, painikkeissa ja valikossa (kuten logossa ja vanhalla sivulla); Inter leipätekstissä.
   - Tunnusmuoto: viistetty kulma (logon kilven kulma) painikkeissa, kuvissa ja laatoissa.
   - Täysleveät tuli- ja kipinäkuvat kuten vanhalla sivulla, mutta pieni teksti aina kuvan ulkopuolella. */

:root {
  --ink: #0b0e13;
  --ink-2: #12161d;
  --ink-3: #1a1f28;
  --paper: #f3f3f0;
  --white: #ffffff;
  --text: #0f1216;
  --muted: #4b525b;
  --muted-dark: #b6bcc5;
  --line: #d9dad5;
  --line-dark: rgba(255, 255, 255, .14);
  --orange: #f07f1e;
  --orange-hover: #ff9640;
  --orange-text: #b4470f;
  --orange-light: #f7a35c;

  --font-head: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1360px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --edge: max(var(--gutter), (100cqw - var(--max)) / 2);
  --col-gap: clamp(20px, 2.4vw, 36px);
  --section: clamp(64px, 7vw, 108px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='square'%3E%3Cpath d='m3 3.5 4.5 4.5L3 12.5M8.5 3.5 13 8l-4.5 4.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--orange); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-stretch: 108%; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
h1, h2 { font-weight: 700; letter-spacing: -.025em; line-height: 1.04; }
h2 { font-size: clamp(32px, 3.5vw, 54px); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.icon { display: block; flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--orange); color: var(--ink); font-weight: 600; }
.skip-link:focus { top: 16px; }

/* Viistetty kulma – sivuston tunnusmuoto */
/* Viiste vain painikkeissa; kuvat ja laatikot ovat suorakulmaisia. */
.cut { --c: 0px; }
.cut--lg { --c: clamp(28px, 3vw, 44px); }
.cut--sm { --c: 12px; }

/* ---------- Tunnisteet, linkit, painikkeet ---------- */

.kicker { display: inline-block; align-self: flex-start; padding-bottom: 8px; border-bottom: 2px solid var(--orange); font: 600 12px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
.kicker--light { color: var(--white); border-color: var(--orange); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); }
.meta { font-size: 14px; color: var(--muted); }
.lead { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; color: var(--muted); }

.btn {
  --c: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 26px 0 24px; border: 0; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%);
  font: 600 16px/1.2 var(--font-head); font-stretch: 108%; letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.btn::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transition: transform .2s var(--ease); }
.btn:hover::after { transform: translateX(3px); }
.btn--lg { min-height: 58px; padding: 0 30px 0 28px; font-size: 17px; }
.btn--sm { --c: 10px; min-height: 42px; padding: 0 16px 0 18px; font-size: 15px; gap: 10px; }
.btn--sm::after { width: 12px; height: 12px; }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: #222934; }

.arrow-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--text); }
.arrow-link::after { content: ""; flex: none; width: 13px; height: 13px; background: var(--orange-text); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transition: transform .2s var(--ease); }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.arrow-link:hover::after { transform: translateX(3px); }
.section--ink .arrow-link, .solutions .arrow-link, .arrow-link--light { color: var(--white); }
.section--ink .arrow-link::after, .solutions .arrow-link::after, .arrow-link--light::after { background: var(--orange); }

/* ---------- Osiot ---------- */

.section { padding-block: var(--section); background: var(--white); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink .lead { color: var(--muted-dark); }
.section--rule { padding-top: 0; }
.section--rule > .wrap { padding-top: var(--section); border-top: 1px solid var(--line); }

/* Osion otsikkorivi: iso versaaliotsikko vasemmalla, johdanto oikealla samalla linjalla. */
.split-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px var(--col-gap); align-items: end; margin-bottom: clamp(36px, 4vw, 60px); }
.split-head > h2 { grid-column: 1 / span 7; max-width: 14em; }
.split-head > .lead { grid-column: 8 / -1; padding-bottom: 4px; }
.split-head--link > div { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: 16px; }
.split-head--link > div .lead { max-width: 36em; }
.split-head--link > .arrow-link { grid-column: 9 / -1; justify-self: end; }
.split-head--dark .lead { color: var(--muted-dark); }

@media (max-width: 900px) {
  .split-head > h2, .split-head > .lead, .split-head--link > div, .split-head--link > .arrow-link { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- Ylätunniste ---------- */

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--white); transition: background-color .25s; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(180deg, rgba(11, 14, 19, .7), rgba(11, 14, 19, 0)); pointer-events: none; transition: opacity .25s; }
.site-header.is-scrolled { background: var(--ink); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header__bar { display: flex; align-items: center; gap: 32px; height: 84px; transition: height .25s var(--ease); }
.site-header.is-scrolled .site-header__bar { height: 70px; }
.logo { flex: none; }
.logo img { height: 44px; width: auto; }
.site-header.is-scrolled .logo img { height: 40px; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 26px; }
.nav__list a { position: relative; display: block; padding-block: 10px; font: 500 15px/1.2 var(--font-body); letter-spacing: 0; text-decoration: none; color: #e9ecef; transition: color .2s; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--orange-light); }
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__mobile-foot { display: none; }
.site-header__end { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; font: 600 13px/1 var(--font-body); letter-spacing: .04em; }
.lang a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px; text-decoration: none; color: #9aa2ad; transition: color .2s; }
.lang a:hover, .lang a[aria-current="true"] { color: var(--white); }
.nav__lang { display: none; }

.nav-toggle { display: none; position: relative; width: 46px; height: 46px; padding: 0; background: none; border: 1px solid var(--line-dark); cursor: pointer; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--white); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .site-header__end { margin-left: auto; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: 108px var(--gutter) 40px; background: var(--ink); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: 12px 0; font-family: var(--font-head); font-stretch: 108%; font-size: clamp(28px, 7vw, 38px); font-weight: 700; letter-spacing: -.02em; color: var(--white); }
  .nav__list a::after { display: none; }
  .nav__mobile-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; font-size: 15px; color: var(--muted-dark); }
  .nav__mobile-foot p a { color: var(--white); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) { .site-header__cta { display: none; } }
@media (max-width: 480px) {
  .site-header__end > .lang { display: none; }
  .nav__mobile-foot .nav__lang { display: flex; }
  .logo img, .site-header.is-scrolled .logo img { height: 36px; }
  .site-header__bar { height: 72px; }
}

/* ---------- 1. Hero: taustavideo + Fire · Spark · Explosion -palkki ---------- */

.hero { position: relative; isolation: isolate; container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(680px, 100svh, 980px); padding-top: 120px; overflow: hidden; background: var(--ink); color: var(--white); }
.hero__media { display: block; }
.hero__bg, .hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__video { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 14, 19, .9) 0%, rgba(11, 14, 19, .72) 36%, rgba(11, 14, 19, .25) 68%, rgba(11, 14, 19, .1) 100%),
    linear-gradient(0deg, rgba(11, 14, 19, .7) 0%, rgba(11, 14, 19, 0) 40%);
}
.hero__foot { padding: 0 var(--edge) clamp(48px, 5.5vw, 80px); }
.hero__panel { max-width: 880px; }
.hero__panel-in { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero h1 { max-width: 13.8em; font-size: clamp(40px, 4.45vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
.hl { color: var(--orange); }
.hero__lead { max-width: 34em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: #e3e6ea; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding-top: 6px; }

/* Alareunan palkki: logon tunnuslause pikalinkkeinä + kumppanit */
.hero__bar { background: rgba(8, 10, 14, .82); border-top: 1px solid var(--line-dark); }
.hero__bar-in { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.25fr); }
.hero__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero__link { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 24px 28px 26px; border-left: 1px solid var(--line-dark); text-decoration: none; transition: background-color .25s; }
.hero__link:first-child { padding-left: 0; border-left: 0; }
.hero__link::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.hero__link:first-child::before { left: 0; }
.hero__link-en, .hero__link-fi { grid-column: 1; }
.hero__link::after { content: ""; grid-column: 2; grid-row: 1 / span 2; width: 14px; height: 14px; background: var(--orange); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transition: transform .2s var(--ease); }
.hero__link:hover::before, .hero__link:focus-visible::before { transform: scaleX(1); }
.hero__link:hover::after { transform: translateX(3px); }
.hero__link-en { font: 700 clamp(22px, 1.9vw, 28px)/1 var(--font-head); font-stretch: 118%; text-transform: uppercase; letter-spacing: .04em; }
.hero__link-fi { margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--muted-dark); }
.hero__link:hover .hero__link-fi { color: var(--white); }

.hero__trust { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 12px; padding: 20px 0 20px 28px; border-left: 1px solid var(--line-dark); text-align: right; }
.hero__trust p { max-width: 22em; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--muted-dark); }
.hero__logos { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px 24px; font: 700 13px/1 var(--font-head); letter-spacing: .08em; color: var(--white); }
.hero__logos img { height: 24px; width: auto; }

@media (max-width: 1100px) {
  .hero__bar-in { grid-template-columns: 1fr; }
  .hero__trust { flex-direction: row; justify-content: space-between; align-items: center; padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-dark); text-align: left; }
}
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding-top: 0; }
  .hero__video { display: none; }
  .hero__bg { position: relative; z-index: auto; height: clamp(300px, 50svh, 440px); object-position: 55% 40%; }
  .hero::before { inset: 0 0 auto 0; z-index: 1; height: clamp(300px, 50svh, 440px); background: linear-gradient(180deg, rgba(11, 14, 19, .65) 0%, rgba(11, 14, 19, 0) 30%, rgba(11, 14, 19, 0) 70%, rgba(11, 14, 19, .9) 100%); }
  .hero__foot { position: relative; z-index: 2; margin-top: -48px; padding: 0 var(--gutter) 40px; }
  .hero h1 { font-size: clamp(34px, 9.4vw, 46px); }
  .hero__bar { background: var(--ink-2); }
  .hero__links { grid-template-columns: 1fr; }
  .hero__link, .hero__link:first-child { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .hero__link:first-child { border-top: 0; }
  .hero__link-en { font-size: 24px; }
  .hero__link-fi { margin-top: 4px; }
  .hero__trust { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 0 24px; }
  .hero__logos { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- 2. Suojauskerrokset ---------- */

.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--col-gap); }
.layer { display: flex; flex-direction: column; }
.layer__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.layer__media img { width: 100%; height: 100%; object-fit: cover; }
.layer__head { display: flex; align-items: center; gap: 12px; margin: 22px 0 10px; }
.layer__head .icon { width: 28px; height: 28px; color: var(--orange); }
.layer h3 { font-size: clamp(22px, 1.8vw, 27px); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; }
.layer p { color: var(--muted); }

@media (max-width: 960px) {
  .layers { grid-template-columns: 1fr; gap: 36px; }
  .layer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 24px; align-items: start; }
  .layer__media { grid-row: span 2; }
  .layer__head { margin-top: 0; }
}
@media (max-width: 560px) {
  .layer { display: flex; }
  .layer__media { aspect-ratio: 16 / 9; }
  .layer__head { margin-top: 18px; }
}

/* ---------- 3. Ratkaisut: kaksi täysleveää paneelia ---------- */

.solutions { container-type: inline-size; padding-top: var(--section); background: var(--ink); color: var(--white); }
.solutions__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.sol { display: flex; flex-direction: column; background: var(--ink-2); }
.sol__media { position: relative; height: clamp(340px, 29vw, 460px); overflow: hidden; }
.sol__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sol--fire .sol__media img { object-position: 40% 50%; }
.sol--blast .sol__media img { object-position: 50% 30%; }
.sol:hover .sol__media img { transform: scale(1.03); }
.sol__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 14, .94) 0%, rgba(8, 10, 14, .78) 34%, rgba(8, 10, 14, .3) 60%, rgba(8, 10, 14, 0) 80%); }
.sol__title { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.sol__title h3 { max-width: 10.5em; font-size: clamp(30px, 2.7vw, 42px); font-weight: 700; line-height: 1.04; letter-spacing: -.025em; }
.sol__body { flex: 1; display: flex; flex-direction: column; gap: 20px; padding-block: clamp(28px, 2.6vw, 36px) clamp(40px, 4vw, 56px); }
.sol__body > p { font-size: 17px; line-height: 1.6; color: #d2d6dc; max-width: 32em; min-height: 3.2em; }
/* Ulkoreunat linjaan sisältöleveyden kanssa, sisäreunoille tasainen väli. */
.sol--fire .sol__title, .sol--fire .sol__body { padding-left: var(--edge); padding-right: clamp(28px, 3.5vw, 64px); }
.sol--blast .sol__title, .sol--blast .sol__body { padding-left: clamp(28px, 3.5vw, 64px); padding-right: var(--edge); }

.link-list { border-top: 1px solid var(--line); }
.link-list a { display: flex; align-items: center; gap: 14px; min-height: 54px; padding-block: 8px; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; transition: color .2s, padding .2s var(--ease); }
.link-list a::after { content: ""; flex: none; width: 13px; height: 13px; margin-left: auto; background: var(--orange-text); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.link-list a span { margin-left: auto; font: 500 13px/1.2 var(--font-body); letter-spacing: .03em; color: var(--muted); }
.link-list a:has(span)::after { margin-left: 0; }
.link-list a:hover { color: var(--orange-text); padding-left: 6px; }
.link-list a:focus-visible { outline-offset: -2px; padding-left: 6px; }
.sol .link-list { border-color: var(--line-dark); }
.sol .link-list a { border-color: var(--line-dark); color: var(--white); }
.sol .link-list a span { color: var(--muted-dark); }
.sol .link-list a::after { background: var(--orange); }
.sol .link-list a:hover { color: var(--orange-light); }
.sol__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 6px; }
.sol__brand { height: 26px; width: auto; }
.sol__brand--rsbp { height: 30px; }

@media (max-width: 900px) {
  .solutions__grid { grid-template-columns: 1fr; }
  .sol--fire .sol__title, .sol--fire .sol__body, .sol--blast .sol__title, .sol--blast .sol__body { padding-inline: var(--gutter); }
  .sol__media { height: clamp(300px, 62vw, 460px); }
}
@media (max-width: 520px) {
  .sol__foot { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
}

/* ---------- 4. Kumppanuus ja Miksi FSE ---------- */

.partners { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px var(--col-gap); align-items: center; }
.partners__media { grid-column: 1 / span 6; aspect-ratio: 3 / 2; overflow: hidden; }
.partners__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.partners__text { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 22px; padding-left: clamp(0px, 3vw, 48px); }
.partners__text h2 { max-width: 13em; }
.partners__brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; border-top: 1px solid var(--line); }
.brand { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 0 0; }
.brand + .brand { padding: 24px 0 0 24px; border-left: 1px solid var(--line); }
.brand img { height: 30px; width: auto; align-self: flex-start; }
.brand .brand__rsbp { height: 38px; margin-top: -4px; }
.brand p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.why__title { margin: clamp(56px, 5.5vw, 80px) 0 20px; font-size: clamp(26px, 2.2vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--col-gap); }
.why li { display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; column-gap: 16px; row-gap: 6px; padding: 22px 0 24px; border-top: 1px solid var(--line); }
.why .icon { grid-row: 1; grid-column: 1; width: 26px; height: 26px; color: var(--orange); }
.why h4 { grid-column: 2; }
.why p { grid-column: 2; }
.why h4 { font-size: 19px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.why p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.certs { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; margin-top: clamp(24px, 3vw, 36px); padding: 28px 32px; background: var(--white); }
.certs__text { display: flex; flex-direction: column; gap: 4px; }
.certs__label { font: 600 12px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.certs__mgmt { font-size: 14px; color: var(--muted); }
.certs__list { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; }
.certs__list img { height: 44px; width: auto; opacity: .8; }

@media (max-width: 1040px) {
  .partners__media, .partners__text { grid-column: 1 / -1; padding-left: 0; }
  .partners__media { aspect-ratio: 16 / 9; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .partners__brands { grid-template-columns: 1fr; }
  .brand + .brand { padding: 24px 0 0; border-left: 0; }
  .why { grid-template-columns: 1fr; }
  .certs { padding: 24px 20px; }
  .certs__list { justify-content: flex-start; gap: 18px 26px; }
  .certs__list img { height: 34px; }
}

/* ---------- 5. Palvelut ---------- */

.services { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px var(--col-gap); align-items: center; }
.services__media { grid-column: 1 / span 6; aspect-ratio: 4 / 3; overflow: hidden; }
.services__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.services__text { grid-column: 8 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--col-gap); margin-top: clamp(48px, 5vw, 76px); }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 2px solid rgba(255, 255, 255, .28); }
.steps .icon { width: 28px; height: 28px; margin-bottom: 6px; color: var(--orange); }
.steps li:first-child { border-color: var(--orange); }
.steps h3 { font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--muted-dark); }

@media (max-width: 960px) {
  .services__media, .services__text { grid-column: 1 / -1; }
  .services__media { aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 5b. Motto: oma kalusto ---------- */

.motto { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(400px, 40vw, 560px); padding-block: clamp(56px, 6vw, 88px); overflow: hidden; background: var(--ink); color: var(--white); }
.motto__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 55%; }
.motto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 14, 19, .92) 0%, rgba(11, 14, 19, .72) 38%, rgba(11, 14, 19, .1) 72%, rgba(11, 14, 19, 0) 100%); }
.motto__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.motto__text { font: 700 clamp(40px, 5.4vw, 88px)/1 var(--font-head); font-stretch: 108%; letter-spacing: -.03em; }
.motto__text span { display: block; }
.motto__hl { color: var(--orange); }
.motto__std { font: 500 14px/1.4 var(--font-body); letter-spacing: .06em; color: #dfe3e8; }

@media (max-width: 760px) {
  .motto { min-height: 0; align-items: flex-end; padding-top: 220px; }
  .motto::before { background: linear-gradient(0deg, rgba(11, 14, 19, .95) 0%, rgba(11, 14, 19, .7) 50%, rgba(11, 14, 19, .1) 100%); }
  .motto__bg { object-position: 75% 50%; }
}

/* ---------- 6. Toimialat ---------- */

.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--col-gap); }
.tile { display: block; text-decoration: none; }
.tile__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile__name { display: flex; align-items: center; gap: 12px; margin-top: 16px; font: 700 19px/1.2 var(--font-head); font-stretch: 108%; letter-spacing: -.01em; }
.tile__name .icon { width: 24px; height: 24px; color: var(--orange); }
.tile__name::after { content: ""; flex: none; width: 13px; height: 13px; margin-left: auto; background: var(--orange-text); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transition: transform .2s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile:hover .tile__name { color: var(--orange-text); }
.tile:hover .tile__name::after { transform: translateX(3px); }

@media (max-width: 960px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .industries { gap: 26px 14px; }
  .tile__media { --c: 14px; aspect-ratio: 4 / 3; }
  .tile__name { margin-top: 12px; font-size: 15px; gap: 8px; letter-spacing: -.005em; }
  .tile__name .icon { width: 18px; height: 18px; }
  .tile__name::after { display: none; }
}

/* ---------- 7. Pölyräjähdys ---------- */

.theory { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px var(--col-gap); align-items: center; }
.theory__media { grid-column: 1 / span 5; aspect-ratio: 1 / 1; overflow: hidden; }
.theory__media img { width: 100%; height: 100%; object-fit: cover; }
.theory__text { grid-column: 7 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.theory__text > p:not(.lead):not(.kicker) { color: var(--muted); max-width: 36em; }
.theory__text .lead { color: var(--text); }
.theory__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 8px; }

@media (max-width: 900px) {
  .theory__media, .theory__text { grid-column: 1 / -1; }
  .theory__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 480px) { .theory__actions .btn { width: 100%; } }

/* ---------- 8. Tietopankki ---------- */

.editorial { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: start; }
.lead-post { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 12px; }
.lead-post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 8px; background: var(--paper); }
.lead-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.lead-post:hover .lead-post__media img { transform: scale(1.02); }
.lead-post h3 { font-size: clamp(24px, 2vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.lead-post h3 a, .side-post h3 a { text-decoration: none; }
.lead-post h3 a:hover, .side-post h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }

.side-posts { grid-column: 9 / -1; display: flex; flex-direction: column; }
.side-post { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.side-post:first-child { padding-top: 0; }
.side-post img { width: 120px; height: 90px; object-fit: cover; }
.side-post > div { display: flex; flex-direction: column; gap: 6px; }
.side-post h3 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }

.news { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; }
.news__label { font: 600 12px/1.4 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.news__item { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.news__item time { font-size: 14px; color: var(--muted); }
.news__item span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.news__item span::after { content: ""; flex: none; width: 13px; height: 13px; background: var(--orange-text); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; }
.news__item:hover span { text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 1240px) {
  .lead-post { grid-column: 1 / span 6; }
  .side-posts { grid-column: 7 / -1; }
}
@media (max-width: 960px) {
  .lead-post, .side-posts { grid-column: 1 / -1; }
  .side-post:first-child { padding-top: 24px; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .side-post { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; }
  .side-post img { width: 92px; height: 70px; }
  .side-post h3 { font-size: 16px; }
}

/* ---------- 9. Usein kysyttyä ---------- */

.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--col-gap); align-items: start; }
.faq__head { grid-column: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; color: var(--muted); }
.faq__head h2 { color: var(--text); font-size: clamp(30px, 2.8vw, 44px); }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; padding-block: 18px; cursor: pointer; list-style: none; font: 600 clamp(18px, 1.35vw, 21px)/1.35 var(--font-head); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 18px; height: 18px; transition: transform .25s var(--ease);
  background: linear-gradient(var(--orange), var(--orange)) center / 18px 2px no-repeat, linear-gradient(var(--orange), var(--orange)) center / 2px 18px no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--orange-text); }
.faq details p { max-width: 660px; padding-bottom: 24px; color: var(--muted); }

@media (max-width: 960px) { .faq__head, .faq__list { grid-column: 1 / -1; } }

/* ---------- 10. Yhteys ---------- */

.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--col-gap); align-items: start; }
.contact__intro { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact__intro .lead { max-width: 30em; }
.people { display: grid; gap: 24px; width: 100%; margin-top: 14px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.person { display: flex; flex-direction: column; }
.person strong { font: 700 19px/1.3 var(--font-head); font-stretch: 108%; letter-spacing: -.01em; }
.person span { margin-bottom: 6px; font-size: 14px; color: var(--muted-dark); }
.person a { align-self: flex-start; padding-block: 2px; text-decoration: none; overflow-wrap: anywhere; }
.person a:hover { color: var(--orange-light); text-decoration: underline; text-underline-offset: 4px; }
.contact__service { margin-top: 6px; font-size: 15px; color: var(--muted-dark); }
.contact__service a { color: var(--white); font-weight: 600; }

.quote {
  --c: 40px;
  grid-column: 7 / -1; display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 3.2vw, 48px);
  background: var(--ink-3); border-top: 3px solid var(--orange);
}
.quote h3 { font-size: clamp(26px, 2.2vw, 34px); font-weight: 700; letter-spacing: -.02em; }
.quote__lead { margin-top: -8px; color: var(--muted-dark); }
.quote__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.quote label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: #eef0f3; }
.quote .optional { font-weight: 400; color: var(--muted-dark); }
.quote input, .quote select, .quote textarea {
  width: 100%; min-height: 52px; padding: 14px 14px; border: 1px solid #39414e; border-radius: 0;
  background: var(--ink); color: var(--white); font: 400 16px/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.quote select { appearance: none; padding-right: 40px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b6bcc5' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
.quote textarea { resize: vertical; min-height: 128px; }
.quote ::placeholder { color: #8d95a1; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240, 127, 30, .25); }
.quote [aria-invalid="true"] { border-color: #f27a6b; }
.quote__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; }
.quote__note { font-size: 14px; color: var(--muted-dark); }
.quote__note.is-error { color: #f6a093; }

@media (max-width: 1040px) { .contact__intro, .quote { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .quote { --c: 24px; }
  .quote__row { grid-template-columns: 1fr; }
  .quote__foot .btn { width: 100%; }
}

/* ---------- Alatunniste ---------- */

.site-footer { background: #07090d; color: var(--muted-dark); font-size: 15px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.footer__main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); padding-block: clamp(56px, 6vw, 80px) 48px; border-top: 1px solid var(--line-dark); }
.footer__brand { grid-column: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 320px; }
.footer__brand img { height: 44px; width: auto; }
.footer__col { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.footer__title { margin-bottom: 6px; font: 600 12px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.footer__col a, .footer__col span { overflow-wrap: anywhere; }
.footer__col a { padding-block: 2px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 0 40px; font-size: 14px; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }

@media (max-width: 1040px) { .footer__brand { grid-column: 1 / -1; } .footer__col { grid-column: span 3; } }
@media (max-width: 640px) {
  .footer__col { grid-column: span 6; }
  div.footer__col { grid-column: 1 / -1; }
}

/* ---------- Liike ----------
   Yksi järjestelmä: hero asettuu sivun latautuessa, kuvat ja kuvaruudukot paljastuvat kerran vieritettäessä.
   Tekstiä ei animoida vierityksessä. prefers-reduced-motion poistaa kaiken. */

/* Hero: teksti nousee porrastetusti, taustakuva asettuu, jaetun heron kuva pyyhkiytyy esiin oikealta. */
.js .hero__panel-in > *, .js .page-hero__inner > * { animation: enter .8s var(--ease) both; animation-delay: .06s; }
.js .hero__panel-in > :nth-child(2), .js .page-hero__inner > :nth-child(2) { animation-delay: .13s; }
.js .hero__panel-in > :nth-child(3), .js .page-hero__inner > :nth-child(3) { animation-delay: .2s; }
.js .hero__panel-in > :nth-child(4), .js .page-hero__inner > :nth-child(4) { animation-delay: .27s; }
.js .hero__panel-in > :nth-child(5), .js .page-hero__inner > :nth-child(5) { animation-delay: .34s; }
.js .hero__panel-in > :nth-child(n+6), .js .page-hero__inner > :nth-child(n+6) { animation-delay: .41s; }
.js .hero__bar { animation: fade .9s var(--ease) .45s both; }
.js .hero__bg, .js .page-hero__bg { animation: settle 1.8s var(--ease) both; }
.js .page-hero--split .page-hero__media { animation: wipe 1.15s cubic-bezier(.7, 0, .2, 1) .05s both; }
.js .page-hero--split .page-hero__bg { animation-delay: .05s; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes settle { from { transform: scale(1.06); } }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }

/* Vierityspaljastus: kuva avautuu alhaalta ja asettuu (JS lisää .rv vain näkymän alapuolella oleviin). */
.rv { clip-path: inset(14% 0 0 0); opacity: 0; transition: clip-path 1s cubic-bezier(.6, 0, .2, 1), opacity .5s var(--ease); }
.rv img { transform: scale(1.08); transition: transform 1.5s var(--ease); }
.rv.is-in { clip-path: inset(0); opacity: 1; }
.rv.is-in img { transform: none; }

/* Kuvaruudukot: kohteet nousevat porrastetusti. */
.rv-group > * { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.rv-group.is-in > * { opacity: 1; transform: none; }

/* Kuvien hover: sama nopeus ja mittakaava kaikkialla. */
.sol__media img, .tile__media img, .lead-post__media img, .product__media img, .mosaic__item img, .show__media img { transition: transform .7s var(--ease); }
.sol:hover .sol__media img, .tile:hover .tile__media img, .lead-post:hover .lead-post__media img,
.product:hover .product__media img, .mosaic__item:hover img, .show:hover .show__media img,
.tile:focus-visible .tile__media img, .lead-post:focus-visible .lead-post__media img { transform: scale(1.03); }

/* Ylätunniste väistyy alas vieritettäessä ja palaa heti ylös vieritettäessä. */
.site-header { transition: background-color .25s, transform .4s var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden::before { opacity: 0; }

/* Haitarit (UKK, mittataulukot) aukeavat pehmeästi selaimissa, jotka tukevat sitä. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content, .dims details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq details[open]::details-content, .dims details[open]::details-content { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv, .rv-group > * { opacity: 1; clip-path: none; transform: none; }
  .rv img { transform: none; }
  .site-header.is-hidden { transform: none; }
}

/* ---------- Brändin tunnuselementit ---------- */

/* Tummat osiot alkavat logon kilven viistetyllä kulmalla (kulma täytetään edellisen osion värillä). */
.corner { position: relative; --sc: clamp(48px, 7vw, 120px); --prev: var(--white); }
.corner--paper { --prev: var(--paper); }
.corner::before { display: none; content: ""; position: absolute; top: 0; right: 0; z-index: 2; width: var(--sc); height: var(--sc); background: var(--prev); clip-path: polygon(0 0, 100% 0, 100% 100%); pointer-events: none; }

/* Nykyisen sivun polygoniverkko staattisena ja hillittynä tumman osion taustalla. */
.net { position: relative; isolation: isolate; }
.net::after {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: -1; height: min(100%, 720px);
  background: url("../img/verkko.svg") center top / 1600px auto repeat-x; opacity: .09;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 100%);
  pointer-events: none;
}
.contact.net::after { inset: auto 0 0 0; height: 100%; background-position: center bottom; -webkit-mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .5) 50%, transparent 100%); mask-image: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .5) 50%, transparent 100%); }


/* Toimialat isompina kuvalaattoina: iso nimi kuvan alaosassa vahvan tummennuksen päällä (leveämmillä näytöillä). */
@media (min-width: 521px) {
  .tile { position: relative; color: var(--white); }
  .tile__media { aspect-ratio: 4 / 3; }
  .tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 14, .88) 0%, rgba(8, 10, 14, .45) 32%, rgba(8, 10, 14, 0) 58%); transition: opacity .3s; }
  .tile__media { position: relative; }
  .tile__name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0; padding: 0 clamp(36px, 3.4vw, 52px) clamp(20px, 2vw, 28px) clamp(20px, 2vw, 28px); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; }
  .tile__name .icon { color: var(--orange); }
  .tile__name::after { background: var(--orange); }
  .tile::before { content: ""; position: absolute; left: 0; bottom: 0; z-index: 2; width: 100%; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
  .tile:hover::before, .tile:focus-visible::before { transform: scaleX(1); }
  .tile:hover .tile__name { color: var(--white); }
  .industries { gap: var(--col-gap); }
}

/* Kosketusalueet puhelimella: yhteystiedot ja alatunnisteen linkit vähintään ~44 px korkeita. */
@media (max-width: 760px) {
  .person a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .person span { margin-bottom: 0; }
  .footer__col { gap: 0; }
  .footer__col a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .footer__bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* =====================================================================
   ALASIVUT
   ===================================================================== */

.nav__list a[aria-current="page"] { color: var(--orange-light); }
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

/* Alasivun hero: sama kuvakieli kuin etusivulla, matalampi. */
.page-hero { position: relative; isolation: isolate; container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(480px, 66svh, 700px); padding-top: 140px; overflow: hidden; background: var(--ink); color: var(--white); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 14, 19, .92) 0%, rgba(11, 14, 19, .76) 38%, rgba(11, 14, 19, .25) 72%, rgba(11, 14, 19, .1) 100%),
    linear-gradient(0deg, rgba(11, 14, 19, .7) 0%, rgba(11, 14, 19, 0) 45%);
}
.page-hero__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: clamp(48px, 5.5vw, 80px); }
.page-hero h1 { max-width: 15em; font-size: clamp(38px, 4.4vw, 70px); line-height: 1.02; letter-spacing: -.03em; }
.page-hero__lead { max-width: 36em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: #e3e6ea; }
.page-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding-top: 4px; }
.page-hero--plain { min-height: clamp(380px, 48svh, 520px); }
.page-hero--plain::before { display: none; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted-dark); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: rgba(255, 255, 255, .35); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current="page"] { color: var(--white); }

@media (max-width: 760px) {
  .page-hero { min-height: 0; padding-top: 0; display: block; }
  .page-hero__media { position: relative; height: clamp(240px, 42svh, 360px); }
  .page-hero__bg { z-index: auto; }
  .page-hero::before { inset: 0 0 auto 0; z-index: 1; height: clamp(240px, 42svh, 360px); background: linear-gradient(180deg, rgba(11, 14, 19, .65) 0%, rgba(11, 14, 19, 0) 35%, rgba(11, 14, 19, 0) 65%, rgba(11, 14, 19, .9) 100%); }
  .page-hero__inner { position: relative; z-index: 2; margin-top: -36px; padding-bottom: 44px; }
  .page-hero--plain { padding-top: 112px; }
  .page-hero--plain .page-hero__inner { margin-top: 0; }
  .page-hero__actions .btn { width: 100%; }
}

/* Tekstipalsta */
.prose { max-width: 44em; }
.prose > * + * { margin-top: 1em; }
.prose h3 { margin-top: 1.8em; font-size: clamp(21px, 1.7vw, 25px); font-weight: 700; letter-spacing: -.015em; }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.section--ink .prose p { color: var(--muted-dark); }
.section--ink .prose strong { color: var(--white); }

/* Merkkilista: oranssi viistetty neliö */
.ticks { display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%); }
.ticks strong { color: var(--text); font-weight: 600; }
.section--ink .ticks li { color: var(--muted-dark); }
.section--ink .ticks strong { color: var(--white); }

/* Kuva + teksti -rivi */
.media-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px var(--col-gap); align-items: center; }
.media-row + .media-row { margin-top: clamp(64px, 7vw, 104px); }
.media-row__media { grid-column: 1 / span 6; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.media-row__media img { width: 100%; height: 100%; object-fit: cover; }
.media-row__text { grid-column: 8 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.media-row--flip .media-row__media { grid-column: 7 / -1; grid-row: 1; }
.media-row--flip .media-row__text { grid-column: 1 / span 5; grid-row: 1; }
.media-row__text h2 { font-size: clamp(30px, 3vw, 46px); }
@media (max-width: 900px) {
  .media-row__media, .media-row__text, .media-row--flip .media-row__media, .media-row--flip .media-row__text { grid-column: 1 / -1; grid-row: auto; }
  .media-row__media { aspect-ratio: 16 / 10; }
}

/* Vaiheet vaalealla pohjalla */
.steps--light { margin-top: 0; }
.steps--light li { border-top-color: var(--line); }
.steps--light li:first-child { border-color: var(--orange); }
.steps--light p { color: var(--muted); }

/* Ominaisuusruudukko tummalla pohjalla (Miksi-lista) */
.section--ink .why li { border-top-color: var(--line-dark); }
.section--ink .why p { color: var(--muted-dark); }
.section--ink .why h4 { color: var(--white); }

/* Kaksi palstaa: tarkistuslista + taulukko */
.duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--col-gap); align-items: start; }
.duo > :first-child { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 22px; }
.duo > :last-child { grid-column: 7 / -1; }
.duo h2 { font-size: clamp(28px, 2.6vw, 40px); }
@media (max-width: 960px) { .duo > :first-child, .duo > :last-child { grid-column: 1 / -1; } }

.data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table__title { margin-bottom: 14px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.data-table { width: 100%; min-width: 520px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table th { padding: 0 16px 12px 0; border-bottom: 2px solid var(--text); font: 600 12px/1.35 var(--font-body); letter-spacing: .08em; text-transform: uppercase; text-align: left; color: var(--muted); vertical-align: bottom; }
.data-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.data-table td:first-child { font-weight: 600; }
.data-table__note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Palstalista (käyttökohteet) */
.cols-list { columns: 3 260px; column-gap: var(--col-gap); }
.cols-list li { break-inside: avoid; display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.cols-list .icon { width: 20px; height: 20px; color: var(--orange); }

/* Tuotelista koontisivuilla */
.products { display: grid; }
.product { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--col-gap); align-items: center; padding-block: clamp(40px, 4.5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.product:first-child { padding-top: 0; border-top: 0; }
.product__media { grid-column: 1 / span 5; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .product__media img { transform: scale(1.03); }
.product__body { grid-column: 7 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.product__body h2 { font-size: clamp(28px, 2.6vw, 40px); }
.product__body > p:not(.label) { color: var(--muted); max-width: 38em; }
.product__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 600; color: var(--text); }
.product__meta span { display: inline-flex; align-items: center; gap: 8px; }
.product__meta span::before { content: ""; width: 9px; height: 9px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%); }
@media (max-width: 900px) {
  .product__media, .product__body { grid-column: 1 / -1; }
  .product__media { aspect-ratio: 16 / 10; }
}

/* Ryhmäotsikko tuotelistassa (Paineenpurku / Tukahdutus / Eristys) */
.group-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px var(--col-gap); align-items: end; margin: clamp(56px, 6vw, 88px) 0 clamp(28px, 3vw, 40px); padding-top: 28px; border-top: 2px solid var(--text); }
.group-head:first-child { margin-top: 0; }
.group-head h2 { grid-column: 1 / span 6; font-size: clamp(30px, 3vw, 46px); }
.group-head p { grid-column: 7 / -1; color: var(--muted); }
.group-head + .products .product:first-child { padding-top: 0; }
@media (max-width: 900px) { .group-head h2, .group-head p { grid-column: 1 / -1; } }

/* Yhteydenottokaista alasivujen lopussa */
.cta-band__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: end; }
.cta-band__text { grid-column: 1 / span 7; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-band__text h2 { max-width: 14em; }
.cta-band__aside { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 22px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.cta-band__aside .btn { align-self: flex-start; }
@media (max-width: 960px) { .cta-band__text, .cta-band__aside { grid-column: 1 / -1; } }

/* Yhteystiedot */
.offices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px var(--col-gap); }
.office { grid-column: span 6; display: flex; flex-direction: column; gap: 24px; }
.office__head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; border-bottom: 2px solid var(--text); }
.office__head h2 { font-size: clamp(28px, 2.4vw, 38px); }
.office__head p { color: var(--muted); }
.office .people { margin: 0; padding: 0; border: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--col-gap); }
.office .person span { color: var(--muted); }
.office .person a:hover { color: var(--orange-text); }
@media (max-width: 960px) { .office { grid-column: 1 / -1; } }
@media (max-width: 560px) { .office .people { grid-template-columns: 1fr; } }

/* Kuvagalleria (Meistä) */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(160px, 15vw, 230px); grid-auto-flow: dense; gap: 12px; }
.gallery li { overflow: hidden; background: var(--line); }
.gallery li.is-wide { grid-column: span 2; }
.gallery li.is-tall { grid-row: span 2; }
.gallery li.is-big { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
}
.why--spaced { margin-top: clamp(48px, 5vw, 72px); }
.section--ink .data-table__note { color: var(--muted-dark); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.split-head > .prose { grid-column: 8 / -1; }
@media (max-width: 900px) { .split-head > .prose { grid-column: 1 / -1; } }
.cols-list--wide { margin-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--line); }
.ticks--large { gap: 0; border-top: 1px solid var(--line); }
.ticks--large li { padding: 18px 0 18px 30px; border-bottom: 1px solid var(--line); font-size: 18px; }
.ticks--large li::before { top: calc(18px + .5em); }
.partners__logo { height: 34px; width: auto; align-self: flex-start; }
.partners__logo--rsbp { height: 42px; }
.page-hero__mail { color: var(--white); font-weight: 600; text-underline-offset: 4px; }
.page-hero--plain { padding-top: 160px; }

.service-box { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 40px); background: var(--ink-3); border-top: 3px solid var(--orange); }
.service-box h3 { font-size: clamp(22px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.015em; }
.service-box p { color: var(--muted-dark); }
.service-box__mail { align-self: flex-start; font: 700 clamp(20px, 1.8vw, 26px)/1.2 var(--font-head); font-stretch: 108%; letter-spacing: -.015em; color: var(--orange-light); text-decoration: none; overflow-wrap: anywhere; }
.service-box__mail:hover { text-decoration: underline; text-underline-offset: 5px; }
.service-box__phones { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.service-box__phones a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.service-box__phones a:hover { color: var(--orange-light); }
@media (max-width: 760px) {
  .page-hero h1 { font-size: clamp(32px, 8.8vw, 44px); }
  .service-box__mail { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Liittyvät ratkaisut tuotesivujen lopussa */
.related .industries { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.related .related__list--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related .related__list--6 .tile__media { aspect-ratio: 16 / 9; }
.related .tile__media { aspect-ratio: 4 / 3; }
.related .tile__name { font-size: clamp(16px, 1.3vw, 19px); }
.related .tile[aria-current="page"] { pointer-events: none; opacity: .45; }
@media (max-width: 960px) { .related .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tuotesivujen apuluokat */
.ticks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
.ticks--cols.ticks--large li:nth-child(2) { border-top: 0; }
@media (max-width: 760px) { .ticks--cols { grid-template-columns: 1fr; } }
.section--ink .ticks--large, .section--ink .ticks--large li { border-color: var(--line-dark); }

.dims { border-top: 1px solid var(--line); }
.dims details { border-bottom: 1px solid var(--line); }
.dims summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding-block: 16px; cursor: pointer; list-style: none; font: 600 clamp(17px, 1.3vw, 20px)/1.35 var(--font-head); letter-spacing: -.01em; }
.dims summary::-webkit-details-marker { display: none; }
.dims summary::after { content: ""; flex: none; width: 18px; height: 18px; transition: transform .25s var(--ease); background: linear-gradient(var(--orange), var(--orange)) center / 18px 2px no-repeat, linear-gradient(var(--orange), var(--orange)) center / 2px 18px no-repeat; }
.dims details[open] summary::after { transform: rotate(45deg); }
.dims summary span { margin-left: auto; font: 500 14px/1 var(--font-body); color: var(--muted); }
.dims .data-table-wrap { padding-bottom: 28px; }
.data-table--dense th { font-size: 11px; padding-right: 12px; }
.data-table--dense td { padding: 10px 12px 10px 0; font-size: 15px; }
.data-table--dense td:first-child { white-space: nowrap; }

.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--col-gap); }
.types > li { display: flex; flex-direction: column; gap: 10px; padding: 24px 0 28px; border-top: 2px solid var(--text); }
.types h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.types .ticks { gap: 8px; margin-top: 4px; font-size: 15px; line-height: 1.5; }
.types .ticks li::before { top: .45em; width: 9px; height: 9px; }
.types .label { margin-top: -4px; }
@media (max-width: 960px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .types { grid-template-columns: 1fr; } }
.types__text { font-size: 15px; line-height: 1.55; color: var(--muted); }
.prose a, .data-table__note a { color: var(--orange-text); font-weight: 600; text-underline-offset: 3px; }
.section--ink .prose a, .section--ink .data-table__note a { color: var(--orange-light); }
.product__body h2 a { text-decoration: none; }
.product__body h2 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tile__name { overflow-wrap: anywhere; hyphens: manual; }
.faq summary, .dims summary { overflow-wrap: anywhere; }

/* =====================================================================
   TIETOPANKKI JA ARTIKKELIT
   ===================================================================== */

.page-hero--article { min-height: clamp(360px, 44svh, 480px); }
.page-hero--article h1 { max-width: 22em; font-size: clamp(32px, 3.6vw, 56px); }
.article-meta { font-size: 15px; color: var(--muted-dark); }

.topic-jump ul { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 8px 0 0; padding: 0; list-style: none; }
.topic-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--white); border-bottom: 2px solid transparent; }
.topic-jump a:hover { border-color: var(--orange); }
.topic-jump span { font-weight: 500; color: var(--muted-dark); }

.article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: start; }
.article__body { grid-column: 1 / span 8; grid-row: 1; max-width: 46em; }
.article__aside { grid-column: 10 / -1; grid-row: 1; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 28px; }
.article__toc ol { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: toc; border-left: 2px solid var(--line); }
.article__toc a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.article__toc a:hover { color: var(--text); border-color: var(--orange); }
.article__help { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; background: var(--paper); border-top: 3px solid var(--orange); }
.article__help-title { font: 700 19px/1.25 var(--font-head); font-stretch: 108%; letter-spacing: -.01em; }
.article__help p:not(.article__help-title) { font-size: 15px; color: var(--muted); }

.prose--article { font-size: 18px; line-height: 1.72; }
.prose--article p, .prose--article li { color: #2c3138; }
.prose--article > * + * { margin-top: 1.05em; }
.prose--article h2 { margin-top: 1.9em; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.02em; scroll-margin-top: 96px; }
.prose--article h3 { margin-top: 1.6em; font-size: clamp(20px, 1.6vw, 23px); }
.prose--article h4 { margin-top: 1.4em; font-size: 18px; font-weight: 700; }
.prose--article ol { padding-left: 1.3em; display: grid; gap: 8px; }
.prose--article .ticks { gap: 10px; }
.prose--article > p:first-child { font-size: clamp(19px, 1.45vw, 21px); line-height: 1.6; color: var(--text); }

@media (max-width: 960px) {
  .article__body, .article__aside { grid-column: 1 / -1; }
  .article__aside { grid-row: auto; position: static; }
  .article__help { display: none; }
  .article__toc { padding: 4px 0; }
}

.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--col-gap); }
.post-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-row { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 0 26px; border-top: 1px solid var(--line); text-decoration: none; }
.post-row__meta { font-size: 13px; font-weight: 500; color: var(--muted); }
.post-row__title { font: 650 clamp(18px, 1.4vw, 20px)/1.3 var(--font-head); font-stretch: 104%; letter-spacing: -.01em; color: var(--text); }
.post-row__excerpt { font-size: 15px; line-height: 1.55; color: var(--muted); }
.post-row:hover .post-row__title { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 900px) { .post-list, .post-list--3 { grid-template-columns: 1fr; } }
.ticks__link { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ticks__link:hover { color: var(--orange-light); }
.types--spaced { margin-top: clamp(40px, 4.5vw, 64px); }
.other-industries { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: clamp(40px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.other-industries ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.other-industries a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; }
.other-industries a .icon { width: 18px; height: 18px; color: var(--orange); }
.other-industries a:hover { color: var(--orange-text); }
.other-industries a[aria-current="page"] { color: var(--muted); pointer-events: none; }
.split-head:has(> .prose) { align-items: start; }
.prose--article { overflow-wrap: break-word; }

/* =====================================================================
   KOONTISIVUT (Palosuojaus, Räjähdyssuojaus) – v2
   ===================================================================== */

.page-hero--hub { min-height: clamp(460px, 60svh, 640px); }
.page-hero--hub h1 { max-width: 13em; font-size: clamp(40px, 4.6vw, 72px); }

/* Mosaiikki: 2 × 2 täysleveää kuvaruutua, nimetty sen mukaan, mitä järjestelmä havaitsee */
.mosaic { container-type: inline-size; background: var(--ink); }
.mosaic__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.mosaic__item { position: relative; display: block; height: clamp(400px, 36vw, 560px); overflow: hidden; color: var(--white); text-decoration: none; background: var(--ink-2); }
.mosaic__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mosaic__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 14, .94) 0%, rgba(8, 10, 14, .72) 38%, rgba(8, 10, 14, .15) 72%, rgba(8, 10, 14, 0) 100%); }
.mosaic__item:hover img, .mosaic__item:focus-visible img { transform: scale(1.035); }
.mosaic__text { position: absolute; z-index: 1; bottom: clamp(32px, 3.2vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.mosaic__item:nth-child(odd) .mosaic__text { left: var(--edge); right: clamp(28px, 3.5vw, 64px); }
.mosaic__item:nth-child(even) .mosaic__text { left: clamp(28px, 3.5vw, 64px); right: var(--edge); }
.mosaic__threat { font: 700 clamp(36px, 3.6vw, 60px)/.98 var(--font-head); font-stretch: 108%; letter-spacing: -.03em; text-wrap: balance; }
.mosaic__system { display: inline-flex; align-items: center; gap: 12px; font: 600 clamp(18px, 1.4vw, 21px)/1.25 var(--font-head); font-stretch: 104%; color: var(--orange-light); }
.mosaic__system::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transition: transform .2s var(--ease); }
.mosaic__item:hover .mosaic__system::after { transform: translateX(4px); }
.mosaic__fact { max-width: 30em; font-size: 17px; line-height: 1.5; color: #e6e9ed; }
@media (max-width: 860px) {
  .mosaic__grid { grid-template-columns: 1fr; }
  .mosaic__item { height: clamp(340px, 92vw, 440px); }
  .mosaic__item:nth-child(n) .mosaic__text { left: var(--gutter); right: var(--gutter); }
}

/* Vertailutaulukko */
.compare-wrap { margin-top: clamp(8px, 1vw, 16px); }
.compare { width: 100%; border-collapse: collapse; }
.compare th { padding: 0 20px 14px 0; border-bottom: 2px solid var(--text); font: 600 12px/1.35 var(--font-body); letter-spacing: .1em; text-transform: uppercase; text-align: left; color: var(--muted); vertical-align: bottom; }
.compare td { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--muted); vertical-align: top; }
.compare td:first-child { width: 22%; }
.compare td:first-child a { font: 700 clamp(19px, 1.5vw, 22px)/1.2 var(--font-head); font-stretch: 106%; letter-spacing: -.015em; color: var(--text); text-decoration: none; }
.compare td:first-child a:hover { color: var(--orange-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.compare td:first-child span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.compare td strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { padding: 22px 0 18px; border-top: 2px solid var(--text); }
  .compare tr + tr { margin-top: 18px; }
  .compare td { display: block; padding: 8px 0; border: 0; color: var(--text); }
  .compare td:first-child { width: 100%; display: block; padding-bottom: 12px; }
  .compare td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 12px/1.6 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}

/* Kaksi palstaa: iso väite + leipäteksti, ilman kortteja */
.statement { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--col-gap); align-items: start; }
.statement h2 { grid-column: 1 / span 6; font-size: clamp(30px, 3.2vw, 50px); }
.statement__body { grid-column: 8 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.statement__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
@media (max-width: 900px) { .statement h2, .statement__body { grid-column: 1 / -1; } }

/* Kumppanirivi */
.partner-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px clamp(28px, 4vw, 64px); }
.partner-strip img { height: 40px; width: auto; }
.partner-strip img.is-rsbp { height: 48px; }
.partner-strip p { max-width: 44em; font-size: 17px; color: var(--muted); }
.partner-strip p strong { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .partner-strip { grid-template-columns: 1fr; } }

/* Räjähdyssuojauksen kolme periaatetta täysleveänä */
.triptych { container-type: inline-size; background: var(--ink); color: var(--white); }
.triptych__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.principle { display: flex; flex-direction: column; background: var(--ink-2); }
.principle__media { position: relative; height: clamp(260px, 24vw, 380px); overflow: hidden; }
.principle__media img { width: 100%; height: 100%; object-fit: cover; }
.principle__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18, 22, 29, 1) 0%, rgba(18, 22, 29, .2) 45%, rgba(18, 22, 29, 0) 70%); }
.principle__body { display: flex; flex-direction: column; gap: 16px; padding: 0 clamp(24px, 2.6vw, 44px) clamp(44px, 4.5vw, 64px); margin-top: -56px; position: relative; z-index: 1; flex: 1; }
.principle:first-child .principle__body { padding-left: var(--edge); }
.principle:last-child .principle__body { padding-right: var(--edge); }
.principle h2 { font-size: clamp(32px, 3vw, 48px); }
.principle__lead { font-size: 17px; line-height: 1.55; color: var(--muted-dark); max-width: 28em; }
.principle__products { display: grid; gap: 22px; margin-top: 12px; padding-top: 24px; border-top: 2px solid var(--orange); }
.principle__products a { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font: 700 clamp(20px, 1.6vw, 24px)/1.2 var(--font-head); font-stretch: 106%; letter-spacing: -.015em; color: var(--white); text-decoration: none; }
.principle__products a::after { content: ""; align-self: center; width: 13px; height: 13px; background: var(--orange); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transition: transform .2s var(--ease); }
.principle__products a:hover { color: var(--orange-light); }
.principle__products a:hover::after { transform: translateX(3px); }
.principle__products small { font: 600 13px/1.3 var(--font-body); letter-spacing: .04em; color: var(--muted-dark); }
.principle__products p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted-dark); }
@media (max-width: 960px) {
  .triptych__grid { grid-template-columns: 1fr; }
  .principle .principle__body, .principle:first-child .principle__body, .principle:last-child .principle__body { padding-inline: var(--gutter); }
  .principle__media { height: clamp(220px, 56vw, 340px); }
}

/* Pölyräjähdyksen edellytykset yhtenä isona lauseena */
.equation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin: 0; padding: 0; list-style: none; font: 700 clamp(30px, 3.8vw, 58px)/1.08 var(--font-head); font-stretch: 108%; letter-spacing: -.03em; }
.equation li + li::before { content: "+"; margin-right: 22px; color: var(--orange); font-weight: 600; }
@media (max-width: 760px) {
  .equation { flex-direction: column; gap: 4px; }
  .equation li + li::before { margin-right: 12px; }
}
.statement--below { margin-top: clamp(32px, 3.5vw, 52px); align-items: end; }
.statement__wide { grid-column: 1 / span 7; color: var(--muted); }
.statement--below .statement__body { grid-column: 9 / -1; }
@media (max-width: 900px) { .statement__wide, .statement--below .statement__body { grid-column: 1 / -1; } }

/* Koontisivut v3: rauhallinen kahden palstan kuvaruudukko, parilliset porrastettuina */
.hub-intro { max-width: 40em; font: 500 clamp(22px, 2vw, 30px)/1.4 var(--font-head); font-stretch: 104%; letter-spacing: -.015em; color: var(--text); }
.hub-intro a { color: var(--orange-text); text-underline-offset: 4px; }
.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 6vw, 96px) clamp(28px, 4vw, 72px); margin-top: clamp(56px, 6vw, 96px); }
.showcase > :nth-child(even) { margin-top: clamp(80px, 9vw, 160px); }
.show { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.show__media { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 10px; background: var(--paper); }
.show__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.show:hover .show__media img { transform: scale(1.03); }
.show h2 { font-size: clamp(28px, 2.6vw, 40px); }
.show h2 a { text-decoration: none; }
.show h2 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.show h2 small { display: block; margin-top: 8px; font: 500 15px/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); }
.show p { max-width: 32em; color: var(--muted); }
@media (max-width: 760px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase > :nth-child(even) { margin-top: 0; }
}
.section--tight { padding-top: 0; }

/* Koontisivut v4 – malli: Firefly / Industrial fire protection (rauhallinen mittakaava) */
.page-hero--hub h1 { max-width: 14em; font-size: clamp(38px, 3.9vw, 56px); line-height: 1.06; letter-spacing: -.025em; }
.page-hero--hub .page-hero__lead { font-size: 18px; max-width: 34em; }
.hub-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px var(--col-gap); align-items: start; margin-bottom: clamp(40px, 4vw, 56px); }
.hub-split h2 { grid-column: 1 / span 5; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.hub-split p { grid-column: 7 / -1; font-size: 17px; line-height: 1.65; color: var(--muted); }
.hub-split p + p { grid-column: 7 / -1; }
@media (max-width: 900px) { .hub-split h2, .hub-split p, .hub-split p + p { grid-column: 1 / -1; } }

.hub-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px var(--col-gap); }
.hub-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-tiles li { display: flex; flex-direction: column; gap: 14px; }
.hub-tiles .tile__media { aspect-ratio: 3 / 4; }
.hub-tiles--3 .tile__media { aspect-ratio: 4 / 3; }
.hub-tiles .tile__name { font-size: clamp(19px, 1.5vw, 23px); padding-right: 44px; }
.hub-tiles .tile__name small { display: block; margin-top: 4px; font: 500 13px/1.3 var(--font-body); letter-spacing: .02em; color: #d9dde2; }
.hub-tiles .tile__text { font-size: 16px; line-height: 1.55; color: var(--muted); }
@media (max-width: 1100px) { .hub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hub-tiles .tile__media { aspect-ratio: 4 / 3; } }
@media (max-width: 520px) {
  .hub-tiles, .hub-tiles--3 { grid-template-columns: 1fr; gap: 32px; }
  .hub-tiles .tile { position: relative; color: var(--white); }
  .hub-tiles .tile__media { position: relative; aspect-ratio: 16 / 10; }
  .hub-tiles .tile__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 14, .88) 0%, rgba(8, 10, 14, .4) 40%, rgba(8, 10, 14, 0) 65%); }
  .hub-tiles .tile__name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0; padding: 0 44px 18px 18px; font-size: 21px; }
  .hub-tiles .tile__name::after { display: block; background: var(--orange); }
}

.hub-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--col-gap); align-items: center; }
.hub-feature__media { grid-column: 1 / span 6; aspect-ratio: 16 / 10; overflow: hidden; }
.hub-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.hub-feature__text { grid-column: 8 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hub-feature__text h2 { font-size: clamp(26px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -.02em; }
.hub-feature__text p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.hub-feature__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
@media (max-width: 900px) { .hub-feature__media, .hub-feature__text { grid-column: 1 / -1; } }
.hub-tiles .tile__name { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 12px; }
.hub-tiles .tile__name small { grid-column: 1; grid-row: 2; }
.hub-tiles .tile__name::after { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-bottom: 4px; }
.nowrap { white-space: nowrap; }

/* =====================================================================
   VIIMEISTELY: jaettu hero alasivuille (teksti vasemmalla, terävä kuva oikealla)
   ===================================================================== */
.page-hero--split { min-height: clamp(500px, 62svh, 660px); }
.page-hero--split::before { display: none; }
.page-hero--split .page-hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 47%; z-index: -1; }
.page-hero--split .page-hero__bg { position: absolute; inset: 0; z-index: auto; }
.page-hero--split .page-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(11, 14, 19, .55) 12%, rgba(11, 14, 19, 0) 34%),
    linear-gradient(180deg, rgba(11, 14, 19, .55) 0%, rgba(11, 14, 19, 0) 22%);
}
.page-hero--split .page-hero__inner { align-items: flex-start; }
.page-hero--split .page-hero__inner > * { max-width: min(600px, 48%); }
.page-hero--split .page-hero__inner > .crumbs, .page-hero--split .page-hero__inner > .page-hero__actions { max-width: 50%; }
.page-hero--split h1 { font-size: clamp(34px, 3.4vw, 54px); line-height: 1.06; }
@media (max-width: 1100px) {
  .page-hero--split .page-hero__media { width: 44%; }
  .page-hero--split .page-hero__inner > * { max-width: 52%; }
}
@media (max-width: 760px) {
  .page-hero--split .page-hero__media { position: relative; width: 100%; height: clamp(240px, 56vw, 360px); }
  .page-hero--split .page-hero__media::after { background: linear-gradient(180deg, rgba(11, 14, 19, .6) 0%, rgba(11, 14, 19, 0) 35%, rgba(11, 14, 19, 0) 65%, rgba(11, 14, 19, .95) 100%); }
  .page-hero--split .page-hero__inner > *, .page-hero--split .page-hero__inner > .crumbs, .page-hero--split .page-hero__inner > .page-hero__actions { max-width: none; }
}

/* Viimeistely: luettavampi pieni teksti ja selkeämmät väliotsikot */
.steps { gap: 32px var(--col-gap); }
.steps li { gap: 12px; padding-top: 26px; }
.steps h3 { font-size: clamp(20px, 1.6vw, 23px); }
.steps p, .why p, .types__text, .types .ticks, .brand p, .tile__text, .hub-tiles .tile__text { font-size: 16px; line-height: 1.6; }
.why h4 { font-size: 20px; }
.why li { padding: 26px 0 30px; }
.layer p { font-size: 17px; }
.cols-list li { font-size: 17px; }
.person span { font-size: 15px; }
.footer__col { font-size: 15px; }
@media (max-width: 760px) {
  .page-hero--split .page-hero__inner { margin-top: 0; padding-top: 26px; }
}

/* =====================================================================
   LÄPIKÄYNNIN KORJAUKSET
   ===================================================================== */

/* 1–2. Otsikko + johdanto: yläreunat linjaan; pitkä teksti otsikon alle */
.split-head { align-items: start; }
.split-head > .lead { padding-top: .45em; padding-bottom: 0; }
.split-head:has(> .prose) { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 46em; }
.split-head:has(> .prose) > h2, .split-head:has(> .prose) > .prose { grid-column: 1 / -1; max-width: none; }
.split-head:has(> .prose) > .prose { font-size: 18px; }
.split-head--link { align-items: end; }

/* 3. Kohdekortit: kevyemmät viivat, sarakkeet kohteiden määrän mukaan */
.types > li { border-top: 1px solid var(--line); }
.types:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section--ink .types > li { border-top-color: var(--line-dark); }
@media (max-width: 1100px) { .types:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .types:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; } }

/* 4. Palstalistat ilman viivoja ja satunnaisia ikoneita */
.cols-list .icon { display: none; }
.cols-list li { position: relative; padding: 10px 0 10px 24px; border-bottom: 0; line-height: 1.45; }
.cols-list li::before { content: ""; position: absolute; left: 0; top: calc(10px + .5em); width: 10px; height: 10px; background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%); }
.cols-list--wide { border-top: 0; margin-top: clamp(32px, 3vw, 44px); }

/* 5. Mottokaista: teksti irti kuvan omista teksteistä */
.motto::before { background: linear-gradient(90deg, rgba(11, 14, 19, .95) 0%, rgba(11, 14, 19, .88) 42%, rgba(11, 14, 19, .35) 70%, rgba(11, 14, 19, .1) 100%); }

/* 6. Ajankohtaista: nuoli tekstin perään */
.news__item span { align-self: flex-start; }

/* 7. Kumppaniotsikko kevyemmäksi */
.partners__text h2 { font-size: clamp(30px, 2.9vw, 44px); max-width: 15em; }

/* LÄPIKÄYNTI 2 */
.article__body { max-width: 38em; }
.group-head:has(+ .post-list) p { text-align: right; font-size: 15px; }
@media (max-width: 900px) { .group-head:has(+ .post-list) p { text-align: left; } }
