/* =========================================================
   Laktek Engineering Oy – sivuston tyylit
   Värit ja fontit alkuperäisen laktek.fi:n mukaan, modernisoituna.
   ========================================================= */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Age"; font-display: swap; src: url("../fonts/Age.ttf") format("truetype"); }

:root {
  --navy: #405479;          /* alkuperäisen sivun pääväri */
  --navy-700: #34466a;
  --navy-800: #2a3957;
  --navy-900: #1e2a42;
  --sky: #c7d3e5;           /* vaaleansininen aaltoväri */
  --sky-100: #e4eaf3;
  --sky-50: #f3f6fa;
  --orange: #d37127;        /* logon lakkamarja */
  --orange-400: #ec8a3a;
  --leaf: #4f9a3a;
  --ink: #1d2533;
  --text: #33373d;
  --muted: #5d6676;
  --white: #fff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(30, 42, 66, .06), 0 8px 24px rgba(30, 42, 66, .08);
  --shadow-lg: 0 20px 50px rgba(30, 42, 66, .18);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--orange); }
h1, h2, h3, h4, h5 { color: var(--navy); line-height: 1.2; font-weight: 600; margin: 0 0 .6em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); font-weight: 500; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; background: var(--white); padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(40px, 5vw, 70px) 0; }
.section--sky { background: var(--sky-50); }
.section--navy { background: var(--navy); color: #e8edf5; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy a:not(.btn) { color: var(--white); }
.center { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--orange); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.center .eyebrow { justify-content: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.slogan { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--navy); font-weight: 400; }

/* ---------- Painikkeet (pillerinmuotoiset kuten alkuperäisessä) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; padding: .8rem 1.6rem; border-radius: 999px;
  background: var(--navy); color: var(--white); text-decoration: none; font-weight: 500; font-size: .98rem;
  border: 2px solid var(--navy); transition: transform .15s ease, background .2s, color .2s, box-shadow .2s; line-height: 1.2;
}
.btn:hover { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30, 42, 66, .2); }
.btn::after { content: "→"; transition: transform .2s; }
.btn:hover::after { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .85); }
.btn--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white:hover { background: var(--sky-100); border-color: var(--sky-100); color: var(--navy); }
.btn--orange { background: var(--orange); border-color: var(--orange); }
.btn--orange:hover { background: #b95f1d; border-color: #b95f1d; }
.btn--plain::after { content: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }
p.cta { margin: 2rem 0; display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Ylätunniste ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
/* Läpikuultava tausta pseudoelementissä, jotta mobiilivalikko (position: fixed) täyttää koko näytön */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(64, 84, 121, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.nav li { position: relative; }
.nav a.nav-link, .nav button.nav-link {
  display: flex; align-items: center; gap: .35rem; color: var(--white); text-decoration: none; font: inherit; font-size: .95rem; font-weight: 500;
  padding: .55rem .9rem; border-radius: 999px; background: none; border: 0; cursor: pointer; letter-spacing: .01em;
}
.nav a.nav-link:hover, .nav li:hover > .nav-link, .nav li:focus-within > .nav-link { background: rgba(255, 255, 255, .12); color: var(--white); }
.nav a.nav-link[aria-current="page"], .nav .is-active > .nav-link { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav .caret { width: 10px; height: 10px; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); min-width: 260px;
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow-lg); padding: .6rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.dropdown--wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .4rem; }
.nav li:hover > .dropdown, .nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: block; padding: .55rem .8rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.dropdown a:hover { background: var(--sky-50); color: var(--navy); }
.dropdown .all { grid-column: 1 / -1; border-top: 1px solid var(--sky-100); margin-top: .3rem; padding-top: .3rem; }
.dropdown .all a { font-weight: 600; color: var(--navy); }
/* Palvelut-megamenu */
.nav li.has-mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: 0 30px 60px rgba(30, 42, 66, .22); border-top: 3px solid var(--orange); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.nav li.has-mega:hover > .mega, .nav li.has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.site-header .mega__inner { display: grid; height: auto; justify-content: initial; align-items: initial; grid-template-columns: 290px 1fr; gap: 2.5rem; padding: 2.2rem 0 2.4rem; }
.mega__intro { background: var(--navy); color: #dfe6f1; border-radius: var(--radius); padding: 1.8rem; position: relative; overflow: hidden; isolation: isolate; align-self: start; }
.mega__intro::after { content: ""; position: absolute; width: 180px; aspect-ratio: 1; border-radius: 50%; background: var(--navy-700); right: -60px; bottom: -70px; z-index: -1; }
.mega__intro .eyebrow { margin-bottom: .6rem; }
.mega__title { color: var(--white); font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 0 0 .7rem; }
.mega__text { font-size: .9rem; line-height: 1.55; margin: 0 0 1.3rem; }
.mega__intro .btn { font-size: .9rem; padding: .65rem 1.2rem; }
.mega__contact { font-size: .82rem; margin: 1.1rem 0 0; color: #b8c6dc; }
.mega__contact a { color: var(--white); text-decoration: none; font-weight: 600; }
.mega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .3rem 1.2rem; align-content: start; }
.mega__item { display: flex; gap: .9rem; align-items: center; padding: .6rem; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background .15s; }
.mega__item:hover, .mega__item[aria-current="page"] { background: var(--sky-50); }
.mega__item img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; }
.mega__item strong { display: block; font-size: .92rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.mega__item small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; color: var(--muted); line-height: 1.45; margin-top: .15rem; }
.mega__item:hover strong { color: var(--orange); }
@media (min-width: 1081px) and (max-width: 1250px) { .site-header .mega__inner { grid-template-columns: 260px 1fr; gap: 1.6rem; } .mega__item small { display: none; } .mega__title { font-size: 1.05rem; } .mega__intro { padding: 1.5rem; } }
.header-cta { margin-left: .6rem; padding: .6rem 1.2rem; font-size: .92rem; }
.menu-toggle { display: none; }

@media (max-width: 1080px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: var(--white); cursor: pointer;
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy-800); flex-direction: column; align-items: stretch;
    padding: 1.2rem var(--gutter) 2rem; overflow-y: auto; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; visibility: hidden;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a.nav-link, .nav button.nav-link { font-size: 1.1rem; padding: .9rem .4rem; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); width: 100%; justify-content: space-between; }
  .nav a.nav-link:hover, .nav li:hover > .nav-link { background: none; }
  .dropdown, .dropdown--wide { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: transparent; min-width: 0; display: none; grid-template-columns: 1fr; padding: .3rem 0 .6rem .8rem; }
  .nav li.is-expanded > .dropdown { display: grid; }
  .nav li.is-expanded .caret { transform: rotate(180deg); }
  .nav li:hover > .dropdown { transform: none; }
  .dropdown a { color: #dfe6f1; }
  .dropdown a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
  .dropdown .all { border-color: rgba(255, 255, 255, .12); }
  .dropdown .all a { color: var(--white); }
  .header-cta { margin: 1.4rem 0 0; justify-content: center; }
  .nav li.has-mega { position: relative; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; display: none; }
  .nav li.is-expanded > .mega { display: block; }
  .site-header .mega__inner { display: block; padding: .3rem 0 .8rem .8rem; width: auto; }
  .mega__intro { background: none; padding: 0; order: 2; }
  .mega__intro::after, .mega__intro .eyebrow, .mega__title, .mega__text, .mega__contact { display: none; }
  .mega__intro .btn { background: none; border: 0; padding: .55rem .8rem; color: var(--white); font-weight: 600; }
  .mega__grid { grid-template-columns: 1fr; gap: 0; }
  .mega__item { padding: .55rem .8rem; color: #dfe6f1; }
  .mega__item img, .mega__item small { display: none; }
  .mega__item strong { color: #dfe6f1; font-weight: 400; font-size: .95rem; }
  .mega__item:hover, .mega__item[aria-current="page"] { background: rgba(255, 255, 255, .08); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Aallot ---------- */
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave--bottom { position: absolute; left: 0; right: 0; bottom: -1px; }

/* ---------- Etusivun hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
  background: var(--navy-900) url("../img/Laktek_Engineering_Hero_banner.webp") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(30, 42, 66, .92) 0%, rgba(52, 70, 106, .75) 50%, rgba(64, 84, 121, .35) 100%); }
.hero .wrap { position: relative; padding: clamp(80px, 13vw, 170px) 0 clamp(120px, 15vw, 210px); }
.hero__rotator { font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 500; margin-bottom: 1.2rem; color: #dfe6f1; min-height: 1.6em; }
.hero__rotator .word { color: var(--orange-400); font-weight: 600; display: inline-block; transition: opacity .35s, transform .35s; }
.hero__rotator .word.is-out { opacity: 0; transform: translateY(-8px); }
.hero__name { color: var(--white); margin: 0; line-height: .95; }
.hero__h1 { color: var(--white); margin: 1.2rem 0 0; font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.25; letter-spacing: -.005em; max-width: 760px; hyphens: manual; -webkit-hyphens: manual; }
.hero__h1 .word { color: var(--orange-400); display: inline-block; transition: opacity .35s, transform .35s; }
.hero__h1 .word.is-out { opacity: 0; transform: translateY(-8px); }
.hero__h1 .word::first-letter { text-transform: uppercase; }
.hero__brand { font-family: "Age", "Montserrat", sans-serif; color: var(--orange); font-size: clamp(4.2rem, 13vw, 10rem); letter-spacing: .02em; display: block; text-shadow: 0 6px 30px rgba(0, 0, 0, .25); }
.hero__sub { display: block; font-size: clamp(2rem, 5.4vw, 4.2rem); font-weight: 400; letter-spacing: -.01em; margin-top: .1em; }
.hero__text { max-width: 560px; margin: 1.6rem 0 2.2rem; font-size: 1.12rem; color: #e1e8f2; }
.hero__circle { position: absolute; right: -55vw; top: -60%; width: 130vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(199, 211, 229, .15) 0%, rgba(199, 211, 229, .07) 45%, rgba(199, 211, 229, 0) 100%); pointer-events: none; }

/* ---------- Alasivujen hero ---------- */
.page-hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(42, 57, 87, .95) 15%, rgba(64, 84, 121, .55)); }
.page-hero .wrap { position: relative; z-index: 1; padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 10vw, 140px); }
.page-hero h1 { color: var(--white); max-width: 900px; margin-bottom: .4em; }
.page-hero .lead { color: #dbe3ef; max-width: 760px; margin: 0; }
.page-hero .wave--bottom { z-index: 2; }
.crumbs { font-size: .85rem; margin-bottom: 1.2rem; color: #c3cee0; }
.crumbs a { color: #e6ecf5; text-decoration: none; }
.crumbs a:hover { color: var(--orange-400); }
.crumbs span[aria-hidden] { margin: 0 .5rem; opacity: .6; }

/* ---------- Sisältö (Markdown) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.prose h2:first-child, .prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 2em; }
.prose h4 { margin-top: 1.8em; }
.prose h2 + p:first-of-type { }
.prose ul { padding: 0; margin: 0 0 1.4em; list-style: none; }
.prose ul li { position: relative; padding-left: 1.8rem; margin: .45rem 0; }
.prose ul li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(211, 113, 39, .15); }
.prose ol { padding-left: 1.4rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose img { border-radius: var(--radius); margin: 2rem 0; box-shadow: var(--shadow); }
.prose blockquote { margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 4px solid var(--orange); background: var(--sky-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--navy); font-size: 1.1rem; }
.prose hr { border: 0; height: 1px; background: var(--sky-100); margin: 3rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--sky-100); }

/* Kaksipalstainen asettelu: sisältö + sivupalkki */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.4rem; }
.side-card { background: var(--sky-50); border-radius: var(--radius); padding: 1.5rem; }
.side-card h2, .side-card h3 { font-size: 1.05rem; margin-bottom: .8rem; font-weight: 600; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li a { display: block; padding: .5rem .7rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .92rem; line-height: 1.35; }
.side-card li a:hover { background: var(--white); color: var(--navy); }
.side-card li a[aria-current="page"] { background: var(--navy); color: var(--white); }
.side-card--navy { background: var(--navy); color: #e3e9f2; }
.side-card--navy h3 { color: var(--white); }
.side-card--navy a:not(.btn) { color: var(--white); }
.side-card p { font-size: .95rem; }
.side-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* ---------- Kortit ---------- */
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.service-card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .25s ease, box-shadow .25s ease; isolation: isolate;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.service-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky-100); }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card__img img { transform: scale(1.05); }
.service-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.service-card p { font-size: .94rem; color: var(--muted); margin: 0 0 1rem; line-height: 1.6; }
.service-card .more { margin-top: auto; font-weight: 600; color: var(--navy); font-size: .92rem; display: inline-flex; gap: .4rem; }
.service-card:hover .more { color: var(--orange); }

/* Etusivun palvelulaatat (kuva + navy-peite kuten alkuperäisessä) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; color: var(--white); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(42, 57, 87, .35) 0%, rgba(42, 57, 87, .92) 100%); transition: background .3s; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::before { background: linear-gradient(180deg, rgba(42, 57, 87, .2) 0%, rgba(42, 57, 87, .85) 100%); }
.tile__body { padding: 1.4rem 1.5rem; width: 100%; }
.tile h3 { color: var(--white); margin: 0 0 .3rem; font-size: 1.2rem; font-weight: 600; }
.tile p { margin: 0; font-size: .9rem; line-height: 1.5; color: #dfe6f1; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s; }
.tile:hover p, .tile:focus-visible p { max-height: 6em; opacity: 1; }
.tile .arrow { position: absolute; top: 1.1rem; right: 1.1rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; transition: background .2s, transform .2s; backdrop-filter: blur(4px); }
.tile:hover .arrow { background: var(--orange); transform: rotate(-45deg); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 16 / 9; } .tile p { max-height: none; opacity: 1; } }
@media (hover: none) { .tile p { max-height: none; opacity: 1; } }

/* Intro-osio etusivulla */
.intro { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.intro__media { position: relative; }
.intro__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro__media::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--sky); left: -14%; bottom: -10%; z-index: -1; }
.intro__badge { position: absolute; right: -8%; bottom: 7%; background: var(--white); border-radius: 20px; padding: 1.1rem 1.3rem 1.2rem; box-shadow: var(--shadow-lg); border-top: 4px solid var(--orange); min-width: 220px; }
.intro__badge-top { display: flex; align-items: baseline; gap: .55rem; margin-bottom: .75rem; }
.intro__badge-top strong { font-size: 2.6rem; color: var(--orange); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.intro__badge-top span { font-size: .95rem; font-weight: 600; color: var(--navy); }
.intro__badge-cities { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.intro__badge-cities li { display: inline-flex; align-items: center; gap: .3rem; background: var(--sky-50); color: var(--navy); border-radius: 999px; padding: .28rem .65rem .28rem .5rem; font-size: .8rem; font-weight: 500; line-height: 1.2; }
.intro__badge-cities svg { width: 13px; height: 13px; color: var(--orange); flex: none; }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .intro__media { max-width: 460px; } .intro__media img { aspect-ratio: 4 / 3; } .intro__badge { right: 4%; } }

/* Numerot */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--navy); padding: 2rem 1.5rem; text-align: center; }
.stat__label { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #b8c6dc; }
.stat__value { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: var(--white); line-height: 1.2; margin: .3rem 0; }
.stat__text { font-size: .92rem; color: #d7e0ed; }
.section--sky .stats { background: var(--sky); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 340px) { .stats { grid-template-columns: 1fr; } }

/* Kuvabanneri (lakkamarjat) */
.banner { position: relative; min-height: clamp(360px, 48vw, 560px); display: grid; place-items: center; text-align: center; color: var(--white); background: var(--navy-900) center / cover no-repeat; isolation: isolate; overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(42, 57, 87, .55); z-index: -1; }
.banner h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); max-width: 860px; margin-inline: auto; }

/* Kaksi palstaa kuvalla */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split__media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; box-shadow: var(--shadow-lg); }
.split__media--blob img { border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; aspect-ratio: 5 / 4; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* Arvot / edut */
.feature { background: var(--white); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); height: 100%; border-top: 4px solid var(--navy); }
.feature h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature p { margin: 0; font-size: .95rem; color: var(--muted); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sky-50); display: grid; place-items: center; margin-bottom: 1rem; color: var(--orange); }
.feature__icon svg { width: 26px; height: 26px; }
.section--navy .feature { background: rgba(255, 255, 255, .06); box-shadow: none; border-top-color: var(--orange); }
.section--navy .feature p { color: #d7e0ed; }

/* Toimialat-lista */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.5rem 0 0; }
.chips li { background: var(--white); border: 1px solid var(--sky); color: var(--navy); border-radius: 999px; padding: .45rem 1rem; font-size: .9rem; font-weight: 500; }
.section--navy .chips li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: var(--white); }

