/* Trook Oy · konseptidemo · style.css
   Maailma: piirustusarkki ja bitumi. Paperi, muste ja Trookin sininen piirrosviivana.
   Yksi perhe (Mona Sans, muuttuva leveys ja paino). Ei :root-muuttujien päivityksiä vierityksessä. */

@font-face {
  font-family: "Mona Sans";
  src: url("../assets/fonts/MonaSans-var.woff2?v=5") format("woff2");
  font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap;
}
/* otsikoiden staattinen leikkaus (wght 730, wdth 81): toimii myös selaimissa ilman muuttuvien fonttien akseleita */
@font-face {
  font-family: "Mona Display";
  src: url("../assets/fonts/MonaSans-Display.woff2?v=5") format("woff2");
  font-weight: 600 800; font-style: normal; font-display: swap;
}

:root {
  --paper: #EEECE7;
  --paper-2: #E4E1DA;
  --paper-3: #F6F5F1;
  --ink: #16191D;
  --ink-2: #4C5157;
  --ink-3: #5C6168;
  --line: rgba(22, 25, 29, .16);
  --line-2: rgba(22, 25, 29, .3);
  --blue: #0B4F8C;       /* teksti ja painikkeen hover paperilla (AA) */
  --blue-l: #0076C0;     /* Trookin logon sininen: piirrosviiva */
  --brand: #0076C0;      /* päänapit: valkoinen teksti 4,7:1 */
  --brand-h: #005C97;
  --peak: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 13'%3E%3Cpath d='M.9 12.3 12 1.8l9.1 10.5' fill='none' stroke='%230076C0' stroke-width='2.6'/%3E%3C/svg%3E");
  --peak-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 13'%3E%3Cpath d='M.9 12.3 12 1.8l9.1 10.5' fill='none' stroke='%236FB3EA' stroke-width='2.6'/%3E%3C/svg%3E");
  --blue-d: #6FB3EA;     /* sininen tummalla pohjalla */
  --bit: #15181C;        /* bitumi */
  --bit-2: #1E2227;
  --on-bit: #EEECE7;
  --on-bit-2: #A9AEB4;
  --on-bit-line: rgba(238, 236, 231, .16);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --hd: 64px;
  --gut: 16px;
  --max: 1360px;
  --fd: "Mona Display", "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --f: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 600px) { :root { --gut: clamp(24px, 4vw, 56px); } }
@media (min-width: 1100px) { :root { --hd: 76px; } }
@media (min-width: 1800px) { :root { --max: 1520px; } }
@media (min-width: 2400px) { :root { --max: 1680px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 16px); font-size: 100%; }
@media (min-width: 1800px) { html { font-size: 106.25%; } }
@media (min-width: 2400px) { html { font-size: 112.5%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f); font-size: 1.0625rem; line-height: 1.6; font-weight: 400; font-stretch: 100%; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }

/* typografia */
.h1 { font-size: clamp(2.75rem, 1.55rem + 4.6vw, 6rem); line-height: .94; font-weight: 760; font-stretch: 80%; letter-spacing: -.03em; text-wrap: balance; }
.h2 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.75rem); line-height: 1; font-weight: 720; font-stretch: 82%; letter-spacing: -.025em; text-wrap: balance; }
.h3 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.875rem); line-height: 1.1; font-weight: 680; font-stretch: 86%; letter-spacing: -.015em; }
.h4 { font-size: .75rem; line-height: 1.3; font-weight: 640; font-stretch: 118%; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 36ch; }

.h1, .h2, .h3, .svc-i h3, .st h3, .vals dt, .ppl b, .rev tbody th, .ft-say, .mnav li a, .yp-h b { font-family: var(--fd); font-stretch: normal; }

