/* ==========================================================================
   LIAMS public site
   --------------------------------------------------------------------------
   Design idea: THE SURVEY SHEET.

   The Ministry's own artefact is a cadastral plan — hairline rules, a title
   block, corner ticks, a north arrow, bearings set in a monospaced hand. The
   site is composed the same way rather than as a generic product landing page:
   sections are framed like sheet panels, data is set in mono because on a plan
   sheet data always is, and the accent is survey brass, the colour of the cap
   on a boundary pillar.

   Deliberately a SINGLE committed theme. A state register is a brand-controlled
   surface, so every colour is painted explicitly and nothing is left to inherit
   from the visitor's preference — the page looks the same on every machine.

   Standalone by design: this file and site.js are the entire front end. Nothing
   here depends on the staff application's Vite bundle, so the public site can
   never be broken by a build step that was not run.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */
:root {
    /* Ground and ink. The dark is green-biased rather than neutral black —
       Sahel night, not a default #111. */
    --ink:        #08150E;
    --ink-2:      #0E2418;
    --ink-3:      #16341F;

    /* Institutional green through to the live, interactive green. */
    --field:      #0F4D2A;
    --field-deep: #0A3A1F;
    --verdant:    #2FA35F;
    --verdant-lo: #E7F4EC;

    /* The one bold colour: survey brass. Beacon caps, seals, plan annotations.
       Used on a handful of marks per page and nowhere as a large fill. */
    --brass:      #C9922E;
    --brass-lo:   #F7EEDC;

    /* Drafting paper, with a faint green cast so it sits with the greens. */
    --paper:      #F6F7F3;
    --paper-2:    #FFFFFF;
    --paper-3:    #EDEFE8;

    /* Neutrals biased toward the accent, so they read as chosen. */
    --slate:      #5A6B60;
    --slate-lo:   #8C9A91;
    --rule:       #DCE0D6;
    --rule-dark:  rgba(255, 255, 255, .14);

    /* Semantic, kept separate from the brand accent. */
    --good:       #1E7C42;
    --good-lo:    #E4F3E9;
    --warn:       #B4700E;
    --warn-lo:    #FBF0DC;
    --bad:        #A32020;
    --bad-lo:     #FAE7E7;
    --cool:       #1F5F8B;
    --cool-lo:    #E4EFF6;

    --shadow-sm:  0 1px 2px rgba(8, 21, 14, .06);
    --shadow:     0 6px 24px -8px rgba(8, 21, 14, .16), 0 2px 6px rgba(8, 21, 14, .05);
    --shadow-lg:  0 28px 60px -22px rgba(8, 21, 14, .32);

    --shell:      1220px;
    --gut:        clamp(1.15rem, 4vw, 2.75rem);
    --radius:     14px;
    --radius-sm:  9px;

    --ease:       cubic-bezier(.22, .8, .3, 1);

    /* Requested: one sans-serif family (Inter) throughout the public site. All
       three roles point at the same stack; --font-mono keeps 'tabular-nums'
       applied at its call sites (see .mono) so columns of figures still line up
       even though the face itself is no longer a true monospace. */
    --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ------------------------------------------------------------ 2. FOUNDATION */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 2.5px solid var(--brass);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Icons. One sizing knob, currentColor throughout, hairline to match the sheet. */
.ico {
    width: 1.25em; height: 1.25em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
    vertical-align: -.22em;
}
.ico-lg { width: 1.7em; height: 1.7em; stroke-width: 1.5; }

/* ------------------------------------------------------------- 3. TYPOGRAPHY */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.015em;
    text-wrap: balance;
    margin: 0 0 .5em;
    font-variation-settings: 'SOFT' 0, 'WONK' 0;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.85rem); letter-spacing: -.022em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.03rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.24rem);
    line-height: 1.62;
    color: var(--slate);
    max-width: 62ch;
}
.measure { max-width: 66ch; }

/* Data voice: identifiers, coordinates, fees, counts. Tabular so columns line up. */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* --------------------------------------------------------------- 4. LAYOUT */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.shell-wide { max-width: 1440px; }

.band { padding-block: clamp(3.6rem, 8vw, 6.5rem); position: relative; }
.band-paper { background: var(--paper); }
.band-paper-2 { background: var(--paper-2); }
.band-sunk { background: var(--paper-3); }

/* Dark bands carry the survey graticule: a 40px coordinate grid at very low
   contrast, the way a plan sheet is gridded before anything is drawn on it. */
.band-ink {
    background: var(--ink);
    color: #EAF0EA;
}
.band-ink::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
            mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 20%, transparent 78%);
}
.band-ink > * { position: relative; z-index: 1; }
.band-ink h1, .band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .lede { color: rgba(234, 240, 234, .74); }

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.9rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row-tight { gap: .45rem; }
.push { margin-left: auto; }

/* ------------------------------------------------- 5. SECTION HEAD / SHEET MARKS */
/* The eyebrow is set like a plan annotation: mono, spaced, preceded by a brass
   tick. Where a section genuinely IS a sequence (the steps of a search, the
   stages of an application) the tick is replaced by a numeral — numbering is
   only used where order actually carries meaning. */
