/* alexanderakerberg.se – ett stilark, inga beroenden
   Palett: marinblå #0A1428 (bas) · guld #A48843/#C9AC64 (enda accenten) · ljus text #E9EDF4
   Test 2026-08-26: försiktiga runda hörn (se --radius) ersätter tidigare "inga rundade hörn". */

/* Djup royal marinblå är huvudbakgrund i båda färglägena.
   Färglära: alla neutraler tonas mot basens kulör (blå ~220°) så paletten
   hänger ihop – varma gråtoner på kall botten skorrar. Guld är enda
   varma accenten och får därför maximal lyskraft. */
:root {
  --bg: #0A1428;           /* djup royal marinblå – basen */
  --ink: #E9EDF4;          /* nästan vitt, svalt tonat mot blå */
  --muted: #96A2BB;        /* sekundärtext – blågrå, samma kulör som basen */
  --accent: #C9AC64;       /* länkar – guld, enda varma tonen */
  --accent-ink: #DCC384;   /* länk-hover – ljusare guld */
  --gold: #C9AC64;         /* etiketter, årtal, kickers */
  --btn-bg: #A48843;       /* knapp – mättad guld */
  --btn-ink: #0A1428;      /* knapptext – basens mörka blå */
  --card: #111E38;         /* kortyta – ett steg ljusare än basen, samma kulör */
  --line: #26345A;         /* linjer – ytterligare ett steg, aldrig ren grå */
  --max: 1080px;
  --radius: 4px;           /* försiktig rundning, test 2026-08-26 */
}

::selection { background: #C9AC64; color: #0A1428; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--accent-ink); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 750; margin-bottom: .6em; }
h3 { font-size: 1.35rem; font-weight: 700; }

main, .topbar, footer > p { max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

section { padding-block: 64px; scroll-margin-top: 64px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--gold); font-weight: 700; margin-bottom: 10px;
}

/* Topbar – sticky med diskret blur */
.topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-block: 16px;
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 20, 40, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  max-width: none; padding-inline: max(24px, calc((100vw - var(--max)) / 2));
}
.topbar .logo { grid-column: 1; justify-self: start; }
.topbar #site-nav { grid-column: 2; justify-self: center; }
.topbar .nav-toggle { grid-column: 3; justify-self: end; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 20;
  background: var(--gold); color: var(--bg); padding: 10px 18px; font-weight: 700;
}
.skip-link:focus { left: 0; }
.topbar .logo {
  display: flex; align-items: center; text-decoration: none; color: var(--gold);
  transition: color .15s ease;
}
.topbar .logo:hover { color: var(--accent-ink); }
.logo-mark { height: 56px; width: auto; color: inherit; transition: height .25s ease; }
.topbar.is-scrolled .logo-mark { height: 34px; }
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar nav a, .topbar .lang {
  text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 550;
}
.topbar nav a:hover, .topbar .lang:hover { color: var(--accent); }
.topbar .lang { margin-left: auto; border: 1px solid var(--line); padding: 4px 14px; }

/* Hero */
.hero {
  position: relative; overflow: visible;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  padding-block: 64px 4px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 75% at 85% 30%, rgba(201, 172, 100, .12), transparent 65%);
}
.hero-mark {
  position: absolute; top: 50%; left: -9%; transform: translateY(-50%);
  width: 62vw; max-width: 760px; height: auto;
  color: var(--gold); opacity: .05;
  pointer-events: none; z-index: 0;
  overflow: visible;
}
.hero-text, .hero-img { position: relative; z-index: 1; }
.hero-hl { color: var(--gold); }
.hero-img { display: flex; flex-direction: column; align-items: center; }
.hero-tag {
  margin-top: -18px; z-index: 1;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 18px; font-size: .8rem; color: var(--muted);
  display: flex; flex-direction: column; gap: 2px; text-align: center;
}
.hero-tag span { color: var(--gold); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero-text { animation: hero-rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.hero-img { animation: hero-rise .8s cubic-bezier(.16, 1, .3, 1) .12s both; }
@media (max-width: 900px) { .hero-mark { width: 80vw; left: -18%; } }
@media (max-width: 760px) { .hero-mark { display: none; } }
.kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  color: var(--gold); font-weight: 700; margin-bottom: 12px;
}
.lede { font-size: 1.2rem; color: var(--muted); margin-top: 20px; max-width: 34em; }
.hero-offer { margin-top: 16px; max-width: 36em; font-weight: 600; color: var(--ink); }
.hero-img { position: relative; }
.hero-img button {
  display: block; width: min(100%, 420px); margin-inline: auto; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative; z-index: 1;
}
.hero-img img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%;
  height: auto; display: block; border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(201, 172, 100, .22);
}
.hero-img button:active img { transform: scale(.985); }

