/* ==========================================================================
   ICGIC Conference Sponsor Display — presentation
   --------------------------------------------------------------------------
   Phase 4. Establishes the theme tokens, the letterboxed 16:9 stage, the safe
   area, the composed cinematic environment, the recognition card, the text
   lockup, the five slide states, the no-JavaScript recognition wall, and the
   playback surface the engine drives.

   Governing spec: BUILD_PLAN.md §6 (visual direction), §7 (format and safe
   area), §8 (slide loop), §11.5 (logo box).

   THE ENVIRONMENT IS ORIGINAL WORK. The supplied vertical poster is a
   creative reference, never a background to stretch or crop (§4, §19 rule
   11). No layered source file, element art, crest, or photography was
   supplied (§4, outstanding artwork), so the 16:9 composition below is built
   from CSS gradients and original SVG landforms that carry the poster's
   language — deep navy depth, electric-blue light on wet ground, controlled
   red rim, desert ridge line, metallic display type — without reconstructing
   any of its assets.

   Contents
     1.  Theme tokens
     2.  Fonts
     3.  Page and letterbox
     4.  Stage and safe area
     5.  Cinematic environment
     6.  Metallic display type
     7.  Recognition card (§6.7)
     8.  Text lockup (§6.8)
     9.  Slide system (§8.1, §6.4)
     10. Static recognition wall
     11. Utilities
     12. Engine handover
     13. Playback
   ========================================================================== */


/* ==========================================================================
   1. THEME TOKENS
   Every colour, space, size, duration and ratio in this project resolves
   from here. Nothing below this block hard-codes a value that a designer or
   the projector might need to change.
   ========================================================================== */

:root {
    /* ----------------------------------------------------------------------
       1.1  Stage geometry
       ---------------------------------------------------------------------- */

    /* Presentation aspect ratio (BUILD_PLAN §7). The projector has NOT been
       confirmed yet — §21 open decision. Change these two numbers and the
       whole display re-composes: stage, safe area, logo box, type scale. */
    --stage-ratio-w: 16;
    --stage-ratio-h: 9;

    /* Reference canvas. All sizes below are authored in these units. */
    --stage-ref-w: 1920;
    --stage-ref-h: 1080;

    /* Minimum safe margin on every side, as a fraction of the stage (§7).
       Do not place critical text or a logo outside this inset. */
    --stage-safe-frac: 0.05;

    /* Viewport height. dvh where supported (see the @supports below) so a
       browser chrome change cannot crop the stage. */
    --stage-vh: 100vh;

    /* The stage is the largest box of the configured ratio that fits the
       viewport. Everything else is derived from it. */
    --stage-w: min(100vw, calc(var(--stage-vh) * var(--stage-ratio-w) / var(--stage-ratio-h)));

    /* ONE reference pixel, in real CSS px, at the current stage size.
       Authoring in calc(N * var(--px)) means a value designed at 1920x1080
       holds its proportion at 1280x720, 2560x1440 and 3840x2160 alike. */
    --px: calc(var(--stage-w) / var(--stage-ref-w));

    --safe-inline: calc(var(--stage-ref-w) * var(--stage-safe-frac) * var(--px));
    --safe-block: calc(var(--stage-ref-h) * var(--stage-safe-frac) * var(--px));

    /* ----------------------------------------------------------------------
       1.2  The logo box  —  THE single documented value
       ---------------------------------------------------------------------- */

    /* Size of the box a partner mark is fitted into on an individual
       recognition slide, in reference px at 1920x1080.

       This is the most consequential number in the project. It decides how
       large every supplied logo is drawn, and therefore which files are good
       enough to ship: tools/build-logos.mjs grades each source file by the
       effective scale it achieves inside THIS box, and prints the result in
       build-report/logo-report.md.

       It is declared in exactly two places and they must agree:
           here                         — what the browser draws
           tools/build-logos.mjs        — const DEFAULT_SLIDE_BOX

       Change it and re-run `npm run logos`. Every quality grade and every
       "request a better file" line will change with it. */
    --logo-box-ref-w: 840;
    --logo-box-ref-h: 380;

    --logo-box-w: calc(var(--logo-box-ref-w) * var(--px));
    --logo-box-h: calc(var(--logo-box-ref-h) * var(--px));

    /* Per-partner optical nudge, 0.80-1.25, set from partners.js `logoScale`.
       Default identity; overridden inline on a card. */
    --logo-scale: 1;

    /* Base inset between the card edge and the logo box, in reference px.
       The aspect classes in §7 scale this, and only this, to normalise marks
       optically. At the `standard` class the card's content box is exactly
       --logo-box-w x --logo-box-h, which is the box tools/build-logos.mjs
       grades every supplied file against. */
    --card-frame: calc(30 * var(--px));
    --card-pad-block: var(--card-frame);
    --card-pad-inline: var(--card-frame);

    /* ----------------------------------------------------------------------
       1.3  Colour — raw palette
       Derived from source-assets/artwork/conference-poster.jpg (primary
       authority, §4) with the warm gold carried over from icgic.org.
       ---------------------------------------------------------------------- */

    --c-black: #03060c;
    --c-navy-deep: #050d1d;
    --c-navy: #0a1730;
    --c-navy-lift: #132e57;
    --c-steel: #35485f;
    --c-steel-light: #7e8ea0;

    --c-blue: #1e7fe8;          /* electric blue — dominant accent (§6.3) */
    --c-blue-bright: #4fa8ff;
    --c-blue-pale: #9fd0ff;
    --c-blue-deep: #0a4fa0;

    --c-red: #d81e28;           /* controlled red — secondary accent only */
    --c-red-bright: #ff3a46;

    --c-gold: #e3b969;          /* icgic.org identity; crest support only */

    --c-silver-hi: #ffffff;
    --c-silver: #d9e1ea;
    --c-silver-lo: #93a0ae;

    /* The recognition card ground.
       §6.7 specifies "approximately #F4F6F8". Pure white is the deliberate
       reading of "approximately": six of the supplied files are white-ground
       JPEGs trimmed at #FFFFFF or #FEFEFE, and at #F4F6F8 each one draws a
       visible lighter rectangle inside its own card — the exact seam §6.7
       exists to remove. At #FFFFFF a white-ground JPEG and a transparent PNG
       are indistinguishable, which is the requirement. Separation from the
       cinematic background comes from the edge and the shadow instead. */
    --c-card-light: #ffffff;
    --c-card-dark: #101922;

    /* ----------------------------------------------------------------------
       1.4  Colour — semantic
       ---------------------------------------------------------------------- */

    --letterbox: var(--c-black);
    --stage-bg: var(--c-navy-deep);

    --fg-primary: var(--c-silver-hi);
    --fg-secondary: var(--c-silver);
    --fg-muted: var(--c-steel-light);
    --fg-accent: var(--c-blue-bright);

    --rule-ink: color-mix(in srgb, var(--c-blue-bright) 55%, transparent);
    --rule-quiet: color-mix(in srgb, var(--c-steel-light) 32%, transparent);

    --card-bg: var(--c-card-light);
    --card-edge: color-mix(in srgb, var(--c-steel-light) 45%, transparent);
    --card-radius: calc(14 * var(--px));
    --card-shadow:
        0 calc(2 * var(--px)) calc(6 * var(--px)) rgb(3 6 12 / 0.45),
        0 calc(18 * var(--px)) calc(48 * var(--px)) rgb(3 6 12 / 0.62);

    /* Soft blue edge light on the card, per §8.3. Red is deliberately absent
       here — it stays at the frame edge so the two never pulse together. */
    --card-glow: 0 0 calc(70 * var(--px)) color-mix(in srgb, var(--c-blue) 26%, transparent);

    /* ----------------------------------------------------------------------
       1.5  Environment intensity  (§6.4 slide intensity hierarchy)
       One multiplier drives every background layer, so a slide declares how
       loud its environment is and the whole composition follows.
           1.00  opening and closing — the richest composition
           0.45  individual recognition — same world, competing imagery down
           0.62  collective wall — balanced, so no logo becomes unreadable
       ---------------------------------------------------------------------- */

    --env-strength: 1;

    /* ----------------------------------------------------------------------
       1.6  Spacing — authored in reference px
       ---------------------------------------------------------------------- */

    --sp-1: calc(4 * var(--px));
    --sp-2: calc(8 * var(--px));
    --sp-3: calc(14 * var(--px));
    --sp-4: calc(22 * var(--px));
    --sp-5: calc(32 * var(--px));
    --sp-6: calc(48 * var(--px));
    --sp-7: calc(68 * var(--px));
    --sp-8: calc(96 * var(--px));

    /* ----------------------------------------------------------------------
       1.7  Type scale
       Preferred value tracks the stage, so the composition is identical at
       1280x720, 1920x1080 and 3840x2160 — only sharper (BUILD_PLAN §7).

       The FLOOR is the useful half of each clamp: it keeps the static wall
       readable on a small non-projector viewport, where proportional scaling
       alone would go sub-legible.

       The CEILING is a backstop only, set at 2.2x the reference value so it
       cannot engage at or below 4K. An earlier, tighter ceiling did engage at
       3840x2160 and held type at 71% of its intended proportion while cards
       and spacing kept scaling — the layout quietly changed shape on the
       highest-resolution projector it is most likely to meet.
       ---------------------------------------------------------------------- */

    --fs-hero: clamp(28px, calc(96 * var(--px)), 211px);
    --fs-title: clamp(19px, calc(48 * var(--px)), 106px);
    --fs-lede: clamp(13px, calc(26 * var(--px)), 57px);
    --fs-meta: clamp(12px, calc(20 * var(--px)), 44px);
    --fs-label: clamp(10px, calc(15 * var(--px)), 33px);

    /* Individual recognition slide. The organization name is the strongest
       content on the slide after the mark itself (§6.4). */
    --fs-slide-name: clamp(18px, calc(58 * var(--px)), 128px);
    --fs-slide-label: clamp(10px, calc(19 * var(--px)), 42px);
    /* An approved per-partner note. Set smaller than the category label it
       sits under so it cannot be read as a second label — and lowercase, where
       the label is uppercase and tracked, which widens the gap further. */
    --fs-slide-note: clamp(9px, calc(17 * var(--px)), 38px);
    /* Measured, not guessed. The longest authored lockup line on the current
       roster — "Michael & Jenny" — renders at 10.57 reference px of width per
       px of font size in the current fallback display face, so the logo box's
       840 px caps this at 79. 76 leaves a little headroom.

       Two reasons this cannot stay a constant:
         - a licensed condensed face changes every one of those widths;
         - the four disabled roster entries get confirmed names later, and a
           longer one would silently overflow its card.
       Phase 4 must measure the rendered line and fit to the box instead. */
    --fs-slide-lockup: clamp(16px, calc(76 * var(--px)), 167px);

    /* Collective wall page (§8.1). */
    --fs-wall-name: clamp(11px, calc(24 * var(--px)), 53px);
    --fs-wall-label: clamp(9px, calc(14 * var(--px)), 31px);
    --fs-wall-lockup: clamp(12px, calc(34 * var(--px)), 75px);

    /* Static no-JavaScript wall, which lists every partner on one page. */
    --fs-tile-lockup: clamp(12px, calc(23 * var(--px)), 51px);
    --fs-tile-name: clamp(11px, calc(19 * var(--px)), 42px);
    --fs-tile-label: clamp(9px, calc(13 * var(--px)), 29px);

    --tracking-display: 0.015em;
    --tracking-label: 0.22em;
    --tracking-lockup: 0.005em;

    /* ----------------------------------------------------------------------
       1.8  Timing
       Slide DURATIONS are data, not CSS — they live in partners.js
       `settings` and are read by the engine in Phase 4. Only the values a
       stylesheet must know are declared here.
       --t-transition mirrors settings.transitionDurationMs (750 ms); the
       engine re-asserts it on :root at boot so the two cannot drift.
       ---------------------------------------------------------------------- */

    --t-transition: 750ms;
    --t-ui: 220ms;
    --ease-cinematic: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Ambient background motion. Slow enough to read as atmosphere rather
       than animation, and never applied to a partner mark (§8.3). */
    --t-haze: 34s;
    --t-sweep: 11s;

    /* ----------------------------------------------------------------------
       1.9  Wall geometry
       ---------------------------------------------------------------------- */

    /* Height reserved at the foot of every slide for the operator controls. */
    --control-reserve: calc(74 * var(--px));

    --wall-col-min: calc(198 * var(--px));
    --wall-card-h: calc(106 * var(--px));
    --wall-gap-col: calc(26 * var(--px));
    --wall-gap-row: calc(26 * var(--px));
}

