@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/heading.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/text.woff2') format('woff2'); }

/* Two inks on uncoated stock: the logo's green and amber carry the type and the colour blocks,
   the photographs keep their own colour, and the logo's brackets are the crop marks. */
:root {
  --vihrea: #013413;
  --vihrea-2: #0B4423;
  --syva: #00220C;
  --salama: #F9AA21;
  --lehti: #3E7A55;
  --paperi: #F2F0E9;
  --valko: #FBFAF6;
  --muste: #0B1A10;
  --harmaa: #4F5A51;
  --tulossa: #5F665D;
  --viiva: #D6D2C5;
  --on-green: #FFFFFF;
  --on-green-2: #CFDCD3;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --text: 'Barlow', system-ui, sans-serif;
  --max: min(92rem, 100vw - 2rem);
  --sec: clamp(4.5rem, 10vw, 9rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --mh: 4.5rem;
}
@media (min-width: 700px) { :root { --max: min(92rem, 100vw - 5rem); } }
@media (min-width: 1100px) { :root { --mh: 5.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--lehti) var(--paperi); }
body { margin: 0; background: var(--paperi); color: var(--muste); font: 400 1.0625rem/1.6 var(--text); caret-color: var(--vihrea); }
@media (min-width: 1100px) { body { font-size: 1.125rem; } }
::selection { background: var(--salama); color: var(--vihrea); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--vihrea); outline-offset: 3px; }
.footer :focus-visible { outline-color: var(--salama); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1; letter-spacing: -.015em; margin: 0; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
h1 { font-size: clamp(3rem, 7.4vw, 6rem); line-height: .94; letter-spacing: -.025em; }
h2 { font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: .96; letter-spacing: -.02em; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
p { margin: 0; text-wrap: pretty; hyphens: auto; }
.wrap { width: var(--max); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; background: var(--vihrea); color: #fff; padding: .75rem 1rem; }
.i { flex: none; }
.num, .big-tel, .call-n, .masthead-tel-n, .footer-tel { font-variant-numeric: tabular-nums; }

/* Photographs: their own colour, one gentle grade so phone shots from different jobs sit together */
.duo { position: relative; display: block; overflow: hidden; background: var(--vihrea); }
.duo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.06); }

/* Crop marks: the logo's two L-brackets at opposite corners */
.crop { --cc: var(--paperi); --cw: 6px; --cl: clamp(1.75rem, 3vw, 2.75rem); --ci: clamp(.75rem, 1.5vw, 1.25rem); position: relative; }
.crop::before { content: ""; position: absolute; inset: var(--ci); z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--cc), var(--cc)) 0 0 / var(--cl) var(--cw) no-repeat,
    linear-gradient(var(--cc), var(--cc)) 0 0 / var(--cw) var(--cl) no-repeat,
    linear-gradient(var(--cc), var(--cc)) 100% 100% / var(--cl) var(--cw) no-repeat,
    linear-gradient(var(--cc), var(--cc)) 100% 100% / var(--cw) var(--cl) no-repeat; }

/* Buttons: square-cut like a printed label; the fill sweeps up on hover */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; }
.btn { position: relative; display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; min-height: 3.5rem; padding: .8rem 1.5rem; overflow: hidden; isolation: isolate;
  font: 700 1.3rem/1 var(--head); letter-spacing: .01em; text-decoration: none; border: 2px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease); }