/* Bevisband */
.proof {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding-block: 16px 64px;
}
.proof div {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px 28px; text-align: center;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}
.proof div:hover,
.proof div.in-view {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(201, 172, 100, .09), var(--card) 60%);
}
.proof-badges { display: flex; align-items: center; justify-content: center; gap: 14px; height: 88px; align-self: center; }
.proof-badges img {
  height: 88px; width: auto;
  filter: grayscale(1) brightness(1.3) contrast(.9);
  transition: filter .6s ease;
}
.proof > div:hover .proof-badges img,
.proof > div.in-view .proof-badges img { filter: grayscale(0) brightness(1) contrast(1); }
.proof-icon { height: 72px; width: 72px; color: var(--gold); }
.proof strong { font-size: 1.65rem; letter-spacing: -0.015em; color: var(--ink); line-height: 1.2; }
.proof div > span { color: var(--muted); font-size: .88rem; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.proof strong span { font-size: inherit; color: inherit; }

/* Roller */
.section-intro { color: var(--muted); max-width: 40em; margin-bottom: 8px; }
.role {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 22px; margin-top: 22px;
  scroll-margin-top: 80px;
  transition: border-color .2s ease, transform .2s ease;
  position: relative;
}
.role-logo {
  position: absolute; top: 28px; right: 28px;
  height: 46px; width: auto; max-width: 220px; opacity: .9;
}
.role-body > .role-logo {
  position: static; display: block; height: 40px; margin-bottom: 16px;
}
#branneribolaget .role-body > .role-logo { height: 84px; margin-bottom: 18px; }
@media (max-width: 640px) { .role-logo { position: static; display: block; margin-bottom: 12px; } }
.role:hover, .role.in-view { border-color: var(--gold); transform: translateY(-2px); }
.role-body > p { max-width: 68ch; }
.role-meta { color: var(--gold); font-size: .9rem; font-weight: 650; margin: 4px 0 4px; }
.role-arrow { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }
.role p + p { margin-top: 10px; }
.role ul { margin: 12px 0 12px 1.2em; color: var(--muted); }
.role li { margin-bottom: 4px; }

/* Medaljvägg */
.medals { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.medals img { height: 62px; width: auto; }
.medals-note { color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* Om */
.about { display: block; }
.about p + p { margin-top: 12px; }
.facts { margin: 20px 0 0 1.2em; color: var(--muted); }
.facts li { margin-bottom: 6px; }

/* Profil i siffror */
.profil-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s ease, transform .2s ease;
}
.pcard:hover, .pcard.in-view { border-color: var(--gold); transform: translateY(-2px); }
.pcard-wide { grid-column: span 2; }
.pcard-full { grid-column: 1 / -1; }
.pcard h4 { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.ull-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 44px; }
.pcard-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 32px; }
.plist { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.plist li { color: var(--muted); font-size: .92rem; }
.plist strong { color: var(--ink); }
.pcard-cols ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.pcard-cols li { color: var(--muted); font-size: .88rem; }
.pcard h3 { font-size: 1.05rem; }
.pcard-src { color: var(--muted); font-size: .84rem; }

.pcard-summary {
  cursor: pointer; list-style: none; position: relative;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-right: 28px;
}
.pcard-summary::-webkit-details-marker { display: none; }
.pcard-summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-weight: 800; font-size: 1.2rem;
}
details[open] > .pcard-summary::after { content: "–"; }
.pcard-summary-name { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.pcard-summary-stat { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
details.pcard:not([open]) { gap: 0; }

.bars { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.bar-row { display: grid; grid-template-columns: 11em 1fr 3.4em; gap: 12px; align-items: center; }
.bar-label { font-size: .88rem; color: var(--muted); }
.bar { height: 10px; background: var(--bg); border: 1px solid var(--line); }
.bar i {
  display: block; height: 100%; background: linear-gradient(90deg, #A48843, #DCC384);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s cubic-bezier(.2, .7, .3, 1);
}
.in-view .bar i { transform: scaleX(1); }
.bars .bar-row:nth-child(2) .bar i { transition-delay: .1s; }
.bars .bar-row:nth-child(3) .bar i { transition-delay: .2s; }
.bars .bar-row:nth-child(4) .bar i { transition-delay: .3s; }
.bars .bar-row:nth-child(5) .bar i { transition-delay: .4s; }
.bar-val { font-weight: 700; font-size: .92rem; text-align: right; font-variant-numeric: tabular-nums; }

.axes { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.axis { display: grid; grid-template-columns: 7.5em 1fr 7.5em; gap: 12px; align-items: center; }
.axis > span { font-size: .82rem; color: var(--muted); }
.axis > span:last-child { text-align: right; }
.axis-track { position: relative; height: 2px; background: var(--line); }
.axis-track::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 1px; height: 10px; background: var(--line); transform: translate(-50%, -50%);
}
.axis-track i {
  position: absolute; top: 50%; width: 12px; height: 12px; z-index: 1;
  background: var(--gold); transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.in-view .axis-track i { transform: translate(-50%, -50%) rotate(45deg) scale(1); }
.axes .axis:nth-child(2) i { transition-delay: .08s; }
.axes .axis:nth-child(3) i { transition-delay: .16s; }
.axes .axis:nth-child(4) i { transition-delay: .24s; }
.axes .axis:nth-child(5) i { transition-delay: .32s; }
.axes .axis:nth-child(6) i { transition-delay: .4s; }

/* Anpassningsbarhet: två markörer på en linje */
.adapt-scale { margin-top: 18px; }
.adapt-track { position: relative; height: 2px; background: var(--line); margin: 16px 0 6px; }
.adapt-mark {
  position: absolute; transform: translateX(-50%) scale(0);
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.in-view .adapt-mark { transform: translateX(-50%) scale(1); }
.adapt-mark.adapt-self {
  top: -10px; width: 13px; height: 11px; background: var(--gold);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.in-view .adapt-mark.adapt-self { transform: translateX(-50%) scale(1); transition-delay: .1s; }
.adapt-mark.adapt-others {
  top: 1px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--muted); border: 2px solid var(--card);
}
.adapt-scale-labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
.adapt-legend { display: flex; gap: 20px; list-style: none; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.adapt-key { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: middle; }
.adapt-key.adapt-self { background: var(--gold); clip-path: polygon(50% 100%, 0 0, 100% 0); }
.adapt-key.adapt-others { background: var(--muted); border-radius: 50%; }

/* IDI-rutnät: var självbild och andras bild landar, av 16 rutor */
.idi-grid-outer { display: flex; gap: 8px; max-width: 260px; margin-top: 18px; }
.idi-grid-rows { display: flex; flex-direction: column; justify-content: space-around; font-size: .76rem; color: var(--muted); padding: 2px 0; }
.idi-grid-inner { flex: 1; }
.idi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr);
  aspect-ratio: 1; border: 1px solid var(--line);
}
.idi-cell { border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 3px; }
.idi-cell-hit { background: rgba(201, 172, 100, .12); }
.idi-dot { width: 9px; height: 9px; transform: scale(0); transition: transform .5s cubic-bezier(.2, .7, .3, 1) .15s; }
.in-view .idi-dot { transform: scale(1); }
.idi-dot-self { background: var(--gold); clip-path: polygon(50% 100%, 0 0, 100% 0); }
.idi-dot-others { background: var(--muted); border-radius: 50%; border: 1.5px solid var(--card); }
.idi-grid-cols { display: flex; justify-content: space-around; font-size: .76rem; color: var(--muted); margin-top: 6px; }

.dots { display: flex; gap: 6px; margin-top: 4px; }
.dots i { width: 16px; height: 16px; border: 1px solid var(--line); background: var(--bg); }
.dots i.on {
  background: var(--gold); border-color: var(--gold);
  opacity: 0; transition: opacity .3s ease;
}
.in-view .dots i.on { opacity: 1; }
.dots i.on:nth-child(2) { transition-delay: .06s; }
.dots i.on:nth-child(3) { transition-delay: .12s; }
.dots i.on:nth-child(4) { transition-delay: .18s; }
.dots i.on:nth-child(5) { transition-delay: .24s; }
.dots i.on:nth-child(6) { transition-delay: .3s; }
.dots i.on:nth-child(7) { transition-delay: .36s; }
.dots i.on:nth-child(8) { transition-delay: .42s; }

.pcard-scale { color: var(--muted); font-size: .76rem; }
.pcard-take {
  border-left: 2px solid var(--gold); padding-left: 12px;
  color: var(--ink); font-size: .9rem; margin-top: auto;
}

.pcard-big { font-size: 1.5rem; font-weight: 800; margin-top: auto; }
.pcard-big span { display: block; font-size: .84rem; font-weight: 500; color: var(--muted); }
.pcard-giant { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--gold); line-height: 1; margin-top: auto; }
.pcard-note { color: var(--muted); font-size: .84rem; }
.pattern-summary {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px;
}
.pattern-summary .pattern-text { font-size: 1.1rem; line-height: 1.65; max-width: 68ch; color: var(--ink); }
.tone-slider { margin-top: 22px; max-width: 380px; }
.tone-slider input[type="range"] {
  accent-color: var(--gold); width: 100%; display: block; height: 22px; cursor: grab;
}
.tone-slider input[type="range"]:active { cursor: grabbing; }
.tone-slider input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; }
.tone-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%; margin-top: -8px;
  background: var(--gold); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(201, 172, 100, .5), 0 4px 10px rgba(0, 0, 0, .45);
  cursor: grab; transition: transform .15s ease, box-shadow .15s ease;
}
.tone-slider input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.tone-slider input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.05); }
.tone-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--gold), 0 4px 10px rgba(0, 0, 0, .45);
}
.tone-slider input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; }
.tone-slider input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(201, 172, 100, .5), 0 4px 10px rgba(0, 0, 0, .45);
  cursor: grab; transition: transform .15s ease;
}
.tone-slider input[type="range"]:hover::-moz-range-thumb { transform: scale(1.15); }
.tone-hint { margin-top: 10px; font-size: .76rem; color: var(--muted); }
.tone-steps-labels { display: flex; justify-content: space-between; list-style: none; margin-top: 8px; }
.tone-steps-labels button {
  background: none; border: 0; padding: 4px 2px; margin: 0; cursor: pointer; font-family: inherit;
  font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
  transition: color .2s ease;
}
.tone-steps-labels button:hover { color: var(--accent-ink); }
.tone-steps-labels button.tone-step-active { color: var(--gold); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chips span {
  border: 1px solid var(--line); background: var(--bg);
  padding: 5px 12px; font-size: .84rem; font-weight: 600;
}

@media (max-width: 900px) {
  .profil-grid { grid-template-columns: 1fr 1fr; }
  .pcard-wide { grid-column: span 2; }
  .bar-row { grid-template-columns: 8em 1fr 3.2em; }
}
@media (max-width: 560px) {
  .profil-grid { grid-template-columns: 1fr; }
  .pcard-wide { grid-column: span 1; }
  .ull-groups, .pcard-cols { grid-template-columns: 1fr; }
}

/* Tidslinje */
.timeline-title { margin-top: 32px; font-size: 1.1rem; }
.timeline { list-style: none; margin-top: 12px; }
.timeline li {
  display: grid; grid-template-columns: 96px 1fr; gap: 12px;
  padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--muted);
}
.timeline span { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }

