/* ═══════════════════════════════════════════════════════════════
   BPTP Workshop Facilitator — tokens
   The ONLY file permitted to contain a colour or type literal.
   Everything downstream references these. See workshop-rebuild-design.md §4.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ── Monochrome ramp ─────────────────────────────────────────
     Carried from the BPTP brand-book system. Verified against
     bptp.com's shipped CSS: the component layer is achromatic. */
  --ink:        #1a1a1a;
  --base:       #ffffff;
  --base-raise: #f4f4f4;
  --stone:      #8d8d8d;
  --grey:       #979797;
  --grey-2:     #cacaca;
  --line:       #ededed;
  --line-firm:  #d8d8d8;

  /* ── Tint ladder ─────────────────────────────────────────────
     Replaces the 115 hardcoded rgba() literals in the original.
     Component CSS must never write a raw rgba(). */
  --ink-03: rgba(26,26,26,.03);
  --ink-16: rgba(26,26,26,.16);
  --ink-30: rgba(26,26,26,.30);
  --ink-70: rgba(26,26,26,.70);

  /* ── Warn ────────────────────────────────────────────────────
     The one sanctioned break from monochrome. The original
     hardcoded #fca5a5 for SLA breaches and pain tags; rendered
     in grey, a breach reads as a shrug. */
  --warn:      #b4453c;
  --warn-bg:   rgba(180,69,60,.09);
  --warn-line: rgba(180,69,60,.32);

  /* ── Theme identity (decision D2a) ───────────────────────────
     Set at runtime by nav.js onto --theme-tone / --theme-wash, the
     same mechanism the original used for --theme-accent.

     Each accent is SAMPLED from that theme's own photograph and darkened
     to a legible UI weight. Nothing here is invented.

       tone-1  lobby.jpg        sandstone  hue 33°   #7d6951 → #8a5f3a
       tone-2  generations.jpg  slate      hue 240°  #4c4c5b → #4a5470
       tone-3  pool.jpg         landscape  hue 151°  #3c7057 → #35664e

     SUPERSEDED 23 Sep. The photo-sampled accents (sandstone / slate /
     landscape) disagreed with the colours the picker cards now carry,
     so a theme was bronze on the inside and green on the outside. The
     client asked for one identity per theme, end to end, so these now
     point at the same three values the picker uses. The photographs
     keep their role as imagery; they no longer set the accent.

     The old guardrail — never show two theme accents together — no
     longer holds either: the picker deliberately shows all three at
     once so the three paths are distinguishable at a glance. */
  --tone-1: var(--step-deploy);    /* Seamless & Personalized AI Sales — green */
  --tone-2: var(--step-invent);    /* Project Delivery                 — blue  */
  --tone-3: var(--step-reshape);   /* Elevating Customer Experience    — amber */

  /* Washes derive from the tones rather than repeating literals, so a
     tone change can never leave a stale wash behind it. */
  --wash-1: color-mix(in srgb, var(--tone-1) 7%, transparent);
  --wash-2: color-mix(in srgb, var(--tone-2) 7%, transparent);
  --wash-3: color-mix(in srgb, var(--tone-3) 7%, transparent);

  /* ── Imagery clamps (spec §4.1b) ─────────────────────────────
     Strength scales INVERSELY with the source image's luminance
     standard deviation. Applying the heavy clamp to an already-even
     image over-darkens it — observed on spa.jpg (sd 21.9) during the
     direction study. Never a gradient scrim; clamp the image. */
  --clamp-light: grayscale(.28) contrast(.94) brightness(.80) saturate(.92);
  --clamp-thumb: grayscale(.32) contrast(.98) brightness(1.02) saturate(.9);
  /* --clamp-heavy (for sd > 45) is specified in workshop-rebuild-design.md
     §4.1b but not declared here: no approved image needs it, and the
     dead-token check rightly fails on tokens nothing references. Re-add
     it the moment an image actually requires it. */

  /* Type laid over clamped photography. Always white — the clamp
     guarantees the ground is dark enough. */
  --on-image: #ffffff;

  /* ── Visible grid (references §1, Pentagram × Deloitte) ──────
     Ruled rather than implied — the cheapest move from "Swiss and
     cold" to "editorial and deliberate". */
  --grid-line: rgba(26,26,26,.07);

  /* ── Type ────────────────────────────────────────────────────
     Replaces 21 ad-hoc px sizes and 68 independently-tuned
     clamp() expressions with one scale. --t-050/075 are the
     compressed low end this kiosk's data density needs. */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  /* Editorial serif for display on MODEL surfaces. The client original
     specified Henderson BCG Serif and fell back to Georgia everywhere
     outside BCG — Source Serif 4 is the closest freely-licensable face
     and is what gives the deck its authority. */
  --font-serif:   "Source Serif 4", Georgia, "Times New Roman", serif;

  --t-050: 10px;
  --t-075: 11px;
  --t-100: 12px;
  --t-200: 13px;
  --t-300: clamp(14px, .95vw, 15px);
  --t-400: clamp(15px, 1.1vw, 17px);
  --t-500: clamp(18px, 1.5vw, 22px);
  --t-600: clamp(22px, 2.1vw, 30px);
  --t-700: clamp(28px, 3vw, 44px);
  --t-800: clamp(38px, 4.6vw, 68px);

  --lh-tight: 1.08;
  --lh-body:  1.5;

  --tr-wide:  .14em;   /* eyebrows, spec labels */
  --tr-mid:   .06em;

  /* ── Structure ───────────────────────────────────────────────
     Fluid where the original hardcoded px. --headerH and --stripH
     are load-bearing for sticky positioning (design §5.2). */
  --headerH:  clamp(52px, 4.2vh, 64px);
  --stripH:   clamp(64px, 5.4vh, 80px);
  --sidebarW: clamp(200px, 15vw, 260px);
  --gutter:   clamp(20px, 2.4vw, 44px);
  --measure:  1560px;

  /* ── Motion ──────────────────────────────────────────────────
     The original's signature was already restrained: .15/.18s
     micro-feedback, cubic-bezier(.16,.84,.44,1) for entrances.
     Kept, unified. NO scroll-driven motion — this is a kiosk. */
  --ease:      cubic-bezier(.16, 1, .3, 1);
  --ease-out:  cubic-bezier(.16, .84, .44, 1);
  --d-micro:   .15s;
  --d-ui:      .24s;
  --d-enter:   .42s;
  --d-view:    .3s;
}

