:root {
  --ink:        #0a0a0a;
  --ink-soft:   #1a1a1a;
  --paper:      #fafbf2;
  --logo-url: url("/assets/img/logo.png");
  --paper-pure: #fefef9;
  --paper-warm: #eef0e0;
  --person-url: url("/assets/img/anna.jpg");
  --dashboard-url: url("/assets/img/dashboard.jpg");
  --line:       rgba(10, 10, 10, 0.12);
  --line-soft:  rgba(10, 10, 10, 0.06);
  --muted:      rgba(10, 10, 10, 0.55);

  /* Korostusväri — syvä metsänvihreä, levollinen ja kypsä */
  --accent:       #2d4a3e;
  --accent-deep:  #1f3a30;
  --accent-soft:  #d4ddd5;
  --accent-paper: #d4ddd0;

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;
  --script: 'Caveat', 'Brush Script MT', cursive;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ─── Selectie ─── */
::selection { background: var(--ink); color: var(--paper); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 2;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ─────────────── NAVIGATION ─────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 251, 242, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.logo-img {
  display: block;
  width: 109px;
  height: 44px;
  background-image: var(--logo-url);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
.footer-logo-img {
  display: block;
  width: 109px;
  height: 44px;
  background-image: var(--logo-url);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  /* Käännä logon mustat viivat vaaleiksi tummalla footer-pohjalla */
  filter: invert(1);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width .3s ease;
}
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .25s ease, background .25s ease;
  border: 1px solid var(--ink);
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn .arrow {
  transition: transform .25s ease;
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ─────────────── HERO ─────────────── */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background: #fefefa;
}
/* ─── Blob 1: Iso vihreä pilvi oikealla yläosassa ─── */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 75%;
  height: 110%;
  background: radial-gradient(
    ellipse at center,
    rgba(120, 175, 130, 0.7) 0%,
    rgba(120, 175, 130, 0.42) 30%,
    rgba(140, 190, 145, 0.22) 55%,
    transparent 75%
  );
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: blob-float-1 18s ease-in-out infinite;
}
/* ─── Blob 2: Pienempi, kelta-vihreä pilvi vasemmalla alhaalla ─── */
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(180, 200, 100, 0.55) 0%,
    rgba(180, 200, 100, 0.3) 35%,
    rgba(200, 215, 130, 0.16) 60%,
    transparent 80%
  );
  border-radius: 45% 55% 60% 40% / 55% 45% 60% 40%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: blob-float-2 22s ease-in-out infinite;
}

@keyframes blob-float-1 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  }
  33% {
    transform: translate(-3%, 2%) rotate(8deg) scale(1.05);
    border-radius: 50% 50% 45% 55% / 60% 45% 55% 40%;
  }
  66% {
    transform: translate(2%, -2%) rotate(-5deg) scale(0.97);
    border-radius: 65% 35% 60% 40% / 45% 60% 40% 60%;
  }
}
@keyframes blob-float-2 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-radius: 45% 55% 60% 40% / 55% 45% 60% 40%;
  }
  50% {
    transform: translate(4%, -3%) rotate(-10deg) scale(1.08);
    border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
  }
}

.hero > .container { position: relative; z-index: 2; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.hero-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: currentColor;
}
.hero-eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(45, 74, 62, 0.5);
  animation: pulse 2.4s cubic-bezier(0.66, 0, 0.2, 1) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 74, 62, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(45, 74, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 74, 62, 0); }
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
h1 em, h2 em, h3 em, h4 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}

/* Hero on nyt 2 palstaa: vasen otsikko + visu, oikea tuotemockup */
.hero-main {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  min-height: 70vh;
}
.hero h1 {
  font-size: clamp(48px, 6.4vw, 100px);
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
}

/* Sosiaalinen todistus & lead heron alaosassa */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero-lead {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 52ch;
}
.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── Hero TUOTEMOCKUP — iso dashboard pääelementtinä ─── */
.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-left: auto;
  aspect-ratio: 1 / 1;
}
.mockup-card {
  position: absolute;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(10, 10, 10, 0.04),
    0 8px 24px rgba(10, 10, 10, 0.06),
    0 24px 60px rgba(10, 10, 10, 0.08);
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Pää-kortti: DASHBOARD — iso vaakatasoinen tuotemockup */
.mockup-card.dashboard {
  /* Keskiakselilla, hieman alaspäin jätäen tilaa muille korteille päälle/sivulle */
  inset: 14% -6% auto -6%;
  aspect-ratio: 900 / 631;
  padding: 0;
  background: var(--paper-pure) var(--dashboard-url) center/cover no-repeat;
  border-radius: 14px;
  transform: rotate(-1.5deg);
  animation: float-dash 12s ease-in-out infinite;
  z-index: 1;
  overflow: hidden;
  /* Lisää syvempi varjo erottuvuuden vuoksi */
  box-shadow:
    0 2px 4px rgba(10, 10, 10, 0.04),
    0 12px 32px rgba(10, 10, 10, 0.08),
    0 32px 80px rgba(45, 74, 62, 0.1);
}
.mockup-card.dashboard:hover { transform: rotate(0deg) translateY(-4px); }

@keyframes float-dash {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50%      { transform: rotate(-1deg) translateY(-6px); }
}

/* Pää-kortti: muistutusviesti (Slack/sähköposti-tyylinen) */
.mockup-card.primary {
  inset: -2% -8% auto auto;
  width: 62%;
  padding: 18px;
  z-index: 3;
  transform: rotate(3deg);
  animation: float-1 8s ease-in-out infinite;
}
.mockup-card.primary:hover { transform: rotate(0deg) translateY(-4px); }

.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  flex-shrink: 0;
}
.mockup-meta { flex: 1; min-width: 0; }
.mockup-meta .from {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 2px;
}
.mockup-meta .time {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mockup-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-paper);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--accent-soft);
}
.mockup-message {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}
.mockup-message em { color: var(--accent); font-style: italic; }
.mockup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mockup-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.mockup-btn.ghost {
  background: transparent;
  color: var(--ink);
}

