/* 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: «Riggen». Graphite and paper, Utleiepartner orange as the work light (RETNING.md).
   ===================================================================================================== */
@layer base {
  :root {
    /* AGENTS.md requires these eight */
    --color-bg: #f3f1ec;
    --color-surface: #ffffff;
    --color-text: #151515;
    --color-text-muted: #55524c;
    --color-accent: #ec6b00;
    --color-accent-muted: #fbe3cf;
    --font-display: 'Big Shoulders Display', var(--fallback-display);
    --font-body: 'Barlow', var(--fallback-sans);

    /* Roles the kit uses */
    --color-deep: #121212;
    --color-deep-2: #1d1c1a;
    --color-on-deep: #f3f1ec;
    --color-on-deep-muted: #b3aea5;
    --color-on-accent: #151515;
    --color-accent-ink: #a84a00;
    --color-line: #dad6ce;
    --color-line-on-deep: rgb(243 241 236 / 0.14);
    --color-field: #8a857c;
    --color-error: #b3261e;
    --color-error-on-deep: #ff8a7a;
    --color-focus: #a84a00;
    --color-shade: rgb(12 12 12 / 0.82);
    --color-shade-soft: rgb(12 12 12 / 0.35);
    --fallback-sans: 'Akari Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --fallback-display: 'Akari Fallback Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;

    --space-section: clamp(56px, min(8vw, 11vh), 120px);
    --space-head: clamp(24px, min(3.5vw, 5vh), 48px);
    --gap: clamp(12px, 1.6vw, 20px);
    --gutter: clamp(16px, 4.5vw, 48px);
    --measure: 64ch;
    --wrap: 1280px;
    --radius: 4px;
    --header-h: 72px;
    --bar-h: 64px;

    --step--1: 0.875rem;
    --step-0: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
    --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --step-2: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
    --step-3: clamp(2.375rem, min(1.6rem + 3vw, 8vh), 4.25rem);
    --step-4: clamp(2.875rem, min(1.4rem + 5vw, 11vh), 6.75rem);

    --dur: 0.28s;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    color-scheme: light;
  }

  @font-face {
    font-family: 'Akari Fallback';
    src: local('Arial');
    size-adjust: 94%;
    ascent-override: 100%;
    descent-override: 22%;
    line-gap-override: 0%;
  }
  @font-face {
    font-family: 'Akari Fallback Display';
    src: local('Arial Narrow'), local('Arial');
    size-adjust: 88%;
    ascent-override: 96%;
    descent-override: 24%;
    line-gap-override: 0%;
  }

  html, body { background-color: var(--color-deep); }
  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: 800; line-height: 0.98; letter-spacing: 0.005em; text-transform: uppercase; color: inherit; }
  h1 { font-size: var(--step-4); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-2); line-height: 1.02; }
  p { margin: 0 0 1em; max-width: var(--measure); }
  :is(h1, h2, h3) + :is(p, ul, ol) { margin-top: 0.7em; }
  p:last-child { margin-bottom: 0; }
  a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-color: var(--color-accent); }
  :focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
  .on-deep :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--color-accent); }

  .section { padding-block: var(--space-section); }
  .section__head { margin-bottom: var(--space-head); max-width: 760px; }
  .section__head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px 48px; align-items: end; }
  .section__head--split .lead { margin: 0; }
  .eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent-ink); }
  .eyebrow::before { content: ''; width: 22px; height: 3px; background: var(--color-accent); }
  .lead { font-size: var(--step-1); line-height: 1.5; color: var(--color-text-muted); }
}

