@charset "UTF-8";
/* ============================================================================
   ROMA — COMPONENT LAYER  (public site only)
   Loaded after rooma-core.css. Contains every UI component of the public
   site: header, drawer, bottom nav, buttons, cards, hero, sliders, gallery,
   accordion, tabs, timeline, forms, footer, news, lightbox.
   ========================================================================= */

/* ══════════════════════════════════════════════════════════════════════════
   1. SCROLL PROGRESS
   ══════════════════════════════════════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: 3px;
    z-index: var(--z-progress);
    pointer-events: none;
    background: transparent;
}
.scroll-progress__bar {
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: right center; /* RTL: grows right → left */
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
    box-shadow: 0 0 10px rgba(232,168,56,.5);
    will-change: transform;
}
[dir="ltr"] .scroll-progress__bar { transform-origin: left center; }

/* ══════════════════════════════════════════════════════════════════════════
   2. TOP BAR
   ══════════════════════════════════════════════════════════════════════════ */
.topbar {
    position: relative;
    /* Must stay *below* the floating header so the capsule can glide over
       the bar during the reveal instead of being clipped behind it. */
    z-index: calc(var(--z-header) - 1);
    background: var(--ink-night);
    color: rgba(255,255,255,.86);
    font-size: var(--text-xs);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: 38px;
    padding-block: .3rem;
}
.topbar__group { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.86);
    white-space: nowrap;
    transition: color var(--t-fast), opacity var(--t-fast);
}
.topbar__item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .85; fill: none; stroke: currentColor; }
a.topbar__item:hover { color: #fff; }
a.topbar__item:hover svg { opacity: 1; }

.topbar__socials { display: flex; align-items: center; gap: .35rem; }
.topbar__social {
    display: grid;
    place-items: center;
    width: 28px; height: 28px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.topbar__social svg { width: 14px; height: 14px; fill: currentColor; }
.topbar__social:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.topbar__marquee { flex: 1; text-align: center; font-weight: 500; }

/* Phones: keep only the essentials so the bar stays one clean line */
@media (max-width: 767px) {
    .topbar { font-size: var(--text-2xs); }
    .topbar__inner { justify-content: center; min-height: 34px; }
    .topbar__item--hours,
    .topbar__item--email { display: none; }
    .topbar__socials { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   3. HEADER — in-place morphing glass capsule
   --------------------------------------------------------------------------
   The header is FIXED and present from the very first frame. It never enters
   from outside the viewport — there is no translateY reveal, no slide-in.

   At rest (scrollY = 0) it is deliberately minimal: no background, no
   border, no shadow, no blur — just the bare logo / nav / burger sitting
   directly on top of the page content, at full width.

   As soon as scrolling starts, that SAME element morphs in place into a
   floating green glass capsule. Every animated property is a compositor- or
   paint-cheap one driven by a single scroll progress variable `--fh-p`
   (0 → 1), written once per rAF frame by rooma.js:

       --fh-p   →  opacity   (of the glass layer only, never the content)
                   transform (a subtle scale + settle, no vertical entry)
       --fh-pc  →  width      (max-width tightens to a capsule)
                   border-radius
                   background  (glass fades up via opacity)
                   blur        (backdrop-filter ramps 0 → full)
                   height / padding (compactness)

   `--fh-p` stays fine-grained for compositor-friendly opacity/transform.
   `--fh-pc` is quantized (~25 steps) so layout, color-mix and the
   backdrop-filter function are not rebuilt on every compositor frame.
   Neither uses a CSS transition, so the morph tracks the scroll exactly.
   ══════════════════════════════════════════════════════════════════════════ */

.site-header {
    --fh-p: 0;
    --fh-pc: 0;

    position: fixed;
    inset-inline: 0;
    inset-block-start: 0;
    z-index: var(--z-header);

    display: flex;
    justify-content: center;

    /* Top offset grows slightly as the capsule detaches from the edge.
       PERF: driven by coarse --fh-pc (25 steps) — layout is rewritten during
       the morph, so it must not track every compositor frame. */
    padding-block-start: calc(var(--fh-top) * var(--fh-pc));
    padding-inline: calc(var(--fh-inset) * var(--fh-pc));

    pointer-events: none;   /* only the bar itself is interactive */

    /* PERF: the wrapper's padding is rewritten every scroll frame during the
       morph — containment keeps that layout work inside the fixed header so
       it never propagates to the page. No visual effect. */
    contain: layout style;
}

/* A topbar must not push the header down, because then the header would
   travel upward by the topbar's height as the topbar scrolls away — visible
   vertical movement, which is exactly what we are eliminating.

   Instead the topbar reserves the header's height inside its OWN dark band,
   so the header floats over the top of that band and stays pinned at
   inset-block-start: 0 for the entire scroll. The topbar's content sits in
   the lower part of the band, clear of the header. Net vertical movement of
   the header: zero. */
.topbar { padding-block-start: var(--fh-h); }

/* The band behind a resting header is always dark, so the ink is light on
   every page that has a topbar — no per-page detection needed. */
body:has(> .topbar) .site-header__shell {
    --fh-rest-ink: #fff;
    --fh-rest-ink-soft: rgba(255,255,255,.82);
    --fh-rest-chip: rgba(255,255,255,.10);
    --fh-rest-chip-border: rgba(255,255,255,.20);
    --fh-rest-pill: rgba(255,255,255,.10);
    --fh-rest-pill-ring: rgba(255,255,255,.18);
    --fh-rest-chip-hover: rgba(255,255,255,.18);
}

/* With a topbar the dark band already clears the header, so ordinary light
   pages must not add a second helping of top spacing. */
body:has(> .topbar) .site-main { padding-block-start: 0; }
body:has(> .topbar) .site-main > .page-hero:first-child {
    padding-block-start: clamp(2.25rem, 1.5rem + 4vw, 4.25rem);
}

/* ── The morphing shell ──
   PERF: isolated to its own paint layer (contain + translateZ) so the per-frame
   --fh-p writes never invalidate the page underneath. No visual change. */
.site-header__shell {
    position: relative;
    isolation: isolate;
    width: 100%;
    contain: layout paint style;
    transform: translateZ(0);
    backface-visibility: hidden;

    /* Full-bleed at rest → capsule once condensed (coarse steps: layout) */
    max-width: calc(100% - (100% - var(--fh-max-w)) * var(--fh-pc));

    /* Square at rest → fully rounded capsule */
    border-radius: calc(var(--fh-radius) * var(--fh-pc));

    /* PERF: backdrop-filter is off at rest. blur(0) still opens a backdrop
       root and re-samples the page every scroll frame on Safari / Firefox.
       JS toggles .is-filtering once the glass starts coming in; the blur
       amount rides the coarse --fh-pc so the filter function is not rebuilt
       on every compositor frame. */
    pointer-events: auto;
    /* NOTE: no will-change here on purpose. max-width / border-radius /
       backdrop-filter are not compositable, so hinting them only reserves
       memory without promoting anything — the layer already comes from
       translateZ(0) + contain above. */
}
.site-header.is-filtering .site-header__shell {
    -webkit-backdrop-filter: blur(calc(var(--fh-blur) * var(--fh-pc))) saturate(calc(100% + 90% * var(--fh-pc)));
    backdrop-filter: blur(calc(var(--fh-blur) * var(--fh-pc))) saturate(calc(100% + 90% * var(--fh-pc)));
}
/* Low-power phones: keep the same capsule look with a cheaper blur.
   20px→14px is ~30% less blur cost on mobile GPUs, visually near-identical
   at capsule scale. Desktop untouched. */
@media (max-width: 767px) {
    .site-header__shell {
        --fh-blur: 14px;
    }
}
/* Weak devices (JS adds .bg-lite on Save-Data/2G/≤4 cores): same capsule,
   same glass ramp, just a cheaper blur kernel. Capable devices untouched. */
.bg-lite .site-header__shell {
    --fh-blur: 8px;
}

/* The glass itself lives on a pseudo-element so its opacity can be faded
   from 0 → 1 without ever touching the opacity of the header CONTENT
   (fading the content would make the logo/nav blink, which is exactly the
   cheap effect we want to avoid). */
.site-header__shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;

    background-image: var(--fh-glass);
    border: 1px solid var(--fh-border);
    box-shadow: var(--fh-shadow);

    opacity: var(--fh-p);
    pointer-events: none;

    /* A whisper of scale so the glass swells into place rather than simply
       switching on. It lives on this layer, not on the shell, because
       scaling the shell would also scale the logo and nav — and, at rest,
       would leave the bar a couple of pixels narrower than the page content
       it is supposed to line up with. No Y translation: the header never
       appears to arrive from anywhere. */
    transform: scale(calc(1 - 0.03 * (1 - var(--fh-p))));
    will-change: opacity, transform;
}

/* Browsers without backdrop-filter: swap the translucent glass for an
   opaque green so the white content never loses contrast. */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
    .site-header__shell::before {
        background-image: none;
        background-color: var(--fh-glass-solid);
    }
}
/* Weak devices: same solid swap — glass look, no per-frame backdrop sample. */
.perf-low .site-header__shell,
.bg-lite .site-header__shell {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.perf-low .site-header__shell::before,
.bg-lite .site-header__shell::before {
    background-image: none;
    background-color: var(--fh-glass-solid);
}

/* Inner sheen — a 1px specular top edge plus a soft vertical falloff. Reads
   as physical thickness. Fades in with the glass. */
.site-header__glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    overflow: hidden;
    opacity: var(--fh-p);
    pointer-events: none;
    /* PERF: opacity-only fade driven per scroll frame — own layer so the
       static sheen gradients are rasterized once, not repainted per frame. */
    will-change: opacity;
}
.site-header__glow::before {
    content: "";
    position: absolute;
    inset-inline: 8%;
    inset-block-start: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fh-sheen) 22%, var(--fh-sheen) 78%, transparent);
}
.site-header__glow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,.15) 0%, rgba(255,255,255,.03) 45%, rgba(0,0,0,.05) 100%);
}