/* CTA-kaista */
.cta-band { position: relative; background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; width: 420px; aspect-ratio: 1; border-radius: 50%; background: var(--navy-700); right: calc(clamp(32px, 5vw, 64px) + var(--cta-btn, 105px) - 210px); top: -180px; z-index: -1; }
.cta-band::after { content: ""; position: absolute; width: 180px; aspect-ratio: 1; border-radius: 50%; background: rgba(211, 113, 39, .9); right: calc(clamp(32px, 5vw, 64px) + var(--cta-btn, 105px) - 90px); bottom: -120px; z-index: -1; }
.cta-band h2 { color: var(--white); margin: 0 0 .4rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; color: #d7e0ed; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band::before, .cta-band::after { right: -60px; } }

/* Referenssit */
.ref { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.2rem); break-inside: avoid; margin-bottom: clamp(16px, 2.2vw, 28px); }
.ref__client { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.ref__client h2 { font-size: 1.25rem; margin: 0; font-weight: 600; }
.ref__dot { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--sky-50); color: var(--orange); display: grid; place-items: center; }
.ref__proj + .ref__proj { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px dashed var(--sky); }
.ref__proj h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--ink); }
.ref__proj ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ref__proj li { background: var(--sky-50); color: var(--navy); border-radius: 8px; padding: .3rem .65rem; font-size: .86rem; line-height: 1.4; }
.masonry { columns: 2 420px; column-gap: clamp(16px, 2.2vw, 28px); }

