/* =========================================================================
   Untd. Performance — design tokens — "Division" (4.0)

   The 4.0 redesign is a different system, not a reskin: a pure-black
   cinematic canvas, sections that own a screen each, wide uppercase display
   type with no skew, and soft 16–20px card corners instead of the sheared
   2–6px plates of 3.x.

   Every token NAME from 3.x survives, because woo.css, ymm.css, editor.css
   and the Customizer's override map all read them by name — the Customizer
   writes --gold-400, --ink-950, --ink-800 and --container directly. What
   changed is the values they resolve to, plus the new tokens the 4.0
   language needs. So the cascade keeps working and the site looks nothing
   like it did.

   Never hard-code a hex in a template. Read the token.
   ========================================================================= */

:root{
/* ── Base: ink — now a true black canvas, not a charcoal one ──── */
--ink-1000:#000000;--ink-950:#000000;--ink-900:#050507;--ink-800:#0C0D10;--ink-700:#131519;--ink-600:#1C1F25;--ink-500:#2A2E36;
/* ── Base: chrome (machined metal neutrals) ───────────────────── */
--chrome-400:#6B727D;--chrome-300:#929AA5;--chrome-200:#BCC2CB;--chrome-100:#DEE2E8;--chrome-50:#F2F4F7;--white:#FFFFFF;
/* ── Base: gold (the Street Approved badge — still the signal) ── */
--gold-100:#FFF6D6;--gold-200:#FFE79A;--gold-300:#FFD84D;--gold-400:#F5C518;--gold-500:#DDA80C;--gold-600:#B4830A;--gold-700:#7A5806;
/* ── Base: signal ─────────────────────────────────────────────── */
--red-400:#FF4A3D;--red-500:#E12B1E;--red-600:#A81A10;
--green-400:#3ED27A;--green-500:#1FA85A;
--blue-400:#4FA8E8;--blue-500:#2A7FC0;
--amber-400:#F5A524;

/* ── Semantic: surfaces ───────────────────────────────────────── */
--surface-page:var(--ink-1000);
--surface-raised:var(--ink-900);
--surface-card:var(--ink-800);
--surface-card-hover:var(--ink-700);
--surface-sunken:var(--ink-1000);
--surface-inverse:var(--white);
--surface-inverse-muted:var(--chrome-50);
--surface-accent:var(--gold-400);
--surface-accent-hover:var(--gold-300);
--surface-accent-quiet:rgba(245,197,24,.10);
--surface-overlay:rgba(0,0,0,.86);
--surface-glass:rgba(5,5,7,.64);

/* ── Semantic: text ───────────────────────────────────────────── */
--text-heading:var(--white);
--text-body:var(--chrome-200);
--text-muted:var(--chrome-300);
--text-faint:var(--chrome-400);
--text-accent:var(--gold-400);
--text-on-accent:var(--ink-1000);
--text-on-inverse:var(--ink-950);
--text-on-inverse-muted:var(--chrome-400);
/* The dim half of a two-tone display line. */
--text-dim:#4A4F58;

/* ── Semantic: lines ──────────────────────────────────────────── */
--border-hairline:rgba(255,255,255,.06);
--border-default:rgba(255,255,255,.10);
--border-strong:rgba(255,255,255,.22);
--border-accent:var(--gold-400);
--border-inverse:rgba(0,0,0,.12);
--focus-ring:var(--gold-300);

/* ── Semantic: status ─────────────────────────────────────────── */
--status-success:var(--green-400);--status-success-quiet:rgba(62,210,122,.14);
--status-danger:var(--red-400);--status-danger-quiet:rgba(255,74,61,.14);
--status-warning:var(--amber-400);--status-warning-quiet:rgba(245,165,36,.14);
--status-info:var(--blue-400);--status-info-quiet:rgba(79,168,232,.14);

/* ── Gradients & effects ──────────────────────────────────────── */
--grad-chrome:linear-gradient(180deg,#FFFFFF 0%,#C8CDD5 38%,#7D838D 52%,#AEB4BD 64%,#F2F4F7 100%);
--grad-gold:linear-gradient(180deg,var(--gold-200) 0%,var(--gold-400) 45%,var(--gold-600) 100%);
/* 4.0 works in full-bleed cinema frames, so the scrims are taller and
   land on pure black rather than the old #08080A. */
--grad-protect-bottom:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.45) 38%,rgba(0,0,0,.88) 72%,#000 100%);
--grad-protect-top:linear-gradient(180deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.35) 46%,rgba(0,0,0,0) 100%);
--grad-card-veil:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.55) 46%,rgba(0,0,0,.94) 100%);
/* The fade on a rail that scrolls sideways. A mask shows what is opaque
   and hides what is clear, so the solid run belongs in the middle and the
   clear ends are the fade: written the other way round it keeps the two
   ends and rubs out everything between them. */