@supports (height: 100dvh) {
    :root {
        --stage-vh: 100dvh;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --t-transition: 1ms;
        --t-ui: 1ms;
    }
}


/* ==========================================================================
   2. FONTS
   --------------------------------------------------------------------------
   No font files are licensed or self-hosted yet. BUILD_PLAN §6.5 permits
   self-hosting only where the licence allows, and §3 forbids an external CDN,
   so Google Fonts is not an option. §21 still carries "Confirm the fonts and
   their permitted use" as an open decision.

   DOCUMENTED SUBSTITUTION, in force until fonts are cleared:

     --font-display   Intended: the bold condensed/block face from the
                      conference poster headline (not yet identified or
                      licensed — §4 outstanding artwork).
                      Substitute: the heaviest grotesque already present on a
                      Windows presentation laptop. Used ONLY for conference
                      identity, organization names and lockups at display
                      size, never for small supporting text (§6.5).

     --font-sans      Intended: Raleway, per icgic.org.
                      Substitute: Segoe UI on the target laptop. Raleway is
                      named first, so if it is installed locally it is used
                      with zero network requests.

     --font-serif     Intended: Playfair Display, per icgic.org. Secondary
                      connection to the public site; not required for the
                      conference identity.

   TO SELF-HOST once licences are confirmed: drop the woff2 files into
   assets/fonts/ and uncomment the @font-face block below. Nothing else in
   this stylesheet changes — the stacks already name the faces first.
   ========================================================================== */

/*
@font-face {
    font-family: "Raleway";
    src: url("../fonts/raleway-variable.woff2") format("woff2-variations");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
*/

:root {
    --font-display:
        "Archivo Black", "Arial Black", "Franklin Gothic Heavy",
        "Segoe UI Black", Haettenschweiler, Impact, system-ui, sans-serif;

    --font-sans:
        "Raleway", "Segoe UI", Inter, Roboto, "Helvetica Neue",
        Arial, system-ui, sans-serif;

    --font-serif:
        "Playfair Display", Georgia, "Times New Roman", serif;
}


