:root {
  --bg: #10161d;
  --bg-2: #161e27;
  --panel: #1b2530;
  --panel-2: #212d3a;
  --line: rgba(255, 255, 255, 0.1);
  --text: #e7eef5;
  --muted: #a9b8c6;
  --cyan: #3cc3f0;
  --cyan-soft: rgba(60, 195, 240, 0.14);
  --green: #4fd6a3;
  --amber: #f5b942;
  --red: #ff7a7a;
  --ink: #0b1218;
  --radius: 16px;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: var(--max); }
.narrow > * { max-width: 740px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; }

/* Toppfält */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(16, 22, 29, 0.84); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: 0.16em; font-size: 1.02rem; }
.brand__key { width: 30px; height: 17px; color: var(--cyan); flex: none; }
.brand__accent { color: var(--cyan); }
.nav { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav a { position: relative; display: inline-block; padding: 8px 12px; color: #c9d6e2; text-decoration: none; border-radius: 8px; font-size: 0.96rem; transition: color 0.15s ease, background 0.15s ease; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current="true"]:not(.nav__cta) { color: #fff; }
.nav a[aria-current="true"]:not(.nav__cta)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--cyan); border-radius: 2px; }
.nav .nav__cta { background: var(--cyan); color: var(--ink); font-weight: 600; margin-left: 8px; }
.nav .nav__cta:hover { background: #7fd9f8; color: var(--ink); }
.nav .lang { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; color: #c9d6e2; border: 1px solid rgba(255, 255, 255, 0.22); padding: 5px 9px; margin-left: 6px; }
.nav .lang:hover { border-color: var(--cyan); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 100px; background: radial-gradient(1100px 520px at 88% -10%, #263648 0%, var(--bg) 62%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(60, 195, 240, 0.5), transparent); }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--cyan); opacity: 0.2; pointer-events: none; }
.trace { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 5s ease-out forwards; }
.t2 { animation-delay: 0.6s; } .t3 { animation-delay: 1.2s; }
.node { opacity: 0; animation: pop 0.6s ease-out forwards; animation-delay: 2.2s; }
.n2 { animation-delay: 2.5s; } .n3 { animation-delay: 2.8s; } .n4 { animation-delay: 3.1s; } .n5 { animation-delay: 3.4s; } .n6 { animation-delay: 3.7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
.hero__in { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 14px; color: var(--cyan); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; }
h1 { font-size: clamp(2.15rem, 4.7vw, 3.4rem); line-height: 1.08; margin: 0 0 22px; letter-spacing: -0.022em; color: #fff; }
.lead { font-size: 1.2rem; color: #cbd8e3; margin: 0 0 32px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 30px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.95rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan-soft); border: 2px solid var(--cyan); }
.hero__logo { position: relative; }
.hero__logo::before { content: ""; position: absolute; inset: -22px; border-radius: 34px; background: radial-gradient(closest-side, rgba(60, 195, 240, 0.22), transparent 70%); z-index: 0; }
.hero__logo img { position: relative; z-index: 1; border-radius: 22px; box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1); }

.btn { display: inline-block; padding: 13px 22px; border-radius: 10px; text-decoration: none; font-weight: 600; font: inherit; font-weight: 600; cursor: pointer; border: 0; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--cyan); color: var(--ink); box-shadow: 0 6px 20px rgba(60, 195, 240, 0.25); }
.btn--primary:hover { background: #7fd9f8; }
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.32); background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn--lg { font-size: 1.12rem; padding: 16px 28px; }
a.btn { text-decoration: none; }

/* Nyckeltal */
.facts { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.facts__in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.fact { padding: 28px 26px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font-size: 1.8rem; color: #fff; letter-spacing: -0.01em; line-height: 1.2; }
.fact span { color: var(--muted); font-size: 0.97rem; }

/* Sektioner */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: radial-gradient(900px 400px at 85% 0%, #1c2a38, #0c1117 70%); }
.kicker { margin: 0 0 10px; color: var(--cyan); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
h2 { font-size: clamp(1.75rem, 3.3vw, 2.5rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.017em; color: #fff; }
h3 { font-size: 1.25rem; margin: 0 0 8px; color: #fff; }
.section__intro { color: var(--muted); margin: 0 0 44px; max-width: 44em; }

/* Områden (flikar) */
.areas { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.areas__nav { display: grid; gap: 8px; }
.areas__tab {
  display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.areas__tab:hover { border-color: rgba(60, 195, 240, 0.5); transform: translateX(2px); }
.areas__tab[aria-selected="true"] { background: var(--cyan-soft); border-color: var(--cyan); color: #fff; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; margin: 0 0 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25); }
.panel h3 { font-size: 1.55rem; }
.panel h3::after { content: ""; display: block; width: 36px; height: 3px; background: var(--cyan); border-radius: 2px; margin-top: 12px; }
.panel > p { color: #cbd8e3; margin: 14px 0 18px; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.panel li { position: relative; padding-left: 26px; color: var(--text); }
.panel li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 11px; height: 11px; border-radius: 50%; border: 3px solid var(--cyan); }

.js .areas .panel { display: none; margin: 0; }
.js .areas .panel.is-active { display: block; animation: fadein 0.25s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html:not(.js) .areas { grid-template-columns: 1fr; }
html:not(.js) .areas__nav { display: none; }

/* Säkerhetskontroll */
.check { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3); }
.check__noscript { margin: 0; color: var(--muted); }
.check__meta { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; color: var(--muted); }
.check__meta strong { display: block; font-size: 2.2rem; line-height: 1.1; color: #fff; }
.check__note { margin: 18px 0 0; color: var(--muted); font-size: 0.95rem; }

.check__top { margin-bottom: 26px; }
.check__step { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; }
.check__step b { color: var(--cyan); }
.check__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.check__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), #7fe0ff); border-radius: 6px; transition: width 0.3s ease; }

.check__q { border: 0; margin: 0; padding: 0; min-width: 0; }
.check__q:focus, .check__result:focus { outline: none; }
.check__q legend { padding: 0; float: left; width: 100%; font-size: clamp(1.25rem, 2.6vw, 1.65rem); line-height: 1.35; font-weight: 600; color: #fff; margin: 0 0 8px; }
.check__q legend + * { clear: both; }
.check__help { clear: both; margin: 0 0 24px; color: var(--muted); font-size: 0.98rem; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: block; text-align: center; padding: 18px 14px; border-radius: 12px; font-weight: 600; font-size: 1.05rem;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.choice small { display: block; margin-top: 4px; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.choice:hover span { border-color: rgba(60, 195, 240, 0.6); transform: translateY(-1px); }
.choice input:checked + span { background: var(--cyan-soft); border-color: var(--cyan); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }
.check__nav { margin: 24px 0 0; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--cyan); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { text-decoration-thickness: 2px; }

/* Resultat */
.res { display: grid; gap: 28px; }
.res__head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.gauge { --pct: 50; --c: var(--cyan); width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.1) 0); position: relative; }
.gauge::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--panel); }
.gauge strong { position: relative; font-size: 2.1rem; line-height: 1; color: #fff; }
.gauge strong small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.res__band { margin: 0 0 6px; font-size: 1.6rem; line-height: 1.2; font-weight: 700; color: #fff; }
.res__band em { font-style: normal; color: var(--c, var(--cyan)); }
.res__text { margin: 0; color: #cbd8e3; max-width: 38em; }
.res h4 { margin: 0 0 12px; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); }
.gaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: g; }
.gaps li { counter-increment: g; position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 20px 64px; }
.gaps li::before { content: counter(g); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--cyan); color: var(--cyan); font-weight: 700; display: grid; place-items: center; }
.gaps h5 { margin: 0 0 6px; font-size: 1.1rem; color: #fff; }
.gaps p { margin: 0 0 6px; color: var(--muted); font-size: 0.98rem; }
.gaps p:last-child { margin: 0; }
.gaps b { color: #dbe7f1; }
.ok-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ok-list li { display: inline-flex; align-items: center; gap: 8px; background: rgba(79, 214, 163, 0.1); border: 1px solid rgba(79, 214, 163, 0.35); color: #bff0dc; padding: 6px 12px; border-radius: 999px; font-size: 0.92rem; }
.ok-list li::before { content: ""; width: 7px; height: 11px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -2px); }
.res__actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.res__fine { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Steg */
.steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--cyan); color: var(--cyan); font-weight: 700; display: grid; place-items: center; background: var(--cyan-soft); }
.steps p { margin: 0; color: var(--muted); }

/* Om mig */
.chips { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 7px 14px; border-radius: 999px; font-size: 0.95rem; }
.narrow p { color: #cbd8e3; }

/* Kontakt */
.contact { margin: 8px 0 0; }

/* Sidfot */
.footer { background: #0b1016; color: var(--muted); padding: 48px 0 24px; font-size: 0.95rem; border-top: 1px solid var(--line); }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px 40px; }
.footer p { margin: 8px 0 0; }
.footer a { color: #cbd8e3; }
.footer__nav { display: grid; gap: 8px; align-content: start; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: #fff; text-decoration: underline; }
.footer__legal p:first-child { margin-top: 0; }
.footer__copy { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.footer__copy p { margin: 0; }

/* Tjänstesidor */
.panel__more { margin: 22px 0 0; }
.panel__more a { font-weight: 600; text-decoration: none; }
.panel__more a:hover { text-decoration: underline; }
.svc-hero { position: relative; padding: 56px 0 64px; background: radial-gradient(1100px 520px at 88% -10%, #263648 0%, var(--bg) 62%); border-bottom: 1px solid var(--line); }
.svc-hero .lead { max-width: 40em; }
.crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.svc-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.svc-grid .panel { margin: 0; }
.svc-h { font-size: 1.35rem; margin: 0 0 16px; }
.svc-how { list-style: none; counter-reset: h; margin: 0; padding: 0; display: grid; gap: 18px; }
.svc-how li { counter-increment: h; position: relative; padding-left: 52px; color: #cbd8e3; min-height: 36px; }
.svc-how li::before { content: counter(h); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--cyan); color: var(--cyan); background: var(--cyan-soft); font-weight: 700; display: grid; place-items: center; }
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq details[open] { border-color: rgba(60, 195, 240, 0.5); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--cyan); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; }
.related { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.related a { display: block; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: #fff; font-weight: 600; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.related a::after { content: " →"; color: var(--cyan); }
.related a:hover { border-color: var(--cyan); transform: translateY(-1px); }

/* Integritetssida */
.page { padding: 64px 0 80px; }
.page h1 { font-size: 2.1rem; }
.page h2 { font-size: 1.25rem; margin-top: 34px; }
.page p, .page li { color: #cbd8e3; }

/* Rörelse vid scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  .hero__logo { max-width: 420px; }
  .section { padding: 64px 0; }
  .facts__in { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; }
  .fact:first-child { border-top: 0; }
  .areas { grid-template-columns: 1fr; }
  .areas__nav { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; }
  .areas__tab { white-space: nowrap; scroll-snap-align: start; }
  .areas__tab:hover { transform: none; }
  .panel { padding: 24px; }
  .check { padding: 24px; }
  .choices { grid-template-columns: 1fr; }
  .res__head { grid-template-columns: 1fr; justify-items: start; }
  .gaps li { padding: 20px 18px 20px 18px; padding-top: 62px; }
  .gaps li::before { left: 18px; top: 18px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__legal { grid-column: 1 / -1; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-hero { padding: 36px 0 48px; }
  .nav li:not(:last-child):not(.nav__lang) { display: none; }
}

/* Illustrationer (egna, animerade SVG-scener) */
.scene, .vision { --l: #4f6478; --body: #16202a; overflow: visible; }
.scene {
  display: block; width: calc(100% + 72px); max-width: none; height: auto; margin: -36px -36px 28px;
  border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
  background:
    radial-gradient(420px 180px at 50% 35%, rgba(60, 195, 240, 0.11), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.3px) 0 0 / 22px 22px,
    #111921;
}
.vision-wrap { margin: 0 0 12px; padding: 24px 12px 8px; border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(600px 260px at 50% 60%, rgba(60, 195, 240, 0.1), transparent 70%), radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.3px) 0 0 / 24px 24px, #111921; }
.vision { display: block; width: 100%; height: auto; }

.scene .l, .scene .lc, .scene .lg, .scene .la, .vision .l, .vision .lc {
  fill: none; stroke: var(--l); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.scene .lc, .vision .lc { stroke: var(--cyan); }
.scene .lg { stroke: var(--green); }
.scene .la { stroke: var(--amber); }
.scene .b, .vision .b { fill: var(--body); }
.scene .fc, .vision .fc { fill: var(--cyan); }
.scene .fg { fill: var(--green); }
.scene .fa { fill: var(--amber); }
.scene .fr, .vision .fr { fill: var(--red); }
.scene .fm { fill: #2c3c4c; }
.scene .b2 { fill: var(--ink); }
.scene .faint { opacity: 0.45; }
.scene .t, .vision .t { fill: #7f93a6; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; font-family: inherit; }
.scene .road { fill: none; stroke: #223140; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.scene .glow { opacity: 0.16; }
.vision .dome { fill: none; stroke: var(--cyan); stroke-width: 2.5; stroke-dasharray: 10 8; }
.vision .dome-fill { fill: rgba(60, 195, 240, 0.06); }
.vision .win { fill: #2c3c4c; }
.vision .win.tw { fill: var(--amber); opacity: 0.75; }

/* Rörelser */
.blink { animation: sc-blink 1.8s ease-in-out infinite; }
.flow { stroke-dasharray: 3 12; animation: sc-flow 1s linear infinite; }
.ring { transform-box: fill-box; transform-origin: center; animation: sc-ring 3s ease-out infinite; }
.float { animation: sc-float 3.6s ease-in-out infinite; }
.sweep { transform-box: view-box; transform-origin: 360px 115px; animation: sc-spin 4s linear infinite; }
.grow { transform-box: fill-box; transform-origin: 50% 100%; animation: sc-grow 4.5s ease-in-out infinite; }
.steam { animation: sc-steam 3s ease-in-out infinite; }
.scan { animation: sc-scan 2.6s ease-in-out infinite; }
.prog { transform-box: fill-box; transform-origin: 0 50%; animation: sc-prog 4s ease-in-out infinite; }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sc-sway 5s ease-in-out infinite; }
.wave { transform-box: fill-box; transform-origin: 0 50%; animation: sc-wave 2.4s ease-in-out infinite; }
.glow { animation: sc-glow 3s ease-in-out infinite; }
.pan { transform-box: view-box; transform-origin: 256px 100px; animation: sc-pan 7s ease-in-out infinite; }
.threat { transform-box: fill-box; animation: sc-threat 4.5s ease-in infinite; }
.tw { animation: sc-tw 5s ease-in-out infinite; }
.vision .dome { animation: sc-dash 6s linear infinite; }
.mile { animation: sc-mile 6s ease-in-out infinite; }
.m1 { animation-delay: 0.9s; } .m2 { animation-delay: 1.8s; } .m3 { animation-delay: 2.7s; }
.d1 { animation-delay: -0.4s; } .d2 { animation-delay: -1s; } .d3 { animation-delay: -1.6s; } .d4 { animation-delay: -2.2s; } .d5 { animation-delay: -2.9s; }

@keyframes sc-blink { 50% { opacity: 0.2; } }
@keyframes sc-flow { to { stroke-dashoffset: -15; } }
@keyframes sc-ring { 0% { transform: scale(0.55); opacity: 0; } 25% { opacity: 0.7; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes sc-float { 50% { transform: translateY(-7px); } }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@keyframes sc-grow { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
@keyframes sc-steam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes sc-scan { 50% { transform: translateY(52px); } }
@keyframes sc-prog { 0% { transform: scaleX(0.05); } 70%, 100% { transform: scaleX(1); } }
@keyframes sc-sway { 50% { transform: rotate(4deg); } }
@keyframes sc-wave { 50% { transform: scaleX(0.82); } }
@keyframes sc-glow { 50% { opacity: 0.42; } }
@keyframes sc-pan { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
@keyframes sc-threat { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 72% { transform: translate(var(--dx), var(--dy)); opacity: 1; } 84%, 100% { transform: translate(var(--dx), var(--dy)) scale(2.4); opacity: 0; } }
@keyframes sc-tw { 0%, 100% { opacity: 0.75; } 45% { opacity: 0.2; } }
@keyframes sc-dash { to { stroke-dashoffset: -180; } }
@keyframes sc-mile { 0%, 8% { fill: var(--body); } 18%, 85% { fill: var(--cyan); } 95%, 100% { fill: var(--body); } }

/* Spela bara upp när scenen syns */
.js .scene:not(.is-live) *, .js .vision:not(.is-live) * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .threat { display: none; } }

@media (max-width: 860px) {
  .scene { width: calc(100% + 48px); margin: -24px -24px 22px; }
  .vision-wrap { padding: 14px 4px 4px; }
}

.about__link { margin-top: 22px; color: var(--muted); }

/* Nyhetsflöde */
.news { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.news[hidden] { display: none; }
.news__in { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.news__label { flex: none; display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; }
.news__sub { color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: none; font-size: 14px; margin-left: -6px; }
.news__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red, #ff5d5d); box-shadow: 0 0 10px rgba(255, 93, 93, 0.7); animation: sc-blink 1.8s ease-in-out infinite; }
.news__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.news__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; }
.news.is-moving .news__track { animation: news-roll var(--news-dur, 120s) linear infinite; }
.news.is-moving .news__viewport:hover .news__track, .news.is-moving .news__viewport:focus-within .news__track, .news.is-paused .news__track { animation-play-state: paused; }
.news__item { display: flex; align-items: baseline; gap: 12px; padding: 0 34px; white-space: nowrap; border-left: 1px solid var(--line); }
.news__item a { color: var(--text, #e7eef5); text-decoration: none; font-weight: 600; font-size: 17px; }
.news__item a:hover, .news__item a:focus-visible { color: var(--cyan); text-decoration: underline; }
.news__src { color: var(--muted); font-size: 13.5px; }
@keyframes news-roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .news__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 860px) {
  .news__in { gap: 14px; min-height: 60px; }
  .news__item a { font-size: 16px; }
  .news__sub { display: none; }
  .news__item { padding: 0 20px; }
}

/* Om mig med porträtt */
.narrow > .about { max-width: none; }
.about { display: grid; grid-template-columns: 260px minmax(0, 740px); gap: 56px; align-items: start; }
.about__text > * { max-width: 740px; }
.about__photo { margin: 6px 0 0; position: relative; }
.about__photo::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 195, 240, 0.22), transparent 72%); z-index: 0; }
.about__photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--cyan); box-shadow: 0 0 0 7px rgba(60, 195, 240, 0.12), 0 24px 60px rgba(0, 0, 0, 0.5); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about__photo { width: 190px; }
}

/* Kontaktknappar: e-post och telefon */
.contact { display: flex; flex-wrap: wrap; gap: 12px; }