/* ── Bar contents ── */
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);

    /* Compact by design, and a touch tighter once condensed */
    height: calc(var(--fh-h) - (var(--fh-h) - var(--fh-h-min)) * var(--fh-pc));

    /* Wide gutters at rest (aligns with page content) → snug in the capsule */
    padding-inline: calc(var(--gutter) - (var(--gutter) - var(--fh-pad-min)) * var(--fh-pc));

    width: 100%;
    max-width: none;
    min-height: 0;
}

/* ── Adaptive resting ink ──────────────────────────────────────────────────
   The header is permanently visible and overlays real content, so at rest
   its ink has to suit whatever is underneath:

     • Pages that open with a dark hero (index, news listing) → white ink.
     • Pages that open with a light section (page.php, articles, auth)
       → normal dark page ink.

   Once the green glass has faded in, the ink is white in BOTH cases. The
   interpolation is driven by --fh-p through color-mix, so the ink crossfades
   in lockstep with the glass instead of snapping at a threshold.
   `--fh-rest-*` is set per page-type below.                                */
.site-header__shell {
    --fh-rest-ink: var(--ink);
    --fh-rest-ink-soft: var(--text-muted);
    --fh-rest-chip: transparent;
    --fh-rest-chip-border: var(--border);
    --fh-rest-pill: var(--primary-faint);
    --fh-rest-pill-ring: rgba(61,139,99,.18);
    --fh-rest-chip-hover: var(--primary-faint);
}

/* Dark hero directly under the header → start with light ink.
   :has() lets this be inferred from the markup with no per-page classes. */
body:has(> .site-main > .hero:first-child) .site-header__shell,
body:has(> .site-main > .page-hero:first-child) .site-header__shell,
body:has(> .site-main > section.hero:first-child) .site-header__shell {
    --fh-rest-ink: #fff;
    --fh-rest-ink-soft: rgba(255,255,255,.82);
    --fh-rest-chip: rgba(255,255,255,.10);
    --fh-rest-chip-border: rgba(255,255,255,.20);
    --fh-rest-pill: rgba(255,255,255,.10);
    --fh-rest-pill-ring: rgba(255,255,255,.18);
    --fh-rest-chip-hover: rgba(255,255,255,.18);
}

/* Interpolated ink tokens actually used by the content.
   PERF: color-mix is expensive to recompute (Firefox especially). Drive it
   from coarse --fh-pc so ink only repaints on the 25 morph steps, while
   opacity/transform on the glass layers stay on fine --fh-p. */
.site-header__shell {
    --fh-ink-now: color-mix(in srgb, var(--fh-ink) calc(var(--fh-pc) * 100%), var(--fh-rest-ink));
    --fh-ink-soft-now: color-mix(in srgb, var(--fh-ink-soft) calc(var(--fh-pc) * 100%), var(--fh-rest-ink-soft));
    --fh-chip-now: color-mix(in srgb, var(--fh-chip) calc(var(--fh-pc) * 100%), var(--fh-rest-chip));
    --fh-chip-border-now: color-mix(in srgb, var(--fh-chip-border) calc(var(--fh-pc) * 100%), var(--fh-rest-chip-border));
    --fh-pill-now: color-mix(in srgb, var(--fh-chip) calc(var(--fh-pc) * 100%), var(--fh-rest-pill));
    --fh-pill-ring-now: color-mix(in srgb, var(--fh-chip-border) calc(var(--fh-pc) * 100%), var(--fh-rest-pill-ring));
    --fh-chip-hover-now: color-mix(in srgb, var(--fh-chip-hover) calc(var(--fh-pc) * 100%), var(--fh-rest-chip-hover));
}
/* No color-mix (older Safari/Firefox): fall back to the resting ink, then
   hard-switch to white once the glass is mostly opaque. Handled in JS via
   the .is-glass class so there is still no illegible in-between state. */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .site-header__shell {
        --fh-ink-now: var(--fh-rest-ink);
        --fh-ink-soft-now: var(--fh-rest-ink-soft);
        --fh-chip-now: var(--fh-rest-chip);
        --fh-chip-border-now: var(--fh-rest-chip-border);
        --fh-pill-now: var(--fh-rest-pill);
        --fh-pill-ring-now: var(--fh-rest-pill-ring);
        --fh-chip-hover-now: var(--fh-rest-chip-hover);
    }
    .site-header.is-glass .site-header__shell {
        --fh-ink-now: var(--fh-ink);
        --fh-ink-soft-now: var(--fh-ink-soft);
        --fh-chip-now: var(--fh-chip);
        --fh-chip-border-now: var(--fh-chip-border);
        --fh-pill-now: var(--fh-chip);
        --fh-pill-ring-now: var(--fh-chip-border);
        --fh-chip-hover-now: var(--fh-chip-hover);
    }
}

/* Brand */
.site-header__shell .brand,
.site-header__shell .brand:hover { color: var(--fh-ink-now); }
.site-header__shell .brand__name {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    color: var(--fh-ink-now);
    transition: none;
}
.site-header__shell .brand__tag { color: var(--fh-ink-soft-now); }

/* Logo shrinks a little as things tighten. Sizes are frame-driven, so the
   inherited width/height transitions must go or they lag the scroll. */
.site-header__shell .brand__mark {
    width:  calc(var(--fh-mark) - (var(--fh-mark) - var(--fh-mark-min)) * var(--fh-pc));
    height: calc(var(--fh-mark) - (var(--fh-mark) - var(--fh-mark-min)) * var(--fh-pc));
    transition: transform var(--t-slow);
}
.site-header__shell .brand__logo {
    height: calc(var(--fh-mark) - (var(--fh-mark) - var(--fh-mark-min)) * var(--fh-pc));
    transition: none;
}

/* Nav */
.site-header__shell .nav { z-index: 0; }
.site-header__shell .nav__link { color: var(--fh-ink-soft-now); }
.site-header__shell .nav__link:hover,
.site-header__shell .nav__link.is-active { color: var(--fh-ink-now); }
.site-header__shell .nav__pill {
    background: var(--fh-pill-now);
    box-shadow: inset 0 0 0 1px var(--fh-pill-ring-now);
}

/* Icon buttons / burger — present from the first frame, they just firm up
   into frosted chips as the glass arrives. */
.site-header__shell .icon-btn {
    background: var(--fh-chip-now);
    border-color: var(--fh-chip-border-now);
    color: var(--fh-ink-now);
    width:  calc(var(--fh-btn) - (var(--fh-btn) - var(--fh-btn-min)) * var(--fh-pc));
    height: calc(var(--fh-btn) - (var(--fh-btn) - var(--fh-btn-min)) * var(--fh-pc));
    transition: background var(--t-fast), color var(--t-fast),
                border-color var(--t-fast), transform var(--t-fast);
}
.site-header__shell .icon-btn:hover {
    background: var(--fh-chip-hover-now);
    border-color: color-mix(in srgb, rgba(255,255,255,.32) calc(var(--fh-pc) * 100%), var(--fh-rest-chip-border));
    color: var(--fh-ink-now);
}

/* Primary CTA. --fh-cta-ink is a fixed dark green (8.1:1 on white) in both
   themes; --primary-dark would lighten in dark mode and collapse to 1.95:1. */
.site-header__shell .btn-primary {
    background: rgba(255,255,255,.95);
    color: var(--fh-cta-ink);
    box-shadow: 0 2px 10px rgba(11,32,23,.16);
}
.site-header__shell .btn-primary:hover {
    background: #fff;
    color: var(--fh-cta-ink);
    box-shadow: 0 6px 18px rgba(11,32,23,.24);
}
.site-header__shell .btn-primary svg { color: var(--fh-cta-ink); }

/* Focus rings stay visible against both the light page and the green glass */
.site-header__shell :focus-visible {
    outline: 2px solid var(--fh-ink-now);
    outline-offset: 2px;
}

/* Phones: the capsule uses the full width minus its inset */
@media (max-width: 767px) {
    .site-header__shell { max-width: 100%; }
}

/* Reduced motion: the morph is a scroll-linked state change rather than an
   animation, so it is kept — but the decorative scale settle is dropped. */
@media (prefers-reduced-motion: reduce) {
    .site-header__shell::before { transform: none; }
}

/* ── Room for a fixed header ───────────────────────────────────────────────
   The header is out of flow, so pages that open with ordinary light content
   would otherwise start underneath it. Reserve a header's worth of space by
   default and give it back on pages that open with a full-bleed dark hero,
   where floating over the artwork is the whole point.

   Written in this direction on purpose: browsers without :has() keep the
   safe padding rather than losing it.                                      */
.site-main { padding-block-start: var(--fh-h); }

body:has(> .site-main > .hero:first-child) .site-main,
body:has(> .site-main > .page-hero:first-child) .site-main {
    padding-block-start: 0;
}

/* A dark page-hero is short enough that the header would sit on its title,
   so it absorbs the header height into its own top padding instead. */
.site-main > .page-hero:first-child {
    padding-block-start: calc(var(--fh-h) + clamp(.75rem, .4rem + 1.6vw, 1.75rem));
}

/* ── Brand ── */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    flex-shrink: 0;
    min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand__mark {
    width: 40px; height: 40px;
    flex-shrink: 0;
    transition: width var(--t-base), height var(--t-base), transform var(--t-slow);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__logo {
    width: auto;
    height: 40px;
    max-width: 150px;
    object-fit: contain;
    transition: height var(--t-base);
}
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand__name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transition: font-size var(--t-base);
    white-space: nowrap;
}
.brand__tag {
    font-size: var(--text-2xs);
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}
@media (max-width: 420px) { .brand__tag { display: none; } }

/* ── Desktop nav ── */
.nav {
    display: none;
    align-items: center;
    gap: .15rem;
    position: relative;
}
@media (min-width: 992px) { .nav { display: flex; } }

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .8rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
}
.nav__link svg {
    width: 17px; height: 17px;
    fill: none; stroke: currentColor; stroke-width: 2;
    opacity: .7;
    transition: opacity var(--t-fast), transform var(--t-base);
}
.nav__link:hover { color: var(--primary-dark); }
.nav__link:hover svg { opacity: 1; transform: translateY(-1px); }
.nav__link.is-active { color: var(--primary-dark); }
.nav__link.is-active svg { opacity: 1; }

