/* hallingdal-hytteservice.no – Hallingdal Hytteservice AS
   Retning: lys, stram og verdig. Klassisk serif (EB Garamond) i overskrifter, Inter i brødtekst,
   varmt papir som grunnflate, HH-rødt (fra logoen) som eneste aksent, tynne linjer.
   Husstandard: ingen piler i knapper eller lenker, ingen eyebrow-etiketter, selvhostede fonter,
   tekst sprenger aldri rammer (hyphens), respekt for prefers-reduced-motion. */

/* ------------------------------------------------------------------ tokens */
:root {
  --paper: #F7F5F0;
  --paper-2: #EFEBE3;
  --white: #FFFFFF;
  --ink: #1C1B19;
  --ink-2: #3D3A35;
  --muted: #6E6960;
  --line: #DAD4C8;
  --line-soft: #E7E2D8;
  --red: #7E1E1B;
  --red-deep: #5C1512;
  --red-soft: #F2E4E1;
  --night: #1E1D1A;
  --night-2: #2A2925;
  --night-line: #3C3A35;
  --night-text: #D9D3C7;

  --font-display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --page: 1280px;
  --text: 760px;
  --gutter: clamp(20px, 4vw, 48px);
  --space-blk: clamp(64px, 9vw, 128px);
  --header-h: 84px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 320ms;
}

/* -------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word; hyphens: auto;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.08; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(34px, 4vw, 56px); }
.h3 { font-size: clamp(24px, 2.2vw, 30px); }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(var(--text) + 2 * var(--gutter)); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(28,27,25,.45); }
.site-header__bar { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { width: 112px; height: auto; }
.brand__text { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__item { position: relative; }
.nav__link { display: inline-block; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: 0; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after, .nav__item:focus-within .nav__link::after { transform: scaleX(1); }
.nav__sub { position: absolute; top: 100%; left: -20px; min-width: 220px; padding: 10px 0; background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(28,27,25,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 200ms var(--ease); }
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 8px 20px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.nav__sub a:hover, .nav__sub a.is-active { color: var(--red); background: var(--paper); }
.burger { display: none; font: 500 15px var(--font-body); color: var(--ink); background: none; border: 1px solid var(--ink); padding: 9px 16px; cursor: pointer; }
.mnav { display: none; }
@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: inline-block; }
  .mnav { display: block; max-height: 0; overflow: hidden; background: var(--paper); border-top: 1px solid transparent; transition: max-height 360ms var(--ease); }
  .mnav.is-open { max-height: 80vh; overflow-y: auto; border-top-color: var(--line); }
  .mnav > a { display: block; padding: 14px var(--gutter); font-family: var(--font-display); font-size: 24px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
  .mnav > a.is-active { color: var(--red); }
  .mnav__sub a { display: block; padding: 10px calc(var(--gutter) + 16px); font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
}

/* -------------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(62vh, 640px); display: flex; align-items: flex-end; overflow: hidden; color: var(--paper); background: var(--night); isolation: isolate; }
.hero--stor { min-height: calc(100svh - var(--header-h)); max-height: 980px; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; animation: hero-zoom 22s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,19,17,.10) 0%, rgba(20,19,17,.18) 40%, rgba(20,19,17,.72) 100%), linear-gradient(90deg, rgba(20,19,17,.42) 0%, rgba(20,19,17,.10) 55%, rgba(20,19,17,0) 75%); }
.hero:not(.hero--plain) .hero__inner { text-shadow: 0 1px 2px rgba(0,0,0,.18), 0 2px 28px rgba(0,0,0,.28); }
.hero:not(.hero--plain) .btn { text-shadow: none; }
.hero__inner { width: 100%; max-width: var(--page); margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(44px, 6vw, 84px); }
.hero__title { color: inherit; font-size: clamp(46px, 7vw, 104px); line-height: 1; letter-spacing: -0.02em; max-width: 13ch; animation: rise 1.1s var(--ease) .15s both; }
.hero__lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 40ch; margin: 22px 0 0; color: rgba(247,245,240,.92); animation: rise 1.1s var(--ease) .3s both; }
.hero .btn-row { margin-top: 34px; animation: rise 1.1s var(--ease) .45s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 15px; }
.hero__meta .badge { position: static; }
.hero__sted { color: rgba(247,245,240,.9); }
.crumbs { font-size: 14px; margin-bottom: 14px; }
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(247,245,240,.45); }
.hero--plain { background: var(--paper); color: var(--ink); min-height: 0; border-bottom: 1px solid var(--line); }
.hero--plain .hero__inner { padding-top: clamp(56px, 7vw, 100px); }
.hero--plain .hero__lede, .hero--plain .hero__sted { color: var(--ink-2); }
.hero--plain .crumbs a { border-bottom-color: var(--line); }
.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 46px; background: rgba(247,245,240,.35); overflow: hidden; }
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--paper); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* ----------------------------------------------------------------- buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 24px; font: 500 15px/1.2 var(--font-body); letter-spacing: .01em; text-decoration: none; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--red); }
.btn--outline-light { background: transparent; color: var(--paper); border-color: rgba(247,245,240,.7); }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tlink { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color var(--dur) var(--ease), text-underline-offset var(--dur) var(--ease); }
.tlink:hover { color: var(--red); text-underline-offset: 7px; }
.blk-lenke { margin-top: 26px; }
.blk-lenke--center { text-align: center; margin-top: 48px; }

/* ------------------------------------------------------------------ blocks */
.blk { padding: var(--space-blk) 0; position: relative; }
.blk--tett { padding: 0 0 var(--space-blk); }
.blk--lys { background: var(--paper); }
.blk--hvit { background: var(--white); }
.blk--stein { background: var(--paper-2); }
.blk--mork { background: var(--night); color: var(--night-text); }
.blk--mork h2, .blk--mork h3, .blk--mork .stat__value { color: var(--paper); }
.blk--mork .lede, .blk--mork .prose { color: var(--night-text); }
.blk--mork .tlink { color: var(--paper); }
.section-head { max-width: 760px; margin-bottom: clamp(34px, 4vw, 56px); }
.section-head .lede { margin-top: 16px; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); margin: 0; }