/* painikkeet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 4px; border: 1px solid transparent; font-size: 1rem; font-weight: 620; font-stretch: 100%; letter-spacing: 0; text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); white-space: nowrap; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: .9375rem; }
.btn-ink { background: var(--brand); color: #fff; }
.btn-ink:hover { background: var(--brand-h); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-line-l { border-color: rgba(238, 236, 231, .4); color: var(--on-bit); }
.btn-line-l:hover { border-color: var(--on-bit); }
.ar { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s var(--ease); }
.btn:hover .ar { transform: translateX(3px); }

/* header */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hd); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: var(--gut); background: rgba(238, 236, 231, 0); border-bottom: 1px solid transparent; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.hd.is-scrolled, .hd.is-open { background: var(--paper); border-bottom-color: var(--line); }
.logo { display: block; flex: none; }
.logo img { height: 34px; width: auto; }
@media (min-width: 1100px) { .logo img { height: 40px; } }
.hd-nav { display: none; }
.hd-nav a { text-decoration: none; font-size: .9375rem; font-weight: 560; padding: 8px 2px; color: var(--ink-2); transition: color .2s; }
.hd-nav a:hover { color: var(--ink); }
.hd-r { display: flex; align-items: center; gap: 10px; }
.hd-tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .9375rem; min-height: 42px; min-width: 42px; justify-content: center; }
.hd-tel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hd-tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hd .btn-sm { display: none; }
.hd-burger { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-content: center; gap: 7px; cursor: pointer; padding: 0; }
.hd-burger i { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.hd-burger[aria-expanded="true"] i:first-child { transform: translateY(4.5px) rotate(45deg); }
.hd-burger[aria-expanded="true"] i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
@media (min-width: 480px) { .hd .btn-sm { display: inline-flex; } }
@media (min-width: 1100px) {
  .hd-nav { display: flex; gap: clamp(16px, 2vw, 32px); }
  .hd-burger { display: none; }
}
@media (min-width: 1280px) { .hd-tel span { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }
.mnav { position: fixed; inset: var(--hd) 0 0 0; z-index: 49; background: var(--paper); padding: 24px var(--gut) 32px; overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.mnav[hidden] { display: none; }
.mnav ul { display: grid; }
.mnav li { border-bottom: 1px solid var(--line); }
.mnav li a { display: block; padding: 14px 0; font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); font-weight: 680; font-stretch: 84%; text-decoration: none; letter-spacing: -.01em; }
.mnav-c { display: grid; gap: 6px; font-weight: 560; }
.mnav-c a { text-decoration: none; padding: 6px 0; }
/* v9: somelinkit (header, mobiilivalikko, yhteysosio) */
.so svg { width: 18px; height: 18px; flex: none; }
.so .so-s { fill: none; stroke: currentColor; stroke-width: 1.6; }
.so .so-dot { fill: currentColor; stroke: none; }
.so .so-f { fill: currentColor; }
.hd-so { display: none; align-items: center; margin: 0; }
.hd-so a { display: inline-grid; place-items: center; width: 36px; height: 42px; color: var(--ink-2); transition: color .2s; }
.hd-so a:hover { color: var(--blue-l); }
@media (min-width: 1200px) { .hd-so { display: flex; } }
.mnav-so { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 14px; font-weight: 560; }
.mnav-so a, .ct-so a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 6px 0; }
.ct-so { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; margin-top: 18px; font-size: .9375rem; color: var(--ink-2); }
.ct-so > span:first-child { flex-basis: 100%; }
.ct-so a { color: var(--blue); font-weight: 560; }
.ct-so a:hover { color: var(--brand-h); }
@media (min-width: 1100px) { .mnav { display: none !important; } }

/* hero */
.hero { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding: calc(var(--hd) + clamp(24px, 5vw, 40px)) var(--gut) clamp(40px, 6vw, 72px); display: grid; gap: clamp(28px, 4vw, 40px); }
.hero-txt { display: grid; gap: 0; align-content: center; }
.hero .h1 { margin-bottom: clamp(18px, 2vw, 24px); }
.hero .lead { margin-bottom: 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-marks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 24px; font-size: .8125rem; font-weight: 600; font-stretch: 112%; letter-spacing: .04em; color: var(--ink-2); }
.hero-marks li { display: inline-flex; align-items: center; gap: 8px; }
.hero-marks li::before { content: ""; width: 12px; height: 7px; background: var(--peak) center / contain no-repeat; }
@media (max-width: 479px) {
  .hero .cta .btn { flex: 1 1 100%; }
}
@media (max-width: 699px) {
  .sheet { margin-inline: calc(-1 * var(--gut)); }
}
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 4.6fr) minmax(0, 7.4fr); align-items: center; column-gap: clamp(36px, 4.5vw, 80px); min-height: min(100svh, 1000px); padding-top: calc(var(--hd) + 32px); padding-bottom: 40px; }
  .hero .h1 { font-size: clamp(3.25rem, 1rem + 4.4vw, 6rem); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hero { padding-top: calc(var(--hd) + 16px); }
  .hero .h1 { font-size: 2.5rem; margin-bottom: 12px; }
  .hero .lead { font-size: 1rem; margin-bottom: 18px; max-width: 52ch; }
  .hero-marks { margin-top: 14px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero { grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr); column-gap: 32px; }
  .hero .h1 { font-size: 3.5rem; }
}
@media (min-width: 2600px) { .band { max-width: 2560px; margin-inline: auto; } }
@media (min-width: 2000px) { .ura-pic { max-width: 2000px; margin-inline: auto; } }
@media (min-width: 1024px) and (max-height: 760px) {
  .hero .h1 { font-size: clamp(3rem, 1rem + 3.8vw, 4.75rem); }
  .hero .lead { margin-bottom: 22px; }
  .hero-marks { margin-top: 18px; }
}