/* Sliding "pill" indicator that follows the active/hovered link */
.nav__pill {
    position: absolute;
    z-index: -1;
    top: 50%;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--primary-faint);
    box-shadow: inset 0 0 0 1px rgba(61,139,99,.18);
    transform: translateY(-50%);
    transition:
        inset-inline-start .38s var(--ease-spring),
        width .38s var(--ease-spring),
        opacity var(--t-base);
    opacity: 0;
    pointer-events: none;
}
.nav__pill.is-ready { opacity: 1; }

/* ── Header actions ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-btn:hover {
    background: var(--primary-faint);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}
.icon-btn:active { transform: scale(.94); }

/* Theme toggle: sun/moon crossfade */
.theme-toggle__moon,
.theme-toggle__sun { transition: opacity var(--t-base), transform var(--t-base); }
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun  { display: block; }

/* Hamburger — animated to an X. Keep it available below the desktop nav
   breakpoint so tablet/mobile layouts retain a complete navigation path. */
.burger { display: grid; }

/* The inline navigation is already available at desktop widths. Hide only
   the redundant opener at the same breakpoint, without removing the drawer
   markup or changing its mobile/tablet behavior. */
@media (min-width: 992px) {
    .site-header__shell .burger { display: none; }
}
.burger__box { position: relative; width: 20px; height: 14px; }
.burger__line {
    position: absolute;
    inset-inline: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .34s var(--ease-spring), opacity .2s var(--ease-in-out), width .34s var(--ease-spring);
}
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 6px; width: 74%; }
.burger__line:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════════════
   4. MOBILE DRAWER
   ══════════════════════════════════════════════════════════════════════════ */
.drawer-overlay {
    /* PERF: isolate the blurred dim in its own compositor layer so the fade
       never repaints the page behind it. Opacity-only fade = no layout. */
    contain: strict;
    transform: translateZ(0);
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(19,48,38,.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
    backface-visibility: hidden;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
/* PERF: backdrop-blur must repaint the whole viewport on every fade frame —
   brutal on software-rendered Firefox / weak Android GPUs. Weak devices
   (JS adds .bg-lite on Save-Data/2G/≤4 cores) and reduced-transparency users
   get the same dim with zero blur cost; capable devices are untouched. */
.bg-lite .drawer-overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
@media (prefers-reduced-transparency: reduce) {
    .drawer-overlay {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

.drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;                 /* RTL → slides from the right */
    z-index: var(--z-drawer);
    width: min(86vw, 340px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-inline-start: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);          /* off-screen toward inline-end */
    transition: transform .42s var(--ease-out-soft);
    overscroll-behavior: contain;
    visibility: hidden;
    /* PERF: own compositor layer + style/layout containment. Previously the
       panel had no layer, so the large shadow-xl and the whole subtree were
       repainted on every slide frame. Timing/easing untouched. */
    contain: layout style;
    will-change: transform;
    backface-visibility: hidden;
}
[dir="rtl"] .drawer { transform: translateX(100%); }
[dir="ltr"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    background: var(--grad-soft);
    flex-shrink: 0;
}
.drawer__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-md) var(--space-md) var(--space-xl);
}
.drawer__nav { display: flex; flex-direction: column; gap: .2rem; }

.drawer__link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text);
    /* Staggered entrance driven by --i set inline in the markup */
    opacity: 0;
    transform: translateX(18px);
    transition: background-color var(--t-fast), color var(--t-fast);
}
.drawer.is-open .drawer__link {
    animation: drawerItemIn .45s var(--ease-out-soft) forwards;
    animation-delay: calc(80ms + var(--i, 0) * 45ms);
    /* PERF: layer hint only while open — 7 concurrent opacity/transform
       tweens no longer fight the panel slide for paint. Released on close. */
    will-change: opacity, transform;
}
@keyframes drawerItemIn {
    to { opacity: 1; transform: translateX(0); }
}
.drawer__link svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    fill: none; stroke: currentColor; stroke-width: 2;
    color: var(--primary);
    opacity: .9;
}
.drawer__link:hover { background: var(--surface-2); color: var(--primary-dark); }
.drawer__link.is-active {
    background: var(--primary-faint);
    color: var(--primary-dark);
    box-shadow: inset 0 0 0 1px rgba(61,139,99,.2);
}
.drawer__link-arrow { margin-inline-start: auto; opacity: .3; width: 16px; height: 16px; }

.drawer__divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-md) .5rem;
}
.drawer__section-title {
    font-size: var(--text-2xs);
    font-weight: 700;
    color: var(--text-faint);
    letter-spacing: .06em;
    padding: 0 .9rem;
    margin-bottom: .4rem;
}
.drawer__foot {
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    flex-shrink: 0;
}
.drawer__contact {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: var(--text-sm);
    color: var(--text-muted);
}
.drawer__contact svg { width: 15px; height: 15px; color: var(--primary); fill: none; stroke: currentColor; stroke-width: 2; }
.drawer__socials { display: flex; gap: .45rem; }
.drawer__social {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.drawer__social svg { width: 16px; height: 16px; fill: currentColor; }
.drawer__social:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════════════════
   6. BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.btn {
    --btn-py: .7rem;
    --btn-px: 1.3rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: var(--btn-py) var(--btn-px);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-family: var(--font-base);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform var(--t-fast),
        box-shadow var(--t-base),
        background var(--t-base),
        color var(--t-base),
        border-color var(--t-base);
    /* Long Persian labels must be allowed to wrap on narrow phones */
    text-wrap: balance;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Shine sweep */
.btn::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -30%; bottom: -30%;
    width: 40%;
    inset-inline-start: -60%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.42), transparent);
    transform: skewX(-18deg);
    transition: inset-inline-start .7s var(--ease-out-soft);
    pointer-events: none;
}
.btn:hover::after { inset-inline-start: 130%; }

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-green);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(61,139,99,.38); transform: translateY(-2px); }

.btn-secondary {
    background: var(--grad-earth);
    color: #fff;
    box-shadow: var(--shadow-clay);
}
.btn-secondary:hover { color: #fff; box-shadow: 0 14px 34px rgba(196,114,74,.38); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-outline:hover {
    background: var(--primary-faint);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--surface-2); color: var(--primary-dark); border-color: var(--primary-light); transform: translateY(-2px); }

/* On dark photo/ink backgrounds */
.btn-light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.perf-low .btn-light,
.bg-lite .btn-light { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; transform: translateY(-2px); }

.btn-sm { --btn-py: .5rem; --btn-px: 1rem; font-size: var(--text-xs); }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { --btn-py: .9rem; --btn-px: 1.75rem; font-size: var(--text-md); }
.btn-lg svg { width: 19px; height: 19px; }
.btn-block { width: 100%; }

/* ══════════════════════════════════════════════════════════════════════════
   7. BADGES / PILLS / CHIPS
   ══════════════════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .7rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge-primary   { background: var(--primary-faint);   color: var(--primary-dark); }
.badge-secondary { background: var(--secondary-faint); color: var(--secondary-dark); }
.badge-accent    { background: var(--accent-light);    color: var(--accent-dark); }
.badge-info      { background: rgba(91,141,184,.14);   color: var(--info); }
.badge-success   { background: var(--primary-faint);   color: var(--primary-dark); }
.badge-warning   { background: var(--accent-light);    color: var(--accent-dark); }
.badge-danger    { background: rgba(200,90,90,.12);    color: var(--danger); }
.badge-light     { background: rgba(255,255,255,.22);  color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.perf-low .badge-light,
.bg-lite .badge-light { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.28); }
.badge-outline   { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-muted); }

/* Eyebrow label above section titles */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .85rem;
    border-radius: var(--radius-full);
    background: var(--primary-faint);
    color: var(--primary-dark);
    font-size: var(--text-xs);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(61,139,99,.16);
}
.eyebrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.eyebrow-clay { background: var(--secondary-faint); color: var(--secondary-dark); box-shadow: inset 0 0 0 1px rgba(196,114,74,.18); }
.eyebrow-light { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }

/* ══════════════════════════════════════════════════════════════════════════
   8. SECTION HEADER
   ══════════════════════════════════════════════════════════════════════════ */
.section-head {
    max-width: 46rem;
    margin-inline: auto;
    margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem);
    text-align: center;
}
.section-head__title {
    font-size: var(--text-3xl);
    margin-block: .6rem .5rem;
    color: var(--ink);
}
.section-head__sub {
    font-size: var(--text-md);
    color: var(--text-muted);
    line-height: var(--leading-body);
    margin: 0;
}
/* Hand-drawn underline that draws itself when revealed */
.section-head__title .u-mark {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    /* Own stacking context. While the parent .section-head runs its reveal
       transform the ::after highlight (z-index: -1) stays above section
       backgrounds; the moment `transform: none` lands that context collapses
       and the highlight would drop behind .section-paper / .section-sunken
       and vanish mid-draw. isolation pins it inside the word instead. */
    isolation: isolate;
}
.section-head__title .u-mark::after {
    content: '';
    position: absolute;
    inset-inline: -2px;
    bottom: -.1em;
    height: .34em;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, rgba(232,168,56,.55), rgba(196,114,74,.4));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .8s var(--ease-out-soft) .15s;
    z-index: -1;
}
.section-head.is-revealed .section-head__title .u-mark::after,
.is-revealed .section-head__title .u-mark::after { transform: scaleX(1); }
/* No-JS / reduced-motion: show it immediately */
html:not(.js-reveal) .section-head__title .u-mark::after { transform: scaleX(1); }

.section-head--start { text-align: start; margin-inline: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   9. CARD BASE
   ══════════════════════════════════════════════════════════════════════════ */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--t-base),
        box-shadow var(--t-base),
        border-color var(--t-base);
    overflow: hidden;
    isolation: isolate;
}
.card-pad { padding: clamp(1.1rem, .9rem + .8vw, 1.75rem); }

/* Interactive lift — only where a pointer can hover */
@media (hover: hover) and (pointer: fine) {
    .card-hover:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }
}
/* Touch feedback */
@media (hover: none) {
    .card-hover:active { transform: scale(.99); }
}

