/* Larata — colors: #F4F6F6 (neutral white), #114B5F (deep teal), #0B2F33 (dark teal), #B08D57 (copper). */
:root {
  --color-primary: #114B5F;
  /* deep teal — company main */
  --color-dark: #0B2F33;
  /* dark teal — support */
  --color-bg: #F4F6F6;
  /* neutral white — background */
  --color-bg-alt: color-mix(in srgb, var(--color-bg) 92%, var(--color-primary) 8%);
  --color-text: #0B2F33;
  --color-text-muted: #114B5F;
  --color-accent: #114B5F;
  --color-accent-hover: #0B2F33;
  --color-copper: #B08D57;
  /* copper — supporting */
  --color-silhouette: rgba(17, 75, 95, 0.25);
  /* deep teal @ 25% for illustrations */
  --color-border: color-mix(in srgb, var(--color-bg) 85%, var(--color-dark) 15%);
  --font-display: 'Nunito', sans-serif;
  --font-body: Roboto, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --max-width: 65ch;
  --container: min(90vw, 1100px);
  --header-height: 7.25rem;
  /* logo 4.25rem + padding-block 2×1.5rem */
  /* Responsive breakpoints */
  --bp-mobile: 600px;
  --bp-tablet: 1024px;
  --bp-desktop: 1025px;
  /* Border-radius system */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 100px;
  --radius-sharp: 0px;
  /* Heading scale — 5 levels (XL → XS) */
  --heading-xl: clamp(2rem, 5vw, 3.25rem);
  /* hero h1 */
  --heading-lg: clamp(1.5rem, 4vw, 2.25rem);
  /* section h2, subpage h1 */
  --heading-md: clamp(1.1rem, 2.5vw, 1.5rem);
  /* intro / sub-heading */
  --heading-sm: 1.1rem;
  /* bento card h3, form h3 */
  --heading-xs: 1rem;
  /* small labels, h4 */
  --ulk-carousel-interval: 5.25s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid var(--color-copper);
  outline-offset: 2px;
}

html {
  background-color: #0B2F33;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

main {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

/* Anchor targets sit below sticky header */
[id="hero"],
[id="main-content"],
[id="palvelut"],
[id="tunnistus"],
[id="teknologia"],
[id="tyoprosessi"],
[id="yrityksille"],
[id="kuluttajille"],
[id="yhteystiedot"] {
  scroll-margin-top: var(--header-height);
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-wrap: break-word;
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: clamp(0.9375rem, 2vw, 1rem);
  line-height: 1.7;
  color: #0B2F33;
  background-color: var(--color-bg);
}

/* Global body copy — default paragraph text */
p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

/* Section headings and hero headline — Nunito only */

.hero__content h1 {
  font-weight: 800;
  letter-spacing: 0;
}

/* Card labels, subsection titles — Roboto (not Nunito) */
h3,
h4,
h5,
h6 {
  font-family: Roboto, sans-serif;
  font-weight: 600;
  text-wrap: balance;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
  box-sizing: border-box;
}

/* ========== Button system — single source of truth ========== */
/* Primary: main CTAs (Ota yhteyttä, Tilaa kartoituskäynti, Lähetä) */
.btn-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: Roboto, sans-serif;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #F4F6F6;
  background: #114B5F;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: #0B2F33;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(11, 47, 51, 0.28);
}

.btn-primary--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  align-self: flex-start;
}

.btn-primary--copper {
  background: var(--color-copper);
  border: 2px solid var(--color-copper);
  box-shadow: 0 2px 8px rgba(176, 141, 87, 0.25);
}

.btn-primary--copper:hover {
  background: #8a6e44;
  border-color: #8a6e44;
  box-shadow: 0 4px 14px rgba(138, 110, 68, 0.35);
}


/* Secondary: Lue lisää, Find out more */

/* Hero CTA — over image */
.btn-hero {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-family: Roboto, sans-serif;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #F4F6F6;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

.btn-hero:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.9);
  color: #F4F6F6;
}

.btn-hero--light {
  color: #F4F6F6;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(11, 47, 51, 1), 0 0 30px rgba(11, 47, 51, 1), 0 0 70px rgba(11, 47, 51, 0.8);
  text-shadow: 0 1px 6px rgba(11, 47, 51, 0.9), 0 0 20px rgba(11, 47, 51, 0.7);
  padding: 0.875rem 2.25rem;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  font-family: Roboto, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.btn-hero--light:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.9);
  color: #F4F6F6;
}

/* Nav links — resting: text only; hover: text color to copper at 85% opacity */
.nav-list a,
.nav a.nav-link {
  color: #114B5F;
  text-decoration: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: color 0.35s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav a.nav-link:hover {
  color: rgba(176, 141, 87, 0.85);
}

/* Torjujille — nav CTA */
.btn-torjujille {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem 1.25rem;
  font-family: Roboto, sans-serif;
  font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #114B5F;
  background: transparent;
  border: 1.5px solid #114B5F;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-torjujille__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.btn-torjujille:hover {
  background: rgba(17, 75, 95, 0.10);
  border-color: #114B5F;
  color: #114B5F;
}

.btn-torjujille--hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Subpage back-to-home link */
.section:has(+ .page-back) {
  padding-bottom: var(--space-sm);
}

.page-back {
  text-align: left;
  margin-top: 0;
  padding-bottom: 2rem;
}

.page-back a {
  color: color-mix(in srgb, var(--color-primary) 60%, white 40%);
  text-decoration: none;
  font-size: 0.9rem;
}

.page-back a:hover {
  text-decoration: underline;
}

/* Header — solid bar, identical on every page so navigation feels seamless */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 0;
  max-height: 8rem;
  overflow: visible;
  background-color: rgba(244, 246, 246, 1);
  border-bottom: 1px solid rgba(11, 47, 51, 0.15);
  box-shadow: 0 1px 12px rgba(11, 47, 51, 0.08),
    0 1px 3px rgba(11, 47, 51, 0.06);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-md);
  min-height: 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  font-size: 1.5rem;
  font-family: Roboto, sans-serif;
  font-weight: 700;
  color: var(--color-accent);
  /* Safe area around logo = size of the "a" in the logo (~0.37 × logo height) */
  padding: 1.25rem;
  margin: -1.25rem;
  transition: all 0.25s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo img {
  display: block;
  height: 4.25rem;
  width: auto;
  max-width: min(260px, 100%);
  object-fit: contain;
  vertical-align: middle;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s ease;
}

.nav-toggle:hover {
  background-color: rgba(17, 75, 95, 0.07);
  color: var(--color-accent-hover);
}