/* signature: piirros ja toteutus */
.sheet { position: relative; }
.pd { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background-color: var(--paper-3);
  background-image: linear-gradient(rgba(0, 118, 192, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 118, 192, .07) 1px, transparent 1px);
  background-size: 24px 24px; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
@media (min-width: 700px) { .pd { aspect-ratio: 16 / 9; border: 1px solid var(--line-2); } }
.pd-paper, .pd-photo { position: absolute; inset: 0; }
.pd-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pd-ink path { fill: none; stroke: var(--blue-l); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.pd-ink .pd-seam path { stroke-width: 1; opacity: .55; }
.pd-ink .pd-lead { stroke-width: 1; }
.pd-ink text { fill: var(--blue); font: 620 48px var(--f); font-stretch: 110%; letter-spacing: .02em; transition: opacity .6s var(--ease) 1.5s; }
.js:not(.lite) .pd:not(.drawn) .pd-ink path { stroke-dashoffset: 1; }
.js:not(.lite) .pd:not(.drawn) .pd-ink text { opacity: 0; }
.pd.drawn .pd-ink path { transition: stroke-dashoffset 1.3s var(--ease-io); }
.pd.drawn .pd-out path:nth-child(2) { transition-delay: .12s; } .pd.drawn .pd-out path:nth-child(3) { transition-delay: .22s; }
.pd.drawn .pd-out path:nth-child(n+4) { transition-delay: .4s; transition-duration: .9s; }
.pd.drawn .pd-seam path { transition-duration: 1s; transition-delay: calc(.45s + var(--i, 0) * .045s); }
.pd.drawn .pd-lab path { transition-delay: 1.1s; transition-duration: .7s; }
.pd-photo { clip-path: inset(0 0 0 var(--x)); }
.pd.sweep .pd-photo { transition: clip-path 1.25s var(--ease-io); }
.pd.sweep .pd-handle { transition: left 1.25s var(--ease-io); }
.pd-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.pd-ghost path { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 6 6; }
.pd-tag { position: absolute; top: 12px; z-index: 3; font-size: .6875rem; font-weight: 640; font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; pointer-events: none; transition: opacity .4s var(--ease); }
.pd-tag-l { left: 12px; color: var(--blue); background: rgba(246, 245, 241, .92); }
.pd-tag-r { right: 12px; color: var(--ink); background: rgba(246, 245, 241, .92); }
.pd-handle { position: absolute; top: 0; bottom: 0; left: var(--x); z-index: 4; width: 48px; margin-left: -24px; cursor: ew-resize; display: grid; place-items: center; outline: none; touch-action: pan-y; }
.pd-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--paper-3); box-shadow: 0 0 0 1px rgba(22, 25, 29, .18); }
.pd-knob { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper-3); display: grid; place-items: center; box-shadow: 0 6px 18px -6px rgba(22, 25, 29, .5); transition: transform .3s var(--ease), background-color .25s; }
.pd-knob svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd-handle:hover .pd-knob, .pd.dragging .pd-knob { transform: scale(1.06); background: var(--blue); }
.pd-handle:focus-visible .pd-knob { outline: 2px solid var(--blue); outline-offset: 3px; }
.js:not(.lite) .pd:not(.ready) .pd-handle { opacity: 0; }
.pd-handle { transition: opacity .5s var(--ease); }

.nimio dl { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--line-2); border-top: 1px solid var(--line-2); margin: 0; }
@media (max-width: 699px) { .nimio dl { margin-inline: var(--gut); border-top: 0; } }
.nimio dl > div { padding: 9px 12px 10px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); min-width: 0; }
.nimio dt { font-size: .625rem; font-weight: 640; font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.nimio dd { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.nimio-hint dd { color: var(--blue); font-weight: 560; }
@media (min-width: 700px) { .nimio dl { grid-template-columns: 1.6fr 1fr .7fr 1.4fr; border-top: 0; } }
@media (hover: none) { .nimio-hint dd::after { content: ""; } }

/* intro */
.intro { padding-top: clamp(72px, 10vw, 140px); }
.intro-grid { display: grid; gap: 24px; }
.intro .h2 { max-width: 18ch; }
.intro-body { display: grid; gap: 16px; color: var(--ink-2); max-width: 62ch; }
.intro-body p:first-child { color: var(--ink); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); }
@media (min-width: 1024px) { .intro-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; } }
.band { margin-top: clamp(48px, 7vw, 96px); }
.band img { width: 100%; height: auto; aspect-ratio: 1792 / 1920; object-fit: cover; }
@media (min-width: 700px) { .band img { aspect-ratio: 2560 / 826; max-height: 82vh; } }
.band figcaption { padding-top: 10px; font-size: .8125rem; color: var(--ink-3); }

