/* ==========================================================================
   HEIMDAL TORG — mørk, eksklusiv retning
   Fraunces på display-flatene, messinglinjer på dype grønne flater.
   ========================================================================== */

:root {
  /* Sølv — lett grønnstukket platina. Posisjonen styres av --sheen (JS):
     scroll og peker på desktop, helningssensor på mobil. */
  --silver: linear-gradient(100deg,
      #5c685442 0%, #97a48f 16%, #dfe6d9 30%, #ffffff 40%,
      #b9c6b1 52%, #7d8a75 64%, #d7dfd0 78%, #99a691 90%, #5c6854 100%);

  --brass: #d3a05f;

  --sans: "Elms Sans", "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gap: 16px;
  --pad: 34px;
  --shell: clamp(16px, 3.4vw, 52px);
  --maxw: 1400px;
  --radius: 16px;

  --page-bg: #05280a;
  --page-ink: #f0f4ea;
  --page-ink-dim: rgba(240, 244, 234, 0.62);
  --page-rule: rgba(211, 160, 95, 0.28);

  --nav-bg: rgba(4, 30, 8, 0.42);
  --nav-bg-stuck: rgba(3, 24, 7, 0.88);
  --nav-rule: rgba(211, 160, 95, 0.3);
  --nav-ink: #f2f6ec;
  --nav-ink-dim: rgba(242, 246, 236, 0.62);
  --nav-btn-line: rgba(211, 160, 95, 0.55);

  --tile-bg: rgba(255, 255, 255, 0.04);
  --tile-border: rgba(211, 160, 95, 0.26);
  --tile-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.6);
  --ink: #f3f7ed;
  --ink-dim: rgba(243, 247, 237, 0.72);
  --ink-faint: rgba(243, 247, 237, 0.48);
  --eyebrow-ink: #d3a05f;
  --spot: rgba(211, 160, 95, 0.09);

  --hero-bg: rgba(255, 255, 255, 0.03);
  --hero-border: rgba(211, 160, 95, 0.26);
  --hero-ink: #f6f9f1;
  --hero-sub: rgba(240, 245, 234, 0.62);
  --hero-eyebrow: #d3a05f;

  --su-bg: rgba(255, 255, 255, 0.035);
  --su-border: rgba(211, 160, 95, 0.28);
  --su-ink: #f4f8ee;
  --su-dim: rgba(240, 245, 234, 0.66);
  --su-label: rgba(244, 248, 238, 0.88);
  --su-faint: rgba(240, 245, 234, 0.36);
  --su-line: rgba(240, 245, 234, 0.26);
  --su-eyebrow: #d3a05f;

  --chip-bg: #d3a05f;
  --chip-ink: #221604;
  --cta-bg: #d3a05f;
  --cta-ink: #221604;
  --cta-hover: #e3b678;
  --cta-orb: rgba(34, 22, 4, 0.14);

  --err: #f0a48c;
  --focus: #d3a05f;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 450;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--page-ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
[hidden] { display: none !important; }

::selection { background: var(--brass); color: #0b1a0c; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 14px; top: -70px; z-index: 200;
  padding: 12px 18px; border-radius: 10px;
  background: #fff; color: #08210b;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 14px; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--focus, var(--brass));
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────────────────────── Logo ── */

.silvermark {
  display: block;
  aspect-ratio: 136 / 50;
  -webkit-mask: url("../logo/heimdal-torg.svg") center / contain no-repeat;
  mask: url("../logo/heimdal-torg.svg") center / contain no-repeat;
  background-image: var(--silver);
  background-size: 340% 100%;
  background-position: calc(var(--sheen, 38) * 1%) 0;
}

.silvermark--xs { width: 74px; }
.silvermark--sm { width: 122px; }
.silvermark--xl { width: min(400px, 88%); margin: clamp(20px, 3vw, 40px) 0 clamp(22px, 3vw, 42px); }

/* ──────────────────────────────────────────────────────────── Bakgrunn ── */

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.backdrop > * { position: absolute; inset: 0; }

.backdrop__wash { background: #05280a; }

.backdrop__glow {
  background:
    radial-gradient(70% 55% at 50% 112%, rgba(211, 160, 95, 0.13), transparent 70%),
    radial-gradient(55% 40% at 50% -12%, rgba(255, 255, 255, 0.05), transparent 70%);
}

.backdrop__grain {
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
}

/* ────────────────────────────────────────────────────────────── Topbar ── */

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px var(--shell);
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.topbar.is-stuck {
  background: var(--nav-bg-stuck);
  border-bottom-color: var(--nav-rule);
}

.topbar__logo { display: block; justify-self: start; line-height: 0; }
.topbar__cta { justify-self: end; }

/* ───────────────────────────────────────────────────────────── Knapper ── */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 21px;
  border: 1px solid var(--nav-btn-line);
  border-radius: 999px;
  font: inherit; font-size: 0.92rem; font-weight: 550;
  text-decoration: none; cursor: pointer;
  color: var(--nav-ink);
  background: transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease-out); }

@media (hover: hover) {
  .btn:hover { background: #fff; color: #07220a; border-color: #fff; }
  .btn:hover svg { transform: translateX(3px); }
}

/* ──────────────────────────────────────────────────────────────── Side ── */

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(14px, 2vw, 26px) var(--shell) clamp(48px, 7vw, 96px);
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--eyebrow-ink);
}