@layer components {
  /* Buttons: orange with near-black text (5.8:1). Never white on orange. */
  .btn { gap: 10px; padding: 13px 22px; border: 2px solid transparent; border-radius: var(--radius); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; letter-spacing: 0.01em; text-decoration: none; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color 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-on-deep); color: var(--color-text); }
  .btn--ghost { border-color: currentColor; background: transparent; }
  .btn--ghost:hover { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
  .btn--dark { background: var(--color-deep); color: var(--color-on-deep); }
  .btn--dark:hover { background: var(--color-accent); color: var(--color-on-accent); }

  /* Header */
  .site-header { background: var(--color-deep); color: var(--color-on-deep); border-bottom: 1px solid var(--color-line-on-deep); }
  .site-header__logo img { height: 40px; width: auto; }
  .site-nav { gap: 2px; }
  .site-nav a:not(.btn) { position: relative; padding: 0 12px; text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--color-on-deep); }
  .site-nav a:not(.btn)::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
  .site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .btn { margin-left: 14px; padding: 10px 18px; }
  .site-nav a { white-space: nowrap; }
  @media (min-width: 900px) and (max-width: 1120px) {
    .site-header__logo img { height: 32px; }
    .site-nav a:not(.btn) { padding: 0 8px; font-size: 0.9375rem; }
    .site-nav a:not(.btn)::after { left: 8px; right: 8px; }
    .site-nav .btn { margin-left: 8px; padding: 10px 14px; font-size: 0.9375rem; }
  }
  .site-nav .btn--primary:hover { background: var(--color-on-deep); }
  .menu-button { padding: 0 14px; background: transparent; color: var(--color-on-deep); border: 1.5px solid var(--color-line-on-deep); border-radius: var(--radius); font-weight: 600; }
  .menu-button:hover { border-color: var(--color-accent); }

  .takeover { background: var(--color-deep); color: var(--color-on-deep); }
  .takeover__top h2 { font-size: var(--step-1); letter-spacing: 0.08em; color: var(--color-on-deep-muted); }
  .takeover__close { background: transparent; color: inherit; border: 1.5px solid var(--color-line-on-deep); border-radius: var(--radius); }
  .takeover__close:hover { border-color: var(--color-accent); }
  .takeover__links { margin-bottom: 28px; }
  .takeover__links a { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; text-transform: uppercase; border-bottom: 1px solid var(--color-line-on-deep); transition: color var(--dur) var(--ease); }
  .takeover__links a:hover { color: var(--color-accent); }
  .takeover .btn--ghost { color: var(--color-on-deep); }
  .takeover .btn--ghost:hover { background: var(--color-on-deep); color: var(--color-text); border-color: var(--color-on-deep); }
  .takeover__contact { margin-top: 28px; display: grid; gap: 2px; }
  .takeover__contact a { font-weight: 600; color: var(--color-on-deep-muted); }

  /* Cards and the carousel */
  .cards { display: grid; gap: var(--gap); }
  .carousel-bar__count { color: var(--color-text-muted); font-weight: 600; }
  .carousel-bar button { background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: var(--radius); }
  .carousel-bar button:hover:not(:disabled) { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
  .carousel-bar button:disabled { opacity: 0.35; }
  details > summary { font-weight: 600; }

  /* Form, in a ticket */
  .form { max-width: none; }
  .form legend { margin-bottom: 4px; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); text-transform: uppercase; line-height: 1; }
  .field label { font-weight: 600; font-size: 1rem; }
  .field__opt { font-weight: 400; color: var(--color-text-muted); }
  .field__hint { margin: 0; font-size: 0.9375rem; color: var(--color-text-muted); }
  .field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; background: var(--color-surface); border: 1.5px 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-text); }
  .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 0; border-color: var(--color-text); }
  .field textarea { min-height: 96px; }
  .field__error { font-weight: 600; font-size: 0.9375rem; }
  .form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .form__nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 4px; }
  .form__nav .btn--primary:hover { background: var(--color-text); color: var(--color-bg); }
  .form__nav .btn--ghost { color: var(--color-text); }
  .form__summary { padding: 14px 18px; border: 2px solid var(--color-error); border-radius: var(--radius); background: var(--color-surface); }
  .form__summary p { margin: 0; font-weight: 600; }
  .form__progress { margin: 0; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-ink); }
  .form__topic { margin: 0; padding: 8px 12px; background: var(--color-accent-muted); border-radius: var(--radius); }
  .form__status { margin: 16px 0 0; font-weight: 600; }
  .form__answer { margin-top: 8px; padding: 8px 0; }
  .form__answer h3 { margin-bottom: 10px; }

  .choice { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
  .form .choice__label { padding: 0; margin-bottom: 2px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-transform: none; line-height: 1.4; }
  .choice__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .choice__opt { position: relative; display: flex; cursor: pointer; }
  .choice__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; clip-path: inset(50%); }
  .choice__opt span { flex: 1; display: flex; align-items: center; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--color-field); border-radius: var(--radius); font-weight: 600; line-height: 1.25; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
  .choice__opt:hover span { border-color: var(--color-text); }
  .choice__opt input:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
  .choice__opt input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }

  /* Slot: a work order taped to the page («Vi anbefaler») */
  .slot {
    display: grid; align-content: center; gap: 4px; min-height: 0; margin: 20px 0; padding: 16px 18px 16px 20px;
    border: 1.5px dashed var(--color-accent-ink); border-left: 5px solid var(--color-accent); border-radius: var(--radius);
    background: var(--color-accent-muted); color: var(--color-text);
  }
  .slot--image { place-content: center; justify-items: center; text-align: center; margin: 0; padding: 18px; border-left-width: 1.5px; }
  .slot--image .icon { width: 30px; height: 30px; color: var(--color-accent-ink); }
  .slot--mark { display: inline-grid; place-items: center; flex: none; width: 56px; height: 48px; padding: 0; margin: 0; }
  .slot--mark .slot__type { font-size: 0.875rem; letter-spacing: 0; }
  .slot__type { font-family: var(--font-display); font-size: 1.375rem; font-weight: 800; text-transform: uppercase; line-height: 1.05; }
  .slot__text { font-size: 0.9375rem; line-height: 1.5; max-width: 52ch; color: var(--color-text); }
  .slot__rec { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent-ink); }

  /* Footer */
  .site-footer { background: var(--color-deep); color: var(--color-on-deep); padding: clamp(48px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); }
  .site-footer p { margin: 0; }
  .site-footer a { justify-content: flex-start; text-decoration: none; color: var(--color-on-deep-muted); transition: color var(--dur) var(--ease); }
  .site-footer a:hover { color: var(--color-accent); }
  .site-footer .btn { color: var(--color-on-accent); justify-content: center; }
  .site-footer .btn:hover { color: var(--color-text); }
  .site-footer__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; padding-bottom: clamp(32px, 5vw, 56px); margin-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--color-line-on-deep); }
  .site-footer__slogan { max-width: 15ch; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--step-3); line-height: 0.98; }
  .site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
  .site-footer__grid > div { display: grid; align-content: start; gap: 0; }
  .site-footer__h { margin-bottom: 6px; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-on-deep); }
  .site-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--color-line-on-deep); font-size: var(--step--1); color: var(--color-on-deep-muted); display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; }

  .actionbar { background: var(--color-deep); border-top: 1px solid var(--color-line-on-deep); }
  .actionbar .btn--ghost { color: var(--color-on-deep); }

  @media (max-height: 480px) and (orientation: landscape) {
    .takeover__links a { font-size: var(--step-1); }
  }
}

