/* ─── HOMEPAGE — bold typographic landing ───────────────────────
 * Loaded after styles.css. Adds the rich startsida-specific layout
 * (large hero, accent-tinted sections, color-shifted cards).         */

/* Startsidan använder INTE den fördjupade "Himmelstvätt"-tonen.
 * Återställ till den jämna, ljusa blå bakgrunden + ljust Tjänster-fält. */
body {
  background:
    radial-gradient(95% 55% at 82% 0%, color-mix(in srgb, var(--bla) 13%, transparent) 0%, transparent 60%),
    #eef3fb !important;
  background-color: #eef3fb !important;
  background-attachment: fixed !important;
  background-size: 160% 160%, 100% 100% !important;
  animation: none !important;
}
.services {
  background: var(--paper) !important;
}

/* HERO --------------------------------------------------------- */
.hero-big {
  background: transparent;
  padding: clamp(12px, 2vw, 28px) 0 clamp(24px, 3vw, 48px);
  position: relative;
  overflow: hidden;
}
.hero-big .wrap {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: clamp(20px, 2.8vw, 36px);
  position: relative; z-index: 1;
}
/* On wide / fullscreen viewports, let the hero content sit further left
   instead of floating in from the centered 1200px column. */
@media (min-width: 1280px) {
  .hero-big .wrap { max-width: min(1680px, 94vw); }
}

/* Subtle dot grid in the background for depth */
.hero-big-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--rule-2) 1px, transparent 1.2px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 90% 70% at 80% 50%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 80% 50%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.kurs-hero-cta .btn,
.hero-big-cta .btn {
  transition: transform .25s cubic-bezier(.2,.8,.3,1), background .2s ease, border-color .2s ease, color .2s ease;
}
.kurs-hero-cta .btn:hover,
.hero-big-cta .btn:hover {
  transform: scale(1.12);
}
.hero-big-logo {
  height: clamp(56px, 7vw, 92px);
  width: auto;
  margin-bottom: clamp(20px, 3vw, 36px);
}

/* White, opaque nav on the homepage */
.home .nav {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Kicker — short anchor label above the title */
.hero-big-kicker {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(4px, 1vw, 10px);
}
.hero-big-kicker .line {
  width: clamp(28px, 4vw, 56px); height: 2px;
  background: var(--bla);
  border-radius: 2px;
}
.hero-big-kicker .label {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bla);
}

.hero-big-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(46px, 8.2vw, 128px);
  line-height: 0.94; letter-spacing: -0.04em;
  margin: 0; color: var(--ink);
  text-wrap: balance;
  max-width: 16ch;
}
.hero-big-title em {
  font-style: italic; font-weight: 600;
  color: var(--morkbla);
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-size: 1.12em;
}
.hero-big-title em::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -0.06em;
  height: 0.16em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 50 1 100 6 T 198 6' fill='none' stroke='%2376b0ff' stroke-width='5' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
  pointer-events: none;
}
.hero-big-lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5; font-weight: 400;
  color: var(--ink-2); max-width: 52ch;
  margin: clamp(4px, 1vw, 8px) 0 0; text-wrap: pretty;
}
/* Rotating keyword in the hero headline — soft blur crossfade */
.hero-lit { color: var(--morkbla); font-style: normal; }
.hero-pre {
  display: inline-block;
  font-size: 0.66em;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--morkbla);
  margin-bottom: 0.12em;
}
.hero-big-title .hero-rotate { font-size: 0.96em; color: var(--bla); }
.hero-rotate {
  display: inline-block;
  transition: opacity .54s ease, transform .54s cubic-bezier(.2,.8,.3,1), filter .54s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-rotate.is-out { opacity: 0; transform: translateY(0.26em); filter: blur(5px); }
  .hero-rotate.is-in  { opacity: 1; transform: none; filter: none; }
}

/* Video background for the hero — weighted to the right, scrim keeps the
   left (text) side readable. Drop the film at assets/hero.mp4. */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* Soft bottom fade so the video melts into the page background instead of
   ending on a hard edge above the testimonials. */