/* Ur ledarbedömningen */
.quotes-label { margin-top: 28px; color: var(--gold); font-size: .9rem; font-style: italic; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.quotes-one { grid-template-columns: 1fr; max-width: 700px; }
.quotes blockquote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .35s ease;
}
.quotes blockquote:hover, .quotes blockquote.in-view { box-shadow: inset 0 0 0 1px var(--gold); }
.quotes blockquote p { font-size: 1rem; }
.quotes footer { color: var(--muted); font-size: .85rem; margin-top: auto; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .quotes { grid-template-columns: 1fr; } }

/* I medierna */
.press { list-style: none; margin-top: 20px; }
.press li {
  display: flex; gap: 20px; align-items: baseline;
  padding: 18px 20px; margin: 0 -20px; border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: border-left-color .35s ease, background .35s ease;
}
.press li:first-child { border-top: 1px solid var(--line); }
.press li:hover, .press li.in-view { border-left-color: var(--gold); background: rgba(201, 172, 100, .05); }
.press-year { font-weight: 750; color: var(--gold); min-width: 56px; font-variant-numeric: tabular-nums; }
.press a { font-weight: 650; }
.press div p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* FAQ */
details {
  border: 1px solid var(--line); background: var(--card);
  padding: 14px 20px; margin-top: 12px;
  transition: border-color .2s ease;
}
details:hover { border-color: var(--gold); }
summary { cursor: pointer; font-weight: 650; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-weight: 800; font-size: 1.2rem;
}
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); }

