/*
 * global.css
 * Base, typografi og komponentstiler. Bygger paa variablene i tokens.css.
 * Prinsipper: luft, rent, store bilder, energi.
 */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video { display: block; max-width: 100%; height: auto; }

ul[class],
ol[class] { list-style: none; margin: 0; padding: 0; }

/* ---------------------------------------------------- Typografisk skala */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 var(--space-m);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--step-fluid-h1); font-weight: 700; line-height: 1.05; }
h2 { font-size: var(--step-fluid-h2); }
h3 { font-size: var(--step-fluid-h3); line-height: 1.15; }
h4 { font-size: var(--step-fluid-h4); }

p { margin: 0 0 var(--space-m); max-width: var(--measure); }

a { color: var(--accent-hover); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

strong { font-weight: 700; }

.lead {
  font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
}

.muted { color: var(--muted); }

/* ------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3rem, 4vw, 4.5rem); }
.section--tint { background: var(--paper-tint); }
.section--tight { padding-block: clamp(2rem, 2.5vw, 3rem); }

.section-head { max-width: var(--measure); margin-bottom: var(--space-xl); }
.section-head--center { margin-inline: auto; text-align: center; }

/* Skip-link for tastatur og skjermleser */
.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: var(--ink-invert);
  padding: var(--space-xs) var(--space-m);
  border-radius: var(--radius-s);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--space-s); }

/* Synlig fokusring paa alt interaktivt (WCAG) */
:where(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------- Knapper */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-size: var(--step-body);
  font-weight: 700;
  line-height: 1;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease),
              color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: var(--ink-invert); }
.btn--primary:hover { background: var(--accent-hover); color: var(--ink-invert); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--invert { background: var(--accent); color: var(--ink-invert); }
.btn--invert:hover { background: var(--accent-hover); color: var(--ink-invert); }

/* Ark-knapp i Arks oransje merkefarge */
.btn--ark { background: #EC6901; color: #FFFFFF; }
.btn--ark:hover { background: #CF5B00; color: #FFFFFF; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; }

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Gjennomsiktig over hero, solid ved scroll (settes av main.js) */
.site-header[data-solid="true"] {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: var(--header-h);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand .brand-amp { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: var(--space-s); }
.nav-list { display: flex; align-items: center; gap: var(--space-2xs); }
.nav-list > li { position: relative; }

.nav-link {
  display: inline-block;
  position: relative;
  padding: 0.5em 0.7em;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-s);
}
.nav-link:hover { color: var(--accent-hover); }
.nav-link[aria-current="page"] { color: var(--accent-hover); }
/* Rett markeringslinje under aktiv lenke, med skarpe ender (ingen buer) */
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7em;
  right: 0.7em;
  bottom: 0.1em;
  height: 2px;
  background: var(--accent);
}

/* Dropdown under "Om oss": lenke til /om-oss/ + egen knapp som åpner undermenyen */
.has-dropdown { display: inline-flex; align-items: center; }
.dropdown-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.5em 0.45em;
  margin-left: -0.3em;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-s);
}
.dropdown-toggle:hover { color: var(--accent-hover); }
.dropdown-toggle .caret { transition: transform 0.2s var(--ease); display: inline-block; line-height: 1; }
.has-dropdown[data-open="true"] .caret { transform: rotate(180deg); }

/* Usynlig bro over mellomrommet, så musa ikke faller i et dødt felt mellom
   lenken og menyen (gjorde dropdownen vanskelig å treffe) */
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow);
  padding: var(--space-2xs);
  display: none;
}
.has-dropdown[data-open="true"] .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 0.6em 0.8em;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}
.dropdown a:hover { background: var(--paper-tint); color: var(--accent-hover); }

.nav-cta { margin-left: var(--space-2xs); }
/* Mindre CTA-knapp i headeren, så den ikke ligger tett mot kantene */
.nav-cta .btn { padding: 0.6em 1.15em; font-size: 0.95rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5em;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.5em 0.9em;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-toggle-icon { display: block; flex: none; }

/* --------------------------------------------------------------- Footer */
.site-footer {
  background: var(--ink);
  color: var(--ink-invert);
  padding-block: var(--space-2xl) var(--space-xl);
}
.site-footer a { color: var(--ink-invert); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-xl);
}
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; }
.footer-brand .brand-amp { color: var(--accent); }
.footer-col h4 { color: var(--ink-invert); font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.footer-meta {
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(251, 248, 243, 0.16);
  color: color-mix(in srgb, var(--ink-invert) 70%, transparent);
  font-size: var(--step-small);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-l);
  justify-content: space-between;
}