/* Glow that follows the cursor (JS sets --mx/--my) */
.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(
        360px circle at var(--mx, 50%) var(--my, 50%),
        rgba(61,139,99,.10),
        transparent 60%);
    transition: opacity var(--t-base);
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .card-glow:hover::before { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   10. HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ink-night);

    /* ── Hero sizing system — the ONLY place to tune the banner ──────────
       --hero-chrome   space the first screen keeps free besides the banner:
                       header + top bar (≈95px) + a ≈55px peek of the next
                       section, so visitors can see there is more below.
       --hero-h-min    smallest height at which eyebrow + headline + two lines
                       of text + CTAs still fit.
       --hero-h-max    hard ceiling for big monitors / ultrawide screens.
       --hero-h-fluid  grows gently with the window width:
                       ≈460px @1024 · 500px @1280 · 525px @1440 · 600px @1920,
                       reaching the ceiling at ≈2180px.
       --hero-h        the result: the fluid height, but never taller than the
                       window can actually show (svh) and never below the min.
       --hero-focus    object-position: which part of the artwork `cover` keeps.
       --hero-frame/-edge
                       arrows, pause button and scroll cue sit on a centred
                       frame of --hero-ui-max instead of the screen edge.   */
    --hero-chrome: 150px;
    --hero-h-min: 420px;
    --hero-h-max: 640px;
    --hero-h-fluid: clamp(var(--hero-h-min), 15.6vw + 300px, var(--hero-h-max));
    --hero-vh: 100vh;
    --hero-h: max(var(--hero-h-min), min(var(--hero-h-fluid), calc(var(--hero-vh) - var(--hero-chrome))));
    --hero-focus: 50% 38%;
    --hero-ui-max: 1560px;
    --hero-frame: max(0px, calc((100% - var(--hero-ui-max)) / 2));
    --hero-edge: calc(var(--hero-frame) + var(--gutter));

    /* ── Element scale — text and buttons inside the banner ──────────────
       Fluid (clamp) and in rem, so the visitor's text-size setting and the
       browser zoom still scale everything (WCAG 1.4.4).
       --hero-title-fs   headline    26px @360 · 31px @600 · 40px @1024 · 52px @1640+
       --hero-sub-fs     lead text   15px @360 · 16px @768 · 19px @1640+
       --hero-sub-mb     space under the lead text (16px → 24px)
       --hero-btn-h      button      48px on phones … 54px on big monitors
                         (touch target >= 44px: WCAG 2.5.5, Apple HIG; Material: 48dp)
       --hero-btn-fs / --hero-btn-px   button label size and side padding
       --hero-eyebrow-fs label above the headline (12px → 13px)
       --hero-cta-fg     text colour of the orange button (#fff = the old look,
                         but white on the amber end measures only 2.1:1)
       --hero-lane       phones: free strip at the top for the pause button
       Legibility on bright photos (WCAG 1.4.3: 3:1 headline, 4.5:1 small text):
       --hero-scrim-m    up to 991px: stronger gradient behind the text
       --hero-halo-rgb   992px and up: soft halo behind the text column     */
    --hero-title-fs: clamp(1.625rem, 1.2rem + 2vw, 3.25rem);
    --hero-sub-fs: clamp(.9375rem, .88rem + .3vw, 1.1875rem);
    --hero-sub-mb: clamp(1rem, .85rem + .6vw, 1.5rem);
    --hero-btn-h: clamp(3rem, 2.8rem + .6vw, 3.4rem);
    --hero-btn-fs: clamp(.9375rem, .91rem + .2vw, 1.0625rem);
    --hero-btn-px: clamp(1rem, .75rem + 1.2vw, 1.75rem);
    --hero-eyebrow-fs: clamp(.75rem, .72rem + .1vw, .8125rem);
    --hero-cta-fg: #0B1712;
    --hero-lane: 3.5rem;
    --hero-scrim-m: linear-gradient(to top, rgba(19,48,38,.94) 0%, rgba(19,48,38,.82) 40%, rgba(19,48,38,.56) 78%, rgba(19,48,38,.18) 100%);
    --hero-halo-rgb: 19, 48, 38;
}
[data-theme="dark"] .hero {
    --hero-scrim-m: linear-gradient(to top, rgba(4,12,9,.96) 0%, rgba(6,16,12,.88) 40%, rgba(6,16,12,.6) 78%, rgba(6,16,12,.2) 100%);
    --hero-halo-rgb: 6, 16, 12;
}
@supports (height: 100svh) {
    .hero { --hero-vh: 100svh; }
}
/* Slides are stacked in a single grid cell. Every slide therefore
   contributes to the container height (unlike absolute positioning, which
   would collapse it to zero) while still overlapping for the crossfade. */
.hero__viewport {
    position: relative;
    display: grid;
    grid-template-areas: "stack";
    isolation: isolate;
}
.hero__slide {
    grid-area: stack;
    position: relative;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease-in-out), visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero__media picture {
    display: block;
    width: 100%;
    height: 100%;
}
/* Ultrawide / 4K (> 2560px). The admin uploader keeps artwork at 2560px wide at
   most; past that, `cover` would upscale it (soft) and crop its height hard
   (a 5:1 ribbon). So the picture stops growing and its outer edges melt into
   the hero background instead of stretching. */
@media (min-width: 2561px) {
    .hero__media {
        inset-inline: calc((100% - 2560px) / 2);
        -webkit-mask-image: linear-gradient(to right, transparent, #000 12rem, #000 calc(100% - 12rem), transparent);
                mask-image: linear-gradient(to right, transparent, #000 12rem, #000 calc(100% - 12rem), transparent);
    }
}
.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-focus);
    /* Slow Ken-Burns zoom; paused when the slide is inactive.
       Kept shallow (max +5 %): `cover` already crops the artwork on every
       window ratio, so the zoom must not crop a lot more on top of that.
       PERF: only the active slide holds a compositor layer. */
    transform: scale(1);
    transition: transform 1.2s var(--ease-out-soft);
    will-change: auto;
}
.hero__slide.is-active .hero__img {
    animation: kenBurns 18s ease-out forwards;
    will-change: transform;
}
@keyframes kenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
}
/* Reduced motion: the global reset shortens animations to ~0 ms, which would
   jump the image straight to its END state (zoomed in) and leave it there.
   Show the plain, un-zoomed artwork instead. */
@media (prefers-reduced-motion: reduce) {
    .hero__img,
    .hero__slide.is-active .hero__img {
        animation: none;
        transform: none;
    }
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
}
@media (max-width: 991px) {
    .hero__scrim { background: var(--hero-scrim-m); }
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Height comes from the sizing system on .hero (--hero-h): fluid with the
       window width, never taller than the first screen can show, capped on
       big monitors. min-height (not height) so long admin text can still grow it. */
    min-height: var(--hero-h);
    /* The header is NOT over the banner (the top bar reserves its space), so a
       tall top padding only wasted ~96px of picture. */
    padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) clamp(3.25rem, 2rem + 5vw, 4rem);
}
/* Arrow lane. The prev/next arrows live in the page margin. Where that margin
   is too narrow to hold them (tablets and small laptops, < 1320px) the text
   column is inset by the arrow width so the arrows never sit on the headline. */
@media (min-width: 768px) and (max-width: 1319px) {
    .hero__slide .hero__inner {
        padding-inline: calc(var(--gutter) + 3.25rem);
    }
}
/* Phones: a compact "peek" hero. Short enough that the trust strip below
   is visible on first load (signals there's more, invites scrolling)
   instead of the slide filling the entire first screen. Still tall
   enough for the headline, CTA and dots to breathe. */