/* ==========================================================================
   3. PAGE AND LETTERBOX
   ========================================================================== */

html {
    color-scheme: dark;
    background-color: var(--letterbox);
}

body {
    display: grid;
    place-items: center;
    min-block-size: var(--stage-vh);
    background-color: var(--letterbox);
    color: var(--fg-primary);
    font-family: var(--font-sans);
    /* A projector at the back of a long room is not the place for hairlines. */
    font-weight: 500;
}

.skip-link {
    position: absolute;
    inset-block-start: var(--sp-3);
    inset-inline-start: var(--sp-3);
    z-index: 100;
    padding: var(--sp-2) var(--sp-4);
    border-radius: calc(6 * var(--px));
    background-color: var(--c-blue);
    color: var(--c-silver-hi);
    font-size: var(--fs-label);
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus-visible {
    transform: none;
}


/* ==========================================================================
   4. STAGE AND SAFE AREA
   --------------------------------------------------------------------------
   The stage is the largest box of the configured ratio that fits the
   viewport, centred, with the remainder left as letterbox. A viewport that
   does not match the ratio therefore pillarboxes or letterboxes rather than
   distorting or clipping (§7).
   ========================================================================== */

.stage {
    position: relative;
    inline-size: var(--stage-w);
    aspect-ratio: var(--stage-ratio-w) / var(--stage-ratio-h);
    overflow: hidden;
    background-color: var(--stage-bg);
    isolation: isolate;
}

/* Slide intensity hierarchy (§6.4). The engine sets this on the stage as the
   loop advances; the environment is shared and continuous, so the world does
   not restart between slides (§8.3). */
.stage[data-intensity="full"] {
    --env-strength: 1;
}

.stage[data-intensity="quiet"] {
    --env-strength: 0.45;
}

.stage[data-intensity="wall"] {
    --env-strength: 0.62;
}

/* The 5% safe area. Nothing critical is placed outside this inset (§7). */
.stage__safe {
    position: relative;
    z-index: 1;
    block-size: 100%;
    padding: var(--safe-block) var(--safe-inline);
    display: grid;
    grid-template-areas: "content";
}

.stage__safe > * {
    grid-area: content;
    min-block-size: 0;
}

/* Development aid: outlines the safe area. Toggle with
   document.documentElement.dataset.safeGuides = "on" — never on in show. */
:root[data-safe-guides="on"] .stage__safe {
    outline: 1px dashed color-mix(in srgb, var(--c-red-bright) 70%, transparent);
    outline-offset: calc(-1 * var(--px));
}

/* Phase 4 mounts the slideshow here. Inert and collapsed while empty. */
.deck:empty {
    display: none;
}


/* ==========================================================================
   5. CINEMATIC ENVIRONMENT  (BUILD_PLAN §6.3, §6.4, §8.3)
   --------------------------------------------------------------------------
   A purpose-built 16:9 composition, not the vertical poster reframed. Read
   bottom of the frame upward, the way the poster does:

       sky        deep navy falling to black overhead
       horizon    electric-blue light gathered at the ridge base. It is
                  painted BEFORE the ranges, so they cut into it as
                  silhouettes; painted after, it veils them into soft blobs
       ridges     two desert ranges, the far one hazed back — atmospheric
                  perspective is what gives a flat gradient depth
       ground     wet asphalt, with the horizon light smeared down it
       rail       a vertical blue light edge, the poster's blue line abstracted
       red rim    controlled, held to the outer frame as reflected light
       haze       one slow-drifting bloom, the only large moving element
       grain      fine steel texture
       vignette   keeps the projector's bright centre from falling off

   Every layer multiplies its opacity by --env-strength, so one attribute on
   the stage moves the whole composition between the opening slide and the
   deliberately quieter recognition slides.
   ========================================================================== */

.env {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.env > * {
    position: absolute;
    display: block;
}

/* --- sky ---------------------------------------------------------------- */

.env__sky {
    inset: 0;
    background-image:
        radial-gradient(
            140% 88% at 50% 118%,
            color-mix(in srgb, var(--c-navy-lift) 88%, transparent) 0%,
            transparent 58%
        ),
        linear-gradient(
            183deg,
            var(--c-black) 0%,
            var(--c-navy-deep) 34%,
            var(--c-navy) 66%,
            var(--c-navy-deep) 100%
        );
}

/* --- ridges ------------------------------------------------------------- */

/* ORIGINAL ARTWORK, embedded as data URIs and applied as masks, so the colour
   stays a theme token rather than being baked into a file.

   Embedded rather than referenced for one specific reason: Chrome blocks a
   mask-image that points at an .svg file when the page is opened from file://,
   as the offline package is. The masks silently failed and the ranges
   disappeared from the composition in exactly the fallback scenario §15 makes
   the primary one. A data URI is exempt from that rule, and it removes two
   requests from every load.

   The two paths are two desert ranges seen from the valley floor — a few large
   massifs with saddles between them, the far one hazed back. Neither is traced
   from, extracted from, or derived from the supplied conference poster. To
   reshape one, edit its `d` below; the viewBox height is the landform's
   drawing height and .env__ridge--far / --near set where it sits on the
   stage. */
.env__ridge {
    inset-inline: 0;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* Far range: taller peaks, higher base, hazed back. Atmospheric perspective
   is what gives two flat silhouettes depth. */
.env__ridge--far {
    inset-block-end: 28%;
    block-size: calc(420 * var(--px));
    opacity: calc(0.85 * var(--env-strength));
    background-color: color-mix(in srgb, var(--c-navy) 58%, var(--c-black));
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 460' preserveAspectRatio='none'><path fill='%23000' d='M0,460 L0,326 L86,300 L168,268 L246,214 L312,148 L372,96 L436,152 L498,206 L556,252 L628,286 L706,268 L778,226 L844,180 L906,134 L968,178 L1028,224 L1096,262 L1170,290 L1248,272 L1322,232 L1388,176 L1452,118 L1516,168 L1578,218 L1648,258 L1726,288 L1808,300 L1878,318 L1920,330 L1920,460 Z'/></svg>");
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 460' preserveAspectRatio='none'><path fill='%23000' d='M0,460 L0,326 L86,300 L168,268 L246,214 L312,148 L372,96 L436,152 L498,206 L556,252 L628,286 L706,268 L778,226 L844,180 L906,134 L968,178 L1028,224 L1096,262 L1170,290 L1248,272 L1322,232 L1388,176 L1452,118 L1516,168 L1578,218 L1648,258 L1726,288 L1808,300 L1878,318 L1920,330 L1920,460 Z'/></svg>");
}

/* Near range: lower, near-black, the silhouette that reads as foreground and
   sets the horizon line the ground reflects from. Its peaks must sit clearly
   below the far range's or the two collapse into one outline. */
.env__ridge--near {
    inset-block-end: 24%;
    block-size: calc(340 * var(--px));
    opacity: var(--env-strength);
    background-color: #010307;
    -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 380' preserveAspectRatio='none'><path fill='%23000' d='M0,380 L0,318 L74,306 L152,278 L228,236 L296,190 L362,232 L430,272 L508,300 L590,314 L668,300 L742,270 L812,228 L878,184 L944,150 L1010,190 L1078,232 L1154,268 L1238,296 L1320,308 L1398,294 L1470,262 L1538,222 L1606,182 L1672,222 L1740,262 L1816,292 L1880,308 L1920,316 L1920,380 Z'/></svg>");
    mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 380' preserveAspectRatio='none'><path fill='%23000' d='M0,380 L0,318 L74,306 L152,278 L228,236 L296,190 L362,232 L430,272 L508,300 L590,314 L668,300 L742,270 L812,228 L878,184 L944,150 L1010,190 L1078,232 L1154,268 L1238,296 L1320,308 L1398,294 L1470,262 L1538,222 L1606,182 L1672,222 L1740,262 L1816,292 L1880,308 L1920,316 L1920,380 Z'/></svg>");
}

/* --- horizon light ------------------------------------------------------ */

/* Tight and bright. This is the light source the ranges are silhouetted
   against and the light the wet ground reflects, so it carries most of the
   depth in the frame. */
.env__horizon {
    inset-inline: 0;
    /* The bright core must land exactly on the ground line — which is the top
       of .env__ground — or the ground paints over it. */
    inset-block-end: 24%;
    block-size: 34%;
    opacity: calc(0.95 * var(--env-strength));
    background-image:
        radial-gradient(
            26% 56% at 50% 100%,
            color-mix(in srgb, var(--c-blue-pale) 78%, transparent) 0%,
            transparent 72%
        ),
        radial-gradient(
            74% 100% at 50% 100%,
            color-mix(in srgb, var(--c-blue) 52%, transparent) 0%,
            color-mix(in srgb, var(--c-blue-deep) 24%, transparent) 44%,
            transparent 84%
        );
}

/* --- wet ground --------------------------------------------------------- */

.env__ground {
    inset-inline: 0;
    inset-block-end: 0;
    block-size: 24%;
    opacity: var(--env-strength);
    background-image:
        /* the horizon light smeared down the wet surface — narrow and long,
           the way a light source reflects off standing water */
        radial-gradient(
            13% 150% at 50% -4%,
            color-mix(in srgb, var(--c-blue-pale) 46%, transparent) 0%,
            transparent 78%
        ),
        radial-gradient(
            42% 118% at 50% -2%,
            color-mix(in srgb, var(--c-blue) 34%, transparent) 0%,
            transparent 74%
        ),
        /* a cooler pool to the left, the red rim bleeding in at the right */
        radial-gradient(
            26% 86% at 15% 0%,
            color-mix(in srgb, var(--c-blue-deep) 42%, transparent) 0%,
            transparent 72%
        ),
        radial-gradient(
            24% 76% at 89% 0%,
            color-mix(in srgb, var(--c-red) 20%, transparent) 0%,
            transparent 74%
        ),
        linear-gradient(
            180deg,
            #0a1526 0%,
            #04080f 62%,
            var(--c-black) 100%
        );
}

/* The horizon line itself: a hard, thin edge where ground meets ridge base.
   Without it the two gradients blend and the frame loses its ground plane. */
.env__ground::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    block-size: max(1px, calc(2 * var(--px)));
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        color-mix(in srgb, var(--c-blue-bright) 55%, transparent) 26%,
        color-mix(in srgb, var(--c-blue-pale) 85%, transparent) 50%,
        color-mix(in srgb, var(--c-blue-bright) 45%, transparent) 72%,
        transparent 100%
    );
}

/* Reflection streaks. Horizontal, uneven, low contrast — asphalt sheen, not
   a pattern. */
.env__ground::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: repeating-linear-gradient(
        180deg,
        rgb(255 255 255 / 0.028) 0px,
        rgb(255 255 255 / 0.028) calc(1 * var(--px)),
        transparent calc(1 * var(--px)),
        transparent calc(7 * var(--px))
    );
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

/* --- blue light rail ---------------------------------------------------- */

/* The poster's blue line, abstracted to an edge light. Deliberately NOT a
   flag: no stars, no stripes, no insignia. */
.env__rail {
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: calc(190 * var(--px));
    opacity: calc(0.9 * var(--env-strength));
    background-image: linear-gradient(
        90deg,
        color-mix(in srgb, var(--c-blue) 46%, transparent) 0%,
        color-mix(in srgb, var(--c-blue-deep) 22%, transparent) 26%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 72%, transparent 100%);
}

.env__rail::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    inline-size: calc(4 * var(--px));
    background-color: var(--c-blue-bright);
    box-shadow: 0 0 calc(40 * var(--px)) calc(6 * var(--px)) color-mix(in srgb, var(--c-blue) 60%, transparent);
}