/* Toinen kortti: pieni stat / dashboard-sneak peek */
.mockup-card.stat {
  inset: auto 6% 4% auto;
  width: 56%;
  padding: 22px;
  z-index: 4;
  transform: rotate(2deg);
  animation: float-2 9s ease-in-out infinite;
  animation-delay: -2s;
}
.mockup-stat-label {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.mockup-stat-value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 4px;
  font-feature-settings: "ss01";
}
.mockup-stat-value sup { font-size: 0.42em; vertical-align: super; }
.mockup-stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}
.mockup-stat-trend::before {
  content: '↗';
  font-size: 13px;
}
/* Mini-bar chart */
.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-top: 14px;
  height: 32px;
}
.mockup-bar {
  flex: 1;
  background: var(--accent-soft);
  border-radius: 2px;
  transition: background .3s;
}
.mockup-bar.active { background: var(--accent); }

/* Kolmas kortti: HENKILÖKUVA — "todellinen ihminen" Lungon takana */
.mockup-card.person {
  inset: auto auto 0 -2%;
  width: 190px;
  height: 230px;
  border-radius: 18px;
  background: var(--paper-pure);
  padding: 14px 14px 16px;
  z-index: 3;
  transform: rotate(-4deg);
  animation: float-3 9s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow:
    0 1px 2px rgba(10, 10, 10, 0.04),
    0 8px 24px rgba(10, 10, 10, 0.06),
    0 24px 60px rgba(10, 10, 10, 0.08);
}
/* Pyöreä kuva ylhäällä */
.person-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-image: var(--person-url);
  background-size: cover;
  background-position: center 28%;
  position: relative;
  flex-shrink: 0;
}
/* Vihreä "online"-pulse-piste oikeassa alakulmassa */
.person-photo::after {
  content: '';
  position: absolute;
  bottom: 8%;
  right: 8%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7ac142;
  border: 3px solid var(--paper-pure);
  box-shadow: 0 0 0 0 rgba(122, 193, 66, 0.6);
  animation: pulse-online 2s cubic-bezier(0.66, 0, 0.2, 1) infinite;
}
@keyframes pulse-online {
  0% { box-shadow: 0 0 0 0 rgba(122, 193, 66, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(122, 193, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(122, 193, 66, 0); }
}
.person-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}
.person-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.person-name em { font-style: italic; color: var(--accent); }
.person-status {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}
.person-status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ac142;
}

/* Floating animations */
@keyframes float-1 {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50%      { transform: rotate(3.5deg)   translateY(-8px); }
}
@keyframes float-2 {
  0%, 100% { transform: rotate(2deg)   translateY(0); }
  50%      { transform: rotate(2.5deg) translateY(-6px); }
}
@keyframes float-3 {
  0%, 100% { transform: rotate(-4deg) translateY(0) translateX(0); }
  50%      { transform: rotate(-3.5deg) translateY(8px) translateX(4px); }
}