@media (max-width: 767px) {
    .hero__inner {
        min-height: min(52vh, 420px);
        min-height: min(52svh, 420px);
        /* top = lane for the pause button, so it never sits on the label */
        padding-block: var(--hero-lane) 2.25rem;
    }
}
/* Small phones: trim further so the hero stays a fraction of the screen */
@media (max-width: 380px) {
    .hero__inner {
        min-height: min(48vh, 380px);
        min-height: min(48svh, 380px);
        padding-block: var(--hero-lane) 2rem;
    }
}
.hero__content { max-width: 44rem; color: #fff; }
/* Desktop: a soft halo behind the text column keeps white text readable on a
   bright photo without darkening the rest of the picture. */
@media (min-width: 992px) {
    .hero__content { position: relative; }
    .hero__content::before {
        content: '';
        position: absolute;
        z-index: -1;
        inset: -3.5rem -4.5rem -2.5rem -4.5rem;
        pointer-events: none;
        background: radial-gradient(ellipse 62% 64% at 50% 52%,
            rgba(var(--hero-halo-rgb), .58) 0%,
            rgba(var(--hero-halo-rgb), .4) 55%,
            rgba(var(--hero-halo-rgb), 0) 100%);
    }
}

/* Label above the headline. The glass chip is dark (not white) so the white 12px
   text keeps >= 4.5:1 on any photo — white-on-white-glass measured 1.8:1. */
.hero .eyebrow {
    font-size: var(--hero-eyebrow-fs);
    line-height: 1.5;
    padding: .3rem .8rem;
}
.hero .eyebrow-light {
    background: rgba(10,26,19,.62);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.hero__title {
    font-size: var(--hero-title-fs);
    /* The slider renders the title as <p>, which inherited the 1.8 body leading
       (≈94px per line at 52px). Display text needs display leading. */
    line-height: var(--leading-snug);
    color: #fff;
    margin-block: .7rem .6rem;
    text-shadow: 0 2px 24px rgba(0,0,0,.4);
    /* Persian headlines wrap unpredictably — allow it, never clip */
    overflow-wrap: break-word;
    /* Break the lines evenly instead of leaving a one-word second line */
    text-wrap: balance;
}
.hero__sub {
    font-size: var(--hero-sub-fs);
    line-height: 1.6;
    color: rgba(255,255,255,.95);
    max-width: 36rem;
    margin-bottom: var(--hero-sub-mb);
    text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
/* Bounded content: the banner must not grow just because an admin typed a very
   long headline or lead. Phones show at most 5 lines of each (enough for normal
   text even at 200% text size, WCAG 1.4.4); tablet and up 3 and 3. */
.hero__title,
.hero__sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero__title,
.hero__sub { -webkit-line-clamp: 5; line-clamp: 5; }
@media (min-width: 768px) {
    .hero__title,
    .hero__sub { -webkit-line-clamp: 3; line-clamp: 3; }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
/* Both buttons use the hero scale instead of the global .btn-lg (55px tall). */
.hero__actions .btn {
    --btn-py: .5rem;
    --btn-px: var(--hero-btn-px);
    flex: 0 1 auto;
    min-height: var(--hero-btn-h);
    font-size: var(--hero-btn-fs);
}
/* Orange button: the brand gradient is too light for white text (2.1:1 at the
   amber end; WCAG AA needs 4.5:1). Near-black text gives 5:1+ on the whole
   gradient and keeps the brand colours. */
.hero__actions .btn-secondary,
.hero__actions .btn-secondary:hover { color: var(--hero-cta-fg); }
/* Small phones: the two buttons share one row when both fit, otherwise they
   wrap and each takes the full width. */
@media (max-width: 480px) {
    .hero__actions .btn { flex: 1 1 auto; }
}

/* Slide text entrance */
.hero__slide.is-active .hero__anim {
    animation: heroIn .9s var(--ease-out-soft) both;
}
.hero__slide.is-active .hero__anim:nth-child(1) { animation-delay: .1s; }
.hero__slide.is-active .hero__anim:nth-child(2) { animation-delay: .22s; }
.hero__slide.is-active .hero__anim:nth-child(3) { animation-delay: .34s; }
.hero__slide.is-active .hero__anim:nth-child(4) { animation-delay: .46s; }
@keyframes heroIn {
    from { opacity: 0; transform: translate3d(0, 26px, 0); }
    to   { opacity: 1; transform: none; }
}

/* Controls */
.hero__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius-full);
    background: rgba(0,0,0,.28);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
    opacity: .8;
}
.hero__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.hero__nav:hover { background: rgba(0,0,0,.5); opacity: 1; }
.hero__nav:active { transform: translateY(-50%) scale(.92); }
.hero__nav--prev { inset-inline-start: var(--hero-edge); }
.hero__nav--next { inset-inline-end: var(--hero-edge); }
/* On phones the arrows would sit on top of the caption text — swipe and the
   dots are the primary controls there, so the arrows are hidden instead. */
@media (max-width: 767px) {
    .hero__nav { display: none; }
}

.hero__dots {
    position: absolute;
    z-index: 4;
    bottom: clamp(1rem, .6rem + 1.4vw, 1.6rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .45rem;
}
@media (max-width: 380px) {
    .hero__dots {
        bottom: 0.75rem;
        gap: .35rem;
    }
}
.hero__dot {
    width: 9px; height: 9px;
    border: 0;
    padding: 0;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.42);
    cursor: pointer;
    transition: width var(--t-base), background var(--t-base);
    position: relative;
}
/* Expand the touch target without changing layout */
.hero__dot::before {
    content: '';
    position: absolute;
    inset: -10px;
}
.hero__dot.is-active {
    width: 28px;
    background: #fff;
}

.hero__playpause {
    position: absolute;
    z-index: 4;
    top: clamp(.8rem, .5rem + 1vw, 1.2rem);
    inset-inline-start: calc(var(--hero-frame) + clamp(.8rem, .5rem + 1vw, 1.2rem));
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: var(--radius-full);
    background: rgba(0,0,0,.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    opacity: .7;
    transition: opacity var(--t-fast), background var(--t-fast);
}
.hero__playpause:hover { opacity: 1; }
/* The 34px circle looks right, but a fingertip needs ~44px: the hit area grows invisibly
   (32px padding box + 2 x 6px = 44px; WCAG 2.5.5 / Apple HIG). */
.hero__playpause::after { content: ''; position: absolute; inset: -6px; }
.hero__playpause svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.hero__playpause .i-play { display: none; }
.hero__playpause[aria-pressed="false"] .i-play { display: block; }
.hero__playpause[aria-pressed="false"] .i-pause { display: none; }

/* Scroll cue */
.hero__cue {
    position: absolute;
    z-index: 4;
    bottom: clamp(2.6rem, 2rem + 2vw, 3.4rem);
    inset-inline-end: var(--hero-edge);
    display: none;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.8);
    font-size: var(--text-xs);
    font-weight: 600;
}
@media (min-width: 992px) { .hero__cue { display: flex; } }
.hero__cue-track {
    width: 22px; height: 34px;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: var(--radius-full);
    position: relative;
}
.hero__cue-track::after {
    content: '';
    position: absolute;
    inset-inline-start: 50%;
    top: 6px;
    width: 3px; height: 7px;
    border-radius: 2px;
    background: #fff;
    transform: translateX(-50%);
    animation: cueScroll 1.8s var(--ease-in-out) infinite;
}
@keyframes cueScroll {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50%      { transform: translate(-50%, 12px); opacity: .3; }
}

/* Hero fallback (no slides in DB) */
.hero--fallback { background: var(--grad-forest); }
.hero--fallback .hero__inner { justify-content: center; text-align: center; }
.hero--fallback .hero__content { margin-inline: auto; }
.hero--fallback .hero__actions { justify-content: center; }

/* ══════════════════════════════════════════════════════════════════════════
   11. INNER PAGE HERO
   ══════════════════════════════════════════════════════════════════════════ */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--grad-forest);
    color: #fff;
    padding-block: clamp(2.25rem, 1.5rem + 4vw, 4.25rem);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, rgba(19,48,38,.9), rgba(37,87,62,.82));
}
/* Decorative arcs */
.page-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 34vmax; height: 34vmax;
    border-radius: 50%;
    inset-inline-end: -12vmax;
    top: -16vmax;
    background: radial-gradient(circle, rgba(232,168,56,.2), transparent 65%);
    pointer-events: none;
}
.page-hero__inner { position: relative; text-align: center; }
.page-hero__title {
    font-size: var(--text-4xl);
    color: #fff;
    margin-block: .5rem .55rem;
    text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.page-hero__sub {
    font-size: var(--text-md);
    color: rgba(255,255,255,.9);
    max-width: 42rem;
    margin-inline: auto;
    line-height: var(--leading-body);
}

/* Breadcrumb */
.crumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: var(--text-xs);
    font-weight: 600;
}
.crumbs a { color: rgba(255,255,255,.82); }
.crumbs a:hover { color: #fff; }
.crumbs__sep { opacity: .5; }
.crumbs__current { color: var(--accent-light); }

/* On-page (light background) breadcrumb variant */
.crumbs--page { justify-content: flex-start; margin-bottom: var(--space-md); }
.crumbs--page a { color: var(--text-muted); }
.crumbs--page a:hover { color: var(--primary-dark); }
.crumbs--page .crumbs__current { color: var(--primary-dark); }

/* ══════════════════════════════════════════════════════════════════════════
   12. TRUST STRIP
   ══════════════════════════════════════════════════════════════════════════ */
.trust {
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.trust__grid {
    display: grid;
    /* 2 columns on phones (never a lonely orphan), 4 from tablet up */
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
}
@media (min-width: 768px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }

.trust__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: clamp(.85rem, .7rem + .6vw, 1.15rem) .6rem;
    background: var(--surface);
    text-align: start;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text);
    transition: background var(--t-fast);
}
.trust__item:hover { background: var(--surface-2); }
.trust__icon {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--primary-faint);
    color: var(--primary);
}
.trust__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.trust__item:nth-child(2) .trust__icon { background: var(--secondary-faint); color: var(--secondary); }
.trust__item:nth-child(3) .trust__icon { background: var(--accent-light); color: var(--accent-dark); }
.trust__item:nth-child(4) .trust__icon { background: rgba(212,160,160,.2); color: var(--rose-400); }
@media (max-width: 480px) {
    .trust__item { flex-direction: column; text-align: center; gap: .4rem; font-size: var(--text-2xs); }
}

/* ══════════════════════════════════════════════════════════════════════════
   13. FEATURE / SERVICE CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: clamp(.85rem, .7rem + .8vw, 1.5rem);
}
.feature {
    padding: clamp(1.15rem, .95rem + .9vw, 1.85rem);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
/* Top accent bar that draws in on hover */
.feature::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--t-slow);
}
@media (hover: hover) { .feature:hover::after { transform: scaleX(1); } }

.feature__icon {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: var(--radius-md);
    background: var(--primary-faint);
    color: var(--primary);
    margin-bottom: .3rem;
    transition: transform var(--t-base), background var(--t-base);
}
.feature__icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (hover: hover) {
    .feature:hover .feature__icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
}
.feature:nth-child(2n) .feature__icon { background: var(--secondary-faint); color: var(--secondary); }
.feature:nth-child(3n) .feature__icon { background: var(--accent-light); color: var(--accent-dark); }
.feature:nth-child(5n) .feature__icon { background: rgba(91,141,184,.14); color: var(--info); }

.feature__title { font-size: var(--text-lg); color: var(--ink); }
.feature__text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-body);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   14. STATS
   ══════════════════════════════════════════════════════════════════════════ */
.stats {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--grad-forest);
    color: #fff;
}
/* Subtle moving stripe texture */
.stats::before {
    content: '';
    position: absolute;
    inset: -50%;
    z-index: -1;
    opacity: .09;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255,255,255,.7) 0 1px,
        transparent 1px 22px);
    animation: stripeDrift 26s linear infinite;
}
@keyframes stripeDrift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-22%, 0, 0); }
}
.stats::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-start: -8vmax;
    bottom: -14vmax;
    width: 32vmax; height: 32vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,168,56,.22), transparent 65%);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, .8rem + 1vw, 2rem);
}
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

