/* 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 WIREFRAME. Replace all of it with the direction in RETNING.md.
   ===================================================================================================== */
@layer base {
  :root {
    /* AGENTS.md requires these eight. From the old site's Elementor kit: #222 headings, #2E2E2E text,
       #FBC441 accent, Source Sans 3. */
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-text: #2e2e2e;
    --color-text-muted: #595959;
    --color-accent: #fbc441;
    --color-accent-muted: #e4e4e4;
    --font-display: 'Source Sans 3', var(--fallback-sans);
    --font-body: 'Source Sans 3', var(--fallback-sans);

    /* Roles the kit uses */
    --color-heading: #222222;
    --color-deep: #222222;
    --color-on-deep: #ffffff;
    --color-on-accent: #000000;
    --color-line: #d6d6d6;
    --color-line-on-deep: rgb(255 255 255 / 0.2);
    --color-field: #858585;
    --color-error: #a3261c;
    --color-focus: #222222;
    --color-overlay: rgb(0 0 0 / 0.42);
    --color-overlay-light: rgb(0 0 0 / 0.2);
    --color-white: #ffffff;
    --color-footer-text: #5c5c5c;
    --fallback-sans: 'Akari Fallback', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    --space-section: clamp(40px, min(6vw, 8vh), 80px);
    --space-head: clamp(20px, min(3vw, 4vh), 40px);
    --gap: 24px;
    --gutter: clamp(20px, 5vw, 48px);
    --measure: 68ch;
    --wrap: 1140px;
    --radius: 0px;
    --header-h: 76px;
    --bar-h: 64px;

    --step--1: 0.9rem;
    --step-0: clamp(1rem, 0.98rem + 0.12vw, 1.0625rem);
    --step-1: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
    --step-2: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem);
    --step-3: clamp(1.875rem, min(1.4rem + 1.6vw, 6vh), 2.2rem);
    --step-4: clamp(2.2rem, min(1.4rem + 3.4vw, 9vh), 3.75rem);

    --dur: 0.3s;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    color-scheme: light;
  }

  @font-face {
    font-family: 'Akari Fallback';
    src: local('Arial');
    size-adjust: 93%;
    ascent-override: 110%;
    descent-override: 31%;
    line-gap-override: 0%;
  }

  html, body { background: var(--color-bg); }
  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: 600; line-height: 1.15; color: var(--color-heading); text-wrap: balance; }
  h1 { font-size: var(--step-4); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-2); line-height: 1.2; }
  p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
  :is(h1, h2, h3) + :is(p, ul, ol) { margin-top: 0.6em; }
  p:last-child { margin-bottom: 0; }
  a { color: inherit; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease); }
  a:hover { text-decoration-color: var(--color-heading); }
  img { max-width: 100%; height: auto; }

  .section { padding-block: var(--space-section); }
  .section__head { margin-bottom: var(--space-head); max-width: 760px; }
  .eyebrow { margin: 0 0 8px; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); }
  .lead { font-size: var(--step-1); line-height: 1.45; font-weight: 300; color: var(--color-text); }
  .narrow { max-width: 860px; }
}