.hero-video::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: clamp(80px, 16vh, 200px);
  background: linear-gradient(180deg, transparent 0%, #eef3fb 92%);
  z-index: 2; pointer-events: none;
}
.hero-video-el {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 78% center;
}
/* Placeholder shown until a real video is provided (sits behind the <video>) */
.hero-video-ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 82% 50%, color-mix(in srgb, var(--bla) 22%, transparent) 0%, transparent 55%),
    linear-gradient(115deg, var(--paper) 0%, var(--paper) 30%, #dfe7f4 60%, #c9d8ef 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-video-ph { background-size: 100% 100%, 180% 180%; animation: hero-ph-drift 18s ease-in-out infinite alternate; }
}
@keyframes hero-ph-drift {
  from { background-position: 0% 50%, 0% 50%; }
  to   { background-position: 0% 50%, 100% 60%; }
}
.hero-video-ph-label {
  position: absolute; right: clamp(28px, 7vw, 120px); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; text-align: right;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--morkbla);
  opacity: .85;
}
.hero-video-ph-label small {
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  text-transform: none; color: var(--ink-2);
}
.hero-video-ph-label code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px;
  background: #ffffffaa; padding: 1px 5px; border-radius: 4px;
}
/* Scrim: opaque paper on the left fading to clear on the right */
.hero-video-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    var(--paper) 0%, var(--paper) 26%,
    color-mix(in srgb, var(--paper) 70%, transparent) 44%,
    transparent 68%);
}
/* Hide the dotted texture when the hero carries a video */
.hero-has-video .hero-big-dots { display: none; }
@media (max-width: 760px) {
  .hero-video-scrim {
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--paper) 55%, transparent) 0%,
      var(--paper) 62%);
  }
  .hero-video-ph-label { top: 18%; right: 50%; transform: translateX(50%); text-align: center; }
}

.hero-big-cta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: clamp(12px, 2vw, 24px);
}

/* Soft sequential entrance for the hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-enter .hero-big-title,
  .hero-enter .hero-big-lede,
  .hero-enter .hero-big-cta {
    opacity: 0;
    animation: hero-rise .7s cubic-bezier(.2,.8,.3,1) both;
    animation-delay: calc(var(--he, 0) * 140ms + 120ms);
  }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(6px, 1.4vw, 14px);
}
.hero-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: -0.005em; color: var(--ink);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hero-chip:hover {
  transform: translateY(-2px);
  border-color: var(--bla);
  background: #fff;
}
.hero-chip-glyph {
  display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent-soft); color: var(--bla);
  font-size: 12px;
}
.hero-big-meta {
  display: flex; flex-wrap: wrap; gap: 32px 48px;
  padding-top: clamp(24px, 4vw, 40px);
  margin-top: clamp(8px, 2vw, 20px);
  border-top: 1px solid var(--rule-2);
  width: 100%;
}
.hero-big-meta .item {
  flex: 1 1 200px;
  min-width: 0;
}
.hero-big-meta .k {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bla); margin-bottom: 8px;
}
.hero-big-meta .v {
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  color: var(--ink-2); font-weight: 500;
}

/* Decorative accent shapes (subtle, off to the side) */
.hero-big::before, .hero-big::after {
  content: none;
}

/* SECTION HEAD overrides for richer rhythm ----------------------- */
.home .section-head h2 {
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

/* OM (light tinted section) ------------------------------------- */
.home-om {
  background: var(--gul-soft);
  padding: clamp(96px, 12vw, 160px) 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  position: relative;
  overflow: hidden;
}
.home-om .section-head h2 em {
  color: var(--morkbla);
  position: relative;
}
.home-om .section-head h2 em::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -0.06em; height: 0.18em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 50 1 100 6 T 198 6' fill='none' stroke='%2376b0ff' stroke-width='5' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}
.home-om-deco {
  position: absolute;
  top: -40px; right: -40px;
  width: clamp(180px, 22vw, 320px);
  height: clamp(180px, 22vw, 320px);
  border-radius: 50%;
  border: 24px solid var(--gul);
  opacity: 0.55;
  pointer-events: none;
}

/* MÅL grid — accent tinted cards -------------------------------- */
.home-mal { background: var(--paper); padding: clamp(96px, 12vw, 160px) 0; }
.home-mal .mal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 820px) { .home-mal .mal-grid { grid-template-columns: 1fr; } }