/* --- controlled red rim ------------------------------------------------- */

.env__rim {
    inset-block: 0;
    inset-inline-end: 0;
    inline-size: calc(300 * var(--px));
    opacity: calc(0.75 * var(--env-strength));
    background-image: linear-gradient(
        270deg,
        color-mix(in srgb, var(--c-red) 26%, transparent) 0%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(180deg, transparent 8%, #000 58%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 8%, #000 58%, #000 88%, transparent 100%);
}

/* --- atmosphere --------------------------------------------------------- */

.env__haze {
    inset-block-start: -18%;
    inset-inline-start: -14%;
    inline-size: 74%;
    block-size: 96%;
    border-radius: 50%;
    opacity: calc(0.5 * var(--env-strength));
    background-image: radial-gradient(
        closest-side,
        color-mix(in srgb, var(--c-blue) 26%, transparent) 0%,
        transparent 100%
    );
    filter: blur(calc(60 * var(--px)));
    animation: env-drift var(--t-haze) var(--ease-cinematic) infinite alternate;
}

@keyframes env-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(calc(120 * var(--px)), calc(42 * var(--px)), 0) scale(1.12);
    }
}

.env__grain {
    inset: 0;
    opacity: calc(0.45 * var(--env-strength));
    background-image: repeating-linear-gradient(
        0deg,
        rgb(255 255 255 / 0.014) 0px,
        rgb(255 255 255 / 0.014) 1px,
        transparent 1px,
        transparent 3px
    );
}

.env__vignette {
    inset: 0;
    background-image: radial-gradient(
        112% 112% at 50% 44%,
        transparent 46%,
        rgb(2 4 9 / 0.72) 100%
    );
}

/* §8.3 and §14: motion is replaced, not merely slowed. */
@media (prefers-reduced-motion: reduce) {
    .env__haze {
        animation: none;
    }
}


/* ==========================================================================
   6. METALLIC DISPLAY TYPE  (BUILD_PLAN §6.3, §6.5)
   --------------------------------------------------------------------------
   Major conference headings only. Never small supporting text.

   The gradient is doing one specific thing: the hard dark band at 52% is the
   reflected horizon, and it is what makes brushed steel read as steel rather
   than as a grey gradient. Above it the glyph reflects sky, below it ground.

   Falls back to flat silver where background-clip: text is unavailable, so a
   heading can never disappear on a venue laptop.
   ========================================================================== */

