/* Tokenit design.md:stä */
@font-face { font-family: "Sentient"; src: url("fonts/s300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("fonts/s400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("fonts/s500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #EFF0EC;
  --surface: #E1E4DD;
  --ink: #1B2B22;
  --muted: #55605A;
  --brand: #1F3A2D;
  --accent: #C9A24A;
  --on-photo: #FFFFFF;
  --font: "Sentient", Georgia, "Times New Roman", serif;
  --step-small: clamp(1rem, 0.96rem + 0.1vw, 1.0625rem);
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --margin: clamp(20px, 5vw, 72px);
  --radius: 0;
  --btn-h: 48px;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400;
  font-size: var(--step-body); line-height: 1.55; font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-weight: 300; letter-spacing: -0.015em; line-height: 1.02; margin: 0; hyphens: manual; overflow-wrap: break-word; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); color: var(--ink); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-header:not(.on-light) :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible, .kuvadialogi :focus-visible, .yw-nappi:focus-visible { outline-color: #fff; }

/* Napit: yksi muoto */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--btn-h); padding: 0 24px;
  border: 1.5px solid currentColor; border-radius: var(--radius); text-decoration: none; font: 500 1rem/1 var(--font);
  transition: transform .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #D8B25C; border-color: #D8B25C; }
.link-arrow { text-decoration: underline; text-underline-offset: 4px; font-size: var(--step-small); font-weight: 500; }
.link-arrow::after { content: " →"; }

/* Header: kirjeenpää, päällä herossa */
.site-header { position: absolute; z-index: 20; inset: 0 0 auto 0; display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; padding: 24px var(--margin); color: var(--on-photo); font-size: var(--step-small); }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15,25,19,.62), rgba(15,25,19,0)); } /* taste-skill-ignore: neutraali peite kuvan päällä */
.brand { text-decoration: none; font-weight: 500; max-width: 10ch; line-height: 1.2; }
.nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 0; }
.nav li:not(:last-child)::after { content: ","; margin-right: .4em; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-tel { text-decoration: none; font-weight: 500; white-space: nowrap; }
.site-header .btn-primary { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.menu-toggle { display: none; min-height: 44px; padding: 0 16px; background: transparent; color: inherit; font: 500 var(--step-small)/1 var(--font);
  border: 1.5px solid currentColor; border-radius: var(--radius); cursor: pointer; }
.mobile-menu { position: absolute; top: 100%; left: var(--margin); right: var(--margin); background: var(--brand); padding: 24px; display: grid; gap: 16px; }
.mobile-menu ul { display: grid; gap: 4px; }
.mobile-menu a:not(.btn) { display: block; padding: 10px 0; text-decoration: none; font-size: var(--step-lead); }
.mobile-menu .btn { border-color: var(--on-photo); }
.mobile-menu .btn-primary { border-color: var(--accent); }
.btn-wa { display: none; }
.mobile-menu .btn-wa { display: inline-flex; }

/* Hero: pieni nimi, avoin taivas */
.hero { position: relative; min-height: 100svh; color: var(--on-photo); display: grid; grid-template-columns: repeat(12, 1fr);
  align-items: end; align-content: end; padding: 0 var(--margin) 40px; column-gap: 24px; overflow: hidden; background: var(--brand); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(12,22,16,.72) 0%, rgba(12,22,16,.35) 28%, rgba(12,22,16,0) 52%); } /* taste-skill-ignore: neutraali peite kuvan päällä */
.hero-copy, .hero-side { position: relative; z-index: 2; }
.hero-copy { grid-column: 1 / span 6; }
.hero-copy h1 { font-size: clamp(2.75rem, 2.2rem + 3.2vw, 5.25rem); line-height: 1; max-width: 12ch; text-wrap: balance; }
.hero-side { grid-column: 8 / span 5; justify-self: end; text-align: right; display: grid; gap: 16px; justify-items: end; max-width: 38ch; }
.hero-lead { font-size: var(--step-body); line-height: 1.4; }
.hero-trust { font-size: var(--step-small); opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px 24px; }

/* Palvelut: kehysrivi, yksi nostettu */
.showcase { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: clamp(80px, 12vw, 180px) var(--margin) clamp(72px, 10vw, 140px); }
.showcase-intro { grid-column: 1 / span 3; display: grid; gap: 20px; align-content: start; padding-right: 8px; }
.showcase-intro h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.frames { grid-column: 4 / -1; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; grid-template-rows: auto auto auto; gap: 0 16px; }
/* Kuvat tasataan alareunasta ja tekstit alkavat samalta riviltä (subgrid), vaikka otsikko rivittyisi */
.frame { min-width: 0; grid-row: span 3; display: grid; grid-template-rows: subgrid; }
.frame > a { align-self: end; }
.frame-name { align-self: start; }
.frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.frame-lifted img { aspect-ratio: 4 / 5; }
.frame a { display: block; overflow: hidden; }
.frame-name { margin-top: 12px; font-weight: 500; font-size: var(--step-body); line-height: 1.25; }
.frame-fact { font-size: var(--step-small); margin-top: 4px; line-height: 1.4; }
.showcase-note { grid-column: 4 / -1; margin-top: 64px; max-width: 44ch; padding-right: var(--margin); font-size: var(--step-small); }
.showcase-note strong { color: var(--ink); font-weight: 500; }

/* Muut sivut (keskeneräiset) */
.page-top, .contact { padding: 120px var(--margin) 48px; max-width: 60rem; }
.prose { padding: 0 var(--margin) var(--sec); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.prose > * { grid-column: 3 / span 8; max-width: 70ch; }
.callback { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: clamp(64px, 8vw, 120px) var(--margin); background: var(--surface); }
.callback h2 { grid-column: 1 / span 5; align-self: end; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.callback > p { grid-column: 1 / span 5; margin-top: 16px; align-self: start; }
.callback form { grid-column: 7 / -1; grid-row: 1 / span 2; display: grid; gap: 16px; align-content: start; }
.callback label { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 500; }
.callback input[type=text], .callback input[type=tel] { min-height: 48px; padding: 0 14px; font: inherit; font-size: 1rem; background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.callback .btn { justify-self: start; cursor: pointer; }
.form-note { font-size: var(--step-small); }

/* Liike: vain transform ja opacity */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero-img { animation: settle 2.4s ease-out both; }
.hero-copy h1, .hero-lead, .hero-trust, .hero-actions > *, .brand, .header-actions > *, .nav li { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.brand, .nav li, .header-actions > * { animation-duration: .7s; }
.nav li:nth-child(2) { animation-delay: .06s; } .nav li:nth-child(3) { animation-delay: .12s; } .nav li:nth-child(4) { animation-delay: .18s; } .nav li:nth-child(5) { animation-delay: .24s; }
.hero-copy h1 { animation-delay: .2s; } .hero-lead { animation-delay: .45s; } .hero-trust { animation-delay: .55s; } .hero-actions > *:nth-child(1) { animation-delay: .65s; } .hero-actions > *:nth-child(2) { animation-delay: .75s; }
.frame img { transition: transform .5s ease; }
.frame a:hover img { transform: scale(1.02); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.05); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-img, .hero-copy h1, .hero-lead, .hero-trust, .hero-actions > *, .brand, .header-actions > *, .nav li { animation: none; }
  .frame img { transition: none; }
  .frame a:hover img { transform: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Tabletti ja puhelin */
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-actions .btn { display: none; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / -1; justify-self: start; text-align: left; justify-items: start; margin-top: 20px; }
  .hero-actions { justify-content: flex-start; }
  .showcase { padding-right: 0; }
  .showcase-intro, .frames, .showcase-note { grid-column: 1 / -1; }
  .callback h2, .callback > p, .callback form { grid-column: 1 / -1; grid-row: auto; }
  .callback form { margin-top: 24px; }
  .showcase-intro { padding-right: var(--margin); margin-bottom: 32px; }
  .frames { grid-template-columns: repeat(3, 1fr); padding-right: var(--margin); gap: 0 16px; }
  .frame { margin-bottom: 32px; display: block; grid-row: auto; }
  .frame-lifted { grid-column: 1 / -1; }
  .frame-lifted img { aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
  .site-header { gap: 12px; align-items: center; }
  .site-header .brand { margin-right: auto; }
  .header-actions { margin-left: 0; }
  .header-tel { display: inline-flex; align-items: center; min-height: 44px; }
  .hero { padding-bottom: 28px; }
  .hero-img { object-position: 28% 60% !important; }
  .hero-copy h1 { font-size: 9.5vw; }
  .hero-actions .btn { width: 100%; }
  .frames { grid-template-columns: 1fr; gap: 32px; }
  .frame img, .frame-lifted img { aspect-ratio: 4 / 3; }
}

/* ===== Vaihe 5: kaikki sivut ===== */
.menu-toggle .t-kiinni { display: none; }
.menu-toggle[aria-expanded="true"] .t-auki { display: none; }
.menu-toggle[aria-expanded="true"] .t-kiinni { display: inline; }
.site-header.on-light { color: var(--ink); }
.site-header.on-light::before { display: none; }
.site-header.on-light .mobile-menu { color: var(--on-photo); }
.site-header.on-light .btn-primary { color: var(--ink); }
.err { display: block; color: #8A1F1F; font-size: var(--step-small); font-weight: 400; margin-top: 4px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #8A1F1F !important; }

section { --sec: clamp(72px, 10vw, 160px); }
.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.page-head { padding: clamp(120px, 14vw, 200px) var(--margin) 40px; }
.page-head > p:not(.lead) { max-width: 50ch; margin-top: 16px; }
.page-head h1 { font-size: clamp(2.5rem, 1.8rem + 3.6vw, 5.25rem); }
.lead { font-size: var(--step-lead); line-height: 1.4; margin-top: 20px; max-width: 34ch; }
.prose { padding-top: 0; }
.prose h2 { font-size: var(--step-lead); margin: 32px 0 8px; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 28px; }

/* Sivun yläosa kuvalla (palvelusivut) */
.intro { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center;
  padding: clamp(120px, 12vw, 180px) 0 var(--sec) var(--margin); min-height: 88svh; }
.intro-text { grid-column: 1 / span 7; padding-right: 24px; }
.intro-text h1 { font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); text-wrap: balance; }
.intro-photo { grid-column: 8 / -1; margin: 0; }
.intro-photo img { width: 100%; height: min(78vh, 780px); object-fit: cover; }
.intro .btn:not(.btn-primary) { color: var(--ink); }

/* Mitä teemme: kuvat vasemmalla eri kokoisina, lista oikealla */
.what { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 0 var(--margin) var(--sec); align-items: start; }
.what-photos { grid-column: 1 / span 6; display: grid; grid-template-columns: repeat(6, 1fr); column-gap: 24px; }
.what-photos figure { margin: 0; }
.what-photos .w1 { grid-column: 1 / span 3; }
.what-photos .w2 { grid-column: 3 / -1; margin-top: 96px; }
.what-photos img { width: 100%; height: auto; }
.what-text { grid-column: 8 / -1; }
.what-text h2, .base h2, .who h2, .closing h2, .together h2, .strip-head h2, .gal-group h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3rem); }
.what-text > p { margin-top: 16px; max-width: 36ch; }
.rows { margin-top: 32px; display: grid; gap: 22px; }
.rows li { font-size: var(--step-lead); line-height: 1.3; }
.rows li:nth-child(4n+1):not(:first-child) { margin-top: 22px; }
.what-plain .what-text { grid-column: 5 / -1; }
.what-plain .rows li { font-size: var(--step-lead); }

/* Pohja: otsikko vasemmalla, tekstit oikealla, pieni kuva */
.base { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 0 var(--margin) var(--sec); align-items: start; }
.base h2 { grid-column: 1 / span 6; max-width: 12ch; font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4.25rem); }
.base-text { grid-column: 8 / -1; display: grid; gap: 20px; max-width: 40ch; }
.base-photo { grid-column: 3 / span 3; margin: 56px 0 0; grid-row: 2; }
.base-photo img { width: 100%; height: auto; }
.base-plain h2 { grid-column: 1 / span 7; max-width: 20ch; }
.who { padding: 0 var(--margin) var(--sec); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.who h2 { grid-column: 1 / span 4; }
.who p { grid-column: 5 / span 6; max-width: 40ch; margin-top: 8px; }

/* Kuvarivi: eri kokoiset kuvat */
.strip { padding: 0 var(--margin) var(--sec); }
.strip-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.strip-row { display: flex; gap: 24px; align-items: flex-start; }
.uneven img { width: 100%; height: auto; }
.uneven.g1 { flex: 0 0 18%; margin-top: 80px; }
.uneven.g2 { flex: 0 0 30%; }
.uneven.g3 { flex: 0 0 22%; margin-top: 140px; }
.uneven.g4 { flex: 0 0 20%; margin-top: 40px; }
.closing { padding: var(--sec) var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 24px; align-items: start; }
.closing h2 { grid-column: 1 / span 6; max-width: 16ch; grid-row: 1 / span 2; }
.closing p { grid-column: 8 / -1; max-width: 36ch; }
.closing .btn { grid-column: 8 / -1; justify-self: start; }
.together { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 0 var(--margin) var(--sec); align-items: end; }
.together figure { grid-column: 1 / span 4; margin: 0; }
.together figure img { width: 100%; height: auto; }
.together > div { grid-column: 6 / span 6; display: grid; gap: 16px; max-width: 36ch; }

/* Etusivu: Pohjasta pintaan */
.layers { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 0 var(--margin) var(--sec); }
.layers-text { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; max-width: 36ch; }
.layers-text h2 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4.25rem); }
.layers-photo { grid-column: 7 / -1; margin: 0; }
.layers-photo img { width: 100%; height: auto; }
.steps { list-style: none; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; align-items: start; }
.step h3 { font-size: 1.25rem; font-weight: 500; margin: 0 0 8px; }
.step p { font-size: var(--step-small); line-height: 1.5; }
.step-1 { margin-top: 0; } .step-2 { margin-top: 56px; } .step-3 { margin-top: 16px; } .step-4 { margin-top: 88px; }
.about { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 0 var(--margin) var(--sec); align-items: start; }
.about h2 { grid-column: 1 / span 7; font-size: clamp(2.25rem, 1.5rem + 2.8vw, 4.5rem); margin-left: 3vw; max-width: 16ch; text-wrap: balance; }
.about-text { grid-column: 8 / -1; display: grid; gap: 20px; max-width: 40ch; padding-top: 12px; }


/* Alue */
.area { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: var(--sec) var(--margin); background: var(--surface); align-items: start; }
.area h2 { grid-column: 1 / span 6; font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4.25rem); margin-left: 3vw; max-width: 14ch; }
.area-body { grid-column: 8 / -1; display: grid; gap: 24px; max-width: 40ch; }
.area-list { display: grid; gap: 14px; font-size: var(--step-lead); }
.deduction { margin-top: 40px; display: grid; gap: 12px; }
.deduction h3 { font-size: var(--step-lead); font-weight: 400; margin: 0; }

/* UKK */
.faq { padding: var(--sec) var(--margin); }
.faq h2 { font-size: clamp(2.25rem, 1.5rem + 2.8vw, 4.5rem); }
.faq-list { margin: 80px 0 0 calc((100% - 11 * 24px) / 12 * 4 + 4 * 24px); display: grid; gap: 36px; }
.faq details { font-size: var(--step-lead); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s ease; margin-top: -6px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq details[open] { background: var(--surface); padding: 24px; margin: -24px; }
.faq details p { font-size: var(--step-body); margin-top: 12px; max-width: 48ch; }

/* Galleria */
.gal-group { padding: 0 var(--margin) var(--sec); display: grid; gap: 32px; }
.gal { columns: 3; column-gap: 12px; }
.gal li { break-inside: avoid; margin-bottom: 12px; }
.gal a { display: block; overflow: hidden; }
.gal img { width: 100%; height: auto; transition: transform .5s ease; }
.gal a:hover img { transform: scale(1.03); }

/* Yhteystiedot */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 8px var(--margin) 56px; }
.way { display: grid; gap: 8px; padding: 28px 0; text-decoration: none; min-height: 48px; }
.way span { font-size: var(--step-small); color: var(--ink); }
.way strong { font-weight: 300; font-size: clamp(1.4rem, 1.1rem + 1vw, 2.1rem); overflow-wrap: anywhere; }
.way:hover strong { text-decoration: underline; text-underline-offset: 6px; }
.quote { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: var(--sec) var(--margin); background: var(--surface); }
.quote h2 { grid-column: 1 / span 4; font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.quote form { grid-column: 6 / -1; display: grid; gap: 20px; }
.form-help { max-width: 40ch; }
.quote label { display: grid; gap: 6px; font-weight: 500; font-size: var(--step-small); }
.quote .hint { font-weight: 400; }
.quote input[type=text], .quote input[type=tel], .quote input[type=email], .quote textarea { min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; background: var(--bg); color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius); }
.quote input[type=file] { font: inherit; font-size: 1rem; }
.quote .btn { justify-self: start; cursor: pointer; }
.company { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: var(--sec) var(--margin); }
.company h2 { font-size: var(--step-lead); font-weight: 400; margin-bottom: 12px; }
.callback input[aria-invalid="true"] { border-color: #8A1F1F; }

/* Reveal: laajennettu */
@media (max-width: 1000px) {
  .intro, .what, .base, .who, .together, .layers, .about, .area, .quote { display: block; }
  .intro { padding: 120px 0 var(--sec) var(--margin); min-height: 0; }
  .intro-text { padding-right: var(--margin); }
  .intro-photo { margin-top: 40px; width: 78%; margin-left: auto; }
  .intro-photo img { height: auto; max-height: 70vh; }
  .what-photos { margin-bottom: 48px; }
  .what-photos .w2 { margin-top: 48px; }
  .base-photo { width: 60%; margin: 40px 0 0 auto; }
  .base-text, .about-text, .area-body { margin-top: 24px; }
  .who p { margin-top: 12px; }
  .together figure { width: 60%; margin-bottom: 32px; }
  .layers-photo { margin-top: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; gap: 32px 20px; }
  .step-1, .step-2, .step-3, .step-4 { margin-top: 0; }
  .about h2, .area h2 { margin-left: 0; }
  .faq-list { margin-left: 0; margin-top: 40px; }
  .faq details[open] { margin: -24px calc(var(--margin) * -1); padding: 24px var(--margin); }
  .strip-row { flex-wrap: wrap; }
  .uneven.g1, .uneven.g2, .uneven.g3, .uneven.g4 { flex: 0 0 calc(50% - 12px); margin-top: 0; }
  .uneven.g2, .uneven.g4 { margin-top: 40px; }
  .gal { columns: 2; }
  .ways { grid-template-columns: 1fr; gap: 0; }
  .quote form { margin-top: 24px; }
  .closing { display: block; }
  .closing h2 { margin-bottom: 20px; }
  .closing .btn { margin-top: 20px; }
  .company { grid-template-columns: 1fr; }
}

/* Kiitos ja 404: otsikko vasemmalla, teksti ja nappi oikealla */
.page-head-split { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; min-height: 70svh; align-content: center; }
.page-head-split h1 { grid-column: 1 / span 7; }
.page-head-split > p { grid-column: 8 / -1; }
@media (max-width: 1000px) { .page-head-split { display: block; } }
@media (max-width: 1000px) { .prose { display: block; } }
.page-head-split > p, .page-head-split .lead { max-width: none; margin-top: 16px; }
.page-head-split .lead { font-size: var(--step-lead); }
/* Vakiokomponentit (vakiot.md, design-saannot 1 ja 7). Kopioi projektin style.css:n loppuun.
   Käyttää projektin tokeneita; varavärit vain jos tokenia ei ole. Sävytä design.md:n mukaan,
   mutta älä muuta rakennetta (build-pohja.py:n HTML ja main.js olettavat nämä luokat). */

/* Lomakkeen kentät vähintään 16 px, ettei iPhone zoomaa (A8) */
input, textarea, select { font-size: max(16px, 1rem); }

/* Mobiili: headerin CTA valikkoon, sivu ei vieri valikon alla (A3, A7) */
.menu-toggle .t-kiinni { display: none; }
.menu-toggle[aria-expanded="true"] .t-auki { display: none; }
.menu-toggle[aria-expanded="true"] .t-kiinni { display: inline; }
body.valikko-auki { overflow: hidden; }
.mobile-menu-yhteys { display: grid; gap: 12px; }
.mobile-menu-yhteys p a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 700px) {
  .header-actions .btn { display: none; }
}

/* Chat-widget ja WhatsApp-nappi (A1, A2) */
.yhteys-widget, .yhteys-widget *, .kuvadialogi, .kuvadialogi * { box-sizing: border-box; }
.yhteys-widget {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  font-family: inherit;
}
.yw-nappi, .yw-wa {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22); /* taste-skill-ignore: kelluva elementti */
  transition: transform .2s ease;
}
.yw-nappi { background: var(--brand, #1F3A2D); color: var(--on-photo, #fff); }
.yw-wa { width: 52px; height: 52px; background: #25D366; color: #fff; }
.yw-nappi svg { width: 26px; height: 26px; }
.yw-wa svg { width: 28px; height: 28px; }
.yw-nappi:hover, .yw-wa:hover { transform: translateY(-2px); }
.yw-nappi:active, .yw-wa:active { transform: translateY(0); }
.yw-nappi:focus-visible, .yw-wa:focus-visible { outline: 3px solid var(--ink, #111); outline-offset: 3px; }

.yw-kupla {
  position: relative; max-width: 240px; padding: 12px 40px 12px 16px;
  background: var(--bg, #fff); color: var(--ink, #111);
  border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); /* taste-skill-ignore: kelluva elementti */
  font-size: 1rem; line-height: 1.4;
}
.yw-kupla p { margin: 0; }
@media (max-width: 700px) { .yw-kupla { display: none !important; } } /* peitti sisällön napit 390 px:llä (Sähkö-Ässä 2026-10-22) */
.yw-kupla-sulje {
  position: absolute; top: 2px; right: 2px; width: 40px; height: 40px;
  background: none; border: 0; color: inherit; font-size: 1.25rem; cursor: pointer;
}

.yw-paneeli {
  width: min(320px, calc(100vw - 32px));
  padding: 20px; background: var(--bg, #fff); color: var(--ink, #111);
  border-radius: 12px; box-shadow: 0 10px 32px rgba(0, 0, 0, .22); /* taste-skill-ignore: kelluva elementti */
}
.yw-paneeli .yw-otsikko { margin: 0 0 4px; font-weight: 500; font-size: 1.125rem; }
.yw-paneeli > p { margin: 0 0 12px; font-size: 1rem; }
.yw-paneeli ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.yw-paneeli li a {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  min-height: 48px; padding: 0 12px; border-radius: 8px;
  background: var(--surface, #f2f2f2); color: inherit; text-decoration: none; font-weight: 500;
}
.yw-paneeli li a span { font-weight: 400; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.yw-paneeli li a:hover { text-decoration: underline; }
.yw-sulje { min-height: 44px; padding: 0 16px; background: none; border: 1.5px solid currentColor; border-radius: 8px; color: inherit; font: inherit; cursor: pointer; }

/* Kuvadialogi (B1) */
a.kuva-avaa { display: block; cursor: zoom-in; }
.kuvadialogi { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.kuvadialogi::backdrop { background: rgba(10, 14, 12, .88); }
.kuvadialogi img { display: block; max-width: 96vw; max-height: 90vh; width: auto; height: auto; margin: 0 auto; }
.kd-sulje {
  position: absolute; top: 12px; right: 12px; min-height: 44px; padding: 0 16px;
  background: var(--bg, #fff); color: var(--ink, #111); border: 0; font: inherit; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .yw-nappi, .yw-wa { transition: none; }
  .yw-nappi:hover, .yw-wa:hover { transform: none; }
}

/* Sävytys tämän sivuston tokeneilla (design.md: kulmat 0) */
.yw-kupla, .yw-paneeli, .yw-paneeli li a, .yw-sulje { border-radius: 0; }
.yw-paneeli .yw-otsikko { font-size: var(--step-lead); font-weight: 400; }
.kd-sulje { font: 500 1rem var(--font); }

/* ===== Workflow 2.1 -päivitys 2026-10-22 ===== */

/* Napit: ikoni tekstin oikealla puolella (design.md: napit) */
.btn { gap: 10px; }
.btn .ik { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.site-header .btn .ik { width: 16px; height: 16px; }
.btn:hover .ik { transform: translateX(2px); }
.btn[href^="tel:"]:hover .ik, .btn-wa:hover .ik { transform: none; }

/* Mobiilivalikko: yhteystiedot ja Sulje (A3) */
.mobile-menu-yhteys { padding-top: 8px; }
.mobile-menu-yhteys .btn { width: 100%; }
.mobile-menu .mobile-menu-yhteys p a { padding: 0; font-size: var(--step-body); }
.menu-close { justify-self: start; min-height: 44px; padding: 0 16px; background: transparent; color: var(--on-photo);
  border: 1.5px solid var(--on-photo); border-radius: var(--radius); font: 500 var(--step-small)/1 var(--font); cursor: pointer; }

/* Meistä: veljesten kuvat kokoerilaisina (suunta: uneven photographs) */
.about-photos { grid-column: 2 / span 6; grid-row: 2; display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; margin-top: 56px; }
.about-photos li { margin: 0; }
.about-photos img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-photos .ap2 { margin-top: 96px; }
.about .about-text { grid-row: 2; align-self: center; padding-top: 56px; }

/* Leikkauskuva: pihan rakennekerrokset (Linden v2:sta). Kantaa osion väitteen "Kestävä piha alkaa maan alta". */
.leikkaus { grid-column: 1 / -1; position: relative; margin: 72px calc(var(--margin) * -1) 0; background: var(--bg); }
.leikkaus-svg { display: block; width: 100%; height: var(--h); }
.leikkaus .pinta { stroke: var(--brand); stroke-width: 3; }
.leikkaus .raja { stroke: var(--brand); stroke-width: 1.2; }
.selite line { stroke: var(--brand); stroke-width: 1.2; }
.selite circle { fill: var(--brand); }
.selite.m { display: none; }
.kerrokset { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.kerrokset li { position: absolute; left: 82%; top: var(--ly); transform: translateY(-100%); padding: 2px 12px 3px 3px;
  border-bottom: 1.2px solid var(--brand); /* taste-skill-ignore: selitteen olkaviiva on osa rakennepiirrosta */
  background: var(--bg); color: var(--brand); font-size: var(--step-small); font-weight: 500; line-height: 1.2; white-space: nowrap; }
.layers .steps { margin-top: 56px; }
@media (max-width: 900px) {
  .selite.d { display: none; }
  .selite.m { display: inline; }
  .kerrokset li { left: 58%; }
}
@media (max-width: 1000px) {
  .about-photos { margin-top: 32px; }
  .about-photos .ap2 { margin-top: 48px; }
  .about .about-text { padding-top: 0; }
  .leikkaus { margin-top: 48px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Kerrokset piirtyvät alhaalta ylös, kun kuva tulee näkyviin: pohjista viimeistelyyn */
  .js .leikkaus.reveal { opacity: 1; transform: none; }
  .js .leikkaus .k, .js .leikkaus .selite, .js .leikkaus .kerrokset li { clip-path: inset(0 100% 0 0); }
  .js .leikkaus.is-in .k, .js .leikkaus.is-in .selite, .js .leikkaus.is-in .kerrokset li { animation: kaiva .9s cubic-bezier(.65, 0, .35, 1) both; }
  .js .leikkaus.is-in .k1 { animation-delay: .1s; }
  .js .leikkaus.is-in .k2 { animation-delay: .35s; }
  .js .leikkaus.is-in .k3 { animation-delay: .55s; }
  .js .leikkaus.is-in .k4 { animation-delay: .75s; }
  .js .leikkaus.is-in .selite, .js .leikkaus.is-in .kerrokset li { animation-delay: 1s; }
}
@keyframes kaiva { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .btn .ik { transition: none; }
  .btn:hover .ik { transform: none; }
}

/* ===== Käyttäjän muutokset 2026-10-22 (illalla) ===== */

/* Työn jälki: isot kuvat ruudukossa, otsikko ja linkki yläpuolella */
.work { padding: 0 var(--margin) var(--sec); display: grid; gap: 40px; }
.work-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.work-head h2 { grid-column: 1 / span 5; font-size: clamp(2.25rem, 1.5rem + 2.6vw, 4.25rem); }
.work-head p { grid-column: 7 / span 4; }
.work-head .link-arrow { grid-column: 11 / -1; justify-self: end; }
.work-photos { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: end; }
.work-item img { width: 100%; height: auto; object-fit: cover; }
.work-item.t1 { grid-column: 1 / span 5; } .work-item.t1 img { aspect-ratio: 1 / 1; }
.work-item.t2 { grid-column: 6 / span 4; } .work-item.t2 img { aspect-ratio: 4 / 3; }
.work-item.t3 { grid-column: 10 / span 3; } .work-item.t3 img { aspect-ratio: 9 / 14; }
.work-item.t4 { grid-column: 1 / span 6; } .work-item.t4 img { aspect-ratio: 4 / 3; }
.work-item.t5 { grid-column: 7 / span 6; } .work-item.t5 img { aspect-ratio: 4 / 3; }
.work-item img { transition: transform .5s ease; }
.work-item a { overflow: hidden; }
.work-item a:hover img { transform: scale(1.02); }
@media (max-width: 1000px) {
  .work-head { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .work-head h2, .work-head p, .work-head .link-arrow { grid-column: 1; justify-self: start; }
  .work-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .work-item.t1, .work-item.t4, .work-item.t5 { grid-column: 1 / -1; }
  .work-item.t2 { grid-column: 1; } .work-item.t3 { grid-column: 2; }
  .work-item.t2 img, .work-item.t3 img { aspect-ratio: 3 / 4; }
  .work-item.t1 img { aspect-ratio: 4 / 3; }
}

/* Missä teemme töitä: otsikko alleviivattu, paikkakunnat lehmuksenlehdellä */
.area h2 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 4px; text-underline-offset: .18em; }
.area-list { gap: 10px; }
.area-list li { display: flex; align-items: center; gap: 14px; }
.area-list li::before { content: ""; flex: none; width: 20px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -48 80 96'%3E%3Cpath d='M0 -26C-14 -40 -34 -28 -30 -8C-27 8 -8 22 0 36C8 22 27 8 30 -8C34 -28 14 -40 0 -26Z' fill='%23C9A24A'/%3E%3Cpath d='M0 -24V40' stroke='%231F3A2D' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Kotitalousvähennys: korostettu kortti */
.deduction { margin-top: 48px; padding: 28px 28px 32px; background: var(--brand); color: var(--on-photo); gap: 14px; }
.deduction h3 { display: flex; align-items: center; gap: 12px; color: var(--accent); font-weight: 500; }
.deduction h3::before { content: ""; flex: none; width: 22px; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -48 80 96'%3E%3Cpath d='M0 -26C-14 -40 -34 -28 -30 -8C-27 8 -8 22 0 36C8 22 27 8 30 -8C34 -28 14 -40 0 -26Z' fill='%23C9A24A'/%3E%3Cpath d='M0 -24V40' stroke='%231F3A2D' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.deduction p { line-height: 1.5; }
.deduction .link-arrow { color: var(--on-photo); }
.deduction :focus-visible { outline-color: #fff; }

/* Footer */
.site-footer { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px;
  padding: clamp(64px, 8vw, 112px) var(--margin) 32px; background: var(--brand); color: var(--on-photo); font-size: var(--step-small); }
.site-footer a { color: inherit; }
.site-footer ul { display: grid; gap: 10px; }
.footer-brand { grid-column: 1 / span 5; display: grid; gap: 20px; align-content: start; justify-items: start; }
.footer-name { display: flex; align-items: center; gap: 16px; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; }
.footer-name .lehti { flex: none; width: 36px; height: 44px; color: var(--accent); }
.footer-lead { max-width: 38ch; font-size: var(--step-body); line-height: 1.5; opacity: .9; }
.footer-col { grid-column: span 2; display: grid; gap: 16px; align-content: start; }
.footer-col:nth-of-type(2) { grid-column: span 3; }
.footer-h { color: var(--accent); font-weight: 500; letter-spacing: .04em; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-yhteys a { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; overflow-wrap: anywhere; }
.footer-yhteys .ik { width: 18px; height: 18px; flex: none; color: var(--accent); }
.footer-alueet li { display: flex; align-items: center; gap: 10px; }
.footer-alueet li::before { content: ""; flex: none; width: 12px; height: 15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -48 80 96'%3E%3Cpath d='M0 -26C-14 -40 -34 -28 -30 -8C-27 8 -8 22 0 36C8 22 27 8 30 -8C34 -28 14 -40 0 -26Z' fill='%23C9A24A'/%3E%3Cpath d='M0 -24V40' stroke='%231F3A2D' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.footer-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; opacity: .85;
  }
.footer-bottom .footer-credit { margin-left: auto; }
@media (max-width: 1000px) {
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:nth-of-type(2) { grid-column: span 4; }
}
@media (max-width: 700px) {
  .site-footer { grid-template-columns: 1fr 1fr; row-gap: 40px; grid-auto-flow: row dense; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:nth-of-type(2) { grid-column: span 1; }
  .footer-col:nth-of-type(2) { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom .footer-credit { margin-left: 0; }
}

/* Chat-widgetin paneeli: ikonit ja kaksirivinen teksti */
.yw-paneeli { padding: 24px; }
.yw-paneeli ul { gap: 8px; }
.yw-paneeli li a { justify-content: flex-start; gap: 14px; min-height: 60px; padding: 10px 14px; background: var(--surface); }
.yw-paneeli li a:hover { background: #D6DBD2; text-decoration: none; }
.yw-paneeli li .ik { width: 22px; height: 22px; flex: none; color: var(--brand); }
.yw-paneeli .yw-wa-rivi .ik { color: #1FA855; }
.yw-paneeli .yw-lomake { background: var(--accent); }
.yw-paneeli .yw-lomake:hover { background: #D8B25C; }
.yw-paneeli .yw-lomake .ik { color: var(--ink); }
.yw-nimi { display: grid; gap: 2px; font-weight: 500; }
.yw-nimi small { font-size: .875rem; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.yw-lomake .yw-nimi small { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .work-item img { transition: none; }
  .work-item a:hover img { transform: none; }
}
.yw-paneeli li a .yw-nimi { text-align: left; font-weight: 500; font-size: 1rem; }
.yw-paneeli .yw-otsikko { font-size: 1.375rem; }
.yw-sulje { font-size: 1rem; }

/* Tekstuurit Linden v1:stä, hillitysti kolmessa paikassa (2026-10-22): footer ja kotitalousvähennys tummalla kivellä,
   soittopyyntö vaalealla graniitilla. Tekstuuri on aina vahvan sävytyksen alla, jotta teksti pysyy luettavana. */




/* Footerin otsikot alleviivattuina */
.footer-h { justify-self: start; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Ensin pohja, sitten pinta: vaalea graniitti (2026-10-22). Osio tarvitsee nyt oman yläreunan, koska tausta erottaa sen. */

.leikkaus { background: transparent; }
.steps { padding: 0; }

/* ===== Pihalaatoitukset 2026-10-22 ===== */
/* Yläosa: vaalea graniitti, napit vasemmalle (perivät heron oikean tasauksen) */
.intro .hero-actions { justify-content: flex-start; }


/* Korostettu otsikko: kultainen alleviivaus */
.korostus { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }

/* Mitä laatoitamme: lehmuksenlehti rivien edessä, kuvat rinnakkain */
.rows li:nth-child(4n+1):not(:first-child) { margin-top: 0; }
.rows { gap: 16px; }
.rows-lehti li { display: flex; align-items: center; gap: 14px; }
.rows-lehti li::before { content: ""; flex: none; width: 18px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 -48 80 96'%3E%3Cpath d='M0 -26C-14 -40 -34 -28 -30 -8C-27 8 -8 22 0 36C8 22 27 8 30 -8C34 -28 14 -40 0 -26Z' fill='%23C9A24A'/%3E%3Cpath d='M0 -24V40' stroke='%231F3A2D' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.what { align-items: center; }
.what-photos { grid-template-columns: 1fr 1fr; column-gap: 16px; align-items: start; }
.what-photos .w1 { grid-column: 1; }
.what-photos .w2 { grid-column: 2; margin-top: 64px; }
.what-photos img { aspect-ratio: 3 / 4; object-fit: cover; }

/* Laatoitus alkaa pohjasta: otsikko ja teksti vasemmalla, kuva oikealla, leikkauskuva alla */
.base-leikkaus h2 { grid-column: 1 / span 6; grid-row: 1; }
.base-leikkaus .base-text { grid-column: 1 / span 6; grid-row: 2; margin-top: 28px; }
.base-leikkaus .base-photo { grid-column: 8 / span 4; grid-row: 1 / span 2; margin: 0; }
.base-leikkaus .base-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.base-leikkaus .leikkaus { grid-row: 3; }

/* Kenelle laatoitamme: tumma kivikaista */

.who-kaista h2 { grid-column: 1 / span 5; color: var(--on-photo); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.who-kaista p { grid-column: 7 / span 6; font-size: var(--step-lead); line-height: 1.45; max-width: 36ch; margin-top: 0; }

/* Loppuosio: kaikki vasemmalle, jotta napit eivät osu samaan linjaan soittopyynnön napin kanssa */
.closing-vasen h2 { grid-row: auto; grid-column: 1 / span 7; max-width: 20ch; }
.closing-vasen p { grid-column: 1 / span 6; }
.closing-napit { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.closing-vasen .btn { grid-column: auto; }
.closing-vasen .btn:not(.btn-primary) { color: var(--ink); }

@media (max-width: 1000px) {
  .what-photos { display: grid; }
  .what-photos .w2 { margin-top: 40px; }
  .base-leikkaus .base-text { margin-top: 20px; }
  .base-leikkaus .base-photo { width: 70%; margin: 32px 0 0 auto; }
  .who-kaista { display: block; padding: var(--sec) var(--margin); }
  .who-kaista p { margin-top: 20px; }
  .closing-vasen .btn { margin-top: 0; }
  .closing-napit { margin-top: 20px; }
}
.base-leikkaus { grid-template-rows: auto 1fr auto; }
.strip + .closing-vasen { padding-top: 0; }
.closing-vasen { align-items: start; }
.closing-vasen h2 { grid-row: 1; }
.closing-vasen > p:not(.closing-napit) { grid-row: 2; }
.closing-napit { grid-row: 3; grid-column: 1 / span 6; }
.closing-kuva { grid-column: 8 / -1; grid-row: 1 / span 4; margin: 0; }
.closing-kuva img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 1000px) {
  .closing-kuva { margin-top: 32px; }
}

/* ===== Vihertyöt, kuvagalleria, yhteystiedot 2026-10-22 ===== */
.page-head-kivi { padding-bottom: clamp(56px, 7vw, 96px); }
.page-head-kivi + .gal-group { padding-top: clamp(56px, 7vw, 96px); }
.gal-group h2.korostus { justify-self: start; }

/* Tumma kaista: lehmuksenlehtilista vaalealla tekstillä (gallerian kohteet) */
.who-kaista .rows { grid-column: 7 / span 6; margin-top: 0; }
.who-kaista .rows li { color: var(--on-photo); }

/* Vihertyöt: maan leikkauskuva osion alla, "osana koko pihaa" tummalla kaistalla kuvan kanssa */
.base-maa { grid-template-rows: auto auto; }
.base-maa .leikkaus { grid-row: 2; margin-top: 56px; }
.together-kaista { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: var(--sec) var(--margin); }
.together-kaista figure { grid-column: 1 / span 5; margin: 0; }
.together-kaista figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.together-kaista > div { grid-column: 7 / span 6; display: grid; gap: 16px; align-content: center; }
.together-kaista p { font-size: var(--step-lead); line-height: 1.45; max-width: 36ch; }
.together-kaista h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3rem); }

/* Gallerian loppuosio ilman kuvaa: tiivis */
.closing-lyhyt { padding-bottom: clamp(56px, 7vw, 96px); }

/* Yhteystiedot: yhteystavat yläosaan kortteina ikoneilla */
.yhteys-head .ways { padding: 48px 0 0; gap: 16px; }
.yhteys-head .way { grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; row-gap: 6px; padding: 24px; background: var(--bg); }
.yhteys-head .way .ik { grid-row: 1; width: 24px; height: 24px; color: var(--brand); }
.yhteys-head .way span { grid-row: 1; font-weight: 500; }
.yhteys-head .way strong { grid-column: 1 / -1; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.75rem); }
.yhteys-head .way-wa { background: var(--brand); color: var(--on-photo); }
.yhteys-head .way-wa .ik, .yhteys-head .way-wa span { color: var(--on-photo); }
.yhteys-head .way-wa .ik { color: #25D366; }
.yhteys-head .way:hover { background: #E4E7E0; }
.yhteys-head .way-wa:hover { background: #26473A; }
.yhteys-head .way-wa:focus-visible { outline-color: var(--ink); }
.quote-side { grid-column: 1 / span 4; display: grid; gap: 32px; align-content: start; }
.quote-side h2 { justify-self: start; }
.quote-kuva { margin: 0; }
.quote-kuva img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.company h2 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Footer: kokemus korostettuna */
.footer-lead strong { color: var(--accent); font-weight: 500; }

@media (max-width: 1000px) {
  .who-kaista .rows { margin-top: 24px; }
  .together-kaista { display: block; }
  .together-kaista > div { margin-top: 28px; }
  .base-maa .leikkaus { margin-top: 32px; }
  .yhteys-head .ways { grid-template-columns: 1fr; gap: 12px; padding-top: 32px; }
  .quote-side { display: block; }
  .quote-kuva { display: none; }
}
.quote-kuva { justify-self: stretch; width: 100%; }
.together-kaista > div > * { grid-column: auto; }
.who-kaista + .closing { padding-top: 0; }
.quote-side { display: flex; flex-direction: column; gap: 32px; align-items: stretch; }
.quote-side h2 { align-self: flex-start; }
@media (max-width: 1000px) { .quote-side { display: block; } }

/* Tekstuurit (v1:n kivi, graniitti ja lehtikuvio): puhdas pohjaväri + läpikuultava tekstuurikerros ::before-elementissä.
   Sama vaikutelma kuin aiempi sävytys, mutta ilman liukuväriä. */
.site-footer, .deduction, .callback, .layers, .intro-kivi, .page-head-kivi, .who-kaista { position: relative; isolation: isolate; }
.site-footer::before, .deduction::before, .callback::before, .layers::before, .intro-kivi::before, .page-head-kivi::before, .who-kaista::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-size: 480px; }
.site-footer { background: var(--brand); }
.site-footer::before { background-image: url("img/tausta-lehti.svg"), url("img/tausta-kivi-tumma.webp"); background-size: 160px, 480px; opacity: .12; }
.deduction { background: var(--brand); }
.deduction::before { background-image: url("img/tausta-kivi-tumma.webp"); opacity: .14; }
.who-kaista { padding-top: var(--sec); margin-bottom: var(--sec); align-items: center; color: var(--on-photo); background: var(--brand); }
.who-kaista::before { background-image: url("img/tausta-lehti.svg"), url("img/tausta-kivi-tumma.webp"); background-size: 160px, 480px; opacity: .14; }
.callback { background: var(--surface); }
.callback::before { background-image: url("img/tausta-graniitti-vaalea.webp"); opacity: .22; }
.layers { padding-top: var(--sec); margin-bottom: var(--sec); background: var(--bg); }
.layers::before { background-image: url("img/tausta-graniitti-vaalea.webp"); opacity: .34; }
.intro-kivi, .page-head-kivi { background: var(--bg); }
.intro-kivi::before, .page-head-kivi::before { background-image: url("img/tausta-graniitti-vaalea.webp"); opacity: .38; }
.footer-bottom { padding-top: 0; }

/* Kuvakenttä suomeksi: oikea tiedostokenttä on näkymätön mutta fokusoitava */
.tiedosto { position: relative; }
.tiedosto input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tiedosto-rivi { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 400; }
.tiedosto-nappi { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); background: var(--bg); font-weight: 500; cursor: pointer; }
.tiedosto:hover .tiedosto-nappi { background: #E4E7E0; }
.tiedosto input[type=file]:focus-visible + .tiedosto-rivi .tiedosto-nappi { outline: 3px solid var(--ink); outline-offset: 3px; }
.tiedosto-tila { overflow-wrap: anywhere; }

/* Missä teemme töitä: kuva vasemmalle otsikon alle */
.area-kuva { grid-column: 1 / span 6; grid-row: 2; margin: 48px 0 0 3vw; max-width: 520px; }
.area-kuva img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.area .area-body { grid-row: 1 / span 2; }
@media (max-width: 1000px) { .area-kuva { margin: 32px 0 0; } }

/* Footer: nimi pysyy yhdellä rivillä työpöydällä */
.footer-name { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); }

/* Kiitos ja 404: napit rinnakkain */
.page-head-split .closing-napit { margin-top: 24px; }

/* Korjaukset koko sivuston läpikäynnistä 2026-10-22 */
/* Footerin kultanappi: tumma teksti (valkoinen kullalla oli 2,4:1) */
.site-footer .btn-primary { color: var(--ink); }
/* Yhteystavat: puhelin ja sähköposti tekstinä, WhatsApp korostettuna napinomaisena korttina (ei kolmea samanlaista korttia) */
.yhteys-head .way:not(.way-wa) { background: transparent; padding: 20px 0; }
.yhteys-head .way:not(.way-wa):hover { background: transparent; }
@media (min-width: 1001px) { .yhteys-head .ways { grid-template-columns: 1fr 1.2fr 1.3fr; align-items: center; } }
/* Leikkauskuvan selitteet puhelimessa pienemmällä, etteivät osu ruudun reunaan */
@media (max-width: 600px) { .kerrokset li { font-size: .875rem; padding-right: 8px; } }
/* Gallerian loppuosio: otsikko ja teksti vasemmalla, napit oikealla */
.closing-lyhyt { align-items: end; }
.closing-lyhyt .closing-napit { grid-column: 8 / -1; grid-row: 1 / span 2; justify-self: end; align-self: end; }
@media (max-width: 1000px) { .closing-lyhyt .closing-napit { justify-self: start; } }

/* Korjaukset läpikäynnistä 2026-10-23 */
/* Hero: otsikko, teksti ja napit samaan vasempaan kulmaan (ennen teksti ja napit oikealla taivaan päällä) */
.hero::after { background: linear-gradient(to top, rgba(12,22,16,.78) 0%, rgba(12,22,16,.45) 34%, rgba(12,22,16,0) 62%); } /* taste-skill-ignore: neutraali peite kuvan päällä */
@media (min-width: 1001px) {
  .hero-side { grid-column: 1 / span 6; justify-self: start; text-align: left; justify-items: start; margin-top: 24px; max-width: 44ch; }
  .hero .hero-actions { justify-content: flex-start; }
}
/* Palveluosio: kunnostus otsikon alle, sivulinkit omien korttiensa alle */
.showcase-intro .showcase-note { grid-column: auto; margin-top: 0; padding-right: 0; max-width: 30ch; }
.frame { grid-row: span 4; }
.frames { grid-template-rows: auto auto auto auto; }
.frame-link { margin-top: 12px; align-self: start; justify-self: start; font-size: var(--step-small); }
@media (max-width: 1000px) { .showcase-intro .showcase-note { max-width: 44ch; } }
/* Kelluva chat-nappi: piiloon heron päältä puhelimessa, footerin loppuun tilaa napille */
.yhteys-widget { transition: opacity .25s ease; }
.yhteys-widget.yw-piilossa { opacity: 0; pointer-events: none; visibility: hidden; }
@media (max-width: 700px) { .site-footer { padding-bottom: 96px; } }
/* Yhteystiedot: yritys- ja laskutustiedot tiiviimmin */
.company { padding-block: clamp(48px, 6vw, 88px); max-width: 1100px; }
.work-head .link-arrow { white-space: nowrap; }
/* Chat-nappi erottuu myös tummanvihreillä kaistoilla ja footerissa (oli lähes näkymätön puhelimessa) */
.yw-nappi { box-shadow: 0 0 0 2px var(--accent), 0 4px 14px rgba(0, 0, 0, .22); } /* taste-skill-ignore: kelluva elementti */
/* Pihan kunnostus -nosto: vihreä teksti ja kultainen alleviivaus kuten korostetut otsikot */
.showcase-intro .showcase-note strong { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* Palveluosio 1001-1240 px: kortit koko leveydelle, otsikko ja kunnostus rinnakkain yläpuolelle (pitkät sanat valuivat viereiseen sarakkeeseen 1024 px:llä) */
@media (min-width: 1001px) and (max-width: 1240px) {
  .showcase-intro { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 40ch); column-gap: 64px; align-items: end; margin-bottom: 48px; }
  .showcase-intro .showcase-note { max-width: 40ch; }
  .frames { grid-column: 1 / -1; }
}
.frame-name, .frame-fact { hyphens: auto; overflow-wrap: break-word; }

/* Asiakkaan logo 2026-10-23: tumma versio vaalealla pohjalla, vaalea kuvan ja tumman päällä */
.brand { max-width: none; display: block; line-height: 0; }
.logo { height: 52px; width: auto; }
.site-header:not(.on-light) .logo-tumma, .site-header.on-light .logo-vaalea { display: none; }
.site-header { align-items: center; padding-top: 18px; padding-bottom: 18px; }
@media (max-width: 1000px) { .logo { height: 44px; } }
@media (max-width: 700px) { .logo { height: 38px; } }
.footer-name { display: block; line-height: 0; }
.footer-logo { width: min(340px, 100%); height: auto; }
/* Header 1001-1199 px: logo vei tilaa, valikko jakautui kahdelle riville. Puhelinnumero pois tältä väliltä (löytyy chat-paneelista ja footerista) */
.header-actions .btn { white-space: nowrap; }
@media (min-width: 1001px) and (max-width: 1199px) {
  .header-tel { display: none; }
  .logo { height: 46px; }
  .site-header { gap: 20px; }
}
/* Yhteystiedot: pidempi ingressi pienemmällä (käyttäjä 2026-10-23) */
.yhteys-head .lead { font-size: var(--step-body); max-width: 52ch; line-height: 1.5; }