/* palvelut */
.svc { padding: clamp(72px, 10vw, 140px) 0; }
.svc-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 64px); }
.svc-head p { color: var(--ink-2); max-width: 56ch; }
@media (min-width: 1024px) { .svc-head { margin-bottom: 48px; } .svc-head p { max-width: 44ch; } }
.svc-list { counter-reset: s; }
.svc-i { border-top: 1px solid var(--line-2); padding: 22px 0 28px; display: grid; gap: 10px; }
.svc-i:last-child { border-bottom: 1px solid var(--line-2); }
.svc-i h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.375rem); line-height: 1.05; font-weight: 700; font-stretch: 82%; letter-spacing: -.02em; }
.svc-i p { color: var(--ink-2); max-width: 52ch; }
.svc-m { margin-bottom: 8px; }
.svc-v { display: block; height: auto; background: var(--paper-3); }
.svc-m.svc-m-tall video { aspect-ratio: 4 / 5; }
.svc-m.svc-m-sq img { aspect-ratio: 1 / 1; }
.svc-new { font-size: .75rem; font-weight: 620; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-l); }
.svc-m img, .svc-m video, .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.ph { display: grid; place-content: center; justify-items: center; gap: 12px; background-color: var(--paper-3); border: 1px dashed var(--line-2); color: var(--ink-3);
  background-image: linear-gradient(rgba(0, 118, 192, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 118, 192, .06) 1px, transparent 1px); background-size: 24px 24px; }
.ph svg { width: 96px; height: 72px; fill: none; stroke: var(--blue-l); stroke-width: 1.2; }
.ph span { font-size: .75rem; font-weight: 620; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; }
.svc-stage { display: none; }
@media (min-width: 1024px) {
  .svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
  .svc-m { display: none; }
  .svc-i { padding: 26px 0 30px; transition: opacity .35s var(--ease); }
  .svc-i h3 { transition: color .3s var(--ease); }
  .js .svc-list:not(.hovering) .svc-i:not(.on) h3, .js .svc-list.hovering .svc-i:not(.on) h3 { color: var(--ink-3); }
  .svc-i.on h3 { color: var(--ink); }
  .svc-i { position: relative; }
  .svc-stage { display: block; position: sticky; top: calc(var(--hd) + 32px); margin-top: clamp(96px, 12vw, 180px); }
  .svc-frame { position: relative; aspect-ratio: 1 / 1; max-height: calc(100vh - var(--hd) - 64px); width: 100%; overflow: hidden; background: var(--paper-3); }
  .svc-f { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
  .svc-f.on { opacity: 1; }
  .svc-f picture { height: 100%; }
  .svc-f:nth-child(1) img { object-position: 50% 80%; } .svc-f:nth-child(2) img { object-position: 50% 30%; } .svc-f:nth-child(3) img { object-position: 30% 50%; }
  .svc-f:nth-child(1) video { object-position: 50% 50%; }
  .svc-f img, .svc-f video, .svc-f .ph { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
}

/* kohteet (bitumi) */
.refs { background: var(--bit); color: var(--on-bit); padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 9vw, 120px); }
.refs-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.refs-head p { color: var(--on-bit-2); max-width: 56ch; }
@media (min-width: 1024px) { .refs-head .h2 { max-width: 20ch; } .refs-head p { max-width: 50ch; } }
.gal-wrap { max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; }
.gal { --gh: clamp(220px, 58vw, 300px); display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 var(--gut) 18px; scroll-padding-inline: var(--gut); scrollbar-width: thin; scrollbar-color: rgba(238, 236, 231, .3) transparent; -webkit-overflow-scrolling: touch; }
@media (min-width: 700px) { .gal { --gh: clamp(280px, 30vw, 460px); gap: 16px; } }
.g { flex: none; scroll-snap-align: start; }
.g img { height: var(--gh); width: auto; object-fit: cover; border-radius: 2px; background: var(--bit-2); }
.g-w img { aspect-ratio: 16 / 9; }
.g-m img { aspect-ratio: 4 / 3; }
.g-t img { aspect-ratio: 4 / 4.5; }
.g p { margin-top: 10px; font-size: .875rem; color: var(--on-bit-2); }
.g p b { color: var(--on-bit); font-weight: 640; margin-right: 6px; }
.gal-nav { display: flex; justify-content: flex-end; gap: 8px; padding: 6px var(--gut) 0; }
.gal-b { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(238, 236, 231, .3); background: transparent; color: var(--on-bit); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.gal-b:hover { border-color: var(--on-bit); }
.gal-b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.gal-b:disabled { opacity: .35; cursor: default; }

.ledger { margin-top: clamp(64px, 8vw, 112px); }
.ledger-head { display: grid; gap: 8px; margin-bottom: 24px; }
.ledger-head p { color: var(--on-bit-2); font-size: .9375rem; }
.yrs { --bh: clamp(72px, 11vw, 132px); display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; border-bottom: 1px solid var(--on-bit-line); }
.yr { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; padding: 0 0 10px; background: transparent; border: 0; cursor: pointer; color: var(--on-bit-2); min-width: 0; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.yr-bar { display: block; flex: none; width: 52%; height: calc(var(--bh) * var(--h)); margin-bottom: 10px; background: rgba(238, 236, 231, .22); transition: background-color .3s var(--ease); }
.yr-y { display: block; font-size: .6875rem; line-height: 1.2; font-weight: 640; font-stretch: 78%; letter-spacing: .01em; color: var(--on-bit); }
.yr-n { display: block; font-size: .6875rem; line-height: 1.3; color: var(--on-bit-2); }
@media (hover: hover) { .yr:hover .yr-bar { background: rgba(238, 236, 231, .4); } }
.yr[aria-selected="true"] .yr-bar { background: var(--blue-d); }
.yr[aria-selected="true"] .yr-y { color: var(--blue-d); }
.yr[aria-selected="true"] .yr-n { color: var(--on-bit); }
.yr[aria-selected="true"]::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -1px; height: 2px; background: var(--blue-d); }
.yr:focus-visible { outline-color: var(--blue-d); outline-offset: -2px; }
@media (min-width: 700px) { .yr-y { font-size: .875rem; } .yr-n { font-size: .8125rem; } .yrs { gap: 8px; } }
.yp { padding-top: 28px; }
.yp-h { font-size: .9375rem; color: var(--on-bit-2); margin-bottom: 14px; }
.yp-h b { color: var(--on-bit); font-size: 1.375rem; font-stretch: 86%; font-weight: 700; margin-right: 4px; }
.yp-l { columns: 1; column-gap: 40px; counter-reset: k; }
.yp-l li { break-inside: avoid; padding: 9px 0 9px 34px; border-top: 1px solid var(--on-bit-line); position: relative; font-size: .9375rem; line-height: 1.45; }
.yp-l li::before { counter-increment: k; content: counter(k, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-size: .75rem; color: var(--on-bit-2); }
@media (min-width: 700px) { .yp-l { columns: 2; } }
@media (min-width: 1100px) { .yp-l { columns: 3; } }
.ledger-note { margin-top: 24px; font-size: .8125rem; color: var(--on-bit-2); }

/* työtapa */
.how { padding: clamp(72px, 10vw, 140px) 0; }
.how-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.how-head p { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 1024px) { .how-head { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; } }
.steps { position: relative; display: grid; gap: 0; padding-left: 28px; }
.steps::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--blue-l); transform-origin: top; }
.st { position: relative; padding: 0 0 28px; display: grid; gap: 6px; }
.st::before { content: ""; position: absolute; left: -27px; top: 7px; width: 11px; height: 11px; background: var(--paper); border: 1.5px solid var(--blue-l); transform: rotate(45deg); }
.st-n { font-size: .75rem; font-weight: 640; font-stretch: 118%; letter-spacing: .1em; color: var(--blue); }
.st h3 { font-size: 1.25rem; font-weight: 680; font-stretch: 88%; line-height: 1.2; }
.st p { color: var(--ink-2); font-size: 1rem; max-width: 40ch; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; padding-left: 0; padding-top: 36px; }
  .steps::before { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 1px; transform-origin: left; }
  .js:not(.lite):not(.rv-all) .steps:not(.in)::before { transform: scaleX(0); }
  .steps::before { transition: transform 1.4s var(--ease-io); }
  .st::before { left: 0; top: -36px; }
  .st { padding: 0; }
}
@media (max-width: 899px) {
  .js:not(.lite):not(.rv-all) .steps:not(.in)::before { transform: scaleY(0); }
  .steps::before { transition: transform 1.4s var(--ease-io); }
}