@media (prefers-reduced-motion: reduce) {
  :root { --d-micro: 0s; --d-ui: 0s; --d-enter: 0s; --d-view: 0s; }
}

/* ═══════════════════════════════════════════════════════════════
   MODEL surfaces — token re-pointing.
   Lives here, not in model.css, because tokens.css is the only file
   permitted colour literals. Re-pointing rather than overriding each
   rule means every component inherits the inversion automatically.
   ═══════════════════════════════════════════════════════════════ */
.is-model {
  /* LIGHT. Client-locked direction. One token block drives every
     surface — components reference tokens, never literals, so the
     whole tool flips here. */
  --ink:        #14141a;
  --base:       #f7f6f4;
  --base-raise: #ffffff;
  --stone:      #5f5f6b;
  --grey-2:     #9a9aa4;
  --line:       rgba(20,20,26,.10);
  --line-firm:  rgba(20,20,26,.20);
  --grid-line:  rgba(20,20,26,.06);
  --ink-03:     rgba(20,20,26,.025);
  --ink-16:     rgba(20,20,26,.16);
  --ink-30:     rgba(20,20,26,.30);
  --ink-70:     rgba(20,20,26,.70);

  --field-line:   rgba(20,20,26,.05);
  --field-accent: rgba(20,20,26,.10);
  --model-hover:  rgba(20,20,26,.04);
  --model-veil:   rgba(247,246,244,.55);
}

/* ── Staircase semantics ─────────────────────────────────────────
   Deploy / Reshape / Invent are CONTENT colours, not theme accents —
   they encode three steps of one argument and are carried verbatim
   from the client original. Guardrail 4 governs the three BPTP theme
   accents; it does not apply here. */
:root {
  --step-deploy:  #12805A;
  --step-reshape: #9A7515;
  --step-invent:  #2B6E80;
  --step-ink:     #ffffff;
  /* Darkened variants for icon badges sitting on a light disc — the
     bright step colours fail contrast at 48px on white. */
  --step-reshape-on-light: #b8891f;
  --step-deploy-on-light:  #1c7d5c;
  --step-invent-on-light:  #2f6472;
  --veil-ink:    rgba(10,26,34,.34);
  --veil-deploy: rgba(38,192,138,.22);
  --veil-foot:   rgba(6,16,21,.9);
  /* Card scrim: three stops so type stays legible at the foot of a
     full-bleed image without flattening the top of the photograph. */
  --scrim-top: rgba(8,8,10,.25);
  --scrim-mid: rgba(8,8,10,.55);
  --scrim-bot: rgba(8,8,10,.94);
  /* Glass chrome */
  --glass:      rgba(14,14,17,.72);
  --glass-hi:   rgba(255,255,255,.07);
  /* White chrome bar sitting in a dark shell */
  --glass-bar:   rgba(255,255,255,.62);
  --bar-line:    rgba(0,0,0,.10);
  --bar-ink:     #12121a;
  --bar-stone:   #6b6b76;
  --bar-grey:    #b4b4bd;
  --bar-hair:    rgba(0,0,0,.09);
  --bar-hair-2:  rgba(0,0,0,.18);
  --bar-hi:      rgba(0,0,0,.05);
  --bar-on-dark: #ffffff;

  /* Section palette — five distinct pastel-matte tones, one per
     section. Muted enough to sit on a white bar without shouting. */
  --sec-1: #7FA98C;   /* agenda      — sage      */
  --sec-2: #8FA7C0;   /* immersion   — slate blue */
  --sec-3: #C4A582;   /* themes      — sand      */
  --sec-4: #A895B8;   /* debrief     — lilac     */
  --sec-5: #8EB3AE;   /* next steps  — eucalypt  */
  --sec-ink: #23232b;

  /* Benchmark series, sampled from the client's chart. */
  --ser-mint:  #4FBF8B;
  --ser-green: #2E8B57;
  --ser-pink:  #D6336C;
  --ser-white: #4A4A55;
  --ser-ice:   #5FA8C7;
  --ser-teal:  #57C2A8;
  --ser-slate: #55555F;
  --ser-bridge:#9AC9AE;
  --arm-navy:  #0A0026;
  --bar-shadow:  0 1px 24px rgba(20,20,26,.05);
  --card-lift:   0 1px 3px rgba(20,20,26,.05), 0 8px 26px rgba(20,20,26,.05);
  /* Mask stops — colour is irrelevant, only alpha matters. */
  --mask-on:  rgba(0,0,0,1);
}