/* Sosiaalinen todistus -palkki: pienet tunnusluvut + asiakaslogot */
.hero-trust {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-stat .num {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: "ss01";
}
.trust-stat .num em {
  color: var(--accent);
  font-style: italic;
}
.trust-stat .num sup {
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 0.05em;
}
.trust-stat .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

@media (max-width: 960px) {
  .hero { padding: 130px 0 80px; }
  .hero-main { grid-template-columns: 1fr; gap: 60px; min-height: auto; }
  .hero-mockup { max-width: 460px; margin: 0 auto; aspect-ratio: 1 / 0.95; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-trust { gap: 24px; }
  .trust-divider { display: none; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(40px, 11vw, 64px); }
  .mockup-card.primary { padding: 14px; width: 70%; inset: -4% -6% auto auto; }
  .mockup-message { font-size: 14px; }
  .mockup-card.person { width: 150px; height: 190px; padding: 10px; }
  .person-name { font-size: 12px; }
  .person-status { font-size: 8px; }
}

/* Vanha hero-curl jää piiloon (korvattu mockupilla) */
.hero-curl { display: none; }

/* ─────────────── MARQUEE ─────────────── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  overflow: hidden;
  background: var(--paper-pure);
}
.marquee-track {
  display: flex;
  gap: 56px;
  align-items: center;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  width: fit-content;
}
.marquee-item {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 300;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-item::after {
  content: '✦';
  font-style: normal;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 14px;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ─────────────── SECTION TEMPLATE ─────────────── */
section { position: relative; }
.section {
  padding: clamp(80px, 12vw, 160px) 0;
}
.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: end;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow .num {
  color: var(--ink);
  font-weight: 500;
}
.section h2 {
  font-size: clamp(40px, 5.5vw, 80px);
  max-width: 16ch;
}
.section h2 em {
  font-style: italic;
  font-weight: 300;
}
@media (max-width: 760px) {
  .section-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
}

/* ─────────────── SERVICES ─────────────── */
.services {
  background: var(--paper-pure);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-list {
  border-top: 1px solid var(--line);
}
.service {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.4fr 2fr auto;
  gap: 32px;
  align-items: start;
  transition: padding .3s ease, background .3s ease;
  cursor: pointer;
  position: relative;
}
.service:hover {
  padding-left: 16px;
  padding-right: 16px;
}
.service:hover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--paper-warm);
  z-index: -1;
}
.service-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-top: 8px;
}
.service-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.service-title em { font-style: italic; }
.service-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
  padding-top: 8px;
}
.service-arrow {
  align-self: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .35s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.service:hover .service-arrow {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  transform: rotate(-45deg);
}
@media (max-width: 900px) {
  .service { grid-template-columns: 1fr auto; gap: 16px; }
  .service-desc { grid-column: 1 / -1; padding-top: 0; }
}

/* ─────────────── BIG TEXT MOMENT ─────────────── */
.credo {
  padding: clamp(120px, 18vw, 220px) 0;
  text-align: center;
  position: relative;
}
.credo p {
  font-family: var(--serif);
  font-size: clamp(36px, 6vw, 90px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 18ch;
  margin: 0 auto;
}
.credo p em { font-style: italic; }
.credo .quote-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.6;
  color: var(--accent);
  display: block;
  margin-bottom: 0.1em;
  opacity: 0.5;
}

/* ─────────────── PROCESS ─────────────── */
.process {
  border-top: 1px solid var(--line);
  background: var(--accent-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
/* Sisäänrakennettu hieno tekstuuri vihreälle pohjalle */
.process::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(250, 251, 242, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.process::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(250, 251, 242, 0.08);
  border-radius: 50%;
  pointer-events: none;
}
.process > .container { position: relative; z-index: 2; }
.process h2 em { color: var(--accent-soft); }
.process .section-eyebrow,
.process .section-eyebrow .num { color: rgba(250, 251, 242, 0.6); }
.process .section-eyebrow .num { color: var(--paper); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.process-step {
  padding: 40px 28px 40px 0;
  border-left: 1px solid rgba(250, 251, 242, 0.16);
  padding-left: 28px;
  position: relative;
}
.process-step:first-child { border-left: none; padding-left: 0; }
.process-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(250, 251, 242, 0.5);
  margin-bottom: 56px;
}
.process-title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.process-title em { font-style: italic; color: var(--accent-soft); }
.process-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(250, 251, 242, 0.7);
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-left: none !important; padding-left: 0 !important; border-top: 1px solid rgba(245,243,238,0.16); }
  .process-step:first-child { border-top: none; }
  .process-num { margin-bottom: 24px; }
}

/* ─────────────── STATS ─────────────── */
.stats {
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 16px 24px 16px 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  font-feature-settings: "ss01";
}
.stat-num sup {
  font-size: 0.42em;
  vertical-align: super;
  font-weight: 400;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; margin-top: 16px; }
  .stat:nth-child(4) { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 16px; }
}

/* ─────────────── TESTIMONIAL ─────────────── */
.testimonial {
  background: var(--accent-paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 130%;
  background: radial-gradient(
    ellipse at center,
    rgba(120, 175, 130, 0.4) 0%,
    rgba(140, 190, 145, 0.2) 35%,
    transparent 70%
  );
  border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: blob-float-1 24s ease-in-out infinite;
}
.testimonial > .container { position: relative; z-index: 2; }
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.testimonial-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.testimonial-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 40px;
}
.testimonial-author {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
}
.testimonial-name {
  font-weight: 500;
  font-size: 15px;
}
.testimonial-role {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─────────────── COLLECTION LETTER (logo behind text) ─────────────── */
.letter {
  position: relative;
  padding: clamp(120px, 18vw, 200px) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Iso vaaleanvihreä logo taustalla — käyttää CSS-muuttujassa olevaa data URI:a */
.letter::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--logo-url);
  background-repeat: no-repeat;
  background-position: center 58%;
  background-size: 140% auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}
.letter > .container {
  position: relative;
  z-index: 2;
  text-align: center;
}
.letter-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.letter-eyebrow::before,
.letter-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.letter h2 {
  font-size: clamp(40px, 6vw, 84px);
  margin-bottom: 28px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.letter-lead {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 48px;
}
.letter-lead em { color: var(--accent); font-style: italic; }
.letter-buttons {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─────────────── PEOPLE (split image + text) ─────────────── */
.people {
  border-bottom: 1px solid var(--line);
  padding: clamp(80px, 12vw, 140px) 0;
}
.people-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.people-image {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: var(--accent-paper);
}
.people-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Hieman vihreää sävyä kuvan päälle yhtenäisyyden vuoksi */
.people-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,58,48,0) 0%, rgba(31,58,48,0.06) 100%);
  pointer-events: none;
}
/* Pieni kuvan päällä kelluva tekstilappu (decorative) */
.people-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--paper);
  padding: 14px 18px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
}
.people-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.people-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.people-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}
.people h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 28px;
  max-width: 16ch;
}
.people-lead {
  font-family: var(--serif);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 36px;
}
/* Pienet "team avatar" -merkit alareunassa */
.people-avatars {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.avatar-stack {
  display: flex;
}
.avatar-stack .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -8px;
  background: var(--accent);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
}
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .avatar:nth-child(2) { background: var(--accent-deep); }
.avatar-stack .avatar:nth-child(3) { background: var(--ink); }
.avatar-stack .avatar:nth-child(4) { background: var(--paper); color: var(--ink); border-color: var(--line); font-size: 11px; font-style: normal; font-family: var(--mono); }
.people-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.people-meta strong { color: var(--ink); font-weight: 500; }

