/* ─── AI Education — Brand System ─────────────────────────────── */
:root {
  /* Brand */
  --svart: #000000;
  --bla: #0955B1;
  --morkbla: #1c1a5f;
  --morkgra: #827f88;
  --ljusgra: #b7b4bd;
  --ljusbla: #76b0ff;
  --gravit: #f6f6f6;

  /* Accent palette — brand only. We keep the old token names so existing
   * rules continue to work, but every value now comes from the AI Education
   * palette (svart / blå / mörkblå / mörkgrå / ljusgrå / ljusblå / gråvit). */
  --gul: #76b0ff;       /* was warm yellow → now ljusblå pop */
  --gul-soft: #e6efff;  /* soft ljusblå tint */
  --gron: #1c1a5f;      /* was green → now mörkblå */
  --gron-soft: #d6e0ee; /* medium blue tint */
  --korall: #0955B1;    /* was coral → now primary blå */
  --korall-soft: #ebebee; /* cool gray tint */

  /* Semantic */
  --paper: var(--gravit);
  --paper-2: #eeeef0;
  --paper-3: #e4e3e8;
  --surface: #ffffff;
  --ink: var(--svart);
  --ink-2: #27262e;
  --ink-3: var(--morkgra);
  --rule: #0000000F;
  --rule-2: #00000022;

  --accent: var(--bla);
  --accent-deep: var(--morkbla);
  --accent-soft: #e6efff;

  /* ─── Sidbakgrund "Himmelstvätt" (Sky Wash) ───────────────────────
   * Den genomgående ljusblå sidbakgrunden som mjukt fördjupas nedåt.
   * Referera till hela ytan som --sky-wash. Tre toner i övergången: */
  --sky-top:  #eef3fb;  /* Himmel ljus  — översta, ljusaste blå */
  --sky-mid:  #dfe9f8;  /* Himmel mellan — mjuk fördjupning */
  --sky-deep: #c8d9f1;  /* Himmel djup  — mörkaste blå längst ner */
  --sky-wash: linear-gradient(180deg,
                var(--sky-top) 0%, var(--sky-top) 42%,
                var(--sky-mid) 78%, var(--sky-deep) 100%);

  --sans: "Bell MT W01", "Bell MT", Georgia, "Times New Roman", serif;
  --heading: "Bell MT W01 Bold", "Bell MT W01", "Bell MT", Georgia, serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  --radius: 10px;
  --radius-lg: 16px;

  --t-display: clamp(40px, 6vw, 88px);
  --t-h2: clamp(28px, 3.6vw, 48px);
  --t-body: 16px;
  --t-lead: clamp(17px, 1.3vw, 20px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(95% 55% at 82% 0%, color-mix(in srgb, var(--bla) 13%, transparent) 0%, transparent 60%),
    var(--sky-wash);
  background-color: var(--sky-deep);
  background-attachment: fixed, scroll;
  background-size: 160% 160%, 100% 2600px;
  background-repeat: no-repeat, no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: no-preference) {
  body { animation: bg-drift 30s ease-in-out infinite alternate; }
}
@keyframes bg-drift {
  from { background-position: 0% 0%, 0% 0%; }
  to   { background-position: 100% 30%, 0% 0%; }
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.mono {
  font-family: var(--sans); font-weight: 600; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid var(--rule-2); border-radius: 999px;
  background: var(--surface);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bla); }

.kicker {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bla);
  margin-bottom: 14px;
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--bla); border-color: var(--bla); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.accent { background: var(--bla); color: #fff; border-color: var(--bla); }
.btn.accent:hover { background: var(--morkbla); border-color: var(--morkbla); }
.nav-cta .btn.accent { background: var(--morkbla); border-color: var(--morkbla); }
.hero-big-cta .btn.accent { background: var(--morkbla); border-color: var(--morkbla); }
.btn .arr { display: inline-block; transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ─── Section scaffolding ─────────────────────────────────────── */
section { padding: clamp(80px, 10vw, 150px) 0; position: relative; }
.section-plain + .section-plain,
.section-plain + section,
section + .section-plain { border-top: 1px solid var(--rule-2); }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 90px);
}
.section-head h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: var(--t-h2); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0; color: var(--ink); text-wrap: balance;
}
.section-head h2 em { font-style: italic; font-weight: 600; color: var(--morkbla); }
.section-head .lede {
  font-size: var(--t-lead); line-height: 1.55; color: var(--ink-2);
  max-width: 52ch; font-weight: 400; margin-top: 0;
}