@layer components {
  .btn { padding: 14px 25px; border: 1.5px solid transparent; border-radius: var(--radius); font-weight: 600; line-height: 1.2; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
  .btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
  .btn--primary:hover { background: var(--color-deep); color: var(--color-on-deep); }
  .btn--ghost { border-color: currentColor; background: transparent; }
  .btn--ghost:hover { background: var(--color-accent); color: var(--color-on-accent); border-color: var(--color-accent); }

  .site-header { background: var(--color-surface); color: var(--color-heading); border-bottom: 1px solid var(--color-accent-muted); }
  .site-header__logo img { height: 58px; width: auto; }
  .site-nav { gap: 12px; }
  .site-nav a:not(.btn) { position: relative; padding: 4px 10px; font-size: 1.125rem; font-weight: 300; color: var(--color-on-accent); text-decoration: none; }
  .site-nav a:not(.btn)::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 3px; 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); }
  .menu-button { padding: 0 12px; background: transparent; color: var(--color-heading); border: 1.5px solid currentColor; border-radius: var(--radius); }
  .menu-button:hover { background: var(--color-accent); }

  .takeover__top h2 { font-size: var(--step-1); color: inherit; }
  .takeover__close { background: transparent; color: inherit; border: 1.5px solid currentColor; border-radius: var(--radius); }
  .takeover__close:hover { background: var(--color-accent); color: var(--color-on-accent); }
  .takeover__links { margin-bottom: 32px; }
  .takeover__links a { font-size: var(--step-2); font-weight: 600; border-bottom: 1px solid var(--color-line-on-deep); }
  .takeover__links a:hover { color: var(--color-accent); }
  .takeover__contact { margin-top: 32px; display: grid; gap: 4px; }
  .takeover__contact p { margin: 0; }

  .form { max-width: none; gap: 10px; }
  .narrow.form-wrap { max-width: 980px; }
  .form legend { margin-bottom: 4px; font-weight: 600; font-size: var(--step-0); }
  .field label { font-weight: 600; }
  .field__opt { font-weight: 400; color: var(--color-text-muted); }
  .field__hint { margin: 0; font-size: var(--step--1); color: var(--color-text-muted); }
  .field input, .field select, .field textarea { padding: 10px 14px; background: var(--color-surface); border: 1.5px solid var(--color-field); border-radius: var(--radius); }
  .field input:focus, .field textarea:focus { border-color: var(--color-heading); }
  .field__error { font-weight: 600; font-size: 0.95rem; color: var(--color-error); }
  .form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
  .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  @media (max-width: 599.98px) { .choices { grid-template-columns: minmax(0, 1fr); } }
  @media (min-width: 900px) { .choices { grid-template-columns: auto auto auto minmax(0, 1fr); gap: 0 28px; } }
  .choices legend { grid-column: 1 / -1; }
  .choices label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; line-height: 1.3; }
  .choices input { width: 20px; height: 20px; accent-color: var(--color-heading); }
  .form__summary { padding: 16px 20px; border: 2px solid var(--color-error); background: var(--color-surface); }
  .form__status { margin: 16px 0 0; font-weight: 600; }
  .form__answer { margin-top: 24px; padding: 28px; background: var(--color-accent-muted); border-left: 5px solid var(--color-accent); }
  .form__answer h3 { margin-bottom: 8px; font-size: var(--step-1); }

  .slot { display: grid; align-content: center; gap: 6px; min-height: 120px; padding: 20px 24px; border: 1.5px dashed var(--color-field); background: var(--color-surface); color: var(--color-text-muted); }
  .slot__type { font-size: var(--step--1); font-weight: 600; color: var(--color-text); }
  .slot__text { font-size: 0.95rem; line-height: 1.5; max-width: 44ch; }
  .slot__rec { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }

  .site-footer { background: var(--color-surface); color: var(--color-footer-text); border-top: 1px dotted var(--color-line); padding: 40px 0 calc(24px + env(safe-area-inset-bottom)); font-size: 0.95rem; }
  .site-footer p { margin: 0; }
  .site-footer strong { color: var(--color-heading); }
  .site-footer a { text-decoration: none; }
  .site-footer a:hover { color: var(--color-heading); text-decoration: underline; text-decoration-color: var(--color-accent); }
  .site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; }
  .site-footer__grid > div { display: grid; align-content: start; gap: 0; }
  .site-footer__social { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .site-footer__social a { color: var(--color-heading); }
  .site-footer__social a:hover { color: var(--color-on-accent); background: var(--color-accent); }
  .site-footer__legal { margin-top: 28px; padding-top: 16px; border-top: 1px dotted var(--color-line); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; }
}