.prose { font-size: 18px; color: var(--ink-2); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(28px, 2.6vw, 36px); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 24px; margin: 1.4em 0 .4em; }
.prose a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 4px; }
.prose img { max-width: 100%; height: auto !important; aspect-ratio: auto !important; }

/* split: bilde + tekst */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--venstre .split__media { order: -1; }
.split__text .h2 { margin-bottom: 22px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--venstre .split__media { order: 0; } }

.fig { margin: 0; }
.fig img { width: 100%; }
.fig--cover { aspect-ratio: var(--ar, auto); overflow: hidden; }
.fig--cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split__media:hover .fig--cover img, .gallery .fig--cover:hover img { transform: scale(1.03); }
.fig figcaption { font-size: 14px; color: var(--muted); padding-top: 12px; }
.fig--cover { display: flex; flex-direction: column; }
.fig--cover figcaption { order: 2; }
.split__media .fig--cover { aspect-ratio: auto; }
.split__media .fig--cover img { aspect-ratio: var(--ar, 4/3); }
.gallery .fig--cover { aspect-ratio: auto; }
.gallery .fig--cover img { aspect-ratio: var(--ar, 4/3); }
.blk--mork .fig figcaption { color: #9C968B; }

.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: clamp(14px, 2vw, 28px); }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* fakta */
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts__row { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; font-weight: 500; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; color: var(--ink); }
.facts dd a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 4px; }
@media (max-width: 520px) { .facts__row { grid-template-columns: 1fr; gap: 2px; } }

/* nøkkeltall */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); }
.stat { padding: 34px 24px 6px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat:not(:first-child) { padding-left: clamp(16px, 2.5vw, 36px); }
.stat:last-child { border-right: 0; }
.stat__value { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(54px, 7vw, 104px); line-height: .95; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.03em; }
.stat__label { margin-top: 14px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } .stat:nth-child(3) { padding-left: 0; } }

/* punkter */
.points { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: clamp(28px, 4vw, 56px); }
.point { border-top: 1px solid var(--ink); padding-top: 22px; }
.point__title { font-size: clamp(24px, 2vw, 30px); margin-bottom: 12px; }
.point p { margin: 0; color: var(--ink-2); }
.blk--mork .point { border-top-color: var(--night-line); }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; } }

/* tidslinje */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 86px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__item { display: grid; grid-template-columns: 86px 1fr; gap: 0 36px; padding: 14px 0; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: 82px; top: 26px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--red); }
.blk--lys .timeline__item::before { background: var(--paper); }
.timeline__year { font-family: var(--font-display); font-size: 26px; color: var(--red); line-height: 1.2; font-variant-numeric: lining-nums; }
.timeline__text { color: var(--ink); padding-left: 4px; }
@media (max-width: 520px) { .timeline::before { left: 64px; } .timeline__item { grid-template-columns: 64px 1fr; gap: 0 26px; } .timeline__item::before { left: 60px; } .timeline__year { font-size: 22px; } }