/* ----------------------------------------------------------------- Hero */
.hero { position: relative; padding-top: var(--space-xl); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--space-l), 4vw, var(--space-2xl));
  align-items: center;
}
.hero-copy { max-width: 36rem; }
.hero h1 { margin-bottom: var(--space-m); }
.hero .lead { margin-bottom: var(--space-l); color: var(--ink); }
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media .media { aspect-ratio: 4 / 5; }

/* Full-bredde, filmatisk hero (Ville Vesten) */
.hero--cinematic { padding: var(--space-l) var(--gutter) 0; }
.hero--cinematic .hero-banner {
  position: relative;
  max-width: var(--content-max);
  margin-inline: auto;
  min-height: clamp(360px, 64vh, 640px);
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero--cinematic .media { position: absolute; inset: 0; height: 100%; }
.hero--cinematic .media svg { height: 100%; width: 100%; }
.hero--cinematic .hero-banner-copy {
  position: relative;
  color: var(--ink-invert);
  padding: var(--gutter);
  padding-bottom: clamp(var(--space-l), 5vw, var(--space-2xl));
  width: min(100%, 620px);
  margin-left: auto; /* teksten til høyre, vekk fra personene til venstre i bildet */
  margin-right: 0;
}
.hero--cinematic .hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  /* mørkner høyre side (der teksten er) og bunnen (for mobil der teksten er full bredde) */
  background:
    linear-gradient(to left, rgba(26,22,20,0.72) 0%, rgba(26,22,20,0.12) 55%, rgba(26,22,20,0) 72%),
    linear-gradient(to top, rgba(26,22,20,0.8) 0%, rgba(26,22,20,0.15) 45%, rgba(26,22,20,0) 78%);
}
.hero--cinematic .hero-banner-copy { z-index: 1; }
.hero--cinematic h1 { color: var(--ink-invert); }
.hero--cinematic .lead { color: var(--ink-invert); }

/* ------------------------------------------------------- Media / bilder */
.media {
  position: relative;
  overflow: hidden;
  background: var(--paper-tint);
  border-radius: var(--radius);
}
/* Bildet kan ligge direkte i .media eller inni et <picture>. Begge skal fylle
   og dekke boksen, ellers blir det gap eller feil beskjæring. */
.media > picture { display: block; width: 100%; height: 100%; }
.media img,
.media > svg { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Vis bildet helt (ikke beskåret), f.eks. et bokomslag */
.media--contain { background: var(--paper-tint); }
.media--contain img { object-fit: contain; padding: var(--space-m); }
.media--3-2 { aspect-ratio: 3 / 2; }
.media--4-5 { aspect-ratio: 4 / 5; }
.media--16-9 { aspect-ratio: 16 / 9; }
.media--21-9 { aspect-ratio: 21 / 9; }


figure { margin: 0; }
figcaption { color: var(--muted); font-size: var(--step-small); margin-top: var(--space-2xs); }

/* ----------------------------------------------------------- Kort-grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-l);
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Inngangskort / tjenestekort */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .media { border-radius: 0; }
.card-body { padding: var(--space-l); display: flex; flex-direction: column; gap: var(--space-2xs); flex: 1; }
.card-body h3 { margin-bottom: var(--space-2xs); }
.card-body p { color: var(--muted); margin-bottom: var(--space-s); }
.card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--accent-hover);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.card-link .arrow { transition: transform 0.2s var(--ease); }
/* Strekk kortlenken over hele kortet, så også bildet er klikkbart */
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-link { color: var(--accent); }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* Reise-/turkort */
.trip-card { position: relative; }
.trip-card.is-featured { border-color: var(--accent); box-shadow: var(--shadow-soft); }
.trip-badge {
  position: absolute;
  top: var(--space-s);
  left: var(--space-s);
  z-index: 2;
  /* accent-hover (ikke accent) for å holde liten, fet versaltekst over 4.5:1 mot hvit */
  background: var(--accent-hover);
  color: var(--ink-invert);
  font-size: var(--step-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 0.8em;
  border-radius: 999px;
}
.trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-m);
  color: var(--muted);
  font-size: var(--step-small);
  margin-bottom: var(--space-xs);
}
.trip-meta .trip-meta-item { display: inline-flex; align-items: center; gap: 0.4em; }
.trip-price { font-weight: 700; color: var(--ink); }