/* ─────────────────────────────────────────────────────────────── Bento ── */

.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(2, 1fr); }

.tile {
  position: relative;
  overflow: hidden;
  padding: var(--pad);
  border-radius: var(--radius);
  background: var(--tile-bg);
  border: 1px solid var(--tile-border);
  color: var(--ink);
  box-shadow: var(--tile-shadow);
  min-width: 0;
  transform: perspective(1100px);
}

/* Lysflekk som følger pekeren */
.tile::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 50%),
    var(--spot),
    transparent 70%);
  transition: opacity 0.4s var(--ease);
}
@media (hover: hover) {
  .tile:hover::after { opacity: 1; }
}

/* Inngang */
[data-reveal] { opacity: 0; transform: translateY(16px); }
.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
/* Når JS har tatt over 3D-vippingen, skal transform ikke lenger animeres av CSS */
.tile.is-tilt { transition-property: border-color, box-shadow, background-color, border-radius; }

/* ── Hero ── */
.tile--hero {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 3.4vw, 52px);
  background: var(--hero-bg);
  border-color: var(--hero-border);
  color: var(--hero-ink);
}
.tile--hero .eyebrow { color: var(--hero-eyebrow); }

.hero__lead {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.9vw, 3.5rem);
  font-weight: 420;
  line-height: 1.05;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.hero__sub {
  margin: 14px 0 0;
  max-width: 36ch;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  font-weight: 450;
  line-height: 1.5;
  color: var(--hero-sub);
}

/* ── Nøkkeltall ── */
.tile--stat {
  display: flex; flex-direction: column;
  justify-content: space-between; gap: 18px;
  min-height: 158px;
}

.stat__value {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.3vw, 3.15rem);
  font-weight: 460;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat__pre {
  display: inline-block;
  margin-right: 0.4em;
  font-size: 0.42em;
  font-weight: 550;
  vertical-align: 0.75em;
  color: var(--ink-faint);
  letter-spacing: 0;
}
.stat__value::after {
  content: ""; display: block;
  width: 0; height: 2px; margin-top: 15px;
  border-radius: 2px;
  background: var(--brass);
  transition: width 0.8s var(--ease-out) 0.25s;
}
.is-in.tile--stat .stat__value::after { width: 34px; }
@media (hover: hover) {
  .tile--stat:hover .stat__value::after { width: 62px; transition-delay: 0s; }
}

.stat__label {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.stat__label em {
  display: inline-block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 450;
  color: var(--ink-faint);
}

/* ── Bilder ── */
.tile--media { padding: 0; }
.tile--media picture { display: contents; }
.tile--media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), opacity 0.5s var(--ease);
}

