/* ============================================================
   Afasiakeskus — design system
   Calm clinical: warm, legible, human.
   ============================================================ */

:root {
  --teal-950: #09332f;
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;
  --teal-50: #effcf9;

  --lime-500: #9ec31a;
  --lime-400: #d6f267;
  --lime-300: #e5f78c;
  --lime-100: #f3fadf;

  --ink-950: #071420;
  --ink-900: #0b1b26;
  --ink-800: #152a3a;
  --ink-700: #2c4050;
  --ink-600: #4a5d6d;
  --muted: #67798a;

  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #fbfaf5;
  --border: #e8e4d8;
  --border-strong: #d9d3c2;

  --radius-lg: 26px;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --btn-radius: 12px;

  --shadow-sm: 0 2px 10px rgba(11, 27, 38, 0.05);
  --shadow: 0 14px 34px rgba(11, 27, 38, 0.08);
  --shadow-lg: 0 28px 60px rgba(11, 27, 38, 0.14);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: min(1160px, 100% - 48px);
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(15, 118, 110, 0.16);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-700);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-600);
}

p,
ul,
ol,
figure {
  margin-top: 0;
}

::selection {
  background: var(--lime-400);
  color: var(--ink-900);
}

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 8px;
}

[id],
h1[id],
h2[id],
h3[id],
section[id],
div[id] {
  scroll-margin-top: 104px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 100;
  background: var(--teal-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--btn-radius);
  font-weight: 650;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: var(--measure);
  margin-inline: auto;
}

.section {
  padding: clamp(56px, 8vw, 110px) 0;
}

.section--tight {
  padding: clamp(36px, 5vw, 60px) 0;
}

.section--muted {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section--soft {
  background: var(--surface-soft);
}

.section--teal {
  background: var(--ink-950);
  color: #dbe7ee;
}

/* ============================================================
   Typography
   ============================================================ */

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  color: var(--ink-900);
}

.page-header {
  padding-top: clamp(52px, 8vw, 96px);
  padding-bottom: clamp(30px, 4vw, 48px);
  background:
    radial-gradient(1080px 360px at 15% -40px, rgba(15, 118, 110, 0.12), transparent 62%),
    radial-gradient(900px 320px at 92% -60px, rgba(214, 242, 103, 0.16), transparent 60%),
    linear-gradient(180deg, #f0efe8, rgba(240, 239, 232, 0.25));
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink-900);
}

.lead {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--ink-600);
  max-width: 64ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--lime-400);
}

.prose-h2,
.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.018em;
  color: var(--ink-900);
  margin: 0 0 20px;
}

.lead + .prose-h2,
.lead + .section-title {
  margin-top: 8px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 660;
  border-radius: var(--btn-radius);
  padding: 15px 30px;
  letter-spacing: 0.005em;
  transition: background-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--teal {
  background: var(--teal-700);
  color: #fff;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.16);
}

.btn--teal:hover {
  background: var(--teal-800);
  color: #fff;
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.24);
  transform: translateY(-1px);
}

.btn--lime {
  background: var(--lime-400);
  color: var(--ink-900);
}

.btn--lime:hover {
  background: var(--lime-300);
  color: var(--ink-900);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.96);
  color: var(--teal-800);
}

.btn--ghost:hover {
  background: #fff;
  color: var(--teal-700);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--teal-700);
  border: 2px solid var(--teal-100);
}

.btn--outline:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
  color: var(--teal-700);
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 12px 34px rgba(11, 27, 38, 0.09);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink-900);
}

.brand .brand-mark {
  width: 38px;
  height: auto;
  display: block;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-600);
  font-weight: 560;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.main-nav a:hover {
  color: var(--teal-800);
  background: var(--teal-50);
}

