/* Self-hosted variable fonts (SIL Open Font License 1.1, see /fonts/).
   Archivo: headings. Manrope: body text. Fraunces italic: single accent words.
   Figtree: contact form, dialogs and privacy notice. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  scrollbar-gutter: stable;
  --paper: #f7f5f2;
  --white: #fff;
  --ink: #111;
  --muted: #514b44;
  --line: #dcd5cb;
  --orange: #f5852e;
  --orange-dark: #963b05;
  --radius: 10px;
  --ease-out: cubic-bezier(.2, .65, .3, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-reveal: 600ms;
  --dur-draw: 500ms;
  --reveal-distance: 1.25rem;
  --ease-ui: var(--dur-fast) var(--ease-out);
  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  --section-space: clamp(3.5rem, 7vw, 6.5rem);
  --header-height: 89px;
  scroll-padding-block-start: calc(var(--sticky-offset, var(--header-height)) + .75rem);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-accent: "Fraunces", Georgia, serif;
  --font-form: "Figtree", system-ui, sans-serif;
  /* Yläraja 5rem: 5.25rem:llä "kirvesmiestyöt" (≈584 px) ei mahtunut 36rem:n .hero-copyyn ja katkesi ≥1460 px:n näytöillä. */
  --text-h1: clamp(2.75rem, 5.6vw, 5rem);
  --text-h2: clamp(2rem, 4.2vw, 3.5rem);
  --text-h3: 1.25rem;
  --text-h4: 1.0625rem;
  --text-small: .875rem;
  font-family: var(--font-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; }
img { display: block; max-inline-size: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

:focus-visible {
  outline: 3px solid #1263b0;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset: .75rem auto auto .75rem;
  padding: .7rem 1rem;
  background: var(--white);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 76rem);
  margin-inline: auto;
}

.icon-library {
  position: absolute;
  inline-size: 0;
  block-size: 0;
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button {
  display: inline-flex;
  min-height: 3.125rem;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .65rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.25;
  transition: transform var(--ease-ui);
}

.button .icon, .service-link .icon, .hero-caption .icon { transition: transform var(--ease-ui); }
.button:active:not(:disabled) { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):hover .icon:has(use[href="#i-arrow"]),
  .service-link:hover .icon,
  .hero-caption a:hover .icon { transform: translateX(3px); }
}

