/* ==========================================================================
   Markkinointi Visualist — Site styles
   --------------------------------------------------------------------------
   Type: Caprasimo (display) + Atkinson Hyperlegible (body), Google Fonts
   Color: brand book OKLCH palette, neutrals tinted toward green hue
   Layout: 4pt scale, asymmetric, mobile-first
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color */
  --c-cream      : oklch(95% 0.018 80);    /* base canvas, warm off-white */
  --c-cream-deep : oklch(91% 0.025 70);    /* alt surface */
  --c-pink-hot   : oklch(86% 0.10 350);    /* hero ground, accents */
  --c-pink-soft  : oklch(91% 0.05 350);    /* secondary surfaces */
  --c-green      : oklch(34% 0.10 130);    /* primary type */
  --c-green-deep : oklch(28% 0.10 130);    /* hover, deeper accent */
  --c-olive      : oklch(48% 0.045 110);   /* muted secondary text */
  --c-burgundy   : oklch(40% 0.10 20);     /* illustration stroke, accent rules */

  /* Type */
  --font-display : "Caprasimo", "Cooper Std", "Souvenir", Georgia, serif;
  --font-body    : "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;

  --type-hero    : clamp(2.6rem, 7vw + 0.6rem, 6rem);
  --type-display : clamp(2rem, 4vw + 0.75rem, 3.6rem);
  --type-h2      : clamp(1.4rem, 1.6vw + 0.75rem, 2.1rem);
  --type-h3      : clamp(1.2rem, 0.8vw + 0.85rem, 1.5rem);
  --type-lead    : clamp(1.05rem, 0.4vw + 0.95rem, 1.25rem);
  --type-body    : 1rem;
  --type-small   : 0.875rem;
  --type-eyebrow : 0.78rem;

  /* Spacing (4pt scale) */
  --space-xs  : 4px;
  --space-sm  : 8px;
  --space-md  : 16px;
  --space-lg  : 24px;
  --space-xl  : 40px;
  --space-2xl : 64px;
  --space-3xl : 96px;
  --space-4xl : clamp(80px, 12vw, 160px);

  /* Layout */
  --content-w  : 1180px;
  --gutter     : clamp(20px, 5vw, 56px);

  /* Motion */
  --ease-out-quart: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast   : 200ms;
  --dur-mid    : 450ms;
  --dur-slow   : 700ms;
}

/* --------------------------------------------------------------------------
   Reset (modern minimal)
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* account for sticky header */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.55;
  color: var(--c-green);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; }
a {
  color: inherit;
  text-decoration: none;
  text-decoration-skip-ink: auto;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

::selection { background: var(--c-pink-hot); color: var(--c-green); }

:focus-visible {
  outline: 2px solid var(--c-burgundy);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--c-green);
  color: var(--c-cream);
  border-radius: 4px;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 16px; }

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

/* --------------------------------------------------------------------------
   Shared section primitives
   -------------------------------------------------------------------------- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--type-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-burgundy);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--type-display);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--c-green);
  font-weight: 400;
}

.section-head {
  max-width: var(--content-w);
  margin-inline: auto;
  padding: 0 var(--gutter);
  margin-bottom: var(--space-2xl);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 26px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              background-color var(--dur-fast),
              color var(--dur-fast);
  min-height: 48px;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-green);
  color: var(--c-cream);
}
.btn--primary:hover { background: var(--c-green-deep); transform: translateY(-1px); }
.btn--ghost {
  color: var(--c-green);
  border-bottom: 2px solid var(--c-green);
  border-radius: 0;
  padding: 8px 4px;
  background: transparent;
  min-height: auto;
}
.btn--ghost:hover { color: var(--c-burgundy); border-bottom-color: var(--c-burgundy); }

/* Reveal-on-scroll baseline */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-mid) var(--ease-out-quart),
              transform var(--dur-mid) var(--ease-out-quart);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
/* HEADER component
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  padding: 14px var(--gutter);
  background: #FFB5E2;
  transition: background var(--dur-fast), box-shadow var(--dur-fast), padding var(--dur-fast);
}
/* No backdrop-filter / filter / transform on .site-header — they would create a
   containing block and trap the mobile nav's `position: fixed; inset: 0` inside
   the header bounds instead of letting it fill the viewport. */