/* sitat */
.quote { text-align: center; overflow: hidden; }
.quote figure { margin: 0; }
.quote__text { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(40px, 6vw, 84px); line-height: 1.06; letter-spacing: -0.015em; color: var(--paper); text-wrap: balance; }
.quote__text::before { content: "«"; } .quote__text::after { content: "»"; }
.quote__by { margin-top: 26px; font-size: 15px; letter-spacing: .02em; color: var(--night-text); }
.quote--img { padding: clamp(110px, 16vw, 220px) 0; }
.quote__media { position: absolute; inset: 0; z-index: 0; }
.quote__media::after { content: ""; position: absolute; inset: 0; background: rgba(20,19,17,.58); }
.quote__media img { width: 100%; height: 120%; object-fit: cover; transform: translateY(var(--py, -8%)); will-change: transform; }
.quote .wrap { position: relative; z-index: 1; }
.blk--lys.quote .quote__text, .blk--hvit.quote .quote__text, .blk--stein.quote .quote__text { color: var(--ink); }

/* prosjektkort */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); }
@media (max-width: 1000px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--line-soft); transition: transform 500ms var(--ease), box-shadow 500ms var(--ease), border-color 500ms var(--ease); }
.blk--hvit .pcard { background: var(--paper); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -34px rgba(28,27,25,.5); border-color: var(--line); }
.pcard__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__media--plain { display: grid; place-items: center; background: linear-gradient(135deg, var(--paper-2), #E4DED2); }
.pcard__mark { font-family: var(--font-display); font-size: 120px; color: rgba(126,30,27,.18); line-height: 1; }
.pcard__body { padding: 22px 24px 26px; }
.pcard__sted { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.pcard__title { font-size: clamp(26px, 2.1vw, 32px); }
.pcard__text { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.badge { position: absolute; left: 14px; top: 14px; display: inline-block; padding: 5px 11px 6px; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; line-height: 1; border-radius: 99px; background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.badge--salg { background: var(--red); color: var(--paper); }
.badge--utsolgt { background: var(--ink); color: var(--paper); }
.badge--kommer { background: var(--paper); color: var(--red); }

/* sidekort (snarveier) */
.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 860px) { .scards { grid-template-columns: 1fr; } }
.scard { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; color: var(--paper); text-decoration: none; background: var(--night); }
@media (max-width: 860px) { .scard { aspect-ratio: 4/3; } }
.scard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.scard:hover img { transform: scale(1.06); }
.scard__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,17,0) 35%, rgba(20,19,17,.78) 100%); }
.scard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.scard__title { display: block; font-family: var(--font-display); font-size: clamp(30px, 2.6vw, 40px); line-height: 1.05; }
.scard__text { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: rgba(247,245,240,.86); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 600ms var(--ease), opacity 600ms var(--ease); }
.scard:hover .scard__text, .scard:focus-visible .scard__text { max-height: 8em; opacity: 1; }
@media (hover: none) { .scard__text { max-height: none; opacity: 1; } }

/* artikler */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
@media (max-width: 1000px) { .agrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .agrid { grid-template-columns: 1fr; } }
.acard { display: block; text-decoration: none; color: inherit; }
.acard__media { aspect-ratio: 16/10; overflow: hidden; margin-bottom: 18px; background: var(--paper-2); }
.acard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.acard:hover .acard__media img { transform: scale(1.04); }
.acard__date { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.acard__title { font-size: clamp(24px, 2vw, 30px); transition: color var(--dur) var(--ease); }
.acard:hover .acard__title { color: var(--red); }
.acard__text { margin: 10px 0 0; font-size: 15.5px; color: var(--ink-2); }

/* personer */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.person { display: flex; gap: 20px; align-items: center; padding: 22px; background: var(--white); border: 1px solid var(--line-soft); }
.blk--hvit .person { background: var(--paper); }
.person__img, .person__initials { width: 88px; height: 88px; border-radius: 50%; flex: none; object-fit: cover; }
.person__initials { display: grid; place-items: center; background: var(--paper-2); font-family: var(--font-display); font-size: 32px; color: var(--red); }
.person__body { min-width: 0; }
.person__name { font-family: var(--font-display); font-size: 25px; color: var(--ink); line-height: 1.1; }
.person__role { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.person__contact { display: flex; flex-direction: column; margin-top: 8px; font-size: 15px; }
.person__contact a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.person__contact a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* prosjekt: fakta + kontakt */
.pinfo { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .pinfo { grid-template-columns: 1fr; } }
.pinfo__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.pinfo__person { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--white); border: 1px solid var(--line-soft); }
.pinfo__person img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.pinfo__person .person__name { font-size: 21px; }

/* undermeny */
.blk--subnav { padding: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; padding: 18px 0 16px; font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--red); }

/* kontaktbanner */
.cta { text-align: center; max-width: 820px; }
.cta .lede { margin: 18px auto 0; max-width: 56ch; }
.cta .btn-row { justify-content: center; margin-top: 34px; }

/* dokumenter */
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.docs li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.docs__meta { color: var(--muted); font-size: 14px; margin-left: 8px; }

/* ------------------------------------------------- høydeprofil langs dalen */
.dal { overflow: hidden; }
.dal__figure { color: var(--paper); margin-top: 8px; }
.blk--lys .dal__figure, .blk--hvit .dal__figure, .blk--stein .dal__figure { color: var(--red); }
.dal__svg { width: 100%; overflow: visible; }
.dal__grid { stroke: currentColor; stroke-opacity: .14; stroke-dasharray: 2 6; }
.dal__axis { fill: currentColor; fill-opacity: .5; font: 500 13px var(--font-body); letter-spacing: .03em; }
.dal__line { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.dal__area { opacity: 1; }
.dal__stem { stroke: currentColor; stroke-opacity: .28; stroke-width: 1; }
.dal__dot { fill: var(--night); stroke: currentColor; stroke-width: 2.2; transition: r 300ms var(--ease), fill 300ms var(--ease); }
.blk--lys .dal__dot, .blk--hvit .dal__dot { fill: var(--paper); }
.blk--stein .dal__dot { fill: var(--paper-2); }
.dal__sted { fill: currentColor; font: 500 24px var(--font-display); }
.blk--mork .dal__sted { fill: var(--paper); }
.dal__moh { fill: currentColor; fill-opacity: .66; font: 500 13px var(--font-body); }
.dal__pin a { cursor: pointer; }
.dal__pin a:hover .dal__dot, .dal__pin a:focus-visible .dal__dot { r: 11; fill: currentColor; }
.dal__pin a:focus-visible { outline: none; }
.dal__list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; border-top: 1px solid var(--night-line); }
.blk--lys .dal__list, .blk--hvit .dal__list, .blk--stein .dal__list { border-top-color: var(--line); }
.dal__list li { border-bottom: 1px solid var(--night-line); }
.blk--lys .dal__list li, .blk--hvit .dal__list li, .blk--stein .dal__list li { border-bottom-color: var(--line); }
.dal__list a, .dal__list li > span:first-child { display: block; padding: 14px 0; text-decoration: none; color: inherit; }
.dal__list li:not(:has(a)) { padding: 14px 0; }
.dal__list-sted { font-family: var(--font-display); font-size: 22px; color: var(--paper); }
.blk--lys .dal__list-sted, .blk--hvit .dal__list-sted, .blk--stein .dal__list-sted { color: var(--ink); }
.dal__list-moh { font-size: 13px; opacity: .7; margin-left: 6px; }
.dal__list-tekst { display: block; font-size: 15px; opacity: .85; }
.dal__list a:hover .dal__list-sted { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
@media (max-width: 760px) { .dal__sted, .dal__moh { display: none; } .dal__dot { r: 6; } }

/* Animasjon (kun når JS har lagt på .js og brukeren ikke har bedt om redusert bevegelse) */
@media (prefers-reduced-motion: no-preference) {
  .js .dal__line { stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s cubic-bezier(.6,.1,.2,1); }
  .js .dal__area { opacity: 0; transition: opacity 1.6s var(--ease) 1.4s; }
  .js .dal__pin { opacity: 0; transform: translateY(10px); transform-box: fill-box; transition: opacity 600ms var(--ease), transform 600ms var(--ease); transition-delay: calc(.45s + var(--i) * .3s); }
  .js .dal.is-visible .dal__line { stroke-dashoffset: 0; }
  .js .dal.is-visible .dal__area { opacity: 1; }
  .js .dal.is-visible .dal__pin { opacity: 1; transform: none; }

  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--night); color: var(--night-text); font-size: 15px; }
.site-footer__grid { max-width: var(--page); margin: 0 auto; padding: clamp(64px, 8vw, 104px) var(--gutter) 56px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__logo img { width: 150px; }
.site-footer__hilsen { margin: 22px 0 0; font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--paper); }
.site-footer h2 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9C968B; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.site-footer__info { white-space: pre-line; line-height: 1.8; }
.site-footer__bottom { border-top: 1px solid var(--night-line); font-size: 13.5px; color: #9C968B; }
.site-footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-top: 22px; padding-bottom: 26px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__bottom a { color: var(--night-text); }

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .site-footer, .hero__scroll, .burger { display: none !important; }
  .hero { min-height: 0; color: var(--ink); background: none; }
  .hero__media, .hero__shade { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
.nowrap { white-space: nowrap; }
.nav__item:nth-last-child(-n+2) .nav__sub { left: auto; right: -20px; }