.btn::before { content: ""; position: absolute; inset: -2px; z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: translateY(0); }
.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn--amber { background: var(--salama); color: var(--vihrea); }
.btn--amber::before { background: var(--vihrea); }
.btn--amber:hover { color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost::before { background: var(--salama); }
.btn--ghost:hover { color: var(--vihrea); border-color: var(--salama); }
.btn--sm { min-height: 2.75rem; padding: .55rem 1rem; font-size: 1.1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font: 700 1.3rem/1 var(--head); color: var(--vihrea); text-decoration: none; padding-block: .55rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }
.link-arrow .i { transition: transform .3s var(--ease); }
.link-arrow:hover .i { transform: translateX(5px); }

/* The call: paper tile, amber spark */
.call { display: inline-flex; align-items: center; gap: .8rem; min-height: 3.5rem; padding: .45rem 1.25rem .45rem .45rem; background: var(--paperi); color: var(--vihrea); text-decoration: none;
  transition: background-color .3s var(--ease); }
.call:hover { background: #fff; }
.call-i { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--salama); color: var(--vihrea); flex: none; transition: transform .4s var(--ease); }
.call:hover .call-i { transform: rotate(-12deg); }
.call-t { display: grid; }
.call-l { font-size: .8rem; line-height: 1.25; color: var(--harmaa); }
.call-n { font: 700 1.45rem/1.05 var(--head); white-space: nowrap; }

/* Progress: an amber line that grows with the page */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--salama); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@supports (animation-timeline: scroll()) { .progress span { animation: grow linear both; animation-timeline: scroll(root); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Header: one height always; only a rule and a shadow arrive with scrolling */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--paperi); border-bottom: 1px solid var(--viiva); transition: box-shadow .3s; }
.masthead.is-scrolled { box-shadow: 0 12px 30px -26px rgba(1,52,19,.6); }
.masthead-inner { display: flex; align-items: center; gap: .75rem; min-height: var(--mh); }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: 96px; height: auto; }
.masthead-tel { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem .8rem; background: var(--salama); color: var(--vihrea); text-decoration: none; white-space: nowrap; }
.masthead-tel-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.masthead-cta { display: none; }
@media (min-width: 700px) {
  .masthead-tel { background: none; padding: .25rem .5rem; }
  .masthead-tel .i { color: var(--lehti); }
  .masthead-tel-t { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: grid; }
  .masthead-tel-l { font-size: .75rem; color: var(--harmaa); line-height: 1.2; }
  .masthead-tel-n { font: 700 1.3rem/1.05 var(--head); }
  .masthead-cta { display: inline-flex; }
}
.menu-btn { display: inline-flex; margin-left: .25rem; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid var(--muste);
  background: transparent; color: var(--vihrea); font: 700 1.05rem/1 var(--head); cursor: pointer; order: 3; }
.menu-bars { position: relative; width: 16px; height: 2px; background: currentColor; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.menu-bars::before { top: -5px; } .menu-bars::after { top: 5px; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; min-height: 2.75rem; font: 700 1.2rem/1 var(--head); text-decoration: none; }
.nav a { color: var(--vihrea); background: linear-gradient(var(--salama), var(--salama)) 0 calc(50% + .85em) / 0 3px no-repeat; transition: background-size .4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 3px; }
.masthead.is-open .nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paperi); border-bottom: 1px solid var(--viiva);
  padding: .5rem 1rem 1rem; box-shadow: 0 18px 30px -18px rgba(1,52,19,.35); }
.masthead.is-open .nav li + li { border-top: 1px solid var(--viiva); }
@media (max-width: 419px) { .brand img { width: 84px; } }
@media (min-width: 1100px) {
  .masthead-inner { gap: 2rem; }
  .brand img { width: 120px; }
  .menu-btn { display: none; }
  .nav { display: block; }
  .nav ul { display: flex; gap: 1.6rem; align-items: center; }
}
@media (min-width: 1100px) and (max-width: 1499px) {
  .masthead-inner { gap: 1.25rem; }
  .nav ul { gap: 1.1rem; }
  .masthead-tel-l { display: none; }
}

/* Hero: paper, the words on the page's left edge. The photograph is cut to the slant of the
   logo's bolt, a tall parallelogram at the right with a thin amber bolt beside it (chosen in an
   impeccable live session, 2026-10-28). On a phone the bolt lies down as a band under the words.
   .hero-in-grid / .hero-frame serve the plain heroes (Yhteystiedot, 404). */
