/* AppWT THEME christmas-2026: theme.css, the decorations (Z.A.N.E. for C.L.I.N.T., 2026-12-06).
 * Source: Tony's approved "Global Christmas, Innovation Without Borders" package (theme/global.css palette and
 * review/screenshots/index-desktop.png, index-mobile.png, markets-*.png). tokens.css sets the dark base; this file adds
 * (1) the navy hero with the world map (home) or the page's regional scene (country pages), (2) light ice content
 * sections holding navy cards, (3) gold primary buttons, (4) the navy widget rail, (5) the six-nation scene art,
 * (6) gold focus, forced-colors and reduced-motion handling.
 * Rules: every decoration is a pseudo-element or a background, pointer-events none, no new markup. Never body::before
 * or body::after (the icon stack uses body::after for the rail offset). Loaded only while this theme is live
 * (includes/theme-extras.php prints it after _cohesion.css). Page <style> blocks print later in <body>, so selectors
 * start with :root:root (0,2,0) to outrank them; !important only where a page style or inline style is !important or
 * inline. Region keys come from theme.js: html[data-aw-region] = global | us | ca | gb | nl | au | kr.
 * Contrast (WCAG): ice text #10263e 12.5:1 and #2b4661 8.0:1 on #dceaf5; dark gold #7a5414 5.5:1; card text #fff 11.2:1
 * and gold link #ffe0a2 8.8:1 on #1d3d5b; button ink #11253b 10.2:1 on #f2cd83.
 */
:root:root {
    --aw-xm-navy: #081a30;
    --aw-xm-steel: #153552;
    --aw-xm-ice: #e8f2fb;
    --aw-xm-ice-top: #dceaf5;
    --aw-xm-ice-end: #f7fbff;
    --aw-xm-ink: #10263e;
    --aw-xm-ink-2: #2b4661;
    --aw-xm-gold: #f2cd83;
    --aw-xm-gold-hi: #ffe0a2;
    --aw-xm-gold-ink: #7a5414;
    --aw-xm-card-a: #1d3d5b;
    --aw-xm-card-b: #0b2037;
    --aw-xm-card-line: #a2bdd2;
    --aw-xm-frost: #e3f0fb;
    --aw-xm-tool: #102c47;
    --aw-xm-tool-line: #e5bf78;
}

/* ---------------------------------------------------------------- 1. HERO */
/* The hero picture (video on tablet and desktop, the still on phones) takes the navy hue and keeps its own light and
   dark: B.R.O.C.K.'s proof-swap tint (2026-12-05), widened from #appwt-hero-vbg to every .hero-video-bg (the 104 pages
   with their own inline hero video too). */