.stat { text-align: center; }
.stat__icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    margin-inline: auto;
    margin-bottom: .5rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.12);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.stat__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.stat__num {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    font-variant-numeric: tabular-nums;
    display: block;
}
.stat__label {
    font-size: var(--text-sm);
    color: rgba(255,255,255,.82);
    font-weight: 500;
    margin-top: .15rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   15. CLASS CARDS (age groups)
   ══════════════════════════════════════════════════════════════════════════ */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(1rem, .8rem + 1vw, 1.75rem);
}
.class-card { display: flex; flex-direction: column; }
.class-card__head {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(1.4rem, 1.1rem + 1.4vw, 2.25rem) 1rem;
    overflow: hidden;
}
.class-card__head--green { background: linear-gradient(140deg, var(--green-100), var(--green-50)); }
.class-card__head--clay  { background: linear-gradient(140deg, var(--clay-100), var(--clay-50)); }
.class-card__head--sky   { background: linear-gradient(140deg, var(--sky-200), #EDF4F9); }
[data-theme="dark"] .class-card__head--green { background: linear-gradient(140deg, rgba(95,180,137,.2), rgba(95,180,137,.07)); }
[data-theme="dark"] .class-card__head--clay  { background: linear-gradient(140deg, rgba(219,144,104,.2), rgba(219,144,104,.07)); }
[data-theme="dark"] .class-card__head--sky   { background: linear-gradient(140deg, rgba(127,174,210,.2), rgba(127,174,210,.07)); }

/* Dotted texture inside the card head */
.class-card__head::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23ffffff' opacity='.6'/%3E%3C/svg%3E");
    background-size: 18px 18px;
}
.class-card__icon { position: relative; }
.class-card__icon svg { width: 46px; height: 46px; fill: none; stroke-width: 1.6; }
.class-card__head--green .class-card__icon { color: var(--green-500); }
.class-card__head--clay  .class-card__icon { color: var(--clay-500); }
.class-card__head--sky   .class-card__icon { color: var(--sky-500); }
@media (hover: hover) {
    .class-card:hover .class-card__icon { animation: iconBob 1.1s var(--ease-in-out); }
}
@keyframes iconBob {
    0%, 100% { transform: translateY(0) rotate(0); }
    30%      { transform: translateY(-7px) rotate(-7deg); }
    60%      { transform: translateY(-2px) rotate(4deg); }
}

.class-card__body {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: clamp(1.1rem, .9rem + .8vw, 1.6rem);
    flex: 1;
}
.class-card__title { font-size: var(--text-xl); color: var(--ink); }
.class-card__text { font-size: var(--text-sm); color: var(--text-muted); margin: 0; }
.class-card__list { display: grid; gap: .45rem; margin-top: .3rem; }
.class-card__list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
}
.class-card__list svg {
    width: 17px; height: 17px;
    flex-shrink: 0;
    margin-top: .22em;
    color: var(--primary);
    fill: none; stroke: currentColor; stroke-width: 2.4;
}
.class-card__foot {
    margin-top: auto;
    padding-top: var(--space-md);
}

/* Capacity meter */
.meter { margin-top: .3rem; }
.meter__head {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: var(--text-xs);
    font-weight: 700;
    margin-bottom: .35rem;
}
.meter__track {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--surface-sunken);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.meter__fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--grad-earth);
    width: 0;
    transition: width 1.4s var(--ease-out-soft);
}
.meter__fill--green { background: var(--grad-primary); }
/* No-JS fallback: honour the inline --w immediately */
html:not(.js-reveal) .meter__fill { width: var(--w, 0); }

/* ══════════════════════════════════════════════════════════════════════════
   16. ABOUT / SPLIT SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.split {
    display: grid;
    gap: clamp(1.5rem, 1.2rem + 2vw, 3.25rem);
    align-items: center;
}
@media (min-width: 992px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .split--wide-start { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .split--wide-end   { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
/* Grid children must be shrinkable or long Persian words force overflow */
.split > * { min-width: 0; }

.split__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); }
.split__title { font-size: var(--text-3xl); color: var(--ink); }
.split__text { font-size: var(--text-md); color: var(--text-muted); line-height: var(--leading-body); margin: 0; }

/* Media frame with layered decoration */
/* isolation keeps the ::before/::after plates (z-index: -1) inside this
   element's own stacking context so a parent's reveal transform collapsing
   (transform → none) can never drop them behind a section background. */
.split__media { position: relative; isolation: isolate; }
.frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-2);
}
.frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 1s var(--ease-out-soft);
}
@media (hover: hover) { .frame:hover img { transform: scale(1.05); } }

/* Offset colour plate behind the frame */
.split__media::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-end: -14px;
    top: -14px;
    width: 62%;
    height: 62%;
    border-radius: var(--radius-xl);
    background: var(--grad-earth);
    opacity: .18;
}
.split__media::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-start: -16px;
    bottom: -16px;
    width: 46%;
    height: 46%;
    border-radius: var(--radius-xl);
    background: var(--grad-primary);
    opacity: .14;
}

/* Floating stat chip over the image */
.frame__chip {
    position: absolute;
    inset-inline-start: clamp(.7rem, .5rem + 1vw, 1.15rem);
    bottom: clamp(.7rem, .5rem + 1vw, 1.15rem);
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .frame__chip { background: rgba(255,255,255,.94); }
    [data-theme="dark"] .frame__chip { background: rgba(20,37,30,.94); }
}
.frame__chip-icon {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    background: var(--primary-faint);
    color: var(--primary);
    flex-shrink: 0;
}
.frame__chip-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.frame__chip-num { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--ink); line-height: 1.1; }
.frame__chip-label { font-size: var(--text-2xs); color: var(--text-muted); }

/* Bullet list with check icons */
.check-list { display: grid; gap: .65rem; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: var(--text-sm);
    color: var(--text);
    line-height: var(--leading-snug);
}
.check-list svg {
    width: 19px; height: 19px;
    flex-shrink: 0;
    margin-top: .18em;
    color: var(--primary);
    fill: none; stroke: currentColor; stroke-width: 2.4;
}

/* ══════════════════════════════════════════════════════════════════════════
   17. PILLARS (numbered dark cards)
   ══════════════════════════════════════════════════════════════════════════ */
.pillars {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: var(--ink-night);
    color: #fff;
    padding: clamp(1.6rem, 1.2rem + 2.4vw, 3.25rem);
    box-shadow: var(--shadow-xl);
}
.pillars::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-end: -10vmax;
    top: -12vmax;
    width: 30vmax; height: 30vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,168,56,.2), transparent 65%);
}
.pillars__head { text-align: center; margin-bottom: clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem); }
.pillars__title { font-size: var(--text-3xl); color: #fff; margin-bottom: .4rem; }
.pillars__sub { color: rgba(255,255,255,.78); font-size: var(--text-md); }

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(.9rem, .75rem + .8vw, 1.5rem);
}
.pillar {
    position: relative;
    padding: clamp(1.1rem, .9rem + .8vw, 1.6rem);
    border-radius: var(--radius-lg);
    background: var(--ink-night-2);
    border: 1px solid rgba(255,255,255,.09);
    overflow: hidden;
    transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}
@media (hover: hover) {
    .pillar:hover { transform: translateY(-5px); border-color: rgba(232,168,56,.34); background: #234A3A; }
}
.pillar__num {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    opacity: .95;
    margin-bottom: .35rem;
}
.pillar__title { font-size: var(--text-lg); color: #fff; margin-bottom: .45rem; }
.pillar__text { font-size: var(--text-sm); color: rgba(255,255,255,.82); line-height: var(--leading-body); margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   18. TESTIMONIALS
   ══════════════════════════════════════════════════════════════════════════ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(1rem, .8rem + 1vw, 1.65rem);
}
.quote {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: clamp(1.2rem, 1rem + .9vw, 1.85rem);
}
/* Big decorative quote glyph */
.quote::before {
    content: '”';
    position: absolute;
    z-index: -1;
    top: -.35em;
    inset-inline-start: .3em;
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    color: var(--primary);
    opacity: .07;
    pointer-events: none;
}
.quote__stars { display: flex; gap: .12rem; color: var(--accent); }
.quote__stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.quote__text {
    font-size: var(--text-md);
    line-height: var(--leading-body);
    color: var(--text);
    margin: 0;
    flex: 1;
}
.quote__author { display: flex; align-items: center; gap: .7rem; padding-top: var(--space-sm); border-top: 1px solid var(--border); }
.quote__avatar {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 800;
}
.quote:nth-child(2n) .quote__avatar { background: var(--grad-earth); }
.quote:nth-child(3n) .quote__avatar { background: linear-gradient(135deg, var(--sky-500), var(--sky-400)); }
.quote__name { font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.quote__role { font-size: var(--text-xs); color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   19. GALLERY + LIGHTBOX
   ══════════════════════════════════════════════════════════════════════════ */
.gallery-filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: .45rem;
    margin-bottom: var(--space-lg);
    /* Horizontal scroll on phones instead of a broken wrap */
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
    scroll-snap-type: x proximity;
}
.gallery-filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .gallery-filters { flex-wrap: wrap; justify-content: center; overflow: visible; } }

.chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: .48rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--primary-light); color: var(--primary-dark); }
.chip.is-active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-green);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(.5rem, .4rem + .5vw, .9rem);
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery__item {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-2);
    cursor: zoom-in;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-base), box-shadow var(--t-base), opacity var(--t-base);
}
/* Feature the first tile on larger screens */
@media (min-width: 640px) {
    .gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
}
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out-soft);
}
@media (hover: hover) {
    .gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
    .gallery__item:hover img { transform: scale(1.08); }
}
.gallery__cap {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.6rem .7rem .55rem;
    background: linear-gradient(to top, rgba(19,48,38,.86), transparent);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t-base), transform var(--t-base);
}
@media (hover: hover) {
    .gallery__item:hover .gallery__cap { opacity: 1; transform: none; }
}
@media (hover: none) { .gallery__cap { opacity: 1; transform: none; } }