.nav-toggle::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
  transform: translateY(-3px);
  transition: all 0.25s ease;
}

.nav-toggle[aria-expanded="true"]::before {
  position: absolute;
  top: 50%;
  left: 50%;
  box-shadow: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.nav a {
  text-decoration: none;
  font-family: Roboto, sans-serif;
  font-weight: 500;
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  position: relative;
}


/* btn-nav-cta: legacy nav CTA (other pages); no movement on hover */

/* Two-col features: stack on smaller screens */

/* Tablet and below: hamburger menu so nav is never cut off (e.g. iPad 820px) */
@media (max-width: 920px) {
  .nav-toggle {
    display: flex;
  }

  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 250;
  }

  body {
    padding-top: var(--header-height);
  }

  html:has(body.nav-open),
  body.nav-open {
    overflow: visible;
  }

  .nav-mobile-placeholder {
    display: none !important;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: min(100%, 16rem);
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--space-md) var(--space-sm) var(--space-sm);
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: -4px 0 24px rgba(11, 47, 51, 0.08);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
    transform: translateX(0);
    visibility: visible;
  }

  .site-header:has(.nav.is-open) {
    overflow: visible;
  }

  .site-header:has(.nav.is-open) .container,
  .site-header:has(.nav.is-open) .header-inner,
  .site-header:has(.nav.is-open) .header-main {
    overflow: visible;
  }

  .nav.is-open .nav-list a,
  .nav .nav-list a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text);
    display: block;
    padding: 0.4rem var(--space-sm);
    letter-spacing: 0.02em;
  }

  .nav.is-open .nav-list a:hover,
  .nav.is-open .nav-list a:focus-visible,
  .nav .nav-list a:hover,
  .nav .nav-list a:focus-visible {
    color: var(--color-copper);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding-block: 0.15rem;
  }

  .nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-list a {
    display: block;
    padding: 0.4rem var(--space-sm);
    font-size: 0.875rem;
  }

  .btn-torjujille {
    margin-top: var(--space-xs);
    justify-content: center;
    padding: 0.4rem var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    border-color: var(--color-accent);
  }

  .btn-torjujille .btn-torjujille__icon {
    width: 1rem;
    height: 1rem;
  }
}

/* Mobile: hamburger menu (up to 600px) — tighter logo and header */
@media (max-width: 600px) {
  :root {
    --header-height: 6rem;
    /* logo shrinks to 3rem here, so 3rem + 2×1.5rem = 6rem */
  }

  .nav-toggle {
    display: flex;
  }

  /* Header: fixed on mobile so burger is always visible when scrolling; above nav overlay so button stays clickable */
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 250;
  }

  /* Compensate for fixed header so content isn't hidden under it */
  body {
    padding-top: var(--header-height);
  }

  /* When menu is open: don't clip the nav panel (scroll lock is done via JS position:fixed) */
  html:has(body.nav-open),
  body.nav-open {
    overflow: visible;
  }

  /* Placeholder keeps header layout when nav is moved to body; hide it */
  .nav-mobile-placeholder {
    display: none !important;
  }

  /* Offcanvas nav: starts below header; height fits content (stops after Torjujille) */
  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: min(100%, 16rem);
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--space-md) var(--space-sm) var(--space-sm);
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: -4px 0 24px rgba(11, 47, 51, 0.08);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
    transform: translateX(0);
    visibility: visible;
  }

  /* Prevent any ancestor from clipping the open nav panel */
  .site-header:has(.nav.is-open) {
    overflow: visible;
  }

  .site-header:has(.nav.is-open) .container,
  .site-header:has(.nav.is-open) .header-inner,
  .site-header:has(.nav.is-open) .header-main {
    overflow: visible;
  }

  /* Mobile nav: condensed, same fonts and colors as rest of site */
  .nav.is-open .nav-list a,
  .nav .nav-list a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text);
    display: block;
    padding: 0.4rem var(--space-sm);
    letter-spacing: 0.02em;
  }

  .nav.is-open .nav-list a:hover,
  .nav.is-open .nav-list a:focus-visible,
  .nav .nav-list a:hover,
  .nav .nav-list a:focus-visible {
    color: var(--color-copper);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding-block: 0.15rem;
  }

  .nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-list a {
    display: block;
    padding: 0.4rem var(--space-sm);
    font-size: 0.875rem;
  }

  .btn-torjujille {
    margin-top: var(--space-xs);
    justify-content: center;
    padding: 0.4rem var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    border-color: var(--color-accent);
  }

  .btn-torjujille .btn-torjujille__icon {
    width: 1rem;
    height: 1rem;
  }

  .logo {
    padding: 0.75rem;
    margin: -0.75rem;
  }

  .logo img {
    height: 3rem;
    max-width: 12rem;
  }
}

/* Mobile landscape: compact header so it doesn’t cover ~half the screen */
@media (max-width: 600px) and (orientation: landscape),
(orientation: landscape) and (max-height: 500px) {
  :root {
    --header-height: 2.75rem;
  }

  .header-main {
    padding-block: 0.35rem;
  }

  .logo {
    padding: 0.35rem;
    margin: -0.35rem;
  }

  .logo img {
    height: 2rem;
    max-width: 8rem;
  }

  .nav-toggle {
    width: 2rem;
    height: 2rem;
  }

  .nav-toggle::before {
    width: 1rem;
    box-shadow: 0 4px 0 currentColor;
    transform: translateY(-2px);
  }

  .nav-toggle[aria-expanded="true"]::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"]::after {
    width: 1rem;
    height: 2px;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

/* Hero — full-width image; height from viewport, no hardcoded px */
.hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 20rem;
  max-height: 70vh;
  overflow: hidden;
}

@media (max-width: 600px) {
  .hero {
    min-height: 16rem;
    height: 50vh;
  }

  .btn-hero--light {
    box-shadow: 0 2px 8px rgba(11, 47, 51, 0.9);
    /* strip 30/70px spread that bled over chevron */
  }
}


.hero__img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  text-align: center;
  padding: clamp(var(--space-sm), 4vw, var(--space-lg));
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  font-size: var(--heading-xl);
  line-height: 1.25;
  margin: 0;
  color: var(--color-bg);
  text-shadow: 0 1px 3px rgba(11, 47, 51, 0.5), 0 0 24px rgba(11, 47, 51, 0.25);
  max-width: 100%;
}