/* Kontakt */
.contact { position: relative; z-index: 0; overflow: hidden; text-align: center; padding-block: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-block: 40px; }
.contact-rings {
  position: absolute; top: -60px; right: -60px; width: 320px; height: 320px;
  color: var(--gold); opacity: .1; z-index: -1; pointer-events: none;
}
.contact-body { padding: 40px 28px 48px; }
.contact h2 { color: var(--ink); }
.contact p { color: var(--muted); max-width: 36em; margin-inline: auto; }
.contact p.contact-lede { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-top: 8px; }
.contact p.eyebrow { color: var(--gold); max-width: none; margin-inline: 0; }

.contact-img { position: relative; overflow: hidden; }
.contact-img img {
  width: 100%; height: auto; display: block;
  filter: grayscale(.85) contrast(1.05) brightness(.8) blur(6px);
  transform: scale(1.04);
  transition: filter .7s ease, transform .7s ease;
}
.contact-img.in-view img { filter: grayscale(0) contrast(1.05) brightness(1) blur(0); transform: scale(1); }
.contact-img .contact-links {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: none;
  margin: 0; padding: 28px 20px 16px; display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap;
  background: linear-gradient(0deg, rgba(6, 12, 26, .96) 0%, rgba(6, 12, 26, .96) 45%, transparent 100%);
}
.contact-img .btn-secondary { background: rgba(6, 12, 26, .55); backdrop-filter: blur(2px); }
.contact-img .btn-secondary:hover { background: var(--gold); }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; font-weight: 650; text-decoration: none;
  border: 1px solid var(--gold); border-radius: var(--radius); color: var(--gold); background: transparent;
  transition: background .15s ease, color .15s ease;
  font-family: inherit; font-size: 1rem; cursor: pointer;
}
.btn-secondary:hover { background: var(--gold); color: var(--btn-ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--btn-bg); color: var(--btn-ink) !important;
  text-decoration: none; font-weight: 700; padding: 14px 28px; border-radius: var(--radius);
  border: 0; font-family: inherit; font-size: 1rem; cursor: pointer;
}
.btn { transition: filter .15s ease, transform .15s ease; }
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }

@media (min-width: 641px) {
  .contact-body { padding: 48px 56px 56px; text-align: left; }
  .contact-body p { margin-inline: 0; }
  .contact-img .contact-links { padding: 32px 40px 24px; }
}
.medals img { transition: transform .2s ease; }
.medals img:hover { transform: scale(1.12); }

footer { border-top: 1px solid var(--line); }
footer p { padding-block: 24px; color: var(--muted); font-size: .88rem; }

@media (max-width: 900px) { .proof { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .hero, .about { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding-block: 8px 4px; }
  .hero-img { order: -1; }
  .hero-img button { max-width: 300px; }
  .hero-tag { padding-block: 4px; }
  .kicker { margin-bottom: 4px; }
  .topbar nav { gap: 12px; }
  .tone-slider input[type="range"] { height: 40px; }
  .tone-slider input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -11px; }
  .tone-slider input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; }
}

/* Kort mobil höjd (adressfält synligt, äldre telefoner, landskap): H1 ska ändå synas utan att scrolla */
@media (max-width: 760px) and (max-height: 700px) {
  .hero-img button { max-width: 190px; }
  .hero-tag { padding-block: 2px; font-size: .72rem; }
  .lede { margin-top: 10px; }
}
@media (max-width: 760px) and (max-height: 560px) {
  .hero-img button { max-width: 130px; }
  .hero-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .bar i, .axis-track i { transform: none !important; }
  .adapt-mark { transform: translateX(-50%) scale(1) !important; }
  .idi-dot { transform: scale(1) !important; }
  .dots i.on { opacity: 1 !important; }
}