/* Fallback kun kuvaa ei ole ladattu — abstrakti vihreä gradientti decorative-elementeillä */
.people-image.no-image {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(250,248,243,0.6) 0%, rgba(250,248,243,0) 50%),
    radial-gradient(ellipse at 25% 90%, rgba(31,58,48,0.18) 0%, rgba(31,58,48,0) 55%),
    linear-gradient(160deg, var(--accent-paper) 0%, var(--accent-soft) 60%, #c5d2c9 100%);
}
.people-image.no-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 35% 42%, rgba(31,58,48,0.45) 0%, rgba(31,58,48,0.45) 7.5%, transparent 8%),
    radial-gradient(circle at 62% 46%, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.35) 6%, transparent 6.5%),
    linear-gradient(180deg, transparent 55%, rgba(31,58,48,0.22) 100%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .people-grid { grid-template-columns: 1fr; }
  .people-image { max-width: 100%; }
}
/* ─────────────── CTA ─────────────── */
.cta {
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 50%;
  height: 180%;
  background: radial-gradient(
    ellipse at center,
    rgba(180, 200, 100, 0.35) 0%,
    rgba(180, 200, 100, 0.18) 35%,
    transparent 70%
  );
  border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: blob-float-2 26s ease-in-out infinite;
}
.cta::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 55%;
  height: 180%;
  background: radial-gradient(
    ellipse at center,
    rgba(120, 175, 130, 0.42) 0%,
    rgba(140, 190, 145, 0.2) 40%,
    transparent 75%
  );
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: blob-float-1 30s ease-in-out infinite;
}
.cta > .container { position: relative; z-index: 2; }
.cta-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.cta h2 {
  font-size: clamp(48px, 7vw, 110px);
  margin-bottom: 48px;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─────────────── FOOTER ─────────────── */
footer {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(250, 251, 242, 0.16);
}
.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 24px;
  filter: invert(1);
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 300;
  color: rgba(250, 251, 242, 0.8);
  max-width: 36ch;
  line-height: 1.45;
}
.footer-tagline em { color: var(--accent-soft); font-style: italic; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 251, 242, 0.5);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(250, 251, 242, 0.85);
  transition: color .2s;
}
.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 251, 242, 0.5);
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ─────────────── PRICING ─────────────── */
.pricing {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-pure);
  position: relative;
  overflow: hidden;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
}
.pricing-headline {
  position: sticky;
  top: 120px;
}
.pricing-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.pricing-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}
.pricing-eyebrow .num { color: var(--ink); font-weight: 500; }
.pricing-headline h2 {
  font-size: clamp(40px, 5.5vw, 80px);
  margin-bottom: 24px;
}
.pricing-big-number {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(140px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
  display: block;
  margin: 24px 0;
  font-feature-settings: "ss01";
}
.pricing-big-number sup {
  font-size: 0.32em;
  vertical-align: super;
  margin-left: 0.05em;
  font-style: normal;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pricing-lead {
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 28px;
}
.pricing-lead em { color: var(--accent); font-style: italic; font-weight: 300; }

/* Right column: pricing matrix */
.pricing-table {
  border-top: 1px solid var(--line);
}
.pricing-row {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-label {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.pricing-label em { font-style: italic; color: var(--accent); }
.pricing-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
  max-width: 50ch;
}
.pricing-amount {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}
.pricing-amount.zero { color: var(--accent); }
.pricing-amount sup {
  font-size: 0.45em;
  vertical-align: super;
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 0.1em;
}

/* Footnote / fineprint card */
.pricing-note {
  margin-top: 40px;
  padding: 24px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pricing-note-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-note-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.pricing-note-text strong {
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 48px; }
  .pricing-headline { position: static; }
}
@media (max-width: 600px) {
  .pricing-row { grid-template-columns: 1fr; gap: 8px; }
  .pricing-amount { justify-self: start; }
}

/* ─────────────── ANIMATIONS ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(0.22, 1, 0.36, 1), transform .9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* Cursor character ::: a small touch */
@media (hover: hover) {
  .ink-link {
    position: relative;
    display: inline-block;
  }
}

/* ═══════════════ MONISIVUINEN RAKENNE ═══════════════ */

/* ─── Navigaatio: CTA, aktiivinen sivu, mobiilivalikko ─── */
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { padding: 10px 18px; font-size: 13px; }
.nav-actions { display: flex; align-items: center; gap: 28px; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before, .nav-toggle span::after { content: ''; left: 0; margin-left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .nav-cta { display: none; }
  /* backdrop-filter rajaisi fixed-paneelin headerin sisään, joten se pois kun valikko on auki */
  .nav.open { background: var(--paper); border-bottom-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* Koko näytön paneeli, joka liukuu esiin pehmeästi */
  .nav .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--paper);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .3s ease, visibility 0s linear .3s;
  }
  .nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .3s ease, visibility 0s;
  }
  .nav .nav-links li { border-bottom: 1px solid var(--line); }
  .nav .nav-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 300;
    color: var(--ink);
  }
  .nav .nav-links a::after {
    content: '→';
    position: static;
    width: auto;
    height: auto;
    background: none;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--muted);
    transition: transform .2s ease, color .2s ease;
  }
  .nav .nav-links a:active::after { transform: translateX(4px); }
  .nav .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav .nav-links a[aria-current="page"]::after { color: var(--accent); }
  body.menu-open { overflow: hidden; }
}