:root:root .hero-video-bg { background-color: var(--aw-xm-navy); background-blend-mode: luminosity; }
:root:root .hero-video-bg video { mix-blend-mode: luminosity; }
:root:root .hero.hero-video { border-bottom: 2px solid #b7d1e6; }
/* Tablet and desktop: a deeper navy field over the moving picture (the package hero is a calm navy), darkest in the
   middle where the centered text sits. Phones keep hero-video.php's own fade, which is tuned to the still. */
@media (min-width: 768px) {
    :root:root .hero-video-bg .hero-overlay-strong {
        background:
            radial-gradient(ellipse 60% 70% at 50% 45%, rgba(8, 26, 48, .45), transparent 75%),
            linear-gradient(180deg, rgba(8, 26, 48, .66) 0%, rgba(8, 26, 48, .80) 100%);
    }
}

/* The art is its own framed card, never a backdrop behind text (round 2, verifier round 1: as a faded backdrop the map
   ran behind the H1 and under the Pause button with a hard bottom edge, and on phones the Opera House sat under the
   white "Start a Project Inquiry" label at 3.1:1). The package's own layout: a bordered map card beside left-aligned
   text on desktop, after the buttons on phones. The card is .hero-content::after (unused by the site), so it lives
   inside .container (z 2) above the video and its overlay, and it can join the hero-content grid on desktop.
   The map file's own caption ("six nations, one connected team", the regions) shows in full now that nothing covers it. */
:root:root[data-aw-region="global"] { --aw-xm-art: url("images/global-network.svg"); --aw-xm-art-ratio: 1000 / 540; }
:root:root[data-aw-region="us"] { --aw-xm-art: url("images/scene-us.svg"); }
:root:root[data-aw-region="ca"] { --aw-xm-art: url("images/scene-ca.svg"); }
:root:root[data-aw-region="gb"] { --aw-xm-art: url("images/scene-gb.svg"); }
:root:root[data-aw-region="nl"] { --aw-xm-art: url("images/scene-nl.svg"); }
:root:root[data-aw-region="au"] { --aw-xm-art: url("images/scene-au.svg"); }
:root:root[data-aw-region="kr"] { --aw-xm-art: url("images/scene-kr.svg"); }
/* Phone and tablet (under 1360px): in the flow, after the last line of the hero, centered. order 9: up to 768px the
   home and service heroes are a flex column that orders its children (includes/hero-cta.php: badge 1, H1 and the
   lead buttons 2, the rest 3), and a pseudo-element left at order 0 jumped above the badge. */
:root:root:is([data-aw-region="global"], [data-aw-region="us"], [data-aw-region="ca"], [data-aw-region="gb"], [data-aw-region="nl"], [data-aw-region="au"], [data-aw-region="kr"]) .hero .hero-content::after {
    content: "";
    display: block;
    order: 9;
    position: relative;
    box-sizing: border-box;
    width: min(100%, 560px);
    margin: 28px auto 0;
    padding: 12px;
    aspect-ratio: var(--aw-xm-art-ratio, 1200 / 650);
    background: var(--aw-xm-art) center / contain no-repeat content-box, linear-gradient(160deg, #163a5c, var(--aw-xm-card-b)) border-box;
    border: 1px solid rgba(162, 189, 210, .45);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(3, 12, 24, .45), inset 0 1px 0 rgba(227, 240, 251, .12);
    pointer-events: none;
    animation: aw-xm-fade-in .7s ease-out both;
}
/* Phone: a little wider than the text column (the package's phone card runs gutter to gutter), never past 16px from
   the screen edge: auto width with negative side margins of at most 24px. */
@media (max-width: 767px) {
    :root:root:is([data-aw-region="global"], [data-aw-region="us"], [data-aw-region="ca"], [data-aw-region="gb"], [data-aw-region="nl"], [data-aw-region="au"], [data-aw-region="kr"]) .hero .hero-content::after {
        width: auto;
        margin: 24px max(-24px, calc((100% - 100vw + 32px) / 2)) 0;
        padding: 8px;
    }
}
/* US pages (round 3: the approved United States mockup has the New York scene in the hero) get the card only where the
   hero is .hero > .container > .hero-content. /serves/ pages print .hero-content straight inside .hero, and theme.js marks
   every /serves/ page "us", the 20 Australian, Dutch and Korean city pages too, so the New York scene stays off that
   template. Same weight as the rule above that draws the card, and later, so it wins. */
:root:root[data-aw-region="us"] .hero > .hero-content::after { content: none; }
/* Desktop (1360px and up, where the container sits 80px or more from the screen edge, clear of the left rail): the
   hero text moves into a left column, left-aligned, and the card takes a right column beside it. The card is placed
   absolutely in its grid column, so it never stretches a text row; it centers on the rows beside it. On the home page
   the items from the plain-language line down span the full width again, centered in their own 800px as before, so
   the long home hero keeps its lower half unchanged. The Pause button (top right) ends above the first text row. */
@media (min-width: 1360px) {
    :root:root:is([data-aw-region="global"], [data-aw-region="us"], [data-aw-region="ca"], [data-aw-region="gb"], [data-aw-region="nl"], [data-aw-region="au"], [data-aw-region="kr"]) .hero > .container > .hero-content {
        --aw-xm-card-w: clamp(360px, 32vw, 480px);
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--aw-xm-card-w);
        column-gap: 48px;
        align-content: start;
        width: auto;
        /* !important: /locations/london/, /locations/sydney/ and /locations/cincinnati/ print style="max-width: 900px" on
           .hero-content, which held the grid at 900px and left the text column 391px wide at 1440 (verifier round 3). */
        max-width: none !important;
        margin-left: 0;
        margin-right: 0;
    }
    :root:root:is([data-aw-region="global"], [data-aw-region="us"], [data-aw-region="ca"], [data-aw-region="gb"], [data-aw-region="nl"], [data-aw-region="au"], [data-aw-region="kr"]) .hero > .container > .hero-content > :not(.appwt-web-ai-solutions-hero-plain, .appwt-web-ai-solutions-hero-plain ~ *) {
        grid-column: 1;
        justify-self: stretch;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        justify-content: flex-start;
    }
    :root:root:is([data-aw-region="global"], [data-aw-region="us"], [data-aw-region="ca"], [data-aw-region="gb"], [data-aw-region="nl"], [data-aw-region="au"], [data-aw-region="kr"]) .hero > .container > .hero-content > .hero-badge {
        justify-self: start;
    }
    :root:root:is([data-aw-region="global"], [data-aw-region="us"], [data-aw-region="ca"], [data-aw-region="gb"], [data-aw-region="nl"], [data-aw-region="au"], [data-aw-region="kr"]) .hero > .container > .hero-content > :is(.appwt-web-ai-solutions-hero-plain, .appwt-web-ai-solutions-hero-plain ~ *) {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(100%, 800px);
    }
    :root:root:is([data-aw-region="global"], [data-aw-region="us"], [data-aw-region="ca"], [data-aw-region="gb"], [data-aw-region="nl"], [data-aw-region="au"], [data-aw-region="kr"]) .hero > .container > .hero-content::after {
        position: absolute;
        grid-column: 2;
        grid-row: 1 / span 5;
        top: 50%;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 14px;
        transform: translateY(-50%);
    }
}
/* Home page under 1360px: the map card follows the ISO badge row, as in the approved phone mockup (verifier round 3: as
   the last item of the long home hero it sat 1,557px under the badges at 390 and about 1,300px under them at 768 to
   1280). It is the badge row's own ::after: N.O.L.A.N.'s row is a wrapping flex row with no ::after of its own. Width
   plus side margins always equals the row's full width, so the card always takes a line to itself. The hero-content
   card stays generated on the home page at these widths but hidden and 0 by 0 (same weight as the rules that draw it,
   and later). Not content: none, because a rebuilt card replays its fade: a full-page screenshot briefly resizes the
   page to 1px wide, and with content: none the 1440 card came back mid-fade in the shot. */
@media (max-width: 1359.98px) {
    :root:root[data-aw-region="global"] .hero .hero-content::after {
        visibility: hidden;
        position: absolute;
        width: 0;
        height: 0;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        aspect-ratio: auto;
        box-shadow: none;
    }
    :root:root[data-aw-region="global"] .hero .hero-content > .appwt-web-ai-solutions-nation-badges::after {
        content: "";
        display: block;
        flex: 0 0 auto;
        box-sizing: border-box;
        width: min(100%, 560px);
        margin: 16px calc((100% - min(100%, 560px)) / 2) 0;
        padding: 12px;
        aspect-ratio: var(--aw-xm-art-ratio, 1200 / 650);
        background: var(--aw-xm-art) center / contain no-repeat content-box, linear-gradient(160deg, #163a5c, var(--aw-xm-card-b)) border-box;
        border: 1px solid rgba(162, 189, 210, .45);
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(3, 12, 24, .45), inset 0 1px 0 rgba(227, 240, 251, .12);
        pointer-events: none;
        animation: aw-xm-fade-in .7s ease-out both;
    }
}
/* Phone: gutter to gutter as above, never past 16px from the screen edge. */
@media (max-width: 767px) {
    :root:root[data-aw-region="global"] .hero .hero-content > .appwt-web-ai-solutions-nation-badges::after {
        width: calc(100% - 2 * max(-24px, calc((100% - 100vw + 32px) / 2)));
        margin: 16px max(-24px, calc((100% - 100vw + 32px) / 2)) 0;
        padding: 8px;
    }
}
@keyframes aw-xm-fade-in { from { opacity: 0; } }

/* ---------------------------------------------------------------- 2. NAVY CARDS (every page) */
/* Package [data-aw-card]: gradient #1d3d5b to #0b2037, white text, 1px #a2bdd2 border, 3px #e3f0fb top border,
   12px radius, gold #ffe0a2 links. */
:root:root :is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .appwt-web-ai-solutions-nation-card) {
    background: linear-gradient(140deg, var(--aw-xm-card-a), var(--aw-xm-card-b));
    color: #fff;
    border: 1px solid var(--aw-xm-card-line);
    border-top: 3px solid var(--aw-xm-frost);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(8, 26, 48, .22);
}
:root:root :is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .appwt-web-ai-solutions-nation-card):hover {
    border-color: var(--aw-xm-gold);
    border-top-color: var(--aw-xm-frost);
}
:root:root :is(.feature-card, .product-card, .appwt-web-ai-solutions-nation-card) a:not(.btn) { color: var(--aw-xm-gold-hi); }
:root:root .appwt-web-ai-solutions-need-card .appwt-web-ai-solutions-need-go { color: var(--aw-xm-gold-hi); }
:root:root .appwt-web-ai-solutions-need-card .appwt-web-ai-solutions-need-d { color: #d9e6f2; }
:root:root .feature-card .feature-icon { background: rgba(242, 205, 131, .12); border: 1px solid rgba(242, 205, 131, .28); }

/* The CTA box ("Let's talk about your project"): package [data-aw-cta], navy with frost rules. */
:root:root .cta-section {
    background: linear-gradient(140deg, var(--aw-xm-tool), var(--aw-xm-card-b));
    color: #fff;
    border: 1px solid var(--aw-xm-card-line);
    border-top: 3px solid var(--aw-xm-frost);
    border-radius: 14px;
}

/* ---------------------------------------------------------------- 3. LIGHT ICE SECTIONS */
/* Which sections turn ice: the "What do you need?" chooser and every .section whose container holds a card grid or
   the CTA box. Chosen by markup the server prints (no script), so the page never flashes from navy to ice. Text that
   is not inside a navy card turns dark; !important because these blocks carry inline colors (style="color:...").
   Inside a card nothing changes: the card is navy and keeps its light text. */
:root:root :is(.appwt-web-ai-solutions-need, section.section:has(> .container > :is(.features-grid, .products-grid, .cta-section))) {
    background: linear-gradient(180deg, var(--aw-xm-ice-top), var(--aw-xm-ice-end)) !important;
    color: var(--aw-xm-ink);
    border-top-color: rgba(16, 38, 62, .08);
    border-bottom-color: rgba(16, 38, 62, .08);
}
:root:root :is(.appwt-web-ai-solutions-need, section.section:has(> .container > :is(.features-grid, .products-grid, .cta-section))) :is(h1, h2, h3, h4, h5, h6, strong, b, label, legend, summary, dt):not(:is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .cta-section, .btn) *) {
    color: var(--aw-xm-ink) !important;
}
:root:root :is(.appwt-web-ai-solutions-need, section.section:has(> .container > :is(.features-grid, .products-grid, .cta-section))) :is(p, li, dd, small, em, i, figcaption, blockquote, cite, span):not(:is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .cta-section, .btn, h1, h2, h3, h4, h5, h6) *):not(.btn) {
    color: var(--aw-xm-ink-2) !important;
}
/* Gold words in a heading and gold text spans: dark gold on ice (5.5:1). */
:root:root :is(.appwt-web-ai-solutions-need, section.section:has(> .container > :is(.features-grid, .products-grid, .cta-section))) :is(.text-gold, h1 span, h2 span, h3 span):not(:is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .cta-section) *) {
    color: var(--aw-xm-gold-ink) !important;
    -webkit-text-fill-color: currentColor;
    background: none;
}
:root:root :is(.appwt-web-ai-solutions-need, section.section:has(> .container > :is(.features-grid, .products-grid, .cta-section))) a:not(.btn):not(:is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .cta-section) *):not(.appwt-web-ai-solutions-need-card) {
    color: var(--aw-xm-gold-ink) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}
