/* 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: A · Utsiktsvifta. Katalogens farger og Poppins, løftet. Lys papirgrunn, korall og turkis.
   ===================================================================================================== */
@layer base {
  :root {
    /* AGENTS.md requires these eight */
    --color-bg: #fbf6ee;
    --color-surface: #ffffff;
    --color-text: #2a1222;
    --color-text-muted: #5f4a57;
    --color-accent: #c8442f;
    --color-accent-muted: #fbe3dd;
    --font-display: 'Poppins', var(--fallback-display);
    --font-body: 'Source Sans 3', var(--fallback-sans);

    /* The brand (palette.svg), and accessible ink tones for text */
    --color-coral: #ed6956;
    --color-teal: #2ab5ad;
    --color-teal-ink: #0b6e69;
    --color-teal-soft: #e6f5f4;
    --color-plum: #5f0f40;
    --color-plum-ink: #3a0727;
    --color-sand: #ead2ac;
    --color-sand-soft: #f4e7d2;
    --color-blue: #166282;

    /* Roles the kit uses */
    --color-deep: #5f0f40;
    --color-on-deep: #fbf6ee;
    --color-on-accent: #ffffff;
    --color-line: #e3d4bf;
    --color-line-on-deep: rgb(251 246 238 / 0.2);
    --color-field: #8a7480;
    --color-error: #a3261c;
    --color-focus: #166282;
    --color-tint-on-deep: rgb(251 246 238 / 0.08);
    --color-shadow: rgb(58 7 39 / 0.45);
    --fallback-sans: 'Akari Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --fallback-display: 'Akari Display Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    --space-section: clamp(56px, min(8vw, 11vh), 120px);
    --space-head: clamp(24px, min(3.5vw, 4.5vh), 48px);
    --gap: 24px;
    --gutter: clamp(20px, 5vw, 48px);
    --measure: 62ch;
    --wrap: 1200px;
    --radius: 4px;
    --header-h: 76px;
    --bar-h: 64px;

    --step--1: 1rem;
    --step-0: clamp(1.1875rem, 1.15rem + 0.2vw, 1.25rem);
    --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
    --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem);
    --step-3: clamp(2rem, min(1.4rem + 2.4vw, 6.6vh), 3.25rem);
    --step-4: clamp(2.5rem, min(1.4rem + 4vw, 9.2vh), 4.75rem);

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

    color-scheme: light;
  }

  /* Fallbacks sized to the web fonts, so the swap does not move the page (Y7) */
  @font-face {
    font-family: 'Akari Fallback';
    src: local('Arial');
    size-adjust: 91.8%;
    ascent-override: 111.1%;
    descent-override: 43.6%;
    line-gap-override: 0%;
  }
  @font-face {
    font-family: 'Akari Display Fallback';
    src: local('Arial');
    size-adjust: 111.2%;
    ascent-override: 94.4%;
    descent-override: 31.5%;
    line-gap-override: 0%;
  }

  body { color: var(--color-text); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65; }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; color: var(--color-plum); letter-spacing: -0.01em; }
  h1 { font-size: var(--step-4); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; }
  h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; }
  h3 { font-size: var(--step-1); line-height: 1.25; }
  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; }
  strong { font-weight: 700; }

  .section { padding-block: var(--space-section); }
  .section__head { margin-bottom: var(--space-head); max-width: 760px; }
  .eyebrow {
    display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
    font-family: var(--font-display); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em;
    color: var(--color-teal-ink);
  }
  .eyebrow::before { content: ''; width: 28px; height: 4px; background: var(--color-coral); flex: none; }
  .lead { font-size: var(--step-1); line-height: 1.5; color: var(--color-text); }
}