.hero { --pt: 3.5rem; --pb: 2.5rem; --fo: .7rem; --sl: 3.375rem; position: relative; isolation: isolate; overflow: hidden; display: block; background: var(--paperi); color: var(--muste);
  border-bottom: 1px solid var(--viiva); }
.hero-wrap { width: var(--max); margin-inline: auto; display: grid; gap: 2.25rem; padding-top: 3rem; }
.hero-text { display: grid; gap: 1.5rem; justify-items: start; }
.hero h1 { color: var(--vihrea); font-size: clamp(2.9rem, 12.5vw, 6.75rem); max-width: 12ch; }
.lede { font-size: 1.15rem; max-width: 40ch; color: var(--harmaa); hyphens: manual; }
.hero .call { background: #fff; box-shadow: inset 0 0 0 1px var(--viiva); }
.hero .call:hover { background: var(--valko); }
.hero-photo { position: relative; height: 9rem; margin-right: calc((100vw - var(--max)) / -2); }
.hero-img { position: absolute; inset: 0 0 0 2.5rem; margin: 0; overflow: hidden; background: var(--vihrea);
  clip-path: polygon(var(--sl) 0, 100% 0, 100% 100%, 0 100%); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: saturate(.9) contrast(1.04); }
.hero-amber { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--sl) + 1.6rem); background: var(--salama);
  clip-path: polygon(var(--sl) 0, calc(var(--sl) + 1.6rem) 0, 1.6rem 100%, 0 100%); }
.hero-in-grid { position: relative; justify-self: start; display: grid; justify-items: start; gap: 1.5rem;
  width: fit-content; max-width: var(--max); margin: 5.5rem 0 4rem calc((100vw - var(--max)) / 2); }
.hero-frame { --cc: var(--vihrea); --cw: clamp(6px, .7vw, 10px); --cl: clamp(2.25rem, 5vw, 4.5rem); position: absolute; pointer-events: none;
  inset: calc(var(--fo) * -1.6) calc(var(--fo) * -1) calc(var(--fo) * -1.6) calc(var(--fo) * -1); }
.hero-frame::before { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(var(--cc), var(--cc)) 0 0 / var(--cl) var(--cw) no-repeat,
    linear-gradient(var(--cc), var(--cc)) 0 0 / var(--cw) var(--cl) no-repeat; }
.hero-side { display: grid; justify-items: start; gap: 2rem; }
.hero--plain h1 { max-width: 18ch; }
.hero--plain .big-tel--light a { color: var(--vihrea); }
.hero--plain .btn--ghost { color: var(--vihrea); border-color: var(--vihrea); }
@media (min-width: 700px) { .hero { --fo: 1.5rem; } }
@media (min-width: 1100px) {
  .hero { --sl: 7.5rem; }
  .hero:not(.hero--plain) { display: grid; min-height: clamp(36rem, calc(100svh - var(--mh)), 54rem); }
  .hero--page:not(.hero--plain) { min-height: clamp(32rem, calc(80svh - var(--mh)), 46rem); }
  .hero-wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; column-gap: 3rem; padding: 0; }
  .hero-text { align-self: center; padding-block: 5rem; }
  .hero-photo { height: auto; width: calc(24rem + var(--sl) + 3rem); margin-right: 0; }
  .hero-img { inset: 0 0 0 3rem; clip-path: polygon(var(--sl) 0, 100% 0, calc(100% - var(--sl)) 100%, 0 100%); }
  /* Same slope as the photo's edge: the bar spans 56% of the height, so it runs 56% of the slant,
     and sits a constant 1.25rem off the photo. */
  .hero-amber { top: 22%; bottom: 22%; left: calc(var(--sl) * .22); width: calc(var(--sl) * .56 + 1.75rem);
    clip-path: polygon(calc(var(--sl) * .56) 0, calc(var(--sl) * .56 + 1.75rem) 0, 1.75rem 100%, 0 100%); }
  .hero h1 { font-size: clamp(4.75rem, 6.2vw, 6.5rem); }
  .hero--page h1 { font-size: clamp(4.25rem, 5.2vw, 5.5rem); max-width: 13ch; }
  .lede { font-size: 1.3rem; }
  .hero--plain .hero-in-grid { margin-top: 7rem; margin-bottom: 6rem; }
}