/* laatu */
.cred { background: var(--paper-2); padding: clamp(72px, 10vw, 140px) 0; }
.cred-grid { display: grid; gap: clamp(32px, 4vw, 56px); }
.cred-head { display: grid; gap: 18px; align-content: start; }
.cred-head p { color: var(--ink-2); max-width: 44ch; }
@media (min-width: 1024px) { .cred-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: calc(72px + 2rem); } }
.rev { width: 100%; border-collapse: collapse; font-size: 1rem; }
.rev thead th { text-align: left; font-size: .6875rem; font-weight: 640; font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); }
.rev td, .rev tbody th { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; text-align: left; }
.rev td:first-child { color: var(--ink-2); white-space: nowrap; width: 7.5em; }
.rev tbody th { font-weight: 680; font-stretch: 90%; font-size: 1.125rem; line-height: 1.25; width: 30%; }
.rev td:last-child { color: var(--ink-2); padding-right: 0; }
@media (max-width: 699px) {
  .rev thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rev, .rev tbody, .rev tr, .rev td, .rev tbody th { display: block; width: auto; }
  .rev tr { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .rev td, .rev tbody th { padding: 0; border: 0; }
  .rev td:first-child { width: auto; font-size: .8125rem; }
  .rev tbody th { margin: 2px 0 4px; }
}
.mats { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 10px; }
.mats p { font-size: clamp(1rem, .95rem + .35vw, 1.25rem); font-weight: 560; font-stretch: 92%; color: var(--ink); line-height: 1.6; max-width: 70ch; }

/* yritys */
.co { padding: clamp(72px, 10vw, 140px) 0; }
.co-grid { display: grid; gap: clamp(36px, 5vw, 64px); }
.co-txt { display: grid; gap: 18px; align-content: start; }
.co-txt > p { color: var(--ink-2); max-width: 58ch; }
.co-txt > p:first-of-type { color: var(--ink); }
.vals { display: grid; gap: 0; margin-top: 16px; border-top: 1px solid var(--line-2); }
.vals > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.vals dt { font-weight: 700; font-stretch: 88%; font-size: 1.125rem; }
.vals dd { color: var(--ink-2); font-size: 1rem; }
@media (min-width: 700px) { .vals > div { grid-template-columns: 11rem 1fr; gap: 24px; } }
@media (max-width: 899px) { .co-pic { max-width: 560px; } }
.co-pic img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 2px; }
.co-pic figcaption { margin-top: 10px; font-size: .8125rem; color: var(--ink-3); }
@media (min-width: 900px) {
  .co-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); column-gap: clamp(40px, 6vw, 112px); }
    }

