/* Design tokens */

:root {

  /* ---- BRAND ---- */
  --color-brand:          #004AAD;  /* primary. LIGHT BACKGROUNDS ONLY */
  --color-brand-hover:    #003B8A;
  --color-brand-on-dark:  #5B9BE8;  /* REQUIRED on black. #004AAD on black
                                       is 2.6:1 and fails contrast */
  --color-brand-wash:     #E8F0FB;  /* tinted panels, icon backers */

  /* ---- ACCENT (action color) ---- */
  --color-accent:         #F5B41A;  /* CTAs. BLACK text on it */
  --color-accent-hover:   #DB9E0C;
  --color-accent-ink:     #8A6206;  /* accent as text on light */

  /* ---- NEUTRALS ---- */
  --color-ink:            #000000;
  --color-body:           #2B2F36;
  --color-muted:          #5F6772;
  --color-border:         #C6C6C6;  /* client grey. BORDERS ONLY. Never text,
                                       never a section background */
  --color-border-soft:    #E4E7EB;

  /* ---- SURFACES ---- */
  --color-surface:        #FFFFFF;
  --color-surface-soft:   #F5F7FA;
  --color-surface-alt:    #EDF1F6;
  --color-surface-dark:   #000000;
  --color-surface-tint:   #EEF3FB;

  /* ---- TYPE ---- */
  --font-display: 'Roboto', system-ui, -apple-system, sans-serif;
  --font-body:    'Roboto', system-ui, -apple-system, sans-serif;

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

  --text-display: 64px;
  --text-h1:      48px;
  --text-h2:      36px;
  --text-h3:      24px;
  --text-h4:      20px;
  --text-lead:    20px;
  --text-body:    16px;
  --text-small:   14px;
  --text-eyebrow: 13px;
  --text-micro:   12px;

  --leading-tight: 1.15;
  --leading-snug:  1.35;
  --leading-body:  1.65;

  --tracking-wide:   0.08em;   /* eyebrow, small caps labels */
  --tracking-normal: 0;

  /* ---- SPACING (8px grid) ---- */
  --space-1:   8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-8:  64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;

  /* ---- LAYOUT ---- */
  --container-max: 1240px;
  --measure-max:   760px;
  --header-height: 80px;
  --logo-height:   48px;
  --border-hairline: 1px;

  /* ---- RADIUS / SHADOW ---- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* ---- Z-INDEX ---- */
  --z-header: 40;
  --z-panel:  30;

  /* ---- GLASS ---- */
  --glass-bg:         rgba(255, 255, 255, 0.72);
  --glass-bg-strong:  rgba(255, 255, 255, 0.85);
  --glass-blur:       blur(20px) saturate(180%);
  --glass-border:     rgba(255, 255, 255, 0.40);

  /* ---- HEADER GLASS ----
     Deliberately separate from --glass-bg/--glass-blur above: those are
     shared by unrelated frosted-card components (.svc-handle__item,
     .svc-approach__media, pricing tiers, etc.) that were never asked to
     change. Header reads mostly white with only a light frost now. */
  --header-glass-bg:         rgba(255, 255, 255, 0.92);
  --header-glass-bg-strong:  rgba(255, 255, 255, 0.97);
  --header-glass-blur:       blur(12px) saturate(120%);
  /* DEPRECATED: superseded by --shadow-panel-dark in the elevation ladder
     below. Still referenced (.site-header.is-scrolled, .mobile-nav) --
     do not remove until Pass 15 retrofits those references. */
  --glass-shadow:     0 8px 32px rgba(0, 0, 0, 0.10);

  /* ---- COMPONENT SPACING (dense UI: menus, cards, form rows) ---- */
  --gap-2xs:  4px;
  --gap-xs:   8px;
  --gap-sm:  12px;
  --gap-md:  16px;
  --gap-lg:  24px;
  --gap-xl:  32px;

  /* ---- DARK GLASS ---- */
  --glass-dark-bg:      rgb(17, 19, 23);
  --glass-dark-border:  rgba(255, 255, 255, 0.10);
  --glass-dark-hover:   rgba(255, 255, 255, 0.06);

  --focus-ring-dark: #FFFFFF;

  /* ---- MOTION: DURATION ----
     Values match durations already in use across the codebase -- adding
     these tokens changes nothing until Pass 15 retrofits existing
     selectors to reference them. */
  --dur-fast:   150ms;   /* colour, background, border swaps */
  --dur-base:   200ms;   /* default: hover lifts, transforms */
  --dur-mid:    250ms;   /* weightier hovers */
  --dur-slow:   400ms;   /* carousel slide */
  --dur-settle: 500ms;   /* the notebook straightening */
  --dur-reveal: 600ms;   /* scroll reveal */

  /* ---- MOTION: EASING ---- */
  /* Fast departure, long gentle settle. This is the single biggest
     difference between default `ease` and a considered curve. */
  --ease-out:    cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Spring with slight overshoot. RESERVED -- do not apply broadly.
     Intended for ONE signature moment (the notebook straightening).
     A bounce on every card hover reads as cheap.
     NOTE: this is an approximation. If it feels off, regenerate a precise
     curve at a linear() spring generator and replace the value. */
  --ease-spring: linear(
    0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%,
    0.849 31.5%, 0.937 38.1%, 0.968 41.8%, 0.991 45.7%,
    1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 100%
  );

  /* ---- ELEVATION ----
     5-level ladder plus two specials, applied across every card, panel,
     and lightbox surface (Pass 15b). --shadow-card and --shadow-hover
     (the two tokens this ladder superseded) were retired in that same
     pass once their one remaining reference (.carousel-btn) moved onto
     the ladder. --glass-shadow is semantically distinct (glass surfaces:
     the header and mobile nav) and stays. Values are taken from the most
     refined recipes already in the codebase (the two-layer, cool-tinted
     service-card/t-card pair, and the notebook/lightbox/services-panel
     one-offs). */
  --shadow-1: 0 1px 2px rgba(11,18,32,0.04),
              0 2px 8px rgba(11,18,32,0.06);
  --shadow-2: 0 2px 4px rgba(11,18,32,0.04),
              0 4px 12px rgba(11,18,32,0.06);
  --shadow-3: 0 4px 8px rgba(11,18,32,0.04),
              0 12px 32px rgba(11,18,32,0.08);
  --shadow-4: 0 2px 4px rgba(16,24,40,0.06),
              0 30px 60px -12px rgba(16,24,40,0.25);
  --shadow-5: 0 2px 4px rgba(16,24,40,0.06),
              0 40px 80px -12px rgba(16,24,40,0.30);

  --shadow-panel-dark: 0 16px 40px rgba(0,0,0,0.35);
  --shadow-modal:      0 24px 80px rgba(0,0,0,0.60);

  /* ---- CORNER (additions) ----
     Two values used repeatedly with no token backing them. Not applied
     anywhere yet -- see Pass 15. */
  --radius-card: 16px;    /* used identically 4x: service-card, gallery-tile,
                             tcarousel-viewport, t-card. Sits between
                             --radius-md (12) and --radius-lg (20). */
  --radius-full: 999px;   /* the pill pattern, used 6x */

  /* ---- OPTICAL TRACKING ----
     Large type currently has ZERO negative tracking; type set at
     48-64px renders optically loose without it. Applied globally to
     h1/h2 in this same pass (Step 7) -- see global.css. */
  --tracking-display: -0.022em;   /* 56px and above */
  --tracking-heading: -0.012em;   /* 32px to 48px */
}

@media (max-width: 767px) {
  :root {
    --text-display: 40px;
    --text-h1:      32px;
    --text-h2:      28px;
    --text-h3:      22px;
    --text-lead:    18px;
    --header-height: 64px;
    --logo-height:   36px;
  }
}
