/* ============================================
   BREMANGER — Single-municipality relocation showcase
   Scoped under .bremanger-page
   Atlantic-teal accent — distinct from Rendalen umber + Lister gold
   ============================================ */

@font-face {
  font-family: 'Glacial Indifference';
  src: url('/assets/fonts/GlacialIndifference-Regular.woff2') format('woff2'),
       url('/assets/fonts/GlacialIndifference-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Glacial Indifference';
  src: url('/assets/fonts/GlacialIndifference-Bold.woff2') format('woff2'),
       url('/assets/fonts/GlacialIndifference-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Page-scoped tokens ---- */
.bremanger-page {
  --b-content-max: 1180px;
  --b-content-wide: 1400px;
  --b-content-narrow: 760px;
  --b-section-padding: clamp(90px, 11vh, 160px);
  --b-card-radius: 14px;
  --b-card-radius-lg: 22px;

  /* Atlantic teal — sea-to-glacier coast. Distinct from Rendalen's umber
     (#a87a52) and Lister's mauve gold (#c4918a). */
  --b-teal: #2a8f8a;
  --b-teal-soft: #4fb3ab;
  --b-cream: var(--surface-story, #F1EBE3);
  --b-midnight: var(--surface-strong, #0a1628);
  --b-utility: var(--surface-utility, #243D4F);
  --b-warm-white: var(--surface-explore, #FBF9F6);

  --font-body: 'Glacial Indifference', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;

  --color-dark-panel: var(--surface-utility, #243D4F);
  --color-cream: var(--surface-story, #F1EBE3);
  overflow-x: hidden;
  overflow-x: clip;
}

.bremanger-page main { overflow-x: hidden; overflow-x: clip; }

.bremanger-page [data-reveal] { transform: none; }
.bremanger-page [data-reveal].revealed { transform: none; }

.bremanger-page .site-footer {
  border-top: 1px solid rgba(250, 248, 245, 0.1);
  margin-top: 0;
}
.bremanger-page .footer-column h4 { color: var(--b-teal); }

/* Tone down the Freysta logo in header so the Bremanger narrative dominates */
.bremanger-page .header-logo {
  opacity: 0.5;
  width: 34px;
  height: 34px;
  transition: opacity var(--duration-normal, 300ms) var(--ease-out-expo);
}
.bremanger-page .header-logo-link:hover .header-logo,
.bremanger-page .header-logo-link:focus-visible .header-logo { opacity: 0.9; }

/* ---- Shared typography ---- */
.b-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--b-teal);
  margin: 0 0 clamp(6px, 0.8vh, 8px);
}
.b-eyebrow--light { color: rgba(255, 255, 255, 0.72); }

.b-section-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0;
}
.b-section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--b-teal);
}
.b-section-title--light { color: #fff; }
.b-section-title--light em { color: var(--b-teal-soft); }

.b-section-dek {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1rem + 1.1vw, 1.95rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--color-text-primary);
  margin: clamp(8px, 1.2vh, 13px) 0 0;
}

.b-section-intro {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: clamp(8px, 1.2vh, 13px) 0 0;
}
.b-section-intro--light { color: rgba(250, 248, 245, 0.82); }

/* =========================================================
   1. HERO — Full-screen Grotlesanden drone video
   ========================================================= */
.b-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #faf8f5;
  isolation: isolate;
}
.b-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.b-hero__media video,
.b-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.b-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.24) 0%, rgba(10, 22, 40, 0.1) 42%, rgba(10, 22, 40, 0.8) 100%),
    radial-gradient(ellipse at 75% 20%, rgba(42, 143, 138, 0.16), transparent 55%);
}
.b-hero__content {
  position: relative;
  padding: clamp(36px, 8vh, 96px) clamp(20px, 5vw, 56px) clamp(80px, 12vh, 140px);
  max-width: var(--b-content-wide);
  width: 100%;
  margin: 0 auto;
}
.b-hero__headline { max-width: 900px; }
.b-hero__region {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 0.6rem + 0.4vw, 1.05rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--b-teal-soft);
  margin-bottom: clamp(20px, 3.5vh, 32px);
}
.b-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 clamp(20px, 3vh, 32px);
  color: #faf8f5;
}
.b-hero__slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem);
  line-height: 1.25;
  color: rgba(250, 248, 245, 0.95);
  max-width: 820px;
  margin: 0;
  letter-spacing: -0.005em;
}