.media__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 20px 15px;
  font-size: 0.85rem; font-weight: 550;
  letter-spacing: 0.01em;
  color: #f4f8f1;
  background: linear-gradient(to top, rgba(7, 18, 9, 0.78), rgba(7, 18, 9, 0.42) 55%, transparent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.tile--media:focus-within .media__cap { transform: none; }

@media (hover: hover) {
  .tile--media:hover img { transform: scale(1.03); }
  .tile--media:hover .media__cap { transform: none; }
}

/* Uten pekerhover (mobil/nettbrett) står bildetekstene fremme hele tiden */
@media (hover: none) {
  .media__cap { transform: none; }
}

/* ── Kiwi ── */
.tile--brand {
  display: flex; flex-direction: column;
  justify-content: space-between; gap: 18px;
  min-height: 158px;
}
.brandmark {
  width: clamp(128px, 46%, 176px); height: auto;
  filter: grayscale(1) brightness(2.7) contrast(0.82);
  opacity: 0.85;
  transition: filter 0.5s var(--ease), opacity 0.5s var(--ease);
}
@media (hover: hover) {
  .tile--brand:hover .brandmark { filter: none; opacity: 1; }
}

/* ── Om prosjektet ── */
.tile--note { display: flex; flex-direction: column; gap: 16px; }
.note__body {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.14rem, 1.45vw, 1.38rem);
  font-weight: 420;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: pretty;
}
.note__body strong { font-weight: 650; }
.note__meta {
  margin: auto 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-faint);
}

/* ══════════════════════════════════════════════════════ Interesseskjema ══ */

.signup {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--shell) clamp(40px, 6vw, 80px);
}
.signup__inner {
  display: grid;
  gap: clamp(30px, 4vw, 72px);
  padding: clamp(30px, 4.4vw, 64px);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--su-bg);
  border: 1px solid var(--su-border);
  box-shadow: var(--tile-shadow);
  color: var(--su-ink);
}
.signup__inner .eyebrow { color: var(--su-eyebrow); }

.signup__pitch { display: flex; flex-direction: column; }

.signup__title {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 440;
  line-height: 1.02;
  letter-spacing: -0.012em;
}
.signup__body {
  margin: 20px 0 0;
  max-width: 44ch;
  font-size: 1.02rem; line-height: 1.6;
  color: var(--su-dim);
}
.signup__perks {
  margin: 0; padding: 34px 0 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto;
}
.signup__perks li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--su-dim);
}
.signup__perks li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 12px; height: 2px; border-radius: 2px;
  background: var(--brass);
}

/* ── Felt ── */
.sform { display: flex; flex-direction: column; gap: 6px; }

.sfield { position: relative; padding: 16px 0; border: 0; margin: 0; min-width: 0; }

.sfield > label, .sfield legend {
  display: block; padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--su-label);
}
.sfield .opt { font-weight: 450; color: var(--su-faint); }