/* ----------------------------------------------------------- Sitat */
.quote { max-width: 46rem; }
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.quote blockquote::before { content: "\201C"; color: var(--accent); }
.quote blockquote::after { content: "\201D"; color: var(--accent); }
.quote cite {
  display: block;
  margin-top: var(--space-m);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--step-small);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.quote.is-placeholder blockquote { color: var(--muted); font-style: italic; }

.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-l); }
.quote-grid .quote blockquote { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); }

/* ------------------------------------------------------- Fakta-stripe */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-l);
  padding: var(--space-l);
  background: var(--paper-tint);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.fact {  }
.fact dt { font-size: var(--step-small); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3em; }
.fact dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }

/* ----------------------------------------------------------- CTA-band */
.cta-band { background: var(--ink); color: var(--ink-invert); border-radius: var(--radius); padding: clamp(var(--space-l), 5vw, var(--space-2xl)); }
.cta-band h2 { color: var(--ink-invert); }
.cta-band p { color: color-mix(in srgb, var(--ink-invert) 82%, transparent); }
.cta-band--full { border-radius: 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-l); }
.cta-band-inner > div { max-width: 38rem; }
.cta-band-inner h2 { margin-bottom: var(--space-xs); }
.cta-band-inner p { margin-bottom: 0; }

/* Fremhevet baand (Ville Vesten paa forsiden) */
.feature-band { position: relative; border-radius: var(--radius); overflow: hidden; color: var(--ink-invert); display: flex; align-items: flex-end; min-height: clamp(320px, 42vw, 460px); }
.feature-band .media { position: absolute; inset: 0; border-radius: 0; height: 100%; }
.feature-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(26,22,20,0.78) 0%, rgba(26,22,20,0.15) 52%, rgba(26,22,20,0) 72%),
    linear-gradient(to top, rgba(26,22,20,0.8) 0%, rgba(26,22,20,0.2) 55%, rgba(26,22,20,0) 80%);
}
.feature-band-copy { position: relative; z-index: 1; padding: clamp(var(--space-l), 5vw, var(--space-2xl)); max-width: 40rem; margin-left: auto; /* tekst til høyre, vekk fra personene */ }
.feature-band-copy h2 { color: var(--ink-invert); }
.feature-band-copy p { color: var(--ink-invert); }

/* --------------------------------------------------- USP / punktliste */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-l); }
.usp { border-top: 2px solid var(--accent); padding-top: var(--space-s); }
.usp .usp-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; color: var(--ink); display: block; margin-bottom: var(--space-2xs); }
.usp h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--space-2xs); }
.usp p { color: var(--muted); margin-bottom: 0; }

.tick-list { display: grid; gap: var(--space-s); max-width: var(--measure); }
.tick-list li { position: relative; padding-left: 1.8em; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7em; height: 0.7em; background: var(--accent); border-radius: 50%; }

.pill-list { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.pill { display: inline-block; padding: 0.5em 1em; background: var(--paper-tint); border: 1px solid var(--line); border-radius: 999px; font-size: var(--step-small); font-weight: 500; }

/* ----------------------------------------------- Bio / personsider */
.bio-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(var(--space-l), 4vw, var(--space-2xl)); align-items: start; }
.bio-portrait { position: sticky; top: calc(var(--header-h) + var(--space-m)); }
.factbox { background: var(--paper-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-l); margin-top: var(--space-l); }
.factbox h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-s); }
.factbox ul { display: grid; gap: var(--space-xs); }
.factbox li { padding-left: 0; color: var(--ink); }
.book-list { display: grid; gap: var(--space-s); }
.book-list li { display: grid; gap: 0.1em; }
.book-list .book-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.book-list .book-meta { color: var(--muted); font-size: var(--step-small); }