@layer pages {
  /* ---------- Front page · hero ---------- */
  .hero { position: relative; isolation: isolate; display: grid; background: var(--color-deep); color: var(--color-on-deep); min-height: min(calc(100svh - var(--header-h)), 900px); }
  .hero__media { position: absolute; inset: 0; z-index: -1; }
  .hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--color-shade) 0%, var(--color-shade) 34%, var(--color-shade-soft) 72%, transparent 100%), linear-gradient(0deg, var(--color-shade) 0%, transparent 46%); }
  .hero__inner { display: grid; align-content: end; gap: clamp(24px, 4vh, 44px); padding-block: clamp(28px, 6vh, 96px) clamp(24px, 4.5vh, 56px); }
  .hero__text { max-width: 900px; }
  .hero__eyebrow { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-on-deep); }
  .hero__eyebrow span { display: inline-flex; align-items: center; gap: 18px; }
  .hero__eyebrow span + span::before { content: ''; width: 6px; height: 6px; background: var(--color-accent); transform: rotate(45deg); }
  .hero h1 { max-width: 15ch; }
  .hero__lead { margin-top: 0.9em; max-width: 46ch; font-size: var(--step-1); line-height: 1.45; color: var(--color-on-deep); }

  .lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 12px; }
  .lane { display: grid; gap: 4px; padding: 18px 20px 16px; border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); text-decoration: none; border-top: 5px solid var(--color-accent); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
  .lane--pro { background: var(--color-accent); color: var(--color-on-accent); border-top-color: var(--color-text); }
  .lane:hover { transform: translateY(-4px); }
  .lane:hover .icon { transform: translateX(4px); }
  .lane__kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
  .lane__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); line-height: 1; text-transform: uppercase; }
  .lane__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; }
  .lane__go .icon { transition: transform var(--dur) var(--ease); }

  /* ---------- Clients ---------- */
  .clients { background: var(--color-deep); color: var(--color-on-deep-muted); border-top: 1px solid var(--color-line-on-deep); }
  .clients__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding-block: 22px; }
  .clients__label { margin: 0; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }
  .clients__list { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
  .clients__list li { display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); text-transform: uppercase; color: var(--color-on-deep); }
  .clients__list li + li::before { content: '/'; margin-inline: 14px; color: var(--color-accent); }

  /* ---------- Two paths ---------- */
  .paths__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path { display: flex; justify-content: flex-end; padding-block: var(--space-section); }
  .path--pro { justify-content: flex-start; background: var(--color-deep-2); color: var(--color-on-deep); }
  .path--private { background: var(--color-bg); }
  .path__inner { width: min(100%, calc(var(--wrap) / 2)); padding-inline: var(--gutter) clamp(24px, 4vw, 64px); }
  .path--pro .path__inner { padding-inline: clamp(24px, 4vw, 64px) var(--gutter); }
  .path--pro .eyebrow { color: var(--color-accent); }
  .path--pro p { color: var(--color-on-deep); }
  .path h2 { max-width: 16ch; }
  .checks { display: grid; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; font-weight: 500; }
  .checks li { display: flex; gap: 10px; align-items: flex-start; }
  .checks .icon { margin-top: 0.2em; color: var(--color-accent-ink); }
  .path--pro .checks .icon { color: var(--color-accent); }
  .path .btn-row { margin-top: 26px; }

  /* ---------- Products ---------- */
  .products { background: var(--color-bg); }
  .products__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(190px, auto); grid-template-areas: "big big tall s1" "big big tall s2" "s3 s3 s4 s4"; }
  .products__grid > li:nth-child(1) { grid-area: big; }
  .products__grid > li:nth-child(2) { grid-area: tall; }
  .products__grid > li:nth-child(3) { grid-area: s1; }
  .products__grid > li:nth-child(4) { grid-area: s2; }
  .products__grid > li:nth-child(5) { grid-area: s3; }
  .products__grid > li:nth-child(6) { grid-area: s4; }
  .pcard { min-width: 0; }
  .pcard__link { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; height: 100%; min-height: 100%; padding: 22px; overflow: hidden; border-radius: var(--radius); background: var(--color-surface); color: var(--color-text); text-decoration: none; border: 1px solid var(--color-line); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .pcard__link:hover { border-color: var(--color-accent); transform: translateY(-3px); }
  .pcard__img { position: absolute; inset: 0; z-index: -1; }
  .pcard__img picture, .pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
  .pcard__link:hover .pcard__img img { transform: scale(1.04); }
  .pcard__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--color-shade) 0%, var(--color-shade-soft) 45%, transparent 70%); }
  .pcard--big .pcard__link, .pcard--tall .pcard__link { color: var(--color-on-deep); border-color: transparent; }
  .pcard__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent-muted); color: var(--color-accent-ink); }
  .pcard__icon .icon { width: 28px; height: 28px; }
  .pcard__body { display: grid; gap: 6px; }
  .pcard__tag { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent); font-size: var(--step--1); font-weight: 600; }
  .pcard__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--step-2); line-height: 1; }
  .pcard--big .pcard__title { font-size: var(--step-3); }
  .pcard__text { max-width: 40ch; line-height: 1.5; }
  .pcard__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--color-accent-ink); }
  .pcard--big .pcard__go, .pcard--tall .pcard__go { color: var(--color-accent); }
  .pcard__go .icon { transition: transform var(--dur) var(--ease); }
  .pcard__link:hover .pcard__go .icon { transform: translateX(4px); }
  .products__grid > li:nth-child(n+5) .pcard__link { flex-direction: row; align-items: center; justify-content: flex-start; }
  .products__note { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; max-width: none; font-size: 0.9375rem; color: var(--color-text-muted); }
  .products__note .icon { color: var(--color-accent-ink); margin-top: 0.15em; }
  .products__note strong { color: var(--color-accent-ink); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.875rem; }

  /* ---------- Gallery ---------- */
  .gallery { background: var(--color-surface); }
  .gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
  .shot { min-width: 0; aspect-ratio: 1; }
  .shot--wide { grid-column: span 2; grid-row: span 2; }
  .shot figure { position: relative; height: 100%; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--color-deep); }
  .shot picture, .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
  .shot figure:hover img { transform: scale(1.04); }
  .shot figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
  .shot figcaption span { padding: 5px 10px; border-radius: 999px; background: var(--color-deep); color: var(--color-on-deep); font-size: 0.875rem; font-weight: 600; line-height: 1.2; }
  .shot figcaption span + span { background: var(--color-accent); color: var(--color-on-accent); }
  .shot--slot .slot { height: 100%; margin: 0; place-content: center; text-align: center; justify-items: center; border-left-width: 1.5px; }

  /* ---------- Cases ---------- */
  .cases { background: var(--color-deep); color: var(--color-on-deep); }
  .cases .eyebrow { color: var(--color-accent); }
  .cases .lead { color: var(--color-on-deep-muted); }
  .cases__list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
  .case { min-width: 0; display: grid; align-content: start; gap: 18px; }
  .case__img { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; max-height: 52vh; }
  .case__img picture, .case__img img { width: 100%; height: 100%; object-fit: cover; }
  .case__where { margin: 0 0 6px; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }
  .case h3 { margin-bottom: 8px; }
  .case p:last-child { color: var(--color-on-deep-muted); }
  .cases .carousel-bar { color: var(--color-on-deep); }
  .cases .carousel-bar__count { color: var(--color-on-deep-muted); }
  .cases__more .slot { margin-top: 32px; }

  /* ---------- About ---------- */
  .about { background: var(--color-bg); }
  .about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
  .about__img { overflow: hidden; border-radius: var(--radius); }
  .about__img img { width: 100%; height: auto; }

  /* ---------- The form section (both pages) ---------- */
  .form-section { background: var(--color-deep); color: var(--color-on-deep); }
  .form-section__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  .form-section .eyebrow { color: var(--color-accent); }
  .form-section .lead { color: var(--color-on-deep-muted); }
  .flow { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
  .flow li { display: flex; gap: 14px; align-items: flex-start; color: var(--color-on-deep-muted); }
  .flow strong { color: var(--color-on-deep); }
  .flow__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--color-accent); border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; color: var(--color-accent); }
  .form-section__direct { display: grid; gap: 0; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--color-line-on-deep); }
  .form-section__direct a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; }
  .form-section__direct a:hover { color: var(--color-accent); }
  .form-section__direct .icon { color: var(--color-accent); }
  /* The ticket: the perforation and its two notches sit on each step's heading, so they follow the content. */
  .ticket { --pad: clamp(20px, 3vw, 36px); position: relative; padding: var(--pad); border-radius: var(--radius); background: var(--color-surface); color: var(--color-text); }
  .ticket .form { gap: 14px; }
  .ticket fieldset[data-step] > legend {
    position: relative; display: block; float: left; width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)) 6px; padding: 0 var(--pad) 18px;
    border-bottom: 2px dashed var(--color-line);
  }
  .ticket fieldset[data-step] > legend + * { clear: both; }
  .ticket fieldset[data-step] > legend::before, .ticket fieldset[data-step] > legend::after {
    content: ''; position: absolute; bottom: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--color-deep);
  }
  .ticket fieldset[data-step] > legend::before { left: -14px; }
  .ticket fieldset[data-step] > legend::after { right: -14px; }

  /* ---------- Product page ---------- */
  .product { background: var(--color-bg); padding-block: 8px var(--space-section); }
  .crumbs ol { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 0.9375rem; color: var(--color-text-muted); }
  .crumbs li { display: inline-flex; align-items: center; }
  .crumbs li + li::before { content: '/'; margin-right: 4px; color: var(--color-accent-ink); }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; }
  .crumbs [aria-current] { font-weight: 600; color: var(--color-text); }
  .product__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
  .product__media { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 16px); }
  .product__main { overflow: hidden; border-radius: var(--radius); background: var(--color-deep); }
  .product__main img { width: 100%; height: auto; }
  .product__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
  .product__thumbs li { overflow: hidden; border-radius: var(--radius); background: var(--color-surface); }
  .product__thumbs img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .product__info h1 { font-size: clamp(2.875rem, min(1.5rem + 2.8vw, 7.4vh), 4.25rem); }
  .product__lead { margin-top: 0.6em; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.45; color: var(--color-text-muted); }
  .product__cta { margin-top: 18px; }
  .product__assure { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-weight: 500; }
  .product__assure .icon { color: var(--color-accent-ink); margin-top: 0.2em; }

  .cap { margin-top: 18px; padding: 14px 18px 12px; border-radius: var(--radius); background: var(--color-deep); color: var(--color-on-deep); }
  .cap__pick { margin: 0; padding: 0; border: 0; min-width: 0; }
  .cap__pick legend { padding: 0; margin-bottom: 10px; font-weight: 600; }
  .cap__opts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .cap__opts label { position: relative; display: flex; cursor: pointer; }
  .cap__opts input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; clip-path: inset(50%); }
  .cap__opts span { flex: 1; display: grid; place-items: center; min-height: 44px; border: 1.5px solid var(--color-line-on-deep); border-radius: var(--radius); font-weight: 600; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
  .cap__opts label:hover span { border-color: var(--color-accent); }
  .cap__opts input:checked + span { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); }
  .cap__opts input:focus-visible + span { outline: 3px solid var(--color-accent); outline-offset: 2px; }
  .cap__plan { display: flex; gap: 3px; height: 24px; margin: 12px 0 10px; }
  .cap__plan span { flex: 0 0 calc((100% - 21px) / 8); border: 1.5px solid var(--color-accent); border-radius: 2px; background: var(--color-accent-muted); transition: opacity var(--dur) var(--ease); }
  .cap:has(input[value="6"]:checked) .cap__plan span:nth-child(n+3),
  .cap:has(input[value="9"]:checked) .cap__plan span:nth-child(n+4),
  .cap:has(input[value="12"]:checked) .cap__plan span:nth-child(n+5),
  .cap:has(input[value="15"]:checked) .cap__plan span:nth-child(n+6),
  .cap:has(input[value="18"]:checked) .cap__plan span:nth-child(n+7) { border-style: dashed; border-color: var(--color-line-on-deep); background: transparent; }
  .cap__row { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
  .cap:has(input[value="6"]:checked) [data-l="6"],
  .cap:has(input[value="9"]:checked) [data-l="9"],
  .cap:has(input[value="12"]:checked) [data-l="12"],
  .cap:has(input[value="15"]:checked) [data-l="15"],
  .cap:has(input[value="18"]:checked) [data-l="18"],
  .cap:has(input[value="24"]:checked) [data-l="24"] { display: grid; }
  .cap__row dt { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-on-deep-muted); }
  .cap__row dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem); line-height: 1; color: var(--color-accent); }
  .cap__note { margin: 8px 0 0; font-size: 0.9375rem; color: var(--color-on-deep-muted); }

  .specs { background: var(--color-surface); }
  .specs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); }
  .specs h2 { font-size: var(--step-2); margin-bottom: 18px; }
  .specs__list { margin: 0; }
  .specs__list > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--color-line); }
  .specs__list > div:last-child { border-bottom: 1px solid var(--color-line); }
  .specs__list dt { font-weight: 600; }
  .specs__list dd { margin: 0; }
  .extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
  .extras li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--color-bg); line-height: 1.45; }
  .extras .icon { flex: none; width: 26px; height: 26px; color: var(--color-accent-ink); }
  .extras strong { display: block; }

  .inuse { background: var(--color-bg); }
  .inuse__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
  .inuse__grid li { overflow: hidden; border-radius: var(--radius); }
  .inuse__grid img { width: 100%; height: auto; }

  .bigger { background: var(--color-accent); color: var(--color-on-accent); }
  .bigger .eyebrow { color: var(--color-on-accent); }
  .bigger .eyebrow::before { background: var(--color-on-accent); }
  .bigger__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
  .bigger .btn--primary { background: var(--color-deep); color: var(--color-on-deep); }
  .bigger .btn--primary:hover { background: var(--color-surface); color: var(--color-text); }
  .widths { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .widths li { padding: 10px 16px; border: 2px solid var(--color-on-accent); border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
  .widths .is-here { background: var(--color-deep); border-color: var(--color-deep); color: var(--color-accent); }

  .faq { background: var(--color-surface); }
  .faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px 64px; }
  .faq h2 { font-size: var(--step-2); }
  .faq__list details { border-top: 1px solid var(--color-line); }
  .faq__list details:last-child { border-bottom: 1px solid var(--color-line); }
  .faq__list summary { justify-content: space-between; gap: 16px; padding: 14px 0; list-style: none; font-size: var(--step-1); line-height: 1.3; }
  .faq__list summary::-webkit-details-marker { display: none; }
  .faq__list summary::after { content: '+'; flex: none; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--color-accent-ink); transition: transform var(--dur) var(--ease); }
  .faq__list details[open] summary::after { transform: rotate(45deg); }
  .faq__list summary:hover { color: var(--color-accent-ink); }
  .faq__list details p { padding-bottom: 16px; }

  /* ---------- Phone (the kit's one breakpoint) ---------- */
  @media (max-width: 899.98px) {
    :root { --header-h: 64px; }
    .site-header__logo img { height: 32px; }
    .section__head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }

    .hero { min-height: 0; }
    .hero__media { position: relative; inset: auto; z-index: auto; aspect-ratio: 2.3 / 1; }
    .hero__media::after { background: linear-gradient(0deg, var(--color-deep) 0%, transparent 55%); }
    .hero__inner { padding-block: 0 24px; margin-top: -28px; position: relative; gap: 20px; }
    .hero__eyebrow { margin-bottom: 12px; gap: 4px 12px; }
    .hero__eyebrow span { gap: 12px; }
    .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.25rem); }
    .hero__lead { font-size: 1.0625rem; margin-top: 0.7em; }
    .lanes { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .lane { padding: 14px 16px 12px; }
    .lane__title { font-size: 1.5rem; }

    .clients__inner { gap: 6px 16px; padding-block: 18px; }
    .clients__list li { font-size: 1.125rem; }
    .clients__list li + li::before { margin-inline: 10px; }

    .paths__grid { grid-template-columns: minmax(0, 1fr); }
    .path, .path--pro { justify-content: stretch; }
    .path__inner, .path--pro .path__inner { width: 100%; padding-inline: var(--gutter); }

    .products__grid { grid-template-areas: none; }
    .products__grid > li { grid-area: auto; }
    .products__grid > li:nth-child(n) { grid-area: auto; }
    [data-carousel].products__grid > li { flex-basis: 78%; }
    .pcard__link { min-height: 300px; }
    .products__grid > li:nth-child(n+5) .pcard__link { flex-direction: column; align-items: stretch; justify-content: flex-end; }

    .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shot--wide { grid-column: span 2; grid-row: auto; }
    .shot--slot { grid-column: span 2; aspect-ratio: auto; }

    [data-carousel].cases__list > li { flex-basis: 78%; }
    .case__img { max-height: none; aspect-ratio: 4 / 3; }
    .case__img img { object-position: 50% 30%; }

    .about__grid { grid-template-columns: minmax(0, 1fr); }
    .about__img { aspect-ratio: 16 / 9; }
    .about__img img { height: 100%; object-fit: cover; }
    .site-footer__slogan { font-size: 2.125rem; }
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
    .site-footer__grid > div:first-child { grid-column: 1 / -1; }
    .site-footer__legal { margin-top: 28px; }

    .form-section__grid { grid-template-columns: minmax(0, 1fr); }
    .flow { margin-top: 20px; gap: 10px; }
    .form-section__direct { margin-top: 20px; padding-top: 12px; }
    .form__row, .choice__opts { grid-template-columns: minmax(0, 1fr); }
    .form__nav .btn { flex: 1 1 100%; }
    .ticket { --pad: 18px; }

    .product { padding-top: 4px; }
    .product__grid { grid-template-columns: minmax(0, 1fr); }
    .product__media { display: contents; }
    .product__main { order: 1; aspect-ratio: 2 / 1; }
    .product__main img { height: 100%; object-fit: cover; }
    .product__info { order: 2; display: flex; flex-direction: column; }
    .product__thumbs { order: 3; }
    .product__info > * { order: 2; }
    .product__info > .eyebrow, .product__info > h1, .product__info > .product__lead { order: 0; }
    .product__info > .product__cta { order: 1; margin-top: 16px; }
    .product__info > .product__assure { order: 1; margin-top: 12px; }
    .product__grid { gap: 16px; }
    .crumbs ol { margin-bottom: 4px; }
    .product__thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
    .product__thumbs li { flex: 0 0 38%; scroll-snap-align: start; }
    .product__info h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
    .cap__opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .specs__grid, .faq__grid, .bigger__grid { grid-template-columns: minmax(0, 1fr); }
    .extras { grid-template-columns: minmax(0, 1fr); }
    .inuse__grid { gap: 8px; }
  }
}

/* ---------- 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-surface);
}
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; }