.metal {
    color: var(--c-silver);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .metal {
        background-image:
            /* the travelling highlight (§8.3 "light sweeps across metallic
               elements") */
            linear-gradient(
                104deg,
                transparent 40%,
                rgb(255 255 255 / 0.62) 47%,
                rgb(255 255 255 / 0.18) 51%,
                transparent 58%
            ),
            /* the metal itself */
            linear-gradient(
                180deg,
                #8fa0b2 0%,
                #e9f1f8 14%,
                #ffffff 30%,
                #cdd9e5 45%,
                #63768c 52%,
                #9cadbf 58%,
                #f4f8fc 74%,
                #c2cedb 88%,
                #7f90a3 100%
            );
        background-size: 260% 100%, 100% 100%;
        background-position: -80% 0, 0 0;
        background-repeat: no-repeat;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        /* Bevel: a light edge above, a cast shadow below. drop-shadow follows
           the glyph alpha, so it works on background-clipped text. */
        filter:
            drop-shadow(0 calc(-1 * var(--px)) 0 rgb(255 255 255 / 0.22))
            drop-shadow(0 calc(3 * var(--px)) 0 rgb(3 6 12 / 0.55))
            drop-shadow(0 calc(10 * var(--px)) calc(26 * var(--px)) rgb(3 6 12 / 0.8));
        animation: metal-sweep var(--t-sweep) var(--ease-cinematic) infinite;
    }
}

@keyframes metal-sweep {
    0%,
    62% {
        background-position: -80% 0, 0 0;
    }
    100% {
        background-position: 180% 0, 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .metal {
        animation: none;
    }
}

/* Reduced-intensity metal, for the text lockup (§6.8). Present, but visibly
   quieter than the opening slide: narrower tonal range, no sweep, and dark
   enough to sit on the light recognition card.

   Self-contained on purpose. It is applied WITHOUT .metal, so it has to
   declare the clip and the transparent fill itself — inheriting them would
   paint a solid rectangle behind the words wherever .metal is absent. */
.metal--quiet {
    animation: none;
    color: var(--c-navy);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .metal--quiet {
        background-image: linear-gradient(
            180deg,
            #37506f 0%,
            #1b2c46 44%,
            #48607c 53%,
            #16243a 100%
        );
        background-size: 100% 100%;
        background-position: 0 0;
        background-repeat: no-repeat;
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: drop-shadow(0 calc(1 * var(--px)) 0 rgb(255 255 255 / 0.5));
    }
}


/* ==========================================================================
   7. RECOGNITION CARD  (BUILD_PLAN §6.7)
   --------------------------------------------------------------------------
   The single design decision that lets a mixed-provenance roster work. A
   white-ground JPEG and a transparent PNG land on this card looking identical
   and intentional — no keying, no halos, no eroded seal edges.

   THE CARD HUGS ITS MARK. §6.7: "Normalize visual weight through containers
   and padding rather than forcing identical dimensions." A fixed 840 x 380
   card strands a square county seal in an acre of white while a wordmark
   fills the same box edge to edge, and the two stop reading as one system.

   So the logo box is the MAXIMUM area, and the card sizes itself to what the
   mark actually occupies inside it:

       fit-w = min(box-w, box-h * ratio)      ratio = the mark's w/h, from
       fit-h = min(box-h, box-w / ratio)              partner-logos.generated.js

   The mark is therefore always drawn at exactly its `contain` fit inside
   840 x 380 — the same size tools/build-logos.mjs grades it at — so the card
   changing shape cannot silently invalidate a single quality grade in
   build-report/logo-report.md.

   Aspect-class padding sets the ring of air around the mark, not the mark's
   size. Optical weight between a wide wordmark and a compact seal is tuned
   per partner with `logoScale` in partners.js, which is where §6.7 and Phase
   5 both put it.

   The card is a single-track grid rather than `place-items: center`. A
   centred item does not stretch, so `block-size: 100%` on the image has no
   definite track to resolve against, silently falls back to auto, and a
   square seal overflows a short card and is clipped. One stretched
   `minmax(0, 1fr)` track gives object-fit a definite box to contain into.
   ========================================================================== */

.card {
    position: relative;
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);

    /* The mark's intrinsic w/h, written inline from the logo manifest.
       1 is a safe identity for a card with no mark. */
    --logo-ratio: 1;
    --fit-w: min(var(--logo-box-w), calc(var(--logo-box-h) * var(--logo-ratio)));
    --fit-h: min(var(--logo-box-h), calc(var(--logo-box-w) / var(--logo-ratio)));

    inline-size: calc(var(--fit-w) + 2 * var(--card-pad-inline));
    block-size: calc(var(--fit-h) + 2 * var(--card-pad-block));
    padding: var(--card-pad-block) var(--card-pad-inline);
    border-radius: var(--card-radius);
    background-color: var(--card-bg);
    box-shadow: var(--card-shadow);
    /* Thin steel/blue edge, drawn inside so it cannot alter the box size. */
    outline: max(1px, calc(1.5 * var(--px))) solid var(--card-edge);
    outline-offset: calc(-1.5 * var(--px));
    overflow: hidden;
}

/* A wide wordmark hugs to a thin card. Extra block padding keeps that card
   from reading as a sliver next to a compact seal's near-square one. */
.card[data-aspect="wide"] {
    --card-pad-block: calc(var(--card-frame) * 1.6);
}

.card[data-aspect="standard"] {
    --card-pad-block: calc(var(--card-frame) * 1.1);
}

.card[data-aspect="compact"] {
    --card-pad-block: var(--card-frame);
    --card-pad-inline: var(--card-frame);
}

/* For marks designed for a dark ground. Per-partner `panel` in partners.js. */
.card[data-panel="dark"] {
    background-color: var(--c-card-dark);
    outline-color: color-mix(in srgb, var(--c-blue-bright) 30%, transparent);
}

/* No panel at all — the mark sits directly on the cinematic background. */
.card[data-panel="none"] {
    background-color: transparent;
    box-shadow: none;
    outline: none;
}

.card__logo {
    inline-size: 100%;
    block-size: 100%;
    /* §6.6: preserve the original aspect ratio. Never crop, stretch,
       recolour, trace or redraw a partner logo. */
    object-fit: contain;
    object-position: center;
    scale: var(--logo-scale);
}

/* Missing-file path. A roster entry whose logo fails to resolve must never
   stop playback (§9); the engine swaps in the text lockup and logs a
   warning. This rule only keeps the gap from reading as a broken image
   between the failure and the swap. */
.card__logo:not([src]),
.card__logo[src=""] {
    visibility: hidden;
}


/* ==========================================================================
   8. TEXT LOCKUP  (BUILD_PLAN §6.8)
   --------------------------------------------------------------------------
   A deliberate design state, not a degraded one. Same card geometry, same
   position, same duration as a logo slide.

   Typography and a rule only. No invented monogram, shield, badge, crest or
   emblem — nobody in that room may mistake this for the organisation's actual
   mark. Line breaks come from `nameLines` in the data, never from the browser.
   ========================================================================== */

/* A lockup has no intrinsic ratio to hug, so it takes the full logo box.
   That makes it the widest card in the loop, which is correct: the name is
   doing the work a mark would do, and §6.8 requires the same geometry and
   position as a logo slide. */
.card--lockup {
    --card-pad-inline: calc(var(--card-frame) * 1.2);
    --card-pad-block: calc(var(--card-frame) * 0.8);
    inline-size: calc(var(--logo-box-w) + 2 * var(--card-pad-inline));
    block-size: calc(var(--logo-box-h) + 2 * var(--card-pad-block));
}