--grad-edge-x:linear-gradient(90deg,rgba(0,0,0,0) 0%,#000 14%,#000 86%,rgba(0,0,0,0) 100%);
--carbon-weave:repeating-linear-gradient(45deg,rgba(255,255,255,.016) 0 2px,transparent 2px 5px),repeating-linear-gradient(-45deg,rgba(255,255,255,.016) 0 2px,transparent 2px 5px);
/* The thin light that rides the top edge of a 4.0 card. */
--rim-light:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.16) 28%,rgba(255,255,255,.22) 50%,rgba(255,255,255,.16) 72%,rgba(255,255,255,0) 100%);
--rim-gold:linear-gradient(90deg,rgba(245,197,24,0) 0%,rgba(245,197,24,.55) 50%,rgba(245,197,24,0) 100%);

/* ── Type ─────────────────────────────────────────────────────── */
/* Saira, not Saira Condensed: 4.0 sets the display face wide and
   letterspaced instead of narrow and skewed. Same family tree, so the
   wordmark still belongs to the page. */
--font-display:"Saira","Saira Condensed",system-ui,sans-serif;
--font-ui:"Archivo",system-ui,-apple-system,sans-serif;
--font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,monospace;

--weight-regular:400;--weight-medium:500;--weight-semibold:600;--weight-bold:700;--weight-black:900;

/* 7.5rem looked right in isolation and was unusable on the page: at that
   size a five-word hero statement cannot hold a line, so it broke one word
   per row. These three are sized so a short statement keeps its line at
   every width the design actually meets. */
--display-1:clamp(2.5rem,5.6vw,5.25rem);
--display-2:clamp(2.125rem,4.2vw,3.75rem);
--display-3:clamp(1.75rem,2.8vw,2.625rem);
--display-lh:0.94;
--display-ls:0.015em;
--display-skew:0deg;          /* 3.x sheared the display face. 4.0 does not. */
--display-weight:700;

--h1:2.5rem;--h2:1.875rem;--h3:1.375rem;--h4:1.0625rem;
--heading-lh:1.16;--heading-ls:0.01em;

--body-lg:1.125rem;--body:0.9375rem;--body-sm:0.8125rem;
--body-lh:1.65;--body-ls:0;

--label:0.75rem;--label-lh:1.2;--label-ls:0.2em;
--label-sm:0.625rem;--label-sm-ls:0.26em;
--mono:0.8125rem;--mono-ls:0.04em;

/* Figures in a stat rail: the loudest type on the page after the display. */
--figure-1:clamp(2.75rem,5.6vw,4.75rem);
--figure-2:clamp(2rem,3.4vw,3rem);
--figure-3:1.75rem;
--figure-ls:-0.02em;

/* ── Space ────────────────────────────────────────────────────── */
--space-0:0;--space-1:2px;--space-2:4px;--space-3:8px;--space-4:12px;--space-5:16px;--space-6:20px;
--space-7:24px;--space-8:32px;--space-9:40px;--space-10:48px;--space-11:64px;--space-12:80px;--space-13:120px;
--space-14:160px;--space-15:200px;
--gutter:20px;--gutter-lg:48px;
--container:1440px;--container-narrow:760px;--container-wide:1760px;
/* The only vertical rhythm on the page: a band is one of these three, never
   its own number.

   Read them as HALF a seam, not a whole one. Every band pads its top and its
   bottom — which it has to, because each one is also a block pattern and a
   shortcode that can be dropped anywhere on its own — so two bands meeting
   add up to twice the value here. 96 and 128 were being read as the gap and
   were landing as 192 and 256.

   The three are also kept close together on purpose. When they were far
   apart a seam between two tall bands came out at nearly three times one
   between a tall band and a short one, and the page read as if the spacing
   were arbitrary rather than rhythmic. */