/* One 12-column grid under every section from here down, so headings, sentences and the
   service rows share their left edges and their second column. */
.g12 { display: grid; column-gap: 1.5rem; }
@media (min-width: 1100px) { .g12 { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* Section heads: heading left, its sentence and link in the second column */
.section-head { row-gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head-side { display: grid; gap: 1rem; justify-items: start; }
.section-head-side p { color: var(--harmaa); max-width: 44ch; font-size: 1.15rem; }
@media (min-width: 1100px) {
  .section-head { align-items: end; }
  .section-head > h2 { grid-column: 1 / span 7; }
  .section-head-side { grid-column: 8 / span 5; }
}

/* Intro: their opening paragraph at statement size, inked in as it scrolls past; the two
   paragraphs that follow sit on a rule, in the same two columns as the service list below */
.intro { padding-block: var(--sec) calc(var(--sec) * .6); }
.statement { font-size: clamp(1.6rem, 3.1vw, 2.85rem); line-height: 1.2; letter-spacing: -.012em; max-width: 34ch; hyphens: manual; }
.intro-more { margin-top: clamp(2.5rem, 5vw, 4.5rem); padding-top: 1.75rem; border-top: 2px solid var(--muste); row-gap: 1.25rem; color: var(--harmaa); font-size: 1.15rem; }
.intro-more p { max-width: 52ch; }
.intro--page { padding-bottom: 0; }
.intro-lead { margin-top: clamp(2.5rem, 5vw, 4rem); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; color: var(--vihrea); max-width: 22ch; }
@media (min-width: 1100px) {
  .statement { grid-column: 1 / span 11; }
  .intro-more { grid-column: 1 / -1; grid-template-columns: subgrid; }
  .intro-more p:nth-child(odd) { grid-column: 1 / span 6; }
  .intro-more p:nth-child(even) { grid-column: 8 / span 5; }
  .intro-lead { grid-column: 1 / span 7; }
}

/* Services: an index of work; the row inks green on hover and their photo slides in */
.services { padding-block: 0 var(--sec); }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--muste); }
.svc-row { border-bottom: 1px solid var(--viiva); position: relative; }
.svc-a { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; padding: 1.5rem 0; color: var(--muste); text-decoration: none; }
.svc-a::before { content: ""; position: absolute; inset: 0 calc((100vw - var(--max)) / -2); z-index: -1; background: var(--vihrea); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease); }
a.svc-a:hover::before { transform: scaleY(1); }
a.svc-a:hover .svc-name { color: #fff; }
a.svc-a:hover .svc-desc { color: var(--on-green-2); }
.svc-name { grid-column: 1; font: 700 clamp(2rem, 4.4vw, 4rem)/.98 var(--head); letter-spacing: -.02em; color: var(--vihrea); transition: color .3s; overflow-wrap: break-word; hyphens: manual; }
.svc-desc { grid-column: 1; max-width: 40ch; color: var(--harmaa); transition: color .3s; }
.svc-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--vihrea); transition: transform .45s var(--ease), color .3s; }
.svc-go .i { width: 30px; height: 30px; }
a.svc-a:hover .svc-go { color: var(--salama); transform: translateX(.5rem); }
.svc-thumb { display: none; }
@media (min-width: 1100px) {
  .svc-a { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; column-gap: 1.5rem; padding: 2rem 0; }
  .svc-name { grid-column: 1 / span 7; }
  .svc-desc { grid-column: 8 / span 4; grid-row: 1; }
  .svc-go { grid-column: 12; grid-row: 1; justify-self: end; }
    .svc-thumb { display: block; position: absolute; left: 44%; top: 50%; width: 15rem; aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; background: var(--salama);
    transform: translate(-1rem, -50%) rotate(-3deg); transition: opacity .35s var(--ease), transform .6s var(--ease); box-shadow: 0 26px 40px -24px rgba(0,0,0,.7); }
  a.svc-a:hover .svc-thumb { opacity: 1; transform: translate(0, -50%) rotate(-3deg); }
  a.svc-a:hover .svc-desc { opacity: 0; }
}

