/* ==========================================================================
   ELITE — Design tokens
   Derived from the 2026 company profile and the ELITE wordmark.
   The identity is monochrome and geometric; the 45° chamfer cut on the
   logo's E and T terminals is the system's one signature gesture.
   ========================================================================== */

:root {
  /* --- Ink scale ------------------------------------------------------- */
  --ink-000: #ffffff;
  --ink-050: #f6f6f6;   /* page alt background */
  --ink-100: #ebebeb;   /* hairlines on light */
  --ink-200: #d6d6d6;   /* borders */
  --ink-400: #8c8c8c;   /* muted body, eyebrow labels */
  --ink-600: #4a4a4a;   /* secondary text */
  --ink-800: #1c1c1c;   /* near-black panels */
  --ink-900: #2b2a29;   /* brand black, straight off the logo */
  --ink-950: #000000;   /* hero / cover black */

  /* Single accent. The brand has no colour, so colour = emphasis only.
     Used for focus rings and the live/active state — never decoration. */
  --accent: #c8102e;
  --accent-ink: #ffffff;

  /* --- Semantic -------------------------------------------------------- */
  --bg:            var(--ink-000);
  --bg-alt:        var(--ink-050);
  --bg-invert:     var(--ink-950);
  --text:          var(--ink-900);
  --text-muted:    var(--ink-400);
  --text-invert:   var(--ink-000);
  --rule:          var(--ink-200);
  --rule-invert:   rgba(255,255,255,.18);

  /* --- Type ------------------------------------------------------------ */
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace;

  /* Fluid scale, 320px → 1440px viewport */
  --fs-eyebrow: 0.6875rem;                                   /* 11px, tracked */
  --fs-xs:      0.75rem;
  --fs-sm:      0.8125rem;
  --fs-base:    clamp(0.9375rem, 0.9rem + 0.19vw, 1.0625rem);
  --fs-lead:    clamp(1.0625rem, 1rem + 0.31vw, 1.25rem);
  --fs-h4:      clamp(1.125rem, 1.05rem + 0.38vw, 1.375rem);
  --fs-h3:      clamp(1.375rem, 1.2rem + 0.88vw, 2rem);
  --fs-h2:      clamp(1.875rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h1:      clamp(2.25rem, 1.4rem + 4.2vw, 4.5rem);
  /* Hero only. Capped at 6.5rem — beyond that a headline of any real length
     wraps past four lines and pushes the lead and CTA below the fold. */
  --fs-display: clamp(2.75rem, 1.5rem + 5.5vw, 6.5rem);

  --lh-tight:   0.95;
  --lh-heading: 1.08;
  --lh-body:    1.65;

  --tr-display: -0.035em;   /* tight, like the profile's headline setting */
  --tr-heading: -0.02em;
  --tr-body:     0;
  --tr-eyebrow:  0.18em;    /* wide-tracked caps labels */

  /* --- Space (4px base) ------------------------------------------------ */
  --s-1: 0.25rem;  --s-2: 0.5rem;   --s-3: 0.75rem;  --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;     --s-7: 3rem;     --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;

  /* Vertical rhythm between full-bleed sections */
  --section-y: clamp(4rem, 2rem + 8vw, 9rem);

  /* --- Layout ---------------------------------------------------------- */
  --container:      1280px;
  --container-wide: 1560px;
  --container-text: 68ch;     /* measure for long-form copy */
  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 4rem);
  --grid-gap: clamp(1rem, 0.5rem + 1.5vw, 2rem);

  /* --- The chamfer ----------------------------------------------------- */
  /* The one shape rule. Corners are cut at 45°, never rounded. */
  --chamfer: 14px;
  --chamfer-sm: 8px;
  --chamfer-lg: 28px;

  /* --- Motion ---------------------------------------------------------- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 260ms;
  --dur-slow: 620ms;

  --header-h: 76px;
  --z-header: 100;
  --z-overlay: 200;
}

/* The site is light-first by design — the profile is a white document with
   black panels. Dark mode inverts the ground, keeping the same ink scale. */
:root[data-theme="dark"] {
  --bg:         var(--ink-950);
  --bg-alt:     #0d0d0d;
  --bg-invert:  var(--ink-000);
  --text:       var(--ink-000);
  --text-muted: #9a9a9a;
  --text-invert: var(--ink-900);
  --rule:       rgba(255,255,255,.16);
  --rule-invert: var(--ink-200);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; }
}
