/* ============================================
   HN Studio — base styles
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-subtle: #eef1fb;
  --bg-elevated: #ffffff;
  --bg-card: #e7ecf8;
  --border: rgba(8, 11, 36, 0.13);
  --border-strong: rgba(8, 11, 36, 0.3);
  --text: #090b1e;
  --text-muted: #41435a;
  --text-faint: #71738c;
  --accent-navy: #080b26;
  --accent-blue: #0050ff;
  --accent-blue-deep: #0038b8;
  --accent-violet: #6525ff;
  --accent-red: #ff2d55;
  --accent-teal: #00b88d;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(6, 8, 24, 0.06), 0 1px 1px rgba(6, 8, 24, 0.05);
  --shadow-md: 0 24px 48px -22px rgba(6, 8, 24, 0.38), 0 4px 14px rgba(6, 8, 24, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Syne", "IBM Plex Mono", sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  flex: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-family: "IBM Plex Mono", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn:disabled:active {
  transform: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-navy);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(0, 80, 255, 0.06);
}

.btn-arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo span {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet));
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: rotate(225deg) translateY(1px);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 18px;
  min-width: 270px;
  list-style: none;
  padding: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 18px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li + li {
  margin-top: 2px;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-card);
  color: var(--text);
}

.nav-dropdown-menu a svg {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--text-muted);
  transform: translateX(0);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-dropdown-menu a:hover svg {
  transform: translateX(4px);
  color: var(--accent-blue);
}

.mobile-nav-actions {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.lang-switch {
  position: relative;
}

.lang-switch-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lang-switch-trigger:hover,
.lang-switch:focus-within .lang-switch-trigger {
  color: var(--text);
  border-color: var(--text-muted);
}

.lang-switch-icon {
  width: 18px;
  height: 18px;
}

.lang-switch-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 14px;
  min-width: 110px;
  list-style: none;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.lang-switch-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 14px;
}

.lang-switch:hover .lang-switch-menu,
.lang-switch:focus-within .lang-switch-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switch-menu li + li {
  margin-top: 2px;
}

.lang-switch-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.lang-switch-menu a:hover,
.lang-switch-menu a.is-active {
  background: var(--bg-card);
  color: var(--text);
}

/* ============== Hero ============== */