/* ─── Alasivun yläosa ─── */
.page-hero {
  padding: 180px 0 clamp(64px, 9vw, 120px);
  position: relative;
  overflow: hidden;
  background: #fefefa;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(120, 175, 130, 0.45) 0%, rgba(140, 190, 145, 0.18) 45%, transparent 72%);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  pointer-events: none;
  z-index: 0;
  animation: blob-float-1 22s ease-in-out infinite;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.page-hero h1 {
  font-size: clamp(44px, 6vw, 92px);
  margin-bottom: 28px;
  max-width: 14ch;
}
.page-hero .hero-lead { margin-bottom: 32px; }
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--ink); }
@media (max-width: 900px) {
  .page-hero { padding-top: 140px; }
  .page-hero-grid { grid-template-columns: 1fr; }
}

/* ─── Kuva + teksti rinnakkain ─── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 24px; max-width: 16ch; }
.split p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 52ch; }
.split p + p { margin-top: 16px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* ─── Korttiruudukko ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.card {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-pure);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 20px;
}
.card h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.card .link-arrow { margin-top: auto; padding-top: 12px; }
.link-arrow {
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  width: fit-content;
}

/* ─── Tekstisisältö (juridiset sivut, pitkät tekstit) ─── */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); margin: 56px 0 18px; max-width: none; }
.prose h3 { font-size: 22px; margin: 32px 0 12px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 14px 0; }
.prose li + li { margin-top: 6px; }
.prose a { border-bottom: 1px solid currentColor; }

/* ─── Usein kysytyt ─── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 48px 26px 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 22px;
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-body { padding: 0 0 28px; max-width: 64ch; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.faq .faq-body p + p { margin-top: 12px; }

/* ─── Lomake ─── */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-pure);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 140px; resize: vertical; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ─── Täydennettävä sisältö (näkyy selvästi kunnes korjattu) ─── */
.todo {
  background: #fff1a8;
  color: #5a4a00;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.8em;
  font-style: normal;
}