/* =========================================================
   2a. ABOUT — landmark gallery (mosaic inside the About section)
   ========================================================= */
.b-about__gallery {
  margin: 0 0 clamp(48px, 6vh, 80px);
}
.b-about__gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 6px;
  border-radius: var(--b-card-radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px -32px rgba(10, 22, 40, 0.4);
}
.b-about__gallery-grid img {
  width: 100%;
  height: clamp(220px, 30vh, 320px);
  object-fit: cover;
  display: block;
}
.b-about__gallery figcaption {
  display: block;
  text-align: center;
  padding: 14px clamp(16px, 2vw, 22px) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.92rem, 0.85rem + 0.2vw, 1.05rem);
  line-height: 1.45;
  color: var(--color-text-secondary);
}
@media (max-width: 900px) {
  .b-about__gallery-grid { grid-template-columns: 1fr 1fr; }
  .b-about__gallery-feature,
  .b-about__gallery-grid img:last-child { grid-column: 1 / -1; }
  .b-about__gallery-grid img { height: clamp(170px, 28vw, 240px); }
}
@media (max-width: 520px) {
  .b-about__gallery-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   2b. ABOUT
   ========================================================= */
.b-about {
  padding: clamp(40px, 5vh, 64px) clamp(20px, 5vw, 56px) clamp(36px, 5vh, 60px);
  background: var(--b-cream);
  color: var(--color-text-primary);
}
.b-about__inner {
  max-width: 1080px;
  margin: 0 auto;
}
.b-about__head {
  margin-bottom: clamp(28px, 3.5vh, 44px);
  position: relative;
}
.b-about__head::before {
  content: '';
  position: absolute;
  top: clamp(-28px, -2.4vh, -18px);
  left: 0;
  width: clamp(64px, 8vw, 96px);
  height: 1px;
  background: var(--b-teal);
}
.b-about__head .b-section-title { margin-top: clamp(3px, 0.5vh, 5px); }

.b-about__body { margin: 0 0 clamp(48px, 6vh, 80px); }
.b-about__body p {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
  line-height: 1.78;
  color: var(--color-text-secondary);
  margin: 0 0 clamp(18px, 2.4vh, 26px);
}
.b-about__body p:last-child { margin-bottom: 0; }
.b-about__body strong { color: var(--color-text-primary); font-weight: 700; }
.b-about__body em { font-style: italic; color: var(--b-teal); }

.b-about__wide-image {
  margin: 0 0 clamp(48px, 6vh, 80px);
  border-radius: var(--b-card-radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px -32px rgba(10, 22, 40, 0.4);
}
.b-about__wide-image img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.b-about__wide-image figcaption {
  display: block;
  text-align: center;
  padding: 14px clamp(16px, 2vw, 22px) 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(0.92rem, 0.85rem + 0.2vw, 1.05rem);
  line-height: 1.45;
  color: var(--color-text-secondary);
  background: var(--b-cream);
}

/* When the gallery is the last element in About, drop its trailing margin so
   the section's own padding-bottom sets a natural gap to the next section. */
.b-about__gallery:last-child { margin-bottom: 0; }

/* =========================================================
   3. MAP
   ========================================================= */
.b-map {
  padding: clamp(22px, 3.5vh, 44px) clamp(20px, 5vw, 56px) clamp(40px, 5vh, 64px);
  background: var(--b-cream);
  color: var(--color-text-primary, #1a1a1a);
}
.b-map__inner {
  max-width: var(--b-content-wide);
  margin: 0 auto;
}
.b-map__text {
  max-width: 760px;
  margin-bottom: clamp(28px, 4.5vh, 48px);
}
.b-map__canvas {
  position: relative;
  height: clamp(560px, 72vh, 760px);
  border-radius: var(--b-card-radius);
  overflow: hidden;
  background: var(--b-midnight);
  border: 1px solid rgba(250, 248, 245, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
}
.b-map__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.b-map__map .mapboxgl-ctrl-top-right { top: 18px; right: 18px; }
.b-map__map .mapboxgl-ctrl-group {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(250, 248, 245, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}
.b-map__legend,
.b-map__hint {
  position: absolute;
  z-index: 4;
  font-family: var(--font-body);
  color: #fff8ee;
  pointer-events: none;
}
.b-map__legend {
  left: 18px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 12px;
  border: 1px solid rgba(250, 248, 245, 0.14);
  border-radius: 999px;
  background: rgba(36, 61, 79, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  pointer-events: auto;
}
.b-map__legend > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding-right: 4px;
}
.b-map__legend-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--duration-fast, 150ms) var(--ease-out-expo),
              opacity var(--duration-fast, 150ms) var(--ease-out-expo),
              border-color var(--duration-fast, 150ms) var(--ease-out-expo);
}
.b-map__legend-toggle:hover,
.b-map__legend-toggle:focus-visible {
  background: rgba(250, 248, 245, 0.12);
  border-color: rgba(250, 248, 245, 0.2);
}
.b-map__legend-toggle.is-off { opacity: 0.4; }
.b-map__legend-toggle.is-off .b-map__legend-dot { opacity: 0.5; }
.b-map__legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(250, 248, 245, 0.5);
}
.b-map__legend-dot--kommune {
  width: 18px;
  height: 2px;
  border-radius: 0;
  background: #fff8ee;
  box-shadow: none;
}
.b-map__legend-dot--bygd { background: #c96f4c; }
.b-map__legend-dot--jobb { background: #2a8f8a; }
.b-map__legend-dot--poi { background: #c9a24b; }

.b-map__hint {
  left: 18px;
  bottom: 18px;
  max-width: 260px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.62);
  color: rgba(250, 248, 245, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
}

.b-map-card {
  position: absolute;
  z-index: 5;
  left: 22px;
  bottom: 64px;
  width: min(380px, calc(100% - 44px));
  overflow: hidden;
  border-radius: 18px;
  background: rgba(250, 248, 245, 0.98);
  color: var(--color-text-primary, #1a1a1a);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.46),
    0 14px 34px rgba(10, 22, 40, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.52);
  opacity: 0;
  transform: translateY(18px) scale(0.975);
  filter: saturate(0.96);
  transition:
    opacity 280ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 520ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
.b-map-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}
.b-map-card[hidden] { display: block; pointer-events: none; }
.b-map-card__close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.68);
  color: #fff8ee;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.b-map-card__media {
  position: relative;
  height: 220px;
  background: var(--b-midnight);
}
.b-map-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.b-map-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.05), rgba(10, 22, 40, 0.36));
}
.b-map-card__body { padding: 24px 22px 20px; }
.b-map-card__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--b-teal);
}
.b-map-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
  margin: 0 0 10px;
}
.b-map-card__lede {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}
.b-map-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b-teal);
}
.b-map-card__link::after {
  content: '→';
  transition: transform var(--duration-normal, 300ms) var(--ease-out-expo);
}
.b-map-card__link:hover::after,
.b-map-card__link:focus-visible::after { transform: translateX(4px); }
.b-map-card__status {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(42, 143, 138, 0.12);
  color: var(--b-teal);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Markers */
.b-map-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--b-teal);
  border: 2px solid #faf8f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.b-map-marker:hover,