/* Hero subtitle — lighter weight, sits below H1 */
.hero-subtitle {
  font-family: Roboto, sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 500;
  color: #F4F6F6;
  text-shadow: 0 2px 6px rgba(11, 47, 51, 1), 0 0 30px rgba(11, 47, 51, 1), 0 0 60px rgba(11, 47, 51, 0.8);
  margin: 0;
  max-width: 52ch;
  text-align: center;
  line-height: 1.6;
}

/* Hero CTA base (non-light variant for dark sections): uses button system .btn-hero */

@media (max-width: 600px) {
  .hero__content {
    gap: 1.25rem;
    padding-bottom: 5.5rem;
    /* keep button clear of chevron at bottom: 1rem */
  }
}

/* Section chevron — absolutely positioned at hero bottom, straddles hero/intro boundary */
.section-chevron {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: all;
  line-height: 0;
}

.section-chevron a {
  display: block;
  cursor: pointer;
}

.section-chevron svg {
  width: 2.75rem;
  height: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(11, 47, 51, 0.35));
  opacity: 0.85;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.section-chevron a:hover svg {
  opacity: 1;
  filter: drop-shadow(0 1px 4px rgba(11, 47, 51, 0.35)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.45));
}

/* #palvelut — three-column cards + process flow */
.section__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  font-size: var(--heading-lg);
  margin: 0 0 var(--space-lg);
}

/* Palvelut section — V-shape overlay over hero needs solid background */
.palvelut-section.section.intro {
  background-color: #F4F6F6;
  padding-top: 32px;
  padding-bottom: 0;
  z-index: 0;
  /* stay below Työprosessi so gradient/shadow don’t cover it */
}

#palvelut {
  padding-top: 0;
  padding-bottom: 6rem;
  background-color: #F4F6F6;
}

/* Company info section — solid #F4F6F6 (V-notch is on parent .intro section) */
.intro-section {
  position: relative;
  z-index: 1;
  /* above gradient wrapper so full intro text is visible */
  padding-top: 1.5rem;
  padding-bottom: 0.75rem;
  background: #F4F6F6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Palvelut — three cards; gradient at top then solid (no box-shadow — it was covering the cards) */

/* Chevron at bottom of Palvelut linking down to Työprosessi */

/* Three cards side by side — 80% page width */

/* Column container — top padding for badge overlap */

/* Badge — circle on top edge of card, half in / half out */

/* Card — text only, centered; top padding for badge overlap */

/* Background scene — subtle behind text */

/* #tyoprosessi — Light neutral timeline section; V-notch at top only (flat bottom; Yrityksille has V at its top). Same gradient shape as .palvelut-boxes-wrapper but copper instead of teal. */
.tyoprosessi-section {
  background: linear-gradient(to bottom,
      #F4F6F6 0%,
      #F4F6F6 90%,
      color-mix(in srgb, #F4F6F6 70%, #B08D57 30%) 96%,
      rgba(176, 141, 87, 0.5) 100%);
  padding-top: 4.5rem;
  padding-bottom: 5rem;
  position: relative;
  margin-top: -2rem;
  z-index: 1;
  clip-path: polygon(0% 0%,
      calc(50% - 40px) 0%,
      50% 32px,
      calc(50% + 40px) 0%,
      100% 0%,
      100% 100%,
      0% 100%);
}

.tyoprosessi-section__rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(176, 141, 87, 0.35);
}

.tyoprosessi-section__rule--top {
  top: 0;
  display: none;
  /* decorative line between chevron and Työprosessi removed */
}

.tyoprosessi-head {
  text-align: left;
  margin-bottom: 1.75rem;
}

.tyoprosessi-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--color-border);
}

.tyoprosessi-tab {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: color 0.15s, border-color 0.15s;
}

.tyoprosessi-tab:hover {
  color: var(--color-primary);
}

.tyoprosessi-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-copper);
}

/* Copper rule: identical to Palvelut — 60px × 2px (hidden per design) */
.tyoprosessi-copper-rule {
  display: none;
}

/* Section heading — Nunito (unchanged style) */
.tyoprosessi-section__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  font-size: var(--heading-lg);
  color: #114B5F;
  margin: 0;
  text-align: left;
}

.tyoprosessi-track {
  display: grid;
  position: relative;
  padding: 0;
  margin-top: 6rem;
}

#panel-sisatiloissa .tyoprosessi-track {
  grid-template-columns: repeat(5, 1fr);
}

#panel-ulkotiloissa .tyoprosessi-track {
  grid-template-columns: repeat(6, 1fr);
}

/* Connecting line: copper, 4px, rounded ends. Inset by half a column so it runs center-to-center of first and last circles. */
.tyoprosessi-track::before {
  content: '';
  position: absolute;
  height: 4px;
  background-color: #B08D57;
  border-radius: var(--radius-sm);
  z-index: 0;
  top: 198px;
  transform: translateY(-50%);
}

#panel-sisatiloissa .tyoprosessi-track::before {
  left: 10%;
  right: 10%;
}

#panel-ulkotiloissa .tyoprosessi-track::before {
  left: calc(100% / 12);
  right: calc(100% / 12);
}

.tyoprosessi-step {
  display: grid;
  grid-template-rows: 160px 52px auto;
  row-gap: 12px;
  align-items: center;
  justify-items: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.tyoprosessi-step__text {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 12px;
  width: 100%;
}

.tyoprosessi-step__illus {
  width: 100%;
  max-width: 10.5rem;
  height: auto;
  min-height: 12rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
  line-height: 0;
  position: relative;
  z-index: 2;
  align-self: flex-end;
}

.tyoprosessi-step__illus img {
  width: auto;
  max-width: 100%;
  max-height: 10rem;
  display: block;
  margin: 0;
  padding: 0;
  vertical-align: bottom;
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(1000%) hue-rotate(152deg) brightness(94%) contrast(91%);
  position: relative;
  z-index: 2;
}

/* Focal spraying worker — nudge slightly right so feet align with number */
.tyoprosessi-step__illus--focal img {
  max-height: 10rem;
  transform: translateX(32px);
}

.tyoprosessi-step__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #B08D57;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 0;
  z-index: 2;
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #F4F6F6;
  text-shadow: none;
  letter-spacing: 0;
  line-height: 1;
  flex-shrink: 0;
}