/* rekry */
.ura { background: var(--bit); color: var(--on-bit); padding-bottom: clamp(72px, 10vw, 140px); }
.ura-pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 82% 0%; }
@media (min-width: 700px) { .ura-pic img { aspect-ratio: 2000 / 924; max-height: 78vh; } }
.ura-grid { display: grid; gap: clamp(36px, 5vw, 64px); padding-top: clamp(48px, 7vw, 96px); }
.ura-txt { display: grid; gap: 20px; align-content: start; }
.ura-txt p { color: var(--on-bit-2); max-width: 52ch; }
.ura .cta { margin-top: 8px; }
.ura .h4 { color: var(--on-bit-2); margin-bottom: 10px; }
.ura-lists { display: grid; gap: 8px; }
.roles, .terms { display: grid; border-top: 1px solid rgba(238, 236, 231, .5); margin-bottom: 28px; }
.roles li, .terms li { padding: 11px 0; border-bottom: 1px solid var(--on-bit-line); }
.roles li { font-weight: 600; font-stretch: 92%; font-size: 1.0625rem; }
.terms li { color: var(--on-bit-2); font-size: 1rem; }
@media (min-width: 700px) { .roles { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
@media (min-width: 1024px) { .ura-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } }
@media (max-width: 479px) { .ura .cta .btn { flex: 1 1 100%; } }

/* yhteys */
/* v8: suunnittelu, rakennetyyppipiirrokset piirustusarkilla */
.sun { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0; }
.rt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
@media (min-width: 900px) { .rt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.rt a { display: block; color: inherit; text-decoration: none; }
.rt img { width: 100%; aspect-ratio: 1514 / 2120; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 18px 40px -30px rgba(22, 25, 29, .35); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .rt a:hover img { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(22, 25, 29, .45); } }
.rt-cap { display: grid; gap: 2px; margin-top: 12px; font-size: .875rem; color: var(--ink-2); }
.rt-cap b { font-family: var(--fd); font-size: 1.0625rem; line-height: 1.2; font-weight: 700; color: var(--ink); }
.rt-n { font-size: .6875rem; font-weight: 640; font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.rt-cap > span:last-child { color: var(--blue); font-weight: 560; }
.ct { padding: clamp(72px, 10vw, 140px) 0; }
.ct-grid { display: grid; gap: clamp(40px, 5vw, 72px); }
.ct-l { display: grid; gap: 18px; align-content: start; }
.ct-l > p { color: var(--ink-2); max-width: 44ch; }
.ppl { display: grid; margin-top: 12px; border-top: 1px solid var(--ink); }
.ppl li { display: grid; grid-template-columns: 1fr; gap: 0 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.ppl b { font-weight: 680; font-stretch: 90%; font-size: 1.125rem; }
.ppl span { color: var(--ink-2); font-size: .9375rem; margin-bottom: 6px; }
.ppl a { color: var(--blue); text-decoration: none; padding: 3px 0; width: fit-content; border-bottom: 1px solid transparent; }
.ppl a:hover { border-bottom-color: currentColor; }
@media (min-width: 560px) { .ppl li { grid-template-columns: 1fr 1fr; } .ppl b, .ppl span { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .ct-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 80px; } }
.form { background: var(--paper-3); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.form-demo-unused { font-size: .875rem; color: var(--ink-2); padding: 10px 12px; border-left: 1px solid var(--blue-l); background: rgba(0, 118, 192, .06); }
.f2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .f2 { grid-template-columns: 1fr 1fr; } }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: .875rem; font-weight: 600; }
.fld i { font-style: normal; font-weight: 400; color: var(--ink-3); }
.fld input, .fld textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 12px; min-height: 48px; transition: border-color .2s; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus, .fld textarea:focus { border-color: var(--blue); outline: 2px solid rgba(11, 79, 140, .25); outline-offset: 0; }
.fld input[aria-invalid="true"] { border-color: #A3261B; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { font-size: .875rem; font-weight: 600; margin-bottom: 8px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 4px; font-size: .9375rem; background: #fff; transition: background-color .2s, color .2s, border-color .2s; }
.chips input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-err { color: #A3261B; font-size: .9375rem; font-weight: 560; }
.form .btn { justify-self: start; }
@media (max-width: 479px) { .form .btn { justify-self: stretch; } }

/* footer */
.ft { background: var(--ink); color: var(--on-bit); padding: clamp(56px, 8vw, 96px) 0 28px; }
.ft-top { display: grid; gap: 16px; padding-bottom: 36px; border-bottom: 1px solid var(--on-bit-line); }
.ft-top img { height: 40px; width: auto; }
.ft-say { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); font-weight: 680; font-stretch: 86%; line-height: 1.15; max-width: 24ch; }
.ft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; padding: 36px 0; }
@media (min-width: 900px) { .ft-grid { grid-template-columns: repeat(4, 1fr); } .ft-top { grid-template-columns: auto 1fr; align-items: center; gap: 48px; } .ft-say { justify-self: end; text-align: right; } }
.ft-col h3 { font-size: .6875rem; font-weight: 640; font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase; color: var(--on-bit-2); margin-bottom: 10px; }
.ft-col p { font-size: .9375rem; line-height: 1.7; }
.ft-col p + p { margin-top: 8px; color: var(--on-bit-2); }
.ft-col a { text-decoration: none; display: inline-block; padding: 3px 0; }
.ft-col a:hover { text-decoration: underline; }
.ft-low { display: grid; margin: 0; border: 1px solid rgba(238, 236, 231, .28); font-size: .8125rem; color: var(--on-bit-2); }
.ft-low > div { padding: 8px 12px 10px; border-bottom: 1px solid rgba(238, 236, 231, .28); }
.ft-low > div:last-child { border-bottom: 0; }
.ft-low dt { font-size: .625rem; font-weight: 640; font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-d); }
.ft-low dd { margin: 2px 0 0; color: var(--on-bit); }
.ft-low a { color: var(--on-bit); }
@media (min-width: 900px) { .ft-low { grid-template-columns: 1fr 1fr; } .ft-low > div { border-bottom: 0; border-right: 1px solid rgba(238, 236, 231, .28); } .ft-low > div:last-child { border-right: 0; } }

/* paljastus: alkutila jo ennen JS:ää (.js asetetaan <head>:ssä), ei välähdystä */
.js:not(.lite):not(.rv-all) .rv:not(.in) { opacity: 0; transform: translateY(18px); }
.js .rv { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }


/* reduced motion */
.lite *, .lite *::before, .lite *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
.gal:focus-visible { outline-color: var(--blue-d); outline-offset: -2px; }
.svc-note { font-size: .8125rem; color: var(--ink-3); }

/* v3: heron piirustusarkki-tausta (akselit, mittaketju, viivoitus) */
.hero-shell { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(0, 118, 192, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 118, 192, .055) 1px, transparent 1px),
    linear-gradient(rgba(0, 118, 192, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 118, 192, .035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: center top; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 95% at 62% 48%, rgba(238, 236, 231, 0) 30%, rgba(238, 236, 231, .9) 88%); }
.hero { position: relative; }
.pd { box-shadow: 0 30px 60px -36px rgba(22, 25, 29, .35); }

/* v3: työtavan kuvat (piirustuksen detaljiviitteet) */
.how-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(48px, 6vw, 80px); }
.hp-w { grid-column: 1 / -1; }
.hp img { width: 100%; object-fit: cover; border-radius: 2px; }
.hp-t img { aspect-ratio: 4 / 5; }
.hp-w img { aspect-ratio: 16 / 9; }
.hp figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .8125rem; color: var(--ink-2); }
.dt-b { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--blue-l); color: var(--blue); font-size: .6875rem; font-weight: 640; }
@media (min-width: 900px) {
  .how-pics { grid-template-columns: 1fr 1fr 2fr; gap: 16px; align-items: start; }
  .hp-w { grid-column: auto; }
  .hp-w img { aspect-ratio: 8 / 5; }
}