.b-map-marker:focus-visible { transform: scale(1.25); }
.b-map-marker--bygd { background: #c96f4c; }
.b-map-marker--jobb { background: #2a8f8a; }
.b-map-marker--poi { background: #c9a24b; }
.b-map-marker--featured {
  width: 22px;
  height: 22px;
  box-shadow: 0 6px 18px rgba(42, 143, 138, 0.5), 0 0 0 4px rgba(42, 143, 138, 0.22);
}

/* =========================================================
   4. STORIES
   ========================================================= */
.b-stories {
  padding: clamp(40px, 5vh, 64px) clamp(20px, 5vw, 56px) clamp(40px, 5.5vh, 72px);
  background: var(--b-cream);
}
.b-stories__head {
  max-width: var(--b-content-wide);
  margin: 0 auto clamp(48px, 7vh, 80px);
  position: relative;
}
.b-stories__head::before {
  content: '';
  position: absolute;
  top: clamp(-28px, -2.4vh, -18px);
  left: 0;
  width: clamp(64px, 8vw, 96px);
  height: 1px;
  background: var(--b-teal);
}
.b-stories__head .b-section-title { margin-top: clamp(3px, 0.5vh, 5px); }

.b-stories__inner {
  max-width: var(--b-content-wide);
  margin: 0 auto;
}

.b-stories__featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  margin-bottom: clamp(60px, 8vh, 100px);
}
@media (max-width: 900px) {
  .b-stories__featured { grid-template-columns: 1fr; }
}
.b-stories__featured-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--b-card-radius-lg);
  overflow: hidden;
  background: var(--b-midnight);
}
.b-stories__featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.b-stories__featured:hover .b-stories__featured-media img { transform: scale(1.03); }
.b-stories__featured-body { padding: 0; }
.b-stories__featured-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(42, 143, 138, 0.12);
  color: var(--b-teal);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: clamp(18px, 2.5vh, 24px);
}
.b-stories__featured-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0 0 clamp(18px, 2.5vh, 26px);
}
.b-stories__featured-excerpt {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 56ch;
  margin: 0;
}