/* ─── Kuvaplaceholder (korvautuu automaattisesti kun kuva lisätään) ─── */
.img-frame {
  aspect-ratio: var(--ar, 4 / 3);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--accent-paper);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-ph {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 22px;
  background:
    repeating-linear-gradient(135deg, rgba(45, 74, 62, 0.06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--accent-paper) 0%, var(--accent-soft) 100%);
  border: 1px dashed rgba(45, 74, 62, 0.35);
  color: var(--accent-deep);
}
.img-ph-id {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  background: var(--accent-deep);
  color: var(--paper);
  padding: 5px 9px;
  border-radius: 4px;
}
.img-ph-size {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.img-ph-desc { font-family: var(--serif); font-size: 18px; font-weight: 400; line-height: 1.3; }
.img-ph-search { font-family: var(--mono); font-size: 11px; line-height: 1.5; opacity: 0.75; }

/* ─── Tumma korostusosio (uudelleenkäytettävä) ─── */
.band-dark { background: var(--accent-deep); color: var(--paper); }
.band-dark h2 em { color: var(--accent-soft); }
.band-dark .section-eyebrow { color: rgba(250, 251, 242, 0.6); }
.band-paper { background: var(--paper-pure); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav-mobile-cta, .nav-mobile-meta { display: none; }
@media (max-width: 960px) {
  .nav .nav-links .nav-mobile-cta { display: block; border-bottom: 0; margin-top: auto; padding-top: 28px; }
  .nav .nav-links .nav-mobile-cta a {
    justify-content: center;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 22px;
    color: var(--paper);
  }
  .nav .nav-links .nav-mobile-cta a::after { display: none; }
  .nav .nav-links .nav-mobile-meta {
    display: block;
    border-bottom: 0;
    padding-top: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
  }
  .nav .nav-links .nav-mobile-meta a { display: inline; padding: 0; font-family: var(--sans); font-size: 14px; color: var(--ink-soft); }
  .nav .nav-links .nav-mobile-meta a::after { display: none; }
}

/* ─── Perustajan lainaus (Meistä) ─── */
.founder-quote {
  margin-top: 32px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 40ch;
}
.founder {
  margin-top: 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.founder-name { font-weight: 500; font-size: 15px; }
.founder-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ═══════════════ RAUHALLISEMPI ILME (vähemmän koristeita) ═══════════════ */

/* Kursivoitu korostussana vain pääotsikossa (h1). Muissa otsikoissa teksti on yhtenäistä. */
h2 em, .section h2 em, .split h2 em, .people h2 em, .cta h2 em, .letter h2 em, .pricing-headline h2 em {
  font-style: normal;
  color: inherit;
}
h3 em, .card h3 em, .service-title em, .process-title em, .pricing-label em {
  font-style: normal;
  color: inherit;
}
.band-dark h2 em, .process h2 em, .process-title em { color: inherit; }

/* Pienet yläotsikot: tavallinen kirjasin, ei versaalia eikä harvennusta */
.section-eyebrow, .people-eyebrow, .pricing-eyebrow, .cta-eyebrow, .letter-eyebrow,
.hero-eyebrow, .crumbs, .testimonial-tag {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}
.people-eyebrow::before, .pricing-eyebrow::before, .letter-eyebrow::before, .letter-eyebrow::after { display: none; }
.crumbs { color: var(--muted); font-weight: 400; font-size: 13px; }
.process .section-eyebrow { color: var(--accent-soft); }

/* Korttien juokseva numerointi pois */
.card-num { display: none; }

/* Alatunniste ja pienet tunnisteet ilman konekirjoitusfonttia */
.footer-col h4, .footer-bottom, .trust-stat .label, .stat-label, .process-num {
  font-family: var(--sans);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 13px;
}

/* ─── Mobiili: kuvat tukevat tekstiä, eivät hallitse ─── */
@media (max-width: 900px) {
  .page-hero { padding: 120px 0 48px; }
  .page-hero::before { opacity: 0.6; }
  .page-hero h1 { font-size: clamp(38px, 10vw, 56px); margin-bottom: 18px; }
  .page-hero-grid { gap: 28px; }
  .page-hero .img-frame { aspect-ratio: 16 / 9 !important; border-radius: 14px; }

  /* Rinnakkaisosioissa teksti ensin, kuva matalana sen jälkeen */
  .split, .people-grid { gap: 28px; }
  .split > :first-child, .split.reverse > :first-child, .people-grid > :first-child { order: 2; }
  .split .img-frame, .people .img-frame { aspect-ratio: 16 / 10 !important; border-radius: 14px; }
  .yhteys-kuva { display: none; }

  .section { padding: 64px 0; }
  .section-header { margin-bottom: 32px; }
  .hero-mockup { max-width: 340px; }
}
@media (max-width: 900px) {
  .card { padding: 22px 20px 24px; gap: 8px; }
  .card h3 { font-size: 22px; }
}

/* ─── Osion otsikko: yläotsikko otsikon yläpuolelle ─── */
.section-header { grid-template-columns: 1fr; gap: 14px; align-items: start; margin-bottom: 56px; }

/* ─── Aikajana (Näin se toimii) ─── */
.timeline-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.timeline { list-style: none; position: relative; padding-left: 36px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 40px;
  width: 2px;
  background: var(--accent-soft);
}
.tl-phase {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 20px -36px;
  padding-left: 36px;
}
.tl-phase:not(:first-child) { margin-top: 44px; }
.tl-step { position: relative; padding-bottom: 32px; }
.tl-step::before {
  content: '';
  position: absolute;
  left: -36px; top: 6px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--accent);
}
.tl-when { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.tl-step h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 8px; }
.tl-step p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-width: 56ch; }
.tl-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-paper);
  color: var(--accent-deep);
}
.tl-tag.warn { background: #f3e7d3; color: #6b4a12; }
.tl-note {
  position: sticky;
  top: 110px;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.tl-note h3 { font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
.tl-note p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.tl-note p + p { margin-top: 10px; }
@media (max-width: 900px) {
  .timeline-wrap { grid-template-columns: 1fr; }
  .tl-note { position: static; padding: 22px; }
}

/* ─── Palvelut-alavalikko ─── */
.nav-sub { display: none; }
@media (max-width: 960px) {
  .nav .nav-links .nav-parent::after { content: '+'; font-size: 20px; transition: transform .25s ease; }
  .nav .nav-links .sub-open > .nav-parent::after { transform: rotate(45deg); }
  /* Korkeus animoituu sisällön mukaan (0fr -> 1fr), joten avautuminen on tasainen */
  .nav .nav-links .nav-sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav .nav-links .sub-open > .nav-sub { grid-template-rows: 1fr; }
  .nav .nav-links .nav-sub > ul {
    min-height: 0;
    overflow: hidden;
    list-style: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .25s ease, transform .35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav .nav-links .sub-open > .nav-sub > ul { opacity: 1; transform: none; transition-delay: .05s; }
  .nav .nav-links .nav-sub li { border-bottom: 0; }
  .nav .nav-links .nav-sub li:last-child { padding-bottom: 10px; }
  .nav .nav-links .nav-sub a {
    font-family: var(--sans);
    font-size: 15px;
    padding: 9px 2px 9px 16px;
    color: var(--ink-soft);
  }
  .nav .nav-links .nav-sub a::after { content: none; }
  .nav .nav-links .nav-sub a[aria-current="page"] { color: var(--accent); }
}

/* ═══════════════ AMMATTIMAISEMPI ILME ═══════════════ */

/* Typografia: täyteläisempi otsikkopaino, maltillisemmat koot */
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.02em; line-height: 1.08; }
.section h2 { font-size: clamp(32px, 3.6vw, 52px); max-width: 22ch; }
.page-hero h1 { font-size: clamp(38px, 4.8vw, 68px); max-width: 18ch; }
.cta h2 { font-size: clamp(34px, 4.2vw, 58px); max-width: 20ch; }
.split h2, .people h2 { font-size: clamp(30px, 3.2vw, 46px); }
.service-title { font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); }
.hero-lead, .people-lead, .letter-lead { font-family: var(--sans); font-size: 18px; line-height: 1.6; font-weight: 400; color: var(--ink-soft); }

/* Napit: suorakulmaisemmat */
.btn { border-radius: 10px; padding: 14px 22px; }

/* Taustan liikkuvat läikät pysäytetään ja himmennetään */
.hero::before, .hero::after, .page-hero::before, .cta::before, .cta::after, .testimonial::before { animation: none; }
.page-hero::before { opacity: 0.55; }

/* Esiintuloanimaatio lyhyemmäksi ja hillitymmäksi */
.reveal { transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }

/* ─── Etusivun pääosio ─── */
.hero-pro { padding: 150px 0 72px; background: #fdfdf8; }
.hero-pro::before { opacity: 0.5; width: 60%; right: -10%; }
.hero-pro::after { display: none; }
.hero-pro-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-kicker { font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: 18px; }
.hero-pro h1 { font-size: clamp(42px, 5vw, 72px); line-height: 1.04; margin-bottom: 22px; max-width: 13ch; }
.hero-pro .hero-lead { max-width: 46ch; margin-bottom: 30px; }
.hero-checks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.hero-checks li { font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.hero-checks li::before {
  content: '';
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  flex-shrink: 0;
}
.hero-shot { position: relative; }
.product-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-pure);
  box-shadow: 0 1px 2px rgba(10,10,10,.04), 0 20px 50px rgba(31,58,48,.10);
}
.product-frame img { display: block; width: 100%; height: auto; }
.hero-notice {
  position: absolute;
  left: -28px; bottom: -24px;
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(10,10,10,.08);
}
.hero-notice-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 14px;
}
.hero-notice-title { font-size: 14px; font-weight: 500; }
.hero-notice-text { font-size: 13px; color: var(--muted); }

/* ─── Faktapalkki ─── */
.factbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-pure); }
.factbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.factbar-grid > div { padding: 30px 28px; border-left: 1px solid var(--line); }
.factbar-grid > div:first-child { border-left: 0; padding-left: 0; }
.factbar dt { font-family: var(--serif); font-size: 34px; line-height: 1; margin-bottom: 8px; color: var(--accent-deep); }
.factbar dd { font-size: 14px; line-height: 1.5; color: var(--ink-soft); max-width: 26ch; }