@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }

/* ─── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
/* Subtle entrance each time a page loads — the bar grows in minimally
   so navigating between pages feels alive. */
@media (prefers-reduced-motion: no-preference) {
  .nav-inner {
    animation: nav-grow-in .55s cubic-bezier(.2,.8,.3,1) both;
    transform-origin: top center;
  }
}
@keyframes nav-grow-in {
  from { opacity: 0; transform: scale(.972) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: auto; display: block; }
@media (max-width: 520px) { .brand-logo { height: 26px; } }

.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
  transition: color .15s ease, transform .2s ease;
  position: relative;
  display: inline-block;
  transform-origin: center;
}
.nav-links a:hover { color: var(--ink); transform: scale(1.6); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--bla);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Hamburger toggle (visible on home page) */
.nav-toggle {
  width: 42px; height: 42px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; background: transparent; border: 1px solid var(--rule);
  border-radius: 999px; cursor: pointer; padding: 0;
  transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { background: var(--paper-2); border-color: var(--bla); }
.nav-toggle span {
  display: block; width: 16px; height: 1.5px; background: var(--ink);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Dropdown panel */
.nav-drop {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--rule-2);
  box-shadow: 0 24px 50px -28px #1c1a5f33;
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.nav-drop.is-open { max-height: 520px; }
.nav-drop .wrap {
  display: flex; flex-direction: column;
  padding: 18px 0 28px;
}
.nav-drop a {
  font-family: var(--sans);
  font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); padding: 14px 0;
  border-bottom: 1px solid var(--rule-2);
  transition: color .2s ease, padding-left .2s ease;
}
.nav-drop a:last-child { border-bottom: none; }
.nav-drop a:hover { color: var(--bla); padding-left: 12px; }
.nav-drop a.active { color: var(--bla); }

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

/* ─── Hero (minimal landing) ──────────────────── */
.hero-min {
  min-height: calc(100vh - 80px);
  display: grid; place-items: center;
  text-align: center;
  background: var(--paper);
}
.hero-min .wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 80px 24px; }
.hero-logo { height: clamp(72px, 12vw, 140px); width: auto; }
.hero-sub {
  font-family: var(--sans); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 2.2vw, 26px); line-height: 1.45;
  color: var(--ink-2); max-width: 56ch; margin: 0; text-wrap: balance;
}

/* Hero (legacy full) */
.hero:not(.hero-min) {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
}
.hero-eyebrow { margin-bottom: 28px; }
.hero-title {
  font-family: var(--sans); font-weight: 700;
  font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 32px;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--morkbla); }
.hero-lede {
  font-size: var(--t-lead); color: var(--ink-2); max-width: 56ch;
  margin: 0 0 40px; font-weight: 400; line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Vision ──────────────────────────────────────────────────── */
.vision {
  background: var(--morkbla); color: #fff;
}
.vision-grid { max-width: 52rem; margin: 0 auto; }
.vision-quote {
  font-family: var(--sans); font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.3; letter-spacing: -0.015em;
  margin: 0; text-wrap: pretty; color: #fff;
  position: relative;
}
.vision-quote .mark {
  font-family: "Georgia", serif;
  font-size: 1.4em; line-height: 0; color: var(--ljusbla);
  margin-right: 8px; vertical-align: -0.15em; font-weight: 400;
}

/* ─── Mål ─────────────────────────────────────────────────────── */
.mal-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 820px) { .mal-grid { grid-template-columns: 1fr; } }

