/* Akari starter kit · style
 *
 * Two parts:
 *   1. @layer kit and @layer switches: the mechanics the behaviour depends on (touch targets, the menu
 *      takeover, the carousel, the form, the action bar, iOS, reveal). Keep them. They use only tokens, so
 *      they take any look. kit comes first, so the look can restyle it; switches (the phone breakpoint,
 *      landscape, reduced motion) comes last, so no look can break the behaviour.
 *   2. @layer base, components, pages: the look. Here it is a WIREFRAME, grey and plain on purpose.
 *      Replace it with the direction in RETNING.md: design every token, the type, the header, the buttons,
 *      the cards, the menu, the form and the footer from scratch. Do not adjust the wireframe.
 *      Remove --wireframe from :root when the look is yours (the build warns while it is there).
 *
 * Two kinds of rule stay unlayered, at the very end: [hidden] (RULES.md L12), and the overrides of what
 * Akari Engine injects (the cookie banner, the privacy notice), because injected CSS beats any layer.
 */
@layer kit, base, components, pages, switches;

/* =====================================================================================================
   1 · The kit: mechanics. Keep.
   ===================================================================================================== */
@layer kit {
  *, *::before, *::after { box-sizing: border-box; }

  /* html and body carry the colour of the iPhone bars; main carries the page (I1). */
  html {
    background-color: var(--color-deep);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
  }
  body { margin: 0; background-color: var(--color-deep); -webkit-font-smoothing: antialiased; }
  main { display: block; background-color: var(--color-bg); overflow-x: clip; }
  /* An instant restore after the menu closes (T4), and the scroll lock while it is open. */
  html[data-instant] { scroll-behavior: auto; }
  html[data-locked], html[data-locked] body { overflow: hidden; }

  h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
  p, li, dd, figcaption, blockquote { text-wrap: pretty; }
  /* No automatic hyphenation (L9). */
  * { hyphens: manual; }

  img, svg, video { display: block; max-width: 100%; height: auto; }
  svg.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.2em; }
  button, input, select, textarea { font: inherit; color: inherit; }
  :focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

  /* Anchor targets clear the header (never scroll-padding on html). */
  [id] { scroll-margin-top: calc(var(--header-h) + 16px); }

  .nw { white-space: nowrap; }
  .visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--color-surface); color: var(--color-text); }
  .skip:focus { top: 12px; }
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

  /* The contact section on a wide screen: the heading beside the form, so both fit one laptop screen (L13). */
  @media (min-width: 900px) {
    [data-form] > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
    [data-form] > .wrap > .section__head { margin-bottom: 0; }
  }

  /* Buttons and links: 44–48 px targets (A2). */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; text-decoration: none; cursor: pointer;
  }
  .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
  .card > a, .link-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
  details > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; }

  /* Header */
  .site-header { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); }
  .site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
  .site-header__logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
  .site-nav { display: flex; align-items: center; }
  .site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
  .menu-button { display: none; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; cursor: pointer; }

  /* The menu takeover (T2–T12) */
  .takeover {
    position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none;
    margin: 0; padding: 0; border: 0;
    background: var(--color-deep); color: var(--color-on-deep);
    overscroll-behavior: contain;
  }
  .takeover::backdrop { background: var(--color-deep); }
  .takeover[open] { display: flex; flex-direction: column; }
  .takeover__top {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: var(--header-h); padding: env(safe-area-inset-top) var(--gutter) 0; flex: none;
  }
  .takeover__close { display: inline-grid; place-items: center; width: 48px; height: 48px; cursor: pointer; }
  .takeover__body { flex: 1; overflow-y: auto; padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
  .takeover__links { list-style: none; margin: 0; padding: 0; }
  .takeover__links a { display: flex; align-items: center; min-height: 56px; text-decoration: none; }
  .takeover__contact a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Carousel (K1–K9): the list, and the bar with the counter */
  .cards { margin: 0; padding: 0; list-style: none; }
  .cards > li { min-width: 0; }
  .carousel-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
  .carousel-bar__count { font-variant-numeric: tabular-nums; }
  .carousel-bar__buttons { display: flex; gap: 8px; }
  .carousel-bar button { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
  .carousel-bar button:disabled { cursor: default; }

  /* Form (S1–S15) */
  .form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form fieldset { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
  .form legend { padding: 0; }
  .field { display: grid; gap: 6px; min-width: 0; }
  .field input, .field select, .field textarea {
    width: 100%; min-height: 48px;
    font-size: max(16px, 1rem); /* 16 px or iOS zooms (S9) */
  }
  .field textarea { min-height: 104px; resize: vertical; }   /* three lines: the whole form fits a laptop screen (L13) */
  .field [aria-invalid="true"] { border-color: var(--color-error); }
  .field__error { margin: 0; color: var(--color-error); }
  .form__summary ul { margin: 8px 0 0; padding-left: 20px; }
  .form__steps { display: flex; justify-content: space-between; gap: 12px; }
  /* The submit button stands in its own block: the published privacy notice goes before it. */
  [data-submit-row] { display: flex; flex-wrap: wrap; gap: 12px; }
  .form[aria-busy="true"] [type="submit"] { opacity: 0.7; cursor: progress; }
  .form__status, .form__answer { scroll-margin: calc(var(--header-h) + 16px) 0 calc(var(--bar-h) + 24px); }
  .form__status:empty { margin: 0; }
  /* The honeypot is off screen, inert and aria-hidden in the markup (S1). */
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* Action bar (H1–H6, E2) */
  .actionbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: none; align-items: center; gap: 10px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)) 72px; /* 72 px: the cookie button's slot */
    background: var(--color-deep); color: var(--color-on-deep);
    transform: translateY(110%);
    transition: transform var(--dur) var(--ease);
  }
  .actionbar[data-visible="true"] { transform: none; }
  .actionbar .btn { flex: 1; min-height: 48px; padding-inline: 12px; }
  .actionbar__slot { position: absolute; left: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); width: 48px; height: 48px; }

  /* Reveal (E5, A7): visible without JavaScript */
  html[data-js] .reveal:not([data-shown]) { opacity: 0; transform: translateY(16px); }
  .reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }

  /* Footer targets (A2) */
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
  .site-footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
}