/* FITTING THE LOCKUP TO ITS CARD

   A lockup line must not wrap (the break is authored) and must not overflow
   (the card clips). With a fixed font size one of those always eventually
   breaks — the four disabled roster entries get longer confirmed names later,
   and a licensed display face would change every width.

   So the generator writes the longest authored line's character count onto
   the element as --lockup-chars, and each context sizes the type to fit:

       font-size = min(nominal, available-width / (chars * --lockup-fit-k))

   --lockup-fit-k is the per-character advance width as a fraction of font
   size. A character count cannot know WHICH characters: "Michael & Jenny"
   measures 0.705 per character in the current fallback face because it is
   full of narrow glyphs and spaces, while "Carla Ramos" is wider per
   character and overflowed its wall card by 3 px at 0.74. 0.80 clears the
   widest name on the roster with room left, at the cost of setting a name
   made of narrow letters slightly smaller than it could be.

   This is now the STARTING value, not the final one. presentation.js measures
   each mounted line with a Range and scales the type to fit exactly, so in the
   slideshow the estimate only has to be close enough not to flash. It is still
   the only fit the no-JavaScript wall gets — tools/lib/render.mjs generates
   that without a browser and cannot measure anything — so keep it calibrated,
   and re-measure this number if a licensed display face is adopted. */
:root {
    --lockup-fit-k: 0.8;
}

.lockup {
    --lockup-chars: 12;
    place-self: center;
    display: flex;
    flex-direction: column;
    gap: 0.1em;
    margin: 0;
    color: var(--c-navy);
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: var(--tracking-lockup);
    text-align: center;
    text-transform: uppercase;
}

/* nameLines is a design decision recorded in the data (§6.8). Letting the
   browser re-wrap an authored line turns a two-line lockup into three and
   defeats the point of authoring it. */
.lockup__line {
    display: block;
    white-space: nowrap;
}

.card[data-panel="dark"] .lockup {
    color: var(--fg-secondary);
}


/* ==========================================================================
   9. SLIDE SYSTEM  (BUILD_PLAN §8.1, §6.4)
   --------------------------------------------------------------------------
   Four states, one composition language:

     opening    richest environment, metallic conference identity
     partner    same world at --env-strength 0.45; the mark is dominant and
                the negative space around it is the point (§6.3)
     lockup     identical geometry to `partner`; only the card's contents
                differ, so the loop rhythm does not break (§6.8)
     wall       balanced, orderly grid, restrained background (§6.4)

   Phase 4 supplies enter/exit transitions, timing and preloading. These rules
   describe a slide at rest.
   ========================================================================== */

.slide {
    display: grid;
    block-size: 100%;
    min-block-size: 0;
}

.slide__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    block-size: 100%;
    min-block-size: 0;
    /* A quiet band at the foot of every slide, reserved for the operator
       controls (§8.4). Slide content stops above it, so the controls can
       appear without covering an organization's category label — and because
       the band is permanent, nothing moves when they appear or hide, which
       §13 requires. */
    padding-block-end: var(--control-reserve);
    text-align: center;
}

/* --- shared parts ------------------------------------------------------- */

.eyebrow {
    color: var(--fg-accent);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    text-shadow: 0 0 calc(24 * var(--px)) color-mix(in srgb, var(--c-blue) 65%, transparent);
}

/* The restrained divider carried over from icgic.org, rendered in the
   conference artwork's blue rather than the website's gold. */
.rule {
    display: block;
    inline-size: calc(240 * var(--px));
    block-size: max(1px, calc(2 * var(--px)));
    border: 0;
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        var(--rule-ink) 22%,
        var(--c-blue-bright) 50%,
        var(--rule-ink) 78%,
        transparent 100%
    );
}

.rule--wide {
    inline-size: calc(520 * var(--px));
}

/* --- opening slide (§8.1 step 1) ---------------------------------------- */

.slide--opening .slide__inner,
.slide--closing .slide__inner {
    gap: var(--sp-5);
}

.hero {
    max-inline-size: 22ch;
    font-family: var(--font-display);
    font-size: var(--fs-hero);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: var(--tracking-display);
    text-transform: uppercase;
}

.conference {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
}