@layer components {
  /* Buttons: rectangular, like the catalogue's blocks */
  .btn {
    padding: 12px 22px; border: 2px solid transparent; border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .btn .icon { transition: transform var(--dur) var(--ease); }
  .btn:hover .icon { transform: translateX(3px); }
  .btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
  .btn--primary:hover { background: var(--color-plum); }
  .btn--ghost { border-color: var(--color-plum); color: var(--color-plum); background: transparent; }
  .btn--ghost:hover { background: var(--color-plum); color: var(--color-on-deep); }
  .btn--light { background: var(--color-bg); color: var(--color-plum); }
  .btn--light:hover { background: var(--color-coral); color: var(--color-plum-ink); }

  /* Header */
  .site-header { background: var(--color-bg); color: var(--color-plum); border-bottom: 1px solid var(--color-line); }
  .site-header__logo img { height: 44px; width: auto; }
  .site-nav { gap: 2px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
  .site-nav a:not(.btn) { padding: 0 14px; text-decoration: none; position: relative; }
  .site-nav a:not(.btn)::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px;
    background: var(--color-coral); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
  }
  .site-nav a:not(.btn):hover::after { transform: scaleX(1); }
  .site-nav .btn { margin-left: 14px; }
  .menu-button {
    padding: 0 14px; background: transparent; color: var(--color-plum);
    border: 2px solid var(--color-plum); border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 600;
  }
  .menu-button:hover { background: var(--color-plum); color: var(--color-on-deep); }

  /* Menu takeover */
  .takeover__top h2 { font-size: var(--step-1); color: inherit; }
  .takeover__close { background: transparent; color: inherit; border: 2px solid currentColor; border-radius: var(--radius); }
  .takeover__close:hover { background: var(--color-on-deep); color: var(--color-deep); }
  .takeover__links { margin-bottom: 32px; }
  .takeover__links a {
    font-family: var(--font-display); font-size: var(--step-2); font-weight: 700;
    border-bottom: 1px solid var(--color-line-on-deep); color: var(--color-on-deep);
  }
  .takeover__links a:hover { color: var(--color-coral); }
  .takeover .btn--ghost { border-color: var(--color-on-deep); color: var(--color-on-deep); }
  .takeover .btn--ghost:hover { background: var(--color-on-deep); color: var(--color-deep); }
  .takeover .btn--primary:hover { background: var(--color-coral); color: var(--color-plum-ink); }
  .takeover__contact { margin-top: 28px; display: grid; gap: 4px; }
  .takeover__contact a { font-weight: 700; }
  .takeover__contact p { margin: 0; }

  details > summary { font-weight: 700; }

  /* Form */
  .form { max-width: 640px; }
  .form legend { margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--color-plum); }
  .field label { font-weight: 700; }
  .field__hint { margin: 0; font-size: var(--step--1); color: var(--color-text-muted); }
  .field input, .field select, .field textarea {
    padding: 12px 14px; background: var(--color-surface); color: var(--color-text);
    border: 2px solid var(--color-field); border-radius: var(--radius);
    transition: border-color var(--dur) var(--ease);
  }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-plum); }
  .field__error { font-weight: 700; font-size: 1rem; }
  .form__summary { padding: 16px 20px; border: 2px solid var(--color-error); background: var(--color-surface); }
  .form__summary a { color: var(--color-error); font-weight: 700; }
  .form__progress { margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); color: var(--color-teal-ink); }
  .form__status { margin: 16px 0 0; font-weight: 700; }
  .form__answer { margin-top: 8px; padding: 28px; background: var(--color-teal-soft); border-left: 6px solid var(--color-teal); }
  .form__answer h3 { margin-bottom: 8px; }

  /* Slot: a recommendation, set like a catalogue note */
  .slot {
    display: grid; align-content: center; gap: 6px; min-height: 120px; padding: 22px 24px;
    border: 2px dashed var(--color-teal); border-radius: var(--radius);
    background: var(--color-teal-soft); color: var(--color-text-muted);
  }
  .slot--image { min-height: 0; place-content: center; justify-items: center; text-align: center; padding: 16px; }
  .slot--image .icon { width: 30px; height: 30px; color: var(--color-teal-ink); }
  .slot--mark { display: inline-grid; place-items: center; flex: none; width: 120px; height: 52px; min-height: 0; padding: 0; }
  .slot--mark .slot__type { font-size: 0.875rem; letter-spacing: 0; }
  .slot__type { font-family: var(--font-display); font-size: var(--step-0); font-weight: 700; color: var(--color-plum); }
  .slot__text { font-size: 1rem; line-height: 1.5; max-width: 44ch; color: var(--color-text); }
  .slot__rec { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-teal-ink); }

  /* Footer */
  .site-footer { background: var(--color-deep); color: var(--color-on-deep); padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); }
  .site-footer p { margin: 0; }
  .site-footer a { text-decoration: none; }
  .site-footer a:hover { text-decoration: underline; color: var(--color-sand); }
  .site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
  .site-footer__grid > div { display: grid; align-content: start; gap: 4px; }
  .site-footer__grid strong { font-family: var(--font-display); font-size: var(--step-1); }
  .site-footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--color-line-on-deep); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }

  /* The date tag: the catalogue's coral block */
  .tag { display: inline-grid; gap: 2px; padding: 10px 14px; font-family: var(--font-display); font-size: 0.9375rem; line-height: 1.3; }
  .tag strong { font-weight: 700; }
  .tag--plum { background: var(--color-plum); color: var(--color-on-deep); }

  @media (max-height: 480px) and (orientation: landscape) {
    .takeover__links a { font-size: var(--step-1); }
  }
}