/* The switches: the mechanics that must win over any look, so they sit in the last layer. Keep. */
@layer switches {
  /* Phone (the one breakpoint, T3: keep it equal to script.js) */
  @media (max-width: 899.98px) {
    .site-nav { display: none; }
    .menu-button { display: inline-flex; }
    .actionbar { display: flex; }
    /* Room for the action bar, in the footer's own colour (no light band above it). */
    body:has(.actionbar) .site-footer { padding-bottom: calc(32px + var(--bar-h) + env(safe-area-inset-bottom)); }
    .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); }
    .btn-row .btn { width: 100%; }
    [data-submit-row] .btn { width: 100%; }

    [data-carousel] {
      display: flex; gap: 16px;
      overflow-x: auto; overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
      margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
      scrollbar-width: none;
    }
    [data-carousel]::-webkit-scrollbar { display: none; }
    [data-carousel] > li { flex: 0 0 82%; scroll-snap-align: start; scroll-margin-inline: var(--gutter); }
    .carousel-bar { display: flex; }
  }

  /* Landscape phone: fixed elements take little room (H5, T10) */
  @media (max-height: 480px) and (orientation: landscape) {
    .site-header { position: static; }
    .actionbar { padding-block: 4px calc(4px + env(safe-area-inset-bottom)); }
    .actionbar .btn { min-height: 44px; }
    .takeover__links a { min-height: 48px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms; animation-iteration-count: 1; transition-duration: 0.01ms; }
    html[data-js] .reveal:not([data-shown]) { opacity: 1; transform: none; }
  }
}

/* =====================================================================================================
   2 · The look: Advokatene Notodden as the WordPress site had it (Elementor, 2023–2026), moved 1:1.
   Roboto light for type, Poppins in the header, Work Sans in the contact band and footer.
   ===================================================================================================== */