.sec-head { margin-bottom: clamp(1.9rem, 4vw, 3.1rem); max-width: 74ch; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .lede { margin-inline: auto; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
    letter-spacing: .19em; text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: ''; width: 26px; height: 1px; background: currentColor; opacity: .65; flex: none;
}
.band-ink .eyebrow { color: var(--brass); }

.sec-head h2 { margin-bottom: .55rem; }

/* Corner ticks: the registration marks at the corners of a drawing sheet. */
.ticked { position: relative; }
.ticked::before, .ticked::after {
    content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none;
    border-color: var(--brass); opacity: .55;
}
.ticked::before { top: -1px; left: -1px; border-top: 1.5px solid; border-left: 1.5px solid; }
.ticked::after { bottom: -1px; right: -1px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

/* ------------------------------------------------------------ 6. NAVIGATION */
.nav {
    position: sticky; top: 0; z-index: 90;
    background: rgba(8, 21, 14, .0);
    transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    border-bottom: 1px solid transparent;
}
.nav-inner {
    display: flex; align-items: center; gap: 1.4rem;
    height: 82px;
    transition: height .35s var(--ease);
}
.nav.is-stuck {
    background: rgba(246, 247, 243, .93);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
            backdrop-filter: saturate(1.6) blur(14px);
    border-bottom-color: var(--rule);
    box-shadow: 0 1px 20px rgba(8, 21, 14, .06);
}
.nav.is-stuck .nav-inner { height: 66px; }

.brand { display: flex; align-items: center; gap: .8rem; flex: none; }
.brand img { height: 46px; width: auto; transition: height .35s var(--ease); }
.nav.is-stuck .brand img { height: 38px; }
.brand-txt { line-height: 1.15; }
.brand-txt .b1 {
    font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -.02em;
    color: #fff; transition: color .35s var(--ease);
}
.brand-txt .b2 {
    font-family: var(--font-mono); font-size: .58rem; letter-spacing: .17em; text-transform: uppercase;
    color: rgba(255, 255, 255, .6); transition: color .35s var(--ease);
}
.nav.is-stuck .brand-txt .b1 { color: var(--ink); }
.nav.is-stuck .brand-txt .b2 { color: var(--slate-lo); }

.nav-links { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.nav-link {
    position: relative;
    padding: .55rem .85rem; border-radius: var(--radius-sm);
    font-size: .93rem; font-weight: 550;
    color: rgba(255, 255, 255, .82);
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav.is-stuck .nav-link { color: var(--slate); }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.nav.is-stuck .nav-link:hover { color: var(--ink); background: var(--paper-3); }

/* The active page is marked with a brass underscore that draws in — the same
   gesture as a line being plotted. */
.nav-link.is-active { color: #fff; }
.nav.is-stuck .nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after {
    content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .22rem;
    height: 2px; background: var(--brass); border-radius: 2px;
    transform-origin: left; animation: drawIn .5s var(--ease) both;
}
@keyframes drawIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.nav-cta { margin-left: .5rem; display: flex; align-items: center; gap: .5rem; }
.btn.nav-register { color: #F8FAFC; border-color: rgba(248, 250, 252, .45); }
.btn.nav-register:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); color: #fff; }
.nav.is-stuck .btn.nav-register { color: var(--ink); border-color: var(--rule); }
.nav.is-stuck .btn.nav-register:hover { background: var(--verdant-lo); border-color: var(--field); }

.drawer-cta { margin-top: 2rem; display: grid; gap: .7rem; }
.drawer-note { font-size: .84rem; color: rgba(234, 240, 234, .55); line-height: 1.55; margin: .3rem 0 0; }

/* The staff entrance. Deliberately quiet and at the foot of the page: an officer
   knows where it is, and putting it in the top bar told every citizen that this
   site was built for somebody else. */
.staff-door {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .82rem; color: rgba(234, 240, 234, .5);
    padding: .35rem .8rem; border-radius: 999px;
    border: 1px solid var(--rule-dark);
    transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.staff-door:hover { color: #fff; border-color: rgba(201, 146, 46, .5); background: rgba(201, 146, 46, .1); }
.staff-door .ico { width: 1em; height: 1em; color: var(--brass); }
.nav-burger {
    display: none; margin-left: auto;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    color: #fff; width: 44px; height: 44px; border-radius: var(--radius-sm); cursor: pointer;
    align-items: center; justify-content: center;
}
.nav.is-stuck .nav-burger { background: var(--paper-3); border-color: var(--rule); color: var(--ink); }

/* Mobile drawer */
.drawer {
    position: fixed; inset: 0; z-index: 120;
    background: var(--ink); color: #fff;
    padding: 1.5rem var(--gut) 2.5rem;
    display: flex; flex-direction: column;
    transform: translateY(-100%); visibility: hidden;
    transition: transform .42s var(--ease), visibility .42s;
    overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.drawer-close {
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
    width: 44px; height: 44px; border-radius: var(--radius-sm); cursor: pointer;
    display: grid; place-items: center;
}
.drawer a.d-link {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.05rem .2rem; border-bottom: 1px solid var(--rule-dark);
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
    opacity: 0; transform: translateY(10px);
}
.drawer.is-open a.d-link { animation: dIn .45s var(--ease) forwards; }
.drawer.is-open a.d-link:nth-child(1) { animation-delay: .06s; }
.drawer.is-open a.d-link:nth-child(2) { animation-delay: .11s; }
.drawer.is-open a.d-link:nth-child(3) { animation-delay: .16s; }
.drawer.is-open a.d-link:nth-child(4) { animation-delay: .21s; }
.drawer.is-open a.d-link:nth-child(5) { animation-delay: .26s; }
.drawer.is-open a.d-link:nth-child(6) { animation-delay: .31s; }
@keyframes dIn { to { opacity: 1; transform: none; } }
.drawer .d-link .ico { color: var(--brass); }

/* ---------------------------------------------------------------- 7. BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .82rem 1.5rem; border-radius: 10px; border: 1.5px solid transparent;
    font-size: .95rem; font-weight: 650; letter-spacing: -.005em;
    cursor: pointer; white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .25s var(--ease),
                background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico-shift { transform: translateX(3px); }

.btn-primary {
    background: linear-gradient(135deg, var(--verdant), var(--field));
    color: #fff; box-shadow: 0 8px 22px -10px rgba(15, 77, 42, .8);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(15, 77, 42, .75); }

.btn-brass {
    background: var(--brass); color: #241703;
    box-shadow: 0 8px 22px -12px rgba(201, 146, 46, .9);
}
.btn-brass:hover { background: #D9A23C; }

.btn-ghost { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn-ghost:hover { border-color: var(--field); background: var(--verdant-lo); }

.btn-ink-ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .26); color: #fff; }
.btn-ink-ghost:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }

.btn-sm { padding: .55rem 1rem; font-size: .86rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .62; pointer-events: none; }

/* ------------------------------------------------------ 8. CHIPS AND BADGES */
.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .68rem; border-radius: 999px;
    font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
    letter-spacing: .09em; text-transform: uppercase;
    border: 1px solid var(--rule); background: var(--paper-2); color: var(--slate);
}
.chip-good { background: var(--good-lo); border-color: rgba(30, 124, 66, .28); color: var(--good); }
.chip-warn { background: var(--warn-lo); border-color: rgba(180, 112, 14, .3);  color: var(--warn); }
.chip-bad  { background: var(--bad-lo);  border-color: rgba(163, 32, 32, .26);  color: var(--bad); }
.chip-info { background: var(--cool-lo); border-color: rgba(31, 95, 139, .26);  color: var(--cool); }
.chip-brass{ background: var(--brass-lo);border-color: rgba(201, 146, 46, .38); color: #8A6216; }
.chip-ink  { background: rgba(255, 255, 255, .08); border-color: var(--rule-dark); color: rgba(255, 255, 255, .82); }

/* ----------------------------------------------------------------- 9. CARDS */
.card {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: clamp(1.3rem, 2.4vw, 1.85rem);
    position: relative;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C9D2C4; }

/* Icon plate. Brass hairline ring over a pale green wash — a beacon cap. */
.plate {
    width: 50px; height: 50px; border-radius: 13px; flex: none;
    display: grid; place-items: center;
    background: var(--verdant-lo); color: var(--field);
    border: 1px solid rgba(15, 77, 42, .14);
    margin-bottom: 1.05rem;
    transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.card-lift:hover .plate { transform: rotate(-5deg) scale(1.06); background: var(--field); color: #fff; }
.plate-brass { background: var(--brass-lo); color: #8A6216; border-color: rgba(201, 146, 46, .3); }
.card-lift:hover .plate-brass { background: var(--brass); color: #241703; }
.plate-ink { background: rgba(255, 255, 255, .07); border-color: var(--rule-dark); color: var(--brass); }

.card h3 { margin-bottom: .45rem; }
.card p { color: var(--slate); font-size: .935rem; line-height: 1.62; margin: 0; }

/* Value cards sit on the dark band with a hairline rule and no fill, so the
   graticule shows through — the values are annotations on the sheet. */
.value {
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--rule-dark);
}
.value .ico { color: var(--brass); }
.value h3 { font-size: 1.12rem; margin: .85rem 0 .4rem; color: #fff; }
.value p { color: rgba(234, 240, 234, .66); font-size: .91rem; margin: 0; }

/* --------------------------------------------------------------- 10. HERO */
.hero {
    position: relative;
    min-height: min(94vh, 900px);
    display: flex; flex-direction: column;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
    margin-top: -82px;              /* the nav floats over the hero */
    padding-top: 82px;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.07);
    transition: opacity 1.5s var(--ease);
}
.hero-slide.is-active { opacity: 1; animation: kenBurns 11s linear forwards; }
@keyframes kenBurns { from { transform: scale(1.07); } to { transform: scale(1.15); } }

/* Scrim weighted to both ends, because content sits at both: the headline at the
   top of the block and the search panel below it. */
.hero-scrim {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 21, 14, .88) 0%, rgba(8, 21, 14, .55) 34%,
                                rgba(8, 21, 14, .62) 68%, rgba(8, 21, 14, .95) 100%),
        radial-gradient(ellipse 70% 60% at 18% 30%, rgba(10, 58, 31, .55), transparent 70%);
}
/* The parcel fabric plotted over the photograph. Drawn by site.js.
   Held to the right of the copy column so the drawing reads as a drawing rather
   than as interference across the headline. It is decoration: the moment it
   competes with the words, it has stopped earning its place. */
.hero-fabric {
    position: absolute; inset: 0 0 0 46%; z-index: 2;
    pointer-events: none; opacity: .8;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 100%);
            mask-image: linear-gradient(90deg, transparent, #000 18%, #000 100%);
}
@media (max-width: 900px) { .hero-fabric { display: none; } }

.hero-body { position: relative; z-index: 3; flex: 1; display: flex; align-items: center;
             padding-block: clamp(3rem, 8vh, 5.5rem); }
.hero-copy { max-width: 58ch; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em {
    font-style: normal; color: var(--brass);
    /* Brass underline set at the baseline, the way a plan title is ruled. */
    box-shadow: inset 0 -.14em 0 rgba(201, 146, 46, .34);
}
.hero .lede { color: rgba(255, 255, 255, .8); font-size: clamp(1.05rem, 1.7vw, 1.28rem); }

.hero-tag {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .42rem .95rem .42rem .55rem; border-radius: 999px;
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-family: var(--font-mono); font-size: .69rem; letter-spacing: .13em; text-transform: uppercase;
    color: rgba(255, 255, 255, .9); margin-bottom: 1.5rem;
}
.hero-tag .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--verdant);
    box-shadow: 0 0 0 4px rgba(47, 163, 95, .25);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(47, 163, 95, .3); }
                   50%      { box-shadow: 0 0 0 8px rgba(47, 163, 95, 0); } }

/* Hero search: the single most important control on the site, so it is given
   the weight of a title block rather than a form field. */
.hero-search { margin-top: 2rem; max-width: 620px; }
.hero-search form {
    display: flex; gap: .5rem; align-items: stretch;
    background: rgba(255, 255, 255, .96);
    padding: .5rem; border-radius: 15px;
    box-shadow: var(--shadow-lg);
}
.hero-search .fld { position: relative; flex: 1; display: flex; align-items: center; }
.hero-search .fld > .ico { position: absolute; left: .95rem; color: var(--slate-lo); pointer-events: none; }
.hero-search input {
    width: 100%; border: 0; background: transparent; outline: 0;
    padding: .9rem .9rem .9rem 2.9rem;
    font-family: var(--font-mono); font-size: 1rem; letter-spacing: .01em;
    color: var(--ink);
}
.hero-search input::placeholder { color: var(--slate-lo); letter-spacing: 0; font-family: var(--font-body); }
.hero-hint { margin-top: .85rem; font-size: .84rem; color: rgba(255, 255, 255, .58); }
.hero-hint b { color: var(--brass); font-weight: 600; }

/* Sheet strip along the foot of the hero — datum, coordinates, scale bar: the
   marginal information every plan sheet carries. */
.hero-strip {
    position: relative; z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, .13);
    background: rgba(8, 21, 14, .5);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-strip .shell { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
                     padding-block: .85rem; }
.strip-item { display: flex; align-items: center; gap: .55rem;
              font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em;
              color: rgba(255, 255, 255, .55); text-transform: uppercase; }
.strip-item b { color: rgba(255, 255, 255, .9); font-weight: 600; }
.strip-item .ico { color: var(--brass); width: 1.05em; height: 1.05em; }

/* ------------------------------------------------------------- 11. COUNTERS */
.counters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.counter {
    padding: clamp(1.5rem, 3vw, 2.3rem) clamp(1rem, 2vw, 1.6rem);
    border-left: 1px solid var(--rule-dark);
    position: relative;
}
.counter:first-child { border-left: 0; }
.counter .n {
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1;
    color: #fff; letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    display: flex; align-items: baseline; gap: .12em;
}
.counter .n sup { font-size: .42em; color: var(--brass); font-weight: 600; top: -.9em; }
.counter .k {
    margin-top: .7rem;
    font-family: var(--font-mono); font-size: .69rem; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(234, 240, 234, .55);
}
.counter .sub { margin-top: .35rem; font-size: .84rem; color: rgba(234, 240, 234, .42); }

/* --------------------------------------------------------- 12. COMMISSIONER */
.commish { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(1.8rem, 4vw, 3.4rem); align-items: start; }
.commish-portrait {
    position: relative; border-radius: var(--radius);
    background: linear-gradient(160deg, var(--field), var(--ink-3));
    aspect-ratio: 4 / 5; display: grid; place-items: center;
    overflow: hidden; border: 1px solid var(--rule-dark);
}
.commish-portrait img { width: 100%; height: 100%; object-fit: cover; }
.commish-portrait .fallback { color: rgba(255, 255, 255, .3); }
.commish-portrait::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8, 21, 14, .7), transparent 55%);
}
.commish-quote { position: relative; padding-left: clamp(0px, 2vw, 2.6rem); }
.commish-quote .ico-quote {
    color: var(--brass); opacity: .35; width: 3rem; height: 3rem; margin-bottom: .8rem;
}
.commish-quote blockquote {
    margin: 0 0 1.6rem;
    font-family: var(--font-display); font-size: clamp(1.12rem, 1.85vw, 1.42rem);
    line-height: 1.55; color: #fff; font-weight: 400; letter-spacing: -.012em;
}
.commish-sig { display: flex; align-items: center; gap: 1rem; padding-top: 1.3rem;
               border-top: 1px solid var(--rule-dark); }
.commish-sig .nm { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: #fff; }
.commish-sig .ttl { font-size: .84rem; color: rgba(234, 240, 234, .55); }

/* -------------------------------------------------------------- 13. NEWS */
.news-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; padding: 0; }
.news-top {
    height: 6px;
    background: linear-gradient(90deg, var(--verdant), var(--brass));
    transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--ease);
}
.news-card:hover .news-top { transform: scaleX(1); }
.news-body { padding: clamp(1.3rem, 2.4vw, 1.7rem); display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; flex-wrap: wrap; }
.news-date { font-family: var(--font-mono); font-size: .72rem; color: var(--slate-lo); letter-spacing: .06em; }
.news-card h3 { font-size: 1.16rem; line-height: 1.3; }
.news-card p { flex: 1; }
.news-more {
    margin-top: 1.15rem; display: inline-flex; align-items: center; gap: .45rem;
    font-size: .87rem; font-weight: 650; color: var(--field);
}
.news-card:hover .news-more .ico { transform: translateX(3px); }
.news-more .ico { transition: transform .25s var(--ease); }

/* ------------------------------------------------------------ 14. ACCORDION */
.acc { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); overflow: hidden; }
.acc + .acc { margin-top: .85rem; }
.acc.is-open { border-color: rgba(15, 77, 42, .3); box-shadow: var(--shadow); }

.acc-head {
    width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left;
    padding: clamp(1.05rem, 2vw, 1.35rem) clamp(1.1rem, 2.2vw, 1.6rem);
    background: none; border: 0; cursor: pointer;
    transition: background .2s var(--ease);
}
.acc-head:hover { background: var(--paper); }
.acc-head .plate { width: 42px; height: 42px; margin: 0; border-radius: 11px; }
.acc-title { flex: 1; min-width: 0; }
.acc-title .t { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; letter-spacing: -.012em;
                display: block; line-height: 1.3; }
.acc-title .s { font-size: .875rem; color: var(--slate); display: block; margin-top: .2rem; }
.acc-mark {
    width: 34px; height: 34px; border-radius: 9px; flex: none;
    display: grid; place-items: center;
    border: 1px solid var(--rule); background: var(--paper); color: var(--slate);
    transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.acc.is-open .acc-mark { transform: rotate(180deg); background: var(--field); color: #fff; border-color: var(--field); }

/* Height is animated from a measured px value set by site.js, because `auto`
   cannot be transitioned and a fixed max-height either clips long panels or
   makes short ones lurch. */
.acc-panel { height: 0; overflow: hidden; transition: height .38s var(--ease); }
.acc-inner {
    padding: 0 clamp(1.1rem, 2.2vw, 1.6rem) clamp(1.3rem, 2.4vw, 1.7rem);
    border-top: 1px solid var(--rule);
    padding-top: 1.3rem;
}
.acc-inner > p { color: var(--slate); }

/* Numbered steps. Numbering used here because these ARE a sequence. */
.steps { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .7rem; counter-reset: s; }
.steps li {
    display: flex; align-items: flex-start; gap: .85rem;
    font-size: .92rem; color: var(--slate); counter-increment: s;
}
.steps li::before {
    content: counter(s, decimal-leading-zero);
    font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .04em;
    color: var(--brass); background: var(--brass-lo);
    border: 1px solid rgba(201, 146, 46, .3);
    width: 26px; height: 26px; border-radius: 7px; flex: none;
    display: grid; place-items: center; margin-top: .08rem;
}

/* Stage rail for application workflows: an actual sequence with SLAs. */
.rail { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem .3rem 1rem; margin: 1.2rem -.3rem 0; }
.rail-node {
    flex: none; min-width: 148px;
    border: 1px solid var(--rule); border-radius: 11px; background: var(--paper);
    padding: .8rem .9rem; position: relative;
}
.rail-node .sq { font-family: var(--font-mono); font-size: .64rem; color: var(--brass); letter-spacing: .1em; }
.rail-node .nm { font-size: .88rem; font-weight: 600; margin-top: .2rem; line-height: 1.3; }
.rail-node .sla { font-family: var(--font-mono); font-size: .72rem; color: var(--slate-lo); margin-top: .35rem; }
.rail-node::after {
    content: ''; position: absolute; right: -.5rem; top: 50%; width: .5rem; height: 1px;
    background: var(--rule);
}
.rail-node:last-child::after { display: none; }

/* Fact rows inside an accordion. */
.facts { display: grid; gap: 0; margin-top: 1.2rem; border-top: 1px solid var(--rule); }
.fact { display: flex; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.fact dt { color: var(--slate-lo); min-width: 170px; flex: none; }
.fact dd { margin: 0; font-weight: 550; }

.tick-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .55rem; }
.tick-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; color: var(--slate); }
.tick-list .ico { color: var(--good); margin-top: .18rem; }

/* ------------------------------------------------------- 15. SEARCH SURFACES */
.search-panel {
    background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: clamp(1.3rem, 2.6vw, 2rem); box-shadow: var(--shadow-sm);
}
.search-bar { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.search-bar .fld { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.search-bar .fld > .ico { position: absolute; left: .9rem; color: var(--slate-lo); pointer-events: none; }
.search-bar input[type="text"], .search-bar input[type="search"] {
    width: 100%; padding: .85rem 1rem .85rem 2.75rem;
    border: 1.5px solid var(--rule); border-radius: 11px; background: var(--paper);
    font-family: var(--font-mono); font-size: .97rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.search-bar input:focus {
    outline: 0; border-color: var(--verdant); background: var(--paper-2);
    box-shadow: 0 0 0 4px rgba(47, 163, 95, .13);
}
.search-bar select {
    padding: .85rem 2.2rem .85rem 1rem; border: 1.5px solid var(--rule); border-radius: 11px;
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6B60' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 16px;
    -webkit-appearance: none; appearance: none; cursor: pointer; font-size: .95rem;
}

/* Verification result. The status is the answer, so it is the largest thing. */
.verdict {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--rule); background: var(--paper-2);
    box-shadow: var(--shadow);
}
.verdict-head { padding: clamp(1.2rem, 2.4vw, 1.8rem); display: flex; align-items: center; gap: 1.1rem;
                border-bottom: 1px solid var(--rule); }
.verdict-head .plate { margin: 0; width: 54px; height: 54px; }
.verdict-head h3 { margin: 0; font-size: 1.3rem; }
.verdict-head .sub { font-size: .9rem; color: var(--slate); margin-top: .15rem; }

.verdict.tone-good .verdict-head { background: var(--good-lo); border-bottom-color: rgba(30, 124, 66, .2); }
.verdict.tone-good .verdict-head .plate { background: var(--good); color: #fff; border-color: transparent; }
.verdict.tone-warn .verdict-head { background: var(--warn-lo); border-bottom-color: rgba(180, 112, 14, .22); }
.verdict.tone-warn .verdict-head .plate { background: var(--warn); color: #fff; border-color: transparent; }
.verdict.tone-bad .verdict-head { background: var(--bad-lo); border-bottom-color: rgba(163, 32, 32, .2); }
.verdict.tone-bad .verdict-head .plate { background: var(--bad); color: #fff; border-color: transparent; }
.verdict.tone-info .verdict-head { background: var(--cool-lo); border-bottom-color: rgba(31, 95, 139, .2); }
.verdict.tone-info .verdict-head .plate { background: var(--cool); color: #fff; border-color: transparent; }
.verdict.tone-neutral .verdict-head { background: var(--paper); }

/* 210px is not arbitrary: it is the width a full parcel identifier needs at this
   type size plus the cell padding. Narrower columns forced an emergency mid-token
   break and printed "JG/DUT/2026/0000 6", which is a different number. */
.verdict-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.vcell { padding: 1.1rem clamp(1.2rem, 2.4vw, 1.8rem); border-right: 1px solid var(--rule);
         border-bottom: 1px solid var(--rule); }
.vcell:last-child { border-right: 0; }
.vcell .k { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
            color: var(--slate-lo); margin-bottom: .4rem; }
.vcell .v { font-size: 1.02rem; font-weight: 600; line-height: 1.35; overflow-wrap: break-word; hyphens: none; }

/* An identifier is a single indivisible token. It may wrap after a separator if
   it must, but it must NEVER break mid-run: "JG/DUT/2026/0000 6" reads as a
   different parcel, and this page exists to be trusted about exactly that. */
.vcell .v.mono {
    font-size: .95rem;
    overflow-wrap: normal; word-break: keep-all; white-space: nowrap;
    overflow-x: auto; scrollbar-width: none;
}
.vcell .v.mono::-webkit-scrollbar { display: none; }
.vcell .v.mono { font-size: .97rem; }

/* Masked detail. Shown, not hidden — a visitor must be able to see WHAT is
   withheld and what it costs, or the paid service is invisible. */
.masked { padding: clamp(1.2rem, 2.4vw, 1.8rem); background: var(--paper); }
.masked-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.2rem; }
.masked-head .ico { color: var(--brass); margin-top: .15rem; }
.masked-head .t { font-weight: 650; font-size: .97rem; }
.masked-head .s { font-size: .88rem; color: var(--slate); margin-top: .15rem; }

.product { display: grid; gap: .6rem; }
.product-row {
    display: flex; align-items: center; gap: .9rem;
    padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: 11px;
    background: var(--paper-2); cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.product-row:hover { border-color: var(--verdant); transform: translateX(3px); }
.product-row input { accent-color: var(--field); width: 18px; height: 18px; flex: none; cursor: pointer; }
.product-row .ico { color: var(--field); }
.product-row .pt { flex: 1; min-width: 0; }
.product-row .pt b { display: block; font-size: .93rem; font-weight: 650; }
.product-row .pt span { display: block; font-size: .82rem; color: var(--slate-lo); }
.product-row .fee { font-family: var(--font-mono); font-weight: 600; font-size: .93rem; color: var(--field); }
.product-row:has(input:checked) { border-color: var(--field); background: var(--verdant-lo); }

/* The blurred sample of what is being withheld — legible as a shape, not as
   information. Purely decorative and marked aria-hidden in the markup. */
.redacted { display: grid; gap: .5rem; margin-top: .3rem; }
.redacted span {
    height: 11px; border-radius: 3px;
    background: linear-gradient(90deg, var(--rule) 0%, var(--paper-3) 50%, var(--rule) 100%);
    background-size: 200% 100%;
    animation: shimmer 2.4s linear infinite;
}
.redacted span:nth-child(1) { width: 82%; }
.redacted span:nth-child(2) { width: 64%; }
.redacted span:nth-child(3) { width: 73%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Layout result card */
.layout-card { display: flex; flex-direction: column; gap: .95rem; }
.layout-card .lc-top { display: flex; align-items: flex-start; gap: .9rem; }
.layout-card h3 { margin: 0; font-size: 1.15rem; }
.layout-card .lc-code { font-family: var(--font-mono); font-size: .76rem; color: var(--slate-lo);
                        letter-spacing: .06em; margin-top: .2rem; }
.lc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .1rem;
            border: 1px solid var(--rule); border-radius: 11px; overflow: hidden; background: var(--rule); }
.lc-stat { background: var(--paper); padding: .75rem .8rem; text-align: center; }
.lc-stat .n { font-family: var(--font-mono); font-size: 1.18rem; font-weight: 700; color: var(--ink); }
.lc-stat .k { font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-lo);
              margin-top: .15rem; font-family: var(--font-mono); }
.size-list { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Empty and loading states */
.state-box { text-align: center; padding: clamp(2.2rem, 5vw, 3.6rem) 1.5rem; }
.state-box .plate { margin: 0 auto 1.1rem; width: 58px; height: 58px; }
.state-box h3 { margin-bottom: .4rem; }
.state-box p { color: var(--slate); max-width: 46ch; margin-inline: auto; }

.skeleton { display: grid; gap: .8rem; }
.skeleton .sk {
    height: 74px; border-radius: 11px;
    background: linear-gradient(90deg, var(--paper-3) 0%, var(--paper-2) 50%, var(--paper-3) 100%);
    background-size: 200% 100%; animation: shimmer 1.5s linear infinite;
}

/* Spinner used inside busy buttons. */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- 16. FORMS */
.field-set { display: grid; gap: 1.1rem; }
.field label, .lbl {
    display: block; font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
    letter-spacing: .13em; text-transform: uppercase; color: var(--slate);
    margin-bottom: .45rem;
}
.field input, .field select, .field textarea {
    width: 100%; padding: .8rem 1rem;
    border: 1.5px solid var(--rule); border-radius: 11px; background: var(--paper-2);
    font-size: .97rem;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0; border-color: var(--verdant); box-shadow: 0 0 0 4px rgba(47, 163, 95, .13);
}
.field .err { display: none; color: var(--bad); font-size: .84rem; margin-top: .35rem; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }
.field.has-err .err { display: block; }
.field .hint { font-size: .82rem; color: var(--slate-lo); margin-top: .35rem; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
    display: flex; gap: .85rem; align-items: flex-start;
    padding: 1rem 1.15rem; border-radius: 12px; font-size: .91rem; line-height: 1.55;
    border: 1px solid; margin-bottom: 1.2rem;
}
.notice .ico { margin-top: .1rem; flex: none; }
.notice-ok   { background: var(--good-lo); border-color: rgba(30, 124, 66, .25); color: #14562F; }
.notice-warn { background: var(--warn-lo); border-color: rgba(180, 112, 14, .28); color: #7A4C08; }
.notice-bad  { background: var(--bad-lo);  border-color: rgba(163, 32, 32, .24); color: #7C1919; }
.notice-info { background: var(--cool-lo); border-color: rgba(31, 95, 139, .24); color: #16466A; }

.ref-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-mono); font-weight: 700; letter-spacing: .06em;
    background: var(--ink); color: #fff; padding: .5rem .9rem; border-radius: 9px;
    margin-top: .6rem;
}

/* --------------------------------------------------------------- 17. FOOTER */
.foot { background: var(--ink); color: rgba(234, 240, 234, .68); padding-top: clamp(3rem, 6vw, 4.5rem); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(1.6rem, 3.5vw, 3rem); }
.foot h4 {
    font-family: var(--font-mono); font-size: .68rem; letter-spacing: .17em; text-transform: uppercase;
    color: var(--brass); margin-bottom: 1.1rem; font-weight: 600;
}
.foot-brand { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.foot-brand img { height: 54px; }
.foot-brand .b1 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: #fff; }
.foot-brand .b2 { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em;
                  text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.foot p { font-size: .9rem; line-height: 1.65; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot-links a { font-size: .91rem; display: inline-flex; align-items: center; gap: .45rem;
                transition: color .2s var(--ease), transform .2s var(--ease); }
.foot-links a:hover { color: #fff; transform: translateX(3px); }
.foot-contact { display: grid; gap: .8rem; font-size: .9rem; }
.foot-contact div { display: flex; gap: .65rem; align-items: flex-start; }
.foot-contact .ico { color: var(--brass); margin-top: .18rem; }
.foot-bar {
    margin-top: clamp(2.2rem, 5vw, 3.4rem); border-top: 1px solid var(--rule-dark);
    padding-block: 1.4rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    font-size: .83rem; color: rgba(234, 240, 234, .45);
}

/* ------------------------------------------------------------ 18. REVEALS */
/*
 * Entrances are drawn from the same idea as the rest of the site: a plan sheet is
 * PLOTTED, not faded in. Rules are ruled across, marks are set, labels land after
 * the geometry they annotate. So a section does not arrive as one block — its
 * rule draws, its heading rises, then its cards land in sequence with their icon
 * plates a beat behind.
 *
 * Every variant returns to the same resting state (`opacity:1; transform:none;
 * filter:none`), so a stalled or skipped animation always ends somewhere correct.
 * The hidden state stays gated on .js-reveal — see the note there.
 */
.js-reveal [data-reveal] {
    opacity: 0;
    transition:
        opacity   .75s var(--ease),
        transform .75s var(--ease),
        filter    .55s var(--ease);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
}

/* Variants. A bare [data-reveal] is a rise. */
.js-reveal [data-reveal=""],
.js-reveal [data-reveal="rise"]  { transform: translateY(22px); }
.js-reveal [data-reveal="scale"] { transform: translateY(16px) scale(.965); }
.js-reveal [data-reveal="left"]  { transform: translateX(-30px); }
.js-reveal [data-reveal="right"] { transform: translateX(30px); }
.js-reveal [data-reveal="blur"]  { transform: translateY(12px); filter: blur(10px); }
.js-reveal [data-reveal="drop"]  { transform: translateY(-16px); }

.js-reveal [data-reveal].is-in {
    opacity: 1; transform: none; filter: none;
    will-change: auto;                 /* release the compositor layer once landed */
}

/* --- the plotted rule -------------------------------------------------------
   The brass tick before a section eyebrow is ruled across rather than faded, the
   way a draughtsman lays down a datum line before annotating it. */
/* Scoped INSIDE [data-reveal] on purpose. Collapsing every eyebrow rule globally
   would leave the tick permanently at zero width on any section head that is not
   itself revealed — a decoration that never comes back. */
.js-reveal [data-reveal] .eyebrow::before {
    transform: scaleX(0); transform-origin: left;
    transition: transform .7s var(--ease);
    transition-delay: calc(var(--d, 0ms) + 100ms);
}
.js-reveal [data-reveal].is-in .eyebrow::before { transform: scaleX(1); }

/* --- icon plates land after their card -------------------------------------- */
.js-reveal [data-reveal] .plate {
    opacity: 0; transform: scale(.7) rotate(-12deg);
    transition: opacity .5s var(--ease), transform .6s var(--ease);
    transition-delay: calc(var(--d, 0ms) + 180ms);
}
.js-reveal [data-reveal].is-in .plate { opacity: 1; transform: none; }

/* --- value rows: rule draws, then the words ---------------------------------
   The hairline above each value is the sheet's own division. Drawing it makes the
   six values read as one ruled table rather than six loose paragraphs. */
.js-reveal .value[data-reveal] { border-top-color: transparent; position: relative; }
.js-reveal .value[data-reveal]::before {
    content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
    background: var(--rule-dark); transform: scaleX(0); transform-origin: left;
    transition: transform .8s var(--ease); transition-delay: var(--d, 0ms);
}
.js-reveal .value[data-reveal].is-in::before { transform: scaleX(1); }

/* --- counters: the figure rises, the divider is ruled down ------------------- */
.js-reveal .counter[data-reveal] { border-left-color: transparent; }
.js-reveal .counter[data-reveal]::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
    background: var(--rule-dark); transform: scaleY(0); transform-origin: top;
    transition: transform .9s var(--ease); transition-delay: calc(var(--d, 0ms) + 120ms);
}
.js-reveal .counter[data-reveal]:first-child::before { display: none; }
.js-reveal .counter[data-reveal].is-in::before { transform: scaleY(1); }

/* --- news: the gradient bar is ruled in on arrival, not only on hover -------- */
.js-reveal .news-card[data-reveal].is-in .news-top { transform: scaleX(1); transition-delay: calc(var(--d, 0ms) + 250ms); }

/* --- accordion rows arrive as a stack --------------------------------------- */
.js-reveal .acc[data-reveal] { transition-property: opacity, transform, box-shadow, border-color; }

/* --- the plotter draw, for generated SVG geometry --------------------------- */
.draw { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.draw.is-in { animation: plot 1.6s var(--ease) forwards; }
@keyframes plot { to { stroke-dashoffset: 0; } }

/* --- hover polish, distinct from entrance ----------------------------------- */
.card-lift { will-change: transform; }
.card-lift:hover { transform: translateY(-5px); }

/* --------------------------------------------------------- 19. RESPONSIVE */
@media (max-width: 1080px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .g-3, .g-split, .commish { grid-template-columns: minmax(0, 1fr); }
    .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .counter { border-left: 0; border-top: 1px solid var(--rule-dark); }
    .counter:nth-child(-n+2) { border-top: 0; }
    .commish-portrait { max-width: 240px; }
    .vcell { border-right: 0; }
}

@media (max-width: 620px) {
    .g-2, .g-4 { grid-template-columns: minmax(0, 1fr); }
    .hero { min-height: auto; }
    .hero-search form { flex-direction: column; }
    .hero-search .btn { width: 100%; }
    .hero-strip .shell { gap: .9rem; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); }
    .fact { flex-direction: column; gap: .15rem; }
    .fact dt { min-width: 0; }
    .acc-head .plate { display: none; }
    .lc-stats { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------- 20. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    /* Everything lands in its resting state immediately: no rise, no ruled lines,
       no plotter draw. The page must read identically, just without the journey. */
    .js-reveal [data-reveal] { opacity: 1; transform: none; filter: none; }
    .js-reveal [data-reveal] .plate { opacity: 1; transform: none; }
    .js-reveal [data-reveal] .eyebrow::before { transform: scaleX(1); }
    .js-reveal .value[data-reveal]::before { transform: scaleX(1); }
    .js-reveal .counter[data-reveal]::before { transform: scaleY(1); }
    .draw { stroke-dashoffset: 0; }
    .hero-slide.is-active { animation: none; }
}

/* --------------------------------------------------------------- 21. PRINT */
@media print {
    .nav, .drawer, .hero-media, .hero-fabric, .foot, .btn { display: none !important; }
    body { background: #fff; color: #000; }
    .band { padding-block: 1rem; }
}