.b-stories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.b-story-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--b-card-radius);
  overflow: hidden;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 600ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 6px 20px rgba(10, 22, 40, 0.06);
}
.b-story-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(10, 22, 40, 0.12);
}
.b-story-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--b-midnight);
}
.b-story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.b-story-card:hover .b-story-card__media img { transform: scale(1.05); }
.b-story-card__chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(250, 248, 245, 0.92);
  color: var(--b-teal);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.b-story-card__body {
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.b-story-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.6vw, 1.55rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
  margin: 0;
}
.b-story-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Story cards are links */
.b-stories__featured { text-decoration: none; color: inherit; }
.b-story-card { text-decoration: none; color: inherit; }
.b-stories__featured-cta,
.b-story-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b-teal);
}
.b-stories__featured-cta { font-size: 0.82rem; margin-top: clamp(22px, 3vh, 30px); }
.b-story-card__cta { font-size: 0.76rem; margin-top: auto; padding-top: 4px; }
.b-stories__featured-cta::after,
.b-story-card__cta::after {
  content: '→';
  transition: transform var(--duration-normal, 300ms) var(--ease-out-expo);
}
.b-stories__featured:hover .b-stories__featured-cta::after,
.b-story-card:hover .b-story-card__cta::after { transform: translateX(4px); }

/* Dummy story cards (other types, not yet linked) — no click affordance */
.b-story-card--dummy { cursor: default; }
.b-story-card--dummy:hover {
  transform: none;
  box-shadow: 0 6px 20px rgba(10, 22, 40, 0.06);
}
.b-story-card--dummy:hover .b-story-card__media img { transform: none; }

/* =========================================================
   4b. ARCHIVE — "more stories" (shared VillageCarousel).
   Sits on the same cream as the Stories section above so it reads as one
   continuous block (the Lister pattern), with smaller cards so more fit
   per view.
   ========================================================= */
.b-archive-band {
  background: var(--b-cream);
}
/* Tuck the carousel right under the Stories section above. */
.b-archive-band .carousel-section {
  padding-top: 0;
  padding-bottom: clamp(48px, 7vh, 96px);
}
/* Align the carousel header with the Stories header above. */
.b-archive-band .carousel-header {
  max-width: var(--b-content-wide);
  padding: 0 clamp(20px, 5vw, 56px);
  margin-bottom: clamp(22px, 3.2vh, 36px);
}
/* Page accent + dark text on the cream surface. */
.b-archive-band .carousel-eyebrow {
  color: var(--b-teal);
}
.b-archive-band .carousel-eyebrow::after {
  background: linear-gradient(to right, var(--b-teal), transparent);
}
.b-archive-band .carousel-title {
  color: var(--color-text-primary);
}
.b-archive-band .carousel-subtitle {
  color: var(--color-text-secondary);
}
/* Smaller cards → more per view; white body on cream; teal accent line. */
.b-archive-band .carousel-track {
  gap: clamp(14px, 1.4vw, 22px);
}
.b-archive-band .village-card {
  flex: 0 0 clamp(204px, 15vw, 264px);
  background: #fff;
}
.b-archive-band .village-card-image {
  height: clamp(128px, 10vw, 168px);
}
.b-archive-band .village-card-body {
  padding: clamp(14px, 1.4vw, 20px);
  background: #fff;
}
.b-archive-band .village-card-body::before {
  background: linear-gradient(90deg, var(--b-teal), var(--b-teal-soft));
}
.b-archive-band .village-card-name {
  font-size: clamp(1.02rem, 0.92rem + 0.4vw, 1.25rem);
  margin-bottom: 6px;
}
.b-archive-band .village-card-tagline {
  font-size: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  line-height: 1.45;
}

