/* =====================================================================
   Latigo Leadership Consulting design system 1.0 (2026-11-12)
   tokens.css: every value the system uses, as custom properties.
   Load order: tokens.css, base.css, components.css.
   Naming: --latigo-* are primitives (raw brand values, never used in
   components directly); --color-*, --font-*, --text-*, --space-*,
   --radius-*, --motion-* are semantic roles. A tone (data-tone on a band)
   re-points the semantic color roles; nothing else changes per tone.
   Round: faithful. Every value below was measured from the capture of
   latigoleader.com (material/rendered.html, styles.css, computed-type*.txt,
   the screenshots) or from the live site on 2026-11-12, unless it says
   "decided".
   ===================================================================== */

:root {
  /* ---------------------------------------------------------------
     COLOR PRIMITIVES
     Measured: inline styles in rendered.html; theme-color #2A5C5A in <head>.
     Decided: names. The site has no brand variables of its own (the :root
     in styles.css is an unused shadcn default set).
     --------------------------------------------------------------- */
  --latigo-paper:  #FAF8F5;  /* body bg, intro/LifePlan/team bands, light text on teal */
  --latigo-white:  #FFFFFF;  /* main wrapper, StratOp band, gallery, footer */
  --latigo-ink:    #1A1A1A;  /* all dark body text and headings */
  --latigo-teal:   #2A5C5A;  /* brand teal: How We Work band, primary buttons, CTA overlay */
  --latigo-deep:   #1F3D3C;  /* deep teal: quote text, team roles, carousel dots */
  --latigo-mist:   #C5D0D6;  /* testimonial band */
  --latigo-gold:   #BF9F4B;  /* accent: header Contact Us fill, "Explore" links */
  --latigo-plum:   #4F2D37;  /* nav text on the scrolled header (live, rgb 79,45,55) */
  --latigo-copper: #D4874D;  /* only in the footer theme switcher */
  --latigo-black:  #000000;  /* hero bg under the video */

  /* ---------------------------------------------------------------
     COLOR ROLES (default tone: paper)
     Contrast, WCAG 2.1, normal text needs 4.5:1, large text (24px, or
     18.66px bold) and non-text (lines, icons, rings) need 3:1.
     --------------------------------------------------------------- */
  --color-surface:        var(--latigo-paper);
  --color-text:           var(--latigo-ink);        /* 16.42:1 on paper, 17.40:1 on white */
  --color-heading:        var(--latigo-ink);
  --color-text-soft:      var(--latigo-deep);       /* role labels: 11.06:1 on paper */
  --color-accent:         var(--latigo-gold);       /* KEPT AS MEASURED, FAILS: 2.54:1 on white, 2.39:1 on paper. Fix proposed in REPORT: ink-on-gold or a darker gold for text. */
  --color-link:           var(--latigo-gold);       /* same failure as accent */
  --color-action-bg:      var(--latigo-teal);       /* primary button */
  --color-action-text:    var(--latigo-paper);      /* 7.13:1 on teal */
  --color-ghost-line:     var(--latigo-white);      /* ghost button border, only on dark tones */
  --color-rule:           rgba(0, 0, 0, 0.1);       /* footer rule: 1.25:1, decorative, not a control boundary */
  --color-rule-soft:      rgba(0, 0, 0, 0.06);      /* mobile menu separators, decorative */
  --color-muted:          rgba(0, 0, 0, 0.4);       /* copyright: renders #999 on white, 2.85:1, KEPT AS MEASURED, FAILS */
  --color-focus:          var(--latigo-ink);        /* decided: ring 16.42:1 on paper, 17.40:1 on white, 11.0:1 on mist */

  /* Header and logo tint (measured, live, scrolled state) */
  --color-header-solid:   rgba(250, 248, 245, 0.98);
  --color-header-ink:     var(--latigo-plum);       /* 11.24:1 on paper */
  --shadow-header:        0 1px 0 rgba(0, 0, 0, 0.08);
  --filter-logo-dark: brightness(0) saturate(100%) invert(20%) sepia(15%) saturate(300%) hue-rotate(310deg) brightness(75%) contrast(95%);
  --filter-icon-light: brightness(0) invert(1);    /* How We Work icons drawn white */

  /* Photo treatment (measured, data-theme="teal" rule): every photo except
     the wordmark and the two portraits gets this warm, slightly flat tint. */
  --filter-photo-tint: sepia(12%) saturate(80%) brightness(96%);

  /* Overlays (measured) */
  --overlay-hero-shade:  rgba(0, 0, 0, 0.52);   /* hero: black 52% ... */
  --overlay-hero-tint:   rgba(42, 92, 90, 0.12);/* ... then teal 12% */
  --overlay-cta-opacity: 0.88;                  /* closing band: teal at 88% over horses video */
  --color-hero-lede:     rgba(250, 248, 245, 0.88); /* worst case (white video pixel) 3.78:1 at 22px; on the real dark footage well above 4.5:1 */

  /* Carousel controls, as measured: opacity 0.3 = 1.65:1 on mist, under 3:1.
     Restored in the fix round (scorecard item 4): at 0.65 they competed with
     the quote. Hover takes them to 1; the 3:1 gap is an open question. */
  --opacity-control-rest: 0.3;
  --color-dot-rest: rgba(31, 61, 60, 0.3);       /* inactive dot, measured, 1.65:1 */
  --color-control-scrim: rgba(0, 0, 0, 0.25);    /* decided: behind the video pause button */
  --color-chip-copper-bg: rgba(212, 135, 77, 0.1); /* measured, switcher only */

  /* ---------------------------------------------------------------
     TYPE
     Measured: @import of DM Sans 400/500/700, Inter 400/500, Lora italic
     (Lora is loaded but never used on the home; not carried).
     Files: fonts/ (self-hosted from Google Fonts, SIL Open Font License).
     --------------------------------------------------------------- */
  --font-display: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-bold:    700;

  /* Roles: size at 1440 / at 390, and the measured size each replaces.
     Fluid clamps are the site's own; kept so both widths match. */
  --text-display:  clamp(3rem, 6vw, 5rem);       /* hero: 80 / 48, replaces 80px & 48px */
  --text-title-xl: clamp(2.4rem, 4.5vw, 3.8rem); /* centered band titles: 60.8 / 38.4 */
  --text-title-l:  clamp(2.2rem, 4vw, 3.5rem);   /* split titles: 56 / 35.2 */
  --text-quote:    clamp(1.4rem, 2.5vw, 2rem);   /* testimonial: 32 / 22.4 */
  --text-title-s:  1.5rem;                       /* card names, process steps, footer heads: 24 */
  --text-lede:     clamp(1.1rem, 1.8vw, 1.4rem); /* hero line: 22.4 / 17.6 */
  --text-body-l:   clamp(1rem, 1.6vw, 1.2rem);   /* band paragraphs and Explore links: 19.2 / 16 */
  --text-nav:      1.2rem;                       /* desktop nav: 19.2 */
  --text-menu:     1.1rem;                       /* mobile menu: 17.6 */
  --text-body:     1rem;                         /* cards: 16 */
  --text-small:    0.95rem;                      /* footer links, tagline: 15.2 */
  --text-button:   0.85rem;                      /* band buttons: 13.6 */
  --text-label:    0.8rem;                       /* caps labels, header button: 12.8 */
  --text-fine:     0.75rem;                      /* copyright: 12 */
  --text-micro:    0.7rem;                       /* theme switcher: 11.2 */

  --leading-tight:   1.1;   /* display, title-l */
  --leading-title:   1.15;  /* title-xl */
  --leading-snug:    1.3;   /* title-s, footer links */
  --leading-quote:   1.6;
  --leading-lede:    1.65;  /* body default and hero lede */
  --leading-card:    1.7;
  --leading-body-l:  1.75;
  --leading-tagline: 1.4;   /* footer tagline */

  --tracking-nav:    0.01em;
  --tracking-caps:   0.1em;   /* buttons, role labels */
  --tracking-cite:   0.14em;  /* testimonial attribution */

  --measure-lede:  580px;   /* hero line ~48 characters */
  --measure-intro: 780px;   /* intro paragraph ~78 characters */

  /* ---------------------------------------------------------------
     SPACE
     Measured: band padding 6vw 4vw, testimonial 4vw, rem insides.
     Decided: names; the scale keeps the site's exact steps.
     --------------------------------------------------------------- */
  --space-band:    6vw;     /* vertical band padding: 86 at 1440, 23 at 390 */
  --space-band-s:  4vw;     /* testimonial, gallery top */
  --gutter:        4vw;     /* page side margin: 58 at 1440, 16 at 390 */
  --space-split-y: 3vw;     /* split text inset */
  --space-split-x: 2vw;

  --space-3xs: 0.35rem;  /* name to role */
  --space-2xs: 0.5rem;   /* dots */
  --space-xs:  0.75rem;  /* role to bio, footer link gap */
  --space-s:   1rem;     /* gallery gap, footer head */
  --space-s2:  1.2rem;   /* display to lede */
  --space-m1:  1.25rem;  /* icon to step title */
  --space-m:   1.5rem;   /* title to paragraph */
  --space-m2:  1.75rem;  /* paragraph to link */
  --space-l:   2rem;     /* nav gap, quote to dots */
  --space-l2:  2.5rem;   /* closing title to button; footer bottom */
  --space-xl:  3rem;     /* intro paragraph to button */
  --space-2xl: 4rem;     /* footer top */
  --space-band-head: 70px; /* band title to grid, grid to button */

  --gap-card-x:  40px;   /* process grid column gap */
  --gap-team-x:  80px;
  --gap-team-y:  60px;
  --gap-footer:  80px;
  --gap-footer-cols: 60px;
  --gap-stack-m: 48px;   /* process steps stacked at 390 */
  --gap-stack-s: 40px;   /* team and footer stacked at 390 */

  /* Containers (measured max-widths) */
  --container-wide:  1400px;  /* every band */
  --container-steps: 1100px;  /* process grid */
  --container-quote: 1000px;
  --container-team:  900px;
  --container-intro: 860px;
  --portrait-max:    300px;

  /* Breakpoint, one, measured: 768px (max-width) stacks every grid,
     swaps nav for the menu button, hides carousel arrows and the
     footer sitemap. Custom properties cannot sit in @media; use 768px. */

  /* Header (measured: padding 2.5vw 4vw 1.25vw at top, 0.75vw when scrolled) */
  --header-pad-top:     2.5vw;
  --header-pad-bottom:  1.25vw;
  --header-pad-scrolled: 0.75vw;
  --logo-height:        34px;
  --logo-height-footer: 31px;

  /* ---------------------------------------------------------------
     RADII, RULES, SHADOWS (the site uses these and no others)
     --------------------------------------------------------------- */
  --radius-chip:   3px;   /* theme switcher */
  --radius-dot:    4px;   /* carousel dots */
  --radius-button: 6px;
  --radius-media:  8px;   /* every photo */
  --rule-hair:     1px;
  --rule-nav:      2px;   /* nav underline slot (transparent at rest, drawn on current page) */
  --ring-width:    3px;   /* decided: focus ring, at least 2px */
  --ring-offset:   3px;

  /* ---------------------------------------------------------------
     MOTION (measured transitions; easing is the browser default "ease")
     Signature motions: 1) bands fade in as they arrive (0.8s);
     2) the testimonial dot that fills over 8s, then the quote cross-fades.
     Under prefers-reduced-motion: fades are instant, no carousel autoplay,
     no video autoplay (poster frame shows).
     --------------------------------------------------------------- */
  --motion-fast:    0.2s;  /* link and nav hover */
  --motion-base:    0.3s;  /* buttons, header background */
  --motion-fade:    0.5s;  /* quote cross-fade */
  --motion-media:   0.6s;  /* video fade */
  --motion-reveal:  0.8s;  /* band fade-in */
  --motion-dwell:   8s;    /* testimonial dwell */
  --ease:           ease;
}