/* Filtering state */
.gallery__item.is-filtered {
    opacity: 0;
    transform: scale(.92);
    pointer-events: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-lightbox);
    display: grid;
    place-items: center;
    padding: var(--gutter);
    background: rgba(8,18,14,.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure {
    max-width: min(92vw, 1100px);
    max-height: 84vh;
    transform: scale(.94);
    transition: transform .4s var(--ease-out-soft);
    text-align: center;
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__img {
    max-width: 100%;
    max-height: 76vh;
    width: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-inline: auto;
}
.lightbox__cap { margin-top: .7rem; color: rgba(255,255,255,.88); font-size: var(--text-sm); font-weight: 600; }
.lightbox__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.1);
    color: #fff;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__btn:active { transform: scale(.92); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.lightbox__close { top: var(--gutter); inset-inline-end: var(--gutter); }
.lightbox__prev { top: 50%; inset-inline-start: var(--gutter); transform: translateY(-50%); }
.lightbox__next { top: 50%; inset-inline-end: var(--gutter); transform: translateY(-50%); }
.lightbox__prev:active, .lightbox__next:active { transform: translateY(-50%) scale(.92); }
@media (max-width: 640px) {
    .lightbox__btn { width: 40px; height: 40px; }
    .lightbox__prev { inset-inline-start: .4rem; }
    .lightbox__next { inset-inline-end: .4rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   20. FAQ ACCORDION
   ══════════════════════════════════════════════════════════════════════════ */
.faq { display: grid; gap: .6rem; }
.faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq__item[open] { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: clamp(.85rem, .75rem + .4vw, 1.15rem) clamp(.9rem, .8rem + .5vw, 1.3rem);
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    transition: background var(--t-fast), color var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--surface-2); color: var(--primary-dark); }
.faq__item[open] .faq__q { color: var(--primary-dark); }
.faq__q svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--primary);
    fill: none; stroke: currentColor; stroke-width: 2.4;
    transition: transform var(--t-base);
}
.faq__item[open] .faq__q svg { transform: rotate(180deg); }
.faq__a {
    padding: 0 clamp(.9rem, .8rem + .5vw, 1.3rem) clamp(.9rem, .8rem + .5vw, 1.25rem);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
    color: var(--text-muted);
}
.faq__a a { font-weight: 700; }
/* Smooth open animation */
.faq__item[open] .faq__a { animation: faqOpen .34s var(--ease-out-soft); }
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   21. TABS
   ══════════════════════════════════════════════════════════════════════════ */
.tabs {
    position: relative;
    display: flex;
    gap: .3rem;
    margin-bottom: var(--space-xl);
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .tabs { justify-content: center; overflow: visible; } }

.tab {
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: center;
    padding: .65rem 1.1rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: color var(--t-fast), background var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}
.tab:hover { color: var(--primary-dark); background: var(--surface-2); }
.tab.is-active { color: var(--primary-dark); }
.tab.is-active::after {
    content: '';
    position: absolute;
    inset-inline: .5rem;
    bottom: -.3rem;
    height: 3px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panelIn .45s var(--ease-out-soft); }
@keyframes panelIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   22. TIMELINE
   ══════════════════════════════════════════════════════════════════════════ */
.timeline {
    position: relative;
    padding-inline-start: 1.85rem;
}
.timeline::before {
    content: '';
    position: absolute;
    inset-inline-start: 6px;
    top: .4rem;
    bottom: .4rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: .35;
}
.timeline__item { position: relative; padding-bottom: var(--space-lg); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
    content: '';
    position: absolute;
    inset-inline-start: calc(-1.85rem + 1px);
    top: .5rem;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px var(--primary-faint);
    transition: transform var(--t-base), background var(--t-base);
}
@media (hover: hover) {
    .timeline__item:hover::before { transform: scale(1.25); background: var(--primary); }
}
.timeline__time {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 800;
    color: var(--primary-dark);
    background: var(--primary-faint);
    padding: .18rem .6rem;
    border-radius: var(--radius-full);
    margin-bottom: .3rem;
}
.timeline__title { font-size: var(--text-md); font-weight: 700; color: var(--ink); font-family: var(--font-base); line-height: var(--leading-snug); }
.timeline__desc { font-size: var(--text-sm); color: var(--text-muted); margin-top: .2rem; line-height: var(--leading-body); }

/* ══════════════════════════════════════════════════════════════════════════
   23. NEWS
   ══════════════════════════════════════════════════════════════════════════ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(1rem, .8rem + 1vw, 1.65rem);
}
.news-card { display: flex; flex-direction: column; }
.news-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
    flex-shrink: 0;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out-soft); }
@media (hover: hover) { .news-card:hover .news-card__media img { transform: scale(1.06); } }
.news-card__cat {
    position: absolute;
    top: .6rem;
    inset-inline-start: .6rem;
    z-index: 2;
}
.news-card__body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: clamp(1rem, .85rem + .6vw, 1.4rem);
    flex: 1;
}
.news-card__date {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: var(--text-xs);
    color: var(--text-faint);
    font-weight: 600;
}
.news-card__date svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.news-card__title {
    font-size: var(--text-lg);
    color: var(--ink);
    font-family: var(--font-base);
    font-weight: 700;
    line-height: var(--leading-snug);
    /* Keep card heights even */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card:hover .news-card__title { color: var(--primary-dark); }
.news-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-body);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__more {
    margin-top: auto;
    padding-top: var(--space-sm);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--primary-dark);
}
.news-card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform var(--t-base); }
.news-card:hover .news-card__more svg { transform: translateX(-4px); }
[dir="ltr"] .news-card:hover .news-card__more svg { transform: translateX(4px); }

/* Single news article */
.article { max-width: 52rem; margin-inline: auto; }
.article__head { margin-bottom: var(--space-lg); }
.article__title { font-size: var(--text-3xl); color: var(--ink); margin-block: .5rem .6rem; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; }
.article__meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.article__meta-item svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.article__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}
.article__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__body {
    font-size: var(--text-md);
    line-height: var(--leading-loose);
    color: var(--text);
}
.article__body p { margin-bottom: var(--space-md); }
.article__body h2, .article__body h3 { margin-block: var(--space-lg) var(--space-sm); }
.article__body ul, .article__body ol { margin: 0 0 var(--space-md); padding-inline-start: 1.25rem; }
.article__body ul li { list-style: disc; margin-bottom: .35rem; }
.article__body ol li { list-style: decimal; margin-bottom: .35rem; }
.article__body img { border-radius: var(--radius-md); margin-block: var(--space-md); }
.article__body blockquote {
    margin: var(--space-lg) 0;
    padding: var(--space-md) var(--space-lg);
    border-inline-start: 4px solid var(--primary);
    background: var(--surface-2);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}

/* Share row */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--border); }
.share__label { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); }
.share__btn {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
    cursor: pointer;
}
.share__btn svg { width: 17px; height: 17px; fill: currentColor; }
.share__btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════════════════
   24. PAGINATION
   ══════════════════════════════════════════════════════════════════════════ */
.pagination { margin-top: var(--space-xl); }
.pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .35rem;
}
.pagination-link {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding-inline: .7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 700;
    transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.pagination-link:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-faint); }
.pagination-link.is-current {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-green);
}
.pagination-link.is-disabled { opacity: .4; pointer-events: none; }
.pagination-ellipsis { padding-inline: .3rem; color: var(--text-faint); }

/* ══════════════════════════════════════════════════════════════════════════
   25. FORMS
   ══════════════════════════════════════════════════════════════════════════ */
.field { display: grid; gap: .35rem; }
.field__label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--ink);
}
.field__req { color: var(--danger); }
.field__hint { font-size: var(--text-xs); color: var(--text-faint); }

.form-control {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    /* 16px min on mobile prevents iOS Safari auto-zoom on focus */
    font-size: max(16px, var(--text-sm));
    line-height: 1.6;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    appearance: none;
}
@media (min-width: 768px) { .form-control { font-size: var(--text-sm); } }
.form-control::placeholder { color: var(--text-faint); }
.form-control:hover { border-color: var(--border-strong); }
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F7269' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left .8rem center;
    background-size: 16px;
    padding-inline-start: 2.2rem;
}
[dir="ltr"] select.form-control { background-position: right .8rem center; }
[data-theme="dark"] select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239BB0A6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.form-grid { display: grid; gap: var(--space-md); }
.form-row { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }

.alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: var(--leading-snug);
    border: 1px solid transparent;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .1em; fill: none; stroke: currentColor; stroke-width: 2; }
.alert-success { background: var(--primary-faint); color: var(--primary-dark); border-color: var(--primary-light); }
.alert-danger  { background: rgba(200,90,90,.1); color: var(--danger); border-color: rgba(200,90,90,.4); }
.alert-info    { background: rgba(91,141,184,.1); color: var(--info); border-color: rgba(91,141,184,.35); }
.alert-warning { background: var(--accent-light); color: var(--accent-dark); border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════════
   26. CTA BANNER
   ══════════════════════════════════════════════════════════════════════════ */
.cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--grad-forest);
    color: #fff;
    padding-block: clamp(2.5rem, 1.8rem + 4vw, 4.5rem);
}
.cta::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -50%;
    opacity: .1;
    background-image: repeating-linear-gradient(65deg, rgba(255,255,255,.6) 0 1px, transparent 1px 26px);
    animation: stripeDrift 32s linear infinite reverse;
}
.cta::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-end: -10vmax;
    bottom: -14vmax;
    width: 34vmax; height: 34vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,168,56,.22), transparent 65%);
}
.cta__inner { position: relative; text-align: center; max-width: 46rem; margin-inline: auto; }
.cta__title { font-size: var(--text-3xl); color: #fff; margin-block: .6rem .6rem; }
.cta__text { font-size: var(--text-md); color: rgba(255,255,255,.9); line-height: var(--leading-body); margin-bottom: var(--space-lg); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
@media (max-width: 480px) {
    .cta__actions { flex-direction: column; }
    .cta__actions .btn { width: 100%; }
}
/* Mascot */
.cta__mascot {
    position: absolute;
    bottom: -6px;
    inset-inline-start: clamp(.5rem, 2vw, 3rem);
    width: clamp(70px, 9vw, 120px);
    opacity: .9;
    pointer-events: none;
    animation: mascotBob 4s var(--ease-in-out) infinite;
}
@keyframes mascotBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-10px) rotate(3deg); }
}
@media (max-width: 900px) { .cta__mascot { display: none; } }

