/* ============================================================
   Delta Akustik AB — Redesign
   digital M. (Lumen) · 2026-07-20
   Signaturelement: frekvenssvarskurva (soundwave) + delta-markör
   Typografi: Familjen Grotesk (display) · Inter (brödtext) · IBM Plex Mono (data)
   ============================================================ */

:root {
  /* Brand — övertagna exakt från akustiker.se, moderniserat */
  --petrol-900: #0A2530;
  --petrol-800: #0E313F; /* primär */
  --petrol-700: #12414F;
  --teal-600:   #267287; /* sekundär */
  --teal-500:   #2F869E;
  --teal-400:   #44B0D4; /* ljus accent / kurva */
  --red-500:    #A8564E; /* CTA, dämpad terrakotta (vit text 5.1:1 AA) */
  --red-600:    #8C4038; /* CTA hover (vit text 7.2:1) */

  --ink:      #171717;
  --ink-60:   #4A555B;
  --white:    #FFFFFF;
  --paper:    #F2F6F8; /* ljus kall yta */
  --paper-2:  #E7EFF2;
  --line:     #DDE7EB;
  --line-dark: rgba(255,255,255,.14);

  --font-display: "Familjen Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(14,49,63,.06), 0 4px 16px rgba(14,49,63,.06);
  --shadow-md: 0 8px 30px rgba(14,49,63,.12);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { background: var(--white); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: transparent;
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-400); }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--petrol-800); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--teal-400); color: var(--petrol-900); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--petrol-800); color: #DCE7EB; }
.section--dark h1,.section--dark h2,.section--dark h3 { color: #fff; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-600);
  display: inline-flex; align-items: center; gap: .6em;
  margin: 0 0 1.1em;
}
.section--dark .eyebrow { color: var(--teal-400); }
.eyebrow::before {
  content: ""; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 9px solid currentColor; display: inline-block;
}
.h-xl { font-size: clamp(2.3rem, 5.2vw, 4rem); }
.h-lg { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h-md { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-60); max-width: 60ch; }
.section--dark .lead { color: #AFC4CC; }
.measure { max-width: 68ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--red-500); --fg: #fff;
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .85em 1.5em; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bg);
  cursor: pointer; transition: all .22s var(--ease); letter-spacing: .01em;
}
.btn:hover { background: var(--red-600); border-color: var(--red-600); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(140,64,56,.28); }
.btn svg { width: 18px; height: 18px; }
.btn--ghost { --bg: transparent; --fg: var(--petrol-800); border-color: var(--line); }
.btn--ghost:hover { background: var(--petrol-800); border-color: var(--petrol-800); color: #fff; box-shadow: none; }
/* Ghost-knappar på mörk bakgrund: ljus text i VILOLÄGE (WCAG AA), hover inverterar.
   Mörka kontexter: hero, sid-hero, CTA-band, mörka sektioner, footer. */
.hero .btn--ghost, .phero .btn--ghost, .cta-band .btn--ghost,
.section--dark .btn--ghost, .footer .btn--ghost {
  --fg: #fff; border-color: rgba(255,255,255,.42);
}
.hero .btn--ghost:hover, .phero .btn--ghost:hover, .cta-band .btn--ghost:hover,
.section--dark .btn--ghost:hover, .footer .btn--ghost:hover {
  background: #fff; color: var(--petrol-800); border-color: #fff;
}
/* Undantag: vita overlays (mic-dialog) behåller ljus-kontext-stilen även om de nästlas */
.micdlg .btn--ghost { --fg: var(--petrol-800); border-color: var(--line); }
.micdlg .btn--ghost:hover { background: var(--petrol-800); border-color: var(--petrol-800); color: #fff; }
.btn--onDark { --bg: var(--teal-400); --fg: var(--petrol-900); border-color: var(--teal-400); }
.btn--onDark:hover { background: #fff; border-color: #fff; color: var(--petrol-900); box-shadow: 0 8px 22px rgba(68,176,212,.3); }
.link-arrow { font-family: var(--font-body); font-weight: 600; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- topbar ---------- */
.topbar {
  background: var(--petrol-900); color: #9FB6BF;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1em; min-height: 38px; padding-block: 6px; }
.topbar a { color: #C6D6DC; }
.topbar a:hover { color: var(--teal-400); }
.topbar__loc { display: flex; gap: 1.4em; flex-wrap: wrap; }
.topbar__loc span { color: #6E8891; }
@media (max-width: 760px){ .topbar__loc { display: none; } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1.2em; }
.brand { display: flex; align-items: center; gap: .7em; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }
.brand__mark { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--petrol-800); font-weight: 500; font-size: .97rem; padding: .55em .85em; border-radius: var(--radius); position: relative; }
.nav a:hover { color: var(--teal-600); background: var(--paper); }
.nav a[aria-current="page"] { color: var(--teal-600); }
.nav a[aria-current="page"]::after { content:""; position:absolute; left:.85em; right:.85em; bottom:.28em; height:2px; background: var(--teal-400); border-radius:2px; }
.nav__has { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all .2s var(--ease);
}
.nav__has:hover .nav__panel, .nav__has:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__panel a { display: flex; flex-direction: column; gap: 1px; padding: .6em .75em; }
.nav__panel a span { font-size: .78rem; color: var(--ink-60); font-weight: 400; }
.nav__panel a:hover span { color: var(--teal-600); }
.header__cta { display: flex; align-items: center; gap: .6em; }
.header__cta .btn { padding: .6em 1.1em; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--radius); width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--petrol-800); }

@media (max-width: 980px){
  .nav, .header__cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__cta { gap: .35em; }
}

/* ---------- language switcher ---------- */
.lang { display: inline-flex; align-items: center; gap: .15em; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; }
.lang__opt { color: var(--ink-60); font-weight: 600; padding: .45em .55em; border-radius: var(--radius); line-height: 1; }
.lang__opt:hover { color: var(--teal-600); background: var(--paper); }
.lang__opt.is-active { color: var(--petrol-800); }
.lang__opt.is-active:hover { background: transparent; cursor: default; }
.lang__sep { color: var(--line); }
@media (max-width: 980px){ .lang__opt { padding: .6em .55em; } }
/* switcher inside dark mobile drawer */
.drawer__lang { display: flex; align-items: center; gap: .3em; margin: 4px 0 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.drawer__lang .lang__opt { color: #B8CCD4; padding: .5em .7em; font-family: var(--font-mono); font-size: .85rem; }
.drawer__lang .lang__opt:hover { color: var(--teal-400); background: rgba(255,255,255,.05); }
.drawer__lang .lang__opt.is-active { color: var(--teal-400); }
.drawer__lang .lang__sep { color: var(--line-dark); }

/* ---------- mobile polish ---------- */
@media (max-width: 560px){
  .header .wrap { gap: .5em; }
  .brand img { height: 21px; }
  .lang { font-size: .74rem; }
  .lang__opt { padding: .6em .4em; }
  .header__cta { gap: .2em; }
  .hero .wrap { padding-block: clamp(56px,10vw,96px) clamp(72px,12vw,120px); }
  .hero__meta { gap: .7em 1.3em; margin-top: 2.2em; }
  .hero__cta { margin-top: 1.9em; }
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
  .cookie .btn, .cookie__decline { flex: 1 1 auto; justify-content: center; min-height: 46px; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer[aria-hidden="false"] { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10,37,48,.5); opacity: 0; transition: opacity .3s var(--ease); }
.drawer[aria-hidden="false"] .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: var(--petrol-800); color: #fff; padding: 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.drawer[aria-hidden="false"] .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer__head img { height: 24px; }
.drawer__close { background: none; border: none; color: #fff; cursor: pointer; padding: 6px; }
.drawer__close svg { width: 26px; height: 26px; }
.drawer a { color: #DCE7EB; font-family: var(--font-display); font-size: 1.2rem; padding: .5em 0; border-bottom: 1px solid var(--line-dark); }
.drawer a:hover { color: var(--teal-400); }
.drawer__sub { font-family: var(--font-mono) !important; font-size: .82rem !important; color: #8FA9B2 !important; padding-left: 14px !important; }
.drawer .btn { margin-top: 18px; justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--petrol-800); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(68,176,212,.20), transparent 60%),
    radial-gradient(760px 460px at 8% 108%, rgba(38,114,135,.28), transparent 62%),
    linear-gradient(180deg, var(--petrol-800), var(--petrol-900));
}
.hero__grid-lines { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 42px; mask-image: linear-gradient(180deg, transparent, #000 40%, #000 82%, transparent);
}
.hero__wave { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; width: 100%; height: 62%; }
.hero__wave path { vector-effect: non-scaling-stroke; }
.hero .wrap { position: relative; padding-block: clamp(72px, 12vw, 150px) clamp(96px, 14vw, 176px); }
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--teal-400); }
.hero__lead { font-size: clamp(1.1rem, 1.9vw, 1.4rem); color: #B8CCD4; max-width: 54ch; margin-top: .3em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2.2em; }
.hero__meta { display: flex; gap: 1.8em; flex-wrap: wrap; margin-top: 3em; font-family: var(--font-mono); font-size: .78rem; color: #8FA9B2; letter-spacing: .04em; }
.hero__meta b { color: var(--teal-400); font-weight: 600; }

/* animated dot on wave */
@keyframes tracewave { to { stroke-dashoffset: 0; } }
.hero__wave .lead-line { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: tracewave 3.4s var(--ease) .3s forwards; }

/* ---------- stats strip ---------- */
.stats { background: var(--petrol-900); color: #fff; border-top: 1px solid var(--line-dark); }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stats__cell { padding: clamp(28px,4vw,46px) clamp(16px,2vw,28px); border-right: 1px solid var(--line-dark); }
.stats__cell:last-child { border-right: none; }
.stats__num { font-family: var(--font-display); font-size: clamp(2rem,3.4vw,2.9rem); font-weight: 600; color: var(--teal-400); line-height: 1; letter-spacing: -.02em; }
.stats__num small { font-size: .5em; color: #B8CCD4; }
.stats__label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #8FA9B2; margin-top: .8em; }
@media (max-width: 860px){ .stats__grid { grid-template-columns: repeat(2,1fr); }
  .stats__cell:nth-child(2){border-right:none;} .stats__cell{border-bottom:1px solid var(--line-dark);}
  .stats__cell:nth-child(5){grid-column:1 / -1; border-right:none;} }

/* ---------- section head ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(38px,5vw,60px); }
.sec-head--between { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2em; flex-wrap: wrap; }

/* ---------- services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: .5em;
  padding: 30px 28px 26px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); transition: all .25s var(--ease); overflow: hidden;
}
.svc::after { content:""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--teal-400); transition: width .3s var(--ease); }
.svc:hover { transform: translateY(-4px); border-color: var(--teal-400); box-shadow: var(--shadow-md); }
.svc:hover::after { width: 100%; }
.svc__ico { width: 44px; height: 44px; border-radius: 9px; background: var(--paper); color: var(--teal-600); display: grid; place-items: center; margin-bottom: .6em; transition: all .25s var(--ease); }
.svc:hover .svc__ico { background: var(--petrol-800); color: var(--teal-400); }
.svc__ico svg { width: 24px; height: 24px; }
.svc__num { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: .72rem; color: #A9BEC6; letter-spacing: .05em; }
.svc h3 { font-size: 1.24rem; margin: 0; }
.svc p { font-size: .95rem; color: var(--ink-60); margin: 0; }
.svc__link { margin-top: auto; padding-top: .8em; font-size: .88rem; color: var(--teal-600); font-weight: 600; display: inline-flex; gap: .35em; align-items: center; }
.svc__link svg { width: 15px; height: 15px; }
.svc--soon .svc__num::after { content: " · KOMMANDE"; color: var(--red-500); }
@media (max-width: 900px){ .svc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .svc-grid { grid-template-columns: 1fr; } }

/* ---------- soundline divider ---------- */
.soundline { width: 100%; height: 40px; color: var(--teal-400); opacity: .8; }
.soundline path { vector-effect: non-scaling-stroke; }

/* ---------- referens / projekt ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.proj-grid--feat { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.proj {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--petrol-800); aspect-ratio: 4/3; box-shadow: var(--shadow-sm);
}
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj:hover img { transform: scale(1.06); }
.proj::before { content:""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,37,48,0) 22%, rgba(10,37,48,.55) 55%, rgba(10,37,48,.94) 100%); }
.proj__cap { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.proj__tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-400); display: block; margin-bottom: .4em; text-shadow: 0 1px 6px rgba(10,37,48,.6); }
/* Karttitlar: alltid vit text på mörk scrim, oavsett rubriknivå (h2 på översikter, h3 på startsidan) */
.proj__cap h2, .proj__cap h3 { color: #fff; font-size: 1.12rem; margin: 0; line-height: 1.16; font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(10,37,48,.55); }
.proj--wide { grid-column: span 2; }
.proj--tall { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 900px){ .proj-grid, .proj-grid--feat { grid-template-columns: repeat(2,1fr); }
  .proj--wide, .proj--tall { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; } }
@media (max-width: 520px){ .proj-grid, .proj-grid--feat { grid-template-columns: 1fr; } }

/* ---------- split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,72px); align-items: center; }
.split--media-right .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } .split--media-right .split__media { order: 0; } }

/* mono spec list (norms / data) */
.specs { list-style: none; margin: 1.4em 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.specs li { font-family: var(--font-mono); font-size: .86rem; color: var(--ink); background: var(--paper); border-left: 3px solid var(--teal-400); padding: .7em .95em; border-radius: 0 var(--radius) var(--radius) 0; }
.specs li b { color: var(--teal-600); }
.section--dark .specs li { background: rgba(255,255,255,.05); color: #DCE7EB; }

/* chip row */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 1.4em; }
.chip { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; padding: .5em .85em; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-60); background: #fff; }
.section--dark .chip { border-color: var(--line-dark); color: #B8CCD4; background: rgba(255,255,255,.03); }

/* ---------- feature list (checks) ---------- */
.feat-list { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: .7em; }
.feat-list li { display: flex; gap: .7em; align-items: flex-start; font-size: 1rem; }
.feat-list svg { width: 20px; height: 20px; color: var(--teal-600); flex-shrink: 0; margin-top: 3px; }
.section--dark .feat-list svg { color: var(--teal-400); }

/* ---------- knowledge cards ---------- */
.know-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.know {
  display: flex; flex-direction: column; gap: .5em; padding: 26px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: all .25s var(--ease);
}
.know:hover { border-color: var(--teal-400); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.know__kicker { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-600); }
.know h3 { font-size: 1.14rem; margin: .1em 0 .2em; }
.know p { font-size: .93rem; color: var(--ink-60); margin: 0 0 .4em; }
@media (max-width: 860px){ .know-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--petrol-800); color: #fff; overflow: hidden; isolation: isolate; }
.cta-band::before { content:""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 340px at 88% 0%, rgba(68,176,212,.22), transparent 62%), linear-gradient(180deg,var(--petrol-800),var(--petrol-900)); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2.4em; flex-wrap: wrap; padding-block: clamp(48px,6vw,80px); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem,3.4vw,2.7rem); margin: 0; max-width: 20ch; }
.cta-band p { color: #B8CCD4; margin: .6em 0 0; max-width: 42ch; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- team teaser ---------- */
.team-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.tcard__av { width: 54px; height: 54px; border-radius: 50%; background: var(--petrol-800); color: var(--teal-400); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: .8em; }
.tcard h3 { font-size: 1.05rem; margin: 0 0 .1em; }
.tcard__role { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-60); letter-spacing: .03em; }
.tcard__contact { margin-top: .8em; font-size: .88rem; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 900px){ .team-strip { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .team-strip { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) ---------- */
.phero { position: relative; background: var(--petrol-800); color: #fff; overflow: hidden; isolation: isolate; }
.phero::before { content:""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 420px at 82% -10%, rgba(68,176,212,.16), transparent 60%), linear-gradient(180deg,var(--petrol-800),var(--petrol-900)); }
.phero .wrap { padding-block: clamp(48px,7vw,92px); }
.phero h1 { color: #fff; font-size: clamp(2.1rem,4.6vw,3.4rem); max-width: 20ch; }
.phero .lead { color: #B8CCD4; }
.crumbs { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .05em; color: #7F99A2; margin-bottom: 1.6em; display: flex; gap: .5em; flex-wrap: wrap; }
.crumbs a { color: #A9C2CB; }
.crumbs a:hover { color: var(--teal-400); }
.crumbs span { color: #566d76; }

/* ---------- prose ---------- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem,2.6vw,2rem); }
.prose h3 { margin-top: 1.4em; font-size: 1.25rem; }
.prose p, .prose li { color: #33424a; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .4em; }

/* two-col article layout */
.layout-2 { display: grid; grid-template-columns: 1fr 320px; gap: clamp(32px,5vw,64px); align-items: start; }
.aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.aside-card h3 { font-size: 1.1rem; margin: 0 0 .5em; }
.aside-card p { font-size: .92rem; color: var(--ink-60); margin: 0 0 1em; }
.aside-card .btn { width: 100%; justify-content: center; }
@media (max-width: 900px){ .layout-2 { grid-template-columns: 1fr; } .aside { position: static; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,64px); align-items: start; }
@media (max-width: 900px){ .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4em; }
.field label { font-size: .84rem; font-weight: 600; color: var(--petrol-800); }
.field label .req { color: var(--red-500); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: .8em .9em;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(68,176,212,.18); }
.field textarea { resize: vertical; min-height: 130px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { display: flex; gap: .6em; align-items: flex-start; font-size: .86rem; color: var(--ink-60); }
.form__consent input { margin-top: 4px; }
.form__note { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-60); }
.form-success { display: none; padding: 22px; background: #ECF6F0; border: 1.5px solid #B7DEC8; border-radius: var(--radius-lg); color: #1F5B3A; }
.form-success svg { width: 26px; height: 26px; color: #2E8B57; margin-bottom: .4em; }
.form.is-sent .form__body { display: none; }
.form.is-sent .form-success { display: block; }

.office-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 14px; background: #fff; }
.office-card h3 { font-size: 1.15rem; margin: 0 0 .3em; display: flex; align-items: center; gap: .5em; }
.office-card h3 svg { width: 18px; height: 18px; color: var(--teal-600); }
.office-card p { margin: 0; font-size: .95rem; color: var(--ink-60); }
.office-card a { font-weight: 600; }

/* ---------- team full ---------- */
.people { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.person { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: #fff; display: flex; gap: 14px; align-items: center; }
.person__av { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--teal-600); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; flex-shrink: 0; }
.person { align-items: flex-start; }
.person__info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.person__info a { word-break: break-word; }
.person b { display: block; font-size: 1rem; color: var(--petrol-800); }
.person span { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-60); }
.person a { font-size: .86rem; }
@media (max-width: 860px){ .people { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--petrol-900); color: #A9BEC6; padding-block: clamp(52px,7vw,80px) 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px 28px; }
.footer h4 { color: #fff; font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; margin: 0 0 1.2em; }
.footer__brand img { height: 26px; margin-bottom: 1em; }
.footer__brand p { font-size: .92rem; max-width: 34ch; color: #8FA9B2; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6em; }
.footer__links a { color: #B8CCD4; font-size: .94rem; }
.footer__links a:hover { color: var(--teal-400); }
.footer__loc { font-size: .9rem; line-height: 1.5; }
.footer__loc b { color: #DCE7EB; display: block; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; }
.footer__loc a { color: #B8CCD4; }
.footer__social { display: flex; gap: 10px; margin-top: 1.2em; }
.footer__social a { width: 40px; height: 40px; border: 1px solid var(--line-dark); border-radius: 8px; display: grid; place-items: center; color: #B8CCD4; }
.footer__social a:hover { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; margin-top: clamp(38px,5vw,56px); padding-top: 24px; border-top: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: .74rem; color: #6E8891; letter-spacing: .03em; }
.footer__bottom a { color: #8FA9B2; }
@media (max-width: 860px){ .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer__top { grid-template-columns: 1fr; } }

/* ---------- cookie banner ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 460px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 22px 24px; transform: translateY(140%); transition: transform .4s var(--ease); }
.cookie.is-visible { transform: translateY(0); }
.cookie h4 { font-size: 1.05rem; margin: 0 0 .4em; }
.cookie p { font-size: .88rem; color: var(--ink-60); margin: 0 0 1em; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: .6em 1.1em; font-size: .9rem; }
.cookie__decline { background: transparent; color: var(--petrol-800); border-color: var(--line); }
.cookie__decline:hover { background: var(--paper); color: var(--petrol-800); border-color: var(--line); box-shadow: none; transform: none; }

/* ---------- utilities ---------- */
.center { text-align: center; margin-inline: auto; }
.mt-l { margin-top: clamp(32px,4vw,52px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,48px); }
@media (max-width: 760px){ .grid-2 { grid-template-columns: 1fr; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red-500); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 6px 0; }
.skip:focus { left: 0; color: #fff; }

/* ============================================================
   BOLD MOTION LAYER — Lumen, 2026-07-20
   Vanilla CSS/JS (site is static, no React/build, no CDN).
   Signature: audio-waveform + equalizer motion in brand petrol/teal.
   All animations transform/opacity (GPU). Full prefers-reduced-motion
   handling at the very bottom.
   NB: 21st.dev Magic MCP was invoked for these sections (hero waveform,
   hover-reveal cards, marquee, counters) but returned invalid /
   [object Object] responses, so they are implemented in vanilla here.
   ============================================================ */

/* --- site-wide interactive waves backdrop (injected, fixed, non-interactive) --- */
.waves-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.waves-bg svg { display: block; width: 100%; height: 100%; }

/* --- scroll progress bar (injected) --- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; z-index: 100; background: linear-gradient(90deg, var(--teal-600), var(--teal-400) 60%, var(--red-500)); will-change: transform; }

/* --- floating gradient orbs (injected into hero / phero / cta-band) --- */
.fx-orbs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; will-change: transform; }
.fx-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; will-change: transform; }
.fx-orb--1 { width: 46vw; max-width: 520px; aspect-ratio: 1; left: -9%; top: -16%; background: radial-gradient(circle at 30% 30%, rgba(68,176,212,.55), transparent 70%); animation: orbA 19s var(--ease) infinite alternate; }
.fx-orb--2 { width: 42vw; max-width: 480px; aspect-ratio: 1; right: -8%; bottom: -22%; background: radial-gradient(circle at 60% 40%, rgba(38,114,135,.6), transparent 70%); animation: orbB 24s var(--ease) infinite alternate; }
.fx-orb--3 { width: 24vw; max-width: 300px; aspect-ratio: 1; right: 26%; top: 6%; background: radial-gradient(circle, rgba(168,86,78,.24), transparent 70%); animation: orbA 28s var(--ease) infinite alternate; }
@keyframes orbA { to { transform: translate3d(9%, 11%, 0) scale(1.16); } }
@keyframes orbB { to { transform: translate3d(-11%, -9%, 0) scale(1.22); } }

/* --- equalizer bars (injected into main hero, the "sound" signature) --- */
.fx-eq { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(80px, 16vw, 150px); display: flex; align-items: flex-end; gap: 4px; padding: 0 4px; z-index: -1; opacity: .3; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.fx-eq span { flex: 1 1 auto; min-width: 2px; height: 100%; transform-origin: 50% 100%; transform: scaleY(.14); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--teal-400), var(--teal-600)); animation: eq 1.4s ease-in-out infinite; will-change: transform; }
@keyframes eq { 0%, 100% { transform: scaleY(.14); } 50% { transform: scaleY(1); } }

/* --- animated gradient headline accent --- */
.hero h1 em { background: linear-gradient(90deg, var(--teal-400), #86d4ea, var(--teal-400)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6.5s linear infinite; }
@keyframes sheen { to { background-position: 220% 0; } }

/* --- continuous hero wave pulse + bob (overrides single-run trace) --- */
.hero__wave { animation: waveBob 9s var(--ease) infinite alternate; }
@keyframes waveBob { to { transform: translateY(-10px); } }
.hero__wave .lead-line { stroke-dasharray: 130 2600; stroke-dashoffset: 2730; animation: tracewave 6s linear infinite; }
@keyframes tracewave { from { stroke-dashoffset: 2730; } to { stroke-dashoffset: 0; } }

/* --- service cards: hover-reveal spotlight + micro-motion --- */
.svc { --mx: 50%; --my: 50%; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(240px circle at var(--mx) var(--my), rgba(68,176,212,.16), transparent 62%); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.svc:hover::before { opacity: 1; }
.svc > * { position: relative; z-index: 1; }
.svc__ico { transition: transform .3s var(--ease), background .25s var(--ease), color .25s var(--ease); }
.svc:hover .svc__ico { transform: translateY(-3px) rotate(-7deg) scale(1.07); }
.svc__link { transform: translateX(-4px); opacity: .72; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.svc:hover .svc__link { transform: translateX(0); opacity: 1; }

/* --- magnetic buttons + light sweep --- */
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn::after { content: ""; position: absolute; top: 0; left: -125%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events: none; }
.btn:hover::after { left: 135%; }

/* --- infinite marquee / reference ticker --- */
.marquee { position: relative; overflow: hidden; background: var(--petrol-900); border-block: 1px solid var(--line-dark);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 36s linear infinite; will-change: transform; }
.marquee__group { display: flex; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: .8em; padding: 17px 26px; font-family: var(--font-mono); font-size: .88rem; letter-spacing: .05em; color: #B8CCD4; white-space: nowrap; }
.marquee__item::before { content: ""; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--teal-400); display: inline-block; flex: none; }
.marquee__item b { color: #fff; font-weight: 600; letter-spacing: .02em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- reveal: add blur-in + directional variants --- */
.reveal { filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.reveal.in { filter: none; }
.reveal--left { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }
.reveal--scale { transform: scale(.93); }

/* --- location cards (home teaser + contact) --- */
.loc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.loc-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px; overflow: hidden; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.loc-card::after { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 3px; background: var(--teal-400); transition: width .3s var(--ease); }
.loc-card:hover { transform: translateY(-4px); border-color: var(--teal-400); box-shadow: var(--shadow-md); }
.loc-card:hover::after { width: 100%; }
.loc-card__city { display: flex; align-items: center; gap: .45em; font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; color: var(--petrol-800); margin: 0 0 .25em; letter-spacing: -.01em; }
.loc-card__city svg { width: 18px; height: 18px; color: var(--teal-600); flex: none; }
.loc-card__region { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); margin: 0 0 1.1em; }
.loc-card__contact { display: flex; flex-direction: column; gap: .25em; font-size: .95rem; }
.loc-card__contact a { font-weight: 600; }
@media (max-width: 900px){ .loc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .loc-grid { grid-template-columns: 1fr; } }

/* --- live microphone waveform (opt-in) --- */
.mic { margin-top: 1.9em; display: flex; align-items: center; gap: .9em 1.1em; flex-wrap: wrap; }
.mic__toggle svg { width: 18px; height: 18px; }
.mic__status { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .03em; color: #9FB6BF; display: none; align-items: center; gap: .5em; }
.mic.is-live .mic__status, .mic.is-fallback .mic__status { display: inline-flex; }
.mic__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-500); flex: none; box-shadow: 0 0 0 0 rgba(168,86,78,.55); animation: micpulse 1.5s ease-out infinite; }
.mic.is-fallback .mic__dot { background: #6E8891; animation: none; }
@keyframes micpulse { to { box-shadow: 0 0 0 9px rgba(168,86,78,0); } }

.micdlg { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility .3s var(--ease); }
.micdlg[aria-hidden="false"] { visibility: visible; opacity: 1; }
.micdlg__scrim { position: absolute; inset: 0; background: rgba(10,37,48,.62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.micdlg__panel { position: relative; max-width: 470px; width: 100%; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 30px 28px; transform: translateY(12px) scale(.98); transition: transform .3s var(--ease); }
.micdlg[aria-hidden="false"] .micdlg__panel { transform: none; }
.micdlg__ico { width: 46px; height: 46px; border-radius: 11px; background: var(--paper); color: var(--teal-600); display: grid; place-items: center; margin-bottom: .8em; }
.micdlg__ico svg { width: 24px; height: 24px; }
.micdlg h3 { margin: 0 0 .4em; }
.micdlg > .micdlg__panel > p { font-size: .96rem; color: #33424a; margin: 0 0 1em; }
.micdlg__list { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: .55em; }
.micdlg__list li { display: flex; gap: .6em; align-items: flex-start; font-size: .92rem; color: #33424a; }
.micdlg__list svg { width: 18px; height: 18px; color: #2E8B57; flex: none; margin-top: 2px; }
.micdlg__disclaimer { font-family: var(--font-mono); font-size: .74rem; line-height: 1.5; color: var(--ink-60); background: var(--paper); border-left: 3px solid var(--teal-400); padding: .75em .95em; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.3em; }
.micdlg__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.micdlg__actions .btn { flex: 1 1 auto; justify-content: center; }

/* live-driven equalizer bars */
.fx-eq--live { opacity: .55; }
.fx-eq--live span { animation: none; transition: transform .09s linear; }

/* ============================================================
   prefers-reduced-motion: switch off all decorative motion,
   keep everything visible and usable.
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  .mic__dot { animation: none; }
  .fx-eq--live span { transition: none; }
  .fx-orb, .fx-eq span, .hero__wave, .hero__wave .lead-line, .hero h1 em, .marquee__track { animation: none !important; }
  .hero h1 em { background: none; -webkit-text-fill-color: currentColor; color: var(--teal-400); }
  .fx-eq span { transform: scaleY(.5); }
  .btn::after { display: none; }
  .scroll-progress { display: none; }
  .reveal { filter: none; }
  .marquee__track { transform: none; }
  .marquee__group:nth-child(2) { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; }
}

/* ---------- knowledge articles ---------- */
.prose--center { margin-inline: auto; }
.prose .fig-note { font-size: .88rem; color: var(--ink-60); border-left: 3px solid var(--line); padding-left: 12px; margin: 1.2em 0; }
.byline { margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.byline p { font-size: .9rem; color: var(--ink-60); margin: 0 0 .3em; }

/* ---------- team med kontorsfilter ---------- */
.person__photo { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--paper); }
.person.is-hidden { display: none; }
.tfilter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.tfilter__btn {
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  padding: .55em 1.1em; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--petrol-800); border: 1.5px solid var(--line);
  transition: all .18s var(--ease);
}
.tfilter__btn span { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-60); margin-left: .35em; }
.tfilter__btn:hover { border-color: var(--teal-600); color: var(--teal-600); }
.tfilter__btn.is-active { background: var(--petrol-800); color: #fff; border-color: var(--petrol-800); }
.tfilter__btn.is-active span { color: var(--teal-400); }
@media (max-width: 520px){ .tfilter { gap: 8px; } .tfilter__btn { font-size: .86rem; padding: .5em .9em; } }

/* ---------- artikel-figurer ---------- */
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; max-width: 640px; height: auto; border-radius: 10px; display: block; }
.prose figcaption { font-size: .85rem; color: var(--ink-60); margin-top: .55em; }
.prose .fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px){ .prose .fig-pair { grid-template-columns: 1fr; } }
.prose audio { width: 100%; max-width: 640px; margin: 1.2em 0 .4em; display: block; }

/* ---------- nedladdningar ---------- */
.dl-list { list-style: none; padding: 0; margin: 0; max-width: 640px; }
.dl-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.dl-list a { font-weight: 600; }
.dl-list span { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-60); white-space: nowrap; }
