/* cssiivous — main stylesheet.
 * Clean BEM rebuild of the Cleanora Webflow template (1:1 fidelity target:
 * colors, radii, paddings, hover motion). Values mirror temp/components.css
 * from the mirror; converted to rem + tokens (tokens.css).
 * Layers: base < layout < components < utilities. Reveal start-states live at
 * the bottom under html.js so no-JS and reduced-motion always see content. */

@layer base, layout, components, utilities;

/* ---------------------------------------------------------------- base */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }

  body {
    margin: 0;
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--lh-base);
    font-weight: var(--fw-regular);
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, h4, h5, h6, p, figure, ul, ol { margin: 0; padding: 0; }
  ul, ol { list-style: none; }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; border: 0; background: none; cursor: pointer; }
  input, select, textarea { font: inherit; }

  h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; font-family: var(--font-secondary); color: var(--text-heading); }

  /* typographic hygiene: these never break across lines */
  a[href^="tel:"], a[href^="mailto:"], .u-nowrap { white-space: nowrap; }
  /* standing rule: no orphan words — balance headings, pretty body text */
  h1, h2, h3, .heading-1, .heading-2, .heading-3 { text-wrap: balance; }
  p, blockquote, figcaption, li { text-wrap: pretty; }

  ::selection { background: var(--lime); color: var(--dark-green); }

  /* Visible keyboard focus (WCAG 2.4.7). Nothing in the theme drew a ring
   * before: the nav/lang links only shifted colour and .form__field set
   * `outline: none`. Two tones so a single rule survives both the light page
   * and the dark green sections. */
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--focus-halo);
    border-radius: var(--radius-small);
  }
  /* pill-shaped controls keep their own silhouette */
  .btn:focus-visible, .social-btn:focus-visible, .lang-switch__item:focus-visible { border-radius: var(--radius-pill); }

  .skip-link {
    position: absolute; left: -200vw; top: 0; z-index: 100;
    background: var(--lime); color: var(--dark-green);
    padding: 0.75rem 1.25rem; border-radius: 0 0 var(--radius-button) 0;
    font-weight: var(--fw-semibold);
  }
  .skip-link:focus { left: 0; }
}