/* Feature: their photo beside a green panel */
.feature { display: grid; background: var(--valko); color: var(--muste); border-block: 1px solid var(--viiva); }
.feature-media { margin: 0; aspect-ratio: 4 / 3; }
.feature-media img { position: absolute; inset: 0; }
.feature-copy { display: grid; gap: 1.5rem; align-content: center; justify-items: start; padding: clamp(3rem, 7vw, 7rem) max(1rem, (100vw - var(--max)) / 2); }
.feature h2 { color: var(--vihrea); max-width: 14ch; }
.feature-copy > p { color: var(--harmaa); max-width: 44ch; font-size: 1.15rem; }
.feature h2 { max-width: 16ch; }
.feature-text { display: grid; gap: 1.1rem; max-width: 52ch; color: var(--harmaa); }
.feature-text p:first-child { font-size: 1.2rem; color: var(--muste); }
.feature-copy > p:last-child { margin-top: .75rem; }
@media (min-width: 1100px) {
  .feature { grid-template-columns: 1fr 1fr; min-height: 46rem; }
  .feature-media { aspect-ratio: auto; }
  .feature-copy { padding: 6rem max(2.5rem, (100vw - var(--max)) / 2) 6rem 5rem; }
  .feature--flip .feature-media { order: 2; }
  .feature--flip .feature-copy { padding: 6rem 5rem 6rem max(2.5rem, (100vw - var(--max)) / 2); }
}
.feature { scroll-margin-top: var(--mh); }