.sfield input[type="text"],
.sfield input[type="email"],
.sfield input[type="tel"] {
  width: 100%;
  margin-top: 6px; padding: 6px 0 10px;
  border: 0; border-bottom: 1.5px solid var(--su-line);
  background: none;
  color: var(--su-ink);
  font: inherit;
  font-size: 1.16rem;
  font-weight: 450;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.sfield input::placeholder { color: var(--su-faint); font-weight: 400; }
.sfield input:focus { outline: none; border-bottom-color: transparent; }
.sfield input[aria-invalid="true"] { border-bottom-color: var(--err); }

.sfield__line {
  position: absolute; left: 0; right: 0; bottom: 16px;
  height: 2px; border-radius: 2px;
  background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.sfield:focus-within .sfield__line { transform: scaleX(1); }

.sfield__error {
  margin: 8px 0 0;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--err);
}
.sfield__error:empty { display: none; }

/* ── Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center;
  min-height: 42px; padding: 0 18px;
  border: 1.5px solid var(--su-line);
  border-radius: 999px;
  font-size: 0.95rem; font-weight: 550;
  color: var(--su-ink);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease-out);
}
@media (hover: hover) {
  .chip:hover span { border-color: var(--su-label); transform: translateY(-1px); }
}
.chip input:checked + span {
  background: var(--chip-bg);
  border-color: var(--chip-bg);
  color: var(--chip-ink);
}
.chip input:focus-visible + span { outline: 2px solid var(--focus, var(--brass)); outline-offset: 3px; }

/* ── Samtykke ── */
.sfield--consent { padding-top: 20px; }
.check {
  display: grid; grid-template-columns: auto 1fr; gap: 13px;
  align-items: start; cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  display: grid; place-items: center;
  width: 23px; height: 23px; margin-top: 2px;
  border: 1.5px solid var(--su-line);
  border-radius: 6px;
  color: var(--chip-ink);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.check__box svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.3s var(--ease-out); }
.check input:checked + .check__box { background: var(--chip-bg); border-color: var(--chip-bg); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus, var(--brass)); outline-offset: 3px; }
.check__text {
  font-size: 0.92rem; line-height: 1.55;
  color: var(--su-dim);
}
.check__text a { color: var(--su-ink); text-underline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Send inn ── */
.cta {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  width: 100%; min-height: 62px; margin-top: 24px; padding: 0 9px 0 26px;
  border: 0; border-radius: 999px;
  background: var(--cta-bg); color: var(--cta-ink);
  font: inherit; font-size: 1.05rem; font-weight: 600;
  cursor: pointer; overflow: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--cta-hover);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease-out);
}
.cta__label, .cta__arrow { position: relative; z-index: 1; }
.cta__arrow {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 999px;
  background: var(--cta-orb);
  transition: transform 0.45s var(--ease-out);
}
.cta__arrow svg { width: 19px; height: 15px; }
@media (hover: hover) {
  .cta:hover::before { transform: none; }
  .cta:hover .cta__arrow { transform: translateX(4px); }
}
.cta[disabled] { opacity: 0.6; cursor: progress; }

.sform__status {
  margin: 14px 0 0;
  font-size: 0.9rem; line-height: 1.5; font-weight: 550;
  color: var(--err);
}
.sform__status:empty { display: none; }

/* ── Kvittering ── */
.sform__done { display: flex; flex-direction: column; justify-content: center; min-height: 340px; }
.tick { width: 62px; height: 62px; margin-bottom: 24px; color: var(--brass); }
.tick circle { stroke-dasharray: 189; stroke-dashoffset: 189; animation: draw 0.9s var(--ease-out) forwards; }
.tick path { stroke-dasharray: 46; stroke-dashoffset: 46; animation: draw 0.5s var(--ease-out) 0.45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sform__done-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 420;
  letter-spacing: -0.012em; line-height: 1.05;
}
.sform__done-body { margin: 0; max-width: 40ch; line-height: 1.6; color: var(--su-dim); }

/* ═══════════════════════════════════════════════ Beliggenhet & transport ══ */

.place {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--shell) var(--gap);
}
.place__inner {
  display: grid;
  gap: clamp(26px, 4vw, 64px);
  padding: clamp(30px, 4.4vw, 64px);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--su-bg);
  border: 1px solid var(--su-border);
  box-shadow: var(--tile-shadow);
  color: var(--su-ink);
}
.place__inner .eyebrow { color: var(--su-eyebrow); }

.place__title {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 440;
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.place__body {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--su-dim);
  text-wrap: pretty;
}
.place__body strong { color: var(--su-ink); font-weight: 600; }

.tlist { margin: 0; display: flex; flex-direction: column; }
.tlist__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid var(--su-line);
}
.tlist__row:first-child { border-top: 0; padding-top: 0; }
.tlist dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--su-eyebrow);
}
.tlist dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--su-dim);
  text-wrap: pretty;
}
.tlist dd strong { color: var(--su-ink); font-weight: 600; }

@media (min-width: 700px) {
  .tlist__row { grid-template-columns: 128px 1fr; gap: 18px; }
  .tlist dt { padding-top: 3px; }
}
@media (min-width: 1100px) {
  .place__inner { grid-template-columns: 5fr 7fr; }
}

/* ═══════════════════════════════════════════════════════ Spørsmål og svar ══ */