/* Timeline step labels — 11px Nunito 800 uppercase (match section heading font) */
.tyoprosessi-step__label {
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0B2F33;
  text-align: center;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

/* Timeline descriptors — 11px Roboto 400 */
.tyoprosessi-step__desc {
  font-family: Roboto, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #0B2F33;
  opacity: 0.8;
  text-align: center;
  margin: 0;
  line-height: 1.4;
  max-width: 90px;
  min-height: 1em;
}

/* Työprosessi: vertical stacked layout on tablet and mobile (≤900px) */
@media (max-width: 900px) {
  .tyoprosessi-section .container {
    overflow: visible;
    overflow-x: clip;
  }

  .tyoprosessi-head {
    margin-bottom: 2rem;
    text-align: center;
  }

  .tyoprosessi-section__title {
    font-size: var(--heading-lg);
    text-align: center;
  }

  .tyoprosessi-track {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0;
    padding-left: 0;
    position: relative;
    overflow: visible;
    overflow-x: clip;
    isolation: isolate;
    /* own stacking context so ::before z-index:-1 stays behind children */
  }

  /* Vertical line — use ID selector to beat desktop #panel-sisatiloissa .tyoprosessi-track::before specificity */
  #panel-sisatiloissa .tyoprosessi-track::before {
    left: calc(8rem - 2px);
    /* illus(6rem) + gap(0.75rem) + half-circle(1.25rem) – half-linewidth(2px) */
    right: auto;
    top: 0;
    bottom: 0;
    width: 4px;
    height: auto;
    min-height: 100%;
    border-radius: var(--radius-sm);
    transform: none;
    z-index: -1;
  }

  .tyoprosessi-step {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    grid-template-rows: unset;
    grid-template-columns: unset;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.5rem 0;
    margin-left: 0;
    position: relative;
    min-height: 0;
    row-gap: 0;
  }

  /* Fixed-width illus column so all numbered circles align in a straight line */
  .tyoprosessi-step__illus {
    display: flex;
    order: 1;
    align-items: center;
    justify-content: center;
    width: 6rem;
    max-width: 6rem;
    min-width: 6rem;
    min-height: 0;
    margin: 0;
    flex-shrink: 0;
  }

  .tyoprosessi-step__illus img {
    width: auto;
    max-width: 100%;
    max-height: 7rem;
    object-fit: contain;
  }

  .tyoprosessi-step--focal {
    margin-left: 0;
  }

  .tyoprosessi-step__illus--focal {
    width: 6rem;
    max-width: 6rem;
    min-width: 6rem;
  }

  .tyoprosessi-step__illus--focal img {
    max-height: 7rem;
    transform: none;
  }

  .tyoprosessi-step__circle {
    order: 2;
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin-left: 0;
    margin-top: 0;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
    flex-shrink: 0;
  }

  .tyoprosessi-step__text {
    order: 3;
    flex: 1;
    min-width: 0;
    margin-top: 0;
    min-height: 0;
    align-items: center;
  }

  .tyoprosessi-step__label,
  .tyoprosessi-step__desc {
    text-align: left;
    margin-top: 0;
    max-width: none;
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  }

  .tyoprosessi-step__label {
    margin-bottom: 0.25rem;
  }
}

/* Mobile (≤600px): narrow icon column */
@media (max-width: 600px) {
  #panel-sisatiloissa .tyoprosessi-track::before {
    /* illus(4rem) + gap(0.75rem) + half-circle(1.25rem) – half-linewidth(2px) */
    left: calc(6rem - 2px);
  }

  .tyoprosessi-step__illus,
  .tyoprosessi-step__illus--focal {
    width: 4rem;
    max-width: 4rem;
    min-width: 4rem;
  }

  .tyoprosessi-step__illus img {
    max-height: 5rem;
  }

  .tyoprosessi-step__illus--focal img {
    max-height: 5rem;
  }

  .tyoprosessi-step__label,
  .tyoprosessi-step__desc {
    font-size: clamp(0.6875rem, 1.5vw, 0.6875rem);
  }
}

/* ── Ulkotiloissa carousel ─────────────────────────────────────────────────── */
.ulk-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ulk-carousel__stage {
  width: 100%;
  max-width: 52rem;
  aspect-ratio: 5317 / 2515;
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.6);
  padding: 1.5rem 2rem;
  box-shadow:
    0 4px 24px rgba(11, 47, 51, 0.08),
    0 1px 6px rgba(11, 47, 51, 0.06);
  margin: 0 auto;
}

.ulk-carousel__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease;
  border-radius: 0.5rem;
}

.ulk-carousel__img.is-fading {
  opacity: 0;
}

/* Step track — 6-column grid with copper connecting line */
.ulk-carousel__track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  width: 100%;
}

.ulk-carousel__track::before {
  content: '';
  position: absolute;
  height: 4px;
  background-color: var(--color-copper);
  border-radius: var(--radius-sm);
  z-index: 0;
  top: 26px;
  /* half of 52px circle */
  left: calc(100% / 12);
  right: calc(100% / 12);
}

/* Step button */
.ulk-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.ulk-step:focus-visible {
  outline: 2px solid var(--color-copper);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Inactive circle: white bg, copper border */
.ulk-step__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--color-copper);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-copper);
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

/* Active circle: filled copper, white number */
.ulk-step--active .ulk-step__circle {
  background: var(--color-copper);
  color: #F4F6F6;
}

.ulk-step__desc {
  display: none;
  /* replaced by .ulk-carousel__caption below the image */
}

/* Caption shown below the image for the active step */
.ulk-carousel__caption {
  font-family: Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-primary);
  text-align: center;
  margin: 1rem auto 1.25rem;
  padding: 0.25rem 1rem;
  min-height: 2rem;
  max-width: 36rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.ulk-carousel__progress {
  width: min(100%, 24rem);
  height: 3px;
  margin: -0.75rem auto 1rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(176, 141, 87, 0.16);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ulk-carousel.is-auto-running .ulk-carousel__progress {
  opacity: 1;
}

.ulk-carousel__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-copper);
  transform: scaleX(0);
  transform-origin: left center;
}

.ulk-carousel__progress-bar.is-running {
  animation: ulkCarouselProgress var(--ulk-carousel-interval) linear forwards;
}

@keyframes ulkCarouselProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Tablet/mobile: smaller circles */
@media (max-width: 900px) {
  .ulk-carousel__track::before {
    top: 20px;
    /* half of 40px circle */
  }

  .ulk-step__circle {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-width: 2px;
  }

  .ulk-carousel__caption {
    font-size: 0.875rem;
    min-height: 1.5rem;
    margin: 0.5rem auto 0.5rem;
  }

  .ulk-carousel__progress {
    margin: -0.25rem auto 0.75rem;
  }
}