/* Ruled rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--viiva); }
.rows li { padding-block: .85rem; border-bottom: 1px solid var(--viiva); }
.rows--light { align-self: stretch; border-color: rgba(255,255,255,.25); }
.rows--light li { border-color: rgba(255,255,255,.25); font: 700 clamp(1.3rem, 1.8vw, 1.6rem)/1.15 var(--head); color: #fff; }

/* Closer: the amber page, the number at poster size */
.closer { padding-block: var(--sec); background: var(--paperi); color: var(--muste); border-top: 1px solid var(--viiva); }
.closer--paper { background: var(--paperi); }
.closer-grid { display: grid; gap: 3rem; }
.closer-text { display: grid; gap: 1.25rem; align-content: start; }
.closer h2 { color: var(--vihrea); max-width: 12ch; }
.closer-text > p { max-width: 44ch; font-size: 1.15rem; color: var(--harmaa); }
.closer-text > .closer-lead { font: 700 clamp(1.5rem, 2.2vw, 2rem)/1.15 var(--head); color: var(--vihrea); max-width: 28ch; letter-spacing: -.01em; text-wrap: balance; hyphens: manual; }
.closer--paper .closer-text > p { color: var(--harmaa); }
.big-tel { margin-top: .5rem; }
.big-tel a { font: 700 clamp(3.25rem, 8.5vw, 6rem)/.95 var(--head); letter-spacing: -.02em; color: var(--vihrea); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 5px no-repeat; padding-bottom: .1em; transition: background-size .5s var(--ease); }
.big-tel a:hover { background-size: 100% 5px; }
.big-tel--light a { color: #fff; }
.big-tel--md a { font-size: clamp(2.75rem, 5vw, 4rem); }
.closer-call { display: grid; gap: 1rem; align-content: end; justify-items: start; }
.facts { margin: 1rem 0 0; display: grid; border-top: 2px solid var(--vihrea); }
.facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding-block: .8rem; border-bottom: 1px solid rgba(1,52,19,.22); }
.facts dt { font: 700 1.1rem/1.5 var(--head); color: var(--vihrea); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.contact-form { background: #fff; min-height: 30rem; padding: clamp(1.25rem, 3vw, 2.5rem); border-top: 6px solid var(--vihrea); box-shadow: 0 1px 0 var(--viiva), 0 24px 50px -34px rgba(1,52,19,.35); }
.contact-form:empty { background:
  linear-gradient(#fff, #fff) padding-box,
  repeating-linear-gradient(-45deg, rgba(1,52,19,.06) 0 1px, transparent 1px 12px); }
#yhteys { scroll-margin-top: var(--mh); }
@media (min-width: 1100px) {
  .closer-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 6rem; align-items: start; }
  .closer--short .closer-grid { align-items: end; }
}

/* Sähkötyöt: jump bar; the first kind of work opens wide, the next two sit side by side */
.jump-bar { border-bottom: 1px solid var(--viiva); background: var(--valko); }
.jump { list-style: none; margin-block: 0; padding: 0; display: flex; gap: 0 2rem; overflow-x: auto; scrollbar-width: none; }
.jump li { flex: none; }
.jump a { display: inline-flex; align-items: center; min-height: 3.5rem; font: 700 1.2rem/1 var(--head); color: var(--vihrea); text-decoration: none; white-space: nowrap;
  background: linear-gradient(var(--salama), var(--salama)) 0 100% / 0 3px no-repeat; transition: background-size .4s var(--ease); }
.jump a:hover { background-size: 100% 3px; }
.work-sections { padding-block: clamp(3rem, 6vw, 5rem) var(--sec); }
.work-sections .wrap { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.work-section { row-gap: 1.75rem; align-items: center; scroll-margin-top: calc(var(--mh) + 1.5rem); }
.work-section-text { display: grid; gap: 1.25rem; align-content: start; }
.work-lead { font-size: 1.2rem; max-width: 42ch; }
.work-section h3 { font-size: clamp(2.4rem, 3.8vw, 3.75rem); }
.work-section-photo { margin: 0; aspect-ratio: 4 / 3; }
.work-section .rows { margin-top: .5rem; }
.work-section .rows li { font: 700 1.45rem/1.15 var(--head); color: var(--vihrea); }
@media (min-width: 1100px) {
  .work-section-photo { grid-column: 1 / span 6; grid-row: 1; aspect-ratio: 5 / 6; }
  .work-section-text { grid-column: 8 / span 5; grid-row: 1; }
  .work-section:nth-child(even) .work-section-photo { grid-column: 7 / span 6; }
  .work-section:nth-child(even) .work-section-text { grid-column: 1 / span 5; }
}

/* Palvelut: their gallery */
.gallery { padding-block: var(--sec); scroll-margin-top: var(--mh); }
.gallery h2 { max-width: 18ch; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.gallery-a { aspect-ratio: 3 / 4; cursor: zoom-in; }
.gallery-a img { transition: transform .9s var(--ease), filter .4s; }
.gallery-a:hover img { transform: scale(1.04); filter: none; }
.gallery-zoom { position: absolute; right: .75rem; bottom: .75rem; width: 2.75rem; height: 2.75rem; opacity: 0; transform: translateY(.5rem); transition: opacity .3s, transform .4s var(--ease);
  background: linear-gradient(var(--vihrea), var(--vihrea)) 50% 50% / 1.1rem 2px no-repeat, linear-gradient(var(--vihrea), var(--vihrea)) 50% 50% / 2px 1.1rem no-repeat, var(--salama); }
.gallery-a:hover .gallery-zoom, .gallery-a:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.gallery-a:focus-visible { outline-offset: 4px; }
@media (min-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
  .gallery-grid li { grid-column: span 3; }
  .gallery-grid li:nth-child(8n+1) { grid-column: span 6; grid-row: span 2; }
  .gallery-grid li:nth-child(8n+1) .gallery-a { aspect-ratio: auto; height: 100%; }
  .gallery-grid li:nth-child(8n+6), .gallery-grid li:nth-child(8n+7), .gallery-grid li:nth-child(8n+8) { grid-column: span 4; }
  .gallery-grid li:nth-child(8n+6) .gallery-a, .gallery-grid li:nth-child(8n+7) .gallery-a, .gallery-grid li:nth-child(8n+8) .gallery-a { aspect-ratio: 4 / 3; }
}
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4,12,7,.94); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(4,12,7,.6); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .35s var(--ease); }
.lightbox-fig { margin: 0; display: grid; gap: .75rem; justify-items: center; padding: 4.5rem 1rem 2rem; max-height: 100dvh; }
.lightbox-fig img { max-width: min(92vw, 70rem); max-height: calc(100dvh - 9rem); width: auto; height: auto; object-fit: contain; }
.lightbox-fig figcaption { color: var(--on-green-2); font-size: .95rem; max-width: 60ch; text-align: center; }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 0; background: var(--salama); color: var(--vihrea); cursor: pointer; transition: background-color .25s; }
.lightbox-btn:hover { background: #fff; }
.lightbox-btn:focus-visible { outline-color: #fff; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev, .lightbox-next { top: 50%; translate: 0 -50%; }
.lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }
@media (max-width: 699px) { .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; translate: none; } }
@keyframes lb-in { from { opacity: 0; } }

/* Yhteystiedot */
.hero--contact .hero-text { gap: 1.25rem; }
.hero--contact h1 { max-width: 16ch; }
.hero--contact .big-tel { margin-top: .25rem; }
.hero--contact .hero-img img { object-position: 50% 38%; }
.hero--contact ~ .closer .big-tel { display: none; }
.map-band { padding-block: var(--sec); background: var(--valko); border-top: 1px solid var(--viiva); }
.map-grid { display: grid; gap: 2.5rem; }
.map-lead { margin-top: 1.25rem; font-size: 1.3rem; line-height: 1.45; max-width: 30ch; }
.map-address { display: flex; gap: .6rem; margin-top: 1.5rem; }
.map-address .i { color: var(--lehti); margin-top: .3rem; }
.map { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paperi); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); opacity: 0; transition: opacity .6s var(--ease); }
.map iframe.is-loaded { opacity: 1; }
.map-open { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .9rem; width: 100%; border: 0; background: transparent; color: var(--vihrea); font: 700 1.15rem/1.2 var(--head); cursor: pointer; }
.map-open .i { width: 48px; height: 48px; color: var(--lehti); }
.map-open span { padding: .6rem 1.1rem; box-shadow: inset 0 0 0 2px currentColor; }
.map-open:hover span { background: var(--vihrea); color: #fff; }
.map-open:focus-visible { outline-offset: -6px; }
.map-address { font: 700 1.35rem/1.25 var(--head); color: var(--vihrea); }
.map::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(1,52,19,.15); }
@media (min-width: 1100px) { .map-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 5rem; align-items: center; } .map { aspect-ratio: 16 / 10; } }