.conference__name {
    /* Wide enough that the closing slide's three-part message sets on one
       line rather than breaking after a separator, and still narrow enough
       that the opening slide's conference name breaks to two. */
    max-inline-size: 48ch;
    text-wrap: balance;
    color: var(--fg-secondary);
    font-size: var(--fs-lede);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.conference__meta {
    color: var(--fg-muted);
    font-size: var(--fs-meta);
    font-weight: 500;
}

/* --- individual recognition slide (§8.1 step 2) -------------------------- */

/* Three rows of FIXED height for the eyebrow and the identification block,
   with the card floating in the flexible middle.

   The fixed outer rows are the point: a logo slide carries a two-line
   organization name and a text-lockup slide carries none, and §6.8 requires
   the card to hold the same position either way. Auto-sized rows would let
   that difference slide the mark up and down as the loop advances. */
.slide--partner .slide__inner {
    display: grid;
    grid-template-rows: calc(58 * var(--px)) minmax(0, 1fr) calc(272 * var(--px));
    justify-items: center;
    align-items: center;
}

.recognition__stage {
    display: grid;
    place-items: center;
    min-block-size: 0;
}

/* Bottom-aligned inside its fixed row, so the category label lands on exactly
   the same line on every slide in the loop and the rule sits directly above
   it — whether the name above runs to one line, two, or (on a text lockup,
   where the name is inside the card) none at all. Top-aligning would make
   that label walk up and down the frame as the loop advances. */
.recognition__id {
    align-self: end;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
    padding-block-end: var(--sp-6);
}

.recognition__name {
    max-inline-size: 24ch;
    color: var(--fg-primary);
    font-family: var(--font-display);
    font-size: var(--fs-slide-name);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: var(--tracking-display);
    text-transform: uppercase;
    /* A soft blue bloom, not a metallic treatment: the name is content, and
       §6.5 keeps the metal for conference identity. */
    text-shadow:
        0 calc(3 * var(--px)) calc(10 * var(--px)) rgb(3 6 12 / 0.75),
        0 0 calc(64 * var(--px)) color-mix(in srgb, var(--c-blue) 34%, transparent);
}

.recognition__category {
    color: var(--c-blue-pale);
    font-size: var(--fs-slide-label);
    font-weight: 700;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

/* An approved per-partner line (`message` in partners.js). Deliberately the
   quietest text on the slide: sentence case, no tracking, no uppercase, so it
   reads as a note about the organisation rather than a second label competing
   with the category above it. */
.recognition__note {
    max-inline-size: 34ch;
    margin-block-start: var(--sp-2);
    color: var(--fg-secondary);
    font-size: var(--fs-slide-note);
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    text-wrap: balance;
}

/* The mark gets the edge light; nothing about it moves (§8.3). */
.recognition__stage .card {
    box-shadow: var(--card-shadow), var(--card-glow);
}

.recognition__stage .lockup {
    font-size: min(
        var(--fs-slide-lockup),
        calc(var(--logo-box-w) / (var(--lockup-chars) * var(--lockup-fit-k)))
    );
}

/* --- collective recognition wall (§8.1 step 3) --------------------------- */

/* Page size is settings.wallItemsPerPage and page count is
   ceil(enabledCount / wallItemsPerPage) — both computed from partners.js,
   never written here (§9, §19 rule 22). */
.slide--wall .slide__inner {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    justify-items: center;
    row-gap: var(--sp-5);
}

.wallpage__title {
    max-inline-size: 30ch;
    font-family: var(--font-display);
    font-size: var(--fs-title);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: var(--tracking-display);
    text-transform: uppercase;
}

.wallpage__grid {
    display: grid;
    inline-size: 100%;
    block-size: 100%;
    min-block-size: 0;
    gap: var(--sp-6) var(--sp-5);
    align-content: center;
}

.wallpage__item {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: var(--sp-3);
    min-block-size: 0;
}

/* A size container, so the card can hug its mark here exactly as it does on
   an individual slide (§6.7). The cell is the available area; the card takes
   only what its mark actually occupies inside it, and centres in the rest.
   Without this the wall would be a grid of identical white rectangles with
   square seals adrift in them — the one thing the card was meant to avoid. */
.wallpage__cell {
    container-type: size;
    display: grid;
    place-items: center;
    min-block-size: 0;
}

.wallpage__cell .card {
    --card-frame: calc(16 * var(--px));
    --logo-box-w: calc((100cqw - 2 * var(--card-pad-inline)) * var(--wall-fit));
    --logo-box-h: calc(100cqh - 2 * var(--card-pad-block));
    --wall-fit: 1;
}

/* Optical weight, by aspect class (§6.7).

   A wall cell is far wider than it is tall, so a plain `contain` fit hands a
   3:1 wordmark roughly three times the width of a square county seal and the
   two stop reading as equally important. Holding the wide classes in by width
   closes that to about 1.4x.

   This is safe to do HERE and not on an individual slide: §11.5 defines the
   quality grade against the individual-slide logo box, so changing a mark's
   drawn size on the wall cannot invalidate a grade in the build report. The
   multiplier only bites for a mark wider than its cell — a mark fitted by
   height is already limited by the cell and ignores it. */
.wallpage__cell .card[data-aspect="standard"] {
    --wall-fit: 0.85;
}

.wallpage__cell .card[data-aspect="wide"] {
    --wall-fit: 0.7;
}

.wallpage__item .lockup {
    font-size: min(
        var(--fs-wall-lockup),
        calc(
            (100cqw - 2 * var(--card-pad-inline))
            / (var(--lockup-chars) * var(--lockup-fit-k))
        )
    );
}

.wallpage__name {
    color: var(--fg-secondary);
    font-size: var(--fs-wall-name);
    font-weight: 700;
    line-height: 1.14;
}

.wallpage__caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
    min-block-size: calc(var(--fs-wall-name) * 2.3);
}

.wallpage__category {
    color: var(--fg-muted);
    font-size: var(--fs-wall-label);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

.wallpage__pager {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    color: var(--fg-muted);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

.wallpage__dots {
    display: flex;
    gap: var(--sp-2);
}

.wallpage__dot {
    inline-size: calc(9 * var(--px));
    block-size: calc(9 * var(--px));
    border-radius: 50%;
    background-color: var(--rule-quiet);
}

.wallpage__dot[data-current] {
    background-color: var(--c-blue-bright);
    box-shadow: 0 0 calc(14 * var(--px)) color-mix(in srgb, var(--c-blue) 70%, transparent);
}


/* ==========================================================================
   10. STATIC RECOGNITION WALL
   --------------------------------------------------------------------------
   The no-JavaScript view (BUILD_PLAN §14). Every enabled partner on one
   page, in roster order, with the conference identity and an explanatory
   message. It is a document, not a slideshow: no pagination, no timers, no
   scripts.

   The markup between the BEGIN/END GENERATED markers in index.html is written
   by tools/build-static-wall.mjs from assets/js/partners.js, so this view
   cannot drift out of step with the roster and no partner count is
   hard-coded (§9, §19 rule 22).

   Phase 4 adds `presentation-active` to <html> once the engine has booted,
   which hides this wall and reveals the deck. If the engine ever fails to
   boot, the class is never added and the audience sees the full partner list
   instead of an empty frame.
   ========================================================================== */

.wall {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    block-size: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--c-steel) transparent;
}

.wall__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    text-align: center;
}

.wall__eyebrow {
    color: var(--fg-accent);
    font-size: var(--fs-label);
    font-weight: 700;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

.wall__title {
    /* Sized in ch so the line count is identical at every stage size — the
       balanced two-line break does not change between 1280x720 and 4K. */
    max-inline-size: 34ch;
    font-family: var(--font-display);
    font-size: var(--fs-title);
    font-weight: 900;
    letter-spacing: var(--tracking-display);
    line-height: 1.04;
    text-transform: uppercase;
}

.wall__meta {
    color: var(--fg-muted);
    font-size: var(--fs-meta);
    font-weight: 500;
}

.wall__lede {
    position: relative;
    margin-block-start: var(--sp-2);
    padding-block-start: var(--sp-3);
    color: var(--fg-secondary);
    font-size: var(--fs-lede);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.wall__lede::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 50%;
    inline-size: calc(220 * var(--px));
    block-size: max(1px, calc(2 * var(--px)));
    translate: -50% 0;
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        var(--rule-ink) 22%,
        var(--c-blue-bright) 50%,
        var(--rule-ink) 78%,
        transparent 100%
    );
}

.wall__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--wall-col-min), 1fr));
    gap: var(--wall-gap-row) var(--wall-gap-col);
    align-content: start;
    justify-content: center;
}

.partner {
    display: grid;
    grid-template-rows: auto auto;
    gap: var(--sp-3);
}

/* Tiles are sized by the grid column, not by the logo box, so the card hugs
   its mark inside the cell exactly as it does on a slide (§6.7). */
.partner__cell {
    container-type: size;
    display: grid;
    place-items: center;
    block-size: var(--wall-card-h);
    min-block-size: 0;
}

.partner__cell .card {
    --card-frame: calc(12 * var(--px));
    --logo-box-w: calc((100cqw - 2 * var(--card-pad-inline)) * var(--wall-fit));
    --logo-box-h: calc(100cqh - 2 * var(--card-pad-block));
    --wall-fit: 1;
}

.partner__cell .card[data-aspect="standard"] {
    --wall-fit: 0.85;
}

.partner__cell .card[data-aspect="wide"] {
    --wall-fit: 0.7;
}

.partner .lockup {
    font-size: min(
        var(--fs-tile-lockup),
        calc(
            (100cqw - 2 * var(--card-pad-inline))
            / (var(--lockup-chars) * var(--lockup-fit-k))
        )
    );
}

.partner__caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
    /* Two name lines plus the category label, so every tile in a row shares a
       baseline whether its name wraps or not, and whether it is a logo tile
       or a lockup tile (which carries its name inside the card). */
    min-block-size: calc(var(--fs-tile-name) * 2.3 + var(--fs-tile-label) * 1.3);
    text-align: center;
}

.partner__name {
    color: var(--fg-secondary);
    font-size: var(--fs-tile-name);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: 0.01em;
}

.partner__category {
    color: var(--fg-muted);
    font-size: var(--fs-tile-label);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
}