.faq {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 56px) var(--shell) clamp(40px, 6vw, 80px);
}
.faq__head { margin-bottom: clamp(20px, 3vw, 34px); }
.faq__title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 440;
  line-height: 1.06;
  letter-spacing: -0.012em;
}

.faq__list { display: flex; flex-direction: column; gap: 10px; }

.qa {
  border: 1px solid var(--tile-border);
  border-radius: var(--radius);
  background: var(--tile-bg);
  box-shadow: var(--tile-shadow);
}
.qa summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 19px var(--pad);
  cursor: pointer;
  list-style: none;
  font-size: 1.04rem;
  font-weight: 550;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brass);
  transform: translateY(2px);
  transition: transform 0.35s var(--ease-out);
}
.qa[open] summary::after { transform: translateY(2px) rotate(45deg); }
@media (hover: hover) {
  .qa summary:hover { color: var(--brass); }
}
.qa__body { padding: 0 var(--pad) 22px; }
.qa__body p {
  margin: 0 0 10px;
  max-width: 72ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.qa__body p:last-child { margin-bottom: 0; }
.qa__body a { color: var(--ink); text-underline-offset: 3px; }
.qa__body strong { color: var(--ink); font-weight: 600; }

/* ═══════════════════════════════════════════════════════ Kontakt megler ══ */

.broker {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--shell) clamp(40px, 6vw, 80px);
}
.broker__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3.4vw, 48px);
  padding: clamp(30px, 4.4vw, 56px);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--su-bg);
  border: 1px solid var(--su-border);
  box-shadow: var(--tile-shadow);
  color: var(--su-ink);
  text-align: center;
}
.broker__card picture { display: contents; }
.broker__card .eyebrow { color: var(--su-eyebrow); }
.broker__info { min-width: 0; max-width: 100%; }

.broker__photo {
  flex: none;
  width: clamp(132px, 15vw, 176px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--su-border);
  box-shadow: 0 24px 48px -26px rgba(0, 0, 0, 0.65);
}

.broker__name {
  margin: 13px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 440;
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.broker__role {
  margin: 9px 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--su-dim);
  text-wrap: pretty;
}

.broker__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.broker__links .btn { font-variant-numeric: tabular-nums; }

@media (min-width: 700px) {
  .broker__card { flex-direction: row; justify-content: center; text-align: left; }
  .broker__links { justify-content: flex-start; }
}

.signup__body a { color: var(--su-ink); text-underline-offset: 3px; }

/* ─────────────────────────────────────────────────────────── Bunntekst ── */

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(26px, 3vw, 40px) var(--shell) clamp(34px, 4vw, 56px);
  border-top: 1px solid var(--page-rule);
  color: var(--page-ink-dim);
  font-size: 0.9rem; line-height: 1.55;
}
.footer__grid { display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: 1fr; }
.footer p { margin: 0 0 5px; max-width: 42ch; }
.footer__strong {
  color: var(--page-ink);
  font-size: 0.85rem; font-weight: 650;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 9px !important;
}
.footer__base {
  display: flex; align-items: center; gap: 14px;
  margin-top: clamp(28px, 4vw, 48px); padding-top: 20px;
  border-top: 1px solid var(--page-rule);
  font-size: 0.85rem;
}

.footer__linkbtn {
  padding: 0; border: 0; background: none;
  font: inherit; font-size: 0.9rem; font-weight: 550;
  color: var(--page-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ─────────────────────────────── Samtykkebanner (informasjonskapsler) ── */

.cc {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.cc.is-on { opacity: 1; transform: none; }

.cc__card {
  pointer-events: auto;
  width: min(660px, 100%);
  max-height: min(84vh, 84svh);
  overflow-y: auto;
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius);
  border: 1px solid var(--su-border);
  background: var(--nav-bg-stuck);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, 0.75);
  color: var(--su-ink);
}

.cc__title {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--eyebrow-ink);
}
.cc__body {
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--su-dim);
  text-wrap: pretty;
}

.cc__opts {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--su-line);
}
.cc .check__text strong {
  display: block;
  font-weight: 600;
  color: var(--su-ink);
}
.check--laast { cursor: default; }