/* ══════════════════════════════════════════════════════════════════════════
   27. NEWSLETTER
   ══════════════════════════════════════════════════════════════════════════ */
.newsletter {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: clamp(1.5rem, 1.2rem + 2vw, 3rem);
    text-align: center;
}
.newsletter::before {
    content: '';
    position: absolute;
    inset-inline-end: -8vmax;
    top: -10vmax;
    width: 24vmax; height: 24vmax;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-faint), transparent 68%);
    pointer-events: none;
}
.newsletter__icon {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    margin-inline: auto;
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-lg);
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-green);
}
.newsletter__icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2; }
.newsletter__title { font-size: var(--text-2xl); color: var(--ink); margin-bottom: .4rem; }
.newsletter__text { font-size: var(--text-sm); color: var(--text-muted); max-width: 34rem; margin-inline: auto; margin-bottom: var(--space-lg); }
.newsletter__form {
    display: grid;
    gap: .6rem;
    max-width: 40rem;
    margin-inline: auto;
}
@media (min-width: 640px) {
    .newsletter__form { grid-template-columns: 1fr 1fr auto; align-items: center; }
}
.newsletter__toast {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    display: none;
}
.newsletter__toast.is-success { display: block; background: var(--primary-faint); color: var(--primary-dark); }
.newsletter__toast.is-error   { display: block; background: rgba(200,90,90,.12); color: var(--danger); }

/* ══════════════════════════════════════════════════════════════════════════
   28. TEAM
   ══════════════════════════════════════════════════════════════════════════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: clamp(.9rem, .75rem + .8vw, 1.5rem);
}
.person { text-align: center; padding: clamp(1.1rem, .9rem + .8vw, 1.6rem); }
.person__photo {
    position: relative;
    width: clamp(88px, 22vw, 110px);
    aspect-ratio: 1;
    margin-inline: auto;
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--primary-faint);
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--primary-faint);
    transition: box-shadow var(--t-base), transform var(--t-base);
}
@media (hover: hover) {
    .person:hover .person__photo { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--surface), 0 0 0 7px var(--primary-light); }
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-dark);
}
.person:nth-child(2n) .person__photo { background: var(--secondary-faint); box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--secondary-faint); }
.person:nth-child(2n) .person__initials { color: var(--secondary-dark); }
.person:nth-child(3n) .person__photo { background: var(--accent-light); box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent-light); }
.person:nth-child(3n) .person__initials { color: var(--accent-dark); }
.person__name { font-size: var(--text-md); font-family: var(--font-base); font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.person__role { margin-bottom: .45rem; }
.person__bio { font-size: var(--text-xs); color: var(--text-muted); line-height: var(--leading-body); margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   29. INFO / CONTACT CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.info-card { padding: clamp(1.2rem, 1rem + .9vw, 1.85rem); }
.info-card__head { display: flex; align-items: center; gap: .65rem; margin-bottom: var(--space-md); }
.info-card__icon {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--primary-faint);
    color: var(--primary);
}
.info-card__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.info-card__icon--clay { background: var(--secondary-faint); color: var(--secondary); }
.info-card__icon--accent { background: var(--accent-light); color: var(--accent-dark); }
.info-card__title { font-size: var(--text-lg); font-family: var(--font-base); font-weight: 700; color: var(--ink); }
.info-card__text { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-body); margin: 0; }

.map-frame {
    width: 100%;
    height: clamp(200px, 34vw, 280px);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: var(--space-md);
    background: var(--surface-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.hours tr { border-bottom: 1px solid var(--border); }
.hours tr:last-child { border-bottom: 0; }
.hours th, .hours td { padding: .65rem .2rem; text-align: start; }
.hours th { font-weight: 600; color: var(--text); }
.hours td { text-align: end; font-weight: 700; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.hours .is-closed { color: var(--danger); }

/* ══════════════════════════════════════════════════════════════════════════
   30. EMPTY STATE
   ══════════════════════════════════════════════════════════════════════════ */
.empty { text-align: center; padding-block: var(--space-2xl); }
.empty__art { display: block; width: clamp(96px, 26vw, 140px); height: auto; margin-inline: auto; margin-bottom: var(--space-md); opacity: .9; color: inherit; }
.empty__title { font-size: var(--text-2xl); color: var(--ink); margin-bottom: .5rem; }
.empty__text { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-lg); }

/* ══════════════════════════════════════════════════════════════════════════
   31. FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
    position: relative;
    background: var(--ink-night);
    color: rgba(255,255,255,.78);
    padding-top: clamp(2.25rem, 1.7rem + 3vw, 3.75rem);
    font-size: var(--text-sm);
    overflow: hidden;
    isolation: isolate;
}
.site-footer::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-start: -10vmax;
    top: -12vmax;
    width: 28vmax; height: 28vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61,139,99,.28), transparent 66%);
}
.site-footer__grid {
    display: grid;
    gap: clamp(1.5rem, 1.2rem + 1.6vw, 2.75rem);
    padding-bottom: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
}
@media (min-width: 700px)  { .site-footer__grid { grid-template-columns: 1.4fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.6fr .9fr .9fr 1.2fr; } }

.site-footer__title {
    font-family: var(--font-base);
    font-size: var(--text-md);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: .5rem;
}
.site-footer__title::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 28px; height: 2px;
    border-radius: 2px;
    background: var(--accent);
}
.site-footer__brand { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--space-sm); }
.site-footer__brand-name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: #fff; }
.site-footer__about { line-height: var(--leading-body); margin-bottom: var(--space-md); color: rgba(255,255,255,.72); }
.site-footer__tagline {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--accent-light);
}

.site-footer__nav { display: grid; gap: .55rem; }
.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255,255,255,.75);
    transition: color var(--t-fast), transform var(--t-fast);
}
.site-footer__nav a::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: .6;
    transition: opacity var(--t-fast), transform var(--t-fast);
}
.site-footer__nav a:hover { color: #fff; transform: translateX(-4px); }
[dir="ltr"] .site-footer__nav a:hover { transform: translateX(4px); }
.site-footer__nav a:hover::before { opacity: 1; transform: scale(1.4); }

.site-footer__contacts { display: grid; gap: .7rem; }
.site-footer__contact { display: flex; align-items: flex-start; gap: .55rem; color: rgba(255,255,255,.75); line-height: var(--leading-snug); }
.site-footer__contact svg {
    width: 17px; height: 17px;
    flex-shrink: 0;
    margin-top: .2em;
    color: var(--primary-light);
    fill: none; stroke: currentColor; stroke-width: 2;
}
a.site-footer__contact:hover { color: #fff; }

.site-footer__socials { display: flex; gap: .5rem; margin-top: var(--space-md); }
.site-footer__social {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.82);
    transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.site-footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.site-footer__social:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-green); }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding-block: var(--space-md);
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: var(--text-xs);
    color: rgba(255,255,255,.6);
}
@media (max-width: 600px) { .site-footer__bottom { justify-content: center; text-align: center; } }
.site-footer__credit-name { color: var(--accent-light); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   32. BACK TO TOP
   ══════════════════════════════════════════════════════════════════════════ */
.to-top {
    position: fixed;
    z-index: calc(var(--z-header) - 1);
    inset-inline-end: clamp(.75rem, 2vw, 1.5rem);
    bottom: calc(.75rem + env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.9);
    transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), background var(--t-base);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .to-top { background: rgba(255,255,255,.94); }
    [data-theme="dark"] .to-top { background: rgba(20,37,30,.94); }
}
@media (min-width: 992px) { .to-top { bottom: clamp(1rem, 2.5vw, 2rem); } }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* Progress ring around the button — must trace the button's circle exactly,
   so it needs higher specificity than `.to-top svg` (which sizes the icon). */
.to-top svg.to-top__ring {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    transform: rotate(-90deg);
    pointer-events: none;
}
.to-top svg.to-top__ring circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: .8;
    transition: stroke-dashoffset .1s linear;
}

/* ══════════════════════════════════════════════════════════════════════════
   33. CMS PAGE CONTENT
   ══════════════════════════════════════════════════════════════════════════ */
.prose {
    font-size: var(--text-md);
    line-height: var(--leading-loose);
    color: var(--text);
    max-width: 52rem;
}
.prose > * + * { margin-top: var(--space-md); }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-xl); }
.prose h3 { font-size: var(--text-xl); margin-top: var(--space-lg); }
.prose a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose ul li { list-style: disc; margin-inline-start: 1.25rem; }
.prose ol li { list-style: decimal; margin-inline-start: 1.25rem; }

/* ══════════════════════════════════════════════════════════════════════════
   34. PAGE TRANSITION
   ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
    html.page-entering .site-main { animation: pageIn .5s var(--ease-out-soft) both; }
    @keyframes pageIn {
        from { opacity: 0; transform: translateY(10px); }
        to   { opacity: 1; transform: none; }
    }
    html.page-leaving body { opacity: .35; transition: opacity .16s ease-out; }
}

/* ══════════════════════════════════════════════════════════════════════════
   34b. PERF — off-screen pause for infinite decor (toggled by rooma.js)
   Same visuals while visible; zero compositor wake-ups while scrolled past.
   ══════════════════════════════════════════════════════════════════════════ */
.hero__viewport.is-offscreen .hero__img,
.hero__viewport.is-offscreen .hero__anim,
.hero__viewport.is-offscreen .hero__cue-track::after,
.slider.is-offscreen .slide.is-active img,
.slider.is-offscreen .slide.is-active .slide-caption > * {
    animation-play-state: paused !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   35. PRINT
   ══════════════════════════════════════════════════════════════════════════ */
@media print {
    .topbar, .site-header, .site-header__shell, .drawer, .drawer-overlay,
    .to-top, .scroll-progress, .bg-canvas, .cta, .newsletter,
    .hero__nav, .hero__dots, .hero__playpause, .hero__cue { display: none !important; }
    body { background: #fff; color: #000; padding: 0; }
    .section { padding-block: 1rem; page-break-inside: avoid; }
    a { text-decoration: underline; }
}