@layer pages {
  /* ---------- Hero ---------- */
  .hero { position: relative; padding-block: clamp(24px, min(5vw, 5vh), 64px) clamp(32px, min(6vw, 7vh), 88px); overflow-x: clip; }
  .hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
  .hero__eyebrow { margin-bottom: 18px; }
  .hero__eyebrow .dot { display: none; }
  .hero h1 { max-width: 13ch; }
  .hero__accent { display: block; color: var(--color-accent); }
  .hero__lead { margin-top: 18px; max-width: 40ch; }
  .hero .btn-row { margin-top: 28px; }
  .hero__facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 1.0625rem; color: var(--color-text-muted); }
  .hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
  .hero__facts .icon { color: var(--color-teal-ink); }

  .hero__figure { position: relative; margin: 0; }
  .hero__frame { position: relative; }
  .hero__frame::before {
    content: ''; position: absolute; inset: 18px -14px -14px 18px; background: var(--color-coral);
  }
  .hero__frame picture, .hero__frame img { position: relative; width: 100%; }
  .hero__frame img { aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid var(--color-sand-soft); }
  .hero__figure .tag { position: absolute; left: -8px; bottom: 28px; max-width: 80%; }
  .hero__sun { position: absolute; right: -24px; top: -36px; width: 120px; fill: var(--color-teal); transform: rotate(-12deg); }
  .hero__sun .is-sand { fill: var(--color-sand); }
  .hero__sun .is-coral { fill: var(--color-coral); }
  .hero__sun .is-plum { fill: var(--color-plum); }

  /* Page load: a short, staggered entrance */
  @keyframes rise { from { clip-path: inset(-0.4em -2em 100% -2em); transform: translateY(14px); } to { clip-path: inset(-0.4em -2em -0.4em -2em); transform: none; } }
  @keyframes sunup { from { transform: rotate(-40deg) scale(0.8); } to { transform: rotate(-12deg) scale(1); } }
  html[data-js] .hero__text > * { animation: rise 0.4s var(--ease) both; }
  html[data-js] .hero__text > :nth-child(2) { animation-delay: 0.06s; }
  html[data-js] .hero__text > :nth-child(3) { animation-delay: 0.12s; }
  html[data-js] .hero__text > :nth-child(4) { animation-delay: 0.18s; }
  html[data-js] .hero__text > :nth-child(5) { animation-delay: 0.24s; }
  html[data-js] .hero__sun { animation: sunup 0.4s var(--ease) 0.2s both; }

  /* ---------- The programme and the fan ---------- */
  .program { background: var(--color-surface); padding-block: var(--space-section); border-top: 1px solid var(--color-line); }
  .program__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vifta h2 { margin-bottom: 6px; }
  .vifta__intro { color: var(--color-text-muted); margin: 0; }
  .vifta__sun {
    width: min(100%, 340px, 30vh * 2); height: auto; margin: 18px 0 0; overflow: visible;
    border-bottom: 3px solid var(--color-teal); padding-bottom: 2px;
  }
  .vifta__sun [data-ray] {
    fill: var(--color-teal); cursor: pointer; transform-origin: 300px 300px;
    transition: fill var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .vifta__sun [data-ray]:hover { fill: var(--color-plum); }
  .vifta__sun [data-ray][data-active] { fill: var(--color-coral); transform: scale(1.07); }
  .program[data-filter="alle"] .vifta__sun [data-ray="dypdykk"] { fill: var(--color-sand); }
  .program[data-filter="alle"] .vifta__sun [data-ray="kultur"] { fill: var(--color-coral); }
  .program[data-filter="alle"] .vifta__sun [data-ray="utforsk"] { fill: var(--color-plum); }

  .vifta__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .vifta__tabs button {
    display: flex; align-items: center; min-height: 52px; padding: 8px 14px; text-align: left;
    background: var(--color-bg); color: var(--color-plum); border: 2px solid var(--color-line); border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .vifta__tabs button:first-child { grid-column: 1 / -1; }
  .vifta__tabs button:hover { border-color: var(--color-plum); }
  .vifta__tabs button[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
  .vifta__about { margin-top: 16px; padding-left: 16px; border-left: 4px solid var(--color-teal); color: var(--color-text); }
  .vifta__about strong { font-family: var(--font-display); color: var(--color-plum); }

  .program__count { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); color: var(--color-teal-ink); }
  .events { list-style: none; margin: 0; padding: 0; }
  .event {
    display: grid; grid-template-columns: 64px 104px minmax(0, 1fr); gap: 12px 16px; align-items: start;
    padding: 22px 0; border-bottom: 1px solid var(--color-line);
  }
  .event__date {
    display: grid; place-content: center; text-align: center; width: 64px; height: 64px;
    background: var(--color-accent); color: var(--color-on-accent);
    font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; line-height: 1;
  }
  .event__date span { display: block; font-size: 1.5rem; font-weight: 800; margin-bottom: 2px; }
  .event__date--course { background: var(--color-teal-ink); font-size: 0.875rem; }
  .event__date--course span { font-size: 1.0625rem; }
  .event__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .event__body { grid-column: 1 / -1; min-width: 0; }
  .event__kind { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--color-teal-ink); }
  .event h3 { font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem); }
  .event__meta { margin: 6px 0 0; }
  .event__price { margin: 8px 0 0; }
  .event__price strong { font-family: var(--font-display); color: var(--color-plum); }
  .event__frist { margin: 4px 0 0; font-size: 1.125rem; color: var(--color-text); }
  .countdown { font-weight: 700; color: var(--color-accent); }
  .event[data-closed] .event__frist { color: var(--color-text); }
  .event[data-closed] .event__frist::after { content: ' · fristen er ute, men spør om ledig plass'; font-weight: 400; color: var(--color-text); }
  .event__cta {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px;
    font-family: var(--font-display); font-weight: 600; color: var(--color-accent); text-decoration: none;
  }
  .event__cta .icon { transition: transform var(--dur) var(--ease); }
  .event__cta:hover { text-decoration: underline; text-decoration-thickness: 2px; }
  .event__cta:hover .icon { transform: translateX(3px); }

  /* The filter and «Vis hele programmet»: state in data attributes, set by script.js */
  .program:not([data-history]) .event[data-past] { display: none; }
  .program[data-history] .event:not([data-past]) { display: none; }
  .event[data-past] .event__cta, .event[data-past] .event__frist { display: none; }
  .event[data-past] .event__date { background: var(--color-plum); }
  .event[data-past] .event__kind::after { content: ' · gjennomført'; color: var(--color-text-muted); font-weight: 500; }
  .program:not([data-filter="alle"]) .events > .event:not([data-family]) { display: none; }
  .program[data-filter="utsyn"] .event:not([data-family="utsyn"]),
  .program[data-filter="puben"] .event:not([data-family="puben"]),
  .program[data-filter="dypdykk"] .event:not([data-family="dypdykk"]),
  .program[data-filter="kultur"] .event:not([data-family="kultur"]),
  .program[data-filter="utforsk"] .event:not([data-family="utforsk"]),
  .program[data-filter="kunnskap"] .event:not([data-family="kunnskap"]) { display: none; }
  .program[data-filter="alle"]:not([data-all]):not([data-history]) .events:not(.events--courses) > .event:nth-child(n + 7 of .event:not([data-past])) { display: none; }
  .program[data-filter="alle"]:not([data-all]):not([data-history]) .events--courses { display: none; }
  .program__more {
    display: inline-flex; align-items: center; gap: 8px; min-height: 52px; margin-top: 20px; padding: 10px 20px;
    background: transparent; color: var(--color-plum); border: 2px solid var(--color-plum); border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .program__more:hover { background: var(--color-plum); color: var(--color-on-deep); }
  .program__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .program__empty { margin: 20px 0 0; font-weight: 700; color: var(--color-plum); }
  .program__note { margin: 20px 0 0; font-size: var(--step--1); color: var(--color-text-muted); }

  /* ---------- A theatre evening: the route ---------- */
  .kveld__head { max-width: 760px; margin-bottom: var(--space-head); }
  .route { isolation: isolate; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: stop; }
  .route li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 56px; padding-left: 28px; }
  .route li::before {
    content: ''; position: absolute; left: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
    border-radius: 50%; background: var(--color-bg); border: 3px solid var(--color-teal);
  }
  .route li::after { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 3px; background: var(--color-teal); z-index: -1; }
  .route li:first-child::after { top: 50%; }
  .route li:last-child::after { bottom: 50%; }
  .route__time { font-family: var(--font-display); font-weight: 700; color: var(--color-plum); font-variant-numeric: tabular-nums; }
  .route__main .route__stop { font-family: var(--font-display); font-weight: 700; color: var(--color-accent); font-size: var(--step-1); }
  .route__main::before { background: var(--color-coral); border-color: var(--color-coral); width: 20px; height: 20px; margin-top: -10px; left: 3px; }
  .kveld__included { list-style: none; margin: var(--space-head) 0 0; padding: 0; display: grid; gap: 16px; }
  .kveld__included li { display: flex; gap: 14px; align-items: flex-start; }
  .kveld__included .icon { width: 28px; height: 28px; color: var(--color-teal-ink); margin-top: 2px; }
  .kveld__included strong { display: block; font-family: var(--font-display); color: var(--color-plum); }

  /* ---------- Membership: the plum block from the catalogue ---------- */
  .medlem { background: var(--color-plum); color: var(--color-on-deep); padding-block: var(--space-section); position: relative; overflow-x: clip; }
  .medlem .eyebrow { color: var(--color-sand); }
  .medlem__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
  .medlem h2 { color: var(--color-on-deep); font-size: var(--step-2); font-weight: 700; max-width: 18ch; }
  .medlem__sum { display: block; font-size: clamp(4.5rem, min(3rem + 7vw, 17vh), 9rem); line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; color: var(--color-coral); }
  .medlem__note { margin-top: 12px; color: var(--color-sand); }
  .medlem__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  .medlem__list li { padding-left: 28px; position: relative; }
  .medlem__list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 14px; height: 4px; background: var(--color-coral); }
  .medlem__list strong { color: var(--color-sand); }
  .medlem__math { margin: 24px 0 24px; padding: 14px 18px; background: var(--color-tint-on-deep); border-left: 4px solid var(--color-coral); font-family: var(--font-display); font-weight: 600; }

  /* ---------- The catalogue ---------- */
  .katalog { background: var(--color-sand-soft); }
  .katalog__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
  .katalog__cover { margin: 0; width: min(68%, 300px); transform: rotate(-3deg); transition: transform var(--dur) var(--ease); }
  .katalog__cover:hover { transform: rotate(0deg); }
  .katalog__cover img { width: 100%; box-shadow: 0 18px 40px -18px var(--color-shadow); }
  .katalog__text .btn { margin-top: 12px; }

  /* ---------- About ---------- */
  .om__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
  .om__quote {
    margin: 0; padding: 28px; background: var(--color-teal-soft); border-left: 6px solid var(--color-teal);
  }
  .om__quote p { font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: var(--step-2); line-height: 1.2; color: var(--color-teal-ink); }
  .om__facts { list-style: none; margin: var(--space-head) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .om__facts > li { display: grid; gap: 4px; align-content: start; padding-top: 16px; border-top: 3px solid var(--color-coral); }
  .om__facts > li:has(.slot) { border-top: 0; padding-top: 0; }
  .om__num { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; color: var(--color-accent); }
  .om__voices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; align-items: start; }
  .om__voices .slot--image { aspect-ratio: 16 / 9; }
  .scener { margin-top: var(--space-head); }
  .scener h3 { margin-bottom: 14px; }
  .scener__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .scener__list a {
    display: grid; gap: 2px; min-height: 64px; padding: 12px 16px; text-decoration: none;
    background: var(--color-surface); border: 1px solid var(--color-line); border-left: 4px solid var(--color-teal);
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  }
  .scener__list a:hover { border-left-color: var(--color-coral); background: var(--color-accent-muted); }
  .scener__list strong { font-family: var(--font-display); color: var(--color-plum); }
  .scener__list span { font-size: var(--step--1); color: var(--color-text-muted); }
  .scener__partners { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
  .scener__partners p { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--color-text-muted); }

  /* ---------- FAQ ---------- */
  .faq { background: var(--color-surface); border-top: 1px solid var(--color-line); }
  .faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq details { border-bottom: 1px solid var(--color-line); }
  .faq details:first-child { border-top: 1px solid var(--color-line); }
  .faq summary {
    list-style: none; justify-content: space-between; gap: 16px; padding: 14px 0;
    font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); color: var(--color-plum);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: ''; flex: none; width: 12px; height: 12px; margin-right: 6px;
    border-right: 3px solid var(--color-accent); border-bottom: 3px solid var(--color-accent);
    transform: rotate(45deg) translateY(-3px); transition: transform var(--dur) var(--ease);
  }
  .faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
  .faq summary:hover { color: var(--color-accent); }
  .faq details p { padding-bottom: 18px; }

  /* ---------- The form ---------- */
  .form-section { background: var(--color-sand-soft); }
  .form-facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
  .form-facts li { display: flex; gap: 12px; align-items: flex-start; }
  .form-facts .icon { color: var(--color-teal-ink); margin-top: 3px; }
  .form-facts a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--color-plum); }
  .form-card { background: var(--color-surface); padding: clamp(20px, 3vw, 32px); border-top: 6px solid var(--color-coral); }
  .form__group { gap: 14px; }
  .form__group + .form__group { margin-top: 8px; }
  .form__topic:has(> [data-fill="topic"]:empty) { display: none; }
  .field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .form__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

  /* ---------- Fixes after review ---------- */
  [data-form] form { scroll-margin-top: calc(var(--header-h) + 16px); }
  .actionbar .btn { white-space: nowrap; min-width: 0; padding-inline: 10px; font-size: 1rem; gap: 6px; }
  .actionbar .btn--ghost { border-color: var(--color-on-deep); color: var(--color-on-deep); background: transparent; }
  .actionbar .btn--ghost:hover { background: var(--color-on-deep); color: var(--color-deep); }
  .btn, .vifta__tabs button, .faq summary, .route__stop, figcaption { text-wrap: balance; }
  .form-facts li > span, .site-footer a { min-width: 0; overflow-wrap: anywhere; }
  [data-filter-count] { scroll-margin-top: calc(var(--header-h) + 20px); }

  /* ---------- After the order: history, full details, just happened, the offer, the catalogue ---------- */
  .vifta__history {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 8px; padding: 8px 14px;
    background: transparent; color: var(--color-plum); border: 2px dashed var(--color-plum); border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer; text-align: left;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .vifta__history:hover { background: var(--color-accent-muted); }
  .vifta__history[aria-pressed="true"] { background: var(--color-plum); color: var(--color-on-deep); border-style: solid; }

  .event__more { margin-top: 10px; border-top: 1px solid var(--color-line); }
  .event__more > summary {
    list-style: none; gap: 10px; padding: 8px 0; color: var(--color-plum);
    font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em;
  }
  .event__more > summary::-webkit-details-marker { display: none; }
  .event__more > summary::before {
    content: ''; width: 9px; height: 9px; margin: 0 4px 0 2px; flex: none;
    border-right: 2.5px solid var(--color-accent); border-bottom: 2.5px solid var(--color-accent);
    transform: rotate(-45deg); transition: transform var(--dur) var(--ease);
  }
  .event__more[open] > summary::before { transform: rotate(45deg); }
  .event__more > summary:hover { color: var(--color-accent); }
  .event__full { padding: 4px 0 12px; display: grid; gap: 10px; }
  .event__full p { margin: 0; }
  .event__full h4 { margin: 6px 0 0; font-family: var(--font-display); font-size: 1rem; color: var(--color-teal-ink); }
  .event__plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .event__plan li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 4px 0; border-bottom: 1px dotted var(--color-line); }
  .event__time { font-family: var(--font-display); font-weight: 600; color: var(--color-plum); font-variant-numeric: tabular-nums; }
  .event__incl { padding: 10px 14px; background: var(--color-teal-soft); border-left: 4px solid var(--color-teal); }
  .event__note { font-size: 1.0625rem; color: var(--color-text-muted); }
  .event__quote { margin: 0; padding-left: 16px; border-left: 4px solid var(--color-coral); }
  .event__quote p { font-family: var(--font-display); font-style: italic; font-weight: 700; color: var(--color-plum); }
  .event__quote .event__quote-by { margin-top: 4px; font-style: normal; font-weight: 500; font-size: 1rem; color: var(--color-text-muted); }

  .nylig { background: var(--color-sand-soft); }
  .nylig__head { max-width: 760px; margin-bottom: var(--space-head); }
  .nylig__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
  .nylig__card { display: flex; flex-direction: column; background: var(--color-surface); border-top: 6px solid var(--color-coral); }
  .nylig__card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .nylig__body { display: grid; gap: 10px; padding: 18px 20px 22px; flex: 1; align-content: start; }
  .nylig__when { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--color-teal-ink); }
  .nylig__body .slot { min-height: 0; }
  .nylig__body .slot--image { aspect-ratio: auto; padding: 16px; }
  .nylig__send { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 0; }
  .nylig__send .icon { color: var(--color-teal-ink); margin-top: 3px; }
  .nylig__send a { font-weight: 700; color: var(--color-plum); }

  .medlem__offer { margin-top: 22px; padding: 16px 18px; background: var(--color-coral); color: var(--color-plum-ink); border-radius: var(--radius); }
  .medlem__offer p { margin: 0; }
  .medlem__offer-tag { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.02em; text-transform: uppercase; }
  .medlem__offer-text { margin-top: 4px; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.3; }
  .hero__facts a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--color-plum); font-weight: 700; text-decoration-thickness: 2px; }
  .hero__facts a:hover { color: var(--color-accent); }

  .katalog__text { max-width: 760px; margin-bottom: var(--space-head); }
  .flip__pages { list-style: none; margin: 0; padding: 0; }
  .flip__page { max-width: calc((100svh - 90px) * 822 / 1159); }
  .flip__page img { width: 100%; height: auto; aspect-ratio: 822 / 1159; object-fit: cover; background: var(--color-surface); box-shadow: 0 10px 30px -16px var(--color-shadow); }
  .flip__bar { display: flex; }

  .om__org { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--color-surface); border-left: 4px solid var(--color-teal); }
  .om__org .icon { color: var(--color-teal-ink); margin-top: 4px; }
  .om__org a { display: inline-block; margin-top: 4px; font-weight: 700; color: var(--color-plum); }

  /* ---------- Wide screens ---------- */
  @media (min-width: 900px) {
    .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); }
    .hero__frame img { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 140px); }
    .hero__sun { width: 150px; right: -40px; top: -48px; }

    .program__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
    .vifta { position: sticky; top: calc(var(--header-h) + 20px); }
    .vifta__sun { width: min(100%, 300px, 22vh * 2); margin-top: 12px; }
    .vifta__intro { font-size: var(--step--1); }
    .vifta__tabs { gap: 6px; margin-top: 14px; }
    .vifta__tabs button { min-height: 48px; }
    .vifta__about { margin-top: 12px; font-size: var(--step--1); line-height: 1.5; }
    .vifta h2 { font-size: clamp(2rem, min(1.4rem + 2vw, 6vh), 3rem); }
    .event { grid-template-columns: 72px 168px minmax(0, 1fr); gap: 20px; padding: 24px 0; }
    .event__date { width: 72px; height: 72px; }
    .event__body { grid-column: auto; }

    .route { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .route li { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 36px 12px 0 0; align-items: start; }
    .route li::before { left: 0; top: 0; margin-top: 0; }
    .route__main::before { left: -3px; top: -3px; margin-top: 0; }
    .route li::after { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 3px; }
    .route li:first-child::after { top: 6px; left: 7px; }
    .route li:last-child::after { bottom: auto; right: auto; width: 7px; }
    .kveld__included { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }

    .medlem__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); }
    .katalog__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
    .katalog__cover { width: min(100%, 320px); justify-self: center; }
    .om__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); }
    .om__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .om__voices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .scener__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
    .nylig__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .flip [data-carousel] {
      display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
      scrollbar-width: none; padding-bottom: 6px;
    }
    .flip [data-carousel]::-webkit-scrollbar { display: none; }
    .flip__page { flex: 0 0 auto; width: min(calc((100% - 12px) / 2), calc((100svh - var(--header-h) - 150px) * 822 / 1159)); scroll-snap-align: start; }
    .flip__page:nth-child(odd) { scroll-snap-align: start; }
    .flip__bar { margin-top: 14px; }
    #katalog > .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
    .katalog__text { margin-bottom: 0; }
    .katalog__text h2 { font-size: clamp(2rem, min(1.4rem + 1.8vw, 6vh), 2.75rem); }
    .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .field-row--topic { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .form { gap: 12px; }
    .form-card .field textarea { min-height: 96px; }
  }

  /* ---------- Phone ---------- */
  @media (max-width: 899.98px) {
    .site-header__logo img { height: 38px; }
    .hero h1 { max-width: none; }
    .hero__figure { margin-top: 8px; margin-right: 14px; }
    .hero__frame img { aspect-ratio: 16 / 10; }
    .hero__sun { width: 96px; right: -28px; top: -30px; }
    .hero__facts { display: grid; gap: 6px; }
    .event { grid-template-columns: 56px minmax(0, 1fr) 96px; gap: 4px 14px; padding: 18px 0; }
    .event__date { width: 56px; height: 56px; font-size: 0.875rem; }
    .event__date span { font-size: 1.3125rem; }
    .event__img { grid-column: 3; grid-row: 1; }
    .event__body { display: contents; }
    .event__kind { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
    .event__body > :not(.event__kind) { grid-column: 1 / -1; }
    .event h3 { margin-top: 6px; }
    .event__meta { margin-top: 2px; }
    .event__cta { margin-top: 2px; }
    .vifta__sun { width: min(64%, 200px); margin-top: 8px; }
    .vifta__intro { display: none; }
    html { scroll-padding-bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom)); }
    .route { display: none; }
    .kveld__included { margin-top: 0; }
    .scener__list a { min-height: 56px; grid-template-columns: minmax(0, 1fr); }
    .scener__list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .scener__list span { font-size: 1rem; }
    .vifta__tabs button { min-height: 46px; font-size: 0.9375rem; padding: 6px 12px; }
    .vifta__about { font-size: var(--step--1); }
    .katalog__grid { gap: 24px; }
    .katalog__cover { width: min(46%, 200px); margin-left: 8px; }
    .katalog h2 { font-size: var(--step-2); }
    .om__facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .om__facts > li:has(.slot) { grid-column: 1 / -1; }
    .kveld__included { gap: 12px; }
    .route li { min-height: 48px; }
    .om__photo { display: none; }
    .program[data-filter="alle"]:not([data-all]) .events:not(.events--courses) > .event:nth-child(n + 6 of .event:not([data-past])) { display: none; }
  }
}

/* ---------- 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); }

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