/* v3: pätevyysmerkit */
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.badges img { height: 48px; width: auto; border-radius: 3px; box-shadow: 0 1px 0 rgba(22, 25, 29, .08); }
@media (min-width: 700px) { .badges img { height: 56px; } }

/* v3: oma lause */
.quote { margin: 12px 0 4px; padding: 4px 0 4px 20px; border-left: 1px solid var(--blue-l); }
.quote p { font-family: var(--fd); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.15; letter-spacing: -.015em; color: var(--ink); max-width: 26ch; }
.quote footer { margin-top: 10px; font-size: .8125rem; color: var(--ink-3); }
.terms b { color: var(--on-bit); font-weight: 640; }

/* v3: yhteyskuva */
.ct-pic { margin-top: 8px; }
.ct-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; border-radius: 2px; }
.ct-pic figcaption { margin-top: 10px; font-size: .8125rem; color: var(--ink-3); }
@media (max-width: 1023px) { .ct-pic { max-width: 560px; } }

/* v4: Trookin logon kattokulma brändielementtinä (ei kaikkialla) */
.peak { display: inline-block; width: 22px; height: 13px; background: var(--peak) center / contain no-repeat; }
/* aktiivinen palvelu: kattokulma otsikon eteen (desktop, rivi jota sticky-kuva seuraa) */
@media (min-width: 1024px) {
  .svc-i h3::before { content: ""; display: inline-block; vertical-align: .14em; width: 0; height: .32em; margin-right: 0; background: var(--peak) left center / contain no-repeat; transition: width .45s var(--ease), margin-right .45s var(--ease); }
  .svc-i.on h3::before { width: .55em; margin-right: .28em; }
}
/* palvelulinkki: teksti + nuoli */
.svc-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-top: 2px; padding: 6px 0; color: var(--blue); font-weight: 620; font-size: .9375rem; text-decoration: none; border-bottom: 1px solid rgba(11, 79, 140, .28); transition: border-color .25s var(--ease), color .25s var(--ease); }
.svc-link:hover { border-bottom-color: var(--blue); color: var(--brand-h); }
.svc-link:hover .ar { transform: translateX(4px); }
/* rekryn roolit: kattokulma luettelomerkkinä */
.roles li { position: relative; padding-left: 22px; }
.roles li::before { content: ""; position: absolute; left: 0; top: 17px; width: 12px; height: 7px; background: var(--peak-l) center / contain no-repeat; }
/* navigaation hover: pieni kattokulma linkin ylle */
@media (hover: hover) and (min-width: 1100px) {
  .hd-nav a { position: relative; }
  .hd-nav a::after { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 7px; margin-left: -6px; background: var(--peak) center / contain no-repeat; opacity: 0; transform: translateY(4px); transition: opacity .25s var(--ease), transform .35s var(--ease); }
  .hd-nav a:hover::after { opacity: 1; transform: none; }
}
/* galleria: hiirellä raahattava, kosketus natiivisti (x-lukitus selaimelta, vauhti + kohdistus) */
.gal img { -webkit-user-drag: none; user-select: none; }
@media (hover: hover) and (pointer: fine) { .gal { cursor: grab; } .gal.dragging { cursor: grabbing; scroll-snap-type: none; } .gal.dragging * { pointer-events: none; } }