.main-nav a[aria-current="page"] {
  color: var(--ink-900);
  font-weight: 660;
  background: var(--teal-50);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--btn-radius);
  background: var(--teal-50);
  color: var(--teal-800);
  font-weight: 650;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.site-footer .social-link:hover {
  background: var(--teal-700);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.site-footer .social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  margin-top: -5px;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  background: var(--teal-700);
  color: #fff;
  border-radius: var(--btn-radius);
  padding: 0 20px;
  height: 42px;
  line-height: 1;
  font-weight: 660;
  font-size: 0.93rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.18);
  transition: background-color 0.16s ease, transform 0.16s ease,
    box-shadow 0.16s ease;
}

.btn-contact:hover {
  background: var(--teal-800);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.26);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--ink-900);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(251, 250, 245, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: var(--ink-900);
  padding: 100px 28px 40px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: 1px solid var(--border-strong);
  background: #fff;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  display: block;
  color: var(--ink-800);
  text-decoration: none;
  font-size: 1.32rem;
  font-weight: 680;
  padding: 16px 2px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover {
  color: var(--teal-800);
}

.mobile-menu .mobile-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

  .menu-toggle {
    display: grid;
  }

  .header-actions .btn-contact {
    display: none;
  }
}

/* ============================================================
   Front hero (home)
   ============================================================ */

.front-hero {
  position: relative;
  min-height: min(88vh, 860px);
  color: #fff;
  background: var(--ink-950);
  overflow: hidden;
  isolation: isolate;
}

.front-hero .bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.front-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(7, 20, 32, 0.62) 0%,
    rgba(7, 20, 32, 0.3) 42%,
    rgba(7, 20, 32, 0.94) 100%
  );
}

.front-hero img {
  filter: brightness(0.9);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: max(24px, calc((100% - 1160px) / 2));
  right: max(24px, calc((100% - 1160px) / 2));
  z-index: 2;
  padding: clamp(64px, 9vh, 110px) 0 clamp(96px, 10vh, 130px);
}

.front-hero h1 {
  margin: 26px 0 0;
  max-width: 21ch;
  font-size: clamp(2.5rem, 5.8vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  font-weight: 780;
  text-wrap: balance;
  color: #fff;
}

.front-hero h1 .hl {
  color: var(--lime-400);
}

@media (max-width: 760px) {
  .front-hero {
    min-height: min(96vh, 920px);
  }

  .hero-content {
    padding: 60px 0 84px;
  }

  .front-hero h1 {
    margin-top: 18px;
  }

  .hero-ctas {
    margin-top: 26px;
  }

  .hero-ctas .btn {
    flex: 1 1 auto;
    width: 100%;
  }

  .hero-chips {
    margin-top: 26px;
  }
}

.hero-sub {
  margin: 24px 0 0;
  max-width: 52ch;
  font-size: clamp(1.06rem, 1.7vw, 1.2rem);
  line-height: 1.75;
  color: rgba(235, 244, 247, 0.88);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e8f1f4;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.9rem;
  font-weight: 560;
}

.hero-chip svg {
  width: 14px;
  height: 14px;
  stroke: var(--lime-400);
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.scroll-cue {
  position: absolute;
  right: clamp(24px, 4vw, 56px);
  bottom: 34px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  animation: cue-bob 2.4s ease-in-out infinite;
}

.scroll-cue svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes cue-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(7px);
  }
}

/* ============================================================
   Quick contact bar (home)
   ============================================================ */

.quickbar {
  position: relative;
  z-index: 5;
  margin-top: -54px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 28px;
  text-decoration: none;
  color: var(--ink-800);
  transition: background-color 0.16s ease;
}

.quick-item + .quick-item {
  border-left: 1px solid var(--border);
}

.quick-item:hover {
  background: var(--teal-50);
  color: var(--ink-800);
}

.quick-icon {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid;
  place-items: center;
}

.quick-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-item .quick-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.quick-item .quick-value {
  font-weight: 680;
  font-size: 1.05rem;
  color: var(--ink-900);
  margin-top: 2px;
  line-height: 1.4;
}

.quick-item:hover .quick-value {
  color: var(--teal-800);
}

.quick-item .quick-mark {
  width: 30px;
  height: auto;
  margin-left: auto;
  flex: none;
}