@layer base {
  :root {
    /* AGENTS.md requires these eight */
    --color-bg: #ffffff;
    --color-surface: #f5f5f5;
    --color-text: #2d3033;
    --color-text-muted: #54595f;
    --color-accent: #5d6a79;
    --color-accent-muted: #e0e0e0;
    --font-display: 'Roboto', var(--fallback-sans);
    --font-body: 'Roboto', var(--fallback-sans);

    /* The old site's other colours and fonts */
    --font-nav: 'Poppins', var(--fallback-sans);
    --font-form: 'Work Sans', var(--fallback-sans);
    --color-heading: #3c3f42;
    --color-pill: #2d3336;
    --color-pill-hover: #4a5560;
    --color-deep: #1d1d1d;
    --color-on-deep: #ffffff;
    --color-on-accent: #ffffff;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-footer: #e0e0e0;
    --color-footer-link: #3c3f42;
    --color-line: #d5d8dc;
    --color-cv-bg: #f6f6f6;
    --color-cv-line: #c4c4c4;
    --color-line-on-deep: rgb(255 255 255 / 0.18);
    --color-field: #858585;
    --color-error: #a3261c;
    --color-error-on-deep: #ffa49a;
    --color-focus: #2f6fb0;
    --color-hero-shade: rgb(30 30 31 / 0.87);
    --color-hero-clear: rgb(0 0 0 / 0);
    --fallback-sans: 'Akari Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    --space-section: clamp(56px, min(8vw, 11vh), 110px);
    --space-head: clamp(20px, min(3vw, 4vh), 32px);
    --gap: 24px;
    --gutter: clamp(20px, 5vw, 48px);
    --measure: 72ch;
    --wrap: 1210px;
    --radius: 3px;
    --header-h: 72px;
    --bar-h: 64px;

    --step--1: 0.875rem;
    --step-0: 1rem;
    --step-1: 1.25rem;
    --step-2: clamp(1.5625rem, 1.4rem + 0.5vw, 1.75rem);
    --step-3: clamp(1.375rem, 1rem + 1.6vw, 2.8125rem);
    --step-4: clamp(2rem, min(1.2rem + 2.6vw, 7vh), 3.125rem);

    --dur: 0.3s;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    color-scheme: light;
  }

  /* The fallback font is sized to Roboto, so the swap does not move the page (Y7). */
  @font-face {
    font-family: 'Akari Fallback';
    src: local('Arial');
    size-adjust: 99.4%;
    ascent-override: 93.6%;
    descent-override: 24.2%;
    line-gap-override: 0%;
  }

  html, body { background-color: var(--color-bg); }
  body { color: var(--color-text); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.2; color: var(--color-heading); }
  h1 { font-size: var(--step-4); }
  h2 { font-size: var(--step-2); }
  h3 { font-size: var(--step-2); }
  p { margin: 0 0 1em; max-width: var(--measure); }
  :is(h1, h2, h3) + :is(p, ul, ol) { margin-top: 0.75em; }
  p:last-child { margin-bottom: 0; }
  a { color: inherit; text-underline-offset: 0.18em; }
  a:hover { color: var(--color-accent); }
  ul { padding-left: 1.4em; }
  li + li { margin-top: 0.15em; }

  .section { padding-block: var(--space-section); }
  .section__head { margin-bottom: var(--space-head); }
  .lead { font-size: var(--step-1); line-height: 1.5; }
}