/* Yhteystiedot */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.office { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem 1.8rem; }
.office + .office { margin-top: 1.2rem; }
.office h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.office address { font-style: normal; color: var(--muted); margin-bottom: 1rem; }
.person { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; padding: .7rem 0; border-top: 1px solid var(--sky-100); font-size: .95rem; }
.person span { color: var(--muted); }
.person a { text-decoration: none; font-weight: 500; white-space: nowrap; }
.quick { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }
.quick a { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255, 255, 255, .12); color: var(--white); text-decoration: none; padding: .7rem 1.1rem; border-radius: 12px; font-weight: 500; }
.quick a:hover { background: var(--white); color: var(--navy); }
.quick svg { width: 18px; height: 18px; }

/* Lomakkeet */
.form { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.5rem, 4vw, 2.6rem); }
.form h2 { font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem 1rem; border: 1.5px solid #d3dbe8; border-radius: 12px; background: var(--sky-50); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(64, 84, 121, .12); }
.field textarea { min-height: 150px; resize: vertical; }
.field input[type="file"] { padding: .6rem; background: var(--white); }
.form-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 1.2rem; }
.hp { position: absolute; left: -9999px; }
.form button.btn { cursor: pointer; font: inherit; font-weight: 600; }

/* Alatunniste */
.site-footer { background: var(--navy-900); color: #c9d4e5; font-size: .93rem; position: relative; }
.site-footer .wave { color: var(--navy-900); position: absolute; top: calc(-1 * clamp(40px, 6vw, 90px) + 1px); left: 0; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); padding: clamp(56px, 7vw, 88px) 0 2.4rem; }
.site-footer h2 { color: var(--white); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.site-footer a { color: #e6ecf5; text-decoration: none; }
.site-footer a:hover { color: var(--orange-400); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-services { columns: 2 200px; column-gap: 2rem; }
.footer-services li { margin-bottom: .5rem; break-inside: avoid; line-height: 1.4; }
.footer-logo img { height: 52px; width: auto; margin-bottom: 1rem; }
.badges { display: flex; gap: 1rem; align-items: center; margin-top: 1.4rem; flex-wrap: wrap; }
.badges img { height: 64px; width: auto; background: var(--white); border-radius: 10px; padding: 6px; }
.footer-contact p { margin: 0 0 1rem; line-height: 1.6; }
.footer-contact strong { color: var(--white); font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; font-size: .85rem; color: #9fb0c9; }
.footer-bottom nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } }

/* Sisääntuloanimaatio */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.eu-logo { max-width: 340px; margin-top: 2.5rem; }
.eu-logo img { box-shadow: none; border-radius: 0; margin: 0; }
.empty { text-align: center; padding: 3rem 1.5rem; background: var(--sky-50); border-radius: var(--radius); }
.empty svg { width: 44px; height: 44px; color: var(--navy); opacity: .6; margin: 0 auto 1rem; }
.job { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem 1.8rem; }

/* Palvelusivujen "Miksi Laktek" -laatikko */
.prose .why { margin-top: 3rem; background: var(--navy); color: #e3e9f2; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); position: relative; overflow: hidden; isolation: isolate; }
.prose .why::after { content: ""; position: absolute; width: 260px; aspect-ratio: 1; border-radius: 50%; background: var(--navy-700); right: -90px; top: -110px; z-index: -1; }
.prose .why h2, .prose .why h3 { color: var(--white); margin-top: 0; }
.prose .why strong { color: var(--white); }
.prose .why .slogan { color: var(--sky); margin-top: -.6rem; }
.prose .why a:not(.btn) { color: var(--white); }
.prose .why .btn { background: var(--white); color: var(--navy); border-color: var(--white); }
.prose .why p.cta { margin-bottom: 0; }
.prose .slogan { font-size: 1.1rem; color: var(--navy); margin-top: -.5rem; }
.job__meta { font-size: .85rem; color: var(--muted); }

/* Alatunnisteen aalto nousee viimeisen osion päälle: lisätään sen korkeus viimeisen osion alapehmusteeseen,
   jotta sisältö on keskellä ylä- ja alaosan välissä. */
#sisalto > .section:last-child { padding-bottom: calc(clamp(56px, 8vw, 110px) + clamp(40px, 6vw, 90px)); }
#sisalto > .section--tight:last-child { padding-bottom: calc(clamp(40px, 5vw, 70px) + clamp(40px, 6vw, 90px)); }
