/* Locally hosted Latin fonts cover both Norwegian Bokmal and English. */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/manrope-latin-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin.woff2') format('woff2');
}

html { --site-header-height: 82px; scroll-padding-top: 100px; scrollbar-gutter: stable; }
.site-header,
.home-hero {
  --navy: #0c1824;
  --navy-secondary: #263748;
  --metal: #b8aea0;
  --off-white: #f5f2ed;
  --accent: #426bb3;
  --display-font: Manrope, var(--font);
  --technical-font: 'IBM Plex Sans', var(--font);
}

/* The homepage starts behind the transparent header; internal pages use navy. */
.home-page main { margin-top: calc(-1 * var(--site-header-height)); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--site-header-height);
  background: var(--navy);
  border-bottom: 1px solid #a6b0b92b;
  color: var(--off-white);
  font-family: var(--display-font);
  transition: background 180ms ease, border-color 180ms ease;
}
.home-page .site-header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; }
.home-page.menu-open .site-header { background: var(--navy); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.site-header .wordmark { width: 138px; height: 76px; justify-content: center; border-radius: 0; background: transparent; }
.site-header .brand-logo { width: 138px; max-width: none; height: auto; flex-shrink: 0; }
.nav-links { flex: 1; display: flex; justify-content: center; margin-left: 0; }
.nav-items { display: flex; align-items: center; gap: 30px; }
.nav-items a {
  position: relative;
  padding: 12px 0;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .005em;
  white-space: nowrap;
}
.nav-items a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--off-white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.nav-items a:hover::after,
.nav-items a[aria-current='page']::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 32px; }
.nav-cta,
.nav-panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 45px;
  padding: 12px 18px;
  border-radius: 3px;
  background: var(--navy);
  color: var(--off-white);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition: background 200ms ease;
}
.nav-cta { gap: 16px; padding: 10px 17px; background: transparent; border: 1px solid #f5f2ed6b; font-weight: 500; }
.nav-cta .presentation-arrow { width: 16px; height: 16px; }
.nav-cta:hover { background: var(--off-white); color: var(--navy); border-color: var(--off-white); }
.presentation-arrow { width: 18px; height: 18px; flex-shrink: 0; }
.nav-panel-cta { display: none; }
.language-switch { display: flex; align-items: center; flex-shrink: 0; gap: 2px; }
.language-switch a {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 44px;
  color: var(--metal);
  font-size: .75rem;
  font-weight: 500;
  transition: color 200ms ease;
}
.language-switch a:hover,
.language-switch a[aria-current='page'] { color: var(--off-white); }
.language-switch a[aria-current='page'] { font-weight: 600; }
.language-separator { color: var(--metal); font-size: .75rem; font-weight: 400; }
.nav-toggle { display: none; }
.site-header :focus-visible { outline: 2px solid var(--off-white); outline-offset: 5px; }

/* One full-bleed photographic surface, with content directly above the overlay. */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--navy);
  color: var(--off-white);
  font-family: var(--technical-font);
}
.home-hero-background { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; }
.home-hero-background img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #0c1824ed 0%, #0c1824db 26%, #0c182466 40%, #0c182400 50%);
}
.home-hero-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: clamp(760px, 100svh, 1080px);
  padding-top: calc(var(--site-header-height) + 40px);
}
.home-hero-copy { width: min(100%, 680px); min-width: 0; margin-top: auto; margin-bottom: auto; }
.home-hero-eyebrow {
  margin-bottom: 28px;
  color: #b6ad9f;
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .16em;
  line-height: 1.5;
  text-transform: uppercase;
}
.home-hero h1 {
  margin: 0;
  color: var(--off-white);
  font-family: var(--display-font);
  font-size: clamp(3rem, 4.8vw, 4.375rem);
  font-weight: 600;
  line-height: 1.11;
  letter-spacing: -.052em;
}
.home-hero h1 span { display: block; white-space: nowrap; }
.home-hero h1 span + span { color: #e7dac9; }
.home-hero-description {
  max-width: 500px;
  margin-top: 24px;
  color: #d3cbc2;
  font-size: 1.09375rem;
  font-weight: 400;
  line-height: 1.6;
}
.home-hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: 32px; }
.home-hero-primary,
.home-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  font-family: var(--display-font);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.5;
  transition: color 200ms ease, background 200ms ease;
}
.home-hero-primary { padding: 14px 22px; border-radius: 3px; background: var(--off-white); color: var(--navy); }
.home-hero-primary:hover { background: #e7dac9; }
.home-hero-secondary { gap: 14px; color: var(--off-white); }
.home-hero-secondary:hover { color: #d3cbc2; }
.home-hero-credibility {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 24px 0;
  border-top: 1px solid #a6b0b92b;
  color: var(--metal);
  font-size: .75rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-hero-credibility span + span::before { content: '·'; margin-right: 24px; }
.home-hero :focus-visible { outline: 2px solid #e7dac9; outline-offset: 6px; }

/* The desktop row changes before its links, CTA and language control collide. */
@media (max-width: 1190px) {
  .header-inner { gap: 24px; }
  .header-actions { margin-left: auto; gap: 24px; }
  .header-actions > .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 44px;
    padding: 8px 0 8px 8px;
    border: 0;
    background: transparent;
    color: var(--off-white);
    font-size: .8125rem;
    font-weight: 600;
  }
  .nav-toggle-icon { position: relative; width: 20px; height: 20px; }
  .nav-toggle-icon::before,
  .nav-toggle-icon::after { content: ''; position: absolute; left: 0; width: 20px; height: 1px; background: currentColor; }
  .nav-toggle-icon::before { top: 6px; }
  .nav-toggle-icon::after { top: 13px; }
  .nav-toggle[aria-expanded='true'] .nav-toggle-icon::before { top: 10px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded='true'] .nav-toggle-icon::after { top: 10px; transform: rotate(-45deg); }
  .nav-links {
    display: none;
    justify-content: flex-start;
    position: fixed;
    top: var(--site-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 36px max(27px, calc((100vw - 1240px) / 2));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--navy);
    color: var(--off-white);
  }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; }
  .nav-items { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-items a { padding: 20px 0; border-bottom: 1px solid #a6b0b92b; font-size: clamp(1.375rem, 3vw, 2rem); line-height: 1.4; }
  .nav-items a::after { bottom: 0; background: var(--metal); }
  .nav-panel-cta { display: inline-flex; margin-top: 32px; background: var(--off-white); color: var(--navy); }
  .nav-panel-cta:hover { background: var(--off-white); }
  body.menu-open { overflow: hidden; }
  body.menu-open .back-to-top { display: none; }
  .home-hero h1 { font-size: clamp(2.5rem, 4.7vw, 3.5rem); }
  .home-hero-description { max-width: 400px; font-size: 1.0625rem; }
  .home-hero-actions { gap: 20px; }
}

@media (max-width: 1100px) {
  .home-hero-layout { min-height: 1100px; padding-top: calc(var(--site-header-height) + 56px); }
  .home-hero-copy { margin-top: 0; margin-bottom: 0; }
  .home-hero h1 { font-size: clamp(2.5rem, 6.7vw, 3.75rem); }
  .home-hero-description { max-width: 520px; }
  .home-hero-credibility { margin-top: auto; }
  .home-hero::after { background: linear-gradient(180deg, #0c1824e6 0%, #0c1824c7 36%, #0c182433 56%, #0c182414 80%, #0c1824cc 100%); }
}

@media (max-width: 760px) {
  html { --site-header-height: 72px; scroll-padding-top: 90px; }
  .site-header .wordmark { width: 112px; height: 64px; }
  .site-header .brand-logo { width: 112px; }
  .header-actions { gap: 16px; }
  .nav-links { padding: 24px 24px 40px; }
  .nav-items a { padding: 20px 0; font-size: 1.5rem; }
  .home-hero-eyebrow { margin-bottom: 24px; font-size: .6875rem; letter-spacing: .12em; }
  .home-hero h1 { font-size: clamp(2.375rem, 10.5vw, 3rem); line-height: 1.14; letter-spacing: -.05em; }
  .home-hero h1 span { white-space: normal; }
  .home-hero-description { margin-top: 24px; font-size: 1.0625rem; line-height: 1.65; }
  .home-hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 28px; }
  .home-hero-primary { min-height: 52px; padding-right: 20px; padding-left: 20px; }
  .home-hero-secondary { min-height: 48px; }
  .home-hero-credibility {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px 0;
    font-size: .875rem;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
  }
  .home-hero-credibility span + span::before { content: none; }
}

@media (max-width: 600px) {
  .home-hero-layout { min-height: clamp(1000px, 100svh, 1120px); padding-top: calc(var(--site-header-height) + 48px); }
  .home-hero::after { background: linear-gradient(180deg, #0c1824e6 0%, #0c1824d1 45%, #0c18242e 66%, #0c18240d 80%, #0c1824d6 92%, #0c1824f0 100%); }
}

@media (max-width: 380px) {
  .header-actions { gap: 10px; }
  .nav-toggle { gap: 10px; }
  .language-switch a { min-width: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *, .site-header *::after, .home-hero * { transition: none; }
}

/* Warm hero palette and restrained brand accent. */
.home-hero {
  --off-white: #f5f2ed;
  --metal: #b8aea0;
}
.home-hero h1 { color: #f3f1ed; }
.home-hero h1 span + span { color: #e7dac9; }
.home-hero-description { color: #d3cbc2; }
.home-hero-eyebrow { color: #b6ad9f; }
.home-hero-credibility { color: #a6b0b9; }
.home-hero-secondary { color: #f3f1ed; }
.home-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 10px;
  background: #c34a50;
  vertical-align: middle;
}
.home-hero-primary:hover { background: #d5d0cb; }
.home-hero-secondary:hover { color: #d5d0cb; }
.home-hero :focus-visible { outline-color: var(--off-white); }