.site-header.is-scrolled {
  background: #FFB5E2;
  box-shadow: 0 1px 0 oklch(34% 0.10 130 / 0.10);
}
.site-header__logo { justify-self: start; }
.primary-nav       { justify-self: center; }
/* The third grid column on the right is intentionally empty so the nav stays
   visually centered against the logo on the left. */

.logo { display: inline-flex; align-items: center; }
.logo img { height: 32px; width: auto; }
@media (min-width: 800px) { .logo img { height: 40px; } }

.primary-nav ul {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}
.primary-nav a {
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out-quart);
}
.primary-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--c-green);
  color: var(--c-cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.nav-cta:hover { background: var(--c-green-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-green);
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 800px) {
  .site-header { grid-template-columns: auto 1fr; }
  .nav-toggle { display: flex; justify-self: end; grid-column: 2; }

  .primary-nav {
    position: fixed;
    inset: 0;
    background: var(--c-pink-hot);
    transform: translateY(-100%);
    transition: transform 350ms var(--ease-out-quint);
    z-index: 105;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul {
    flex-direction: column;
    gap: var(--space-xl);
    text-align: center;
  }
  .primary-nav a {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--c-green);
  }
  body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   1. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--c-cream);
  color: var(--c-green);
  padding: clamp(80px, 14vw, 180px) var(--gutter) clamp(100px, 14vw, 180px);
  overflow: hidden;
  isolation: isolate;
}