/* -------------------------------------------------------------- layout */
@layer layout {
  .wrap {
    max-width: var(--container-max);
    padding-inline: var(--container-pad);
    margin-inline: auto;
    position: relative;
    z-index: 2;
  }

  .section { position: relative; padding-block: var(--section-space-l); }
  .section--hero { padding-block: var(--section-space-s); }
  .section--about { padding-bottom: var(--section-space-m); }
  .section--why-us { padding-top: var(--section-space-m); }
  .section--services, .section--pricing { padding-block: var(--section-space-m); }
  .section--footer { padding-block: var(--space-6-5); }

  /* floating background card: inset from the page edge, rounded */
  .section__bg {
    position: absolute; inset: 0;
    width: calc(100% - var(--card-gutter) * 2);
    margin-left: var(--card-gutter);
    border-radius: var(--radius);
    pointer-events: none;
    z-index: -1;
  }
  .section__bg--dark { background-color: var(--bg-dark); }
  /* hero watermark: the logo's bubble-O, oversized top-right, fading out
   * toward bottom-left so it reads as a wash, not a sticker. Home hero only;
   * the goclean-hero variant has its own bg elements. */
  .section__bg--hero-o { overflow: hidden; }
  .hero-o {
    position: absolute;
    top: clamp(-4.5rem, -6vw, -2rem); right: clamp(-3.5rem, -4vw, -1.5rem);
    width: clamp(14rem, calc(8rem + 24vw), 26rem); height: auto;
    color: var(--lime); opacity: 0.1;
    -webkit-mask-image: linear-gradient(215deg, #000 30%, transparent 78%);
    mask-image: linear-gradient(215deg, #000 30%, transparent 78%);
  }
  .section__bg--mint { background-color: var(--bg-accent-soft); }
  .section__bg--cta { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .section__bg--footer { border-top-left-radius: 0; border-top-right-radius: 0; margin-bottom: var(--card-gutter); }

  /* grid children default min-width:auto → long words overflow on mobile */
  .hero__header > *, .about > *, .why-us > *, .why-us__grid > *, .services__header > *,
  .process__grid > *, .pricing__grid > *, .testimonials__panel > *, .faq > *,
  .contact > *, .site-footer__grid > *, .stats > *, .form__row > * { min-width: 0; }
}

/* ---------------------------------------------------------- components */
@layer components {

  /* ---- icons: masked shapes, never a colored image tag ----
   * Every icon in the Webflow export ships with the Cleanora green (#06a054) or
   * lime (#b5d73d) baked into its fill, so under the blue / yellow / orange
   * schemes the icons stayed Cleanora-colored and read as foreign objects.
   * cs_icon() emits a span carrying the shape as --i; the box paints
   * currentColor through it, so the context sets `color` and every scheme
   * follows. Placement: light surface → --accent-on-light, dark or solid brand
   * surface → --lime, sitting on a --lime chip → --on-lime.
   * mask-position is left, not center: the four feature icons have different
   * aspect ratios and a centered mask left their edges 3px out of line. */
  .i {
    display: block; flex: none;
    background-color: currentColor;
    -webkit-mask: var(--i) no-repeat left center / contain;
    mask: var(--i) no-repeat left center / contain;
  }

  /* ---- type helpers mirroring Cleanora heading styles ---- */
  .heading-1 { font-size: var(--text-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--fw-medium); }
  .heading-2 { font-size: var(--text-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: var(--fw-medium); }
  .heading-3 { font-size: var(--text-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-medium); }
  .heading-1--inverse, .heading-2--inverse, .heading-3--inverse { color: var(--text-inverse); font-weight: var(--fw-regular); }
  .accent { color: var(--lime); font-style: normal; }
  .accent--green { color: var(--accent-on-light); font-style: normal; }

  /* ---- eyebrow (subtitle dot + uppercase label) ---- */
  .eyebrow { display: flex; align-items: center; gap: 0.5rem; }
  .eyebrow__dot { width: 0.3125rem; height: 0.3125rem; border-radius: var(--radius-pill); background: var(--light-green); }
  .eyebrow__text {
    color: var(--accent-on-light);
    font-size: var(--text-base); line-height: var(--lh-lg);
    font-weight: var(--fw-semibold); letter-spacing: 0.05rem; text-transform: uppercase;
  }
  .eyebrow--lime .eyebrow__dot { background: var(--lime); }
  .eyebrow--lime .eyebrow__text { color: var(--lime); }

  .section-head { display: flex; flex-direction: column; gap: var(--space-4); }
  .section-head--center { align-items: center; text-align: center; }

  /* ---- button: lime/green pill, rolling label + arrow swap on hover ---- */
  .btn {
    display: flex; align-items: center; gap: 0.75rem;
    width: fit-content; flex: none;
    padding: 0.25rem 0.25rem 0.25rem 1.5rem;
    background: var(--lime); border-radius: var(--radius-pill);
  }
  .btn__label-box { overflow: hidden; }
  .btn__label {
    display: block; white-space: nowrap; /* the roll shadow-copy breaks if the label wraps */
    /* --on-lime: label color on the lime/CTA pill; schemes with a dark accent
     * (lovable orange) override it to white */
    color: var(--on-lime, var(--dark-green)); font-weight: var(--fw-semibold); line-height: 1.2; text-align: center;
    /* the roll: a shadow-copy of the label one line-height below; hover shifts
     * both up. 1.2em = the 1.2 line-height exactly; the old 19px offset vs
     * 19.2px line box left a 0.2px sliver of the outgoing label visible. */
    text-shadow: 0 1.2em 0 var(--on-lime, var(--dark-green));
    transition: transform 0.4s var(--ease-out);
  }
  .btn__arrow {
    width: 2.625rem; height: 2.625rem; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--green); border-radius: var(--radius-pill);
  }
  .btn__arrow-clip { position: relative; overflow: hidden; }
  .btn__arrow-icon { width: 1.75rem; height: 1.75rem; color: var(--white); transition: transform 0.4s var(--ease-out); }
  .btn__arrow-icon--ghost { position: absolute; inset: 0; transform: translate(-120%, 0); }
  .btn:hover .btn__label, .btn:focus-visible .btn__label { transform: translateY(-1.2em); }
  .btn:hover .btn__arrow-icon, .btn:focus-visible .btn__arrow-icon { transform: translate(120%, 0); }
  .btn:hover .btn__arrow-icon--ghost, .btn:focus-visible .btn__arrow-icon--ghost { transform: translate(0, 0); }

  .btn--green { background: var(--green); }
  .btn--green .btn__label { color: var(--white); text-shadow: 0 1.2em 0 var(--white); }
  .btn--green .btn__arrow { background: var(--lime); }
  /* the chip flips to the accent, so the arrow takes the accent's own text
   * color — the old invert(1) assumed a pale lime chip and printed a dark
   * arrow on the orange scheme's saturated pill */
  .btn--green .btn__arrow-icon { color: var(--on-lime, var(--dark-green)); }
  .btn--wide { width: 100%; justify-content: space-between; }
  .btn--wide .btn__label-box { flex: 1; }

  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

  /* ---- arrow link (custom-link): text + growing underline + caret ---- */
  /* padding-right: the rotated caret's corners overhang its layout box ~2px
   * and hover slides it ~3px further right; without breathing room it clips
   * under overflow-hidden parents (accordion panel-inner). */
  .arrow-link { display: flex; align-items: center; gap: 0.25rem; padding-right: 0.5rem; }
  .arrow-link__text-box { position: relative; }
  .arrow-link__text { color: var(--lime); font-weight: var(--fw-semibold); }
  .arrow-link__underline {
    position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: var(--lime); transform-origin: 0 50%;
    transform: scaleX(0); transition: transform 0.4s var(--ease-out);
  }
  .arrow-link:hover .arrow-link__underline, .arrow-link:focus-visible .arrow-link__underline { transform: scaleX(1); }
  .arrow-link__caret {
    padding: 3px; transform: rotate(45deg);
    border-top: 2px solid var(--lime); border-right: 2px solid var(--lime);
    transition: transform var(--dur-fast) var(--ease-out);
  }
  .arrow-link:hover .arrow-link__caret { transform: rotate(45deg) translate(2px, -2px); }
  .arrow-link--green .arrow-link__text { color: var(--green); }
  .arrow-link--green .arrow-link__underline { background: var(--green); }
  .arrow-link--green .arrow-link__caret { border-color: var(--green); }

  /* ---- site nav ---- */
  .site-nav { position: relative; z-index: 10; }
  /* no hairline under the nav (Sten, 2026-08-14): Cleanora drew one, but it adds
   * nothing on any page and doubles up with the hero card's own top edge. */
  .site-nav__wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 4.5rem; position: relative;
  }
  .site-nav__brand { flex: none; }

  /* text wordmark (dev placeholder until Kristel's logo lands): the Lovable
   * brand "CS Siiv○us" — hollow bubble o in lime */
  .brand-mark { display: inline-flex; align-items: center; color: var(--text-heading); }
  /* inline SVG wordmark: letters follow currentColor, the CS + bubble-O follow
   * --logo-accent, so every scheme (and the footer inverse) recolors it via vars */
  /* 21px at 360vw → 28px at 1440vw, Sten's min/max */
  .brand-logo { display: block; height: clamp(1.325rem, calc(0.938rem + 0.83vw), 1.735rem); width: auto; }
  .brand-logo__b { fill: currentColor; }
  .brand-logo__a { fill: var(--logo-accent, var(--accent-on-light)); }
  .brand-mark--inverse { color: var(--white); --logo-accent: var(--lime); }
  .brand-mark--inverse .brand-logo { height: clamp(1.375rem, calc(1.25rem + 0.6vw), 1.75rem); }
  .site-nav__menu { display: flex; align-items: center; gap: 0.5rem; padding: 0.3125rem; }
  .site-nav__link {
    padding: 0.375rem 0.75rem;
    color: var(--text-heading); font-weight: var(--fw-semibold);
    transition: color var(--dur-fast);
  }
  .site-nav__link:hover, .site-nav__link:focus-visible { color: var(--accent-on-light); }
  .site-nav__link[aria-current="page"] { color: var(--accent-on-light); }
  .site-nav__end { display: flex; align-items: center; gap: 1rem; }

  /* ---- services submenu ----
   * The three service pages live here because the header otherwise never linked
   * them (2026-08-14): the nav was still the pure one-pager nav, so from a
   * subpage every item threw you back to the front page. */
  .site-nav__item--menu { position: relative; }
  /* gap 0.25rem, not 0.375: the chevron mask leaves ~2px of empty box before
   * its ink, where the old border caret started at the box edge */
  .site-nav__link--parent { display: flex; align-items: center; gap: 0.25rem; }
  /* the same chevron mask the FAQ uses, NOT the .arrow-link border corner: a
   * top+right border pair puts its ink in one corner of the box, so flipping it
   * 180° swung the visible V ~2px down the page as well as round (Sten,
   * 2026-08-14). A square mask is symmetric about the box centre, so it turns
   * in place. Rotate down → up, same 90 → -90 as .faq-item__icon. */
  .site-nav__caret {
    width: 0.8125rem; height: 0.8125rem; transform: rotate(90deg);
    transition: transform var(--dur-fast) var(--ease-out);
  }
  .site-nav__sub {
    position: absolute; top: 100%; left: 0; z-index: 30;
    display: flex; flex-direction: column; min-width: 13rem;
    padding: 0.5rem; margin-top: 0.25rem;
    background: var(--white); border-radius: var(--radius-button);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.14);
    opacity: 0; visibility: hidden; transform: translateY(-0.35rem);
    transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out), visibility 0s linear var(--dur-fast);
  }
  .site-nav__item--menu:hover .site-nav__sub,
  .site-nav__item--menu:focus-within .site-nav__sub {
    opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
  }
  .site-nav__item--menu:hover .site-nav__caret,
  .site-nav__item--menu:focus-within .site-nav__caret { transform: rotate(-90deg); }
  .site-nav__sub-link {
    padding: 0.5rem 0.75rem; border-radius: var(--radius-small);
    color: var(--text-heading); font-weight: var(--fw-medium); white-space: nowrap;
    transition: background-color var(--dur-fast), color var(--dur-fast);
  }
  .site-nav__sub-link:hover, .site-nav__sub-link:focus-visible { background: var(--soft-mint); color: var(--accent-on-light); }
  .site-nav__sub-link[aria-current="page"] { color: var(--accent-on-light); }

  /* integer-px geometry: 2px lines on a 7px pitch (2 + 5px gap) so every line
   * sits on a whole-pixel boundary — 1.5px heights rasterized each line
   * differently and the middle one read thinner. 44px box = touch target. */
  .site-nav__burger {
    display: none; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; min-width: 2.75rem; min-height: 2.75rem; padding: 0;
  }
  .site-nav__burger-line {
    width: 1.5rem; height: 2px; border-radius: var(--radius-pill);
    background: var(--dark-green);
    transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med), scale var(--dur-med) var(--ease-out);
  }
  .site-nav__burger[aria-expanded="true"] .site-nav__burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav__burger[aria-expanded="true"] .site-nav__burger-line:nth-child(2) { opacity: 0; scale: 0.4 1; }
  .site-nav__burger[aria-expanded="true"] .site-nav__burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ---- language switcher: same pill grammar as the nav links ---- */
  .lang-switch { display: flex; align-items: center; gap: 0.125rem; padding: 0.1875rem; border: 1px solid var(--line-soft); border-radius: var(--radius-pill); }
  .lang-switch__item {
    padding: 0.25rem 0.625rem; border-radius: var(--radius-pill);
    color: var(--text-heading); font-size: var(--text-sm); font-weight: var(--fw-semibold);
    text-transform: uppercase; letter-spacing: 0.03rem;
    transition: background-color var(--dur-fast), color var(--dur-fast);
  }
  .lang-switch__item:hover { color: var(--accent-on-light); }
  .lang-switch__item[aria-current="page"] { background: var(--green); color: var(--white); }
  .lang-switch--menu { display: none; }

  /* ---- hero ---- */
  .hero__header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); }
  .hero__intro { max-width: 35.625rem; }
  /* PARKED with the markup in home.php: the Google rating row is commented out
   * until there are enough reviews to lead with. Styles kept so restoring it is
   * one uncomment. */
  .hero__rating { display: flex; align-items: center; gap: 0.625rem; min-height: 1.5rem; margin-bottom: var(--space-4); }
  .hero__rating-icon { width: 1.375rem; height: 1.375rem; color: var(--lime); }
  .hero__rating-text { color: var(--white); font-weight: var(--fw-medium); margin-top: 2px; white-space: nowrap; }
  /* padding-block lifts the inline link to a 24px pointer target (WCAG 2.5.8)
   * without changing where the row sits; the negative margin absorbs it. */
  .hero__rating-link { display: inline-block; padding-block: 0.25rem; margin-block: -0.25rem; color: inherit; }
  .hero__rating-link:hover { text-decoration: underline; text-underline-offset: 0.25rem; }
  .hero__side { display: flex; flex-direction: column; gap: var(--space-4); max-width: 31.25rem; padding-bottom: 0.875rem; }
  .hero__lead { color: var(--neutral-01); font-size: var(--text-md); line-height: var(--lh-md); }

  /* hero image marquee */
  .gallery-marquee { width: calc(100% - var(--card-gutter) * 2); margin: 5rem 0 5rem var(--card-gutter); display: flex; overflow: hidden; }
  .gallery-marquee__track { display: flex; align-items: flex-end; gap: 0.625rem; padding-right: 0.625rem; flex: none; }
  /* aspect-ratio, not padding-top: these are flex items, so %-padding would
   * resolve against the whole track width (Webflow used a wrapper div) */
  .gallery-marquee__item { position: relative; flex: none; border-radius: var(--radius); overflow: hidden; }
  .gallery-marquee__item--1 { width: 25vw; aspect-ratio: 100 / 128; }
  .gallery-marquee__item--2 { width: 34vw; aspect-ratio: 100 / 85; }
  .gallery-marquee__item--3 { width: 28vw; aspect-ratio: 100 / 124; }
  .gallery-marquee__item--4 { width: 33vw; aspect-ratio: 100 / 82; }
  .gallery-marquee__item--5 { width: 27vw; aspect-ratio: 100 / 124; }
  .gallery-marquee__item--6 { width: 35vw; aspect-ratio: 100 / 76; }
  .gallery-marquee__img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease-out);
  }
  .gallery-marquee__item:hover .gallery-marquee__img { transform: scale(1.05); }

  /* stats with odometer digits */
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6.375rem; overflow: hidden; }
  .stat { display: flex; flex-direction: column; gap: 0.75rem; }
  /* baseline, so the unit word sits on the numeral's baseline rather than
   * floating at the top of the 87px digit box */
  .stat__digits { display: flex; align-items: baseline; height: 5.4375rem; overflow: hidden; }
  .stat__reel { display: flex; flex-direction: column; align-items: center; }
  .stat__num, .stat__digit {
    font-family: var(--font-secondary); color: var(--white);
    font-size: var(--text-stat); line-height: 1.2; font-weight: var(--fw-light);
    letter-spacing: -0.125rem; text-align: left;
  }
  .stat__label { color: var(--white); font-size: var(--text-base); }
  /* the "+" belongs to the figure, so it takes the figure's colour; the accent
   * is carried by one word instead — a lone lime glyph on some stats and
   * nothing on others read as an inconsistency, and left the numerals sitting
   * against dead space */
  .stat__suffix { margin-left: -0.05em; }
  .stat__unit {
    margin-left: 0.5rem;
    font-family: var(--font-secondary); color: var(--lime);
    font-size: var(--text-h5); line-height: 1.2; font-weight: var(--fw-medium);
    letter-spacing: var(--ls-h5);
  }

  /* ---- trust strip (Cleanora "brands", repurposed: no partner logos) ---- */
  .trust-strip { padding-block: var(--space-6-5); }
  .trust-strip__box { display: flex; flex-direction: column; align-items: center; gap: 2.625rem; }
  .trust-strip__label { color: var(--dark-green); font-size: var(--text-md); font-weight: var(--fw-medium); text-align: center; }
  .trust-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; width: 100%; }
  .trust-chip {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 9rem; padding: 2rem 1rem;
    background: var(--white); border-radius: var(--radius);
  }
  /* flex:none — as a column flex item the mask shrank under the chip's own
   * padding and clipped the word to nothing at <=479px */
  .trust-chip__mask { height: 2.375rem; flex: none; overflow: hidden; }
  .trust-chip__track { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
  .trust-chip__word {
    height: 2.375rem; display: flex; align-items: center;
    font-family: var(--font-secondary); color: var(--green);
    font-size: var(--text-h5); font-weight: var(--fw-medium); letter-spacing: var(--ls-h5);
    white-space: nowrap;
  }

  /* ---- about ---- */
  .about { display: grid; grid-template-columns: 0.9fr 1fr; gap: var(--space-9); align-items: center; }
  .about__media { position: relative; padding-top: 105%; border-radius: var(--radius); background: var(--neutral-02); overflow: hidden; }
  .about__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
  .about__media:hover .about__img { transform: scale(1.04); }
  .about__badge {
    position: absolute; left: 1.25rem; bottom: 1.25rem;
    display: flex; flex-direction: column; gap: 0.625rem;
    max-width: 17.5rem; padding: 0.875rem 1.5rem 1.25rem;
    background: var(--white); border-radius: var(--radius-small);
  }
  .about__badge-row { display: flex; align-items: center; gap: 1.5625rem; }
  .about__avatars { display: flex; }
  .about__avatar { width: 2.6875rem; height: 2.6875rem; margin-right: -0.875rem; border: 2px solid var(--white); border-radius: var(--radius-pill); overflow: hidden; }
  .about__avatar img { width: 100%; height: 100%; object-fit: cover; }
  .about__badge-num { color: var(--accent-on-light); font-size: var(--text-h3); font-weight: var(--fw-medium); letter-spacing: -0.15rem; }
  .about__badge-text { font-size: var(--text-base); font-weight: var(--fw-medium); }
  .about__content { padding-right: 5rem; }
  .about__lead { color: var(--text-main); font-size: var(--text-md); margin-top: var(--space-4); }
  .about__features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: var(--space-6); }
  .checkline { display: flex; align-items: center; gap: 0.4375rem; }
  .checkline__icon { width: 1.375rem; height: 1.375rem; color: var(--accent-on-light); }
  /* --lh-h4, not the 1.6 body default: a checkline is a label, and when one
   * wraps to two lines the body leading read as a gap (Sten, 2026-08-19). */
  .checkline__text { color: var(--dark-green); font-size: var(--text-md); font-weight: var(--fw-medium); line-height: var(--lh-h4); }

  /* ---- why-us ---- */
  .why-us { display: grid; grid-template-columns: 0.9fr 1fr; gap: var(--space-9); align-items: center; }
  .why-us__content { max-width: 32.5rem; }
  .why-us__lead { font-size: var(--text-md); margin-top: var(--space-4); }
  .why-us__content .actions { margin-top: var(--space-6); }
  .why-us__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9375rem; align-items: center; }
  .why-us__col { display: flex; flex-direction: column; gap: 1.25rem; }
  .why-us__col--1 { padding-bottom: 1.5rem; }
  .why-us__col--2 { padding-top: 1.5rem; }
  .feature-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
  /* width = the widest of the four icon ratios (32:32); the narrower three sit
   * flush left inside it (see .i mask-position) */
  .feature-card__icon { width: 1.625rem; height: 1.625rem; margin-bottom: var(--space-5); color: var(--accent-on-light); }
  .feature-card__title { font-size: var(--text-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); font-weight: var(--fw-medium); }
  .feature-card__text { font-size: var(--text-base); margin-top: 0.625rem; }
  .feature-card--green { background: var(--green); }
  .feature-card--green .feature-card__title { color: var(--white); }
  .feature-card--green .feature-card__text { color: var(--neutral-01); }
  .feature-card--green .feature-card__icon { color: var(--lime); }

  /* ---- services accordion (dark section) ---- */
  .services { display: flex; flex-direction: column; gap: var(--space-8); }
  .services__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
  .services__header-left { max-width: 30rem; }
  .services__header-right { max-width: 28.125rem; padding-bottom: 0.5rem; color: var(--neutral-01); font-size: var(--text-md); }
  .services__list { display: flex; flex-direction: column; }

  .service-acc { width: 100%; padding: 2.5rem 0; border-bottom: 1px solid var(--line-inverse); cursor: pointer; }
  .service-acc:first-child { border-top: 1px solid var(--line-inverse); }
  .service-acc__head { display: grid; grid-template-columns: 1fr 2.7fr; align-items: start; width: 100%; text-align: left; padding: 0; color: inherit; }
  .service-acc__num { padding-top: 0.25rem; font-family: var(--font-secondary); color: var(--lime); font-size: var(--text-h4); letter-spacing: -0.03125rem; font-weight: var(--fw-regular); }
  .service-acc__row { display: flex; align-items: center; justify-content: space-between; color: var(--white); }
  /* Flex children keep min-width:auto, so a long title pushed the row wider
   * than the section instead of wrapping. */
  .service-acc__titles { max-width: 30rem; min-width: 0; }
  .service-acc__title { display: block; color: var(--white); font-size: var(--text-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--fw-regular); }
  .service-acc__desc { display: block; color: var(--neutral-01); font-size: var(--text-md); margin-top: 1rem; }
  .service-acc__toggle { position: relative; display: flex; align-items: center; justify-content: center; width: 5rem; padding: 0.9rem; flex: none; transition: transform var(--dur-med) var(--ease-out); }
  .service-acc__toggle-line { width: 4px; padding-top: 2.25rem; background: var(--lime); border-radius: var(--radius-pill); transform: rotate(90deg); transition: transform 0.4s var(--ease-out); }
  .service-acc__toggle-line--v { position: absolute; transform: none; }
  .service-acc.is-open .service-acc__toggle-line--v { transform: rotate(90deg); }
  .service-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease-out); }
  .service-acc.is-open .service-acc__panel { grid-template-rows: 1fr; }
  /* visibility, not just clipping: a 0fr panel still holds its CTA + "Lue lisää"
   * in the tab order, so keyboard users hit 10 invisible stops on the way past
   * the accordion. visibility:hidden removes them; the delay keeps the collapse
   * animation visible before the content is pulled. */
  .service-acc__panel-inner {
    overflow: hidden; display: grid; grid-template-columns: 1fr 2.7fr;
    visibility: hidden; transition: visibility 0s linear 0.5s;
  }
  .service-acc.is-open .service-acc__panel-inner { visibility: visible; transition-delay: 0s; }
  .service-acc__body { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); padding-top: 2rem; grid-column: 2; }
  .service-acc__meta { display: flex; flex-direction: column; gap: 2.5rem; max-width: 30rem; }
  /* tag pills, one grammar in two places (here + .svc-tag on the service pages):
   * a step down from the template's 16px/8x16 so a four-chip row reads as a
   * caption line under the description rather than a second row of buttons */
  .service-acc__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .service-acc__tag { padding: 0.375rem 0.875rem; background: var(--white); color: var(--dark-green); font-size: var(--text-sm); font-weight: var(--fw-semibold); border-radius: var(--radius-pill); }
  .service-acc__media { position: relative; padding-top: 58%; border-radius: var(--radius); background: var(--neutral-02); overflow: hidden; }
  .service-acc__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
  .service-acc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
  .service-acc__media:hover .service-acc__img { transform: scale(1.05); }

  /* ---- process: sticky stacking cards ---- */
  .process__header { display: flex; align-items: flex-end; justify-content: space-between; }
  .process__header-left { max-width: 26.25rem; }
  .process__header-right { padding-bottom: 0.5rem; }
  .process__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; padding-top: 5rem; position: relative; }
  .process-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem 2.25rem; position: sticky; top: 5rem; }
  .process-card--2 { margin-top: 6.25rem; }
  .process-card--3 { margin-top: 12.5rem; }
  .process-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4rem; }
  .process-card__icon { display: flex; align-items: center; justify-content: center; width: 3.625rem; height: 3.625rem; background: var(--green); border-radius: var(--radius-pill); }
  .process-card__icon .i { width: 1.75rem; height: 1.75rem; color: var(--lime); }
  .process-card__num { font-family: var(--font-secondary); color: var(--neutral-01); font-size: clamp(3.5rem, 2.4rem + 4.6vw, 6rem); line-height: 1; font-weight: var(--fw-medium); letter-spacing: -0.125rem; }
  .process-card__title { font-size: var(--text-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: var(--fw-medium); }
  .process-card__text { font-size: var(--text-base); margin-top: 0.625rem; }

  /* ---- pricing (mint section) ---- */
  .pricing { display: flex; flex-direction: column; align-items: center; gap: var(--space-7); }
  .pricing__header { max-width: 28.125rem; }
  .pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; width: 100%; }
  .price-card { background: var(--white); border: 5px solid var(--neutral-01); border-radius: var(--radius); padding: 2rem; }
  .price-card__name { color: var(--accent-on-light); font-size: var(--text-h4); line-height: var(--lh-h4); font-weight: var(--fw-medium); letter-spacing: var(--ls-h5); padding-bottom: 0.625rem; }
  .price-card__desc { font-size: var(--text-md); }
  .price-card__price-row { display: flex; align-items: flex-end; gap: 0.375rem; margin: var(--space-4) 0 1.5rem; }
  .price-card__price { font-family: var(--font-secondary); color: var(--dark-green); font-size: var(--text-h3); line-height: var(--lh-h3); font-weight: var(--fw-medium); letter-spacing: -0.09375rem; }
  .price-card__features { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
  .price-card__row { display: flex; align-items: center; gap: 0.4375rem; font-size: var(--text-base); font-weight: var(--fw-medium); }
  .price-card__row .i { width: 1.375rem; height: 1.375rem; color: var(--accent-on-light); }
  .price-card--green { background: var(--green); border-color: var(--green); }
  .price-card--green .price-card__name { color: var(--lime); }
  .price-card--green .price-card__desc, .price-card--green .price-card__row { color: var(--neutral-01); }
  .price-card--green .price-card__price { color: var(--white); font-weight: var(--fw-regular); }
  /* one check shape for both cards now that the color comes from the context
   * (the export shipped icon-check-one/-two, identical but for the baked fill) */
  .price-card--green .price-card__row .i { color: var(--lime); }

  .pricing__note { max-width: 32rem; text-align: center; color: var(--neutral-08); }

  /* ---- testimonials ---- */
  .testimonials { display: flex; flex-direction: column; align-items: center; gap: var(--space-8); }
  .testimonials__header { max-width: 28.125rem; }
  .testimonials__panel { display: grid; grid-template-columns: 1fr 1.5fr; gap: 0.9375rem; width: 100%; padding: 0.9375rem; background: var(--white); border-radius: var(--radius); }
  .testimonials__media { position: relative; border-radius: var(--radius-small); background: var(--neutral-02); overflow: hidden; }
  .testimonials__img { width: 100%; height: 100%; object-fit: cover; }
  .testimonials__badge { position: absolute; left: 1.375rem; bottom: 1.375rem; max-width: 18.125rem; padding: 1.375rem 3.125rem 1.375rem 1.875rem; background: var(--green); border-radius: 4px; }
  .testimonials__badge-text { color: var(--white); font-size: var(--text-h6); line-height: var(--lh-h6); font-weight: var(--fw-medium); letter-spacing: var(--ls-h5); }

  .quote-slider { position: relative; background: var(--green); border-radius: var(--radius-small); padding: var(--space-6-5); overflow: hidden; }
  .quote-slider__viewport { overflow: hidden; }
  .quote-slider__track { display: flex; transition: transform 0.6s var(--ease-out); }
  .quote-slider__slide { flex: none; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6-5); padding-bottom: 4.5rem; }
  .quote-slider__icon { width: 2.5rem; aspect-ratio: 68 / 52; color: var(--lime); }
  .quote-slider__text { color: var(--white); font-size: var(--text-h4); line-height: 1.45; font-weight: var(--fw-medium); letter-spacing: -0.0125rem; }
  .quote-slider__person { display: flex; align-items: center; gap: 1rem; margin-top: auto; }
  .quote-slider__avatar { width: 3rem; height: 3rem; flex: none; border-radius: var(--radius-pill); object-fit: cover; }
  /* placeholder until real reviewer photos land: the reviewer's initial */
  .quote-slider__avatar--initial {
    display: flex; align-items: center; justify-content: center;
    background: var(--lime); color: var(--on-lime, var(--dark-green));
    font-family: var(--font-secondary); font-size: var(--text-md); font-weight: var(--fw-semibold);
  }
  .quote-slider__name { color: var(--white); font-size: var(--text-md); font-weight: var(--fw-medium); }
  .quote-slider__role { color: var(--neutral-02); font-size: var(--text-base); }
  .quote-slider__watermark { position: absolute; top: 0; right: 0; width: 12.5rem; aspect-ratio: 68 / 52; color: var(--lime); opacity: 0.1; pointer-events: none; }
  .quote-slider__arrow {
    position: absolute; bottom: var(--space-6-5); z-index: 2;
    display: flex; align-items: center; justify-content: center;
    width: 3.125rem; height: 3.125rem;
    background: var(--lime); border-radius: 4px;
    transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
  }
  .quote-slider__arrow:hover { transform: translateY(-2px); }
  .quote-slider__arrow .i { width: 1.5rem; height: 1.5rem; color: var(--on-lime, var(--dark-green)); }
  .quote-slider__arrow--prev { right: 7.125rem; }
  .quote-slider__arrow--prev .i { transform: rotate(180deg); }
  .quote-slider__arrow--next { right: var(--space-6-5); }

  /* ---- text marquee ---- */
  .text-marquee { position: relative; display: flex; width: 100%; padding-block: 0.9375rem; overflow: hidden; }
  .text-marquee__bg { position: absolute; inset: 0; z-index: -1; background: var(--green); transform-origin: 50% 100%; }
  .text-marquee__track { display: flex; align-items: center; gap: 4rem; padding-right: 4rem; flex: none; }
  .text-marquee__item {
    font-family: var(--font-secondary); color: var(--white);
    font-size: var(--text-h3); font-weight: var(--fw-regular);
    letter-spacing: var(--ls-h4); text-transform: uppercase; white-space: nowrap;
  }
  .text-marquee__icon { width: 1.75rem; height: 1.75rem; color: var(--lime); }

  /* ---- faq ---- */
  .faq { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-9); align-items: start; }
  .faq__left { padding-right: 4.5rem; }
  .faq__media { position: relative; padding-top: 64%; margin-top: var(--space-6-5); border-radius: var(--radius); background: var(--neutral-02); overflow: hidden; }
  .faq__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
  .faq__media:hover .faq__img { transform: scale(1.04); }
  .faq__list { display: flex; flex-direction: column; gap: 1rem; }
  .faq-item { background: var(--white); border-radius: var(--radius); overflow: hidden; }
  .faq-item__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.875rem 1.75rem 1.875rem 1.875rem; text-align: left; }
  .faq-item__title { font-family: var(--font-secondary); color: var(--dark-green); font-size: var(--text-h6); font-weight: var(--fw-medium); }
  /* a UI chevron, not an accent: it follows the heading tone in every scheme */
  .faq-item__icon { width: 1.125rem; height: 1.125rem; color: var(--text-heading); transform: rotate(90deg); transition: transform var(--dur-med) var(--ease-out); }
  .faq-item.is-open .faq-item__icon { transform: rotate(-90deg); }
  .faq-item__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
  .faq-item.is-open .faq-item__panel { grid-template-rows: 1fr; }
  .faq-item__panel-inner { overflow: hidden; visibility: hidden; transition: visibility 0s linear 0.4s; }
  .faq-item.is-open .faq-item__panel-inner { visibility: visible; transition-delay: 0s; }
  .faq-item__text { color: var(--neutral-08); padding: 0 2rem 1.75rem 1.875rem; }

  /* ---- contact / quote (mint cta section) ---- */
  .contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-9); align-items: center; }
  /* Grid items default to min-width:auto, so a 1fr track cannot shrink below
   * its content's intrinsic size. The contact portrait is a 900px-wide <img>
   * set to width:100%; that is a cyclic dependency and browsers fall back to
   * the intrinsic 900px, blowing the single-column layout (<=991px) out by up
   * to 548px at 390. min-width:0 lets the track shrink for real. */
  .contact > * { min-width: 0; }
  .form-card { background: var(--green); border-radius: var(--radius); padding: 1.5rem 3rem 2.625rem; }
  .form-card__title { color: var(--white); font-size: var(--text-h4); line-height: var(--lh-h4); font-weight: var(--fw-medium); margin-top: 1rem; }
  .form { display: flex; flex-direction: column; gap: 1.125rem; margin-top: 2.5rem; }
  .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }
  /* standing labels, not placeholders: a placeholder disappears the moment the
   * visitor types, and this is the one form the business is paid through. */
  .form__group { display: flex; flex-direction: column; gap: 0.375rem; }
  .form__label { color: rgb(255 255 255 / 0.88); font-size: var(--text-sm); font-weight: var(--fw-medium); }
  .form__req { color: var(--lime); }
  .form__legend { margin-top: -0.375rem; color: rgb(255 255 255 / 0.72); font-size: var(--text-sm); }
  .form__field {
    width: 100%; padding: 0.9375rem 0.75rem 0.9375rem 1.125rem;
    background: var(--green); color: var(--white);
    border: 1px solid rgb(255 255 255 / 0.25); border-radius: var(--radius-button);
    font-size: var(--text-base); font-weight: var(--fw-medium);
    transition: border-color var(--dur-fast);
  }
  /* fields sit on the colored card and text inputs match :focus-visible even on
   * mouse click, so the global two-tone ring stacked THREE edges here (field
   * border + navy outline + lime halo). Single treatment instead: bright
   * border + soft white glow, works on any card color. */
  .form__field:focus-visible {
    outline: none; border-color: rgb(255 255 255 / 0.95);
    box-shadow: 0 0 0 3px rgb(255 255 255 / 0.25);
    border-radius: var(--radius-button); /* global focus rule forces radius-small */
  }
  .form__field::placeholder { color: #f7f7f8; font-weight: var(--fw-regular); }
  select.form__field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
  select.form__field option { color: var(--dark-green); background: var(--white); }
  .form__field--area { resize: vertical; min-height: 7.5rem; }
  /* the submit is a .btn like every other call to action on the site; it used
   * to be the one square button in a page full of pills. */
  .form__submit { align-self: flex-start; margin-top: 0.375rem; }
  .form__submit[disabled] { opacity: 0.65; cursor: progress; }
  .form__submit[disabled] .btn__label { transform: none; }
  /* white, not --neutral-02: the note sits on the card color, and mid-grays
   * drop below 3:1 on the lighter scheme surfaces (goclean blue). */
  .form__note { color: rgb(255 255 255 / 0.92); font-size: var(--text-sm); }
  .form__status { display: none; margin-top: 0.5rem; padding: 0.875rem 1.125rem; border-radius: var(--radius-small); font-weight: var(--fw-medium); }
  .form__status.is-ok { display: block; background: var(--lime); color: var(--dark-green); }
  .form__status.is-error { display: block; background: #fff; color: #a03906; }

  .contact__content { display: flex; flex-direction: column; gap: var(--space-6-5); }
  .contact__lead { font-size: var(--text-md); margin-top: var(--space-4); }
  .contact__options { display: flex; flex-direction: column; gap: 1.75rem; }
  .contact-option { display: flex; align-items: center; gap: 1rem; }
  .contact-option__icon { display: flex; align-items: center; justify-content: center; width: 3.75rem; height: 3.75rem; flex: none; background: var(--lime); border-radius: var(--radius-small); }
  .contact-option__icon .i { width: 1.625rem; height: 1.625rem; color: var(--on-lime, var(--dark-green)); }
  .contact-option__name { font-family: var(--font-secondary); color: var(--dark-green); font-size: var(--text-h6); font-weight: var(--fw-medium); }
  .contact-option__link { display: inline-block; padding-block: 0.15rem; min-height: 1.5rem; color: var(--neutral-08); font-size: var(--text-base); transition: color var(--dur-fast); }
  .contact-option__link:hover { color: var(--accent-on-light); }
  .contact__portrait { border-radius: var(--radius); overflow: hidden; background: var(--neutral-01); }
  .contact__portrait img { width: 100%; height: auto; }

  /* ---- footer (dark) ---- */
  .site-footer__cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-bottom: 3rem; border-bottom: 1px solid var(--line-inverse); }
  .site-footer__cta-title { max-width: 31.25rem; }
  .site-footer__grid { display: grid; grid-template-columns: 2.3fr 1fr 1fr 1fr; gap: 1rem; padding-block: 3rem; }
  .site-footer__about { max-width: 25rem; margin-top: var(--space-4); color: var(--neutral-01); font-size: var(--text-base); }
  .site-footer__meta { display: flex; flex-direction: column; gap: 1rem; max-width: 23.125rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line-inverse); }
  .site-footer__meta-line { color: var(--neutral-01); font-size: var(--text-base); }
  .site-footer__title { color: var(--white); font-size: var(--text-lg); font-weight: var(--fw-medium); }
  .site-footer__links { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 1.5rem; }
  .site-footer__link { color: var(--neutral-01); transition: color var(--dur-fast); }
  .site-footer__link:hover { color: var(--lime); }
  .site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line-inverse); }
  .site-footer__copy { color: var(--neutral-01); font-size: var(--text-base); }
  .site-footer__socials { display: flex; gap: 0.875rem; }
  .social-btn { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: var(--lime); border-radius: var(--radius-pill); transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
  .social-btn:hover { opacity: 0.9; transform: translateY(-2px); }
  .social-btn .i { width: 1.125rem; height: 1.125rem; color: var(--on-lime, var(--dark-green)); }

  /* ---- prose page (tietosuoja etc.) ---- */
  .page-hero { padding-block: var(--section-space-s) var(--space-6); }

  /* ---- service subpages (kotisiivous / yrityssiivous / muuttosiivous) ---- */
  .svc-hero { padding-top: var(--section-space-s); }
  .svc-hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-9); align-items: center; }
  .svc-hero__lead { margin-top: var(--space-4); font-size: var(--text-md); color: var(--text-main); }
  .svc-hero__img { width: 100%; height: 100%; max-height: 34rem; object-fit: cover; border-radius: var(--radius); }
  .svc-body { padding-block: var(--space-8); }
  /* Fixed two columns: since 2026-08-19 every service page carries FOUR
   * sections, and auto-fit packed them 3+1 with the last one alone next to an
   * empty row. 2x2 stays balanced and the wider measure reads better. */
  .svc-body__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-7); }
  .svc-section__title {
    font-family: var(--font-secondary); font-size: var(--text-h4); font-weight: var(--fw-regular);
    letter-spacing: var(--ls-h4); color: var(--text-heading); margin-bottom: var(--space-3);
  }
  .svc-section__text { color: var(--text-main); }
  .svc-section__text + .svc-section__text { margin-top: var(--space-3); }
  .svc-included { margin-top: var(--space-8); }
  .svc-included__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .svc-tag {
    padding: 0.375rem 0.875rem; border: 1px solid var(--neutral-05); border-radius: var(--radius-pill);
    color: var(--text-heading); font-size: var(--text-sm); white-space: nowrap;
  }
  .svc-more { padding-block: var(--space-8); }
  .svc-more__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-9); align-items: start; }
  .svc-quote { padding: var(--space-6); background: var(--white); border-radius: var(--radius); }
  .svc-quote__icon { width: 2.5rem; aspect-ratio: 68 / 52; margin-bottom: var(--space-3); color: var(--accent-on-light); }
  .svc-quote__text { font-size: var(--text-md); color: var(--text-heading); }
  /* the slider's name/role are white-on-green; this card is white, so they need
   * their own tones — reusing .quote-slider__* here printed white on white. */
  .svc-quote__person { margin-top: var(--space-4); }
  .svc-quote__name { color: var(--text-heading); font-size: var(--text-md); font-weight: var(--fw-medium); }
  .svc-quote__role { color: var(--neutral-07); font-size: var(--text-base); }
  .svc-related { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
  .svc-related__title { font-weight: var(--fw-medium); color: var(--text-heading); }
  .svc-cta { padding-block: var(--section-space-s); }
  .svc-cta__box { max-width: 44rem; margin-inline: auto; }
  .svc-cta__actions { margin-top: var(--space-4); }
  .svc-contact { padding-block: var(--section-space-s); }
  .svc-contact__head { max-width: 40rem; margin-bottom: var(--space-8); }
  .svc-contact__meta { margin-top: var(--space-8); text-align: center; color: var(--text-main); }
  .page-prose { max-width: 46.25rem; padding-bottom: var(--section-space-l); }
  .page-prose h2 { font-size: var(--text-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); margin: var(--space-5) 0 0.75rem; }
  .page-prose h3 { font-size: var(--text-h5); margin: var(--space-4) 0 0.5rem; }
  .page-prose p { margin-bottom: 1rem; }
  .page-prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
  .page-prose a { color: var(--accent-on-light); text-decoration: underline; }

  /* ---- 404 ---- */
  .error-page { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding-block: var(--section-space-l); text-align: center; }
  .error-page__code { color: var(--accent-on-light); font-size: var(--text-404); line-height: 1; letter-spacing: var(--ls-h1); }
  .error-page__lead { max-width: 30rem; color: var(--text-main); font-size: var(--text-md); }
  .error-page .actions { justify-content: center; margin-top: var(--space-4); }
  .error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; margin-top: var(--space-5); }
  .error-page__link {
    padding: 0.5rem 1.125rem; border: 1px solid var(--neutral-05); border-radius: var(--radius-pill);
    color: var(--text-heading); font-size: var(--text-base);
    transition: border-color var(--dur-fast), color var(--dur-fast);
  }
  .error-page__link:hover { border-color: var(--accent-on-light); color: var(--accent-on-light); }
}