/* Bokomslag (3D-mockup med egen transparens og skygge): vis uoppdelt, ikke beskåret */
.book-cover { display: block; width: 100%; max-width: 340px; height: auto; margin-inline: auto; }

/* Bok-boks (forsiden): omslag + kort tekst + ARK-lenke */
.book-promo {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-l), 4vw, var(--space-2xl));
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(var(--space-l), 4vw, var(--space-2xl));
}
.book-promo-cover { width: 160px; max-width: 38%; height: auto; flex: none; }
.book-promo-body { max-width: var(--measure); }
.book-promo-body h2 { margin-bottom: var(--space-xs); }
@media (max-width: 700px) {
  .book-promo { flex-direction: column; text-align: center; }
  .book-promo-cover { width: 180px; max-width: 60%; }
  .book-promo-body { max-width: none; }
}

/* --------------------------------------------------------- Kontakt */
.contact-card {
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(var(--space-l), 4vw, var(--space-2xl));
  max-width: 40rem;
}
/* variant med samme bakgrunn som siden (brukt på Fotefar-boksen i tonet seksjon) */
.contact-card--paper { background: var(--paper); }
.contact-name { font-family: var(--font-display); font-size: var(--step-fluid-h3); margin-bottom: var(--space-2xs); }
.contact-line { display: flex; align-items: baseline; gap: var(--space-2xs); margin-bottom: var(--space-xs); font-size: 1.15rem; }
.contact-line .label { color: var(--muted); font-size: var(--step-small); min-width: 4em; }
.contact-line a { font-weight: 700; color: var(--accent-hover); text-decoration: none; }
.contact-line a:hover { color: var(--accent); text-decoration: underline; }
.contact-todo { color: var(--muted); font-style: italic; }

/* --------------------------------------------- Innholds-prosa-blokk */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--space-m); }
.prose h2, .prose h3 { max-width: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-l), 4vw, var(--space-2xl)); align-items: center; }
.split--media-first .split-media { order: -1; }
.split--top { align-items: start; }

/* ----------------------------------------------- Bevegelse / reveal */
/* Hero-reveal ved innlasting: forskjoevet inn med animation-delay */
.reveal-hero { opacity: 0; transform: translateY(18px); animation: reveal-in 0.7s var(--ease) forwards; }
.reveal-hero.d1 { animation-delay: 0.05s; }
.reveal-hero.d2 { animation-delay: 0.18s; }
.reveal-hero.d3 { animation-delay: 0.31s; }
.reveal-hero.media-in { transform: scale(1.02); animation: reveal-media 1.1s var(--ease) forwards; }

@keyframes reveal-in { to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-media { to { opacity: 1; transform: scale(1); } }

/* Scroll-reveal: settes synlig av IntersectionObserver i main.js */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------- Responsivt */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  /* behold heroens 4:5-forhold på mobil, så det stående portrettet ikke beskjæres */
  .bio-grid { grid-template-columns: 1fr; }
  .bio-portrait { position: static; }
  .split { grid-template-columns: 1fr; }
  .split--media-first .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-l); }
}

@media (max-width: 760px) {
  /* Meny kollapser til hamburger */
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-s) var(--gutter) var(--space-l);
    display: none;
  }
  .main-nav[data-open="true"] { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; text-align: center; }
  /* Større, sentrert menyfont på mobil */
  .nav-link { padding: 0.95em 0.2em; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.3rem; }
  .nav-list > li { width: 100%; }
  /* Blokk på mobil, så undermenyen stables under (ikke horisontalt ved siden av) */
  .has-dropdown { display: block; }
  /* Større, lettere trykkbart caret-ikon for undermenyen */
  .dropdown-toggle { font-size: 1.6rem; padding: 0.1em 0.4em; vertical-align: middle; }
  .dropdown { position: static; border: none; box-shadow: none; padding: 0 0 var(--space-s); display: block; min-width: 0; text-align: center; }
  .dropdown a { font-size: 1.1rem; padding: 0.6em; }
  .has-dropdown[data-open="false"] .dropdown { display: none; }
  .nav-cta { margin: var(--space-m) 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; font-size: 1.1rem; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

/* Respekter brukerens oenske om mindre bevegelse */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-hero { opacity: 1 !important; transform: none !important; }
}