:root:root :is(.appwt-web-ai-solutions-need, section.section:has(> .container > :is(.features-grid, .products-grid, .cta-section))) .gold-line:not(:is(.feature-card, .product-card, .cta-section) *) {
    background: linear-gradient(90deg, #b88a3b, var(--aw-xm-gold-ink));
}
/* Outline buttons that sit on ice (not in a card): navy ink and a navy rule instead of gold on ice. */
:root:root :is(.appwt-web-ai-solutions-need, section.section:has(> .container > :is(.features-grid, .products-grid, .cta-section))) :is(.btn-secondary, .btn-ghost):not(:is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .cta-section) *) {
    color: var(--aw-xm-ink) !important;
    background: rgba(16, 38, 62, .06);
    border-color: var(--aw-xm-ink);
    box-shadow: none;
}
:root:root :is(.appwt-web-ai-solutions-need, section.section:has(> .container > :is(.features-grid, .products-grid, .cta-section))) :is(.btn-secondary, .btn-ghost):not(:is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .cta-section) *):hover {
    color: #fff !important;
    background: var(--aw-xm-ink);
}
/* The chooser's search field stays a navy field on the ice section (its text and placeholder are already light). */
:root:root .appwt-web-ai-solutions-need .appwt-web-ai-solutions-need-row input {
    background: var(--aw-xm-steel);
    border-color: var(--aw-xm-card-line);
}
/* Page accent boxes (verifier round 3): their own tints sat outside the package palette, beige and mint on /pricing/,
   plum and teal on the service template. Each is matched by its own inline style inside the exact structure that prints
   it (pricing/index.php, includes/templates/service-page.php; no other file under services, includes, pricing, locations,
   about, service-areas or serves carries those styles). !important because the colors are inline. */