@layer pages {
  /* Hero: the old Elementor section with a background slideshow (8 photos, 5 s each), a dark overlay,
     the white heading, the yellow rule and the italic line under it. */
  .hero { position: relative; display: grid; place-items: center; min-height: clamp(420px, 72svh, 630px); color: var(--color-white); overflow: clip; background: var(--color-deep); }
  .hero__slides { position: absolute; inset: 0; }
  .hero__slide { position: absolute; inset: 0; }
  .hero__slide picture, .hero__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .hero__slide:not(:first-child) { animation: hero-fade 40s linear infinite both; visibility: hidden; }
  .hero__slide:nth-child(2) { animation-delay: 5s; }
  .hero__slide:nth-child(3) { animation-delay: 10s; }
  .hero__slide:nth-child(4) { animation-delay: 15s; }
  .hero__slide:nth-child(5) { animation-delay: 20s; }
  .hero__slide:nth-child(6) { animation-delay: 25s; }
  .hero__slide:nth-child(7) { animation-delay: 30s; }
  .hero__slide:nth-child(8) { animation-delay: 35s; }
  @keyframes hero-fade {
    0% { visibility: visible; clip-path: inset(0 0 0 100%); }
    1.5% { clip-path: inset(0 0 0 0); }
    12.5% { visibility: visible; clip-path: inset(0 0 0 0); }
    14% { visibility: hidden; }
    100% { visibility: hidden; }
  }
  .hero::after { content: ""; position: absolute; inset: 0; background: var(--color-overlay); }
  .hero__inner { position: relative; z-index: 1; text-align: center; padding-block: 48px; }
  .hero h1 { color: var(--color-white); font-size: clamp(2.4rem, min(1.6rem + 3.4vw, 10vh), 3.75rem); }
  .hero__divider { display: block; width: min(15%, 120px); height: 5px; margin: 18px auto 22px; background: var(--color-accent); }
  .hero__sub { margin-inline: auto; max-width: 30ch; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.8rem); line-height: 1.15; font-weight: 300; font-style: italic; }

  /* Product rows: image left, text right with 50 px padding, as on the old front page. */
  .split { margin-top: clamp(24px, 4vw, 50px); }
  .split__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: center; }
  .split__media picture, .split__media img { display: block; width: 100%; height: auto; }
  .split__text { padding: clamp(20px, 4vw, 50px); }
  .split__text h3 { margin-bottom: 0.4em; }
  .split__text .btn { margin-top: 8px; }
  @media (min-width: 900px) {
    .split__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .split--intro .split__text { padding-left: 0; }
  }
  .split--intro { margin-top: clamp(32px, 5vw, 50px); }

  .video { position: relative; display: block; text-decoration: none; color: var(--color-white); }
  .video::after { content: ""; position: absolute; inset: 0; background: var(--color-overlay); transition: background var(--dur) var(--ease); }
  .video:hover::after { background: var(--color-overlay-light); }
  .video__play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--color-accent); color: var(--color-on-accent); font-weight: 600; white-space: nowrap; }
  .video__play svg.icon { width: 1.5em; height: 1.5em; }

  .partners { margin-block: clamp(32px, 5vw, 50px); }
  .partners .wrap { padding: clamp(30px, 6vw, 70px); background: var(--color-accent-muted); text-align: center; }
  .partners h2 { font-size: clamp(1.875rem, 1.6rem + 0.6vw, 2.2rem); margin-bottom: 28px; }
  .partners__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 48px; margin: 0; padding: 0; list-style: none; }
  .partners__row li { display: grid; justify-items: center; gap: 10px; }
  .partners__row a { display: block; }
  .partners__row img { display: block; height: 120px; width: auto; }
  .partners__row span { font-size: var(--step--1); color: var(--color-text-muted); }

  .page-intro { padding-block: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px); }
  .page-intro__media { margin-top: 32px; }
  .page-intro__media img, .article__media img { display: block; width: 100%; height: auto; }
  .article { padding-bottom: var(--space-section); }
  .article h2 { margin-top: 1.4em; }
  .article__media { margin-top: 24px; }

  .years { padding-bottom: var(--space-section); }
  .year { margin: 0 0 40px; }
  .year h2 { margin-bottom: 12px; }
  .year img { display: block; width: 100%; height: auto; }

  .gallery { padding-bottom: var(--space-section); }
  .gallery__grid { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
  .gallery__grid img { display: block; width: 100%; height: auto; }
  @media (min-width: 600px) {
    .gallery__grid--2, .gallery__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (min-width: 900px) {
    .gallery__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  .contact { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
  .contact__info a { text-decoration: none; }
  .contact__info a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
  .contact__info p a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
  .section--form { padding-block: var(--space-section); }
  .section--form h2 { font-size: var(--step-2); margin-bottom: 16px; }

  .team { padding-block: var(--space-section); background: var(--color-accent-muted); }
  .team__grid { display: grid; gap: 32px 24px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (min-width: 900px) { .team__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .team__grid img, .team__noimg { display: block; width: 100%; max-width: 240px; aspect-ratio: 1; height: auto; object-fit: cover; }
  .team__noimg { display: grid; place-items: center; background: var(--color-surface); color: var(--color-text-muted); }
  .team__noimg svg.icon { width: 48px; height: 48px; }
  .team__grid h3 { margin: 14px 0 2px; font-size: var(--step-1); }
  .team__grid p { margin: 0 0 4px; }
  .team__grid a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
  .team__grid a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }

  @media (prefers-reduced-motion: reduce) {
    .hero__slide:not(:first-child) { animation: none; visibility: hidden; }
  }
}

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