.home-mal-card {
  position: relative;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 3vw, 40px);
  border-radius: 22px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
  transition: transform .25s ease;
}
.home-mal-card:hover { transform: translateY(-4px); }
.home-mal-card .num {
  font-family: var(--sans);
  font-size: clamp(56px, 7vw, 92px);
  font-weight: 800; line-height: 0.9; letter-spacing: -0.04em;
  margin-bottom: 8px;
}
.home-mal-card h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15; letter-spacing: -0.015em;
  margin: 0;
}
.home-mal-card p {
  font-size: 16px; line-height: 1.55;
  margin: 0; flex: 1;
}
.home-mal-card.c1 { background: var(--gron-soft); color: var(--ink); }
.home-mal-card.c1 .num { color: var(--gron); }
.home-mal-card.c2 { background: var(--korall-soft); color: var(--ink); }
.home-mal-card.c2 .num { color: var(--korall); }
.home-mal-card.c3 { background: var(--morkbla); color: #fff; }
.home-mal-card.c3 .num { color: var(--gul); }
.home-mal-card.c3 p { color: #ffffffcc; }

/* VISION — full bleed quote, dark blue ------------------------- */
.home-vision {
  background: var(--morkbla); color: #fff;
  padding: clamp(96px, 14vw, 180px) 0;
  position: relative; overflow: hidden;
}
.home-vision .wrap {
  position: relative; z-index: 1;
  max-width: 1100px;
}
.home-vision .kicker { color: var(--gul); }
.home-vision-quote {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.08; letter-spacing: -0.025em;
  margin: 0; color: #fff;
  text-wrap: balance;
  max-width: 22ch;
}
.home-vision-quote em {
  font-style: italic; font-weight: 500;
  color: var(--ljusbla);
  display: block;
}
.home-vision-mark {
  position: absolute;
  top: clamp(40px, 6vw, 80px); left: clamp(20px, 4vw, 60px);
  font-family: "Georgia", serif;
  font-size: clamp(160px, 24vw, 360px);
  line-height: 0.6;
  color: #ffffff10;
  pointer-events: none;
  font-weight: 400;
}

/* SERVICES on home --------------------------------------------- */
.home-services {
  background: var(--paper);
  padding: clamp(96px, 12vw, 160px) 0;
}
.home-services .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .home-services .services-grid { grid-template-columns: 1fr; } }

.home-svc {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  min-height: 360px;
  gap: 20px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.home-svc:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 24px 50px -28px #1c1a5f55;
}
.home-svc .num {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bla);
}
.home-svc-glyph {
  width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 700;
}
.home-svc.c1 .home-svc-glyph { background: var(--gul-soft); color: var(--morkbla); }
.home-svc.c2 .home-svc-glyph { background: var(--korall-soft); color: var(--korall); }
.home-svc.c3 .home-svc-glyph { background: var(--morkbla); color: var(--ljusbla); }
.home-svc h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0;
}
.home-svc p {
  font-size: 15px; line-height: 1.6; color: var(--ink-2);
  margin: 0; flex: 1;
}
.home-svc-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; margin-top: 4px;
  border-top: 1px solid var(--rule-2);
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.home-svc:hover .home-svc-foot .arr { transform: translateX(4px); }
.home-svc-foot .arr { transition: transform .2s ease; font-size: 16px; }

/* CONTACT TEASER ----------------------------------------------- */
.home-cta {
  background: var(--gul);
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--rule-2);
}
.home-cta .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 48px; align-items: end;
}
@media (max-width: 820px) { .home-cta .wrap { grid-template-columns: 1fr; } }
.home-cta h2 {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(40px, 6vw, 88px); line-height: 0.96; letter-spacing: -0.03em;
  margin: 0; color: var(--ink); text-wrap: balance;
}
.home-cta h2 em { font-style: italic; font-weight: 600; }
.home-cta p {
  font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: var(--ink-2);
  margin: 0 0 24px; max-width: 36ch;
}
.home-cta .btn {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.home-cta .btn:hover { background: var(--morkbla); border-color: var(--morkbla); }
.home-cta-info {
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--sans); font-size: 16px;
  padding-bottom: 4px;
}
.home-cta-info a {
  color: var(--ink); font-weight: 600;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color .15s, border-color .15s;
}
.home-cta-info a:hover { color: var(--morkbla); border-color: var(--morkbla); }
.home-cta-info .k {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); opacity: 0.7; margin-bottom: 2px;
}


/* TRUST / SOCIAL PROOF ----------------------------------------- */
.home-trust {
  background: var(--surface);
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}
.home-trust .trust-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 88px);
}
@media (max-width: 900px) { .home-trust .trust-grid { grid-template-columns: 1fr; } }

