:root {
  --background: #f3efe9;
  --foreground: #201d1a;
  --ink: #201d1a;
  --rust: #ad4b18;
  --muted: #66605b;
  --line: #d1c7ba;
  --border: #d1c7ba;
  --primary: #201d1a;
  --primary-foreground: #ffffff;
  --ring: #bd5922;
  --radius: 0;
}

@layer base {
  * { box-sizing: border-box; border-color: var(--border); }
  html { scroll-behavior: smooth; background: var(--background); }
  body { margin: 0; background: var(--background); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
  img { display: block; max-width: 100%; }
  a { color: inherit; }
  ::selection { background: var(--rust); color: #fff; }
}

#idea, #palvelut, #tyonaytteet, #yhteys { scroll-margin-top: 6.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  min-height: 6.5rem;
  align-items: center;
  justify-content: space-between;
  padding: .9rem clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.brand { display: block; width: min(29rem, 64vw); }
.brand img { width: 100%; height: auto; }
.brand-logo { filter: brightness(1.045) contrast(1.04); }

.menu { position: relative; }
.menu summary {
  display: grid;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  list-style: none;
  place-content: center;
  gap: .34rem;
  border: 1px solid var(--ink);
  background: #fff;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 1.2rem; height: 1px; background: var(--ink); }
.menu nav {
  position: absolute;
  top: calc(100% + .7rem);
  right: 0;
  display: grid;
  width: 14rem;
  border: 1px solid var(--ink);
  background: #fff;
}
.menu nav a {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}
.menu nav a:last-child { border-bottom: 0; }
.menu nav a:hover, .menu nav a:focus-visible { color: var(--rust); }

.story-hero {
  position: relative;
  min-height: clamp(56rem, 75vw, 67.5rem);
  overflow: hidden;
  background: var(--background);
}
.hero-menu {
  position: fixed;
  z-index: 20;
  top: clamp(1.1rem, 2vw, 2rem);
  right: clamp(1.1rem, 2.2vw, 2.4rem);
}
.hero-menu summary {
  border-color: rgba(32, 29, 26, .58);
  background: rgba(243, 239, 233, .92);
  box-shadow: 0 .45rem 1.2rem rgba(71, 45, 29, .08);
  backdrop-filter: blur(7px);
}
.hero-menu nav { background: rgba(243, 239, 233, .98); }
.story-hero-brand {
  position: absolute;
  z-index: 5;
  top: clamp(1.8rem, 3.3vw, 3.4rem);
  left: 42.6%;
  display: grid;
  width: min(43vw, 35rem);
  color: var(--ink);
  text-decoration: none;
}
.story-hero-brand img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.story-hero-brand span {
  display: grid;
  margin: clamp(-.45rem, -.5vw, -.2rem) 0 0 12%;
  grid-template-columns: minmax(2rem, 1fr) auto minmax(2rem, 1fr);
  align-items: center;
  gap: .9rem;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(.85rem, 1.55vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.story-hero-brand i { height: 1px; background: var(--ink); opacity: .7; }
.story-hero-photo {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  height: 100%;
}
.story-hero-photo::after {
  position: absolute;
  inset: 0 -4rem 0 45%;
  background: linear-gradient(90deg, rgba(243,239,233,0) 0%, rgba(243,239,233,.06) 30%, rgba(243,239,233,.22) 58%, rgba(243,239,233,.68) 83%, #f3efe9 100%);
  content: "";
  pointer-events: none;
}
.story-hero-photo img {
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}
.story-hero-content {
  position: absolute;
  z-index: 4;
  top: clamp(11.8rem, 15.5vw, 14.5rem);
  left: 42.6%;
  width: min(47vw, 42rem);
  padding-bottom: 3rem;
}
.story-hero-content h1 {
  margin: 0;
  font-family: Rockwell, "Bookman Old Style", Georgia, "Times New Roman", serif;
  font-size: clamp(3.45rem, 5.2vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .89;
}
.story-hero-accent {
  width: clamp(4.4rem, 6.6vw, 6.3rem);
  height: 2px;
  margin: 1.35rem 0 1.15rem;
  background: var(--rust);
}
.story-hero-body {
  max-width: 38rem;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  line-height: 1.34;
}
.story-hero-body p { margin: 0 0 1.08rem; }
.story-hero-script {
  margin: .35rem 0 0;
  color: var(--rust);
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(2.25rem, 3.65vw, 3.7rem);
  font-style: italic;
  letter-spacing: -.055em;
  line-height: 1;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.story-hero-promise {
  display: flex;
  margin: .5rem 0 0 2.7rem;
  align-items: center;
  gap: .7rem;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: clamp(.95rem, 1.35vw, 1.18rem);
}
.story-hero-promise span { width: 1.9rem; height: 1px; background: #9d958b; }
.story-hero-button {
  display: inline-flex;
  min-width: clamp(14rem, 20vw, 17rem);
  min-height: 3.45rem;
  margin: 1.75rem 0 0 1.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .75rem 1.4rem .72rem 1.6rem;
  border: 2px solid #93400f;
  outline: 1px solid rgba(255,255,255,.56);
  outline-offset: -5px;
  background: #a84918;
  color: #fff9ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(72,38,19,.22);
  transition: transform .18s ease, background .18s ease;
}
.story-hero-button:hover,
.story-hero-button:focus-visible { background: #923b10; transform: translateY(-2px); }
.story-hero-button span:last-child { font-size: 1.8rem; font-weight: 300; line-height: 1; }
.story-hero-values {
  display: grid;
  width: min(100%, 40rem);
  margin-top: 2.05rem;
  grid-template-columns: .9fr 1fr 1.28fr;
  align-items: center;
}
.story-hero-value {
  display: grid;
  min-height: 5.2rem;
  grid-template-columns: clamp(2.8rem, 4.3vw, 4rem) minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  padding: 0 1rem;
  border-right: 1px solid #b9afa2;
}
.story-hero-value:first-child { padding-left: 0; }
.story-hero-value:last-child { padding-right: 0; border-right: 0; }
.story-hero-value svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.story-hero-value p {
  margin: 0;
  white-space: pre-line;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.65rem, .88vw, .78rem);
  line-height: 1.22;
  text-transform: uppercase;
}
.story-hero-pillar {
  position: absolute;
  z-index: 3;
  top: 3.5%;
  right: clamp(.65rem, 2vw, 2rem);
  width: auto;
  height: 93%;
  max-width: 10vw;
  object-fit: contain;
  filter: saturate(.9) contrast(1.04);
}

@media (max-width: 1060px) and (min-width: 761px) {
  .story-hero-brand { left: 39%; width: min(50vw, 33rem); }
  .story-hero-content { left: 40%; width: 52vw; }
  .story-hero-pillar { opacity: .32; }
  .story-hero-values { width: 100%; }
}

.hero {
  display: grid;
  max-width: 96rem;
  min-height: calc(100svh - 6.5rem);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.16fr) minmax(21rem, .84fr);
  align-items: stretch;
  gap: 0;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
}
.hero-copy { display: flex; max-width: 56rem; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 5vw, 5.5rem) clamp(2rem, 6vw, 7rem) clamp(4.5rem, 7vw, 7.5rem) 0; }
.hero-symbol { width: clamp(11rem, 17vw, 17rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); background: #fff; }
.hero-symbol img { width: 100%; height: auto; filter: brightness(1.045) contrast(1.04); }
.kicker, .section-label {
  margin: 0;
  color: var(--rust);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 10ch;
  margin: 1.4rem 0 0;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: clamp(4.3rem, 8.4vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .86;
}
.lead { max-width: 38rem; margin: 2.25rem 0 0; color: var(--muted); font-family: Baskerville, Georgia, serif; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.45; }
.text-link { display: inline-block; margin-top: 2rem; padding-bottom: .28rem; border-bottom: 1px solid currentColor; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.text-link:hover { color: var(--rust); }
.hero-image { position: relative; min-height: 42rem; margin: 0; overflow: hidden; border-left: 1px solid var(--line); background: #eee9e3; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(.82) contrast(.98); }
.hero-image figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; background: rgba(255, 255, 255, .92); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-pillar-image { display: grid; place-items: center; border-left-color: var(--line); background: #fff; }
.hero-pillar-image::before { position: absolute; top: 50%; left: 50%; width: min(90%, 32rem); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; content: ""; transform: translate(-50%, -50%); }
.hero-pillar-image img { position: relative; z-index: 1; width: auto; height: min(76vh, 46rem); object-fit: contain; filter: saturate(.78) contrast(1.04); }

.content-section,
.services-section,
.works-section,
.home-experiences,
.contact-section {
  max-width: 96rem;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
}
.two-column { display: grid; grid-template-columns: minmax(8rem, .42fr) minmax(0, 1.58fr); gap: 2rem; }
.two-column > div { max-width: 62rem; }
.content-section h2,
.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.5vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}
.content-section p:not(.section-label), .contact-copy > p:not(.section-label) { max-width: 48rem; margin: 2rem 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.about-intro-copy { max-width: 52rem !important; }
.content-section p.about-intro-lead { max-width: 44rem; margin-top: 2.25rem; color: #4d4945; font-family: Baskerville, Georgia, "Times New Roman", serif; font-size: clamp(1.12rem, 1.55vw, 1.28rem); line-height: 1.68; }
.content-section p.about-principle { max-width: 42rem; margin-top: 2.4rem; padding: 1.35rem 0 1.35rem 1.4rem; border-left: 2px solid var(--rust); color: var(--ink); font-family: Baskerville, Georgia, "Times New Roman", serif; font-size: clamp(1.45rem, 2.35vw, 2rem); line-height: 1.25; }
.about-more { max-width: 44rem; margin-top: 2.5rem; border-top: 1px solid #b9afa2; }
.about-more summary { display: flex; min-height: 4.25rem; cursor: pointer; list-style: none; align-items: center; justify-content: space-between; gap: 1rem; color: var(--rust); font: 700 .74rem/1 Arial, Helvetica, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.about-more summary::-webkit-details-marker { display: none; }
.about-more summary::marker { content: ""; }
.about-more-label span:last-child { display: none; }
.about-more[open] .about-more-label span:first-child { display: none; }
.about-more[open] .about-more-label span:last-child { display: inline; }
.about-more-symbol { position: relative; width: 2.55rem; height: 2.55rem; flex: 0 0 auto; border: 1px solid currentColor; border-radius: 50%; transition: transform .2s ease, background .2s ease, color .2s ease; }
.about-more-symbol::before,
.about-more-symbol::after { position: absolute; top: 50%; left: 50%; width: .85rem; height: 1px; background: currentColor; content: ""; transform: translate(-50%, -50%); }
.about-more-symbol::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.about-more summary:hover .about-more-symbol,
.about-more summary:focus-visible .about-more-symbol { background: var(--rust); color: #fff; }
.about-more[open] .about-more-symbol { transform: rotate(180deg); }
.about-more[open] .about-more-symbol::after { transform: translate(-50%, -50%) rotate(0); }
.about-more-content { counter-reset: about-detail; padding: .35rem 0 .5rem; animation: about-reveal .28s ease-out; }
.content-section .about-more-content p { position: relative; max-width: 44rem; margin: 0; padding: 1.45rem 0 1.45rem 3rem; border-top: 1px solid rgba(119, 105, 92, .28); color: #514b46; font-size: 1rem; line-height: 1.68; counter-increment: about-detail; }
.content-section .about-more-content p::before { position: absolute; top: 1.62rem; left: 0; color: var(--rust); content: "0" counter(about-detail); font: 700 .64rem/1 Arial, Helvetica, sans-serif; letter-spacing: .12em; }
@keyframes about-reveal { from { opacity: 0; transform: translateY(-.35rem); } to { opacity: 1; transform: translateY(0); } }
.about-section { position: relative; isolation: isolate; min-height: 58rem; overflow: hidden; }
.about-section > .section-label, .about-section > .about-copy { position: relative; z-index: 2; }
.about-portrait {
  position: absolute;
  z-index: 0;
  top: clamp(3rem, 7vw, 7rem);
  right: clamp(-11rem, -7vw, -4rem);
  bottom: clamp(3rem, 7vw, 7rem);
  width: min(50vw, 45rem);
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 13%, rgba(255,255,255,.68) 48%, rgba(255,255,255,.16) 100%),
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(92,63,42,.12)),
    url("../assets/images/otto-hirsitohtori.png") center 28% / cover no-repeat;
  filter: saturate(.45) sepia(.14) contrast(.96);
  opacity: .64;
}
.about-portrait::after { position: absolute; inset: 0; border: 1px solid rgba(139,98,69,.2); content: ""; }
.about-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 6rem); }
.about-copy h2, .about-copy .principle { grid-column: 1 / -1; }
.about-copy .principle { max-width: 46rem; padding: 1.3rem 0 1.3rem 1.4rem; border-left: 2px solid var(--rust); color: var(--ink) !important; font-family: Baskerville, Georgia, serif; font-size: clamp(1.55rem, 2.7vw, 2.5rem) !important; line-height: 1.18 !important; }
blockquote { margin: 3rem 0 0; padding-left: 1.4rem; border-left: 2px solid var(--rust); font-family: Baskerville, Georgia, serif; font-size: clamp(1.8rem, 3vw, 3rem); font-style: italic; }

.pillar-section-divider { display: grid; max-width: 96rem; height: clamp(11rem, 18vw, 18rem); margin: 0 auto; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding: 0 clamp(1.25rem, 5vw, 5rem); }
.pillar-section-divider span { height: 1px; background: var(--line); }
.pillar-section-divider img { width: auto; height: 100%; object-fit: contain; filter: saturate(.72) contrast(1.05); }

.section-heading { display: grid; grid-template-columns: minmax(8rem, .42fr) minmax(0, 1.58fr); gap: 2rem; margin-bottom: 3rem; }
.services-list { border-top: 1px solid var(--line); }
.service-card { display: grid; grid-template-columns: 3.25rem minmax(12rem, .48fr) minmax(0, 1.52fr); align-items: center; gap: clamp(1.25rem, 4vw, 4rem); padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.service-card > span { align-self: start; padding-top: .3rem; color: var(--rust); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.service-image { aspect-ratio: 16 / 10; overflow: hidden; background: #f2f0ed; }
.service-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(.96); }
.service-card h3 { max-width: 24ch; margin: 0; font-family: Baskerville, Georgia, serif; font-size: clamp(1.8rem, 3.3vw, 3.5rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.service-card p { max-width: 38rem; margin: 1rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.carousel-track { margin-left: 0; }
.work-slide { padding-left: 0; }
.work-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr); min-height: 38rem; border: 1px solid var(--line); background: #fff; }
.work-image-wrap { position: relative; min-height: 34rem; overflow: hidden; background: #f2f0ed; }
.work-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-number { position: absolute; top: 1rem; left: 1rem; padding: .5rem .6rem; background: #fff; font-size: .72rem; font-weight: 700; }
.work-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 5rem); }
.work-tag { margin: 0 0 1.3rem; color: var(--rust); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.work-copy h3 { max-width: 13ch; margin: 0; font-family: Baskerville, Georgia, serif; font-size: clamp(2.4rem, 4vw, 4.6rem); font-weight: 400; letter-spacing: -.04em; line-height: .98; }
.work-copy > p { max-width: 34rem; margin: 1.5rem 0 0; color: var(--muted); line-height: 1.7; }
.work-copy a { display: inline-flex; align-items: center; align-self: flex-start; gap: .45rem; margin-top: 2rem; padding-bottom: .25rem; border-bottom: 1px solid currentColor; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.carousel-controls { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: 1rem; }
.carousel-controls span { min-width: 4rem; text-align: center; font-size: .72rem; }
.carousel-button { position: static !important; width: 2.8rem !important; height: 2.8rem !important; margin: 0 !important; border: 1px solid var(--ink) !important; border-radius: 0 !important; background: #fff !important; color: var(--ink) !important; transform: none !important; }

.home-experiences-eyebrow {
  margin: 0 0 .75rem;
  color: var(--rust);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.home-experience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.home-experience-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid #d8c8b8;
  background: rgba(255, 255, 255, .48);
}
.home-experience-quote {
  height: 2rem;
  color: #ad8059;
  font-family: Baskerville, Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}
.home-experience-card blockquote {
  margin: .7rem 0 0;
  padding: 0;
  border: 0;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-style: normal;
  line-height: 1.58;
}
.home-experience-author {
  display: grid;
  gap: .2rem;
  margin: auto 0 0;
  padding: 1.35rem 0 0 1rem;
  border-left: 2px solid var(--rust);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.home-experience-author strong { font-size: .76rem; }
.home-experience-author span { color: var(--muted); }
.home-experiences-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 2rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}
.home-experiences-link:hover { color: var(--rust); }
.home-experience-carousel { max-width: none; margin: 0; }

.contact-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr); gap: clamp(3rem, 8vw, 8rem); }
.direct-contact a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
form { display: grid; gap: 1.4rem; }
form label { display: grid; gap: .55rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
input, textarea { width: 100%; padding: .9rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; outline: none; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; resize: vertical; }
textarea { border: 1px solid var(--ink); padding: 1rem; }
input:focus, textarea:focus { border-color: var(--rust); }
form button { justify-self: start; padding: .9rem 1.2rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
form button:hover { background: var(--rust); border-color: var(--rust); }

.site-footer { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 2rem; padding: 2rem clamp(1.25rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.site-footer p { margin: 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.funding { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; }
.funding img { width: auto; max-width: 9rem; max-height: 2.3rem; object-fit: contain; }
.site-footer small { grid-column: 2; color: var(--muted); font-size: .58rem; text-align: right; }

/* Asiakkaiden kokemuksia */
.experience-page { min-height: 100svh; background: #f3efe9; color: #293d32; }
.experience-header { position: relative; justify-content: center; min-height: 7.5rem; border-bottom-color: rgba(90, 68, 49, .2); background: rgba(243,239,233,.96); }
.experience-brand { width: min(32rem, 72vw); }
.experience-menu { position: absolute; right: clamp(1.25rem, 5vw, 5rem); }
.experience-menu nav a[aria-current="page"] { color: var(--rust); }
.experience-intro { width: min(100%, 72rem); margin: 0 auto; padding: clamp(3.5rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5rem) clamp(6rem, 9vw, 9rem); }
.experience-intro h1 { margin: 0 auto; text-align: center; font-family: Baskerville, Georgia, "Times New Roman", serif; font-size: clamp(3rem, 5vw, 5.1rem); font-weight: 400; letter-spacing: -.05em; line-height: .94; }
.experience-carousel { position: relative; max-width: 58rem; margin: clamp(2.75rem, 4vw, 3.5rem) auto 0; outline: none; }
.experience-carousel:focus-visible { outline: 2px solid var(--rust); outline-offset: .5rem; }
.experience-track { position: relative; }
.experience-card[hidden] { display: none; }
.experience-card { position: relative; display: flex; min-height: 24rem; flex-direction: column; padding: clamp(2.25rem, 4.5vw, 4rem); border: 1px solid rgba(121, 86, 58, .28); background: rgba(255,255,255,.66); box-shadow: 0 1.5rem 4rem rgba(61, 43, 30, .07); }
.experience-card::before { position: absolute; top: -1px; left: clamp(2.25rem, 5vw, 4.75rem); width: clamp(4.5rem, 8vw, 7rem); height: 3px; background: var(--rust); content: ""; }
.experience-card.is-active { animation: experience-fade-in .3s ease-out; }
.quote-mark { height: 3.4rem; color: #b88967; font-family: Georgia, serif; font-size: 5rem; line-height: 1; }
.experience-card blockquote { max-width: 43rem; margin: 1.1rem 0 0; padding: 0; border: 0; color: #293d32; font-family: Baskerville, Georgia, serif; font-size: clamp(1.24rem, 2vw, 1.65rem); font-style: normal; line-height: 1.58; }
.experience-author { display: grid; gap: .3rem; margin: auto 0 0; padding: 2.25rem 0 0 1.15rem; border-left: 2px solid var(--rust); color: #9a7051; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; }
.experience-author strong { color: #293d32; font-size: .8rem; }
.experience-controls { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; margin-top: 1.25rem; }
.experience-controls > span { color: #716257; font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.experience-next { display: inline-flex; min-height: 3.4rem; cursor: pointer; align-items: center; gap: 1rem; padding: .7rem .75rem .7rem 1.35rem; border: 1px solid var(--rust); border-radius: 999px; background: transparent; color: var(--rust); font: 700 .72rem/1 Arial, Helvetica, sans-serif; letter-spacing: .12em; text-transform: uppercase; transition: color .18s ease, background .18s ease, transform .18s ease; }
.experience-next i { display: grid; width: 2.15rem; height: 2.15rem; border-radius: 50%; place-items: center; background: var(--rust); color: #fff; font: normal 1.2rem/1 Arial, Helvetica, sans-serif; }
.experience-next:hover,
.experience-next:focus-visible { background: var(--rust); color: #fff; transform: translateX(2px); }
.experience-next:hover i,
.experience-next:focus-visible i { background: #fff; color: var(--rust); }
@keyframes experience-fade-in { from { opacity: 0; transform: translateX(.5rem); } to { opacity: 1; transform: translateX(0); } }
.experience-footer { color: var(--ink); background: rgba(255,255,255,.7); }
.experience-footer a { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.experience-footer a:hover { color: var(--rust); }

@media (min-width: 761px) {
  .experience-controls {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -2rem;
    flex-direction: column;
    margin: 0;
    transform: translateY(-50%);
  }

  .experience-controls > span {
    padding: .35rem .25rem;
    background: #f3efe9;
  }

  .experience-next {
    width: 4rem;
    min-width: 4rem;
    height: 4rem;
    min-height: 4rem;
    justify-content: center;
    padding: 0;
    border: 0;
    background: var(--rust);
    color: #fff;
    box-shadow: 0 .75rem 2rem rgba(82, 45, 25, .2);
  }

  .experience-next > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .experience-next i,
  .experience-next:hover i,
  .experience-next:focus-visible i {
    width: auto;
    height: auto;
    background: transparent;
    color: currentColor;
    font-size: 1.55rem;
  }

  .experience-next:hover,
  .experience-next:focus-visible {
    background: #923b10;
    color: #fff;
  }
}

@media (max-width: 760px) {
  .story-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding-bottom: 4rem;
  }
  .hero-menu { top: .8rem; right: .8rem; }
  .hero-menu summary { width: 2.75rem; height: 2.75rem; }
  .hero-menu nav { width: min(15rem, calc(100vw - 1.6rem)); }
  .story-hero-brand {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    width: min(78vw, 24rem);
    margin: 1.1rem auto 1.3rem;
    padding-right: 2.6rem;
  }
  .story-hero-brand span {
    margin-top: -.2rem;
    gap: .55rem;
    font-size: clamp(.7rem, 3vw, .9rem);
  }
  .story-hero-photo {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: clamp(30rem, 112vw, 42rem);
  }
  .story-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
  }
  .story-hero-photo::after {
    inset: 0;
    background:
      linear-gradient(180deg, rgba(243,239,233,0) 58%, rgba(243,239,233,.7) 84%, #f3efe9 100%),
      linear-gradient(90deg, rgba(243,239,233,0) 58%, rgba(243,239,233,.46) 83%, #f3efe9 100%);
  }
  .story-hero-content {
    position: relative;
    top: auto;
    left: auto;
    z-index: 4;
    order: 3;
    width: 100%;
    margin-top: -5.5rem;
    padding: 0 1.25rem;
  }
  .story-hero-content h1 { max-width: 100%; font-size: clamp(2.65rem, 11.3vw, 4rem); }
  .story-hero-accent { margin: 1.3rem 0 1.15rem; }
  .story-hero-body { font-size: 1.08rem; line-height: 1.5; }
  .story-hero-script { margin-top: 1.5rem; font-size: clamp(2.35rem, 11vw, 3.5rem); }
  .story-hero-promise { margin-left: 0; font-size: 1rem; line-height: 1.35; }
  .story-hero-button {
    width: min(100%, 19rem);
    margin: 1.7rem 0 0;
  }
  .story-hero-values {
    width: 100%;
    margin-top: 2.3rem;
    grid-template-columns: 1fr;
  }
  .story-hero-value {
    min-height: 4.9rem;
    grid-template-columns: 3.5rem 1fr;
    padding: .65rem 0;
    border-right: 0;
    border-bottom: 1px solid #b9afa2;
  }
  .story-hero-value:last-child { border-bottom: 0; }
  .story-hero-value p { font-size: .75rem; }
  .story-hero-pillar { display: none; }
  .site-header { min-height: 5rem; padding-block: .8rem; }
  .brand { width: min(17rem, 70vw); }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 0; }
  .hero-copy { padding: 3rem 0 4.5rem; }
  .hero-symbol { width: 11rem; margin-bottom: 2.5rem; }
  .hero h1 { max-width: 9ch; font-size: clamp(3.7rem, 16vw, 6rem); }
  .hero-image { justify-self: stretch; }
  .hero-image { min-height: 38rem; border-top: 1px solid var(--line); border-left: 0; }
  .hero-image img { width: 100%; max-height: none; }
  .hero-pillar-image { min-height: 42rem; }
  .hero-pillar-image img { width: auto; height: 35rem; }
  .two-column, .section-heading, .contact-section { grid-template-columns: 1fr; }
  .home-experience-grid { grid-template-columns: 1fr; }
  .about-section { min-height: 0; padding-bottom: 31rem; }
  .about-copy { padding-right: 0; }
  .about-portrait { top: auto; right: -4rem; bottom: 0; width: calc(100% + 4rem); height: 29rem; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.22) 35%, rgba(255,255,255,.06)), url("../assets/images/otto-hirsitohtori.png") center 25% / cover no-repeat; opacity: .86; }
  .about-copy { grid-template-columns: 1fr; }
  .about-copy h2, .about-copy .principle { grid-column: 1; }
  .service-card { grid-template-columns: 2rem 1fr; align-items: start; }
  .service-image { grid-column: 2; width: 100%; }
  .service-card > div:last-child { grid-column: 2; }
  .work-card { grid-template-columns: 1fr; }
  .work-image-wrap { min-height: 31rem; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .funding { justify-content: flex-start; flex-wrap: wrap; }
  .site-footer small { grid-column: 1; text-align: left; }
  .experience-header { min-height: 6rem; justify-content: flex-start; }
  .experience-brand { width: min(18rem, 68vw); }
  .experience-menu { right: 1.25rem; }
  .experience-intro { padding-top: 4rem; }
  .experience-card { min-height: 0; }
  .experience-controls { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Figma capture: Kuka on Hirsitohtori? */
.figma-hero-board {
  position: relative;
  width: 1440px;
  height: 1080px;
  overflow: hidden;
  background: #f4f0e7;
  color: #24211f;
}
.figma-hero-photo {
  position: absolute;
  inset: 0 auto 0 0;
  width: 610px;
  overflow: hidden;
  background: #6f4a34;
}
.figma-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
  filter: saturate(.86) sepia(.08) contrast(1.02);
}
.figma-hero-fade {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 380px;
  width: 440px;
  background: linear-gradient(90deg, rgba(244,240,231,0) 0%, rgba(244,240,231,.12) 13%, rgba(244,240,231,.72) 52%, #f4f0e7 83%);
}
.figma-hero-brand {
  position: absolute;
  z-index: 3;
  top: 29px;
  left: 540px;
  width: 590px;
  text-align: center;
}
.figma-hero-brand img {
  width: 100%;
  height: 136px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.figma-hero-brand p {
  margin: -34px 0 0 79px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}
.figma-hero-content {
  position: absolute;
  z-index: 2;
  top: 194px;
  left: 600px;
  width: 650px;
}
.figma-hero-content h1 {
  margin: 0;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: 73px;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .91;
}
.figma-hero-accent {
  width: 88px;
  height: 3px;
  margin: 25px 0 22px;
  background: #b9541e;
}
.figma-hero-body {
  width: 620px;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.38;
}
.figma-hero-body p { margin: 0 0 21px; }
.figma-hero-script {
  margin: 16px 0 0;
  color: #b64f19;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 48px;
  font-style: italic;
  letter-spacing: -.045em;
  line-height: 1.05;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.figma-hero-promise {
  margin: 7px 0 0 45px;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: 20px;
}
.figma-hero-button {
  display: inline-flex;
  min-width: 286px;
  height: 60px;
  margin: 29px 0 0 24px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 0 24px 0 27px;
  border: 2px solid #9d3f12;
  outline: 1px solid rgba(255,255,255,.6);
  outline-offset: -5px;
  background: #a94a19;
  color: #fff8ed;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(72,38,19,.22);
}
.figma-hero-button span:last-child { font-size: 27px; font-weight: 300; }
.figma-hero-values {
  display: grid;
  width: 640px;
  margin-top: 35px;
  grid-template-columns: 1fr 1fr 1.34fr;
  align-items: center;
}
.figma-hero-value {
  display: grid;
  min-height: 81px;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 13px;
  padding: 0 17px;
  border-right: 1px solid #b9afa2;
}
.figma-hero-value:first-child { padding-left: 0; }
.figma-hero-value:last-child { padding-right: 0; border-right: 0; }
.figma-hero-value svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: #24211f;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.figma-hero-value p {
  margin: 0;
  white-space: pre-line;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}
.figma-hero-pillar {
  position: absolute;
  z-index: 3;
  top: 50px;
  right: 22px;
  width: 108px;
  height: 1000px;
  object-fit: contain;
  filter: saturate(.9) contrast(1.04);
}

/* Etusivun mallikuvaan lukittu sommittelu, vertailukoko 1144 × 861. */
/* Vanha yhteen sommittelukuvaan lukittu desktop-versio on poistettu käytöstä. */
@media not all {
  .story-hero {
    --hero-scale: min(1, calc(100svh / 861px), calc(100vw / 1144px));
    --hero-stage-left: max(0px, calc(50% - 572px * var(--hero-scale)));
    height: clamp(680px, 100svh, 861px);
    min-height: 0;
    overflow: hidden;
    background: #f3efe9;
  }

  .story-hero::before {
    position: absolute;
    z-index: 1;
    top: 0;
    left: var(--hero-stage-left);
    width: 1144px;
    height: 861px;
    background: none;
    content: "";
    pointer-events: none;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .hero-menu {
    top: 18px;
    right: calc(var(--hero-stage-left) + 26px + 92px * var(--hero-scale));
  }

  .hero-menu summary {
    width: 44px;
    height: 44px;
    border-color: rgba(32, 29, 26, .48);
    background: rgba(243, 239, 233, .92);
    box-shadow: none;
  }

  .story-hero-brand {
    top: calc(23px * var(--hero-scale));
    left: calc(var(--hero-stage-left) + 416px * var(--hero-scale));
    width: 386px;
    opacity: 0;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .story-hero-brand img {
    width: 100%;
    height: auto;
    mix-blend-mode: normal;
  }

  .story-hero-brand > span {
    display: none;
  }

  .story-hero-photo {
    inset: 0 auto auto var(--hero-stage-left);
    width: 481px;
    height: 861px;
    overflow: hidden;
    opacity: 0;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .story-hero-photo::after {
    display: none;
  }

  .story-hero-photo .story-hero-photo-desktop {
    width: 1144px;
    max-width: none;
    height: 861px;
  }

  .story-hero-photo .story-hero-photo-mobile {
    display: none;
  }

  .story-hero-content {
    top: calc(167px * var(--hero-scale));
    left: calc(var(--hero-stage-left) + 481px * var(--hero-scale));
    width: 540px;
    height: 660px;
    padding: 0;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .story-hero-content::before {
    position: absolute;
    z-index: 0;
    top: 136px;
    left: -92px;
    width: 624px;
    height: 278px;
    background: linear-gradient(90deg, rgba(243, 239, 233, 0) 0, rgba(243, 239, 233, .82) 58px, #f3efe9 92px);
    content: "";
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }

  .story-hero-content h1,
  .story-hero-accent,
  .story-hero-script,
  .story-hero-promise,
  .story-hero-button,
  .story-hero-values {
    opacity: 0;
  }

  .story-hero-content h1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    margin: 0;
    font-family: Rockwell, "Bookman Old Style", Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -.052em;
    line-height: .91;
  }

  .story-hero-content h1 span {
    display: block;
  }

  .story-hero-content h1 span:first-child {
    font-size: 62px;
  }

  .story-hero-content h1 span:last-child {
    font-size: 64px;
    letter-spacing: -.047em;
  }

  .story-hero-accent {
    position: absolute;
    top: 131px;
    left: 0;
    width: 70px;
    height: 2px;
    margin: 0;
  }

  .story-hero-body {
    position: absolute;
    z-index: 1;
    top: 156px;
    left: 0;
    width: 520px;
    max-width: none;
    font-family: Baskerville, Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.24;
  }

  .story-hero-body p { margin: 0; }
  .story-hero-body p + p { margin-top: 18px; }

  .story-hero-script {
    position: absolute;
    top: 404px;
    left: -2px;
    margin: 0;
    font-size: 41px;
    letter-spacing: -.055em;
    line-height: 1;
  }

  .story-hero-promise {
    position: absolute;
    top: 448px;
    left: 0;
    margin: 0;
    gap: 8px;
    font-size: 16px;
    line-height: 1.2;
  }

  .story-hero-promise span {
    width: 28px;
  }

  .story-hero-button {
    position: absolute;
    top: 490px;
    left: 18px;
    width: 230px;
    min-width: 230px;
    min-height: 46px;
    margin: 0;
    padding: 8px 18px 7px 22px;
    font-size: 15px;
  }

  .story-hero-button span:last-child {
    font-size: 24px;
  }

  .story-hero-values {
    position: absolute;
    top: 572px;
    left: 0;
    width: 526px;
    height: 82px;
    margin: 0;
    grid-template-columns: 160px 184px 182px;
  }

  .story-hero-value {
    min-height: 80px;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    padding: 0 14px;
  }

  .story-hero-value:first-child {
    padding-left: 0;
  }

  .story-hero-value:last-child {
    padding-right: 0;
  }

  .story-hero-value p {
    font-size: 11px;
    line-height: 1.25;
  }

  .story-value-icon {
    position: relative;
    display: block;
    width: 50px;
    height: 60px;
    overflow: hidden;
  }

  .story-value-icon img {
    position: absolute;
    width: 1144px;
    max-width: none;
    height: 861px;
  }

  .story-value-icon--house img {
    top: -738px;
    left: -477px;
  }

  .story-value-icon--rings img {
    top: -738px;
    left: -654px;
  }

  .story-value-icon--leaf img {
    top: -735px;
    left: -849px;
  }

  .story-hero-pillar {
    position: absolute;
    z-index: 3;
    top: calc(39px * var(--hero-scale));
    right: var(--hero-stage-left);
    display: block;
    width: calc(76px * var(--hero-scale));
    height: calc(822px * var(--hero-scale));
    overflow: hidden;
    max-width: none;
    opacity: 0;
  }

  .story-hero-pillar img {
    position: absolute;
    top: calc(-39px * var(--hero-scale));
    right: 0;
    width: calc(1144px * var(--hero-scale));
    max-width: none;
    height: calc(861px * var(--hero-scale));
  }
}

@media (max-width: 760px) {
  .story-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding-bottom: 56px;
  }

  .hero-menu {
    top: 14px;
    right: 14px;
  }

  .story-hero-brand {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
    width: min(640px, calc(100% - 96px));
    margin: 20px auto 12px;
  }

  .story-hero-brand img {
    width: 100%;
    mix-blend-mode: normal;
  }

  .story-hero-brand > span {
    display: none;
  }

  .story-hero-photo {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: min(720px, 112vw);
  }

  .story-hero-photo img {
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: contain;
    object-position: left top;
  }

  .story-hero-photo .story-hero-photo-desktop {
    display: none;
  }

  .story-hero-photo .story-hero-photo-mobile {
    display: block;
  }

  .story-hero-photo::after {
    display: none;
  }

  .story-hero-content {
    position: relative;
    top: auto;
    left: auto;
    z-index: 4;
    order: 3;
    width: min(100%, 680px);
    margin: -58px auto 0;
    padding: 0 24px;
  }

  .story-hero-content h1 {
    font-size: clamp(45px, 9vw, 64px);
  }

  .story-hero-content h1 span:first-child,
  .story-hero-content h1 span:last-child {
    display: block;
    font-size: inherit;
  }

  .story-hero-body {
    max-width: 620px;
    font-size: 18px;
  }

  .story-hero-script {
    font-size: clamp(36px, 7vw, 46px);
  }

  .story-hero-button {
    min-width: 230px;
  }

  .story-hero-values {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story-hero-value {
    min-height: 80px;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .story-value-icon {
    position: relative;
    display: block;
    width: 48px;
    height: 58px;
    overflow: hidden;
  }

  .story-value-icon img {
    position: absolute;
    width: 1144px;
    max-width: none;
    height: 861px;
  }

  .story-value-icon--house img { top: -738px; left: -477px; }
  .story-value-icon--rings img { top: -738px; left: -654px; }
  .story-value-icon--leaf img { top: -735px; left: -849px; }

  .story-hero-pillar {
    display: none;
  }

  .desktop-copy-break {
    display: none;
  }
}

@media (max-width: 600px) {
  .story-hero-brand {
    width: calc(100% - 82px);
    margin-top: 18px;
  }

  .story-hero-photo {
    height: 116vw;
    max-height: 620px;
  }

  .story-hero-content {
    margin-top: -38px;
    padding-inline: 20px;
  }

  .story-hero-content h1 {
    font-size: clamp(42px, 13.5vw, 58px);
  }

  .story-hero-body {
    font-size: 17px;
    line-height: 1.45;
  }

  .story-hero-values {
    grid-template-columns: 1fr;
  }

  .story-hero-value {
    grid-template-columns: 52px 1fr;
    border-right: 0;
    border-bottom: 1px solid #b9afa2;
  }

  .story-hero-value:last-child {
    border-bottom: 0;
  }
}

/* Kapea työpöytä / tabletti: kuva vasemmalla, sisältö kuvan vaalealla alueella. */
@media (min-width: 761px) and (max-width: 980px) {
  .hero-menu {
    top: 14px;
    right: 14px;
  }

  .story-hero-brand img {
    mix-blend-mode: normal;
  }

  .story-hero-brand > span {
    display: none;
  }

  .story-hero-photo .story-hero-photo-desktop {
    display: none;
  }

  .story-hero-photo .story-hero-photo-mobile {
    display: block;
  }

  .story-hero-photo::after {
    display: none;
  }

  .story-hero-content h1 span {
    display: block;
  }

  .story-value-icon {
    position: relative;
    display: block;
    width: 48px;
    height: 58px;
    overflow: hidden;
  }

  .story-value-icon img {
    position: absolute;
    width: 1144px;
    max-width: none;
    height: 861px;
  }

  .story-value-icon--house img { top: -738px; left: -477px; }
  .story-value-icon--rings img { top: -738px; left: -654px; }
  .story-value-icon--leaf img { top: -735px; left: -849px; }

  .story-hero-pillar {
    display: none;
  }
}

/* Leveä työpöytä: kaikki hero-elementit ovat erillisiä ja skaalautuvia. */
@media (min-width: 981px) {
  .story-hero-photo .story-hero-photo-desktop {
    display: block;
  }

  .story-hero-photo .story-hero-photo-mobile {
    display: none;
  }

  .story-hero-content h1 span {
    display: block;
  }

  .story-value-icon {
    display: block;
    width: clamp(2.8rem, 4.3vw, 4rem);
    aspect-ratio: 1;
  }

  .story-value-icon svg {
    width: 100%;
    height: 100%;
  }

 .story-hero-pillar {
  position: absolute;
  z-index: 3;
  top: calc(39px * var(--hero-scale));
  right: auto;
  left: calc(var(--hero-stage-left) + 1018px * var(--hero-scale));
  display: block;
  width: 88px;
  height: 900px;
  max-width: none;
  opacity: 1;
  filter: brightness(1.16) saturate(.82) contrast(1.02);
  transform: scale(var(--hero-scale));
  transform-origin: left top;
}

.story-hero-pillar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}
}

/* Staattisen version työnäytekaruselli */
.static-carousel {
  outline: none;
}

.static-carousel:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

.static-carousel .work-slide[hidden] {
  display: none;
}

.static-carousel .work-slide.is-active {
  display: block;
  animation: carousel-fade-in .28s ease-out;
}

.static-carousel .carousel-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
}

.static-carousel .carousel-button:hover,
.static-carousel .carousel-button:focus-visible {
  border-color: var(--rust) !important;
  color: var(--rust) !important;
}

@keyframes carousel-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .static-carousel .work-slide.is-active { animation: none; }
}

/* Etusivun avattava esittely */
.story-hero-eyebrow {
  margin: 0 0 .95rem;
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.story-hero-eyebrow::after {
  display: inline-block;
  width: 3.5rem;
  height: 1px;
  margin: 0 0 .25rem .8rem;
  background: currentColor;
  content: "";
  opacity: .65;
}

.story-hero-more {
  max-width: 32rem;
  margin-top: 1.15rem;
}

.story-hero-more-trigger {
  display: flex;
  width: 10.75rem;
  min-height: 2.8rem;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  padding: .72rem .85rem .68rem;
  border: 0;
  border-top: 1px solid var(--rust);
  border-bottom: 1px solid var(--rust);
  background: transparent;
  color: var(--rust);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.story-hero-more-trigger:hover,
.story-hero-more-trigger:focus-visible {
  background: rgba(164, 71, 31, .08);
  outline: none;
}

.story-hero-more-symbol::before {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}

.about-dialog {
  width: min(48rem, calc(100vw - 2rem));
  max-height: min(86vh, 48rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.about-dialog::backdrop {
  background: rgba(25, 21, 18, .72);
  backdrop-filter: blur(4px);
}

.about-dialog-panel {
  position: relative;
  max-height: min(86vh, 48rem);
  overflow: auto;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(112, 87, 66, .36);
  background: #f3efe9;
  box-shadow: 0 24px 70px rgba(15, 12, 10, .42);
}

.about-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  border: 1px solid rgba(32, 29, 26, .34);
  background: transparent;
  color: var(--ink);
  font: 300 1.75rem/1 Arial, Helvetica, sans-serif;
  place-items: center;
}

.about-dialog-close:hover,
.about-dialog-close:focus-visible {
  border-color: var(--rust);
  color: var(--rust);
  outline: none;
}

.about-dialog-kicker {
  margin: 0 0 .8rem;
  color: var(--rust);
  font: 700 .72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.about-dialog h2 {
  max-width: 36rem;
  margin: 0;
  font-family: Rockwell, "Bookman Old Style", Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: -.045em;
  line-height: .98;
}

.about-dialog-copy {
  margin-top: 2rem;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.58;
}

.about-dialog-copy p { margin: 0; }
.about-dialog-copy p + p { margin-top: 1.2rem; }
.about-dialog-principle {
  padding-left: 1.15rem;
  border-left: 2px solid var(--rust);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.35;
}

body:has(.about-dialog[open]),
body:has(.service-dialog[open]) { overflow: hidden; }

@media (min-width: 700px) {
  .about-dialog-copy {
    columns: 2;
    column-gap: 2.25rem;
    column-rule: 1px solid rgba(112, 87, 66, .2);
  }

  .about-dialog-copy p { break-inside: avoid; }
}

/* Tumma puukehysmalli: paikallinen etusivu, desktop. */
@media (min-width: 981px) {
  .story-hero {
    --hero-scale: min(1, calc((100vw - 40px) / 820px));
    --hero-stage-left: calc(50% - 410px * var(--hero-scale));
    width: 100%;
    height: 100svh;
    min-height: 650px;
    overflow: hidden;
    background: #2b2823 url("../assets/images/tumma-puukehys.png") center top / 720px auto repeat;
  }

  .story-hero::before {
    position: absolute;
    z-index: 0;
    top: 0;
    left: var(--hero-stage-left);
    width: calc(820px * var(--hero-scale));
    height: 100%;
    border-inline: 1px solid rgba(78, 52, 35, .22);
    background: #f3efe9;
    box-shadow: 18px 0 28px -20px rgba(10, 8, 6, .42), -18px 0 28px -20px rgba(10, 8, 6, .42);
    content: "";
    pointer-events: none;
  }

  .hero-menu {
      position: absolute;
  top: calc(30px * var(--hero-scale));
    right: auto;
    left: calc(var(--hero-stage-left) + 748px * var(--hero-scale));
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .hero-menu summary {
    width: 44px;
    height: 44px;
    border-color: rgba(32, 29, 26, .48);
    background: rgba(243, 239, 233, .94);
    box-shadow: none;
  }

  .story-hero-brand {
    top: calc(10px * var(--hero-scale));
    left: calc(var(--hero-stage-left) + 287px * var(--hero-scale));
    width: 360px;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .story-hero-brand img {
    width: 100%;
    mix-blend-mode: normal;
  }

  .story-hero-photo {
    right: auto;
    bottom: auto;
    top: calc(0px * var(--hero-scale));
    left: var(--hero-stage-left);
    width: 435px;
    height: 580px;
    overflow: visible;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .story-hero-photo::after { display: none; }

  .story-hero-photo .story-hero-photo-desktop {
    display: block;
    width: auto;
    max-width: none;
    height: 580px;
    object-fit: contain;
    object-position: left top;
    -webkit-mask-image: radial-gradient(ellipse 104% 98% at 46% 48%, #000 0 59%, rgba(0, 0, 0, .96) 67%, rgba(0, 0, 0, .62) 79%, transparent 100%);
    mask-image: radial-gradient(ellipse 104% 98% at 46% 48%, #000 0 59%, rgba(0, 0, 0, .96) 67%, rgba(0, 0, 0, .62) 79%, transparent 100%);
  }

  .story-hero-photo .story-hero-photo-mobile { display: none; }

  .story-hero-content {
    top: calc(148px * var(--hero-scale));
    left: calc(var(--hero-stage-left) + 350px * var(--hero-scale));
    display: block;
    width: 400px;
    height: auto;
    padding: 0;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .story-hero-content::before { display: none; }

  .story-hero-eyebrow {
    margin: 0 0 12px;
    font-size: 11px;
  }

  .story-hero-content h1 {
    position: static;
    width: 390px;
    font-size: 41px;
    letter-spacing: -.045em;
    line-height: .96;
  }

  .story-hero-content h1 span:first-child,
  .story-hero-content h1 span:last-child {
    font-size: inherit;
    letter-spacing: inherit;
  }

  .story-hero-accent { display: none; }

  .story-hero-body {
    position: static;
    width: 350px;
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.35;
  }

  .story-hero-more {
    width: 350px;
    margin-top: 14px;
  }

  .story-hero-more-trigger {
    width: 160px;
    min-height: 40px;
    padding: 9px 12px 8px;
    font-size: 11px;
  }

  .story-hero-script {
    position: static;
    margin: 18px 0 0;
    font-size: 34px;
  }

  .story-hero-promise {
    position: static;
    margin: 2px 0 0;
    font-size: 14px;
  }

  .story-hero-button {
    position: static;
    width: 185px;
    min-width: 185px;
    min-height: 38px;
    margin: 12px 0 0;
    padding: 6px 13px 5px 16px;
    font-size: 12px;
  }

  .story-hero-button span:last-child { font-size: 19px; }

  .story-hero-values {
    position: static;
    width: 400px;
    height: 70px;
    margin-top: 18px;
    grid-template-columns: 116px 130px 154px;
  }

  .story-hero-value {
    min-height: 68px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 6px;
    padding-inline: 8px;
  }

  .story-hero-value:first-child { padding-left: 0; }
  .story-hero-value:last-child { padding-right: 0; }

  .story-value-icon {
    width: 38px;
    height: 46px;
  }

  .story-value-icon svg {
    width: 38px;
    height: 46px;
  }

  .story-hero-value p {
    font-size: 9.5px;
    line-height: 1.2;
  }

  .story-hero-pillar {
    top: calc(108px * var(--hero-scale));
    right: auto;
    left: calc(var(--hero-stage-left) + 688px * var(--hero-scale));
    display: block;
    width: 145px;
    height: 520px;
    overflow: visible;
    max-width: none;
    opacity: 1;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .story-hero-pillar::before,
  .story-hero-pillar::after {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    content: "";
    pointer-events: none;
  }

  .story-hero-pillar::before {
    bottom: -1px;
    left: 51%;
    width: 34px;
    height: 7px;
    background: radial-gradient(ellipse, rgba(49, 35, 25, .56) 0%, rgba(49, 35, 25, .33) 44%, transparent 78%);
    filter: blur(1px);
    transform: translateX(-50%);
  }

  .story-hero-pillar::after {
    bottom: 0;
    left: 50%;
    width: 76px;
    height: 12px;
    background: radial-gradient(ellipse at 68% 50%, rgba(49, 35, 25, .3) 0%, rgba(49, 35, 25, .15) 42%, transparent 76%);
    filter: blur(3px);
    transform: translateX(-62%) scaleY(.68);
    transform-origin: right center;
  }

  .story-hero-pillar img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center top;
    filter: none;
  }

  /* Etusivun kaikki alemmat osiot jatkavat samaa kapeaa vaaleaa palstaa. */
  main#alku:not(.experience-page) {
    background: #2b2823 url("../assets/images/tumma-puukehys.png") center top / 720px auto repeat;
  }

  main#alku:not(.experience-page) > .content-section,
  main#alku:not(.experience-page) > .services-section,
  main#alku:not(.experience-page) > .works-section,
  main#alku:not(.experience-page) > .home-experiences,
  main#alku:not(.experience-page) > .contact-section,
  main#alku:not(.experience-page) > .site-footer {
    width: 820px;
    max-width: calc(100vw - 40px);
    margin-right: auto;
    margin-left: auto;
    border-right: 1px solid rgba(78, 52, 35, .22);
    border-left: 1px solid rgba(78, 52, 35, .22);
    background: #f3efe9;
    box-shadow: 18px 0 28px -20px rgba(10, 8, 6, .42), -18px 0 28px -20px rgba(10, 8, 6, .42);
  }

  main#alku:not(.experience-page) > .content-section,
  main#alku:not(.experience-page) > .services-section,
  main#alku:not(.experience-page) > .works-section,
  main#alku:not(.experience-page) > .home-experiences,
  main#alku:not(.experience-page) > .contact-section {
    padding: clamp(4rem, 7vw, 6rem) 3rem;
  }

  main#alku:not(.experience-page) > .site-footer {
    padding: 2rem 3rem;
  }

  main#alku:not(.experience-page) .two-column,
  main#alku:not(.experience-page) .section-heading {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1.5rem;
  }

  main#alku:not(.experience-page) .content-section h2,
  main#alku:not(.experience-page) .section-heading h2,
  main#alku:not(.experience-page) .contact-section h2 {
    font-size: clamp(2.6rem, 4vw, 3.7rem);
  }

  main#alku:not(.experience-page) .service-card {
    grid-template-columns: 2.25rem minmax(11rem, .72fr) minmax(0, 1.28fr);
    gap: 1.5rem;
  }

  main#alku:not(.experience-page) .service-card h3 {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
  }

  main#alku:not(.experience-page) .work-card {
    min-height: 32rem;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, .92fr);
  }

  main#alku:not(.experience-page) .work-image-wrap {
    min-height: 30rem;
  }

  main#alku:not(.experience-page) .work-copy {
    padding: 2.25rem;
  }

  main#alku:not(.experience-page) .work-copy h3 {
    font-size: clamp(2.25rem, 3.5vw, 3.3rem);
  }

  main#alku:not(.experience-page) > .contact-section {
    grid-template-columns: minmax(0, .92fr) minmax(18rem, 1.08fr);
    gap: 3rem;
  }
}

/*
 * Leveän työpöydän etusivu on sommiteltu erillisistä elementeistä
 * 1144 × 861 px mallikuvan koordinaateilla. Koko sommittelu skaalautuu
 * yhtenäisesti, joten mallikuvan sävyt, etäisyydet ja häivytys säilyvät.
 */
@media not all {
  .story-hero {
    --hero-scale: min(calc(100vw / 1144px), calc(100svh / 861px));
    --hero-stage-left: calc(50% - 572px * var(--hero-scale));
    width: 100%;
    height: calc(861px * var(--hero-scale));
    min-height: 0;
    overflow: hidden;
    background: #f3efe9;
  }

  .hero-menu {
    position: absolute;
    top: calc(20px * var(--hero-scale));
    right: auto;
    left: calc(var(--hero-stage-left) + 984px * var(--hero-scale));
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .hero-menu summary {
    width: 44px;
    height: 44px;
    border-color: rgba(32, 29, 26, .48);
    background: rgba(243, 239, 233, .94);
    box-shadow: none;
  }

  .story-hero-brand {
    top: calc(23px * var(--hero-scale));
    left: calc(var(--hero-stage-left) + 416px * var(--hero-scale));
    width: 386px;
    opacity: 1;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .story-hero-brand img {
    width: 100%;
    mix-blend-mode: normal;
  }

  .story-hero-photo {
    inset: 0 auto auto var(--hero-stage-left);
    width: 520px;
    height: 861px;
    overflow: hidden;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .story-hero-photo::after {
    display: none;
  }

  .story-hero-photo .story-hero-photo-desktop {
    display: block;
    width: auto;
    max-width: none;
    height: 861px;
    object-fit: contain;
    object-position: left top;
  }

  .story-hero-photo .story-hero-photo-mobile {
    display: none;
  }

  .story-hero-content {
    top: calc(167px * var(--hero-scale));
    left: calc(var(--hero-stage-left) + 481px * var(--hero-scale));
    width: 540px;
    height: 660px;
    padding: 0;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .story-hero-content::before {
    display: none;
  }

  .story-hero-content h1,
  .story-hero-accent,
  .story-hero-script,
  .story-hero-promise,
  .story-hero-button,
  .story-hero-values {
    opacity: 1;
  }

  .story-hero-content h1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 500px;
    margin: 0;
    font-family: Rockwell, "Bookman Old Style", Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -.052em;
    line-height: .91;
  }

  .story-hero-content h1 span {
    display: block;
  }

  .story-hero-content h1 span:first-child {
    font-size: 62px;
  }

  .story-hero-content h1 span:last-child {
    font-size: 64px;
    letter-spacing: -.047em;
  }

  .story-hero-accent {
    position: absolute;
    top: 131px;
    left: 0;
    width: 70px;
    height: 2px;
    margin: 0;
  }

  .story-hero-body {
    position: absolute;
    top: 156px;
    left: 0;
    width: 520px;
    max-width: none;
    font-family: Baskerville, Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.24;
  }

  .story-hero-body p {
    margin: 0;
  }

  .story-hero-body p + p {
    margin-top: 18px;
  }

  .story-hero-script {
    position: absolute;
    top: 404px;
    left: -2px;
    margin: 0;
    font-size: 41px;
    letter-spacing: -.055em;
    line-height: 1;
  }

  .story-hero-promise {
    position: absolute;
    top: 448px;
    left: 0;
    margin: 0;
    gap: 8px;
    font-size: 16px;
    line-height: 1.2;
  }

  .story-hero-promise span {
    width: 28px;
  }

  .story-hero-button {
    position: absolute;
    top: 490px;
    left: 18px;
    width: 230px;
    min-width: 230px;
    min-height: 46px;
    margin: 0;
    padding: 8px 18px 7px 22px;
    font-size: 15px;
  }

  .story-hero-button span:last-child {
    font-size: 24px;
  }

  .story-hero-values {
    position: absolute;
    top: 572px;
    left: 0;
    width: 526px;
    height: 82px;
    margin: 0;
    grid-template-columns: 160px 184px 182px;
  }

  .story-hero-value {
    min-height: 80px;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    padding: 0 14px;
  }

  .story-hero-value:first-child {
    padding-left: 0;
  }

  .story-hero-value:last-child {
    padding-right: 0;
  }

  .story-hero-value p {
    font-size: 11px;
    line-height: 1.25;
  }

  .story-value-icon {
    display: block;
    width: 50px;
    height: 60px;
    aspect-ratio: auto;
  }

  .story-value-icon svg {
    width: 50px;
    height: 60px;
  }

  .story-hero-pillar {
    position: absolute;
    z-index: 3;
    top: calc(39px * var(--hero-scale));
    right: auto;
    left: calc(var(--hero-stage-left) + 1068px * var(--hero-scale));
    display: block;
    width: 76px;
    height: 822px;
    max-width: none;
    opacity: 1;
    transform: scale(var(--hero-scale));
    transform-origin: left top;
  }

  .story-hero-pillar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
  }
}

/* Etusivun palveluikonit: oma yhtenäinen rivi hero-alueen alaosassa. */
.story-hero-services {
  position: relative;
  z-index: 4;
  color: var(--ink);
}

.story-hero-services-label {
  margin: 0 0 .8rem;
  color: var(--rust);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.story-hero-services-grid {
  display: grid;
  border-top: 1px solid #b9afa2;
}

.story-hero-service {
  min-width: 0;
}

.story-hero-service-link {
  display: block;
  width: 100%;
  padding: 0;
  cursor: pointer;
  border: 0;
  border-radius: .7rem;
  background: transparent;
  color: inherit;
  text-align: left;
}

.story-hero-service-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.16 / 1;
  margin-bottom: .75rem;
  overflow: hidden;
  border: 1px solid rgba(164, 71, 31, .72);
  border-radius: .7rem;
  background: #d8d0c6;
  box-shadow: 0 4px 12px rgba(48, 36, 27, .13);
}

.story-hero-service-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84) contrast(.98);
  transition: transform .42s ease, filter .42s ease;
}

.story-hero-service-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: .7rem;
  background: linear-gradient(180deg, transparent 35%, rgba(39, 28, 21, .78) 100%);
  color: #fff;
  font: 700 .62rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .13em;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(.25rem);
  transition: opacity .32s ease, transform .32s ease;
}

.story-hero-service-hover i {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  font: normal 1rem/1 Arial, Helvetica, sans-serif;
  place-items: center;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.story-hero-service-link:hover .story-hero-service-image img,
.story-hero-service-link:focus-visible .story-hero-service-image img {
  filter: saturate(.96) contrast(1.02);
  transform: scale(1.055);
}

.story-hero-service-link:hover .story-hero-service-hover,
.story-hero-service-link:focus-visible .story-hero-service-hover {
  opacity: 1;
  transform: translateY(0);
}

.story-hero-service-link:hover .story-hero-service-hover i,
.story-hero-service-link:focus-visible .story-hero-service-hover i {
  background: #fff;
  color: var(--rust);
  transform: translateX(.12rem);
}

.story-hero-service-link:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.story-hero-service:nth-child(1) .story-hero-service-image img { object-position: center 58%; }
.story-hero-service:nth-child(2) .story-hero-service-image img { object-position: 58% center; }
.story-hero-service:nth-child(3) .story-hero-service-image img { object-position: center 48%; }
.story-hero-service:nth-child(4) .story-hero-service-image img { object-position: center 54%; }
.story-hero-service:nth-child(5) .story-hero-service-image img { object-position: center 42%; }

.service-dialog {
  width: min(68rem, calc(100vw - 2rem));
  max-height: min(86vh, 46rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.service-dialog::backdrop {
  background: rgba(25, 21, 18, .72);
  backdrop-filter: blur(4px);
}

.service-dialog-panel {
  position: relative;
  display: grid;
  max-height: min(86vh, 46rem);
  overflow: auto;
  border: 1px solid rgba(112, 87, 66, .36);
  background: #f3efe9;
  box-shadow: 0 24px 70px rgba(15, 12, 10, .42);
}

.service-dialog-image {
  min-height: 19rem;
  overflow: hidden;
  background: #d8d0c6;
}

.service-dialog-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-dialog-copy {
  align-self: center;
  padding: clamp(2.25rem, 4vw, 3rem);
}

.service-dialog-kicker {
  margin: 0 0 .9rem;
  color: var(--rust);
  font: 700 .72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.service-dialog h2 {
  margin: 0;
  font-family: Rockwell, "Bookman Old Style", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  hyphens: auto;
  letter-spacing: -.045em;
  line-height: .98;
  overflow-wrap: break-word;
  word-break: normal;
}

.service-dialog-copy > p:last-child {
  margin: 1.5rem 0 0;
  color: #514b46;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.55;
}

.service-dialog-close {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  border: 1px solid rgba(32, 29, 26, .34);
  background: rgba(243, 239, 233, .94);
  color: var(--ink);
  font: 300 1.75rem/1 Arial, Helvetica, sans-serif;
  place-items: center;
}

.service-dialog-close:hover,
.service-dialog-close:focus-visible {
  border-color: var(--rust);
  color: var(--rust);
  outline: none;
}

@media (min-width: 700px) {
  .service-dialog-panel {
    height: min(38rem, 86vh);
    overflow: hidden;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-dialog-image { min-height: 0; }
}

.story-hero-service-icon {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: .45rem;
}

.story-hero-service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-hero-service-number {
  margin: 0 0 .3rem;
  color: var(--rust);
  font: 700 .62rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .14em;
}

.story-hero-service h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .56rem;
  hyphens: none;
  letter-spacing: .01em;
  line-height: 1.17;
  overflow-wrap: normal;
  text-transform: uppercase;
  word-break: normal;
}

.story-hero-service > p:last-child {
  margin: .45rem 0 0;
  color: #514b46;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: .73rem;
  hyphens: auto;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (min-width: 761px) {
  .story-hero {
    min-height: 69rem;
  }

  .story-hero-services {
    position: absolute;
    right: 1.5rem;
    bottom: 1.8rem;
    left: 1.5rem;
  }

  .story-hero-services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-top: .8rem;
  }

  .story-hero-service {
    min-height: 20rem;
    padding: 0 .85rem;
    border-right: 1px solid #b9afa2;
  }

  .story-hero-service:first-child { padding-left: 0; }
  .story-hero-service:last-child { padding-right: 0; border-right: 0; }
}

@media (min-width: 981px) {
  .story-hero {
    height: max(100svh, 64rem);
    min-height: 64rem;
  }

  .story-hero-services {
    right: auto;
    bottom: 1.4rem;
    left: calc(var(--hero-stage-left) + 26px * var(--hero-scale));
    width: calc(768px * var(--hero-scale));
  }

  .story-hero-services-label,
  .story-hero-services-grid {
    transform: scale(var(--hero-scale));
    transform-origin: left bottom;
  }

  .story-hero-services-grid {
    width: 768px;
  }
}

@media (max-width: 760px) {
  .story-hero-services {
    order: 4;
    width: 100%;
    padding: 3.5rem 1.25rem 0;
  }

  .story-hero-services-grid {
    grid-template-columns: 1fr;
  }

  .story-hero-service {
    display: block;
    padding: 1.25rem 0;
    border-bottom: 1px solid #b9afa2;
  }

  .story-hero-service:last-child { border-bottom: 0; }
  .story-hero-service-link { margin-bottom: 1.15rem; }
  .story-hero-service-image { aspect-ratio: 16 / 10; margin-bottom: 0; }
  .story-hero-service-hover { opacity: 1; transform: none; }
  .story-hero-service > p:last-child { font-size: .95rem; line-height: 1.45; }
  .story-hero-service h3 { font-size: .83rem; }
}
/* Palvelukorttien reunimmaiset kuvat saman kokoisiksi */
.story-hero-service:first-child,
.story-hero-service:last-child {
  padding-left: .85rem;
  padding-right: .85rem;
}

.story-hero-service:last-child {
  border-right: 0;
}
/* Avautuvan palveluikkunan kuvaustekstit */
[data-service-dialog-description] {
  margin-top: 1.5rem;
  color: #514b46;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.5;
}

[data-service-dialog-description] p {
  margin: 0 0 1rem;
}

[data-service-dialog-description] p:last-child {
  margin-bottom: 0;
}

[data-service-dialog-description] strong {
  color: var(--ink);
  font-weight: 700;
}
/* Palveluikkunan oikea tekstiosa vieritettäväksi */
@media (min-width: 700px) {
  .service-dialog-copy {
    align-self: stretch;
    min-height: 0;
    max-height: min(38rem, 86vh);
    overflow-y: scroll;
    scrollbar-gutter: stable;
  }
}
.story-hero-service > p:not(.story-hero-service-number) {
  margin: .45rem 0 0;
  color: #514b46;
  font-family: Baskerville, Georgia, "Times New Roman", serif;
  font-size: .73rem;
  hyphens: auto;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.experience-card blockquote {
  font-size: 0.98rem !important;
  line-height: 1.35 !important;
}

@media (max-width: 768px) {
  .experience-card blockquote {
    font-size: 0.62rem !important;
    line-height: 1.3 !important;
  }
}