@media (max-width: 480px) {
  .ulk-step {
    padding: 0.125rem;
  }

  .ulk-carousel__track::before {
    top: 16px;
    /* half of 32px circle */
  }

  .ulk-step__circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

/* Thin screens and tablet: stack all three cards vertically */

/* Desktop (above 768px): constrain cards container so three cards sit closer together */

/* Mobile: cards only, no character art, all text centered */

/* Tablet/small desktop (601px–768px): two-column row (text left, circle right). Not applied at ≤600px so small mobile uses cards-only layout. */
@media (min-width: 601px) and (max-width: 768px) {

  /* Badge: circular frame overlaid inside the card on the right, vertically centered */
}

/* #kuluttajille — rautalankamalli + info blocks */

/* Audience selector on etusivu — two equal cards side by side */
.audience-selector-section {
  position: relative;
}

.audience-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
  align-items: stretch;
  position: relative;
}

.audience-card {
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  box-shadow:
    0 4px 14px rgba(11, 47, 51, 0.14),
    0 14px 46px rgba(11, 47, 51, 0.18);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--space-md);
}

.audience-card .section__title {
  margin-bottom: var(--space-xs);
}

.audience-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  justify-content: flex-start;
  gap: var(--space-sm);
}

.audience-card__body>p:last-child {
  margin-top: auto;
}

.audience-card__image {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
}

.audience-card__image img {
  max-width: 160px;
  width: 100%;
  height: auto;
  display: block;
}

/* Kenelle: stack two columns vertically on mobile; hide character art, smaller cards */
@media (max-width: 600px) {
  .audience-selector {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    width: 100%;
    max-width: 100%;
  }

  .audience-card {
    grid-template-columns: 1fr;
    padding: var(--space-md);
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .audience-card .section__title {
    margin-bottom: var(--space-xs);
    font-size: 1.15rem;
  }

  .audience-card__body {
    gap: var(--space-sm);
  }

  .audience-card__body .section-lead {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .audience-card__body .btn-primary {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
  }

  .audience-card__image {
    display: none;
  }
}

/* #kohderyhmille — copper Lue lisää buttons */
#kohderyhmille .audience-card .btn-primary {
  background: var(--color-copper);
  border: 2px solid var(--color-copper);
  box-shadow: 0 2px 8px rgba(176, 141, 87, 0.25);
  color: #F4F6F6;
  transition: all 0.25s ease;
}

#kohderyhmille .audience-card .btn-primary:hover {
  background: #8a6e44;
  border-color: #8a6e44;
  color: #F4F6F6;
  box-shadow: 0 4px 14px rgba(176, 141, 87, 0.35);
  transform: translateY(-1px);
}

/* #yhteystiedot — heading + 3-column grid: info | map | form */
.yhteystiedot-section {
  background: #0B2F33;
}

.yhteystiedot-section .yhteystiedot-heading {
  color: #F4F6F6;
  margin-bottom: var(--space-md);
}

.yhteystiedot-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-lg);
  align-items: stretch;
}

.yhteystiedot-block {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-nap {
  font-family: Roboto, sans-serif;
  font-style: normal;
  font-size: 1rem;
  font-weight: 400;
  color: #F4F6F6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-nap .company {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.contact-nap a {
  color: rgba(244, 246, 246, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-nap a:hover {
  color: var(--color-accent);
}

.tel-link,
.email-link {
  color: var(--color-copper);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.tel-link:hover,
.email-link:hover {
  color: #C9A97A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-nap .tel-link,
.contact-nap .email-link {
  font-size: 1.1rem;
}

.yhteystiedot-maps {
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: 1;
  min-height: 160px;
  position: relative;
}

.yhteystiedot-maps iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yhteystiedot-form-wrap {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

#yhteystiedot .yhteystiedot-block h3,
#yhteystiedot .yhteystiedot-form-wrap h3 {
  font-family: 'Nunito', sans-serif;
  font-size: var(--heading-sm);
  font-weight: 800;
  color: #F4F6F6;
  margin: 0;
}

#yhteystiedot .yhteystiedot-form-wrap h3 {
  margin-bottom: var(--space-md);
}

.yhteystiedot-form-wrap .contact-form {
  max-width: none;
}

.yhteystiedot-form-wrap .contact-form input,
.yhteystiedot-form-wrap .contact-form textarea {
  margin-bottom: var(--space-sm);
}

.yhteystiedot-form-wrap .contact-form textarea {
  min-height: 5rem;
}

/* Contact form fields: light fill */
.yhteystiedot-form-wrap .contact-form input,
.yhteystiedot-form-wrap .contact-form textarea {
  background: #F4F6F6;
  border: 2px solid #F4F6F6;
  color: #0B2F33;
  border-radius: var(--radius-sm);
}

.yhteystiedot-form-wrap .contact-form input::placeholder,
.yhteystiedot-form-wrap .contact-form textarea::placeholder {
  color: rgba(11, 47, 51, 0.5);
  opacity: 1;
}

.yhteystiedot-form-wrap .contact-form input:focus,
.yhteystiedot-form-wrap .contact-form textarea:focus {
  border-color: #0B2F33;
  box-shadow: 0 0 0 2px rgba(11, 47, 51, 0.15);
}

.yhteystiedot-section .contact-form label {
  color: #F4F6F6;
}

.yhteystiedot-section .btn-primary {
  background: var(--color-copper);
  color: #F4F6F6;
  border: 2px solid var(--color-copper);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(176, 141, 87, 0.35);
}

.yhteystiedot-section .btn-primary:hover {
  background: #8a6e44;
  border-color: #8a6e44;
  color: #F4F6F6;
  box-shadow: 0 4px 14px rgba(176, 141, 87, 0.45);
}

/* Mobile: single column */
@media (max-width: 600px) {
  .yhteystiedot-section {
    padding-block: var(--space-lg);
  }

  .yhteystiedot-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Footer — minimal */
.footer-nap-line {
  margin: 0 0 var(--space-xs);
  font-family: Roboto, sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(244, 246, 246, 0.75);
  text-align: center;
  max-width: 100%;
  word-wrap: break-word;
}

.footer-nap-line .company {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  color: #F4F6F6;
}

.footer-nap-line a {
  color: #F4F6F6;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-nap-line a:hover {
  color: rgba(244, 246, 246, 0.75);
  opacity: 1;
  transition: all 0.25s ease;
}

.footer-legal {
  margin: 0 0 var(--space-xs);
  font-family: Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(244, 246, 246, 0.75);
}

.footer-legal a {
  color: #F4F6F6;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-legal a:hover {
  color: rgba(244, 246, 246, 0.75);
  opacity: 1;
  transition: all 0.25s ease;
}

/* Intro — overlaps hero slightly; V-notch clip-path on this section only (hero has no clip-path) */
.intro {
  position: relative;
  margin-top: -32px;
  /* match notch depth so V tip meets hero edge */
  padding-top: 72px;
  /* content clear of notch */
  padding-bottom: var(--space-xl);
  padding-inline: 0;
  clip-path: polygon(0% 0%,
      calc(50% - 40px) 0%,
      50% 32px,
      calc(50% + 40px) 0%,
      100% 0%,
      100% 100%,
      0% 100%);
}

/* If intro needs a shadow, add a wrapper and put box-shadow on the wrapper (clip-path clips shadow) */

.intro__content {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem clamp(1rem, 4vw, 1.5rem) 0.75rem;
  transform: translateY(-2.5rem);
  box-sizing: border-box;
}

/* Intro H2 heading — .section prefix raises specificity above .section h2 (0,1,1) */
.section .intro__heading {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: var(--heading-md);
  color: #114B5F;
  margin: 1.75rem 0 1.75rem;
  line-height: 1.25;
}

/* Intro paragraph — 18px Roboto 300 */
.intro__text {
  font-family: Roboto, sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.8;
  color: #114B5F;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  text-shadow: 0 10px 24px rgba(17, 75, 95, 0.18);
}

/* Intro highlight chips */

/* Copper pill underline under key intro words */

/* Sections */
.section {
  padding-block: var(--space-xl);
  background-color: var(--color-bg);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

/* V-notch at top for tunnistus — sits above palvelut (0) but below tyoprosessi (2) */
#tunnistus {
  position: relative;
  margin-top: -32px;
  padding-top: 72px;
  z-index: 1;
  clip-path: polygon(0% 0%,
      calc(50% - 40px) 0%,
      50% 32px,
      calc(50% + 40px) 0%,
      100% 0%,
      100% 100%,
      0% 100%);
}

/* V-notch at top for teknologia — now sits above tunnistus (z-index 1), below tyoprosessi (z-index 3) */
#teknologia {
  position: relative;
  margin-top: -32px;
  padding-top: 72px;
  padding-bottom: 72px;
  z-index: 2;
  clip-path: polygon(0% 0%,
      calc(50% - 40px) 0%,
      50% 32px,
      calc(50% + 40px) 0%,
      100% 0%,
      100% 100%,
      0% 100%);
}

/* Tyoprosessi sits above teknologia (z-index 2) */
#tyoprosessi {
  z-index: 3;
}

/* V-notch at top (same as hero→palvelut intro) so each section has chevron cutout into the one above */
#kohderyhmille,
#yrityksille,
#kuluttajille,
#yhteystiedot {
  position: relative;
  margin-top: -32px;
  padding-top: 72px;
  padding-bottom: 72px;
  z-index: 4;
  /* above tyoprosessi (z-index 3) so V-shaped top edge is visible */
  clip-path: polygon(0% 0%,
      calc(50% - 40px) 0%,
      50% 32px,
      calc(50% + 40px) 0%,
      100% 0%,
      100% 100%,
      0% 100%);
}

#yhteystiedot {
  background: #0B2F33;
  padding-bottom: var(--space-lg);
}

#yrityksille {
  background: linear-gradient(to bottom,
      #F4F6F6 0%,
      #F4F6F6 80%,
      #D6E0E3 92%,
      rgba(17, 75, 95, 0.5) 100%);
}