/* Nav – skugga vid scroll, aktiv sektion, mobilmeny */
.topbar { transition: padding-block .25s ease, box-shadow .25s ease, background-color .25s ease; }
.topbar.is-scrolled {
  padding-block: 10px;
  background: rgba(6, 13, 28, .94);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .65);
}
.topbar nav a { position: relative; padding-bottom: 4px; }
.topbar nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.topbar nav a:hover::after,
.topbar nav a.is-active::after { transform: scaleX(1); }
.topbar nav a.is-active { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--gold); transition: transform .25s ease, opacity .2s ease; }
.topbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.topbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .topbar { padding-block: 10px; }
  .logo-mark { height: 42px; }
  .topbar.is-scrolled .logo-mark { height: 30px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .topbar #site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 15;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .topbar.nav-open #site-nav { max-height: 400px; }
  .topbar nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .topbar nav a::after { display: none; }
}

/* Till toppen-knapp */
#till-toppen {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); color: var(--gold);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .2s ease;
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .7);
}
#till-toppen.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#till-toppen:hover { border-color: var(--gold); }

/* Roller med bild – bold dark luxury */
.role-body { min-width: 0; }
.role--media { display: grid; grid-template-columns: 1fr 280px; gap: 28px 36px; }
.role-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.role-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block;
  filter: grayscale(.85) contrast(1.05) brightness(.8) blur(6px);
  transform: scale(1.08);
  transition: filter .7s ease, transform .7s ease;
}
#vinnergi .role-media img { object-position: 50% center; }
.role-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 20, 40, 0) 60%, rgba(10, 20, 40, .5) 100%);
}
.role--media:hover .role-media img,
.role--media.in-view .role-media img { filter: grayscale(0) contrast(1.05) brightness(1) blur(0); transform: scale(1); }
.role--media:hover .role-media img { transform: scale(1.04); }

@media (max-width: 900px) {
  .role--media { grid-template-columns: 1fr; }
  .role-media { order: -1; aspect-ratio: 4 / 5; max-height: 420px; }
}

/* Oskärpa bakom cookie-gaten tills besökaren gjort sitt val */
#page-veil { transition: filter .5s ease; }
@media screen {
  #page-veil.is-blurred { filter: blur(6px); pointer-events: none; user-select: none; }
}

/* Cookie-ruta */
#cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: -100%; z-index: 50;
  max-width: 640px; margin-inline: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
  transition: bottom .35s ease;
}
#cookie-banner.is-visible { bottom: 16px; }
#cookie-banner p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
#cookie-banner p a { color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
  flex: 1; min-width: 140px; font-family: inherit; font-size: .92rem; font-weight: 700;
  padding: 12px 18px; border-radius: var(--radius); cursor: pointer; transition: filter .15s ease;
}
#cookie-accept-alla { background: var(--btn-bg); color: var(--btn-ink); border: 0; }
#cookie-accept-alla:hover { filter: brightness(1.12); }
#cookie-accept-nodvandiga { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
#cookie-accept-nodvandiga:hover { background: var(--gold); color: var(--btn-ink); }

/* Sidfot, alla sidor */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .foot-inner {
  max-width: var(--max); margin-inline: auto; padding: 24px; padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; align-items: baseline;
  color: var(--muted); font-size: .85rem;
}
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }
.site-footer button.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer;
}
.site-footer button.linklike:hover { color: var(--gold); }

/* Lagsidor (cookiepolicy, integritetspolicy) */
.legal { max-width: 72ch; margin-inline: auto; padding-block: 64px; }
.legal h1 { margin-bottom: 8px; }
.legal .uppdaterad { color: var(--muted); font-size: .88rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin-top: 32px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--muted); font-size: .96rem; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 1.3em; }
.legal a { color: var(--gold); }
.legal table { width: 100%; border-collapse: collapse; margin-block: 16px; font-size: .88rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.legal th { color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: .74rem; letter-spacing: .05em; }
.legal .todo { color: var(--gold-alert, #E0A94B); background: rgba(224, 169, 75, .1); border: 1px dashed #E0A94B; padding: 2px 6px; border-radius: 3px; font-weight: 700; }