/* Animated mesh backdrop — four soft brand-tinted streaks rotating across
   the canvas. Strong saturation, lighter blur so the streak shape is clearly
   readable as a curved ribbon, fast cycle times (5–8s) so motion is obvious. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__bg-blob {
  position: absolute;
  width: 110vw;
  height: 42vh;            /* thicker than before (was 26vh) */
  border-radius: 50%;
  filter: blur(50px) saturate(115%);
  will-change: transform;
  mix-blend-mode: multiply;
  top: 50%;
  left: 50%;
  margin: -21vh 0 0 -55vw;  /* recenter to half of new height */
}
.hero__bg-blob--a {
  background: radial-gradient(ellipse, #FF9DD8 0%, rgba(255,157,216,0) 60%);
  animation: heroSwirlA 13s ease-in-out infinite alternate;
}
.hero__bg-blob--b {
  background: radial-gradient(ellipse, #F7B9CE 0%, rgba(247,185,206,0) 60%);
  animation: heroSwirlB 15s ease-in-out infinite alternate;
}
.hero__bg-blob--c {
  background: radial-gradient(ellipse, #F5D4C5 0%, rgba(245,212,197,0) 60%);
  animation: heroSwirlC 11s ease-in-out infinite alternate;
}
.hero__bg-blob--d {
  background: radial-gradient(ellipse, #FFC2DB 0%, rgba(255,194,219,0) 60%);
  animation: heroSwirlD 17s ease-in-out infinite alternate;
}

/* Multi-step keyframes with strongly oscillating Y values so the streak
   traces an exaggerated sine-wave across the canvas. The rotation sweeps
   alongside so each streak corkscrews along its wavy path. */
@keyframes heroSwirlA {
  0%   { transform: translate(-50vw, -25vh) rotate(-30deg) scale(1);    }
  20%  { transform: translate(-30vw,  30vh) rotate(20deg)  scale(1.15); }
  40%  { transform: translate(-5vw,  -28vh) rotate(70deg)  scale(1.05); }
  60%  { transform: translate(15vw,   28vh) rotate(110deg) scale(1.2);  }
  80%  { transform: translate(30vw,  -22vh) rotate(150deg) scale(1.1);  }
  100% { transform: translate(50vw,   25vh) rotate(200deg) scale(1.25); }
}
@keyframes heroSwirlB {
  0%   { transform: translate(45vw,  -28vh) rotate(50deg)   scale(1.1); }
  20%  { transform: translate(25vw,   28vh) rotate(0deg)    scale(1);   }
  40%  { transform: translate(0vw,   -28vh) rotate(-60deg)  scale(1.2); }
  60%  { transform: translate(-25vw,  28vh) rotate(-120deg) scale(1.05);}
  80%  { transform: translate(-40vw, -22vh) rotate(-170deg) scale(1.15);}
  100% { transform: translate(-45vw,  30vh) rotate(-220deg) scale(0.95);}
}
@keyframes heroSwirlC {
  0%   { transform: translate(-40vw,  30vh) rotate(-70deg) scale(1);   }
  20%  { transform: translate(-20vw, -25vh) rotate(-20deg) scale(1.1); }
  40%  { transform: translate(0vw,    30vh) rotate(40deg)  scale(1.2); }
  60%  { transform: translate(20vw,  -28vh) rotate(90deg)  scale(1.05);}
  80%  { transform: translate(35vw,   28vh) rotate(140deg) scale(1.15);}
  100% { transform: translate(45vw,  -30vh) rotate(180deg) scale(1.3); }
}
@keyframes heroSwirlD {
  0%   { transform: translate(40vw,   30vh) rotate(90deg)   scale(1.15);}
  20%  { transform: translate(20vw,  -25vh) rotate(40deg)   scale(1);   }
  40%  { transform: translate(0vw,    28vh) rotate(0deg)    scale(1.2); }
  60%  { transform: translate(-20vw, -28vh) rotate(-60deg)  scale(1.05);}
  80%  { transform: translate(-35vw,  28vh) rotate(-110deg) scale(1.15);}
  100% { transform: translate(-45vw, -30vh) rotate(-160deg) scale(1);   }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg-blob { animation: none; }
}

.hero__inner {
  max-width: var(--content-w);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  font-size: var(--type-eyebrow);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-burgundy);
  margin-bottom: var(--space-lg);
}
.hero__title {
  font-family: var(--font-display);
  /* slightly smaller than before — was clamp(2.6rem, 7vw + 0.6rem, 6rem) */
  font-size: clamp(2.2rem, 5.5vw + 0.5rem, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  font-weight: 400;
  max-width: 18ch;
  margin-bottom: var(--space-lg);
  color: var(--c-green);
}
.hero__lead {
  font-size: var(--type-lead);
  line-height: 1.5;
  max-width: 56ch;
  margin-bottom: var(--space-xl);
  color: var(--c-green);
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
}

/* --------------------------------------------------------------------------
   2. PALVELUT
   -------------------------------------------------------------------------- */
.services {
  background: var(--c-cream);
  padding: var(--space-2xl) 0 var(--space-4xl);
}
.services__grid {
  max-width: var(--content-w);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 720px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
}

.service-card {
  background: var(--c-cream-deep);
  border-radius: 20px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-fast) var(--ease-out-quart);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px oklch(34% 0.10 130 / 0.25);
}
.service-card__icon {
  width: clamp(56px, 7vw, 80px);
  height: auto;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  font-weight: 400;
  line-height: 1.1;
  color: var(--c-green);
}
.service-card__lead {
  font-weight: 700;
  color: var(--c-green-deep);
}
.service-card__body {
  color: var(--c-olive);
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
  .service-card { transform: none !important; }
}

/* --------------------------------------------------------------------------
   3. WHY MV?
   -------------------------------------------------------------------------- */
.why {
  background: var(--c-pink-soft);
  color: var(--c-green);
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.why__inner {
  max-width: 980px;
  margin-inline: auto;
  position: relative;
  z-index: 2;
  text-align: center;
}
.why__quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw + 0.6rem, 2.2rem);
  line-height: 1.2;
  font-weight: 400;
  margin: var(--space-md) auto var(--space-xl);
  max-width: 32ch;
  letter-spacing: -0.005em;
}
.why__body {
  font-size: var(--type-lead);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0 auto;
  color: var(--c-green-deep);
}

.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  align-items: end;
  text-align: center;
}
.counter {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.counter__number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw + 0.5rem, 4.2rem);
  line-height: 1;
  color: var(--c-burgundy);
  font-weight: 400;
}
.counter__label {
  font-size: 0.95rem;
  color: var(--c-green);
  letter-spacing: 0.02em;
  max-width: 18ch;
  margin-inline: auto;
}
.counter__word {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2vw + 0.6rem, 2.4rem);
  line-height: 1.05;
  color: var(--c-burgundy);
  font-weight: 400;
  align-self: end;
  padding-bottom: 8px; /* baseline-align with the bigger numeric counters */
}
/* The Growth/barchart illustration moved into the "Brändit ja logosuunnittelu"
   service card — Why MV no longer has a background illustration. */