/* /pricing/ banners on the ice section: frost panels, steel hairline, gold top rule. The text keeps the ice ink. */
:root:root section.section > .container > div.fade-up:is([style*="appwt-rgb-accent-legacy, 212, 175, 55), 0.1)"], [style*="appwt-rgb-p-22c55e, 34, 197, 94), 0.1)"]) {
    background: var(--aw-xm-ice-end) !important;
    border: 1px solid var(--aw-xm-card-line) !important;
    border-top: 3px solid var(--aw-xm-gold) !important;
    box-shadow: 0 6px 18px rgba(8, 26, 48, .08);
}
:root:root section.section > .container > div.fade-up:is([style*="appwt-rgb-accent-legacy, 212, 175, 55), 0.1)"], [style*="appwt-rgb-p-22c55e, 34, 197, 94), 0.1)"]) svg {
    stroke: var(--aw-xm-gold-ink);
}
/* Service template "The challenge" and "Our solution" on the navy page: navy cards with a frost hairline, a steel-blue
   rule for the challenge and a gold rule for the solution. The challenge heading turns ice (it was red, 3.5:1). */
:root:root section.section > .container > div[style*="grid-template-columns"] > div.fade-up:is([style*="appwt-rgb-p-dc2626, 220, 38, 38), 0.1)"], [style*="appwt-rgb-status-success-soft, 16, 185, 129), 0.1)"]) {
    background: linear-gradient(140deg, var(--aw-xm-card-a), var(--aw-xm-card-b)) !important;
    border: 1px solid rgba(162, 189, 210, .4) !important;
    border-left: 4px solid var(--aw-xm-card-line) !important;
    box-shadow: 0 10px 26px rgba(3, 12, 24, .3);
}
:root:root section.section > .container > div[style*="grid-template-columns"] > div.fade-up[style*="appwt-rgb-status-success-soft, 16, 185, 129), 0.1)"] {
    border-left-color: var(--aw-xm-gold) !important;
}
:root:root section.section > .container > div[style*="grid-template-columns"] > div.fade-up[style*="appwt-rgb-p-dc2626, 220, 38, 38), 0.1)"] > h2 {
    color: var(--aw-xm-ice) !important;
}