.mal-card {
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; z-index: 1; transform-origin: center;
  transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease;
}
.mal-card:hover {
  border-color: var(--bla);
  transform: scale(1.05);
  box-shadow: 0 28px 56px -24px #1c1a5f3a;
  z-index: 3;
}
.mal-card .num {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--bla); margin-bottom: 20px;
}
.mal-card h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 22px; line-height: 1.2; letter-spacing: -0.015em;
  margin: 0; color: var(--ink);
}
.mal-card p {
  margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55;
}
.mal-card .mal-lead {
  color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.45;
}
.mal-card .mal-body {
  color: var(--ink-2); font-size: 14.5px; line-height: 1.6;
}

/* Darker blue band so the three goal cards stand apart (Om-sida) */
#mal.section-plain {
  background: var(--morkbla);
  padding-block: clamp(48px, 6vw, 76px);
}
#mal .section-head { margin-bottom: clamp(28px, 3.4vw, 44px); align-items: start; }
#mal.section-plain + section,
section + #mal.section-plain { border-top: 0; }
#mal .section-head h2 { color: #fff; }
#mal .section-head .lede { color: rgba(255,255,255,0.78); }
#mal .mal-card .num { color: var(--ljusbla); }

/* ─── Om CTA (avslutande) ──────────────────────────────────────── */
.om-cta {
  position: relative;
  background: var(--morkbla);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 108px);
  text-align: center;
}
.om-cta-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 75%);
  pointer-events: none;
}
.om-cta .wrap { position: relative; z-index: 1; }
.om-cta h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 60px); line-height: 1.06;
  letter-spacing: -0.025em; margin: 0 auto;
  max-width: 18ch; color: #fff; text-wrap: balance;
}
.om-cta h2 em { font-style: italic; font-weight: 600; color: var(--ljusbla); }
.om-cta p {
  margin: clamp(16px, 1.8vw, 24px) auto 0;
  max-width: 52ch; font-size: var(--t-lead);
  line-height: 1.55; color: rgba(255,255,255,0.78);
}
.om-cta-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin-top: clamp(28px, 3.4vw, 44px);
}
.btn.ghost-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.4);
}
.btn.ghost-light:hover {
  background: #fff; color: var(--morkbla); border-color: #fff;
}