.button-primary { background: var(--orange); color: var(--ink); }
.button-primary:hover { background: #ff9c52; }
.cta {
  box-shadow: inset 0 1px #ffffff33, 0 2px 4px #140d0b20;
  transition: transform var(--ease-ui), box-shadow var(--ease-ui), background-color var(--ease-ui), border-color var(--ease-ui);
}

.cta-quote {
  border-color: #ffa05a;
  color: var(--ink);
  background: linear-gradient(180deg, #ffae70, #f5852e);
}

.cta-call {
  border-color: #b97d56;
  color: #fff3e8;
  background: #2b2019;
}

.cta-call .icon { color: #ffae70; }
.cta-email {
  border-color: #bc9c84;
  color: var(--ink);
  background: #fffdfa;
}

@media (hover: hover) and (pointer: fine) {
  .cta-quote:hover { background: linear-gradient(180deg, #ffbf90, #ff9b51); }
  .cta-call:hover { border-color: #ffae70; background-color: #3e2d22; }
  .cta-email:hover { border-color: var(--orange-dark); background-color: #fff3e6; }
}

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid #ffffff24;
}

/* Logo left, links and phone grouped on the right: the nav is never centred. */
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: calc(var(--header-height) - 1px);
  gap: clamp(1rem, 2.4vw, 2rem);
}

/* The logo file is a square on black; the crop keeps roof, TMI and the name, and lighten melts its edge into the header. */
.brand {
  justify-self: start;
  display: block;
  width: 10.5rem;
  max-width: 100%;
  aspect-ratio: 2.1;
  overflow: hidden;
}

.brand picture, .brand img {
  display: block;
  width: 100%;
  height: 100%;
}
.brand img { object-fit: cover; object-position: 50% 31%; mix-blend-mode: lighten; }

.site-header nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(.35rem, 1.6vw, 1.5rem);
}

.site-header nav a {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: .25rem;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-header nav a::after {
  position: absolute;
  inset: auto .25rem .35rem;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

.site-header nav a:focus-visible { color: #ffc18f; }
.site-header nav a:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .site-header nav a:hover { color: #ffc18f; }
  .site-header nav a:hover::after { transform: scaleX(1); }
}
.header-call {
  position: relative;
  justify-self: end;
  min-height: 2.75rem;
  margin-inline-start: clamp(.5rem, 1.2vw, 1rem);
  border-radius: 4px;
  white-space: nowrap;
}
/* Hairline between the links and the phone button. */
.header-call::before {
  content: "";
  position: absolute;
  inset: .2rem auto .2rem calc(-1 * clamp(.75rem, 1.8vw, 1.5rem));
  width: 1px;
  background: #ffffff24;
}

.site-header :focus-visible,
.hero :focus-visible,
.trust :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: #ffac63;
  box-shadow: 0 0 0 3px #111;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--white);
  background: #151311;
  border-bottom: 3px solid var(--orange);
}

.hero-photo, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero::after {
  content: "";
  background: linear-gradient(90deg, #100e0cf5 0%, #100e0cee 25%, #100e0ca6 52%, #100e0c29 79%, #100e0c14);
}

.hero-drawing {
  position: absolute;
  inset: auto var(--gutter) 36% auto;
  width: clamp(8rem, 22vw, 19rem);
  color: #ffc18f;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: .8;
  pointer-events: none;
}

.hero-drawing-line { transform-origin: 18px center; }

.hero-inner {
  display: grid;
  align-items: center;
  min-height: clamp(36rem, 49vw, 44rem);
  padding-block: 3.75rem 4.25rem;
}

.hero-copy { max-width: 36rem; }

.hero-name {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-block-end: 1.2rem;
  font-size: 1rem;
  font-weight: 720;
}

.hero-name::before {
  content: "";
  width: 1.5rem;
  height: 3px;
  background: var(--orange);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 750; line-height: 1.1; overflow-wrap: anywhere; }

h1 {
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.038em;
}

.hero h1 span { color: #ffd5ac; }

/* One accent word per heading, set in Fraunces italic. */
.hero h1 span,
#luottamus-title span {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 560;
  letter-spacing: -.025em;
}

.hero-lead {
  margin-block-start: 1.3rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 720;
}

.hero-text {
  max-width: 45ch;
  margin-block-start: .55rem;
  color: #f5f1eb;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.05rem;
  margin-block-start: 1.6rem;
}

.hero-phone {
  display: inline-grid;
  place-items: center;
  min-block-size: 2.75rem;
  border-radius: 4px;
  font-weight: 650;
  text-underline-offset: .24em;
}

.hero-phone:is(:hover, :focus-visible) { color: #ffd5ac; }

.hero-caption {
  position: absolute;
  inset: auto 0 1.35rem;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.hero-caption a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 2.75rem;
  padding: .35rem .75rem;
  border-radius: 6px;
  background: #111e;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}

.hero-caption a:hover { text-decoration: underline; }

.section { padding-block: var(--section-space); }
h2 { font-size: var(--text-h2); line-height: 1.04; letter-spacing: -.032em; }
h3 { font-size: var(--text-h3); font-weight: 700; line-height: 1.2; letter-spacing: -.014em; }
h4 { font-size: var(--text-h4); font-weight: 700; line-height: 1.25; letter-spacing: -.006em; }
small { font-size: var(--text-small); }

/* Contact form, dialogs and privacy notice keep their original type (Figtree
   text, system-ui headings), independent of the site type scale above. */
.contact-flow, .contact-dialog, .contact-fab, .privacy-dialog, .privacy-page { font-family: var(--font-form); }
.contact-form h3,
.contact-dialog-heading h2,
.privacy-heading :is(h1, h2) {
  font-family: system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.1;
}
.contact-form h3 { font-size: 1.2rem; letter-spacing: -.018em; }
.contact-dialog-heading h2, .privacy-heading h2 { letter-spacing: -.045em; }
.privacy-heading h1 { line-height: 1.01; letter-spacing: -.052em; }

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  align-items: end;
  gap: 1rem 2rem;
  margin-block-end: clamp(1.5rem, 3vw, 2.75rem);
}

.section-heading > p,
.area-copy > p:not(.area-note),
.about-copy > p,
.contact-details > p:not(.eyebrow) {
  max-width: 55ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-block: 0 .65rem;
  color: var(--orange-dark);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }

.trust-bar {
  border-block-end: 1px solid var(--line);
  background: var(--white);
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem clamp(1rem, 3vw, 2.25rem);
  padding-block: .85rem;
}

.trust-bar-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem clamp(1rem, 3vw, 2.25rem);
  padding: 0;
  list-style: none;
  color: #362d25;
  font-size: .9rem;
  font-weight: 650;
}

.trust-bar-list li { display: flex; align-items: center; gap: .6rem; }
.trust-bar-list li::before { content: ""; flex: none; width: .35rem; height: .35rem; background: var(--orange); }

.lk-logo { display: inline-block; flex: none; line-height: 0; }
.lk-logo img { width: auto; height: 2.75rem; }
.trust-bar .lk-logo img { height: 2.5rem; }

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.service {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 2px #3b28140a;
  overflow: clip;
  overflow-wrap: break-word;
  transition: border-color var(--ease-ui);
}

/* Kuva, otsikko, teksti ja linkki asettuvat samalle linjalle kaikissa rivin korteissa. */
@supports (grid-template-rows: subgrid) {
  .service { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
}

.service-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ded5c7;
}

.service-image picture { position: absolute; inset: 0; display: block; }
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.22, 1, .36, 1);
}
.service-image-kitchen img { object-position: center 44%; }
.service-image-deck img { object-position: center 63%; }

.service h3 {
  padding: 1.1rem 1.15rem 0;
  font-size: 1.15rem;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
}

.service-text { padding: .55rem 1.15rem 1rem; }
.service-text p { color: var(--muted); font-size: .95rem; }
.service ul {
  display: grid;
  gap: .35rem;
  margin-block-start: .85rem;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: .875rem;
}
.service li { display: flex; align-items: baseline; gap: .55rem; }
.service li::before { content: ""; flex: 0 0 .55rem; height: 1px; background: var(--orange-dark); transform: translateY(-.22em); }

.service-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  gap: .45rem;
  min-height: 2.75rem;
  margin: 0 1.15rem .7rem;
  padding-block-start: .55rem;
  border-top: 1px solid var(--line);
  color: var(--orange-dark);
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.35;
  position: relative;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .18em;
  transition: text-decoration-color var(--ease-ui);
}

/* The divider above the link draws in orange when the card is hovered or focused. */
.service-link::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-draw) var(--ease-out);
}

.service-link .icon { flex: none; }
.service-link:focus-visible { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .service-link:hover { text-decoration-color: currentColor; }
}
/* Palvelukortti nousee kevyesti ja saa pehmeän varjon. Ei skaalausta, ei kiertoa. Sama tila näppäimistöfokukselle. */
.service {
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.service:has(:focus-visible) {
  border-color: #c58e66;
  box-shadow: 0 10px 28px -12px #3b281440, 0 2px 6px #3b28140f;
  transform: translateY(-2px);
}
.service:has(:focus-visible) .service-link::before { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .service:hover {
    border-color: #c58e66;
    box-shadow: 0 10px 28px -12px #3b281440, 0 2px 6px #3b28140f;
    transform: translateY(-2px);
  }
  .service:hover .service-link::before { transform: scaleX(1); }
}

@media (min-width: 68.75rem) {
  .services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 36rem) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .service-image { aspect-ratio: 3 / 2; }
}

.trust {
  background: #181715;
  color: var(--white);
}

.trust-grid, .area-grid, .contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.trust-grid { align-items: center; }
.trust h2 { max-width: 15ch; }

.trust-list {
  margin-block-start: 1.6rem;
  padding: 0;
  list-style: none;
  color: #ece5dd;
}

.trust-list li {
  display: grid;
  grid-template-columns: .35rem 1fr;
  column-gap: .8rem;
  align-items: baseline;
  max-width: 47ch;
  margin-block-start: .65rem;
}

.trust-list li::before {
  content: "";
  width: .35rem;
  height: .35rem;
  background: var(--orange);
  transform: translateY(-.14em);
}

.trust-list li:last-child { display: block; }
.trust-list li:last-child::before { display: inline-block; margin-inline-end: .8rem; }

.tax {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: #25211d;
  border: 1px solid #4d4236;
  border-inline-start: 3px solid var(--orange);
  border-radius: var(--radius);
}

.tax h3 { font-size: 1.55rem; }
.tax p { margin-block-start: .75rem; color: #ece5dd; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  margin-block-start: .55rem;
  color: #ffa663;
  font-weight: 720;
  text-underline-offset: .18em;
}

.text-link:hover { color: var(--white); }

/* Tiivis bento: työpöydällä 4 saraketta, mobiilissa 2. Kaikki 8 kuvaa täyttävät ruudukon ilman aukkoja:
   rivit 1–2 leveä (2×2) + kaksi pystykuvaa (1×2), rivi 3 kaksi pientä + puolikas, rivi 4 kaksi puolikasta. */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(12rem, 19vw, 17.5rem);
  grid-auto-flow: dense;
  gap: clamp(.5rem, 1.1vw, .9rem);
}

.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out);
}