#kuluttajille {
  background: linear-gradient(to bottom,
      #F4F6F6 0%,
      #F4F6F6 80%,
      #D6E0E3 92%,
      rgba(17, 75, 95, 0.5) 100%);
}

/* Audience selector section on etusivu — match teal gradient used in other teal sections */
#kohderyhmille {
  background: linear-gradient(to bottom,
      #F4F6F6 0%,
      #F4F6F6 80%,
      #D6E0E3 92%,
      rgba(17, 75, 95, 0.5) 100%);
}

.section h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  font-size: var(--heading-lg);
  margin: 0 0 var(--space-md);
  color: #114B5F;
}

.section-lead {
  max-width: var(--max-width);
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
}

/* Contact */

/* Contact form */
.contact-form {
  width: 100%;
  max-width: 28rem;
  margin-top: 0;
  box-sizing: border-box;
}

.contact-form label {
  display: block;
  font-family: Roboto, sans-serif;
  font-size: clamp(0.6875rem, 1.5vw, 0.75rem);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: Roboto, sans-serif;
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--color-accent);
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact-form button[type="submit"] {
  /* Uses .btn-primary from button system */
  cursor: pointer;
}

/* Footer */
.site-footer {
  position: relative;
  padding-block: var(--space-md);
  border-top: 1px solid rgba(244, 246, 246, 0.15);
  background-color: #0B2F33;
}

.footer-logo {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  display: block;
  width: 72px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 0.85;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  padding-inline: var(--space-md);
  box-sizing: border-box;
}

.footer-copy {
  margin: 0;
  font-family: Roboto, sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  font-weight: 400;
  color: rgba(244, 246, 246, 0.75);
}

/* Unified subsection/card headings — exclude .palvelut-col__heading (uses Työprosessi-style Nunito) */


/* Page title — Nunito when used for page headlines */
.page-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  font-size: var(--heading-lg);
  margin: 0 0 var(--space-md);
}

/* Prose block — long-form legal/info text (tietosuoja etc.) */
.prose-block {
  max-width: 680px;
  margin-top: var(--space-lg);
}

.prose-block h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #114B5F;
  margin: 2rem 0 0.5rem;
  letter-spacing: 0;
}

.prose-block h2:first-child {
  margin-top: 0;
}

.prose-block p,
.prose-block li {
  font-family: Roboto, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-text, #1a2e35);
}

.prose-block ul {
  padding-left: 1.25rem;
  margin: 0.35rem 0 0.75rem;
}

.prose-block li {
  margin-bottom: 0.35rem;
}

.prose-block a {
  color: #114B5F;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-block a:hover {
  color: #0d3a4a;
}

/* Subpages (yrityksille, kuluttajille): content left, illustration right */

@media (max-width: 768px) {

  /* Audience cards: tighter gap on tablet so cards aren't too narrow */
  .audience-selector {
    gap: var(--space-lg);
  }
}

/* 404 */