/* Footer */
.footer { position: relative; overflow: hidden; isolation: isolate; background: var(--syva); color: var(--on-green-2); padding-block: 5rem 1.5rem; }
.footer-mark { position: absolute; z-index: -1; right: -4rem; bottom: -6rem; width: clamp(16rem, 34vw, 30rem); aspect-ratio: 1; transform: rotate(15deg); pointer-events: none; }
.footer-mark::before, .footer-mark::after { content: ""; position: absolute; width: 46%; height: 100%; border: clamp(1.6rem, 3vw, 2.6rem) solid #0A3A1B; }
.footer-mark::before { left: 0; top: 0; border-right: 0; border-top: 0; }
.footer-mark::after { right: 0; bottom: 0; border-left: 0; border-bottom: 0; }
.footer a { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-say { display: grid; gap: 1.75rem; justify-items: start; padding-bottom: 3.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,.22); }
.footer-say p { font: 700 clamp(2rem, 4.6vw, 4.25rem)/1 var(--head); letter-spacing: -.02em; color: #fff; max-width: 22ch; text-wrap: balance; hyphens: manual; }
.footer .btn--amber::before { background: var(--paperi); }
.footer .btn--amber:hover { color: var(--vihrea); }
@media (min-width: 1100px) { .footer-say { grid-template-columns: 1fr auto; align-items: end; gap: 4rem; } }
.footer-logo { display: inline-block; background: var(--paperi); padding: .6rem .8rem; margin-bottom: 1.5rem; }
.footer-logo img { width: 110px; }
.footer-tel a { font: 700 clamp(2.25rem, 4vw, 3rem)/1.1 var(--head); text-decoration: none; }
.footer-brand p + p { margin-top: .35rem; }
.footer-nav-h { font: 700 1.1rem/1.4 var(--head); color: #fff; margin-bottom: .6rem; }
.footer-area p + .footer-nav-h { margin-top: 1.5rem; }
.footer-nav ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.22); }
.footer-nav li { display: flex; align-items: center; gap: .85rem; min-height: 2.75rem; border-bottom: 1px solid rgba(255,255,255,.22); }
.footer-nav a { font: 700 1.15rem/1 var(--head); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--salama); }
.footer-legal { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.22); font-size: .9rem; }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 5rem; } }