/* =====================================================================
   TONES: a band (or the header) sets data-tone; the color roles re-point.
   paper, white: light. mist: quote band. teal: brand band, also the
   closing band (teal over video). photo: dark hero over video.
   Allowed neighbours (the home's order proves each pair): photo>paper,
   paper>white, white>paper, paper>teal, teal>mist, mist>paper,
   paper>teal, teal>white. Not allowed: two bands of the same tone
   touching (they merge into one slab with no edge).
   Focus ring proof (ring 3px, needs 3:1): ink on paper 16.42, on white
   17.40, on mist 11.08; paper on teal 7.13; paper on photo 4.36 even
   over a white video frame.
   ===================================================================== */
[data-tone="paper"] { --color-surface: var(--latigo-paper); }
[data-tone="white"] { --color-surface: var(--latigo-white); }
[data-tone="mist"]  {
  --color-surface: var(--latigo-mist);
  --color-text: var(--latigo-deep);      /* 7.46:1 on mist */
  --color-heading: var(--latigo-deep);
  --color-text-soft: var(--latigo-deep);
  --color-focus: var(--latigo-ink);      /* 11.08:1 */
}
[data-tone="teal"] {
  --color-surface: var(--latigo-teal);
  --color-text: var(--latigo-white);     /* 7.56:1 on teal */
  --color-heading: var(--latigo-white);
  --color-text-soft: var(--latigo-white);
  --color-action-bg: transparent;
  --color-action-text: var(--latigo-white);
  --color-focus: var(--latigo-paper);    /* 7.13:1 */
}
[data-tone="photo"] {
  --color-surface: var(--latigo-black);
  --color-text: var(--latigo-paper);
  --color-heading: var(--latigo-paper);
  --color-focus: var(--latigo-paper);    /* 4.36:1 worst case */
}