.cc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cc__btn {
  flex: 1 1 150px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit; font-size: 0.93rem; font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.cc__btn--fylt {
  border: 1px solid var(--cta-bg);
  background: var(--cta-bg);
  color: var(--cta-ink);
}
.cc__btn--kant {
  border: 1px solid var(--nav-btn-line);
  background: transparent;
  color: var(--su-ink);
}
@media (hover: hover) {
  .cc__btn--fylt:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
  .cc__btn--kant:hover { border-color: var(--su-label); }
}

/* To samtykkerader etter hverandre i skjemaet står tettere */
.sfield--consent + .sfield--consent { padding-top: 0; }

/* ═══════════════════════════════════════════════════════════════ Raster ══ */

.t-hero, .t-dusk, .t-torget, .t-note, .t-kiwi,
.t-gata, .t-bjorndalen, .t-natt, .t-luftfoto, .t-vinter { grid-column: span 2; }
.tile--media { aspect-ratio: 16 / 10; }
.tile--hero {
  min-height: min(58vh, 430px);
  min-height: min(58svh, 430px);
}

@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .t-hero, .t-dusk, .t-torget, .t-gata, .t-bjorndalen,
  .t-natt, .t-luftfoto, .t-vinter { grid-column: span 6; }
  .t-note { grid-column: span 6; }
  .t-kiwi { grid-column: span 6; }
  .tile--stat { grid-column: span 3; }
  .tile--hero {
    min-height: min(58vh, 500px);
    min-height: min(58svh, 500px);
  }
}

@media (min-width: 1100px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows:
      repeat(2, minmax(205px, auto))   /* 1–2   hero + skumring     */
      minmax(168px, auto)              /* 3     nøkkeltall a        */
      repeat(2, minmax(215px, auto))   /* 4–5   torget + om         */
      minmax(300px, auto)              /* 6     gata + bjørndalen   */
      minmax(168px, auto)              /* 7     nøkkeltall b        */
      repeat(3, minmax(160px, auto))   /* 8–10  natt + kiwi/c1/c2   */
      minmax(330px, auto);             /* 11    luftfoto + vinter   */
  }

  .tile--media, .tile--hero { aspect-ratio: auto; min-height: 0; }

  .t-hero       { grid-area: 1 / 1 / 3 / 8;  }
  .t-dusk       { grid-area: 1 / 8 / 3 / 13; }

  .t-a1 { grid-area: 3 / 1  / 4 / 4;  }
  .t-a2 { grid-area: 3 / 4  / 4 / 7;  }
  .t-a3 { grid-area: 3 / 7  / 4 / 10; }
  .t-a4 { grid-area: 3 / 10 / 4 / 13; }

  .t-torget     { grid-area: 4 / 1 / 6 / 9;  }
  .t-note       { grid-area: 4 / 9 / 6 / 13; }

  .t-gata       { grid-area: 6 / 1 / 7 / 7;  }
  .t-bjorndalen { grid-area: 6 / 7 / 7 / 13; }

  .t-b1 { grid-area: 7 / 1  / 8 / 4;  }
  .t-b2 { grid-area: 7 / 4  / 8 / 7;  }
  .t-b3 { grid-area: 7 / 7  / 8 / 10; }
  .t-b4 { grid-area: 7 / 10 / 8 / 13; }

  .t-natt       { grid-area: 8 / 1 / 11 / 8; }
  .t-kiwi       { grid-area: 8 / 8 / 9 / 13; }
  .t-c1         { grid-area: 9 / 8 / 10 / 13; }
  .t-c2         { grid-area: 10 / 8 / 11 / 13; }

  .t-luftfoto   { grid-area: 11 / 1 / 12 / 8; }
  .t-vinter     { grid-area: 11 / 8 / 12 / 13; }

  .signup__inner { grid-template-columns: 5fr 7fr; }
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 700px) and (max-width: 1099px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  :root { --pad: 20px; --gap: 12px; }
  .silvermark--sm { width: 104px; }
}

/* ─────────────────────────────────── Redusert bevegelse ── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .media__cap { transform: none; }
  .silvermark { background-position: 38% 0 !important; }
}