/* =========================================================
   5. BYGDER — Villages bento grid
   ========================================================= */
.b-bygder {
  padding: clamp(40px, 5.5vh, 72px) clamp(20px, 5vw, 56px) clamp(44px, 6vh, 72px);
  background: var(--b-warm-white);
  position: relative;
}
.b-bygder__head {
  max-width: var(--b-content-wide);
  margin: 0 auto clamp(48px, 7vh, 80px);
  position: relative;
}
.b-bygder__head::before {
  content: '';
  position: absolute;
  top: clamp(-28px, -2.4vh, -18px);
  left: 0;
  width: clamp(64px, 8vw, 96px);
  height: 1px;
  background: var(--b-teal);
}
.b-bygder__head .b-section-title { margin-top: clamp(3px, 0.5vh, 5px); }
.b-bygder__head .b-section-intro { margin-top: clamp(8px, 1.2vh, 13px); }

.b-bygder__grid {
  max-width: var(--b-content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.b-bygd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--b-card-radius-lg);
  text-decoration: none;
  color: #faf8f5;
  isolation: isolate;
  background: var(--b-midnight);
  aspect-ratio: 4 / 5;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.b-bygd-card:hover,
.b-bygd-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -24px rgba(10, 22, 40, 0.4);
}
.b-bygd-card__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.b-bygd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.b-bygd-card:hover .b-bygd-card__media img { transform: scale(1.07); }
.b-bygd-card__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 10%, rgba(10, 22, 40, 0.3) 55%, rgba(10, 22, 40, 0.9) 100%);
}
.b-bygd-card__content {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.b-bygd-card__name {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(2.5rem, 1.35rem + 3.5vw, 5rem);
  margin: 0;
  color: #faf8f5;
}
.b-bygd-card__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 0.95rem + 0.6vw, 1.5rem);
  line-height: 1.4;
  color: rgba(250, 248, 245, 0.88);
  margin: clamp(14px, 1.8vh, 22px) 0 0;
  max-width: 460px;
}
.b-bygd-card__arrow {
  align-self: flex-end;
  margin-top: clamp(16px, 2.2vh, 24px);
  width: clamp(36px, 3vw, 48px);
  color: var(--b-teal-soft);
  display: inline-flex;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.b-bygd-card__arrow svg { width: 100%; height: auto; display: block; }
.b-bygd-card:hover .b-bygd-card__arrow,
.b-bygd-card:focus-visible .b-bygd-card__arrow { transform: translateX(8px); }

.b-bygd-card--row .b-bygd-card__content { padding: clamp(20px, 2.2vw, 28px); }
.b-bygd-card--row .b-bygd-card__name { font-size: clamp(1.8rem, 1.15rem + 1.4vw, 2.5rem); }
.b-bygd-card--row .b-bygd-card__tagline {
  font-size: clamp(1.05rem, 0.85rem + 0.33vw, 1.2rem);
  margin-top: clamp(10px, 1.4vh, 16px);
  max-width: none;
}
.b-bygd-card--row .b-bygd-card__arrow {
  width: clamp(28px, 2.4vw, 36px);
  margin-top: clamp(12px, 1.6vh, 18px);
}

/* Bento spans — 1 featured + 7 row cards */
.b-bygd-card--featured { grid-column: span 8; aspect-ratio: 16 / 10; }
.b-bygd-card--row { grid-column: span 4; aspect-ratio: 4 / 5; }

@media (max-width: 1024px) {
  .b-bygd-card--featured { grid-column: span 12; aspect-ratio: 16 / 10; }
  .b-bygd-card--row { grid-column: span 6; aspect-ratio: 4 / 5; }
}
@media (max-width: 600px) {
  .b-bygd-card--row { grid-column: span 12; aspect-ratio: 4 / 5; }
}

/* =========================================================
   6. ARBEIDSLIV — Employers grid
   ========================================================= */
.b-arbeidsliv {
  padding: clamp(60px, 8vh, 100px) clamp(20px, 5vw, 56px) clamp(60px, 8vh, 100px);
  background: var(--b-midnight);
  color: #faf8f5;
}
.b-arbeidsliv__head {
  max-width: var(--b-content-wide);
  margin: 0 auto clamp(48px, 7vh, 80px);
  position: relative;
}
.b-arbeidsliv__head::before {
  content: '';
  position: absolute;
  top: clamp(-28px, -2.4vh, -18px);
  left: 0;
  width: clamp(64px, 8vw, 96px);
  height: 1px;
  background: var(--b-teal);
}
.b-arbeidsliv__head .b-section-title { margin-top: clamp(3px, 0.5vh, 5px); }
.b-arbeidsliv__head .b-section-intro {
  margin-top: clamp(8px, 1.2vh, 13px);
  color: rgba(250, 248, 245, 0.82);
}
.b-arbeidsliv__inner {
  max-width: var(--b-content-wide);
  margin: 0 auto;
}
.b-employers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 1024px) { .b-employers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .b-employers { grid-template-columns: 1fr; } }