/* ─── Services ─────────────────────────────────────────────────── */
.services {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(95% 55% at 82% 0%, color-mix(in srgb, var(--bla) 12%, transparent) 0%, transparent 60%),
    var(--sky-wash);
  padding-top: clamp(56px, 6vw, 90px);
}
.services .section-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.services .section-head h2 { color: var(--morkbla); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

.svc {
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
  min-height: 320px;
  transition:
    transform .35s cubic-bezier(.2,.8,.3,1),
    box-shadow .35s cubic-bezier(.2,.8,.3,1),
    opacity .35s ease,
    filter .35s ease,
    border-color .2s ease,
    background .25s ease;
  cursor: pointer;
  transform-origin: center center;
}
.svc:hover {
  border-color: var(--bla);
  transform: scale(1.16);
  box-shadow:
    0 44px 90px -24px #1c1a5f66,
    0 16px 34px -14px #1c1a5f3d;
  z-index: 5;
}
/* Recede neighbours so the hovered card dominates */
.services-grid:hover .svc:not(:hover) {
  opacity: 0.32;
  transform: scale(0.9);
  filter: blur(1.5px) saturate(0.85);
}
.svc.featured {
  background: var(--morkbla); color: #fff; border-color: var(--morkbla);
}
.svc.featured:hover { border-color: var(--ljusbla); }

.svc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.svc-head .num {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--bla);
}
.svc.featured .svc-head .num { color: var(--ljusbla); }
.svc-head .tag-s {
  font-family: var(--sans); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--rule-2); border-radius: 999px;
  color: var(--ink-3);
}
.svc.featured .svc-head .tag-s { border-color: #ffffff33; color: #ffffffbb; }

.svc-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.svc-body h3 {
  font-family: var(--sans); font-weight: 700;
  font-size: 24px; line-height: 1.2; margin: 0; letter-spacing: -0.02em;
  color: var(--morkbla);
}
.svc.featured .svc-body h3 { color: #fff; }
.svc-body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.svc.featured .svc-body p { color: #ffffffcc; }

.svc-foot {
  padding-top: 18px;
  border-top: 1px solid var(--rule-2);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bla);
}
.svc.featured .svc-foot { border-top-color: #ffffff22; color: var(--ljusbla); }
.svc-foot .arr { font-size: 18px; }

.services-cta {
  margin-top: 48px; display: flex; justify-content: center;
}

/* ─── Contact ──────────────────────────────────────────────────── */
.contact {
  color: var(--ink);
  overflow: hidden;
  background:
    radial-gradient(58% 55% at 12% 4%, color-mix(in srgb, var(--bla) 12%, transparent) 0%, transparent 55%),
    var(--sky-wash);
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-intro .kicker { color: var(--bla); }
.contact-intro h2 {
  font-family: var(--sans); font-weight: 700;
  font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.025em;
  margin: 0 0 20px; color: var(--morkbla);
}
.contact-intro h2 em { font-style: italic; font-weight: 600; color: var(--bla); }
.contact-intro h2 em.contact-h2-big {
  display: inline-block;
  font-size: 1.4em;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 6px;
}
.contact-intro p {
  font-size: var(--t-lead); color: var(--ink-2); margin: 0 0 32px;
  max-width: 44ch; line-height: 1.55;
}

.contact-info { display: flex; flex-direction: column; border-top: 1px solid var(--rule-2); }
.contact-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px;
  padding: 16px 0; border-bottom: 1px solid var(--rule-2);
}
.contact-row .k {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--bla); padding-top: 4px;
}
.contact-row .v {
  font-family: var(--sans); font-size: 16px; font-weight: 500;
  letter-spacing: -0.005em; color: var(--ink);
}

.form {
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  font-family: var(--sans); color: var(--ink); font-weight: 500; font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--bla); box-shadow: 0 0 0 3px #76b0ff4d;
}
.field .err {
  color: #c1272d;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.field input.bad, .field textarea.bad { border-color: #c1272d; }

.form-nav { display: flex; justify-content: flex-end; margin-top: 6px; }
.form-nav .btn.accent { background: #1C1A5F; border-color: #1C1A5F; }
.form-nav .btn.accent:hover { background: #15134a; border-color: #15134a; }

.form-success {
  text-align: center; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.form-success .check {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bla); color: #fff;
  display: grid; place-items: center;
  font-family: var(--sans); font-size: 24px; font-weight: 700;
}
.form-success h4 {
  font-family: var(--sans); font-weight: 700; font-size: 24px;
  margin: 0; letter-spacing: -0.02em; color: var(--ink);
}
.form-success p { color: var(--ink-2); margin: 0; max-width: 40ch; }

/* ─── Story timeline (om-sida) ─────────────────────────────────── */
.om-story {
  position: relative;
  background:
    radial-gradient(95% 55% at 82% 0%, color-mix(in srgb, var(--bla) 12%, transparent) 0%, transparent 60%),
    var(--sky-wash);
  overflow: hidden;
  padding-block: clamp(48px, 6vw, 84px);
}
.om-story-hero {
  text-align: center;
  margin: 0 auto clamp(22px, 3vw, 40px);
}
.om-story-hero h1 {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(46px, 6.4vw, 88px);
  line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 clamp(16px, 1.8vw, 26px); color: var(--morkbla); text-wrap: balance;
}
.om-story-hero h1 em { font-style: normal; font-weight: 700; color: var(--morkbla); }
.om-story-hero .lede {
  font-size: var(--t-lead); line-height: 1.6; color: var(--ink-2);
  max-width: 60ch; margin: 0 auto; font-weight: 400;
}
.story-blob {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 56% at 16% 32%, var(--accent-soft) 0%, transparent 62%),
    radial-gradient(ellipse 52% 62% at 88% 72%, var(--accent-soft) 0%, transparent 62%);
  opacity: 0.25;
  pointer-events: none;
}
.om-story .wrap { position: relative; z-index: 1; }

.story-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: clamp(14px, 1.8vw, 30px);
  align-items: stretch;
  margin-top: clamp(2px, 0.6vw, 8px);
}
/* Dashed spine running through the year-nodes */
.story-line {
  position: absolute;
  left: 8%; right: 8%;
  top: 50%;
  border-top: 2px dashed var(--bla);
  opacity: 0.45;
  z-index: 0;
}
.story-step {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  justify-items: center;
  min-height: 236px;
}
.story-card {
  width: 92%;
  max-width: 236px;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: 0 22px 44px -32px rgba(28, 26, 95, 0.4);
  z-index: 2;
}
.story-card p {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.story-step.is-up .story-card { grid-row: 1; align-self: end; margin-bottom: 48px; }
.story-step.is-down .story-card { grid-row: 2; align-self: start; margin-top: 48px; }

/* Circular year node sitting on the spine (echoes the partner-logo circles) */
.story-node {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--bla);
  color: var(--bla);
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: -0.02em;
  box-shadow: 0 14px 28px -18px rgba(28, 26, 95, 0.5);
  z-index: 3;
}
.story-node.is-now {
  background: var(--bla);
  border-color: var(--bla);
  color: #fff;
}
/* Short dashed stub connecting card to node */
.story-stub {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 14px;
  border-left: 2px dashed var(--bla);
  opacity: 0.45;
  z-index: 1;
}
.story-step.is-up .story-stub { top: calc(50% - 46px); }
.story-step.is-down .story-stub { top: calc(50% + 34px); }

@media (max-width: 860px) {
  .story-timeline {
    grid-template-columns: 1fr;
    margin-top: clamp(32px, 8vw, 56px);
  }
  .story-line { display: none; }
  .story-step {
    display: grid;
    grid-template-columns: 92px 1fr;
    grid-template-rows: auto;
    min-height: 0;
    column-gap: 22px;
    align-items: start;
    padding-bottom: 36px;
  }
  .story-step::before {
    content: "";
    position: absolute;
    left: 46px; top: 46px; bottom: -8px;
    border-left: 2px dashed var(--bla);
    opacity: 0.4;
    transform: translateX(-1px);
  }
  .story-step:last-child::before { display: none; }
  .story-node {
    position: static;
    transform: none;
    grid-column: 1;
    align-self: start;
  }
  .story-stub { display: none; }
  .story-card {
    grid-column: 2;
    width: 100%;
    max-width: none;
    align-self: start;
    margin: 6px 0 0 !important;
  }
}

/* ─── Footer ───────────────────────────────────────────────────── */
footer {
  padding: 72px 0 32px;
  border-top: 1px solid var(--rule-2);
  background: #fff;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-logo { width: 100%; max-width: 320px; height: auto; display: block; }
.foot-tag {
  margin: 18px 0 0; max-width: 320px;
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  font-style: italic;
  line-height: 1.55; color: var(--ink-2);
}
.foot-col h5 {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 16px;
}
.foot-col a {
  display: block; padding: 5px 0; color: var(--ink-2);
  font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.foot-col a:hover { color: var(--bla); }
.foot-bot {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule-2);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
  flex-wrap: wrap; gap: 12px;
}

/* ─── Tweaks panel ─────────────────────────────────────────────── */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 14px;
  padding: 16px;
  width: 260px;
  box-shadow: 0 20px 40px -16px #1c1a5f55;
  display: none;
  font-family: var(--sans);
}
.tweaks.open { display: block; }
.tweaks h6 {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center;
}
.tweaks h6 button { background: transparent; border: 0; cursor: pointer; font: inherit; color: var(--ink-3); }
.tweaks .row { margin-bottom: 14px; }
.tweaks .row .l {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px;
}
.tweaks .swatches { display: flex; gap: 8px; }
.tweaks .sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.tweaks .sw.active { border-color: var(--ink); }
.tweaks .seg { display: flex; border: 1px solid var(--rule-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.tweaks .seg button {
  flex: 1; padding: 8px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--ink-2);
}
.tweaks .seg button.active { background: var(--ink); color: #fff; }


/* ─── Om-sida — Partners / kunder ──────────────────────────────── */
.om-partners {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(95% 55% at 82% 0%, color-mix(in srgb, var(--bla) 12%, transparent) 0%, transparent 60%),
    var(--sky-wash);
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--rule-2);
}
.om-partners-block { margin-top: clamp(40px, 5vw, 64px); }
.om-partners-block:first-of-type { margin-top: 0; }

.om-partners-label {
  font-family: var(--sans);
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bla);
  margin: 0 0 22px;
}

.om-partners-grid {
  display: grid;
  background: transparent;
  gap: clamp(18px, 2.2vw, 32px);
  justify-items: center;
}
.om-customers { grid-template-columns: repeat(5, 1fr); }
.om-techpartners { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 820px) {
  .om-customers, .om-techpartners { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .om-customers, .om-techpartners { grid-template-columns: repeat(2, 1fr); }
}

.om-logo {
  width: 100%;
  max-width: 168px;
  aspect-ratio: 1 / 1;
  padding: clamp(7px, 0.9vw, 11px);
  box-sizing: border-box;
  font-family: var(--sans);
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-align: center;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transform-origin: center center;
  transition:
    transform .35s cubic-bezier(.2,.8,.3,1),
    box-shadow .35s cubic-bezier(.2,.8,.3,1),
    color .2s ease,
    background .25s ease,
    opacity .35s ease,
    border-color .2s ease;
}
.om-logo:hover {
  transform: scale(1.12);
  color: var(--ink);
  background: var(--surface);
  border-color: #d8e4f7;
  box-shadow:
    0 26px 50px -18px #1c1a5f55,
    0 10px 22px -12px #1c1a5f33;
  z-index: 5;
}
/* Recede neighbours so the hovered cell truly dominates */
.om-partners-grid:hover .om-logo:not(:hover) {
  opacity: 0.45;
  transform: scale(0.97);
}
.om-logo img {
  max-height: 52px;
  max-width: 74%;
  width: auto; height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity .2s ease;
}
.om-logo:hover img { opacity: 1; }

/* Customer logos read a bit bigger than tech-partner wordmarks. */
.om-customers .om-logo img {
  max-height: 130px;
  max-width: 95%;
}

/* Logos that ship with their own dark background — present as a contained
 * badge instead of letting the dark rectangle dominate the white cell. */
.om-logo img[src*="lararfortbildning"] {
  max-height: 60px;
  border-radius: 8px;
}

/* KTH crest is nearly square — give it more headroom so it reads at the
 * same visual weight as wide wordmarks. */
.om-logo img[src*="kth"] {
  max-height: 78px;
}

/* PedagoAI mark is also nearly square — give it the same treatment. */
.om-logo img[src*="pedagoai"] {
  max-height: 72px;
}

/* EVERTRUST mark with URL underneath is tall — give it more headroom. */
.om-logo img[src*="evertrust"] {
  max-height: 78px;
}

/* BookBites is a circular mark — give it the same square-logo treatment. */
.om-logo img[src*="bookbites"] {
  max-height: 72px;
}

/* Läxhjälpen wordmark reads small at the default cap — bump it a touch. */
.om-logo img[src*="laxhjalpen"] {
  max-height: 88px;
}

/* SIFU source is small (225px) — bump contrast rendering, cap size to its
 * native pixel density. Replace src when a higher-res file is available. */
.om-logo img[src*="sifu"] {
  max-height: 64px;
  image-rendering: -webkit-optimize-contrast;
}

/* Töreboda crest with wordmark is tall — give it more headroom. */
.om-logo img[src*="toreboda"] {
  max-height: 130px;
  max-width: 95%;
}

/* Gullspångs kommun: crest + wordmark — same large treatment. */
.om-logo img[src*="gullspang"] {
  max-height: 130px;
  max-width: 95%;
}

/* Elin Wägnerskolan: stacked wordmark + Växjö kommun crest. */
.om-logo img[src*="elin-wagnerskolan"] {
  max-height: 130px;
  max-width: 95%;
}

/* Hästsportens folkhögskola: horse silhouette + wordmark reads small —
 * bump its display height. */
.om-logo img[src*="hastsportens"] {
  max-height: 160px;
  max-width: 100%;
}

/* CIRCLE MODE: cap every logo uniformly so it sits cleanly inside the round
 * badge, overriding the per-logo headroom bumps above. */
.om-partners-grid .om-logo img {
  max-height: 92px !important;
  max-width: 90% !important;
  object-fit: contain;
}
.om-partners-grid .om-customers .om-logo img,
.om-customers .om-logo img {
  max-height: 100px !important;
  max-width: 92% !important;
}
/* Hästsportens is a square 600×600 image — cap it to the circle's inscribed
 * square so its corners never poke past the round edge. */
.om-partners-grid .om-logo img[src*="hastsportens"] {
  max-height: 104px !important;
  max-width: 70% !important;
}
/* Stacked wordmark + small crest logos read small — give them more room. */
.om-partners-grid .om-logo img[src*="gustavslundskolan"],
.om-partners-grid .om-logo img[src*="elin-wagnerskolan"],
.om-partners-grid .om-logo img[src*="thorildsplan"] {
  max-height: 132px !important;
  max-width: 100% !important;
}
/* Hide secondary wordmark caption + filler cells in circle mode for a clean look */
.om-partners-grid .om-logo-name { display: none; }
.om-partners-grid .om-logo-stacked { flex-direction: row; gap: 0; }
.om-logo-filler { display: none; }

/* Stacked layout: logo + wordmark caption underneath. */
.om-logo-stacked {
  flex-direction: column;
  gap: 8px;
}
.om-logo-name {
  display: block;
  text-align: center;
  line-height: 1;
}

/* Static cell — same look as a link cell but not clickable */
.om-logo-static { cursor: default; }

/* Filler cell — keeps the bordered grid rectangle clean when the customer
 * count isn't a multiple of the column count. Pure visual placeholder. */
.om-logo-filler {
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 8px,
    color-mix(in oklab, var(--rule-2) 80%, transparent) 8px 9px
  );
  pointer-events: none;
}
.om-partners-grid:hover .om-logo-filler { opacity: 1; transform: none; }


/* ─── Language toggle (in nav) ────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  font-family: var(--sans);
  flex-shrink: 0;
}
.lang-toggle button {
  padding: 7px 11px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  transition: color .15s ease, background .2s ease;
  line-height: 1;
  min-width: 32px;
}
.lang-toggle button + button { border-left: 1px solid var(--rule-2); }
.lang-toggle button:hover:not(.is-active) { color: var(--ink); }
.lang-toggle button.is-active {
  background: var(--ink);
  color: #fff;
  border-left-color: transparent;
}
@media (max-width: 520px) {
  .lang-toggle button { padding: 6px 9px; min-width: 28px; font-size: 10px; }
}

/* ─── Scroll reveal (Om-sidan) ─────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; }
  [data-reveal].is-in {
    animation: revUp 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    animation-delay: var(--rd, 0ms);
  }
  [data-reveal="scale"].is-in { animation-name: revScale; }

  @keyframes revUp {
    from { opacity: 0; translate: 0 40px; filter: blur(8px); }
    to   { opacity: 1; translate: 0 0;    filter: none; }
  }
  @keyframes revScale {
    from { opacity: 0; transform: scale(0.92); filter: blur(8px); }
    to   { opacity: 1; transform: none;        filter: none; }
  }

  /* Dashed spine draws itself from the left */
  .story-line[data-reveal="line"] {
    opacity: 1;
    transform: scaleX(0);
    transform-origin: left center;
  }
  .story-line[data-reveal="line"].is-in {
    animation: revLine 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.12s forwards;
  }
  @keyframes revLine { to { transform: scaleX(1); } }

  /* Year-nodes pop in after their step reveals (desktop spine only) */
  @media (min-width: 861px) {
    .story-step[data-reveal] .story-node {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0;
    }
    .story-step[data-reveal].is-in .story-node {
      animation: nodePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      animation-delay: calc(var(--rd, 0ms) + 0.28s);
    }
    @keyframes nodePop {
      0%   { transform: translate(-50%, -50%) scale(0); opacity: 0; }
      60%  { opacity: 1; }
      100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    }
  }
}
