/* ============================================================================
   theme.css — VAULT'S SINGLE SOURCE OF TRUTH FOR COLOUR, SHAPE AND TYPE.
   ============================================================================

   WHAT THIS FILE IS
   Every colour, radius, shadow, type size and weight in Vault is declared here
   and nowhere else. Screens reference tokens; they do not declare values. The
   Branding screen (Administrative Controls -> Branding) renders this file's
   contents live, so it cannot drift from what ships.

   WHERE THE VALUES CAME FROM
   The neutrals, radii and card treatment are transcribed from
   screens-outreachforecast.jsx ("Outstanding Process Actions"), which Brian
   ruled on 2026-08-20 as the visual standard for the whole app. That screen is
   flat: 1px borders, no shadow on cards, tight radii. Shadows appear ONLY on
   layers that float above the page (popover, drawer, modal). That is the system.

   The accent is Harvey blue #196EA7 — the reference screen's local #1d4ed8 was
   used 4 times in 1 file, while #196EA7 appears 40 times across 8 files, and the
   chrome ruling fixes the sidebar and topbar to it.

   HOW TO ADD A COLOUR
   Don't, if an existing token fits. If one genuinely does not, add it HERE with
   a comment saying what it is for, add its dark-mode counterpart in the
   [data-theme="dark"] block below, and it will appear on the Branding screen
   automatically. A hex literal in a screen file is a bug.

   ALPHA
   Never hand-compute rgba from a hex. Use VaultAlpha("--accent", .12) in JS or
   color-mix(in srgb, var(--accent) 12%, transparent) in CSS. Both survive a
   theme switch; a hardcoded rgba does not.
   ============================================================================ */