@media (max-width: 900px) {
  .quickbar {
    grid-template-columns: 1fr;
  }

  .quick-item + .quick-item {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

/* ============================================================
   Service cards (home)
   ============================================================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-100);
  color: var(--ink-800);
}

.service-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.045);
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 20, 32, 0.42));
}

.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.service-body h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  letter-spacing: -0.012em;
}

.service-body p {
  margin: 0 0 18px;
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.65;
}

.service-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 680;
  font-size: 0.98rem;
  color: var(--teal-700);
}

.service-link svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* ============================================================
   Stats (home)
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--teal-700);
}

.stat-label {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--ink-600);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Value cards (home)
   ============================================================ */

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal-100);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--lime-100);
  color: var(--teal-800);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.value-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.008em;
}

.value-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   Headings
   ============================================================ */

.lead {
  font-size: 1.16rem;
  color: var(--ink-600);
  max-width: 64ch;
}

/* ============================================================
   Content prose
   ============================================================ */

.prose {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink-700);
  max-width: 72ch;
}

.prose p {
  margin-bottom: 1.2em;
}

.prose h2 {
  margin: 0 0 0.5em;
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--ink-900);
  letter-spacing: -0.016em;
}

.prose h3 {
  margin: 1.5em 0 0.45em;
  font-size: 1.24rem;
  color: var(--teal-800);
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  margin-bottom: 1.25em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose a {
  font-weight: 570;
}

.prose strong {
  color: var(--ink-900);
  font-weight: 700;
}

/* ============================================================
   Jump list (selko)
   ============================================================ */

.jump-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.jump-list li + li {
  border-top: 1px solid var(--border);
}

.jump-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 22px;
  text-decoration: none;
  color: var(--ink-800);
  font-weight: 620;
  font-size: 1.04rem;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.jump-list a::after {
  content: "→";
  color: var(--teal-600);
  transition: transform 0.18s ease;
}

.jump-list a:hover {
  color: var(--teal-800);
  background: var(--teal-50);
}

.jump-list a:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   Split (text + image)
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.split--reverse .split-media {
  order: -1;
}

.split .prose {
  max-width: none;
}

.split-media {
  min-width: 0;
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.photo-stack {
  display: grid;
  gap: 22px;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-media {
    order: 0;
  }
}

/* ============================================================
   Figures
   ============================================================ */

figure.photo {
  margin: 0;
}

figure.photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

figure.photo::after {
  content: "";
  display: block;
  height: 4px;
  width: 48px;
  border-radius: 2px;
  background: var(--lime-400);
  margin-top: 16px;
}

figure.photo figcaption {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

figure.photo--inline img {
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(11, 27, 38, 0.1);
}

figure.photo--inline::after {
  display: none;
}

/* ============================================================
   Callout
   ============================================================ */

.callout {
  position: relative;
  background: var(--lime-100);
  border: 1px solid var(--lime-400);
  border-left: 6px solid var(--lime-500);
  border-radius: var(--radius-sm);
  padding: 26px 30px 26px 62px;
  color: var(--ink-700);
}

.callout::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 6px rgba(158, 195, 26, 0.18);
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 12px;
}

/* ============================================================
   ToC
   ============================================================ */

.toc {
  background: var(--ink-950);
  border-radius: var(--radius);
  padding: 32px 36px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.toc::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 242, 103, 0.14), transparent 68%);
  pointer-events: none;
}

.toc h2 {
  margin: 0 0 18px;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime-400);
}

.toc ol {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 12px;
}

.toc a {
  color: #dce8ef;
  text-decoration: none;
  font-weight: 560;
}

.toc a:hover {
  color: var(--lime-400);
  text-decoration: underline;
}

.toc ol ol {
  margin-top: 10px;
  gap: 6px;
}

/* ============================================================
   Downloads
   ============================================================ */

.download-list {
  display: grid;
  gap: 6px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-800);
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.download-item:hover {
  background: var(--teal-50);
  border-color: var(--teal-100);
  color: var(--ink-800);
}

.download-item .file-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--teal-50);
  display: grid;
  place-items: center;
  color: var(--teal-700);
}