/* ---------------------------------------------------------------- 4. GOLD PRIMARY BUTTONS */
/* Package [data-aw-primary]: #f2cd83 with #11253b ink, 1px #c69a4c rule, 8px radius; the mockup's soft top light. */
:root:root :is(.btn-primary, .btn-gold, .appwt-web-ai-solutions-need-row button) {
    background: linear-gradient(180deg, var(--aw-xm-gold-hi) 0%, var(--aw-xm-gold) 55%, #e8bd6f 100%);
    color: #11253b;
    border: 1px solid #c69a4c;
    border-radius: 8px;
}
:root:root :is(.btn-primary, .btn-gold):hover { color: #11253b; filter: brightness(1.04); }

/* ---------------------------------------------------------------- 5. WIDGET RAIL */
/* Package [data-aw-tool]: navy #102c47 with a thin gold #e5bf78 rule and a gold icon. Size, place and stacking order
   are untouched. The selectors outrank the rail's own !important rules: main.css (1,0,0), the footer icon stack, and
   appwt-translate-site.css (#translate-btn#translate-btn 2,0,0 and .developed-by-appwt-llc-ada-button x2 0,2,0). */
:root:root :is(#schedule-widget-btn#schedule-widget-btn, #cage-widget-button#cage-widget-button, #theme-song-btn#theme-song-btn, #translate-btn#translate-btn, #appwt-translate-btn#appwt-translate-btn, #back-to-top#back-to-top),
:root:root .developed-by-appwt-llc-ada-button.developed-by-appwt-llc-ada-button.developed-by-appwt-llc-ada-button {
    background: var(--aw-xm-tool) !important;
    background-image: none !important;
    border: 1px solid var(--aw-xm-tool-line) !important;
    color: var(--aw-xm-gold) !important;
}
:root:root :is(#schedule-widget-btn#schedule-widget-btn, #cage-widget-button#cage-widget-button, #theme-song-btn#theme-song-btn, #translate-btn#translate-btn, #appwt-translate-btn#appwt-translate-btn) :is(svg, svg *) {
    fill: var(--aw-xm-gold) !important;
}
:root:root #back-to-top#back-to-top :is(svg, svg *),
:root:root .developed-by-appwt-llc-ada-button.developed-by-appwt-llc-ada-button.developed-by-appwt-llc-ada-button :is(svg, svg *) {
    fill: var(--aw-xm-gold) !important;
    stroke: var(--aw-xm-gold) !important;
}
/* The consent strip and the "AppWT family of sites" strip were black bands on the navy theme (verifier round 1).
   Color only: size, place, layer and every control are untouched. The consent text (#ddd, #aaa, gold links) keeps
   6:1 or better on this navy. The family strip takes its colors from its own --awp- tokens (appwt-promos.css). */
:root:root #appwt-cookie-consent { background: rgba(7, 22, 41, .95); }
:root:root #appwt-cookie-consent .appwt-consent-actions { background: rgba(7, 22, 41, .97); }
:root:root .appwt-web-ai-solutions-family-strip { --awp-bg: #071629; --awp-line: rgba(162, 189, 210, .22); }

/* ---------------------------------------------------------------- 6. SIX NATIONS + GLOBAL COPY (N.O.L.A.N.'s markup) */
:root:root section.appwt-web-ai-solutions-six-nations {
    background: radial-gradient(ellipse at 80% 0%, rgba(32, 75, 114, .55), transparent 60%), #0a2038;
}
/* The scene in each card shows only under this theme; outside it the permanent card has no Christmas art. */
:root:root .appwt-web-ai-solutions-nation-card .appwt-web-ai-solutions-nation-art {
    display: block !important;
    width: 100%;
    aspect-ratio: 1200 / 650;
    margin: 0 0 12px;
    border-radius: 8px;
    background: #0b1f38 no-repeat center / cover;
    pointer-events: none;
}
:root:root .appwt-web-ai-solutions-nation-card[data-region="us"] .appwt-web-ai-solutions-nation-art { background-image: url("images/scene-us.svg"); }
:root:root .appwt-web-ai-solutions-nation-card[data-region="ca"] .appwt-web-ai-solutions-nation-art { background-image: url("images/scene-ca.svg"); }
:root:root .appwt-web-ai-solutions-nation-card[data-region="gb"] .appwt-web-ai-solutions-nation-art { background-image: url("images/scene-gb.svg"); }
:root:root .appwt-web-ai-solutions-nation-card[data-region="nl"] .appwt-web-ai-solutions-nation-art { background-image: url("images/scene-nl.svg"); }
:root:root .appwt-web-ai-solutions-nation-card[data-region="au"] .appwt-web-ai-solutions-nation-art { background-image: url("images/scene-au.svg"); }
:root:root .appwt-web-ai-solutions-nation-card[data-region="kr"] .appwt-web-ai-solutions-nation-art { background-image: url("images/scene-kr.svg"); }
/* Hero tagline: the mockup's gold italic serif line under the H1. */
:root:root .appwt-web-ai-solutions-hero-tagline {
    color: var(--aw-xm-gold);
    font-family: var(--font-serif-family, 'Playfair Display'), Georgia, 'Times New Roman', serif;
    font-style: italic;
}
/* ISO badges: small navy boxes with a frost rule, as in the mockup. */
:root:root .appwt-web-ai-solutions-nation-badge {
    background: var(--aw-xm-steel);
    color: #fff;
    border: 1px solid var(--aw-xm-frost);
    border-radius: 4px;
}
/* C.L.I.N.T. 2026-12-06 (verify round 3): the band and its one bottom rule go on the whole strip, as in the package.
   On the inline span they boxed only the words at 1440 and drew a stray block at 390. */
:root:root .appwt-founder-led-strip {
    background: #071629;
    border-bottom: 1px solid rgba(162, 189, 210, .22);
}
:root:root .appwt-web-ai-solutions-global-strip {
    color: var(--aw-xm-ice);
}

/* ---------------------------------------------------------------- 7. FOCUS */
/* Package: 3px #e8b457 outline, 3px offset, a 2px navy ring (9.2:1 on navy). On ice, outside a card, the outline turns
   navy (12.5:1 on ice). !important because the AppWT ADA keyboard mode paints every :focus with an !important #F4A261
   ring (.ada-keyboard-navigation :focus, 0,2,0), and that orange measures 1.9:1 on the ice sections this theme adds.
   Keyboard focus only (:focus-visible); the ADA ring still shows for its own mouse-focus case. */
:root:root :focus-visible {
    outline: 3px solid #e8b457 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 2px var(--aw-xm-navy) !important;
}
:root:root :is(.appwt-web-ai-solutions-need, section.section:has(> .container > :is(.features-grid, .products-grid, .cta-section))) :focus-visible:not(:is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .cta-section) *) {
    outline-color: var(--aw-xm-ink) !important;
    box-shadow: 0 0 0 2px var(--aw-xm-gold) !important;
}
/* Focus targets that fill a clipping box (overflow hidden) lose an outward ring's sides and bottom (verifier round 1).
   Six-nation cards: N.O.L.A.N.'s index.php (04:28) rings the whole card when its link has :focus-visible and makes
   the link's own ring transparent, inside @supports selector(:has(*)); this rule is the fallback for a browser without
   :has(): the ring drawn inside the link (-4px, as index.php intends), gold 3px with a navy band each side.
   FAQ rows: the question button fills its .faq-item (overflow hidden, 16px radius); /pricing/ filter pills fill their
   48px scroll row on phones (overflow auto). Same inside ring for both. Without this theme the ADA keyboard ring (2px
   out) is clipped in both places too. */
:root:root .appwt-web-ai-solutions-nation-card .appwt-web-ai-solutions-nation-link:focus-visible,
:root:root .faq-item .faq-question:focus-visible,
:root:root #catalog-filters .catalog-filter:focus-visible {
    outline-offset: -4px !important;
    border-radius: 12px;
    box-shadow: inset 0 0 0 7px var(--aw-xm-navy) !important;
}

/* ---------------------------------------------------------------- 8. FORCED COLORS + REDUCED MOTION */
@media (forced-colors: active) {
    :root:root .hero .hero-content::after,
    :root:root .hero .appwt-web-ai-solutions-nation-badges::after,
    :root:root .appwt-web-ai-solutions-nation-card .appwt-web-ai-solutions-nation-art { display: none !important; }
    :root:root :is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .appwt-web-ai-solutions-nation-card, .cta-section, .btn-primary, .btn-gold, .appwt-web-ai-solutions-nation-badge) {
        background: Canvas;
        color: CanvasText;
        border: 2px solid ButtonText;
    }
    :root:root :is(.appwt-web-ai-solutions-need, section.section:has(> .container > :is(.features-grid, .products-grid, .cta-section))) { background: Canvas !important; }
    :root:root :focus-visible { outline-color: Highlight !important; box-shadow: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    /* same weight as the rule that starts the fade, or the fade would still run */
    :root:root:is([data-aw-region="global"], [data-aw-region="us"], [data-aw-region="ca"], [data-aw-region="gb"], [data-aw-region="nl"], [data-aw-region="au"], [data-aw-region="kr"]) .hero .hero-content::after { animation: none; }
    :root:root[data-aw-region="global"] .hero .hero-content > .appwt-web-ai-solutions-nation-badges::after { animation: none; }
    :root:root :is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .appwt-web-ai-solutions-nation-card, .btn-primary, .btn-gold) { transition: none; }
    :root:root :is(.feature-card, .product-card, .appwt-web-ai-solutions-need-card, .appwt-web-ai-solutions-nation-card):hover { transform: none; }
}

/* ---------------------------------------------------------------- 9. THE CAPABILITY STATEMENT'S PEARL SHEET */
/* C.L.I.N.T. 2026-12-06 (L.U.K.E. verify round 3; B.R.O.C.K.'s measured cause). /capability-statement/ is a standalone
   pearl print sheet. _cohesion.css maps its light-surface knobs to this theme's bright tokens, so its link read #F2CD83
   on #FAFAFA (1.45:1) and its data boxes went navy under black text. Same rules as new-year/theme.css section 9, scoped
   by the sheet's own .top .brand (only that page has the pair): dark gold ink links, the page's own #F1F4F8 boxes, its
   own #5B6676 footer line, and a pearl "Common questions" heading on the navy page outside the sheet. */
:root:root .sheet:has(> .top .brand) .body a:not(.btn):not(.contact *) { color: var(--aw-xm-gold-ink); }
:root:root .sheet:has(> .top .brand) .box { background: #f1f4f8; border-color: #d8dee8; }
:root:root .sheet:has(> .top .brand) > .foot { color: #5b6676; }
/* The page now keeps its own light paper behind the FAQ (capability-statement/index.php, C.L.I.N.T. 2026-12-06), so the
   heading takes dark ink (#0A0A0A on #E9EDF3), not the pearl it needed on the navy page. */
:root:root .sheet:has(> .top .brand) ~ .capfaq > h2 { color: #0a0a0a; }

/* ---------------------------------------------------------------- 10. THE MOVING SCENE (html.aw-hero-scene) */
/* Z.A.N.E. for C.L.I.N.T., 2026-12-06 (Tony: "we thought you were going to be seeing more of this with movement or video
   in the hero", his reference: a snowy holiday street moving behind the hero, the holly logo above the headline, warm
   gold lights and red bows on a navy night). Every rule here needs html.aw-hero-scene, which theme.js (G.R.A.N.T.) sets
   only when it has put the scene in #appwt-hero-video (tablet and desktop) or when #appwt-hero-vbg exists (phones), so a
   page without the scene renders exactly as before. Scoped to #appwt-hero-vbg (includes/hero-video.php): the pages with
   their own inline hero video keep the navy tint of section 1.
   Contrast is built in, not hoped for: on tablet and desktop the navy overlay is at least .84 opaque wherever hero text
   sits, and .84 navy over a pure white pixel still leaves #f2cd83 gold text at 7.3:1 and white text at 11:1, so no frame
   of the loop can take the text under 4.5:1. On phones the text starts where the fade is dark or on a line with its own
   dark pill (the badge). The scene shows at full strength only where no text sits. Measured over every frame point of
   the real loop and over a pure white stand-in: /root/claude-code/checks/zane-xmas-scene-1206/. */
/* Real colors: no navy luminosity tint, no brightness(0.62) dim (includes/hero-video.php); the overlay below does the
   darkening, and only where text sits. */
:root:root.aw-hero-scene #appwt-hero-vbg.hero-video-bg { background-blend-mode: normal; }
:root:root.aw-hero-scene #appwt-hero-vbg video { mix-blend-mode: normal; filter: none; }
@media (min-width: 768px) {
    /* The picture keeps its own 16:9 shape at the top of the hero (min of the hero's height and 56.25vw), so a tall hero
       (the home hero is 1,988px at 1440) shows the whole street instead of a 2.8x crop of its middle. Below it the hero
       is the theme's navy, and the overlay's bottom fade meets that navy exactly at the picture's lower edge. */
    :root:root.aw-hero-scene #appwt-hero-vbg video { height: min(100%, 56.25vw); }
    /* Centered hero text (every page under 1360px, and at any width on pages without the left text column): a .84 navy
       band 960px wide behind the text column, the scene opening up at both sides. */
    :root:root.aw-hero-scene #appwt-hero-vbg .hero-overlay-strong {
        background:
            linear-gradient(180deg, rgba(8, 26, 48, 0) 0, rgba(8, 26, 48, 0) calc(min(100%, 56.25vw) * .5), var(--aw-xm-navy) min(100%, 56.25vw)),
            linear-gradient(90deg, rgba(8, 26, 48, .40) 0, rgba(8, 26, 48, .84) calc(50% - 480px), rgba(8, 26, 48, .84) calc(50% + 480px), rgba(8, 26, 48, .40) 100%);
    }
}
/* 1360px and up, where section 1 puts the hero text in a left column (region pages with .hero > .container >
   .hero-content): dark on the left behind the text, the scene open on the right, as in Tony's reference. The text column
   starts at 50% - 584px (the 1168px container) and ends at 52 to 55% of the width from 1360 to 1920, so the .86/.84
   band runs from 50% - 600px to 57%, and the snowy trees at the far left edge show through a lighter strip, as in the
   reference. */
@media (min-width: 1360px) {
    :root:root.aw-hero-scene:is([data-aw-region="global"], [data-aw-region="us"], [data-aw-region="ca"], [data-aw-region="gb"], [data-aw-region="nl"], [data-aw-region="au"], [data-aw-region="kr"]) .hero:has(> .container > .hero-content) #appwt-hero-vbg .hero-overlay-strong {
        background:
            linear-gradient(180deg, rgba(8, 26, 48, 0) 0, rgba(8, 26, 48, 0) calc(min(100%, 56.25vw) * .5), var(--aw-xm-navy) min(100%, 56.25vw)),
            linear-gradient(90deg, rgba(8, 26, 48, .50) 0, rgba(8, 26, 48, .86) calc(50% - 600px), rgba(8, 26, 48, .84) 57%, rgba(8, 26, 48, .40) 70%, rgba(8, 26, 48, .14) 100%);
    }
}
/* Phones: hero-video.php paints its own still at its natural shape (100% wide, 56.25vw tall, top aligned) from its own
   @media block (#appwt-hero-vbg.hero-video-bg, 1,1,0). Here (1,4,0) that box turns plain theme navy and the scene's
   phone still takes the same shape on its ::before (unused there), under the overlay (z-index 1), so the still can drift:
   a slow 26 s scale from 1 to 1.06 and back, a transform only (no layout, no repaint), clipped by the box's own
   overflow: hidden. The fade reaches .86 at 32vw, where the first text line can start (a page's badge, which carries its
   own .8 dark pill from hero-video.php), and solid navy at the still's lower edge, which also hides the drift's lower
   edge. No drift under reduced motion or the ADA "Stop Animations" switch. */
@media (max-width: 767px) {
    :root:root.aw-hero-scene #appwt-hero-vbg.hero-video-bg {
        background: var(--aw-xm-navy);
        background-blend-mode: normal;
    }
    :root:root.aw-hero-scene #appwt-hero-vbg.hero-video-bg::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 56.25vw;
        z-index: 0;
        background: url("images/hero-scene-phone.webp") center top / 100% auto no-repeat;
        transform-origin: 50% 35%;
        pointer-events: none;
        animation: aw-xm-scene-drift 26s ease-in-out infinite alternate;
    }
    :root:root.aw-hero-scene #appwt-hero-vbg .hero-overlay-strong {
        background: linear-gradient(180deg, rgba(8, 26, 48, .22) 0, rgba(8, 26, 48, .48) 18vw, rgba(8, 26, 48, .86) 32vw, var(--aw-xm-navy) 56.25vw);
    }
    /* Home: the logo takes the top of the text column, so the first text line starts under the still and the scene can
       stay brighter behind the logo. */
    :root:root.aw-hero-scene .hero:has(.appwt-web-ai-solutions-hero-logo) #appwt-hero-vbg .hero-overlay-strong {
        background: linear-gradient(180deg, rgba(8, 26, 48, .10) 0, rgba(8, 26, 48, .25) 26vw, rgba(8, 26, 48, .70) 46vw, var(--aw-xm-navy) 56.25vw);
    }
}
/* The holly logo theme.js puts first in the home hero column (aria-hidden, the header keeps the real logo and name).
   theme.js also gives it its own size (clamp(220px, 32vw, 460px)) whether or not the scene runs, and takes the scene
   class away again if the video fails, so the size here is the SAME numbers: the logo never jumps when the class comes
   or goes. 460px at 1440, 220px at 390, at the png's own 1778:522 shape, never wider than the column. It is centered by
   the text column's own text-align (centered under 1360px and on pages without the left column; left in the 1360px left
   column, where section 1 sets text-align left), so it always lines up with the text under it. Order 0 keeps it above
   the badge in hero-cta.php's phone flex column (which gives every other child order 3). No motion. A tight navy halo
   around the letters, then a soft gold glow: on phones the logo sits over the lit shop windows of the still, and without
   the halo "WEB & AI SOLUTIONS" was lost in them (seen in the 390 shot); on the dark left of the desktop hero the halo
   is invisible and the glow shows. */