:root {
  /* ---- NEUTRALS -----------------------------------------------------------
     Transcribed from the reference screen (PAGE/INK/INK2/SUB/MUTE/LINE/LINE2).
     Cooler and a shade darker than the pre-8/20 set. --ink-3 and --line-strong
     are new: the reference distinguishes body text from de-emphasised text, and
     a control border from a card border. */
  --bg:           #EEF0F4;   /* page background */
  --canvas:       #FFFFFF;   /* base canvas inside cards */
  --surface:      #FFFFFF;   /* card / panel surface */
  --surface-2:    #F4F6F9;   /* hover, muted surface, table header */
  --surface-3:    #E9ECF1;   /* pressed / selected track */

  --line:         #E3E6EC;   /* card + panel borders */
  --line-2:       #E8EBF0;   /* subtle dividers, table row rules */
  --line-strong:  #D6DBE3;   /* input, select and button borders */

  --ink:          #16181D;   /* primary text */
  --ink-2:        #3D4553;   /* body text on cards */
  --ink-3:        #5B6472;   /* de-emphasised body */
  --muted:        #7C8493;   /* labels, kickers, captions -- darkened 8/20:
                                #8B93A2 measured 2.71:1 on --bg, under the 3:1 floor */
  --muted-2:      #A8AFBA;   /* placeholders, disabled */

  /* ---- ACCENT — Harvey blue ---------------------------------------------- */
  --accent:        #196EA7;
  --accent-2:      #135985;  /* hover */
  --accent-3:      #0F4A70;  /* pressed */
  --accent-soft:   #E3EEF6;  /* tinted fills */
  --accent-soft-2: #C9DFEE;  /* tinted hover */
  --accent-ink:    #FFFFFF;  /* text on accent */

  /* ---- CHROME — sidebar + topbar ----------------------------------------
     Ruled 2026-08-20: the rail and the header share one colour. Everything in
     them is white or a white alpha; the nav PNGs in icons/ are white artwork
     for the same reason. White on --accent measures 5.48:1. */
  --chrome-bg:      #196EA7;
  --chrome-ink:     #FFFFFF;
  --chrome-ink-2:   rgba(255,255,255,.74);  /* subtitles, inactive nav labels */
  --chrome-ink-3:   rgba(255,255,255,.55);  /* section captions */
  --chrome-line:    rgba(255,255,255,.18);  /* dividers inside the chrome */
  --chrome-hover:   rgba(255,255,255,.10);
  --chrome-active:  rgba(255,255,255,.17);  /* active nav pill */
  --chrome-marker:  #FFFFFF;                /* active-item edge marker */

  /* ---- SEMANTIC ---------------------------------------------------------- */
  --ok:        #15803D;   --ok-soft:   #DCFCE7;   --ok-line:   #B8E6C9;
  --warn:      #B45309;   --warn-soft: #FEF3C7;   --warn-line: #ECDFBA;
  --risk:      #B91C1C;   --risk-soft: #FDF2F2;   --risk-line: #F3C8C8;
  --info:      #1D4ED8;   --info-soft: #DBEAFE;   --info-line: #C5D9F8;

  /* ---- GOLD -------------------------------------------------------------
     Not --warn. Vault uses a brighter gold as a THIRD STATE between good and
     bad — "5 to 9 days waiting", "Struggling", "Awaiting Approval" — and as a
     categorical accent. --warn (#B45309) is a burnt orange tuned for warning
     text; using it here read as an error rather than an in-between. Found in
     screens-research, screens-project-health and screens-healthdiag. */
  --gold:      #AD7B0E;   /* darkened 8/20: #C9901C was 2.80:1 on --surface */
  --gold-ink:  #6B531B;   /* text on --gold-soft */
  --gold-soft: #FBF3E3;
  --gold-line: #F0DCB4;

  /* BUILD_257 (Brian 10/16): score bands, one name and one colour set everywhere a project score shows.
     Top (90+), Priority (80-89), Standard (60-79), Struggling (under 60), Inactive (no score this year). */
  --band-top:        #22794A;  --band-top-soft:        #EAF6EE;  --band-top-line:        #CBE8D6;
  --band-priority:   #1B6EA8;  --band-priority-soft:   #EBF3FB;  --band-priority-line:   #CFE2F2;
  --band-standard:   #5B6A7A;  --band-standard-soft:   #F1F4F8;  --band-standard-line:   #DCE3EB;
  --band-struggling: #A57712;  --band-struggling-soft: #FBF4E4;  --band-struggling-line: #EDDDB4;
  --band-inactive:   #8A95A3;  --band-inactive-soft:   #F4F5F7;  --band-inactive-line:   #E1E4E8;

  /* ---- YELLOW — a working state: Medium priority, In Process (Task Center) -- */
  --yellow:      #F2C230;
  --yellow-on:   #3A2B05;   /* text ON the yellow fill */
  --yellow-ink:  #5C4508;
  --yellow-soft: #FEF6DC;
  --yellow-line: #EBD68F;

  /* ---- PRIORITY — one H/M/L scale (R15) ---------------------------------- */
  --prio-high:   #B91C1C;
  --prio-med:    #475569;
  --prio-low:    #8B93A2;

  /* ---- SEQUENTIAL RAMP — C1..C9 -----------------------------------------
     A DATA ramp, not the accent. Light-to-dark so a late-sequence code reads as
     late at a glance. Transcribed from the reference screen's SEGC. Anything
     ordered (call codes, stages, cohorts) uses this; nothing else should. */
  /* MONOTONIC light -> dark. The previous set ran two cycles (C1-C4 dark, then
     C5 jumped back to light) because the mock only defined four steps and the
     extension repeated them -- so a C9 did not read as later than a C4, which is
     the one thing an ordered ramp has to do. */
  --seq-1: #BFD3F7;  --seq-2: #A6C1F3;  --seq-3: #8CAFEF;
  --seq-4: #6E97E8;  --seq-5: #4F7FD9;  --seq-6: #3563C4;
  --seq-7: #2449A6;  --seq-8: #183583;  --seq-9: #0F2352;

  /* ---- CATEGORICAL — unordered groups ------------------------------------
     For series with no inherent order (owners, sectors, modules). Distinct in
     hue, matched in weight, and legible on --surface. */
  --cat-1: #475569;  --cat-2: #1E40AF;  --cat-3: #7C5CD0;
  --cat-4: #1F9D57;  --cat-5: #B45309;  --cat-6: #1993C4;
  --cat-7: #B4407A;
  /* --cat-8..12 (10/2, Brian: organizational groups must not be capped at seven). Chosen by CIELAB
     distance: every one is at least 23 from all others in light (the original seven's tightest pair is
     19) and at least 28 in dark (original 33); five more distinct hues cost a little dark separation. */
  --cat-8: #736C34;  --cat-9: #B22212;  --cat-10: #B212B2;
  --cat-11: #734734; --cat-12: #1212B2;
  /* Development diagnostics (design 9/22): the seven skills are the categorical
     palette, named so the petal chart and its legend share one rule. */
  --skill-research:  var(--cat-2);  --skill-outreach:  var(--cat-6);  --skill-lead:    var(--cat-3);
  --skill-marketing: var(--cat-1);  --skill-knowledge: var(--cat-4);  --skill-time:    var(--cat-5);
  --skill-pacing:    var(--cat-7);

  /* ---- MEETING TYPES ------------------------------------------------------
     Consumed by classifyEvent() in lib-actions-feed.js. Kept as tokens so the
     Calendar, the Notification Center and the feed engine cannot disagree. */
  --evt-update:  #1F9D57;
  --evt-conf:    #7C5CD0;
  --evt-intro:   #2E77C2;
  --evt-call:    #1993C4;
  --evt-meeting: #64748B;
  --evt-ooo:     #94A3B5;

  /* ---- SHAPE -------------------------------------------------------------
     Four steps. The reference screen used 12 different radii; these are the
     four that carried real meaning. --radius / --radius-lg are kept as aliases
     because index.html's .card and .btn rules already reference them. */
  --r-chip:  4px;    /* tags, code chips, swatches */
  --r-ctl:   7px;    /* buttons, inputs, selects, segmented controls */
  --r-card: 10px;    /* cards, panels, popovers, modals */
  --r-pill: 999px;   /* pills, badges, avatars */
  --radius:    var(--r-ctl);
  --radius-lg: var(--r-card);
  --radius-xl: var(--r-card);

  /* ---- ELEVATION ---------------------------------------------------------
     CARDS ARE FLAT. Only layers that float above the page get a shadow. If a
     shadow is being added to something that sits IN the page, the answer is a
     border. */
  /* Modal backdrop. NOT --ink: --ink inverts to near-white in dark mode, so a
     scrim built from it becomes a white veil over a dark page -- the opposite of
     what a scrim does. This stays dark in both themes and only deepens. */
  --scrim:         rgba(15, 18, 24, .42);

  --shadow-none:   none;
  --shadow-pop:    0 10px 34px rgba(15,18,24,.16);   /* popovers, dropdowns */
  --shadow-drawer: -12px 0 40px rgba(15,18,24,.25);  /* right-hand drawers */
  --shadow-modal:  0 20px 60px rgba(15,18,24,.28);   /* centred modals */
  --shadow:    var(--shadow-none);   /* alias — legacy .card rule */
  --shadow-md: var(--shadow-pop);    /* alias */
  --shadow-lg: var(--shadow-modal);  /* alias */

  /* ---- TYPE SCALE --------------------------------------------------------
     Eight steps replacing 15 ad-hoc sizes. */
  --t-kicker:   9.5px;   /* uppercase eyebrow */
  --t-micro:     11px;   /* dense table meta, chip text */
  --t-small:   11.5px;   /* captions, secondary rows */
  --t-body:    12.5px;   /* default body and table cells */
  --t-body-lg:   13px;   /* controls, buttons, inputs */
  --t-card:      15px;   /* card titles */
  --t-section:   17px;   /* section headings */
  --t-page:      22px;   /* the screen's H1 */

  --w-regular: 500;
  --w-medium:  600;
  --w-bold:    700;

  /* Kicker spec — one spec, replacing 48. Tracking in px, as the reference does. */
  --kicker-size:    var(--t-kicker);
  --kicker-track:   1.2px;
  --kicker-weight:  var(--w-bold);
  --kicker-color:   var(--muted);

  --row-h: 38px;
  --sidebar-w: 232px;
  --topbar-h: 56px;

  --f-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", system-ui, sans-serif;
  --f-sans:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", system-ui, sans-serif;
  /* BUILD_257 (Brian 10/16): no monospace anywhere. The token stays (every screen references it) but now resolves to
     Vault's regular font; numbers still line up through tabular figures (body, below). */
  --f-mono:    var(--f-sans);

  /* ---- LEGACY ALIASES ---------------------------------------------------
     Names that existed before the token sweep and are still referenced by
     screens this pass has not reached yet. Every one of these is a var()
     alias, NOT a literal, so it follows the theme and the dark block with no
     second declaration to keep in step.

     Three of these I broke: --topbar-bg, --compare-2 and --compare-3 were in
     the old :root block and I dropped them without checking who read them.
     --topbar-bg is why the shell header rendered transparent with white text
     on it. The remaining five were ALREADY undefined before this session —
     --danger has nine call sites and has never resolved to anything.

     These are a bridge. As each screen is swept, its call sites should move to
     the real token and the alias should come out. */
  --topbar-bg:     var(--chrome-bg);
  --compare-2:     var(--cat-5);
  --compare-3:     var(--cat-3);
  --danger:        var(--risk);
  --danger-soft:   var(--risk-soft);
  --accent-strong: var(--accent-2);
  --mono:          var(--f-mono);
  /* ---- END LEGACY ALIASES ---- */

}