/* ─── Maksajan osio etusivulla ─── */
.payer { padding: clamp(72px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); background: var(--paper-pure); }
.payer-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.payer h2 { font-size: clamp(30px, 3.4vw, 48px); margin: 12px 0 18px; }
.payer-lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 50ch; }
.payer-actions { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.payer-link {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  transition: color .2s ease, padding .2s ease;
}
.payer-link:hover { color: var(--accent); padding-left: 10px; }

/* ─── Loppukehotus tummalla pohjalla ─── */
.cta { background: var(--accent-deep); color: var(--paper); border-bottom: 0; }
.cta::before, .cta::after { display: none; }
.cta .cta-eyebrow { color: var(--accent-soft); }
.cta h2 { color: var(--paper); }
.cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .btn:hover { background: #fff; }
.cta .btn-ghost { background: transparent; color: var(--paper); border-color: rgba(250,251,242,.5); }
.cta .btn-ghost:hover { background: rgba(250,251,242,.1); color: var(--paper); }

@media (max-width: 960px) {
  .hero-pro { padding: 112px 0 56px; }
  .hero-pro-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-pro h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-notice { left: 12px; bottom: -18px; padding: 10px 12px; }
  .factbar-grid { grid-template-columns: 1fr 1fr; }
  .factbar-grid > div { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .factbar-grid > div:nth-child(-n+2) { border-top: 0; }
  .factbar-grid > div:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .factbar dt { font-size: 26px; }
  .payer-grid { grid-template-columns: 1fr; }
}
/* Korostussanat samalla painolla kuin muu otsikko */
h2 em, h3 em, .service-title em, .process-title em { font-weight: inherit; }
.section h2 em, .people h2 em, .split h2 em, .cta h2 em, .letter h2 em, .hero h1 em { font-weight: inherit; }

/* ═══════════════ EVÄSTEBANNERI ═══════════════ */
.cc { display: none; }
.cc.cc-open { display: block; }
.cc-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 200;
  max-width: 1080px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 22px 26px;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(10,10,10,.14);
  animation: cc-in .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-banner[hidden], .cc-modal[hidden] { display: none; }
@keyframes cc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cc-text { flex: 1; }
.cc-title { font-family: var(--serif); font-weight: 400; font-size: 22px; margin-bottom: 6px; }
.cc-text p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }
.cc-text a { border-bottom: 1px solid currentColor; }
.cc-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cc .btn { padding: 12px 18px; font-size: 14px; white-space: nowrap; }

.cc-modal {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(10,10,10,.45);
  display: grid; place-items: center;
  padding: 20px;
  animation: cc-fade .2s ease;
}
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
.cc-panel {
  width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--paper-pure);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(10,10,10,.25);
}
.cc-head { display: flex; justify-content: space-between; align-items: center; }
.cc-close { font-size: 28px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); }
.cc-close:hover { background: var(--paper-warm); color: var(--ink); }
.cc-intro { font-size: 14px; color: var(--ink-soft); margin: 4px 0 18px; line-height: 1.55; }
.cc-cat { display: block; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cc-cat:first-of-type { cursor: default; }
.cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 6px; }
.cc-cat-head strong { font-weight: 500; font-size: 15px; }
.cc-cat p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.cc-always { font-size: 13px; color: var(--accent); }
.cc-switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.cc-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cc-switch span { position: absolute; inset: 0; border-radius: 999px; background: #c9cdc4; transition: background .2s ease; pointer-events: none; }
.cc-switch span::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease;
}
.cc-switch input:checked + span { background: var(--accent); }
.cc-switch input:checked + span::after { transform: translateX(18px); }
.cc-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc-modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
  .cc-actions { flex-direction: column-reverse; }
  .cc .btn { justify-content: center; }
  .cc-modal { align-items: end; padding: 0; }
  .cc-panel { border-radius: 16px 16px 0 0; max-height: 90vh; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
  .cc-modal-actions { flex-direction: column-reverse; }
}
.prose .table-wrap { overflow-x: auto; margin: 12px 0 24px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; color: var(--ink); background: var(--paper-warm); }
.prose td { color: var(--ink-soft); }
.prose td:first-child { font-family: var(--mono); font-size: 13px; white-space: nowrap; }