.gallery-wide { grid-column: span 2; grid-row: span 2; }
.gallery-tall { grid-row: span 2; }
.gallery-half { grid-column: span 2; }
.gallery-item:target { border-color: var(--orange-dark); box-shadow: 0 0 0 2px var(--orange-dark); }

/* Kuva täyttää kehyksen ja skaalautuu sen sisällä; kehys itse ei muuta kokoa. */
.gallery-item picture {
  position: relative;
  display: block;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #ded5c7;
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 300ms var(--ease-out);
}
.gallery-kitchen img { object-position: center 47%; }
.gallery-garage img { object-position: center 59%; }

.gallery-caption {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .7rem .9rem;
  font-size: .9375rem;
  font-weight: 720;
  line-height: 1.3;
  /* anywhere (ei break-word): kuvateksti on flex, ja vain anywhere pienentää min-content-leveyttä 320 px:n näytöllä. */
  overflow-wrap: anywhere;
  /* Ei hyphens: auto: suomen tavutussanakirjan lataus maksoi mobiilissa ~1,4 s TBT:tä ensimmäisessä layoutissa. */
  hyphens: manual;
  transition: background-color 300ms var(--ease-out);
}

.gallery-caption .icon { flex: none; color: var(--orange-dark); }
.gallery-item:is(:focus-visible, :target) .gallery-caption { background: #f8ebdf; }
.gallery-item:focus-visible { box-shadow: 0 14px 32px -14px #3b281459; }
.gallery-item:focus-visible img { transform: scale(1.15); }
@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover { box-shadow: 0 14px 32px -14px #3b281459; }
  .gallery-item:hover img { transform: scale(1.15); }
  .gallery-item:hover .gallery-caption { background: #f8ebdf; }
}

@media (max-width: 56rem) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(11rem, 44vw, 17rem); }
  .gallery .gallery-wide { grid-column: 1 / -1; grid-row: span 1; }
  .gallery-caption { padding: .6rem .7rem; font-size: .875rem; }
}

.area {
  background: #efe9e1;
  border-block: 1px solid var(--line);
}

/* Näin työ etenee: mittanauha kulkee vaiheiden läpi, numerot ovat sen merkkipisteitä. */
.process h2 { max-width: 20ch; }
.process-steps {
  --node: 2.75rem;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-block-start: clamp(1.5rem, 3vw, 2.25rem);
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-steps::before,
.process-steps::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.process-steps::before {
  inset: calc(var(--node) / 2) 0 auto;
  height: .8rem;
  background:
    linear-gradient(#a8977f, #a8977f) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, #a8977f 0 1px, transparent 1px 3rem) 0 0 / 100% .8rem no-repeat,
    repeating-linear-gradient(90deg, #a8977f 0 1px, transparent 1px .6rem) 0 0 / 100% .4rem no-repeat;
}

.process-steps::after {
  inset: calc(var(--node) / 2 - 1px) 0 auto;
  height: 3px;
  background: var(--orange-dark);
  transform-origin: left center;
}

.process-steps li {
  --i: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .9rem .8rem;
  color: #362d25;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 620;
  line-height: 1.45;
  counter-increment: step;
}
.process-steps li:nth-child(2) { --i: 1; }
.process-steps li:nth-child(3) { --i: 2; }

.process-steps li::before {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  justify-self: start;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 2px solid var(--orange-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 .35rem #efe9e1;
  background: var(--orange);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  content: counter(step);
}

.process-icon {
  width: 1.9rem;
  height: 1.9rem;
  color: var(--orange-dark);
  stroke-dasharray: 1;
}

@media (max-width: 43rem) {
  .process-steps { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .process-steps::before {
    inset: 0 auto 0 calc(var(--node) / 2);
    width: .8rem;
    height: auto;
    background:
      linear-gradient(#a8977f, #a8977f) 0 0 / 1px 100% no-repeat,
      repeating-linear-gradient(180deg, #a8977f 0 1px, transparent 1px 3rem) 0 0 / .8rem 100% no-repeat,
      repeating-linear-gradient(180deg, #a8977f 0 1px, transparent 1px .6rem) 0 0 / .4rem 100% no-repeat;
  }
  .process-steps::after {
    inset: 0 auto 0 calc(var(--node) / 2 - 1px);
    width: 3px;
    height: auto;
    transform-origin: center top;
  }
  .process-steps li { grid-template-columns: var(--node) auto minmax(0, 1fr); align-items: center; }
  .process-steps li::before { grid-column: auto; }
}

/* Alue: paikkalista vasemmalla, kartta oikealla. Lista ja kartta korostavat toisiaan (site.js). */
@property --land {
  syntax: "<color>";
  inherits: true;
  initial-value: #f4eee6;
}

.area-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 5rem);
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  padding-block-start: clamp(2rem, 4vw, 3rem);
  border-block-start: 1px solid #d3c6b6;
}
.area-copy h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); letter-spacing: -.018em; }
.area-copy > p:not(.area-note), .about-copy > p, .contact-details > p:not(.eyebrow) { margin-block-start: 1rem; }
.area-places-title { margin-block: 1.75rem .35rem; font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1.55; letter-spacing: 0; }
.area-note { color: var(--muted); font-size: .95rem; }

.area-places {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block-start: .9rem;
  padding: 0;
  list-style: none;
}

.area-places:not(.is-interactive) li,
.area-places button {
  display: flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.75rem;
  padding: .45rem .7rem;
  border: 1px solid #887866;
  border-radius: 6px;
  color: #362d25;
  background: #f8f4ee;
  font: inherit;
  font-size: .875rem;
  font-weight: 680;
  overflow-wrap: anywhere;
}

.area-places button {
  cursor: pointer;
  transition: background-color var(--ease-ui), color var(--ease-ui), border-color var(--ease-ui), box-shadow var(--ease-ui);
}

.area-places:not(.is-interactive) li::before,
.area-places button::before {
  content: "";
  flex: none;
  width: .42rem;
  height: .42rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.area-places button.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.area-places button.is-active::before { border-color: var(--orange-dark); background: var(--orange); }
.area-places button[aria-pressed="true"] { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.area-places button[aria-pressed="true"]::before { border-color: var(--orange); background: var(--orange); }

.area-map {
  --land: #f4eee6;
  position: relative;
  border: 1px solid #b9a892;
  border-radius: var(--radius);
  background: #e3e8e6;
  overflow: hidden;
  transition: --land var(--dur-base) var(--ease-out);
}
.area-map.is-region { --land: #f8dcc4; }
.area-map svg { display: block; width: 100%; height: auto; }

.map-land { fill: var(--land); }
/* Aluerajat (Maanmittauslaitos, Kuntajako 1:1 000 000, CC BY 4.0): näkyvät vain valitulle alueelle. */
.map-area {
  fill: rgb(245 133 46 / .3);
  stroke: var(--orange-dark);
  stroke-width: 1.5;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}
.map-area.is-active { opacity: 1; }
.map-coast { fill: none; stroke: #7d7265; stroke-width: 1.25; stroke-linejoin: round; stroke-dasharray: 1; }
.map-land.map-coast { fill: var(--land); }
.map-river { fill: none; stroke: #9fb0b3; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; }
.map-sea-label { fill: #55676a; font-size: 12px; font-style: italic; letter-spacing: .08em; }
.map-region {
  fill: #6a5a48;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
}
.area-map.is-region .map-region { fill: var(--orange-dark); }
.map-scale path { fill: none; stroke: #55676a; stroke-width: 1.25; }
.map-scale text { fill: #55676a; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }

.map-place { cursor: pointer; transition: opacity 300ms var(--ease-out); }
.area-map.has-selection .map-place:not(.is-active) { opacity: .55; }
.map-hit { fill: transparent; }
.map-dot { fill: var(--ink); stroke: var(--land); stroke-width: 1.5; transition: fill var(--ease-ui); }
.map-place-home .map-dot { fill: var(--orange-dark); }
.map-ring {
  fill: none;
  stroke: var(--orange-dark);
  stroke-width: 1.5;
  opacity: 0;
  transform: scale(.5);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 300ms var(--ease-out), opacity 200ms var(--ease-out);
}
.map-label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 650;
  paint-order: stroke;
  stroke: var(--land);
  stroke-width: 3.5px;
  stroke-linejoin: round;
  user-select: none;
}
.map-place.is-active .map-dot { fill: var(--orange); stroke: var(--ink); }
.map-place.is-active .map-ring { opacity: 1; transform: none; }
.map-place.is-active .map-label { font-weight: 800; }

.map-credit {
  position: absolute;
  inset: auto auto 0 0;
  padding: .3rem .55rem;
  border-start-end-radius: 6px;
  color: #3f4b4d;
  background: #e9ecea;
  font-size: .7rem;
  line-height: 1.35;
  text-underline-offset: .15em;
  margin: 0;
  max-width: 100%;
}
.map-credit a { color: inherit; }
.map-credit a:focus-visible { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .map-credit a:hover { color: var(--ink); }
}

.area-map { container-type: inline-size; }
@container (max-width: 26rem) {
  .map-label { font-size: 15px; }
  .map-region, .map-sea-label, .map-scale text { font-size: 13px; }
}

@media (max-width: 49rem) {
  .area-grid { grid-template-columns: minmax(0, 1fr); }
  .area-map { max-inline-size: 32rem; }
}

/* Tietoa minusta: raskas otsikko, kovat linjat, ei pyöristyksiä. */
.about {
  background: var(--white);
  border-block-end: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.25rem) 1.5rem;
}

.about-grid > h2 {
  grid-column: 1 / -1;
  padding-block-end: 1rem;
  border-block-end: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw + .5rem, 5rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.about-copy { grid-column: 1 / span 7; }
.about-copy > p { max-width: 58ch; }
.about-copy > p:first-child {
  margin-block-start: 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
}

.lk-box {
  grid-column: 9 / -1;
  display: grid;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.lk-box > * { padding: 1rem 1.15rem; }
.lk-box > * + * { border-block-start: 1px solid var(--ink); }
.lk-box .lk-logo { display: block; }
.lk-box .lk-logo img { height: 4.25rem; }
.lk-text { display: grid; gap: .6rem; }
.lk-text p { color: var(--muted); }
.lk-text p:first-child { color: var(--ink); font-weight: 650; }

.lk-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 3rem;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  transition: background-color var(--ease-ui), color var(--ease-ui);
}
.lk-link .icon { flex: none; }
.lk-link:focus-visible { color: var(--paper); background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .lk-link:hover { color: var(--paper); background: var(--ink); }
}

.about-company {
  grid-column: 1 / -1;
  padding-block: .75rem;
  border-block-start: 2px solid var(--ink);
  border-block-end: 1px solid var(--ink);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.about-company span { font-weight: 850; white-space: nowrap; }

@media (max-width: 56rem) {
  .about-copy, .lk-box { grid-column: 1 / -1; }
}

/* Yhteyshenkilö: kuva on koko tietolohkon korkuinen (rajaus object-fitillä). Kapeassa sarakkeessa kuva siirtyy tietojen yläpuolelle. */
.contact-details { container-type: inline-size; }
.contact-person {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 36rem;
  margin-block-start: 1.6rem;
}

.contact-person-photo { position: relative; display: block; min-height: 14rem; overflow: hidden; border-radius: 6px; background: #ded5c7; }
.contact-person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.contact-person-details { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.contact-person-name { display: grid; gap: .1rem; line-height: 1.3; }
.contact-person-name strong { font-size: 1.15rem; font-weight: 780; }
.contact-person-name span { color: var(--muted); font-weight: 600; }
.contact-person address { margin-block-start: .85rem; font-style: normal; }
.contact-person dl { display: grid; gap: .1rem; margin: 0; }
.contact-person dt { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-person dd { margin: 0 0 .35rem; font-weight: 650; overflow-wrap: anywhere; }
.contact-person dd a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .55rem;
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  font-weight: 720;
  text-underline-offset: .2em;
}
.contact-person dd a .icon { flex: none; width: 1.25rem; height: 1.25rem; color: var(--orange-dark); }
.contact-person dd a:hover { color: var(--orange-dark); }
@container (max-width: 31rem) {
  .contact-person { grid-template-columns: minmax(0, 1fr); max-width: 26rem; }
  .contact-person-photo { min-height: 0; aspect-ratio: 4 / 3; }
}

.contact-flow {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}

.contact-switch:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .25rem;
  margin-block-end: 1.3rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-switch-button {
  min-block-size: 2.75rem;
  padding: .35rem .4rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.25;
}
.contact-switch-button:hover { color: var(--ink); background: var(--white); }
.contact-switch-button[aria-pressed="true"] {
  border-color: #d8ac8e;
  background: #fff3e8;
  color: var(--orange-dark);
}

.contact-form:not([hidden]) + .contact-form:not([hidden]) { margin-block-start: 1.4rem; }
.contact-form h3 { margin-block-end: .65rem; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-fields { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block-start: 1rem;
}

.form-grid label { display: block; margin-block-end: .3rem; font-weight: 680; }
.full-field { grid-column: 1 / -1; }

.form-grid :is(input, select, textarea) {
  width: 100%;
  min-inline-size: 0;
  min-height: 2.8rem;
  padding: .6rem .7rem;
  border: 1px solid #92887b;
  border-radius: 6px;
  color: var(--ink);
  background: #fdfcfb;
}

.form-grid textarea { display: block; resize: vertical; }
.form-grid textarea::placeholder { color: #685e52; opacity: 1; }
.form-privacy-check {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-block-start: 1rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: .95rem;
}
.form-privacy-check input {
  flex: none;
  inline-size: 1.5rem;
  block-size: 1.5rem;
  margin: 0;
  accent-color: var(--orange-dark);
}
.form-privacy-check label, .form-privacy-check input { cursor: pointer; }
.form-privacy-check a, .privacy-content a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.form-privacy-check a { font-weight: 700; }
.form-submit { margin-block-start: 1.15rem; }
.form-submit[aria-disabled="true"] { opacity: .65; cursor: wait; }
.form-status:not(:empty) { margin-block-start: .65rem; font-weight: 650; }

.contact-fab {
  position: fixed;
  z-index: 4;
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  inline-size: 10.75rem;
  max-inline-size: calc(100% - 2rem);
  padding-inline: .75rem;
  border-color: #aa5218;
  box-shadow: 0 .3rem 1rem #21181035;
}
.contact-fab[hidden] { display: none; }
html:has(.contact-fab:not([hidden])) {
  --contact-fab-clearance: calc(4.75rem + env(safe-area-inset-bottom));
  scroll-padding-block-end: var(--contact-fab-clearance);
}

.contact-dialog, .privacy-dialog, .privacy-page {
  padding: 0;
  border: 1px solid var(--line);
  border-block-start: 4px solid var(--orange);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  overflow-wrap: anywhere;
}
.privacy-dialog, .privacy-page { max-inline-size: 39rem; }
.contact-dialog, .privacy-dialog {
  inline-size: calc(100% - 2rem);
  box-shadow: 0 1.5rem 5rem #0b080650;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 5.5rem 1rem;
}
.privacy-dialog { max-block-size: min(42rem, 100dvh - 2rem); }
.contact-dialog {
  --contact-dialog-gutter: clamp(1rem, 4vw, 2rem);
  max-inline-size: 35rem;
  max-block-size: min(48rem, 100dvh - 2rem);
}
.contact-dialog::backdrop, .privacy-dialog::backdrop { background: #100e0bd6; }
html:has(:is(.contact-dialog, .privacy-dialog)[open]) { overflow: hidden; }
.privacy-page { margin-block: clamp(1.25rem, 7vw, 5rem); }
.contact-dialog-heading, .privacy-heading {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  border-block-end: 1px solid var(--line);
  background: var(--paper);
}
.privacy-heading :is(h1, h2) { font-size: clamp(1.4rem, 5vw, 2.15rem); }
.contact-dialog-heading h2 { font-size: clamp(1.35rem, 4.75vw, 1.9rem); }
:is(.contact-dialog-close, .privacy-close).icon-button { color: var(--ink); background: var(--white); border-color: var(--line); }
:is(.contact-dialog-close, .privacy-close).icon-button:hover { background: #f8ebdf; }

.contact-success {
  padding: 1.2rem var(--contact-dialog-gutter) 1.5rem;
}
.contact-success > p { color: var(--muted); }
.contact-success > .icon {
  display: block;
  margin-block-end: .85rem;
  padding: .48rem;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: 50%;
  background: #fff3e8;
  color: var(--orange-dark);
}
.contact-success .button { margin-block-start: 1.15rem; }

.privacy-content { margin: 0; padding: 1.25rem clamp(1rem, 4vw, 2rem) 1.75rem; }
.privacy-content dt { font-weight: 750; }
.privacy-content dt:not(:first-child) { margin-block-start: 1rem; }
.privacy-content dd { margin: .25rem 0 0; color: var(--muted); }
.privacy-return { margin: 0 clamp(1rem, 4vw, 2rem) 1.5rem; }

.site-footer {
  padding-block: clamp(2rem, 4.5vw, 4rem) 1rem;
  color: #f3ede6;
  background: #171412;
}
html:has(.contact-fab:not([hidden])) .site-footer { padding-block-end: var(--contact-fab-clearance); }

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.18fr) minmax(0, .77fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-block-start: 1px solid #89644a;
  border-block-end: 1px solid #4f4239;
}

.footer-grid::before, .footer-grid::after {
  position: absolute;
  inset-block-start: -.4rem;
  width: 1px;
  height: .75rem;
  transform: rotate(25deg);
  background: var(--orange);
  content: "";
}

.footer-grid::before { inset-inline-start: 0; }
.footer-grid::after { inset-inline-end: 0; }

.footer-identity {
  display: flex;
  align-items: flex-end;
  gap: clamp(.85rem, 1.8vw, 1.5rem);
  min-width: 0;
  color: #cfc2b5;
  font-size: .9rem;
}

.footer-logo {
  flex: none;
  width: clamp(5.5rem, 10vw, 8.25rem);
  overflow: hidden;
  border: 1px solid #544438;
  border-radius: 6px;
  background: #000;
}

.footer-logo picture { display: block; }
.footer-logo img { width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.footer-logo:hover { border-color: var(--orange); }
.lk-logo-footer { display: block; width: fit-content; margin-block-start: .7rem; margin-inline-start: clamp(.6rem, 1.5vw, 1.25rem); }
.lk-logo-footer img { display: block; }
.footer-name {
  margin-block-end: .35rem;
  color: var(--white);
  font-size: clamp(1.1rem, 1.85vw, 1.45rem);
  font-weight: 780;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.footer-heading {
  margin-block-end: .3rem;
  color: #f4c6a3;
  font-size: .78rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-contact { display: grid; justify-items: start; font-style: normal; font-weight: 650; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; list-style: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
  padding-block-start: .45rem;
  color: #cfc2b5;
  font-size: .85rem;
}

.footer-bottom small { font-size: inherit; }
.footer-links { display: flex; flex-wrap: wrap; column-gap: clamp(1rem, 3vw, 2.5rem); }
.footer-contact a, .footer-nav a, .footer-links a {
  display: inline-flex;
  min-height: 2.75rem;
  max-width: 100%;
  align-items: center;
  gap: .5rem;
  overflow-wrap: anywhere;
  text-decoration: none;
  text-underline-offset: .22em;
}

.footer-nav a { min-width: 2.75rem; }
.footer-links [data-privacy-link] { text-decoration: underline; }
.footer-contact a:is(:hover, :focus-visible),
.footer-nav a:is(:hover, :focus-visible),
.footer-links a:is(:hover, :focus-visible) { color: #ffb57f; text-decoration: underline; }
.footer-contact .icon, .footer-top .icon { color: var(--orange); }
.footer-top .icon { transform: rotate(-90deg); }

@media (max-width: 56rem) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-identity { grid-column: 1 / -1; }
}

@media (max-width: 34rem) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { display: grid; justify-content: start; }
  .footer-bottom small { padding-block-start: .65rem; }
}

.lightbox {
  width: min(65rem, 100% - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 1px solid #6d655a;
  border-radius: var(--radius);
  color: var(--white);
  background: #161412;
  overflow: auto;
}

.lightbox::backdrop { background: #000d; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox-inner { padding: .75rem; }

.lightbox-bar, .lightbox-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.lightbox-bar { justify-content: space-between; margin-block-end: .65rem; }
.lightbox-controls { justify-content: center; margin-block-start: .65rem; }
.lightbox-caption { padding-inline-start: .3rem; font-weight: 700; }
.lightbox-count { min-width: 3.5rem; text-align: center; }
.lightbox-stage { display: grid; place-items: center; background: #0b0a09; }
.lightbox-stage picture { width: 100%; }
.lightbox-stage img { width: 100%; height: min(68dvh, 45rem, 74vw); object-fit: contain; }

.icon-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--white);
  background: #332b24;
  border: 1px solid #998675;
  border-radius: 7px;
}

.icon-button:hover { color: var(--ink); background: var(--orange); }

.thanks-page { display: grid; align-items: center; min-height: 100svh; }
.thanks { max-width: 38rem; margin-inline: auto; padding: clamp(1.5rem, 6vw, 4rem); background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--orange); }
.thanks p:not(.eyebrow) { margin-block: 1rem 1.5rem; }

/* Scroll reveal (site.js lisää .js-reveal ja vaihtaa .is-visible päälle/pois). Vain opacity + translate;
   erillinen translate-ominaisuus ei riko palvelukortin hover-transformia. Ilman JS:ää, tulosteessa ja
   reduced motionilla sisältö näkyy. Lomake (.contact-flow) on rajattu pois. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] {
    transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js-reveal .service[data-reveal] {
    transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out),
      border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 220ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js-reveal .gallery-item[data-reveal] {
    transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out),
      box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js-reveal [data-reveal]:not(.is-visible):not(:focus-within):not(.contact-flow *) {
    opacity: 0;
    translate: 0 var(--reveal-distance);
  }
}

/* Näin työ etenee -silmukka (site.js asettaa data-step 0–3). Viiva täyttyy vaiheesta toiseen, numero täyttyy
   ja vaiheen kuvake piirtyy. Teksti pysyy aina luettavana. Ilman data-stepiä = staattinen lopputila. */
@media screen and (prefers-reduced-motion: no-preference) {
  .process-steps[data-step] { --fill: 1; }
  .process-steps[data-step="0"] { --fill: 0; }
  .process-steps[data-step="1"] { --fill: .12; }
  .process-steps[data-step="2"] { --fill: .46; }
  .process-steps[data-step]::after { transform: scaleX(var(--fill)); transition: transform 700ms cubic-bezier(.45, 0, .25, 1); }
  .process-steps[data-step] li::before { transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out); }
  .process-steps[data-step] .process-icon { transition: stroke-dashoffset 550ms var(--ease-out) 150ms, opacity 250ms var(--ease-out) 150ms; }
  .process-steps[data-step] .process-text { transition: color 300ms var(--ease-out); }
  :is(.process-steps[data-step="0"] li, .process-steps[data-step="1"] li:nth-child(n+2), .process-steps[data-step="2"] li:nth-child(3))::before { color: var(--orange-dark); background: #efe9e1; }
  :is(.process-steps[data-step="0"] li, .process-steps[data-step="1"] li:nth-child(n+2), .process-steps[data-step="2"] li:nth-child(3)) .process-icon { stroke-dashoffset: 1; opacity: .3; transition-delay: 0ms; }
  :is(.process-steps[data-step="0"] li, .process-steps[data-step="1"] li:nth-child(n+2), .process-steps[data-step="2"] li:nth-child(3)) .process-text { color: #6b5d50; }
}
@media screen and (prefers-reduced-motion: no-preference) and (max-width: 43rem) {
  .process-steps[data-step]::after { transform: scaleY(var(--fill)); }
}

/* Kartta: rantaviiva piirtyy, maa häivittyy esiin, joet ja paikat seuraavat. Lopputila = staattinen tila. */
@media screen and (prefers-reduced-motion: no-preference) {
  .js-map .area-map:not(.is-drawn) :is(.map-coast, .map-river) { stroke-dashoffset: 1; }
  .js-map .area-map:not(.is-drawn) :is(.map-land, .map-place, .map-region, .map-sea-label, .map-scale) { opacity: 0; }
  .js-map .area-map.is-drawn .map-land { transition: opacity 300ms var(--ease-out) 200ms; }
  .js-map .area-map.is-drawn .map-coast { transition: stroke-dashoffset 700ms cubic-bezier(.45, 0, .25, 1), opacity 300ms var(--ease-out) 200ms; }
  .js-map .area-map.is-drawn .map-river { transition: stroke-dashoffset 450ms var(--ease-out) 350ms; }
  .js-map .area-map.is-drawn :is(.map-region, .map-sea-label, .map-scale) { transition: opacity 300ms var(--ease-out) 450ms; }
  .js-map .area-map.is-drawn .map-place { transition: opacity 250ms var(--ease-out) calc(550ms + var(--i, 0) * 50ms); }
  /* Valinnan himmennys ei saa periä piirtymisen viivettä. */
  .js-map .area-map.is-drawn.has-selection .map-place { transition: opacity 300ms var(--ease-out); }
}

/* Ikkunat: lyhyt avautuminen, sulkeutuminen välitön. */
@keyframes dialog-in { from { opacity: 0; transform: scale(.98); } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes picture-in { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open], .privacy-dialog[open] { animation: dialog-in 180ms var(--ease-out); }
  .lightbox[open]::backdrop, .privacy-dialog[open]::backdrop { animation: backdrop-in 180ms var(--ease-out); }
  .lightbox-stage picture { animation: picture-in var(--dur-fast) var(--ease-out); }
}

/* Heron mittaviiva piirtyy kerran latauksessa: ensin päätymerkit, sitten viiva. Vain SVG, ei vaikuta LCP-kuvaan. */
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-drawing path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 300ms var(--ease-out) 300ms forwards; }
  .hero-drawing .hero-drawing-line { animation-duration: 600ms; animation-delay: 450ms; }
}

/* Kelluvan napin tekstinvaihto: 150 ms ristihäivytys. Reduced motion -tilassa vaihto ei käynnisty lainkaan (site.js). */
@media (prefers-reduced-motion: no-preference) {
  .contact-fab span { transition: opacity var(--dur-fast) var(--ease-out); }
  .contact-fab span.is-swapping { opacity: 0; }
}

/* Header: ohut varjo, kun sivua on vieritetty. Piiloutuu alas vieritettäessä ja palaa ylös vieritettäessä (site.js). */
.site-header { transition: box-shadow var(--dur-base) var(--ease-out), transform 260ms var(--ease-out); }
.site-header.is-scrolled { box-shadow: 0 6px 18px -10px #000a; }
.site-header.is-hidden:not(:has(:focus-visible)) { transform: translateY(-101%); box-shadow: none; transition-duration: var(--dur-base), 200ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; transition-delay: 0s !important; }
  .button:active,
  .button .icon,
  .service-link .icon,
  .hero-caption .icon,
  .service img,
  .gallery-item img,
  .gallery-caption .icon,
  .map-ring { transform: none !important; }
}

@media (max-width: 56rem) {
  .hero::after { background: linear-gradient(90deg, #100e0cf5, #100e0cd9 40%, #100e0c5c 85%); }
  .hero-drawing { bottom: 52%; }
}

@media (max-width: 56rem) {
  :root { --header-height: 109px; }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 .75rem;
  }

  .brand { width: 8.25rem; margin-block: .25rem; }
  .header-call { grid-column: 2; grid-row: 1; margin: 0; padding-inline: .75rem; font-size: .9rem; }
  .header-call::before { content: none; }
  .site-header nav { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; gap: 0; border-top: 1px solid #ffffff24; }
  .site-header nav a { padding-inline: .3rem; font-size: .76rem; letter-spacing: .06em; }
  .site-header nav a::after { inset-block-end: .45rem; }
}

@media (max-width: 43rem) {
  .header-call-label { display: none; }

  .hero-photo { bottom: auto; height: 24rem; }
  .hero-photo img { object-position: center 44%; }
  .hero::after { background: linear-gradient(180deg, #100e0c0d, #100e0c19 4.5rem, #151311a6 10rem, #151311 22rem); }
  .hero-inner { min-height: auto; padding-block: 9rem 2rem; }
  .hero-name { margin-block-end: .85rem; }
  h1 { font-size: clamp(2.1rem, 10.8vw, 4.25rem); }
  .hero-lead { margin-block-start: .95rem; }
  .hero-text { font-size: 1rem; }
  .hero-actions { margin-block-start: 1.25rem; }
  .hero-phone { display: none; }
  .hero-caption { display: none; }
  .hero-drawing { display: none; }

  .section-heading, .trust-grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .section-heading { gap: .65rem; }
  .trust-bar-inner, .trust-bar-list { flex-direction: column; align-items: flex-start; }

  .gallery-caption { padding: .65rem; font-size: .875rem; overflow-wrap: anywhere; hyphens: manual; }
}

@media (max-width: 25rem) {
  .contact-fab {
    inline-size: 9.25rem;
    gap: .4rem;
    padding-inline: .45rem;
    font-size: .9rem;
  }
  .form-grid { grid-template-columns: 1fr; }
  .form-submit { padding-inline: .65rem; }
  .form-submit .icon { display: none; }
}

@media (max-width: 25rem) and (min-height: 44rem) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 22rem) and (max-height: 44rem) {
  .hero-actions .cta-quote { gap: .35rem; padding-inline: .65rem; font-size: .875rem; }
}

@media (max-height: 22rem) {
  html { scroll-padding-block-start: .75rem; }
  .site-header, .contact-dialog-heading, .privacy-heading { position: static; }
  .site-header.is-hidden:not(:has(:focus-visible)) { transform: none; }
  .contact-dialog, .privacy-dialog { scroll-padding-block: .75rem; }
}