.download-item .file-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.download-item .file-name {
  font-weight: 620;
  font-size: 0.98rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  min-width: 0;
}

.download-item .file-meta {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 2px;
}

.download-item .lataa {
  margin-left: auto;
  flex: none;
  font-weight: 640;
  font-size: 0.9rem;
  color: var(--teal-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.14s ease;
}

.download-item:hover .lataa {
  color: var(--teal-800);
}

@media (max-width: 560px) {
  .download-item {
    align-items: flex-start;
  }

  .download-item .lataa {
    display: none;
  }
}

/* ============================================================
   Contact cards
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-100);
}

.contact-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: var(--ink-900);
}

.contact-card .contact-role {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.contact-card .contact-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 660;
  color: var(--ink-800);
  text-decoration: none;
  margin-bottom: 8px;
}

.contact-card .contact-phone svg {
  width: 17px;
  height: 17px;
  fill: var(--teal-600);
  flex: none;
}

.contact-card .contact-mail {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--teal-700);
  font-weight: 570;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card .contact-mail svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: none;
}

.contact-card .contact-detail {
  color: var(--ink-600);
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

/* ============================================================
   Link list
   ============================================================ */

.link-list {
  display: grid;
  gap: 16px;
}

.link-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  text-decoration: none;
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.link-item:hover {
  border-color: var(--teal-100);
  box-shadow: var(--shadow-lg);
  color: var(--ink-800);
  transform: translateY(-2px);
}

.link-item .link-title {
  font-weight: 700;
  color: var(--teal-800);
}

.link-item .link-desc {
  margin-top: 5px;
  font-size: 0.96rem;
  color: var(--muted);
}

/* ============================================================
   Map
   ============================================================ */

.map-wrap {
  border: 0;
  border-radius: var(--radius);
  width: 100%;
  height: 440px;
  box-shadow: var(--shadow);
  display: block;
}

/* ============================================================
   Entity cards
   ============================================================ */

.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.entity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entity-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.entity-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--ink-900);
}

.entity-card .entity-code {
  display: inline-block;
  background: var(--teal-50);
  color: var(--teal-800);
  font-size: 0.85rem;
  font-weight: 660;
  border-radius: 999px;
  padding: 4px 13px;
  margin-bottom: 14px;
}

.entity-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.98rem;
}

/* ============================================================
   Selko tile
   ============================================================ */

.selko-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.selko-tile p {
  margin: 0 0 0.8em;
}

.selko-tile p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   CTA band (home)
   ============================================================ */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink-950);
  border-radius: var(--radius-lg);
  color: #e6f0f4;
  padding: clamp(44px, 6vw, 72px) clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.cta-band p {
  margin: 0;
  max-width: 58ch;
  color: rgba(230, 240, 244, 0.82);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.cta-band .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

@media (max-width: 900px) {
  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background:
    radial-gradient(800px 320px at 100% 0%, rgba(20, 184, 166, 0.07), transparent 60%),
    var(--ink-950);
  color: #b9c9d4;
  padding: clamp(56px, 7vw, 84px) 0 26px;
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 36px;
  height: auto;
}

.footer-brand span {
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

.site-footer h3 {
  margin: 0 0 18px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime-400);
}

.site-footer address {
  font-style: normal;
  line-height: 1.9;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.site-footer a {
  color: #b9c9d4;
  text-decoration: none;
  transition: color 0.14s ease;
}

.site-footer a:hover {
  color: var(--lime-400);
  text-decoration: underline;
}

.footer-files li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-files svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
  color: var(--teal-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 48px;
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #7e93a4;
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   Scroll to top
   ============================================================ */

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--teal-700);
  color: #fff;
  border: none;
  border-radius: var(--btn-radius);
  padding: 13px 19px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 660;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(11, 27, 38, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s,
    background-color 0.16s ease;
}

.scroll-top:hover {
  background: var(--teal-800);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.scroll-top svg {
  width: 15px;
  height: 19px;
  fill: currentColor;
}

/* ============================================================
   Scroll reveal (home)
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Motion
   ============================================================ */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}