:root:root.aw-hero-scene .hero .hero-content > .appwt-web-ai-solutions-hero-logo {
    order: 0;
    max-width: 100%;
    line-height: 0;
    pointer-events: none;
}
:root:root.aw-hero-scene .hero .hero-content > .appwt-web-ai-solutions-hero-logo img {
    width: clamp(220px, 32vw, 460px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1778 / 522;
    filter: drop-shadow(0 0 2px rgba(8, 26, 48, .9)) drop-shadow(0 0 8px rgba(8, 26, 48, .8)) drop-shadow(0 0 20px rgba(242, 205, 131, .26));
}
@media (min-width: 1360px) {
    /* The map card centers on the five rows beside it; with the logo as the new first row it moves down one row, so it
       still sits beside the badge, H1, proof strip and tagline. */
    :root:root.aw-hero-scene:is([data-aw-region="global"], [data-aw-region="us"], [data-aw-region="ca"], [data-aw-region="gb"], [data-aw-region="nl"], [data-aw-region="au"], [data-aw-region="kr"]) .hero > .container > .hero-content:has(> .appwt-web-ai-solutions-hero-logo)::after {
        grid-row: 2 / span 5;
    }
}
@keyframes aw-xm-scene-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
    :root:root.aw-hero-scene #appwt-hero-vbg.hero-video-bg::before { animation: none; }
}
:root:root.aw-hero-scene body.ada-stop-animations #appwt-hero-vbg.hero-video-bg::before { animation: none; }
@media (forced-colors: active) {
    :root:root.aw-hero-scene .hero .hero-content > .appwt-web-ai-solutions-hero-logo img { filter: none; }
}