.trust-quote {
  position: relative;
  padding: clamp(32px, 4vw, 56px) clamp(28px, 3vw, 48px);
  padding-top: clamp(40px, 5vw, 72px);
  background: var(--gravit);
  border-radius: 24px;
  border: 1px solid var(--rule-2);
}
.trust-mark {
  position: absolute;
  top: clamp(-4px, 0.5vw, 8px); left: clamp(20px, 3vw, 36px);
  font-family: "Georgia", serif;
  font-size: clamp(110px, 14vw, 180px);
  line-height: 0.7;
  color: var(--ljusbla);
  font-weight: 400;
  pointer-events: none;
  user-select: none;
}
.trust-quote blockquote {
  margin: 0; position: relative;
  font-family: var(--sans);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.trust-attr {
  margin-top: clamp(24px, 3vw, 36px);
  display: flex; align-items: center; gap: 14px;
}
.trust-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--morkbla);
  color: var(--gul);
  display: grid; place-items: center;
  font-family: var(--sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.trust-name {
  font-family: var(--sans);
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.trust-role {
  font-family: var(--sans);
  font-size: 13px; font-weight: 400;
  color: var(--ink-2);
  margin-top: 2px;
}

.trust-side h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.trust-side h3 em {
  font-style: italic;
  font-weight: 600;
  color: var(--morkbla);
  position: relative;
}
.trust-side h3 em::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -0.06em;
  height: 0.16em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 50 1 100 6 T 198 6' fill='none' stroke='%2376b0ff' stroke-width='5' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
  pointer-events: none;
}
.trust-side p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 36ch;
}

/* Logo wall — text-based marks. Replace with real <img> logos when available. */
.trust-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}
@media (max-width: 900px) { .trust-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .trust-logos { grid-template-columns: repeat(2, 1fr); } }

.trust-logo {
  padding: clamp(22px, 2.8vw, 36px) 12px;
  font-family: var(--sans);
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  border-right: 1px solid var(--rule-2);
  transition: color .2s ease;
  display: flex; align-items: center; justify-content: center;
  min-height: 80px;
}
.trust-logo:hover { color: var(--ink); }

/* 6-col layout */
@media (min-width: 901px) {
  .trust-logo:nth-child(6n) { border-right: none; }
}
/* 3-col layout */
@media (max-width: 900px) and (min-width: 521px) {
  .trust-logo:nth-child(3n) { border-right: none; }
  .trust-logo:nth-child(n+4) { border-top: 1px solid var(--rule-2); }
}
/* 2-col layout */
@media (max-width: 520px) {
  .trust-logo:nth-child(2n) { border-right: none; }
  .trust-logo:nth-child(n+3) { border-top: 1px solid var(--rule-2); }
}


/* TESTIMONIALS — Mappi-style continuous marquee ----------------- */
.home-testimonials {
  background: transparent;
  padding: 0 0 clamp(40px, 5vw, 68px);
  border-top: 0;
  overflow-x: clip;
  overflow-y: visible;
}
.home-testimonials .section-head { margin-bottom: clamp(12px, 2vw, 28px); }

.testimonials-marquee {
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
  /* Room for the hovered card to scale up (1.12× + lift + shadow). */
  padding: 40px 0;
  margin: -40px 0;
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.testimonials-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  padding: 8px 0;
  animation: testimonials-scroll 100s linear infinite;
}
.testimonials-marquee:hover .testimonials-track {
  animation-play-state: paused;
}
@keyframes testimonials-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
/* Reduced-motion users still get the marquee since it's the whole point of
 * this section — but we slow it down so it's gentler on the eyes. */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation-duration: 240s; }
}

.testimonial-card {
  flex-shrink: 0;
  width: clamp(280px, 28vw, 380px);
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: 18px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform-origin: center center;
  transition:
    transform .35s cubic-bezier(.2,.8,.3,1),
    box-shadow .35s cubic-bezier(.2,.8,.3,1),
    border-color .25s ease,
    opacity .35s ease;
}
.testimonial-card:hover {
  transform: scale(1.12) translateY(-4px);
  border-color: var(--bla);
  box-shadow:
    0 36px 70px -22px #1c1a5f55,
    0 14px 28px -16px #1c1a5f33;
  z-index: 4;
}
/* Recede the un-hovered siblings so the focused one truly dominates */
.testimonials-track:hover .testimonial-card:not(:hover) {
  opacity: 0.42;
  transform: scale(0.97);
}

.testimonial-card .role-tag {
  display: inline-flex;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bla);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
  align-self: flex-start;
}

.testimonial-card blockquote {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
  font-weight: 500;
  letter-spacing: -0.003em;
  text-wrap: pretty;
}

.testimonial-card .who {
  border-top: 1px solid var(--rule-2);
  padding-top: 14px;
  margin-top: 4px;
}
.testimonial-card .who-name {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.testimonial-card .who-role {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