/* ============================================================================
   DARK THEME
   app.jsx has written data-theme="dark" since the redesign; until now nothing
   consumed it. Only the tokens flip — no screen needs a dark-specific rule.

   The neutral ramp INVERTS but is not mirrored: dark surfaces sit slightly
   above the page rather than below it, so --surface is LIGHTER than --bg here
   and darker in light mode. Semantic colours lift in lightness because the
   light-mode versions are tuned for contrast on white and go muddy on near
   black.
   ============================================================================ */
html[data-theme="dark"] {
  --bg:           #101318;
  --canvas:       #171B22;
  --surface:      #171B22;
  --surface-2:    #1E232C;
  --surface-3:    #262C37;

  --line:         #2A303A;
  --line-2:       #232830;
  --line-strong:  #39414E;

  --ink:          #EEF0F4;
  --ink-2:        #C4CBD6;
  --ink-3:        #9AA3B2;
  --muted:        #7A8394;
  --muted-2:      #5C6575;

  --accent:        #4E9FD4;
  --accent-2:      #6FB4E0;
  --accent-3:      #8CC6EA;
  --accent-soft:   #16303F;
  --accent-soft-2: #1D4257;
  --accent-ink:    #0B1016;

  /* The chrome stays the darkest surface rather than going Harvey blue — a
     saturated blue rail against a near-black page reads as a light-mode panel
     that failed to switch. */
  --chrome-bg:      #12161C;
  --chrome-ink:     #EEF0F4;
  --chrome-ink-2:   rgba(238,240,244,.70);
  --chrome-ink-3:   rgba(238,240,244,.50);
  --chrome-line:    rgba(238,240,244,.12);
  --chrome-hover:   rgba(238,240,244,.07);
  --chrome-active:  rgba(78,159,212,.22);
  --chrome-marker:  #4E9FD4;

  --ok:   #4ADE80;  --ok-soft:   #10281A;  --ok-line:   #1E5236;
  --warn: #FBBF24;  --warn-soft: #2A1F0A;  --warn-line: #5A4312;
  --risk: #F87171;  --risk-soft: #2B1315;  --risk-line: #5E2529;
  --info: #7CA7F5;  --info-soft: #131E36;  --info-line: #27407A;

  --gold:      #E8B94A;
  --gold-ink:  #E5D6A8;
  --gold-soft: #2A2109;
  --gold-line: #574616;

  --band-top:        #5FCB8C;  --band-top-soft:        #0F2A1B;  --band-top-line:        #1F5536;
  --band-priority:   #7CB4E6;  --band-priority-soft:   #10223A;  --band-priority-line:   #24476E;
  --band-standard:   #A3B0BE;  --band-standard-soft:   #1B222B;  --band-standard-line:   #333E4B;
  --band-struggling: #E2B24D;  --band-struggling-soft: #2A2109;  --band-struggling-line: #574616;
  --band-inactive:   #8C96A3;  --band-inactive-soft:   #1A1E24;  --band-inactive-line:   #2E343C;

  --yellow:      #F5C84B;
  --yellow-on:   #241B04;
  --yellow-ink:  #E8D9A6;
  --yellow-soft: #2E2408;
  --yellow-line: #5E4A14;

  --prio-high: #F87171;
  --prio-med:  #9AA3B2;
  --prio-low:  #6B7484;

  /* Monotonic dark -> light, mirroring the light ramp's direction against its
     own background. --seq-5 was #60A5FA in BOTH themes, which is the signature
     of a value that never got a dark counterpart. */
  --seq-1: #12315E;  --seq-2: #1A4176;  --seq-3: #22528E;
  --seq-4: #2C63A6;  --seq-5: #3D7ABE;  --seq-6: #5A93CE;
  --seq-7: #7DAEDD;  --seq-8: #A6C8E9;  --seq-9: #CFE1F4;

  /* --cat-3 pulled further violet and --cat-6 further teal: against --cat-2 they
     measured 58 and 48 apart, which is inside the range where two series read as
     the same colour on a chart. Nothing under 60 now. */
  --cat-1: #9AA3B2;  --cat-2: #7CA7F5;  --cat-3: #C08AF0;
  --cat-4: #4ADE80;  --cat-5: #FBBF24;  --cat-6: #3FD0C9;
  --cat-7: #E08AB4;
  --cat-8: #D9D18D;  --cat-9: #FA7E70;  --cat-10: #FA70FA;
  --cat-11: #D9A48D; --cat-12: #7070FA;

  --evt-update:  #4ADE80;
  --evt-conf:    #B49BEA;
  --evt-intro:   #7CA7F5;
  --evt-call:    #56BFE4;
  --evt-meeting: #9AA3B2;
  --evt-ooo:     #6B7484;

  /* Deeper, not inverted: a backdrop must darken what is behind it in EITHER
     theme, and a dark page needs more of it to read as separation. */
  --scrim:         rgba(0, 0, 0, .62);

  /* Shadows carry almost no signal on a dark page; the borders do the work. */
  --shadow-pop:    0 10px 34px rgba(0,0,0,.55);
  --shadow-drawer: -12px 0 40px rgba(0,0,0,.65);
  --shadow-modal:  0 20px 60px rgba(0,0,0,.70);
}