@layer components {
  .btn { padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius); line-height: 1.2; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .btn--pill {
    min-height: 50px; padding: 15px 30px; border-radius: 25px;
    background: var(--color-pill); color: var(--color-white);
    font-family: var(--font-body); font-size: 1.25rem; font-weight: 500;
  }
  .btn--pill:hover { background: var(--color-pill-hover); color: var(--color-white); }
  .btn--outline { min-height: 44px; padding: 8px 16px; border-color: currentColor; background: transparent; font-family: var(--font-form); font-size: 1rem; }
  .btn--outline:hover { background: var(--color-white); color: var(--color-deep); }

  /* Header: a contact line, then the name and the menu. Over the hero on the front page, white elsewhere. */
  .site-header { position: relative; background: var(--color-bg); color: var(--color-heading); }
  body:has(.hero) .site-header { position: absolute; inset: 0 0 auto; background: transparent; color: var(--color-white); }
  .site-header__top { display: flex; justify-content: flex-end; gap: 4px 30px; flex-wrap: wrap; padding-top: 6px; font-family: var(--font-nav); font-weight: 300; font-size: 1rem; }
  .site-header__top a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
  .site-header__top a:hover { color: inherit; text-decoration: underline; }
  .site-header__bar { min-height: 72px; }
  .site-header__logo { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem, 0.95rem + 1.9vw, 2.1875rem); line-height: 1.5; color: inherit; white-space: nowrap; }
  .site-header__logo strong { font-weight: 400; }
  .site-header__logo:hover { color: inherit; }
  .site-nav { gap: 30px; }
  .site-nav a { position: relative; padding: 5px 0; font-family: var(--font-nav); font-size: 1.125rem; text-decoration: none; color: inherit; }
  .site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform var(--dur) var(--ease); }
  .site-nav a:hover { color: inherit; }
  .site-nav a:hover::after,
  body:has([data-page="index"]) .site-nav [data-nav="index"]::after,
  body:has([data-page="fagomrader"]) .site-nav [data-nav="fagomrader"]::after,
  body:has([data-page="menneskene"]) .site-nav [data-nav="menneskene"]::after,
  body:has([data-page="kontakt"]) .site-nav [data-nav="kontakt"]::after { transform: none; }
  body:not(:has(.hero)) .site-nav a:hover { color: var(--color-accent); }
  .menu-button { padding: 0 8px; background: transparent; border: 0; color: inherit; }
  .menu-button .icon { width: 28px; height: 28px; }

  .takeover { font-family: var(--font-nav); }
  .takeover__top h2 { font-size: 1.25rem; color: inherit; font-family: var(--font-nav); font-weight: 300; }
  .takeover__close { background: transparent; color: inherit; border: 0; }
  .takeover__links a { font-size: 1.375rem; border-bottom: 1px solid var(--color-line-on-deep); color: inherit; }
  .takeover__links a:hover { color: inherit; }
  body:has([data-page="index"]) .takeover [data-nav="index"],
  body:has([data-page="fagomrader"]) .takeover [data-nav="fagomrader"],
  body:has([data-page="menneskene"]) .takeover [data-nav="menneskene"],
  body:has([data-page="kontakt"]) .takeover [data-nav="kontakt"] { text-decoration: underline; text-underline-offset: 6px; }
  .takeover__contact { margin-top: 32px; display: grid; gap: 4px; font-weight: 300; }
  .takeover__contact a { gap: 10px; color: inherit; text-decoration: none; }

  details > summary { list-style: none; }
  details > summary::-webkit-details-marker { display: none; }

  /* The contact band: the old footer's dark section with its slanted top, on every page. */
  .contact-band {
    --cut: clamp(35px, 9vw, 120px);
    position: relative;
    margin-top: calc(-1 * var(--cut) + 1px);
    padding-top: calc(var(--cut) + clamp(32px, 4vw, 48px));
    padding-bottom: clamp(48px, 5vw, 72px);
    background: var(--color-deep); color: var(--color-on-deep);
    clip-path: polygon(0 calc(var(--cut) * 0.9), 76% 0, 100% calc(var(--cut) * 0.8), 100% 100%, 0 100%);
    text-align: center;
  }
  .contact-band > .wrap { display: block; max-width: 1008px; }
  .contact-band .section__head { margin-inline: auto; }
  .contact-band h2 { color: var(--color-white); font-weight: 400; font-size: var(--step-3); line-height: 1.1; }
  .contact-band .lead { margin: 16px auto 0; max-width: none; font-family: var(--font-form); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); }
  .contact-band .form { max-width: none; text-align: center; font-family: var(--font-form); }
  .form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .contact-band .field label { font-weight: 700; font-size: 1rem; }
  .contact-band .req { font-weight: 400; font-style: italic; font-size: 0.875rem; }
  .contact-band .field input, .contact-band .field textarea {
    padding: 10px 12px; background: var(--color-white); color: var(--color-black);
    border: 1px solid var(--color-white); border-radius: var(--radius); font-family: var(--font-form);
  }
  .contact-band .field textarea { min-height: 120px; }
  .contact-band .field__error { color: var(--color-error-on-deep); font-weight: 600; font-size: 0.95rem; }
  .contact-band .field [aria-invalid="true"] { border-color: var(--color-error-on-deep); box-shadow: 0 0 0 2px var(--color-error-on-deep); }
  .contact-band [data-submit-row] { justify-content: flex-start; }
  .contact-band .form__summary { padding: 16px 20px; text-align: left; border: 2px solid var(--color-error-on-deep); background: var(--color-white); color: var(--color-text); }
  .contact-band .form__status { margin: 16px 0 0; font-weight: 600; }
  .contact-band .form__answer { margin-top: 24px; padding: 28px; border: 1px solid var(--color-line-on-deep); text-align: left; }
  .contact-band .form__answer h3 { margin-bottom: 8px; color: var(--color-white); font-weight: 400; }
  .contact-band .form__answer a { color: inherit; }
  .contact-band :focus-visible { outline-color: var(--color-white); }
  .contact-band a:hover { color: inherit; }

  /* Footer: grey, small capitals, centred. 14 px where the old site had 12 (L2). */
  .site-footer { background: var(--color-footer); color: var(--color-black); padding: 32px 0 calc(16px + env(safe-area-inset-bottom)); font-family: var(--font-form); font-size: 0.875rem; text-transform: uppercase; line-height: 1.7; text-align: center; }
  .site-footer p { margin: 0 auto; max-width: none; }
  .site-footer strong { font-weight: 700; }
  .site-footer a { min-height: 32px; min-width: 0; color: var(--color-footer-link); text-decoration: none; }
  .site-footer a:hover { color: var(--color-black); text-decoration: underline; }
  .site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .site-footer__grid > div { display: grid; align-content: start; gap: 2px; }
  .site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 28px; margin-top: 32px; letter-spacing: 2px; font-weight: 500; }
  .site-footer__legal a { min-height: 44px; color: var(--color-black); }
  .site-footer__legal > span[aria-hidden] { display: none; }

  @media (min-width: 900px) {
    .form__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1140px; }

    .site-footer__legal > span[aria-hidden] { display: inline; }
  }
}