/* ------------------------------------------------------ responsive ---- */
@layer components {
  /* Nav collapses at 1119, not 991, because the DESKTOP nav does not fit at
   * 992. Finnish is the longest locale and needed 1108px: at exactly 992 the
   * language switch and the Pyydä tarjous button hung 116px past the viewport
   * and the whole page scrolled sideways (ET 73px, EN 13px). Tightening gaps
   * would only postpone it, since the nav labels come from each service
   * page's editable `eyebrow`, so any rename could reopen the overflow. */
  @media (max-width: 69.99rem) { /* 1119 */
    .site-nav__menu {
      display: none;
      position: absolute; top: 100%; left: 0.625rem; right: 0.625rem; z-index: 20;
      flex-direction: column; align-items: stretch; gap: 0.25rem;
      margin-top: 0.3125rem; padding: 0.625rem 1.25rem;
      background: var(--neutral-01); border-radius: var(--radius-button);
      box-shadow: 0 5px 20px rgb(0 0 0 / 0.2);
    }
    .site-nav.is-open .site-nav__menu { display: flex; }
    .site-nav__link { padding: 0.625rem 0; border-bottom: 1px solid rgb(15 15 15 / 0.15); border-radius: 0; font-size: var(--text-md); }
    .site-nav__link:last-child { border-bottom: 0; }
    /* stacked menu: the submenu is a plain indented list, always open — a
     * hover/focus panel is unusable on touch, and there is room to spare here */
    .site-nav__item--menu { position: static; display: flex; flex-direction: column; }
    /* the submenu's own rule closes the group, so the parent drops its line and
     * the two do not stack into a double rule around the indented children */
    .site-nav__item--menu .site-nav__link { border-bottom: 0; }
    .site-nav__caret { display: none; }
    .site-nav__sub {
      position: static; min-width: 0; padding: 0 0 0.625rem 0.875rem; margin: 0;
      background: none; border-radius: 0; box-shadow: none;
      opacity: 1; visibility: visible; transform: none;
      border-bottom: 1px solid rgb(15 15 15 / 0.15);
    }
    .site-nav__sub-link { padding: 0.4375rem 0; font-size: var(--text-base); }
    .site-nav__cta { display: none; }
    .site-nav__lang { display: none; }
    .lang-switch--menu { display: flex; align-self: flex-start; margin-top: 0.75rem; }
    .site-nav__burger { display: flex; }
  }

  @media (max-width: 61.99rem) { /* 991 */
    .svc-hero__grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .svc-hero__img { max-height: 24rem; }
    .svc-more__grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .svc-hero__grid > *, .svc-body__grid > *, .svc-more__grid > * { min-width: 0; }

    .hero__header { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .hero__side { padding-bottom: 0; gap: 2.5rem; }
    .gallery-marquee__item--1 { width: 29vw; } .gallery-marquee__item--2 { width: 38vw; }
    .gallery-marquee__item--3 { width: 32vw; } .gallery-marquee__item--4 { width: 37vw; }
    .gallery-marquee__item--5 { width: 31vw; } .gallery-marquee__item--6 { width: 39vw; }
    .stats { grid-template-columns: 1fr 1fr; gap: var(--space-6-5) 8rem; }

    .about { grid-template-columns: 1fr; gap: var(--space-8); align-items: start; }
    .about__content { padding-right: 0; }
    .why-us { grid-template-columns: 1fr; gap: var(--space-8); }
    .services__header { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .services__header-right { padding-bottom: 0; }
    .service-acc__head, .service-acc__panel-inner { grid-template-columns: 0.5fr 2.7fr; }
    .process__grid { grid-template-columns: 1fr 1fr; }
    .process-card { position: static; padding: 1.5rem 1.75rem; }
    .process-card--2, .process-card--3 { margin-top: 0; }
    .pricing__grid { grid-template-columns: 1fr 1fr; gap: 0.875rem; }
    .price-card { padding: 1.25rem; }
    .testimonials__panel { grid-template-columns: 1fr; }
    .testimonials__media { min-height: 20rem; }
    .trust-strip__grid { grid-template-columns: 1fr 1fr; }
    .faq { grid-template-columns: 1fr; gap: var(--space-8); }
    .faq__left { padding-right: 0; }
    .contact { grid-template-columns: 1fr; gap: var(--space-8); }
    .site-footer__cta { flex-direction: column; align-items: flex-start; }
    .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-6-5); }
  }

  @media (max-width: 47.99rem) { /* 767 */
    .svc-body__grid { grid-template-columns: 1fr; }
    /* 2-col chips: longest single words (Loppusiivoukset) blow out at h5 size */
    .trust-chip__word { font-size: 1rem; }
    .stats { gap: var(--space-6-5) 4rem; }
    .gallery-marquee__item--1 { width: 33vw; } .gallery-marquee__item--2 { width: 41vw; }
    .gallery-marquee__item--3 { width: 36vw; } .gallery-marquee__item--4 { width: 41vw; }
    .gallery-marquee__item--5 { width: 35vw; } .gallery-marquee__item--6 { width: 43vw; }
    .why-us__grid { grid-template-columns: 1fr; }
    .why-us__col--1 { padding-bottom: 0; }
    .why-us__col--2 { flex-direction: column-reverse; padding-top: 0; }
    .process__header { flex-direction: column; align-items: flex-start; gap: 3rem; }
    .process__grid, .pricing__grid { grid-template-columns: 1fr; }
    .price-card { padding: 1.5rem; }
    .service-acc { padding-block: 2rem; }
    .service-acc__head, .service-acc__panel-inner { grid-template-columns: 1fr; }
    .service-acc__num { display: none; }
    /* the +/- was vertically centred against a five-line description and ended
     * up floating beside the middle of the paragraph, far from its title */
    .service-acc__row { align-items: flex-start; }
    .service-acc__toggle { margin-top: -0.35rem; }
    .service-acc__panel-inner > .service-acc__body { grid-column: 1; flex-direction: column; align-items: flex-start; }
    .service-acc__meta { max-width: none; }
    .quote-slider { padding: 1.75rem 1.5rem; }
    .quote-slider__slide { gap: 2.625rem; padding-bottom: 5rem; }
    .quote-slider__text { font-size: var(--text-h5); }
    .quote-slider__arrow { width: 2.625rem; height: 2.625rem; bottom: 1.5rem; }
    .quote-slider__arrow--prev { right: 4.5rem; }
    .quote-slider__arrow--next { right: 1.5rem; }
    .testimonials__badge { left: 0.9375rem; bottom: 0.9375rem; padding: 1rem 1.5rem 1rem 1.25rem; }
    .form-card { padding: 1.25rem 1.5rem 2rem; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  }

  @media (max-width: 29.99rem) { /* 479 */
    .stats { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .stat__digits { height: 4rem; }
    .about__features { grid-template-columns: 1fr; }
    .about__badge { position: static; margin: 0.625rem; max-width: none; }
    /* single column: 2-col blows out on long single words (Loppusiivoukset) */
    .trust-strip__grid { grid-template-columns: 1fr; }
    /* slim toggle: joined accordion titles need the width at 360 */
    .service-acc__toggle { width: 3.5rem; padding: 0.5rem; }
    /* was height:4.5rem with the desktop 2rem block padding, leaving an 8px
     * content box: every chip rendered as an empty white card on phones */
    .trust-chip { height: auto; min-height: 4.5rem; padding: 1rem; }
    .form__row { grid-template-columns: 1fr; }
    .actions { gap: var(--space-3); }
    .gallery-marquee { margin-block: 3.5rem; }
    .gallery-marquee__item--1 { width: 52vw; } .gallery-marquee__item--2 { width: 64vw; }
    .gallery-marquee__item--3 { width: 56vw; } .gallery-marquee__item--4 { width: 64vw; }
    .gallery-marquee__item--5 { width: 55vw; } .gallery-marquee__item--6 { width: 66vw; }
  }
}

/* ---------------------------------------------------------- utilities */
@layer utilities {
  .u-hidden { display: none !important; }
}

/* no JS: the accordions can never be opened, so show every panel expanded
 * rather than hiding six services and the whole FAQ behind dead buttons. */
html:not(.js) .service-acc__panel,
html:not(.js) .faq-item__panel { grid-template-rows: 1fr; }
html:not(.js) .service-acc__panel-inner,
html:not(.js) .faq-item__panel-inner { visibility: visible; }
html:not(.js) .service-acc__toggle,
html:not(.js) .faq-item__icon { display: none; }

/* reveal start-states — ONLY when JS runs; no-JS and reduced motion see
 * everything. app.js removes these by animating to the settled state. */
html.js:not(.nofx) [data-reveal] { opacity: 0; transform: translateY(var(--reveal-rise)); }
html.js:not(.nofx) [data-reveal="pop"] { transform: scale(0.7); }
html.js:not(.nofx) [data-reveal="fade"] { transform: none; }
/* Above-the-fold intro runs on CSS ALONE, never on GSAP.
 * It used to be a gsap.to() gated behind html.js, which meant the LCP element
 * (the hero H1, and the hero image on service pages) sat at opacity:0 until
 * gsap + ScrollTrigger + lenis + app.js had all downloaded and executed. On a
 * throttled phone that measured LCP 3.8s against a 121ms TTFB: the server was
 * never the problem, the animation was hiding its own LCP. Keyframes get the
 * same motion with nothing but CSS in the critical path.
 * `both` fill-mode holds the start state through the delay and keeps the end
 * state afterwards, so there is no flash at either end. */
html.js:not(.nofx) [data-hero-in] {
  opacity: 0; transform: translateY(var(--reveal-rise));
  animation: cs-hero-in 0.9s var(--ease-out) 0.15s both;
}
/* image variant: fade only, a rising hero photo reads as a layout shift */
html.js:not(.nofx) [data-hero-in="fade"] {
  transform: none;
  animation-name: cs-hero-fade;
}
@keyframes cs-hero-in { to { opacity: 1; transform: translateY(0); } }
@keyframes cs-hero-fade { to { opacity: 1; } }

html.js:not(.nofx) .text-marquee__bg { transform: scaleY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js [data-hero-in] {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  html.js .text-marquee__bg { transform: none !important; }
}

/* ---- touch targets ----
 * WCAG 2.2 AA (2.5.8) asks for 24px and every one of these already passes, so
 * this is not a violation fix. But 26-30px text links and a 28px icon button
 * are still the classic mis-tap on a phone, so grow the HIT AREA to 44px with
 * a pseudo-element rather than with padding: the finger gets a comfortable
 * target and the approved layout and visual size do not move by a pixel.
 *
 * Deliberately NOT applied to .site-footer__link: those rows sit on a 40px
 * pitch (26px link + 14px gap), so a 44px hit area would overlap its
 * neighbours and cause the wrong link to fire. Overlapping targets are a worse
 * bug than small ones, and at 26px they still clear the AA minimum.
 *
 * pointer:coarse only, so mouse hover areas stay exactly as designed. */
@media (pointer: coarse) {
  .arrow-link, .contact-option__link, .social-btn, .lang-switch__item { position: relative; }
  .arrow-link::after,
  .contact-option__link::after,
  .social-btn::after,
  .lang-switch__item::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: max(100%, 44px); height: max(100%, 44px);
  }
}

/* print: a visitor printing the contact details should get the details, not a
 * dark green page and two rows of decorative photography. */
@media print {
  .site-nav, .scheme-switch, .gallery-marquee, .text-marquee, .skip-link,
  .hero-o, .site-footer__cta, .site-footer__socials, .quote-slider__arrow,
  .btn, .form, .faq__media, .about__media, .testimonials__media { display: none !important; }
  .section__bg { display: none !important; }
  body { background: #fff; color: #000; }
  .heading-1, .heading-2, .heading-3, h1, h2, h3, .stat__num, .stat__label,
  .service-acc__title, .service-acc__desc, .site-footer__link, .site-footer__about,
  .site-footer__copy, .site-footer__title, .site-footer__meta-line, .hero__lead,
  .services__header-right, .heading-1--inverse, .heading-2--inverse { color: #000 !important; }
  .service-acc__panel, .faq-item__panel { grid-template-rows: 1fr !important; }
  .service-acc__panel-inner, .faq-item__panel-inner { visibility: visible !important; }
  .section, .svc-cta, .svc-contact { padding-block: 1rem !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