.b-employer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(250, 248, 245, 0.04);
  border: 1px solid rgba(250, 248, 245, 0.1);
  border-radius: var(--b-card-radius);
  overflow: hidden;
  color: inherit;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 600ms cubic-bezier(0.22, 1, 0.36, 1),
              background 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.b-employer-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 143, 138, 0.5);
  background: rgba(250, 248, 245, 0.06);
}
.b-employer-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--b-midnight);
  overflow: hidden;
}
.b-employer-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.b-employer-card:hover .b-employer-card__media img { transform: scale(1.05); }
.b-employer-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.05), rgba(10, 22, 40, 0.55));
}
.b-employer-card__body {
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.b-employer-card__sector {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--b-teal-soft);
  margin: 0;
}
.b-employer-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #faf8f5;
  margin: 0;
}
.b-employer-card__summary {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(250, 248, 245, 0.78);
  margin: 4px 0 0;
}
.b-employer-card { text-decoration: none; }
.b-employer-card__cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b-teal-soft);
}
.b-arbeidsliv__source {
  margin: clamp(28px, 4vh, 44px) 0 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(250, 248, 245, 0.5);
}

/* =========================================================
   7. CLOSE — welcome + action choices
   ========================================================= */
.b-close {
  position: relative;
  padding: clamp(80px, 11vh, 140px) clamp(20px, 5vw, 56px);
  background: var(--b-midnight);
  color: #faf8f5;
  overflow: hidden;
  isolation: isolate;
}
.b-close__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.b-close__bg img { width: 100%; height: 100%; object-fit: cover; }
.b-close__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.5) 0%, rgba(10, 22, 40, 0.8) 100%),
    radial-gradient(ellipse at 30% 30%, rgba(42, 143, 138, 0.16), transparent 60%);
}
.b-close__inner {
  max-width: var(--b-content-wide);
  margin: 0 auto;
}
.b-close__head {
  max-width: 880px;
  margin: 0 auto clamp(56px, 7vh, 88px);
  text-align: center;
}
.b-close__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 0.95rem + 0.8vw, 1.5rem);
  line-height: 1.55;
  color: rgba(250, 248, 245, 0.85);
  max-width: 680px;
  margin: clamp(22px, 3vh, 32px) auto 0;
}
.b-close__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 900px) { .b-close__cards { grid-template-columns: 1fr; } }
.b-close__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(250, 248, 245, 0.22);
  border-radius: var(--b-card-radius);
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: inherit;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 500ms cubic-bezier(0.22, 1, 0.36, 1),
              background 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.b-close__card:hover,
.b-close__card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(42, 143, 138, 0.7);
  background: rgba(10, 22, 40, 0.72);
}
.b-close__card-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--b-teal-soft);
  margin-bottom: 6px;
}
.b-close__card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #faf8f5;
}
.b-close__card-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(250, 248, 245, 0.74);
  margin-top: 8px;
}
.b-close__card-link {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--b-teal-soft);
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 768px) {
  .b-stories__featured { margin-bottom: clamp(40px, 5.5vh, 64px); }
  .b-stories__head .b-section-title,
  .b-bygder__head .b-section-title,
  .b-arbeidsliv__head .b-section-title {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  }
}
@media (max-width: 480px) {
  .b-hero__content { padding-bottom: clamp(60px, 10vh, 100px); }
  .b-employers { gap: 14px; }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .b-hero__media,
  .b-close__bg { display: none; }
  .b-arbeidsliv,
  .b-close {
    background: #fff !important;
    color: #000 !important;
  }
}