html[data-theme="dark"] img.nav-art { filter: none; }

/* Density — unchanged, kept here so every dimension token lives in one file. */
html[data-density="compact"]     { --row-h: 32px; }
html[data-density="comfortable"] { --row-h: 42px; }

/* ============================================================================
   SHARED ELEMENT CLASSES
   One implementation per element. Screens should reach for these before they
   write an inline style. Each is rendered on the Branding screen.
   ============================================================================ */

/* Kicker / eyebrow — replaces 48 separate specs. */
.v-kicker {
  font-size: var(--kicker-size);
  font-weight: var(--kicker-weight);
  letter-spacing: var(--kicker-track);
  text-transform: uppercase;
  color: var(--kicker-color);
}

/* Card — flat, bordered, radius 10. No shadow, by design. */
.v-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-none);
}
.v-card-pad { padding: 14px 16px; }

/* Floating layers — the only things that get elevation. */
.v-pop    { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-pop); }
.v-drawer { background: var(--surface); box-shadow: var(--shadow-drawer); }
.v-modal  { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-modal); }

/* Headings */
.v-h1 { font-size: var(--t-page);    font-weight: var(--w-medium); color: var(--ink); letter-spacing: -.02em; margin: 0; }
.v-h2 { font-size: var(--t-section); font-weight: var(--w-medium); color: var(--ink); letter-spacing: -.01em; margin: 0; }
.v-h3 { font-size: var(--t-card);    font-weight: var(--w-medium); color: var(--ink); margin: 0; }