/* Page-to-page: the header holds still, an amber flash, and the new page rises in. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .masthead { view-transition-name: masthead; }
  .progress { view-transition-name: progress; }
  ::view-transition-group(masthead), ::view-transition-group(progress) { animation-duration: 0s; }
  ::view-transition-image-pair(root) { background: var(--salama); }
  ::view-transition-old(root) { animation: vt-out .3s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-1.5rem); filter: blur(4px); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); transform: translateY(3rem); } to { clip-path: inset(0 0 0 0); transform: none; } }

/* Motion. The authored moment: the crop marks close in on the hero like a plate being registered. */
@media (prefers-reduced-motion: no-preference) {
  .hero-frame::before { animation: register 1.1s var(--ease) .05s both; }
  .hero-img { animation: rise .9s var(--ease) .1s both; }
  .hero-amber { animation: bolt .6s var(--ease) .55s both; }
  .hero-in { animation: rise .7s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms + 150ms); }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .svc-list.reveal { opacity: 1; transform: none; }
  .js .svc-list.reveal .svc-row { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
  .js .svc-list.reveal.is-in .svc-row { opacity: 1; transform: none; }
  .js .svc-list.reveal.is-in .svc-row:nth-child(2) { transition-delay: .07s; }
  .js .svc-list.reveal.is-in .svc-row:nth-child(3) { transition-delay: .14s; }
  .js .svc-list.reveal.is-in .svc-row:nth-child(4) { transition-delay: .21s; }
  .js .svc-list.reveal.is-in .svc-row:nth-child(5) { transition-delay: .28s; }
  @supports (animation-timeline: view()) {
    .statement span { color: transparent; -webkit-background-clip: text; background-clip: text; -webkit-box-decoration-break: slice; box-decoration-break: slice;
      background-image: linear-gradient(90deg, var(--muste) 50%, #7D867C 50%); background-size: 200% 100%; background-position: 100% 0; background-repeat: no-repeat;
      animation: ink linear both; animation-timeline: view(); animation-range: entry 35% cover 52%; }
    .feature-media img, .work-section-photo img { scale: 1.12; animation: drift linear both; animation-timeline: view(); }
  }
}
@keyframes bolt { from { opacity: 0; translate: 0 -1.5rem; } }
@keyframes register { from { transform: scale(1.06); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes ink { to { background-position: 0 0; } }
@keyframes drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