/* v4: yhteysosio. Lomake pysyy luonnollisen korkuisena; vasen palsta (otsikko, ihmiset 2 palstassa, tiimikuva) venyy
   samaan korkeuteen niin, että vain kuva kasvaa tai kutistuu. Ei tyhjää aukkoa kummankaan alle. */
@media (min-width: 1024px) {
  .ct-grid { align-items: stretch; }
  .ct-grid > .form { align-self: start; }
  .ct-l { display: flex; flex-direction: column; gap: 18px; }
  .ct-l > .h2, .ct-l > p { margin: 0; }
  .ppl { grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 6px; }
  .ppl li { grid-template-columns: 1fr; }
  .ct-pic { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 220px; max-width: none; margin-top: 4px; }
  .ct-pic picture { position: relative; flex: 1 1 auto; min-height: 180px; }
  .ct-pic img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 50% 42%; }
}
@media (min-width: 1024px) {
  .ppl li { padding: 12px 0; }
  .ppl span { margin-bottom: 2px; }
  .ppl a { padding: 2px 0; }
  .ct-pic { min-height: 170px; }
  .ct-pic picture { min-height: 140px; }
  .form .fld textarea { min-height: 150px; }
}
/* v4: yhteysosio, otsikko koko leveydelle; vasemmalla tiimikuva (täyttää) + ihmiset, oikealla lomake luonnollisessa korkeudessa */
.ct-head { display: grid; gap: 18px; }
.ct-head p { color: var(--ink-2); max-width: 44ch; }
@media (min-width: 1024px) {
  .ct-grid { row-gap: clamp(32px, 3.5vw, 48px); }
  .ct-head { grid-column: 1 / -1; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: 80px; align-items: end; }
  .ct-l { gap: 0; }
  .ct-pic { min-height: 280px; margin-top: 0; }
  .ct-pic picture { min-height: 220px; }
  .ppl { margin-top: 24px; }
}
@media (max-width: 1023px) { .ct-grid > .form { order: 2; } .ct-grid > .ct-l { order: 3; } }
/* v5: kuvapuolen korkeus = kehyksen korkeus (picture ei saa jäädä kuvan omaan kuvasuhteeseen) */
.pd-photo picture { height: 100%; }
/* v5: nimiö erillisenä laatikkona liukusäätimen alla */
.sheet .nimio { margin-top: 12px; }
.sheet .nimio dl { border-top: 1px solid var(--line-2); }
@media (min-width: 700px) { .sheet .nimio { margin-top: 14px; } }
/* v5: yritysosio mobiilissa kuva ensin */
@media (max-width: 899px) { .co-pic { order: -1; } }