@layer pages {
  /* Front page: the big picture of Notodden, dark at the top, with the slanted lower edge. */
  .hero {
    --cut: clamp(16px, 9vw, 130px);
    position: relative; isolation: isolate;
    display: grid; align-items: center;
    min-height: clamp(520px, 72svh, 640px);
    padding: 150px 0 calc(var(--cut) + 32px);
    color: var(--color-white);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut) * 0.15), 26% calc(100% - var(--cut)), 0 calc(100% - var(--cut) * 0.62));
  }
  .hero__media { position: absolute; inset: 0; z-index: -2; }
  .hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
  .hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--color-hero-shade) 3%, var(--color-hero-clear) 63%); }
  .hero__inner { position: relative; }
  .hero__title { margin-bottom: 28px; color: var(--color-white); font-weight: 300; font-size: var(--step-4); line-height: 0.95; text-wrap: initial; }
  .hero__title span { display: block; }
  .hero .btn--pill { padding: 12px 22px; min-height: 44px; font-size: 1rem; }

  .welcome { padding-block: clamp(48px, 6vw, 100px); }
  .welcome__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
  .welcome h2 { font-size: clamp(1.5625rem, 1.4rem + 0.5vw, 1.75rem); color: var(--color-text); }
  .welcome__img { margin: 0; }
  .welcome__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

  .services { padding-block: clamp(48px, 6vw, 80px); background: var(--color-surface); }
  .services__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 20px; margin-block: 0; padding: 0; list-style: none; text-align: center; }
  .service { margin: 0; }
  .service__link { display: grid; justify-items: center; gap: 14px; text-decoration: none; }
  .service__icon { display: block; color: var(--color-accent); }
  .fa-icon { display: block; width: 50px; height: 50px; fill: currentColor; }
  .service h3 { color: var(--color-text-muted); font-size: var(--step-2); line-height: 1.2; transition: color var(--dur) var(--ease); }
  .service__link:hover h3 { color: var(--color-accent); }
  .service p { margin: 12px auto 0; max-width: 40ch; }

  .prices { padding-block: clamp(56px, 8vw, 120px) clamp(80px, 12vw, 190px); }
  .prices__inner { max-width: 969px; text-align: center; color: var(--color-text-muted); }
  .prices p { margin-inline: auto; }
  .price-line { margin: 0 auto 0.6em; font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.375rem); font-weight: 300; line-height: 1.25; color: var(--color-text-muted); font-family: var(--font-display); }
  .prices .price-line + p:not(.price-line) { margin-top: 1.2em; }

  /* Fagområder: the icon on the left, the text on the right. */
  .areas { padding-block: clamp(40px, 6vw, 90px) clamp(80px, 12vw, 190px); }
  .areas__list { display: grid; gap: clamp(48px, 7vw, 100px); max-width: 1140px; }
  .area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .area__icon { color: var(--color-accent); }
  .area__icon .fa-icon { width: 60px; height: 60px; }
  .area h2 { margin-bottom: 0.6em; }

  /* Menneskene: text and portrait side by side, alternating. */
  .person { padding-block: clamp(28px, 4vw, 40px); }
  .person:first-of-type { padding-top: clamp(40px, 5vw, 64px); }
  .person__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 1120px; align-items: start; }
  .person__img { margin: 0; }
  .person__img img { width: 100%; max-width: 347px; aspect-ratio: 4 / 5; object-fit: cover; }
  .person h2 { margin-bottom: 0.5em; }
  .person__role { margin-top: -0.2em; font-size: 1.25rem; font-weight: 500; }
  .accordion { margin-top: 24px; }
  .accordion details { border: 1px solid var(--color-line); }
  .accordion details + details { border-top: 0; }
  .accordion summary { gap: 8px; padding: 12px 20px; font-weight: 700; color: var(--color-accent); }
  .accordion summary .icon { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
  .accordion details[open] summary .icon { transform: rotate(90deg); }
  .accordion summary:hover { color: var(--color-heading); }
  .accordion__body { padding: 4px 20px 16px; border-top: 1px solid var(--color-line); }
  .accordion__body > p:first-child { margin-top: 12px; }
  .cv { margin: 12px 0 0; display: grid; font-size: 0.9375rem; }
  .cv > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); border: 1px solid var(--color-cv-line); background: var(--color-cv-bg); }
  .cv > div + div { border-top: 0; }
  .cv dt, .cv dd { margin: 0; padding: 12px 14px; }
  .cv dt { border-right: 1px solid var(--color-cv-line); white-space: nowrap; }

  .join { margin-top: clamp(24px, 4vw, 48px); padding-block: clamp(48px, 6vw, 80px) clamp(80px, 12vw, 180px); background: var(--color-surface); }
  .join__inner { max-width: 820px; text-align: center; }
  .join p { margin-inline: auto; }
  .join h2 { margin-bottom: 0.8em; }
  .join__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin-top: 28px; }
  .join__actions .btn--pill { font-size: 1.125rem; }
  .join__mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-accent); }

  .contact-spacer { height: clamp(24px, 4vw, 60px); }

  .policy { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 12vw, 190px); }
  .policy__inner { max-width: 860px; }
  .policy__eyebrow { margin: 0 0 4px; font-size: var(--step-1); font-weight: 300; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); }
  .policy h1 { margin-bottom: 0.5em; text-transform: uppercase; }
  .policy h2 { margin: 1.6em 0 0.5em; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
  .policy h3 { margin: 1.4em 0 0.4em; font-size: 1.125rem; font-weight: 500; }
  .policy a { color: var(--color-accent); }

  @media (min-width: 900px) {
    .hero { min-height: clamp(560px, 100svh, 920px); padding-top: 140px; }
    .hero__inner { padding-left: 38px; }
    .hero__title { margin-bottom: 40px; line-height: 0.86; }
    .hero .btn--pill { padding: 15px 30px; min-height: 50px; font-size: 1.25rem; }
    .welcome__grid { grid-template-columns: minmax(0, 621fr) minmax(0, 469fr); gap: 40px; max-width: 1140px; }
    .welcome__text { padding: 10px; }
    .welcome__img { padding: 10px; max-width: 469px; justify-self: end; }
    .services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1250px; }
    .area { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
    .area__icon { justify-self: center; }
    .area__icon .fa-icon { width: 90px; height: 90px; }
    .area__text { padding: 10px; }
    .person__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
    .person--flip .person__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
    .person__text { padding: 10px; }
    .person__img { padding: 10px; }
  }

  @media (max-width: 899.98px) {
    .site-header__top { justify-content: flex-end; gap: 0 16px; font-size: 0.875rem; }
    .site-header__top a { min-height: 44px; }
    .site-header__bar { min-height: 60px; }
    .person--flip .person__img { order: 2; }
    .person__img img { max-width: 100%; }
  }
}

/* ---------- Unlayered: what Akari Engine injects (E1, E2) ---------- */
body #cc-main {
  --cc-btn-primary-bg: var(--color-accent);
  --cc-btn-primary-color: var(--color-on-accent);
  --cc-btn-primary-hover-bg: var(--color-deep);
  --cc-btn-primary-hover-color: var(--color-on-deep);
  --cc-toggle-on-bg: var(--color-accent);
  --cc-toggle-on-knob-bg: var(--color-surface);
}
body .floating-cookie-btn {
  position: fixed; left: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 31;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--color-accent); color: var(--color-on-accent);
}
body .ae-privacy-notice { margin: 0; font-size: 14px; line-height: 1.5; color: var(--color-text-muted); }
body .contact-band .ae-privacy-notice { color: var(--color-on-deep); text-align: left; }
body .contact-band .ae-privacy-notice a { color: var(--color-on-deep); }

/* ---------- Unlayered, and last: [hidden] always hides (L12) ---------- */
[hidden]:not([hidden="until-found"]) { display: none; }