.hero {
  position: relative;
  padding: 212px 0 95px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: image-set(url("../assets/hero-bg.webp") type("image/webp"), url("../assets/hero-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}

.hero-bg--meista::before {
  inset: -20%;
  background-image: image-set(url("../assets/meista-bg.webp") type("image/webp"), url("../assets/meista-bg.jpg") type("image/jpeg"));
  filter: blur(70px) saturate(1.4) brightness(1.1);
  animation: driftBlur 46s ease-in-out infinite;
}

.hero-bg--palvelut::before {
  inset: -20%;
  background-image: image-set(url("../assets/palvelut-bg.webp") type("image/webp"), url("../assets/palvelut-bg.jpg") type("image/jpeg"));
  filter: blur(70px) saturate(1.4) brightness(1.1);
  animation: driftBlur 46s ease-in-out infinite;
}

.hero-bg--contact::before {
  inset: -20%;
  background-image: image-set(url("../assets/contact-bg.webp") type("image/webp"), url("../assets/contact-bg.jpg") type("image/jpeg"));
  filter: blur(70px) saturate(1.4) brightness(1.1);
  animation: driftBlur 46s ease-in-out infinite;
}

@keyframes driftBlur {
  0%   { transform: scale(1.22) translate3d(0%, 0%, 0) rotate(0deg); filter: blur(70px) saturate(1.4) brightness(1.1) hue-rotate(0deg); }
  25%  { transform: scale(1.28) translate3d(-2%, -1%, 0) rotate(0.6deg); filter: blur(70px) saturate(1.55) brightness(1.14) hue-rotate(10deg); }
  50%  { transform: scale(1.32) translate3d(-1%, -2.2%, 0) rotate(-0.4deg); filter: blur(70px) saturate(1.3) brightness(1.08) hue-rotate(-8deg); }
  75%  { transform: scale(1.26) translate3d(1.5%, -0.8%, 0) rotate(0.4deg); filter: blur(70px) saturate(1.5) brightness(1.16) hue-rotate(8deg); }
  100% { transform: scale(1.22) translate3d(0%, 0%, 0) rotate(0deg); filter: blur(70px) saturate(1.4) brightness(1.1) hue-rotate(0deg); }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(4, 6, 16, 0.72) 0%, rgba(4, 6, 16, 0.32) 42%, rgba(4, 6, 16, 0.58) 100%),
    linear-gradient(180deg, transparent 0%, transparent 70%, var(--bg) 100%);
}

.hero-bg .grain {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 920px;
}

.hero .hero-inner {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  text-transform: uppercase;
  margin-bottom: 28px;
  color: #fff;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero .hero-lede {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero .hero-cta,
.hero-cta--center {
  justify-content: center;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.hero .eyebrow::before {
  background: #fff;
}

.hero .btn-primary {
  box-shadow: 0 14px 30px -10px rgba(5, 7, 20, 0.45);
}

.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-glitch {
  margin-top: 115px;
  text-align: center;
  padding: 0 20px;
}

.hero-glitch-text {
  position: relative;
  display: inline-block;
  font-family: "Space Grotesk", "Syne", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 6rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding-top: 0.08em;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  color: transparent;
  transition: opacity 0.3s ease;
}

.hero-glitch-text::before,
.hero-glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0.08em;
  left: 0;
  width: 100%;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.95);
  color: transparent;
  opacity: 0;
}

.hero-glitch-text.is-fading {
  opacity: 0;
}

.hero-glitch-text.is-glitching {
  animation: glitch-jitter 0.55s steps(4, end) both;
}

.hero-glitch-text.is-glitching::before,
.hero-glitch-text.is-glitching::after {
  -webkit-text-stroke-width: 2.5px;
}

.hero-glitch-text.is-glitching::before {
  animation: glitch-slice-a 0.55s steps(4, end) both;
}

.hero-glitch-text.is-glitching::after {
  animation: glitch-slice-b 0.55s steps(4, end) both;
}

@keyframes glitch-jitter {
  0% { transform: translate(0, 0); opacity: 1; }
  10% { transform: translate(-7px, 2px); opacity: 0.6; }
  20% { transform: translate(7px, -2px); opacity: 1; }
  35% { transform: translate(-6px, 1px); opacity: 0.5; }
  50% { transform: translate(6px, -1px); opacity: 1; }
  65% { transform: translate(-4px, 2px); opacity: 0.7; }
  80% { transform: translate(4px, -1px); opacity: 1; }
  100% { transform: translate(0, 0); opacity: 1; }
}

@keyframes glitch-slice-a {
  0% { opacity: 0; transform: translate(0, 0) skewX(0deg); clip-path: inset(0 0 85% 0); }
  20% { opacity: 1; transform: translate(-18px, 0) skewX(-8deg); clip-path: inset(8% 0 58% 0); }
  40% { transform: translate(16px, 0) skewX(6deg); clip-path: inset(38% 0 18% 0); }
  60% { transform: translate(-14px, 0) skewX(-5deg); clip-path: inset(58% 0 4% 0); }
  80% { transform: translate(11px, 0) skewX(5deg); clip-path: inset(18% 0 48% 0); }
  100% { opacity: 0; transform: translate(0, 0) skewX(0deg); clip-path: inset(0 0 0 0); }
}

@keyframes glitch-slice-b {
  0% { opacity: 0; transform: translate(0, 0) skewX(0deg); clip-path: inset(80% 0 0 0); }
  20% { opacity: 1; transform: translate(17px, 0) skewX(7deg); clip-path: inset(52% 0 12% 0); }
  40% { transform: translate(-15px, 0) skewX(-6deg); clip-path: inset(12% 0 52% 0); }
  60% { transform: translate(14px, 0) skewX(5deg); clip-path: inset(0 0 68% 0); }
  80% { transform: translate(-11px, 0) skewX(-5deg); clip-path: inset(42% 0 22% 0); }
  100% { opacity: 0; transform: translate(0, 0) skewX(0deg); clip-path: inset(0 0 0 0); }
}

/* ============== Sections ============== */

section {
  position: relative;
  padding: 110px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head--wide {
  max-width: none;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.section-head p {
  font-size: 1.05rem;
}

/* ============== Service cards ============== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card {
  background: var(--bg-elevated);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.35s var(--ease);
  min-height: 300px;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-deep));
  color: #fff;
  flex: none;
  transition: background 0.35s var(--ease);
  pointer-events: none;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  /* Reserves space for two lines so the paragraph below always starts at
     the same height, whether a given title wraps to one line or two
     (e.g. "Analytics & Reporting" is shorter than its neighbours). */
  min-height: 2.6em;
}

.service-card p {
  font-size: 0.93rem;
  flex: 1;
  margin-bottom: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 6px;
  color: var(--text);
  pointer-events: none;
}

.service-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

/* Hover-only visual effects, scoped to real hover-capable pointers.
   On touch devices, WebKit treats a hoverable ancestor's first tap as
   "enter hover" rather than a click, so links inside it can silently
   eat the tap (or, inconsistently, pass it to whatever the browser
   considers still-hovered) — this keeps touch taps acting immediately. */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    background: var(--bg-card);
  }

  .service-card:hover .service-icon {
    background: var(--accent-navy);
  }

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

/* ============== Stats / about ============== */

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

.stat {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.stat-value {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 44px;
  margin-bottom: 16px;
}

.stat-icon {
  width: 56px;
  height: 36px;
  display: block;
}

.stat .num {
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.stat .label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.content-block {
  max-width: 760px;
}

.content-block--wide {
  max-width: none;
}

.content-block h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.content-block h3 {
  font-size: 1.4rem;
  margin-top: 48px;
}

.content-block p {
  font-size: 1.02rem;
}

.funnel-points {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 28px;
  box-shadow: var(--shadow-sm);
}

.funnel-point {
  background: var(--bg-elevated);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.funnel-point .tag {
  flex: none;
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.tag.tag-fast {
  background: var(--accent-violet);
  color: #fff;
}

.tag.tag-long {
  background: var(--accent-navy);
  color: #fff;
}

.funnel-point p {
  margin: 0;
  font-size: 0.98rem;
}

.funnel-point strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

/* ============== Service detail page ============== */

.service-hero {
  padding: 180px 0 80px;
}

.service-hero--match {
  display: flex;
  align-items: center;
  min-height: 436px;
  padding-top: 120px;
  padding-bottom: 44px;
}

.service-hero--match .container {
  width: 100%;
}

.service-hero .eyebrow {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.82);
}

.service-hero .eyebrow::before {
  background: #fff;
}

.service-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  text-transform: uppercase;
  max-width: 820px;
  color: #fff;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.service-hero .hero-lede {
  max-width: 780px;
}

.service-hero--center .container {
  text-align: center;
}

.service-hero--center h1,
.service-hero--center .hero-lede {
  margin-left: auto;
  margin-right: auto;
}

.service-detail {
  padding-top: 64px;
}

.related-services {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.related-services h4 {
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.related-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.related-service {
  background: var(--bg-elevated);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Syne", "IBM Plex Mono", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  transition: background 0.3s var(--ease);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .related-service:hover {
    background: var(--bg-card);
  }
}

.related-service .service-icon {
  width: 42px;
  height: 42px;
}

.related-service .service-icon svg {
  width: 20px;
  height: 20px;
}

.service-body p {
  font-size: 1.08rem;
  color: var(--text-muted);
}

.service-body .lede {
  font-size: 1.25rem;
  color: var(--text);
  font-family: "IBM Plex Mono", sans-serif;
  font-weight: 500;
  line-height: 1.5;
}

.feature-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-list li {
  background: var(--bg-elevated);
  padding: 24px 28px;
}

.feature-list h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature-list p {
  margin: 0;
  font-size: 0.95rem;
}

.service-body h3 {
  font-size: 1.4rem;
  margin-top: 48px;
}

.service-body h3:first-child {
  margin-top: 0;
}

.service-body h4 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.service-body ul,
.service-body ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.service-body ul li,
.service-body ol li {
  margin-bottom: 0.5em;
}

.service-body strong {
  color: var(--text);
}

.service-table-wrap {
  position: relative;
  overflow-x: auto;
  margin: 24px 0;
}

.service-table-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 36px;
  background: linear-gradient(to right, transparent, var(--bg) 80%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s var(--ease);
}

.service-table-wrap.is-scroll-end::after {
  opacity: 0;
}

.service-body table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.service-body th,
.service-body td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  color: var(--text-muted);
}

.service-body th {
  font-family: "Syne", "IBM Plex Mono", sans-serif;
  color: var(--text);
  background: var(--bg-elevated);
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.inline-cta p {
  margin: 0;
  font-size: 1.1rem;
  font-family: "Syne", "IBM Plex Mono", sans-serif;
  font-weight: 700;
  color: var(--text);
}

.inline-cta .btn {
  flex: none;
}

/* ============== FAQ ============== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item {
  background: var(--bg-elevated);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 28px;
  position: relative;
  font-family: "Syne", "IBM Plex Mono", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-blue);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  color: var(--accent-blue);
}

.faq-item p {
  margin: 0;
  padding: 0 56px 24px 28px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* ============== CTA band ============== */

.section-tight-bottom {
  padding-bottom: 60px;
}

.section-cta-band {
  padding-top: 60px;
}

.cta-band {
  border-radius: var(--radius);
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
  background: var(--accent-navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: image-set(url("../assets/hero-bg.webp") type("image/webp"), url("../assets/hero-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(4, 6, 16, 0.78) 0%, rgba(4, 6, 16, 0.42) 48%, rgba(4, 6, 16, 0.7) 100%);
  z-index: -1;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  max-width: 480px;
  margin-bottom: 0;
  color: #fff;
}

.cta-band .btn-primary {
  background: var(--accent-violet);
  color: #fff;
}

.cta-band .btn-primary:hover {
  background: #fff;
  color: var(--accent-navy);
}

/* ============== Contact form ============== */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.contact-info h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

.contact-info p {
  font-size: 1.05rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}

.contact-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-detail .icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.contact-detail a {
  font-family: "IBM Plex Mono", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-detail a:hover {
  color: var(--accent-blue);
}

.form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field label .req {
  color: var(--accent-red);
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.96rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #ffffff;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 6px;
}

.char-count.is-near-limit {
  color: var(--accent-red);
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 16px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  color: var(--accent-teal);
}

.form-status.error {
  color: var(--accent-red);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.footer-brand .logo {
  font-size: 1.3rem;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 14px;
  font-size: 0.92rem;
}

.footer-cols {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal a,
.footer-legal button {
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.82rem;
  color: var(--text-faint);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--text);
}

/* ============== Cookie consent banner ============== */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cookie-banner-text a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: none;
}

.cookie-banner-actions .btn {
  padding: 12px 20px;
  font-size: 0.88rem;
}

/* ============== Placeholder callouts (policy page) ============== */

.placeholder-note {
  background: rgba(255, 45, 85, 0.07);
  border: 1px solid rgba(255, 45, 85, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text);
  margin: 0 0 28px;
}

.placeholder-note strong {
  color: var(--accent-red);
}

/* ============== Reveal animation ============== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== Kanavatesti (marketing channel tool) ============== */

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

.kt-tool {
  max-width: 680px;
  margin: 0 auto;
}

.kt-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px;
}

.kt-fade {
  animation: kt-fade-in 0.3s var(--ease);
}

@keyframes kt-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .kt-fade {
    animation: none;
  }
}

/* Intro */

.kt-intro {
  text-align: center;
}

.kt-start {
  width: 100%;
  max-width: 280px;
}

.kt-fineprint {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Progress */

.kt-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.kt-progress-track {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
}

.kt-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet));
  transition: width 0.3s var(--ease);
}

.kt-progress-label {
  flex: none;
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Question */

.kt-q-title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin-bottom: 10px;
}

.kt-q-title:focus {
  outline: none;
}

.kt-q-helper {
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.kt-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.kt-options--narrow {
  grid-template-columns: repeat(4, 1fr);
}

.kt-option {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

.kt-option.is-selected {
  border-color: var(--accent-blue);
  background: var(--accent-blue);
  color: #fff;
  transform: scale(0.98);
}

.kt-option-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.kt-option.is-selected .kt-option-check {
  border-color: #fff;
  background: #fff;
}

.kt-option.is-selected .kt-option-check svg {
  display: block;
  width: 12px;
  height: 12px;
  stroke: var(--accent-blue);
}

.kt-option-check svg {
  display: none;
}

.kt-why {
  margin-bottom: 24px;
}

.kt-why summary {
  cursor: pointer;
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  list-style: none;
}

.kt-why summary::-webkit-details-marker {
  display: none;
}

.kt-why p {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.kt-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.kt-nav .btn {
  padding: 12px 22px;
}

/* Result */

.kt-profile {
  text-align: center;
  margin-bottom: 32px;
}

.kt-profile h3 {
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  margin: 4px 0 10px;
}

.kt-profile p {
  margin: 0 auto;
  max-width: 480px;
}

.kt-note {
  background: rgba(0, 80, 255, 0.06);
  border: 1px solid rgba(0, 80, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 28px;
}

.kt-top3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.kt-channel-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  background: var(--bg-elevated);
}

.kt-channel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.kt-channel-rank {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-navy);
  color: #fff;
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kt-channel-badge {
  flex: none;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  color: #fff;
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kt-channel-head h4 {
  margin: 0;
  font-size: 1.1rem;
  flex: 1;
}

.kt-fitbar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--border);
  overflow: hidden;
  margin-bottom: 6px;
}

.kt-fitbar-fill {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-blue));
  transition: width 1.1s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .kt-fitbar-fill {
    transition: none;
  }
}

.kt-fitbar-label {
  display: block;
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.kt-channel-desc {
  font-size: 0.92rem;
}

.kt-channel-extra {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-faint);
}

.kt-channel-reasons {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kt-channel-reasons li {
  font-size: 0.88rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.kt-channel-reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.kt-channel-consideration {
  font-size: 0.86rem;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.kt-channel-consideration strong {
  color: var(--text);
}

.kt-callout {
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.kt-callout--start {
  background: rgba(0, 184, 141, 0.08);
  border: 1px solid rgba(0, 184, 141, 0.25);
}

.kt-callout-label {
  display: block;
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kt-callout--start .kt-callout-label {
  color: var(--accent-teal);
}

.kt-callout h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.kt-callout p {
  margin: 0;
  font-size: 0.92rem;
}

.kt-collapse {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

.kt-collapse summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-family: "IBM Plex Mono", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.kt-collapse summary::-webkit-details-marker {
  display: none;
}

.kt-all-list {
  list-style: none;
  margin: 0;
  padding: 4px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kt-all-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.kt-all-list li:first-child {
  padding-top: 0;
  border-top: none;
}

.kt-all-list .kt-all-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kt-all-pct {
  font-family: "IBM Plex Mono", sans-serif;
  font-weight: 700;
  color: var(--text-muted);
}

.kt-share {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.kt-share-confirm {
  font-size: 0.85rem;
  color: var(--accent-teal);
  font-weight: 600;
}

.kt-cta-inline {
  text-align: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  margin-bottom: 24px;
}

.kt-cta-inline h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.kt-cta-inline p {
  font-size: 0.92rem;
  margin: 0 auto 18px;
  max-width: 420px;
}

.kt-result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.kt-disclaimer {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-align: center;
  margin: 0;
}

/* Hover only on devices that actually have a mouse — on touch devices a tap
   leaves a synthetic :hover state applied to whatever element ends up at
   those coordinates after the view re-renders, making a fresh answer option
   look pre-selected. See the same pattern on .service-card above. */
@media (hover: hover) and (pointer: fine) {
  .kt-option:hover {
    border-color: var(--accent-blue);
  }
}

/* ============== Responsive ============== */

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .related-services-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .kt-options {
    grid-template-columns: 1fr;
  }

  .kt-options--narrow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .section-head h2 {
    font-size: clamp(1.2rem, 6vw, 2rem);
  }

  .related-services {
    padding: 20px;
  }

  .related-service {
    padding: 18px;
    gap: 12px;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    margin-top: 10px;
    margin-left: 14px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  /* The dropdown should only be visible/interactive while the hamburger
     menu itself is open — otherwise it stays governed by the base
     opacity:0; visibility:hidden rule, same as on desktop. Without this
     scoping, the submenu links sit invisible-but-clickable, fixed in
     place, on top of whatever page content is scrolled underneath. */
  .main-nav.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
  }

  .nav-dropdown-menu::before {
    content: none;
  }

  .nav-dropdown-menu a {
    padding: 8px 0;
    white-space: normal;
  }

  .nav-dropdown-menu a:hover {
    background: none;
  }

  .main-nav .btn-primary {
    width: 100%;
  }

  /* The in-nav language switch only exists for desktop here — on mobile
     it moves to .mobile-nav-actions as its own standalone dropdown next
     to the hamburger button, so the version inside the panel is hidden. */
  .main-nav > .lang-switch {
    display: none;
  }

  .mobile-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Tapping doesn't reliably trigger :hover/:focus-within on mobile
     browsers (notably iOS Safari), so this dropdown is opened/closed via
     JS toggling .is-open instead (see js/main.js). The base :hover/
     :focus-within rule above still matches this instance too (it shares
     the .lang-switch class) and would otherwise keep the menu visible
     for as long as the trigger holds focus after a tap — overridden off
     here so .is-open is the only thing that shows it. */
  .lang-switch--mobile:hover .lang-switch-menu,
  .lang-switch--mobile:focus-within .lang-switch-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
  }

  .lang-switch--mobile.is-open .lang-switch-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 185px 0 80px;
  }

  .hero h1 {
    font-size: clamp(1.3rem, 6.5vw, 2.7rem);
    margin-bottom: 36px;
  }

  .service-hero h1 {
    font-size: clamp(1.1rem, 5.5vw, 2.2rem);
    margin-bottom: 22px;
  }

  .service-hero--match {
    min-height: 0;
    padding-top: 136px;
    padding-bottom: 32px;
  }

  .content-block h1 {
    font-size: clamp(1.2rem, 6.2vw, 1.9rem);
  }

  .hero-glitch {
    margin-top: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.7rem, 7.6vw, 2.6rem);
    min-height: 2.9em;
  }

  .hero-glitch-text {
    font-size: clamp(1.7rem, 7.6vw, 2.6rem);
    line-height: 1.3;
  }

  section {
    padding: 72px 0;
  }

  .section-tight-bottom {
    padding-bottom: 36px;
  }

  .section-cta-band {
    padding-top: 36px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 44px 28px;
  }

  .inline-cta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 36px;
  }

  .footer-cols {
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 20px;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }

  .kt-card {
    padding: 26px 20px;
  }

  .kt-nav {
    flex-direction: row-reverse;
  }

  .kt-nav .btn {
    flex: 1;
  }

  .kt-result-actions {
    flex-direction: column;
  }

  .kt-result-actions .btn {
    width: 100%;
  }

  .kt-share {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