/* Images and SVGs — never overflow containers */
img,
svg {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

/* Mobile: strict no-horizontal-scroll — constrain all content to viewport */
@media (max-width: 600px) {

  html,
  body {
    overflow-x: hidden;
    overflow-x: clip;
  }

  body>* {
    max-width: 100%;
    min-width: 0;
  }

  .container {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* When mobile menu is open, do not clip the nav panel (overrides rule above) */
  .site-header:has(.nav.is-open) {
    overflow: visible;
    overflow-x: visible;
  }

  .footer-nap-line,
  .contact-nap,
  .intro__text {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Reduce base section vertical padding on mobile */
  .section {
    padding-block: 2.5rem;
  }

  /* Reduce #palvelut and palvelut bento bottom padding on mobile */
  #palvelut {
    padding-bottom: 3rem;
  }

  .palvelut-section--bento {
    padding-bottom: 3rem;
  }

  /* Reduce tyoprosessi vertical padding on mobile */
  .tyoprosessi-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ============================================================
   TUNNISTUS SECTION
   ============================================================ */

.tunnistus-section {
  position: relative;
  background: #0B2F33;
}

.tunnistus-section .tunnistus__heading {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: var(--heading-lg);
  color: #F4F6F6;
  margin: 0 0 var(--space-sm);
}

.tunnistus-section .tunnistus__text {
  max-width: 52ch;
  margin-bottom: 0;
  color: rgba(244, 246, 246, 0.8);
}

/* ── Bento grid ─────────────────────────────────────────────── */

@keyframes bentoFadeIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: var(--space-lg);
}

/* Prevent grid children from overflowing their columns (min-width: auto default causes right-side crop) */
.bento-grid>* {
  min-width: 0;
}

/* JS adds .animate-ready — hides cards until observer fires */

.bento-card.is-visible {
  animation: bentoFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bento-card:nth-child(1) {
  animation-delay: 0s;
}

.bento-card:nth-child(2) {
  animation-delay: 0.12s;
}

.bento-card:nth-child(3) {
  animation-delay: 0.22s;
}

.bento-card:nth-child(4) {
  animation-delay: 0.32s;
}

/* Työprosessi steps */

.tyoprosessi-step.is-visible {
  animation: bentoFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tyoprosessi-step:nth-child(1) {
  animation-delay: 0s;
}

.tyoprosessi-step:nth-child(2) {
  animation-delay: 0.10s;
}

.tyoprosessi-step:nth-child(3) {
  animation-delay: 0.20s;
}

.tyoprosessi-step:nth-child(4) {
  animation-delay: 0.30s;
}

.tyoprosessi-step:nth-child(5) {
  animation-delay: 0.40s;
}

.tyoprosessi-step:nth-child(6) {
  animation-delay: 0.50s;
}

/* Audience cards */

.audience-card.is-visible {
  animation: bentoFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.audience-card:nth-child(1) {
  animation-delay: 0s;
}

.audience-card:nth-child(2) {
  animation-delay: 0.14s;
}

.bento-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.bento-card--hero {
  grid-column: 1 / 3;
}

/* Header row inside bento grid — used in #teknologia */
.bento-grid--with-header {
  margin-top: 0;
  /* headings are inside the grid */
}

.bento-grid--with-header .bento-header__text {
  grid-column: 1 / 3;
  grid-row: 1;
  align-self: end;
  padding-bottom: 0.5rem;
}

.bento-grid--with-header .bento-header__illus {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.bento-grid--with-header .bento-header__illus img {
  max-height: 220px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

/* Cards start at row 2 */
.bento-grid--with-header .bento-card--hero {
  grid-row: 2;
}

/* Hide illustration on 2-col and 1-col layouts — no space for it */
@media (max-width: 700px) {
  .bento-grid--with-header .bento-header__text {
    grid-column: 1 / -1;
  }

  .bento-grid--with-header .bento-header__illus {
    display: none;
  }
}


/* Light variant — used in #palvelut */
.palvelut-section--bento {
  position: relative;
  margin-top: -2rem;
  /* close the gap left by removing the old wrapper's negative margin */
  padding-bottom: 6rem;
  /* clears #teknologia's -32px overlap + chevron space */
}

.palvelut-section--bento .bento-grid {
  margin-top: 4.5rem;
  /* room for badge overlap above cards */
}

.bento-card__badge {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: #F4F6F6;
  box-shadow:
    0 0 0 1px rgba(16, 75, 95, 0.25),
    0 4px 12px rgba(11, 47, 51, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 0.75rem;
  flex-shrink: 0;
}

.bento-card__badge img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center;
}

/* Palvelut cards: large illustration overlapping top edge */
#palvelut .bento-card {
  position: relative;
  padding-top: calc(4.5rem - 10px);
}

#palvelut .bento-card__badge {
  background: none;
  box-shadow: none;
  border-radius: var(--radius-sharp);
  overflow: visible;
  width: 8.8rem;
  height: 8.8rem;
  position: absolute;
  top: 0;
  right: -0.75rem;
  left: auto;
  transform: translateY(-50%);
  margin: 0;
}

#palvelut .bento-card__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

/* First card: spray wand extends left — shift badge right so character body aligns with other cards */
#palvelut .bento-card:first-child .bento-card__badge {
  right: -2.75rem;
}

#palvelut .bento-card:first-child .bento-card__badge img {
  object-position: right bottom;
}

/* Third card: pull badge slightly left */
#palvelut .bento-card:last-child .bento-card__badge {
  right: 0.5rem;
}

.bento-card--light {
  background: #fff;
  border-color: rgba(17, 75, 95, 0.12);
}

#palvelut .bento-card__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: var(--heading-sm);
  color: #114B5F;
  margin: 0 0 0.4rem;
}

#palvelut .bento-card__desc {
  color: var(--color-text);
  opacity: 1;
}

.bento-card__list {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0.6rem 0 0;
  display: flex;
  flex-direction: column;
}

.bento-card__list li {
  font-family: Roboto, sans-serif;
  font-size: 0.8rem;
  color: #114B5F;
  padding: 0.1rem 0;
}

.bento-card__list li::marker {
  color: #B08D57;
}

.bento-card__list a {
  color: #B08D57;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bento-card__eyebrow {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(244, 246, 246, 0.5);
  margin-bottom: 0.35rem;
}

#teknologia .bento-card {
  border-radius: var(--radius-sharp);
}

#teknologia .bento-card__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: var(--heading-sm);
  color: #F4F6F6;
  margin: 0 0 0.5rem;
  hyphens: auto;
  word-wrap: break-word;
}

.bento-card__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin: 0 0 0.4rem;
}

.bento-card__desc {
  font-size: 0.875rem;
  color: rgba(244, 246, 246, 0.75);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 700px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  #palvelut .bento-grid {
    grid-template-columns: 1fr;
  }

  #palvelut .bento-card__badge {
    width: 6rem;
    height: 6rem;
  }

  #palvelut .bento-card {
    padding-top: 4rem;
  }

  .palvelut-section--bento .bento-grid {
    margin-top: 3rem;
    row-gap: 3.5rem;
  }
}