/* Empty state — one voice: "Nothing ...", sentence case, terminal period. */
.v-empty {
  padding: 28px 16px; text-align: center;
  color: var(--muted); font-size: var(--t-body);
}

/* Table surface — usable by real <table> AND by CSS-grid pseudo-tables, so the
   25 grid-based tables render identically to the 6 real ones without being
   rewritten. Behaviour (sticky, sort, freeze) stays with table.dt for now. */
.v-thead {
  font-size: var(--t-micro); font-weight: var(--w-medium);
  /* BUILD_258 (Brian 10/16): table headers in Title Case, as written (no forced capitals, so no extra tracking). */
  letter-spacing: normal; text-transform: none;
  color: var(--muted); background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.v-trow { border-bottom: 1px solid var(--line-2); font-size: var(--t-body); color: var(--ink-2); }
.v-trow:hover { background: var(--surface-2); }

/* BUILD_257 tabular: digits share one width everywhere, so columns of numbers align without a monospace font. */
body { font-variant-numeric: tabular-nums; }

/* ---- Nav icon hover animations (Brian 11/10, "Nav Icon Hover Animations" design; shell.jsx NavIcon / NAV_ANIM) ----
   Each group icon is a stack of copies of one artwork, clipped to parts; a hovered row or rail tile ([data-tile]) plays
   the parts. White appears as the chrome ink; the glint and glow use the tokens below. Reduced motion turns it off. */
:root { --nav-anim-glint: rgba(255,255,255,.85); --nav-anim-glow: rgba(255,255,255,.55); --nav-anim-glow-2: rgba(255,255,255,.18); }
html[data-theme="dark"] { --nav-anim-glint: rgba(238,240,244,.85); --nav-anim-glow: rgba(238,240,244,.55); --nav-anim-glow-2: rgba(238,240,244,.18); }
.nav-anim { filter: none; }   /* 11/10 later: no halo; the art carries its own weight */
.nav-anim [data-w="ad-gear"]{clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,35% 41%,84% 41%,84% 81%,35% 81%,35% 41%,0 0)}
.nav-anim [data-w="ad-card"],.nav-anim [data-a="ad-card-lift"]{clip-path:inset(41% 16% 19% 35%)}
.nav-anim [data-w="rs-base"]{clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,72.3% 54.3%,69.85% 63.45%,86% 78%,86% 87%,77% 87%,63.15% 70.15%,54% 72.6%,44.85% 70.15%,38.15% 63.45%,35.7% 54.3%,38.15% 45.15%,44.85% 38.45%,54% 36%,63.15% 38.45%,69.85% 45.15%,72.3% 54.3%,0 0)}
.nav-anim [data-a="rs-lens-scan"],.nav-anim [data-a="rs-lens-zoom"]{clip-path:polygon(72.3% 54.3%,69.85% 63.45%,86% 78%,86% 87%,77% 87%,63.15% 70.15%,54% 72.6%,44.85% 70.15%,38.15% 63.45%,35.7% 54.3%,38.15% 45.15%,44.85% 38.45%,54% 36%,63.15% 38.45%,69.85% 45.15%)}
.nav-anim [data-w="rs-glass"]{clip-path:circle(9.4% at 54% 54.3%)}
.nav-anim [data-a="rs-glint"]{background:linear-gradient(115deg,transparent 42%,var(--nav-anim-glint) 50%,transparent 58%);background-size:300% 100%;background-position:100% 0;opacity:0}
.nav-anim [data-w="tc-checks"]{clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,29.5% 33.5%,44.5% 33.5%,44.5% 79%,29.5% 79%,29.5% 33.5%,0 0)}
.nav-anim [data-a="tc-c1"]{clip-path:inset(34.5% 55.5% 53.5% 30%)}
.nav-anim [data-a="tc-c2"]{clip-path:inset(50% 55.5% 38% 30%)}
.nav-anim [data-a="tc-c3"]{clip-path:inset(65.5% 55.5% 22.5% 30%)}
.nav-anim [data-a="tr-glow"]{background:radial-gradient(circle at 50% 60%,var(--nav-anim-glow) 0,var(--nav-anim-glow-2) 14%,transparent 26%);opacity:0}
.nav-anim [data-w="wr-abase"]{clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,68.6% 31.5%,77.5% 31.5%,77.5% 41%,68.6% 41%,68.6% 31.5%,0 0,71.5% 51.5%,81% 51.5%,81% 60.5%,71.5% 60.5%,71.5% 51.5%,0 0,62.5% 73.5%,80% 73.5%,80% 83%,62.5% 83%,62.5% 73.5%,0 0,33.5% 62.5%,40.5% 62.5%,40.5% 71.5%,33.5% 71.5%,33.5% 62.5%,0 0)}
.nav-anim [data-a="wr-a1"]{clip-path:inset(31.5% 22.5% 59% 68.6%)}
.nav-anim [data-a="wr-a2"]{clip-path:inset(51.5% 19% 39.5% 71.5%)}
.nav-anim [data-a="wr-a3"]{clip-path:inset(73.5% 20% 17% 62.5%)}
.nav-anim [data-a="wr-a4"]{clip-path:inset(62.5% 59.5% 28.5% 33.5%)}
@keyframes navAdLift{0%{transform:none}40%{transform:translate(1.5%,-7%) rotate(-6deg)}65%{transform:translate(.5%,-5%) rotate(-3deg)}100%{transform:none}}
@keyframes navRsZoom{0%{transform:none}45%,70%{transform:scale(1.14)}100%{transform:none}}
@keyframes navRsGlint{0%{background-position:100% 0;opacity:1}75%{background-position:0 0;opacity:1}100%{background-position:0 0;opacity:0}}
@keyframes navTcTick1{0%{clip-path:inset(34.5% 70% 53.5% 30%)}100%{clip-path:inset(34.5% 55.5% 53.5% 30%)}}
@keyframes navTcTick2{0%{clip-path:inset(50% 70% 38% 30%)}100%{clip-path:inset(50% 55.5% 38% 30%)}}
@keyframes navTcTick3{0%{clip-path:inset(65.5% 70% 22.5% 30%)}100%{clip-path:inset(65.5% 55.5% 22.5% 30%)}}
@keyframes navTrGlow{0%{opacity:0}12%{opacity:.9}20%{opacity:.2}32%{opacity:1}80%{opacity:1}100%{opacity:0}}
@keyframes navTrShine{0%,100%{filter:none}32%,80%{filter:drop-shadow(0 0 3px var(--nav-anim-glint))}}
@keyframes navWrFlow{0%{transform:none;opacity:1}45%{transform:translateX(7%);opacity:0}46%{transform:translateX(-5%);opacity:0}100%{transform:none;opacity:1}}
[data-tile]:hover .nav-anim [data-a="ad-card-lift"]{transform-origin:60% 80%;animation:navAdLift .8s cubic-bezier(.3,.7,.3,1) both}
[data-tile]:hover .nav-anim [data-a="rs-lens-zoom"]{transform-origin:54% 54.3%;animation:navRsZoom 1s cubic-bezier(.3,.7,.3,1) both}
[data-tile]:hover .nav-anim [data-a="rs-glint"]{animation:navRsGlint .8s ease-in-out .15s both}
[data-tile]:hover .nav-anim [data-a="tc-c1"]{animation:navTcTick1 .3s ease-out both}
[data-tile]:hover .nav-anim [data-a="tc-c2"]{animation:navTcTick2 .3s ease-out .22s both}
[data-tile]:hover .nav-anim [data-a="tc-c3"]{animation:navTcTick3 .3s ease-out .44s both}
[data-tile]:hover .nav-anim [data-a="tr-glow"]{animation:navTrGlow 1.2s linear both}
[data-tile]:hover .nav-anim [data-a="tr-shine"]{animation:navTrShine 1.2s linear both}
[data-tile]:hover .nav-anim [data-a="wr-a1"]{animation:navWrFlow .6s ease-in-out both}
[data-tile]:hover .nav-anim [data-a="wr-a2"]{animation:navWrFlow .6s ease-in-out .1s both}
[data-tile]:hover .nav-anim [data-a="wr-a3"]{animation:navWrFlow .6s ease-in-out .2s both}
[data-tile]:hover .nav-anim [data-a="wr-a4"]{animation:navWrFlow .6s ease-in-out .3s both}
.nav-anim [data-w="an2-wbase"]{clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,30% 38%,71% 38%,71% 67%,30% 67%,30% 38%,0 0)}
.nav-anim [data-w="an2-line"]{clip-path:polygon(evenodd,30% 38%,71% 38%,71% 67%,30% 67%,30% 38%,37.30% 63.00%,36.54% 64.84%,34.70% 65.60%,32.86% 64.84%,32.10% 63.00%,32.86% 61.16%,34.70% 60.40%,36.54% 61.16%,37.30% 63.00%,30% 38%,44.90% 60.20%,44.14% 62.04%,42.30% 62.80%,40.46% 62.04%,39.70% 60.20%,40.46% 58.36%,42.30% 57.60%,44.14% 58.36%,44.90% 60.20%,30% 38%,44.90% 52.70%,44.14% 54.54%,42.30% 55.30%,40.46% 54.54%,39.70% 52.70%,40.46% 50.86%,42.30% 50.10%,44.14% 50.86%,44.90% 52.70%,30% 38%,54.00% 50.40%,53.24% 52.24%,51.40% 53.00%,49.56% 52.24%,48.80% 50.40%,49.56% 48.56%,51.40% 47.80%,53.24% 48.56%,54.00% 50.40%,30% 38%,60.40% 51.60%,59.64% 53.44%,57.80% 54.20%,55.96% 53.44%,55.20% 51.60%,55.96% 49.76%,57.80% 49.00%,59.64% 49.76%,60.40% 51.60%,30% 38%,60.40% 60.70%,59.64% 62.54%,57.80% 63.30%,55.96% 62.54%,55.20% 60.70%,55.96% 58.86%,57.80% 58.10%,59.64% 58.86%,60.40% 60.70%,30% 38%,68.50% 43.00%,67.74% 44.84%,65.90% 45.60%,64.06% 44.84%,63.30% 43.00%,64.06% 41.16%,65.90% 40.40%,67.74% 41.16%,68.50% 43.00%,30% 38%,68.50% 51.00%,67.74% 52.84%,65.90% 53.60%,64.06% 52.84%,63.30% 51.00%,64.06% 49.16%,65.90% 48.40%,67.74% 49.16%,68.50% 51.00%,30% 38%)}
.nav-anim [data-w="pr2-wbase"]{clip-path:polygon(evenodd,0 0,100% 0,100% 100%,0 100%,0 0,21% 38%,79% 38%,79% 77%,21% 77%,21% 38%,0 0)}
.nav-anim [data-w="pr2-line"]{clip-path:polygon(evenodd,21% 38%,79% 38%,79% 77%,21% 77%,21% 38%,31.80% 69.00%,30.48% 72.18%,27.30% 73.50%,24.12% 72.18%,22.80% 69.00%,24.12% 65.82%,27.30% 64.50%,30.48% 65.82%,31.80% 69.00%,21% 38%,46.30% 57.20%,44.72% 61.02%,40.90% 62.60%,37.08% 61.02%,35.50% 57.20%,37.08% 53.38%,40.90% 51.80%,44.72% 53.38%,46.30% 57.20%,21% 38%,56.40% 43.60%,55.08% 46.78%,51.90% 48.10%,48.72% 46.78%,47.40% 43.60%,48.72% 40.42%,51.90% 39.10%,55.08% 40.42%,56.40% 43.60%,21% 38%,58.50% 70.30%,57.18% 73.48%,54.00% 74.80%,50.82% 73.48%,49.50% 70.30%,50.82% 67.12%,54.00% 65.80%,57.18% 67.12%,58.50% 70.30%,21% 38%,68.40% 56.80%,66.82% 60.62%,63.00% 62.20%,59.18% 60.62%,57.60% 56.80%,59.18% 52.98%,63.00% 51.40%,66.82% 52.98%,68.40% 56.80%,21% 38%,77.80% 45.70%,76.48% 48.88%,73.30% 50.20%,70.12% 48.88%,68.80% 45.70%,70.12% 42.52%,73.30% 41.20%,76.48% 42.52%,77.80% 45.70%,21% 38%)}
@keyframes navDotPop{0%{transform:scale(0);opacity:0}60%{transform:scale(1.35);opacity:1}100%{transform:none;opacity:1}}
@keyframes navAn2Wipe{0%{clip-path:inset(0 70% 0 0)}100%{clip-path:inset(0 0 0 0)}}
@keyframes navPr2Wipe{0%{clip-path:inset(0 79% 0 0)}100%{clip-path:inset(0 0 0 0)}}
.nav-anim [data-a="an2-w0"]{clip-path:circle(2.6% at 34.7% 63%);transform-origin:34.7% 63%}
[data-tile]:hover .nav-anim [data-a="an2-w0"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.00s both}
.nav-anim [data-a="an2-w1"]{clip-path:circle(2.6% at 42.3% 60.2%);transform-origin:42.3% 60.2%}
[data-tile]:hover .nav-anim [data-a="an2-w1"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.17s both}
.nav-anim [data-a="an2-w2"]{clip-path:circle(2.6% at 42.3% 52.7%);transform-origin:42.3% 52.7%}
[data-tile]:hover .nav-anim [data-a="an2-w2"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.17s both}
.nav-anim [data-a="an2-w3"]{clip-path:circle(2.6% at 51.4% 50.4%);transform-origin:51.4% 50.4%}
[data-tile]:hover .nav-anim [data-a="an2-w3"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.38s both}
.nav-anim [data-a="an2-w4"]{clip-path:circle(2.6% at 57.8% 51.6%);transform-origin:57.8% 51.6%}
[data-tile]:hover .nav-anim [data-a="an2-w4"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.52s both}
.nav-anim [data-a="an2-w5"]{clip-path:circle(2.6% at 57.8% 60.7%);transform-origin:57.8% 60.7%}
[data-tile]:hover .nav-anim [data-a="an2-w5"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.52s both}
.nav-anim [data-a="an2-w6"]{clip-path:circle(2.6% at 65.9% 43%);transform-origin:65.9% 43%}
[data-tile]:hover .nav-anim [data-a="an2-w6"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.71s both}
.nav-anim [data-a="an2-w7"]{clip-path:circle(2.6% at 65.9% 51%);transform-origin:65.9% 51%}
[data-tile]:hover .nav-anim [data-a="an2-w7"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.71s both}
.nav-anim [data-a="pr2-w0"]{clip-path:circle(4.5% at 27.3% 69%);transform-origin:27.3% 69%}
[data-tile]:hover .nav-anim [data-a="pr2-w0"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.01s both}
.nav-anim [data-a="pr2-w1"]{clip-path:circle(5.4% at 40.9% 57.2%);transform-origin:40.9% 57.2%}
[data-tile]:hover .nav-anim [data-a="pr2-w1"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.22s both}
.nav-anim [data-a="pr2-w2"]{clip-path:circle(4.5% at 51.9% 43.6%);transform-origin:51.9% 43.6%}
[data-tile]:hover .nav-anim [data-a="pr2-w2"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.40s both}
.nav-anim [data-a="pr2-w3"]{clip-path:circle(4.5% at 54% 70.3%);transform-origin:54% 70.3%}
[data-tile]:hover .nav-anim [data-a="pr2-w3"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.43s both}
.nav-anim [data-a="pr2-w4"]{clip-path:circle(5.4% at 63% 56.8%);transform-origin:63% 56.8%}
[data-tile]:hover .nav-anim [data-a="pr2-w4"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.58s both}
.nav-anim [data-a="pr2-w5"]{clip-path:circle(4.5% at 73.3% 45.7%);transform-origin:73.3% 45.7%}
[data-tile]:hover .nav-anim [data-a="pr2-w5"]{animation:navDotPop .32s cubic-bezier(.3,.7,.3,1.2) 0.74s both}
[data-tile]:hover .nav-anim [data-a="an2-wipe"]{animation:navAn2Wipe .9s linear both}
[data-tile]:hover .nav-anim [data-a="pr2-wipe"]{animation:navPr2Wipe .9s linear both}
@media (prefers-reduced-motion:reduce){.nav-anim [data-a]{animation:none!important}}

/* Brian 11/19: Data Standards (Claude Design) -- the wipe to a page, the arrival banner and the highlighted target */
@keyframes dsPing { 0% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 0 color-mix(in srgb, var(--accent) 28%, transparent); } 60% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); } 100% { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent); } }
@keyframes dsWipeIn { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes dsWipeOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(28px); } }
@keyframes dsIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