--section-y:clamp(28px,2.5vw,36px);
--section-y-lg:clamp(36px,3.1vw,46px);
/* The short strips — the logo rail, the brand row. */
--section-y-sm:clamp(20px,1.8vw,26px);
/* The makes strip when it floats over the hero. Its height and the negative
   margin that pulls the hero up behind it are the same figure, so it is a
   token and not a number written twice. */
--untd-makes-strip-h:56px;
--control-h-sm:34px;--control-h:46px;--control-h-lg:58px;
--touch-min:44px;

/* ── Radius ───────────────────────────────────────────────────── */
--radius-0:0;--radius-1:2px;--radius-2:4px;--radius-3:8px;--radius-4:12px;--radius-5:18px;--radius-6:24px;--radius-pill:999px;
--radius-control:var(--radius-pill);
--radius-card:var(--radius-5);
--radius-media:var(--radius-4);
--radius-modal:var(--radius-6);
/* 3.x cut a notch out of every plate. 4.0 rounds instead, so the shear
   clips resolve to the plain rectangle the new cards expect. */
--clip-shear:none;
--clip-shear-sm:none;

/* ── Elevation ────────────────────────────────────────────────── */
--shadow-0:none;
--shadow-1:0 1px 2px rgba(0,0,0,.6);
--shadow-2:0 8px 24px rgba(0,0,0,.6);
--shadow-3:0 20px 50px rgba(0,0,0,.7);
--shadow-4:0 40px 90px rgba(0,0,0,.8);
--shadow-accent:0 10px 34px rgba(245,197,24,.22);
--inset-well:inset 0 1px 0 rgba(255,255,255,.05);
--edge-top:inset 0 1px 0 rgba(255,255,255,.07);
--ring-focus:0 0 0 2px var(--ink-1000),0 0 0 4px var(--focus-ring);
--blur-glass:blur(18px) saturate(130%);

/* ── Motion ───────────────────────────────────────────────────── */
--dur-instant:80ms;--dur-fast:160ms;--dur-base:260ms;--dur-slow:420ms;--dur-reveal:900ms;
--ease-standard:cubic-bezier(.2,.8,.2,1);
--ease-out:cubic-bezier(.16,1,.3,1);
--ease-in:cubic-bezier(.4,0,1,1);
--ease-shift:cubic-bezier(.6,0,.2,1);
--transition-control:background-color var(--dur-fast) var(--ease-standard),color var(--dur-fast) var(--ease-standard),border-color var(--dur-fast) var(--ease-standard),transform var(--dur-fast) var(--ease-standard),box-shadow var(--dur-fast) var(--ease-standard);
--press-scale:0.985;
--hover-lift:-2px;
/* How far a revealing element travels, and how long the stagger step is. */
--reveal-y:28px;
--reveal-step:70ms;
}

@media (prefers-reduced-motion:reduce){
  :root{--dur-fast:0ms;--dur-base:0ms;--dur-slow:0ms;--dur-reveal:0ms;--reveal-y:0px;--reveal-step:0ms}
}

/* Light scope — invoice / spec-sheet / print surfaces */
[data-theme="light"]{
--surface-page:var(--white);--surface-raised:var(--chrome-50);--surface-card:var(--white);--surface-card-hover:var(--chrome-50);
--surface-sunken:var(--chrome-100);--surface-glass:rgba(255,255,255,.8);
--text-heading:var(--ink-950);--text-body:var(--ink-700);--text-muted:var(--chrome-400);--text-faint:var(--chrome-300);--text-dim:var(--chrome-200);
--border-hairline:rgba(0,0,0,.07);--border-default:rgba(0,0,0,.12);--border-strong:rgba(0,0,0,.24);
--rim-light:linear-gradient(90deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.08) 50%,rgba(0,0,0,0) 100%);
}