/* ─── Mobiilivalikon sujuvuus ───
   Sumennus (backdrop-filter) on puhelimelle raskas, ja sen animoituminen valikon avautuessa
   aiheutti nykimisen. Mobiilissa ylätunnisteella on siksi kiinteä tausta ilman sumennusta,
   ja paneeli animoi vain läpinäkyvyyttä ja siirtymää (GPU-ystävälliset ominaisuudet). */
@media (max-width: 960px) {
  .nav, .nav.scrolled, .nav.open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color .2s ease, border-color .2s ease;
  }
  .nav.scrolled { background: rgba(250, 251, 242, 0.97); }
  .nav.open { background: var(--paper); transition: none; }
  .nav .nav-links {
    top: 72px;
    will-change: opacity, transform;
    transform: translate3d(0, -6px, 0);
    transition: opacity .2s ease-out, transform .26s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear .26s;
  }
  .nav.open .nav-links {
    transform: translate3d(0, 0, 0);
    transition: opacity .2s ease-out, transform .26s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
  }
}

/* ─── Asiakastarinat (etusivu) ─── */
.stories { background: var(--paper); border-bottom: 1px solid var(--line); }
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story {
  margin: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 30px 28px;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.story blockquote { margin: 0; }
.story-quote { font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 16px; }
.story-text { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.story-by { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.story-logo { height: 22px; width: auto; max-width: 140px; object-fit: contain; object-position: left; margin-bottom: 10px; opacity: .85; }
.story-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.story-meta { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .stories-grid { grid-template-columns: 1fr; gap: 14px; }
  .story { padding: 24px 22px; gap: 20px; }
  .story-quote { font-size: 19px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .stories-grid { grid-template-columns: 1fr; max-width: 760px; }
}
.story-quote { font-size: clamp(19px, 1.6vw, 21px); }

/* Tuotekuvan merkintä: kuvan luvut ovat esimerkkejä */
.product-frame { position: relative; }
.product-label {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; color: var(--muted);
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
}
.factbar dd a { border-bottom: 1px solid var(--line); }
.factbar dd a:hover { color: var(--accent); border-color: currentColor; }
.hero-sub { margin-top: 16px; font-size: 14px; color: var(--muted); }
.hero-sub a { color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.nav-actions { gap: 14px; }
.nav-actions nav { margin-right: 14px; }
@media (max-width: 1180px) { .nav-cta-ghost { display: none; } }
@media (max-width: 960px) {
  .nav .nav-links .nav-mobile-cta { display: flex; flex-direction: column; gap: 10px; }
  .nav .nav-links .nav-mobile-cta a.btn-ghost { color: var(--ink); background: transparent; }
}
.founder-home { background: var(--paper-pure); }
.founder-home .founder-quote { max-width: 52ch; font-size: clamp(18px, 1.5vw, 21px); }
.founder-role a { text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line); }
.founder-home .link-arrow { display: inline-flex; }
.cta h2 { margin-bottom: 18px; }
.cta-lead { font-size: 18px; line-height: 1.6; color: rgba(250, 251, 242, 0.8); margin: 0 auto 36px; max-width: 46ch; }
.footer-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; padding: 28px 0; border-bottom: 1px solid rgba(250, 251, 242, 0.16); }
.footer-trust p { font-size: 13px; line-height: 1.6; color: rgba(250, 251, 242, 0.65); max-width: 60ch; }
.footer-trust strong { color: rgba(250, 251, 242, 0.9); font-weight: 500; }
.footer-trust a { color: rgba(250, 251, 242, 0.9); border-bottom: 1px solid rgba(250, 251, 242, 0.3); }
@media (max-width: 760px) { .footer-trust { grid-template-columns: 1fr; } }