/* --------------------------------------------------------------------------
   4. REFERENSSIT
   -------------------------------------------------------------------------- */
.references {
  background: var(--c-cream);
  padding: var(--space-4xl) 0;
}
.references__grid {
  max-width: var(--content-w);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-xl) var(--space-lg);
}
.ref-card {
  background: var(--c-cream-deep);
  border-radius: 24px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  grid-column: span 12;
}
@media (min-width: 720px) {
  .ref-card { grid-column: span 6; }
  .ref-card--featured { grid-column: 1 / -1; }
}
/* Hevoset featured card — at all sizes the copy stacks naturally;
   from 720px+ the photo sits beside it on the right. Below that the photo
   stacks above the copy. */
.ref-card--featured {
  background: var(--c-green);
  color: var(--c-cream);
  padding: 0;                /* the inner copy block carries its own padding */
  overflow: hidden;          /* clip the photo to the rounded corners */
}
.ref-card--featured .ref-card__copy {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.ref-card--featured .ref-card__media {
  display: block;
  background: var(--c-green-deep);
}
.ref-card--featured .ref-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The subject sits left-of-center; nudge the crop so the face/hand stays
     framed when the aspect ratio gets short on wide screens. */
  object-position: 28% 50%;
  display: block;
}
.ref-card--featured .ref-card__title,
.ref-card--featured .ref-card__role,
.ref-card--featured .ref-card__stat,
.ref-card--featured .ref-card__body,
.ref-card--featured .ref-card__result { color: var(--c-cream); }
.ref-card--featured .ref-card__stat { color: var(--c-pink-hot); }
.ref-card--featured .ref-card__role { color: var(--c-pink-soft); }

@media (min-width: 720px) {
  .ref-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 0;
  }
}
@media (min-width: 1024px) {
  .ref-card { grid-column: span 4; }
  /* Re-assert full-width on featured AFTER the .ref-card span-4 rule —
     same specificity, source order decides. */
  .ref-card--featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }
  .ref-card--featured .ref-card__copy {
    padding: var(--space-2xl) var(--space-xl);
  }
}

.ref-card__stat {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.5vw + 0.8rem, 2rem);
  line-height: 1.05;
  color: var(--c-burgundy);
  letter-spacing: -0.005em;
}
/* Featured-card stat must always fit on one line — sized to the narrower
   left column. On the smallest viewports the card stacks single-column
   anyway, so wrapping is fine there. */
.ref-card--featured .ref-card__stat {
  font-size: clamp(1rem, 1.5vw, 1.45rem);
}
@media (min-width: 720px) {
  .ref-card--featured .ref-card__stat { white-space: nowrap; }
}
.ref-card__title {
  font-family: var(--font-display);
  font-size: var(--type-h3);
  font-weight: 400;
  line-height: 1.1;
}
.ref-card--featured .ref-card__title {
  font-size: clamp(1.6rem, 2vw + 0.8rem, 2.4rem);
}
.ref-card__role {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-olive);
  font-weight: 700;
}
.ref-card__body, .ref-card__result {
  color: var(--c-olive);
  line-height: 1.6;
}
/* The featured-card cream/pink-soft text colors only apply when the card has its
   green background — see the @media (min-width:1024px) block above. Below that,
   the featured card looks like a regular card with full body width. */
.ref-card--quote .ref-card__quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1vw + 0.85rem, 1.5rem);
  line-height: 1.2;
  color: var(--c-green-deep);
  margin: var(--space-md) 0 var(--space-sm);
}
.ref-card__attribution {
  font-size: 0.9rem;
  color: var(--c-olive);
}

/* --------------------------------------------------------------------------
   5. ASIAKKAITA · marquee
   -------------------------------------------------------------------------- */