@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--hero {
    grid-column: 1;
  }

  #palvelut .bento-card__badge {
    display: none;
  }

  #palvelut .bento-card {
    padding-top: 1.5rem;
  }

  .palvelut-section--bento .bento-grid {
    margin-top: 0;
    row-gap: 1rem;
  }
}

/* ============================================================
   PAGE BENTO — Kuluttajille / Yrityksille sub-pages
   ============================================================ */

/* Light section bg — same as intro-section / soft theme company info */
.page-bento {
  background: #F4F6F6;
  position: relative;
  padding-top: var(--space-lg);
}

/* Cancel the global bento-grid margin-top so the page title sits at the same height as qa.html */
.page-bento .bento-grid {
  margin-top: 0;
}

/* Intro card: transparent so it reads like plain header text on light bg */
.page-bento .bento-card.bento-card--page-intro {
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

#larata-bento .bento-card.bento-card--page-intro {
  text-align: center;
}

/* Page heading and lead on light bg — teal text like intro-section */
.page-bento .page-title {
  color: #114B5F;
  margin-bottom: 0.75rem;
}

.page-bento .section-lead {
  color: #114B5F;
  margin-bottom: var(--space-md);
}

#larata-bento .section-lead {
  max-width: none;
}

/* All bento cards inside page-bento: dark teal like #teknologia cards */
.page-bento .bento-card {
  background: #114B5F;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Illustration card: transparent, no box */
.page-bento .bento-card--page-illus {
  background: transparent;
  border-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bento-card--page-illus img {
  max-height: 200px;
  width: auto;
  display: block;
}

/* Process card — col 1, spans rows 2–3 */
.bento-card--page-process {
  grid-column: 1;
  grid-row: 2 / 4;
}

/* Full-width card — all 3 cols */
.bento-card--page-full {
  grid-column: 1 / 4;
}

/* Card titles in page-bento — light like #teknologia; .section prefix needed to beat .section h3 (0,2,1) */
.section.page-bento .bento-card__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: var(--heading-sm);
  color: #F4F6F6;
  margin: 0 0 0.5rem;
}

/* Process step list */
.bento-process-steps {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bento-process-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(244, 246, 246, 0.85);
}

.bento-process-step__num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1.5px solid rgba(176, 141, 87, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #B08D57;
}

@media (max-width: 900px) {
  .page-bento .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--page-intro,
  .bento-card--page-process,
  .bento-card--page-full {
    grid-column: 1;
    grid-row: auto;
  }

  .page-bento .bento-card--page-illus {
    order: 10;
  }
}

@media (max-width: 480px) {
  .page-bento .bento-card--page-illus {
    display: none;
  }

  .larata-closing__illus {
    display: none;
  }

  .bento-card--page-intro,
  .bento-card--page-process,
  .bento-card--page-full {
    grid-column: 1;
  }
}

/* ============================================================
   SEURANTA PAGE
   ============================================================ */

/* ============================================================
   LARATA PAGE — signature block
   ============================================================ */

.tarina-signature {
  padding-top: var(--space-sm);
  border-top: 2px solid var(--color-copper);
  display: inline-block;
}

.tarina-signature__name {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #114B5F;
  margin: 0;
}

.tarina-signature__title {
  font-family: Roboto, sans-serif;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.larata-closing {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.larata-closing .tarina-signature {
  flex: 1;
  text-align: center;
}

.larata-closing__illus {
  max-height: 180px;
  width: auto;
  flex-shrink: 0;
  margin-left: auto;
}

.bento-card__desc+.bento-card__desc {
  margin-top: 0.5rem;
}

/* ============================================================
   LARATA PAGE — smaller headings for text-heavy layout
   ============================================================ */

/* ============================================================
   TORJUJILLE PAGE
   ============================================================ */

.intra-wrapper {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-sm);
}

.intra-card {
  background: #fff;
  border: 1px solid rgba(17, 75, 95, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 32px rgba(11, 47, 51, 0.10);
  padding: var(--space-lg);
  width: 100%;
  max-width: 400px;
}

.intra-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.intra-card__logo img {
  height: 52px;
  width: auto;
}

.intra-card__title {
  font-family: var(--font-display);
  font-size: var(--heading-md);
  font-weight: 800;
  color: var(--color-copper);
  text-align: center;
  margin: 0 0 0.25rem;
}

.intra-card__notice {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-md);
  opacity: 0.7;
}

.intra-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: var(--space-sm);
}

.intra-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
}

.intra-field input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  background: var(--color-bg);
  border: 1.5px solid rgba(17, 75, 95, 0.2);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
  outline: none;
}

.intra-field input:focus {
  border-color: var(--color-primary);
  background: #fff;
}

.intra-error {
  display: none;
  font-size: 0.85rem;
  color: #c0392b;
  background: #fdf0ef;
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  margin-bottom: var(--space-sm);
}

.intra-error--visible {
  display: block;
}

.intra-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.intra-back {
  text-align: center;
  margin-top: var(--space-md);
}

.intra-back a {
  font-size: 0.85rem;
  color: var(--color-primary);
  opacity: 0.6;
  text-decoration: none;
}

.intra-back a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ============================================================
   Q&A PAGE — accordion
   ============================================================ */

.qa-list {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  margin-top: var(--space-lg);
}

.qa-item {
  border-bottom: 1px solid rgba(17, 75, 95, 0.15);
}

.qa-item:first-child {
  border-top: 1px solid rgba(17, 75, 95, 0.15);
}

.qa-question {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #114B5F;
  padding: 1rem 2rem 1rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
  line-height: 1.4;
}

.qa-question::-webkit-details-marker {
  display: none;
}

.qa-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: #B08D57;
  line-height: 1;
}

.qa-item[open] .qa-question::after {
  content: '\2212';
}

.qa-answer {
  padding: 0.25rem 0 1.25rem;
}

.qa-answer p {
  font-family: Roboto, sans-serif;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.qa-answer p:last-child {
  margin-bottom: 0;
}

.qa-answer strong {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  color: #114B5F;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.js-enabled .reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggering utility classes for group children */
html.js-enabled .reveal-delay-1 { transition-delay: 0.1s; }
html.js-enabled .reveal-delay-2 { transition-delay: 0.2s; }
html.js-enabled .reveal-delay-3 { transition-delay: 0.3s; }
html.js-enabled .reveal-delay-4 { transition-delay: 0.4s; }
html.js-enabled .reveal-delay-5 { transition-delay: 0.5s; }

/* Accessibility fallback */
@media (prefers-reduced-motion: reduce) {
  html.js-enabled .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