.wall__footer {
    padding-block-start: var(--sp-3);
    border-block-start: max(1px, calc(1 * var(--px))) solid var(--rule-quiet);
    color: var(--fg-muted);
    font-size: var(--fs-label);
    text-align: center;
}

.wall__note {
    margin-block-start: var(--sp-2);
}

/* Shown only when JavaScript is unavailable (§14). */
.noscript-banner {
    margin-block-end: var(--sp-4);
    padding: var(--sp-3) var(--sp-5);
    border-radius: calc(8 * var(--px));
    border: max(1px, calc(1 * var(--px))) solid var(--rule-ink);
    background-color: color-mix(in srgb, var(--c-navy-lift) 40%, transparent);
    color: var(--fg-secondary);
    font-size: var(--fs-label);
    text-align: center;
}


/* ==========================================================================
   11. UTILITIES
   ========================================================================== */

.visually-hidden:not(:focus):not(:active) {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}


/* ==========================================================================
   12. ENGINE HANDOVER
   --------------------------------------------------------------------------
   The contract between the static foundation and assets/js/presentation.js.
   ========================================================================== */

/* Set by the engine only once it has booted AND the first slide's assets have
   decoded. Until then — and forever, if the engine throws, if the data file is
   missing, or if JavaScript is unavailable — the static wall is what the room
   sees. The engine never removes the wall before it has something to show. */
:root.presentation-active .wall {
    display: none;
}


/* ==========================================================================
   13. PLAYBACK  (BUILD_PLAN §8.3, §8.4, §13, §14)
   ========================================================================== */

/* --- the deck ----------------------------------------------------------- */

/* One stacking area. Slides occupy the same cell, so a crossfade needs no
   absolute positioning and no layout recalculation mid-transition (§13: avoid
   layout shifts after playback begins). */
.deck {
    display: grid;
    grid-template-areas: "slide";
    block-size: 100%;
    min-block-size: 0;
}

.deck:empty {
    display: none;
}

.deck > * {
    grid-area: slide;
    min-block-size: 0;
}

/* --- transitions -------------------------------------------------------- */

/* §8.3 requires 600-900 ms and that "outgoing and incoming slides cannot
   overlap in a visually confusing way". A plain symmetric crossfade does
   overlap: for roughly 300 ms two organization names are legible at once,
   which on a recognition display reads as a fault.

   So the two halves are offset inside one --t-transition budget. The outgoing
   slide clears over the first 55%; the incoming arrives over the last 55%.
   They meet in a narrow sliver where both are near-transparent, which reads as
   a dissolve through the background rather than as double vision. */
.slide {
    opacity: 0;
}

.slide[data-state="active"] {
    opacity: 1;
    transition: opacity calc(var(--t-transition) * 0.55) var(--ease-cinematic)
                calc(var(--t-transition) * 0.45);
}

.slide[data-state="leaving"] {
    opacity: 0;
    pointer-events: none;
    transition: opacity calc(var(--t-transition) * 0.55) var(--ease-cinematic);
}

/* A small depth shift on the supporting text only (§8.3). Never on the card:
   §8.3 forbids zooming a partner logo, and a mark that settles into place
   reads as an effect applied TO the organization rather than to the slide. */
.slide .eyebrow,
.slide .conference,
.slide .recognition__id,
.slide .wallpage__pager {
    translate: 0 calc(12 * var(--px));
}

.slide[data-state="active"] .eyebrow,
.slide[data-state="active"] .conference,
.slide[data-state="active"] .recognition__id,
.slide[data-state="active"] .wallpage__pager {
    translate: 0 0;
    transition: translate calc(var(--t-transition) * 0.8) var(--ease-out)
                calc(var(--t-transition) * 0.45);
}

@media (prefers-reduced-motion: reduce) {
    .slide .eyebrow,
    .slide .conference,
    .slide .recognition__id,
    .slide .wallpage__pager {
        translate: none;
    }
}

/* --- branded loading state (§13) ---------------------------------------- */

.boot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    block-size: 100%;
    text-align: center;
}

.boot__label {
    color: var(--fg-muted);
    font-size: var(--fs-meta);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.boot__track {
    position: relative;
    display: block;
    inline-size: calc(360 * var(--px));
    block-size: max(2px, calc(3 * var(--px)));
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--rule-quiet);
}

.boot__fill {
    position: absolute;
    inset-block: 0;
    inline-size: 38%;
    border-radius: inherit;
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        var(--c-blue-bright) 50%,
        transparent 100%
    );
    animation: boot-sweep 1.5s var(--ease-cinematic) infinite;
}

@keyframes boot-sweep {
    from { inset-inline-start: -40%; }
    to { inset-inline-start: 100%; }
}

/* Motion is replaced, not slowed (§8.3, §14). A static three-quarter bar still
   reads as "working", with nothing moving. */
@media (prefers-reduced-motion: reduce) {
    .boot__fill {
        animation: none;
        inset-inline-start: 0;
        inline-size: 75%;
    }
}

/* --- operator controls (§8.4, §14) -------------------------------------- */

/* Quiet and functional. Deliberately not the poster's typography — these
   belong to the operator, not to the presentation (§6.4). */
.controls {
    position: absolute;
    z-index: 10;
    inset-inline: 0;
    inset-block-end: calc(var(--safe-block) * 0.34);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    /* visibility, not opacity alone, so hidden controls leave the tab order */
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--t-ui) var(--ease-out), visibility var(--t-ui);
}

.controls[data-visible] {
    visibility: visible;
    opacity: 1;
}

.controls__bar {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    border-radius: 999px;
    border: max(1px, calc(1 * var(--px))) solid color-mix(in srgb, var(--c-steel-light) 28%, transparent);
    background-color: rgb(4 9 18 / 0.82);
    backdrop-filter: blur(calc(10 * var(--px)));
}

.controls__button {
    display: grid;
    place-items: center;
    inline-size: calc(44 * var(--px));
    block-size: calc(44 * var(--px));
    min-inline-size: 34px;
    min-block-size: 34px;
    border-radius: 50%;
    color: var(--fg-secondary);
    transition: background-color var(--t-ui), color var(--t-ui);
}

.controls__button:hover {
    background-color: color-mix(in srgb, var(--c-blue) 28%, transparent);
    color: var(--c-silver-hi);
}

.controls__button:focus-visible {
    outline: max(2px, calc(2 * var(--px))) solid var(--c-blue-bright);
    outline-offset: calc(2 * var(--px));
}

.controls__button svg {
    inline-size: 52%;
    block-size: 52%;
    fill: currentColor;
}

.controls__status {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding-inline: var(--sp-3);
    color: var(--fg-muted);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

/* Slide progress. The engine writes the width each frame, so it carries no
   transition of its own — a transition would lag the real dwell and mislead
   the operator about when the slide turns. */
.controls__progress {
    inline-size: calc(560 * var(--px));
    block-size: max(2px, calc(3 * var(--px)));
    overflow: hidden;
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--c-steel-light) 22%, transparent);
}

.controls__elapsed {
    display: block;
    block-size: 100%;
    inline-size: 0;
    border-radius: inherit;
    background-color: var(--c-blue-bright);
}

/* Do not leave a mouse cursor sitting on a projected image once the controls
   have hidden themselves again. */
.stage[data-idle] {
    cursor: none;
}