.clients {
  background: var(--c-cream);
  padding: var(--space-xl) 0 var(--space-xl);
  overflow: hidden;
}
.clients__label {
  text-align: center;
  font-size: var(--type-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-burgundy);
  margin-bottom: var(--space-xl);
  font-weight: 700;
}
.clients__marquee {
  --row-gap: clamp(48px, 6vw, 96px);
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.clients__row {
  display: flex;
  align-items: center;
  gap: var(--row-gap);
  width: max-content;
  animation: marquee 50s linear infinite;
}
/* Mobile screens fit only ~2 logos at a time, so the same 50s feels too slow.
   Speed up to keep the rotation lively. */
@media (max-width: 700px) {
  .clients__row { animation-duration: 22s; }
}
.clients__row li { flex: none; }
.clients__row img {
  height: 48px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(20%);
  transition: opacity var(--dur-fast), filter var(--dur-fast);
}
/* The HL26 and Lappee logos have surrounding whitespace inside the artwork that
   makes them read smaller than the rest — bump them up to balance optical size. */
.clients__row img[src*="customer-hl26"],
.clients__row img[src*="customer-lappee"] { height: 72px; }
.clients__row a:hover img,
.clients__row img:hover { opacity: 1; filter: grayscale(0); }

@keyframes marquee {
  to { transform: translateX(calc(-50% - var(--row-gap) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  .clients__row { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* --------------------------------------------------------------------------
   6. MINUSTA
   -------------------------------------------------------------------------- */
.about {
  background: var(--c-cream-deep);
  padding: var(--space-4xl) var(--gutter);
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: 1fr;
  align-items: center;
  max-width: var(--content-w);
  margin-inline: auto;
}
@media (min-width: 900px) {
  .about {
    grid-template-columns: 5fr 6fr;
    gap: var(--space-3xl);
  }
}
.about__media img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: var(--type-lead);
  line-height: 1.6;
  max-width: 60ch;
  color: var(--c-green-deep);
}
.about__copy .btn { align-self: flex-start; margin-top: var(--space-md); }

/* --------------------------------------------------------------------------
   7. YHTEYSTIEDOT
   -------------------------------------------------------------------------- */
.contact {
  background: var(--c-pink-soft);
  padding: var(--space-4xl) 0;
}
.contact__grid {
  max-width: var(--content-w);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: start;
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 7fr 5fr; gap: var(--space-3xl); }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--c-green-deep);
}
/* Honeypot field — visually + aria hidden, but available to bots that
   submit forms without rendering CSS. The lkweb endpoint silently drops
   submissions where this is filled in. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field input, .field textarea {
  font: inherit;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklch, var(--c-green) 22%, transparent);
  background: var(--c-cream);
  color: var(--c-green);
  transition: border-color var(--dur-fast);
  font-family: var(--font-body);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--c-green) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }

.field--consent {
  flex-direction: row;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
}
.field--consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--c-green);
  cursor: pointer;
}
.field--consent .field__consent-text {
  flex: 1 1 auto;
  color: var(--c-green-deep);
}
.field--consent a {
  color: var(--c-burgundy);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-form .btn { align-self: flex-start; margin-top: var(--space-sm); }
.form-status {
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-status.is-success { color: var(--c-green-deep); font-weight: 700; }
.form-status.is-error { color: var(--c-burgundy); font-weight: 700; }

.contact-details ul { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-details li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: var(--space-md);
  align-items: baseline;
}
.contact-details__label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-burgundy);
  font-weight: 700;
}
.contact-details a { font-weight: 700; color: var(--c-green); transition: color var(--dur-fast); }
.contact-details a:hover { color: var(--c-burgundy); }

.social-icons {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--c-cream);
  color: var(--c-green);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.social-icons a:hover {
  background: var(--c-green);
  color: var(--c-cream);
  transform: translateY(-2px);
}
@media (max-width: 500px) {
  .contact-details li { grid-template-columns: 1fr; gap: 4px; }
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-green);
  color: var(--c-cream);
  padding: var(--space-2xl) var(--gutter);
}
.site-footer__inner {
  max-width: var(--content-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 720px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-2xl);
  }
}
.site-footer__logo img {
  /* The white-transparent PNG sits naturally on the deep-green footer. */
  height: clamp(48px, 6vw, 80px);
  width: auto;
}
.site-footer__links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.site-footer__links a {
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid color-mix(in oklch, var(--c-cream) 45%, transparent);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.site-footer__links a:hover { border-color: var(--c-pink-hot); color: var(--c-pink-hot); }
.site-footer__meta {
  font-size: 0.85rem;
  opacity: 0.78;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Responsive tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 500px) {
  .hero { padding-top: 64px; padding-bottom: 100px; }
  .hero__title { letter-spacing: -0.02em; }
  .hero__cta-row .btn--primary { width: 100%; justify-content: center; }
}
