/* Assetas design tokens: every color, font, size and spacing value the site uses.
   Change a value here and it changes everywhere. See /design-system for a visual reference.
   Contrast ratios are WCAG 2.2: normal text needs 4.5:1, large text (24px+, or 19px+ bold) and
   UI boundaries need 3:1.

   Look: "Blueprint" (chosen 2026-11-18). Brand blue is a surface: the header, every hero and the
   closing band are blocks of #006dff with a drafting grid. Pages are white with ice sections;
   deep navy carries the dark bands and the footer. Safety amber marks the main action on blue.
   Inter throughout. */

/* Inter, self-hosted (Dec 4, 2026; SIL Open Font License): the variable Latin files from Google Fonts v20, weights
   300-800 (italic 400-800) with the optical-size axis. The site's text needs no other subset; arrows, subscripts and
   the other symbols outside this range come from the system font, as they did from Google. The upright file is
   preloaded in base.njk. "Inter fallback" is Arial scaled to Inter's text width (measured Dec 4, 2026 on the site's
   own copy: Inter runs 2.4-4% narrower than Arial) with Inter's ascent and descent, so lines wrap the same way when Inter
   swaps in and the layout doesn't shift. It covers the same range, so symbols outside it still come from the system font. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter fallback";
  font-style: normal;
  font-weight: 300 500;
  src: local("Arial"), local("ArialMT");
  size-adjust: 97.1%;
  ascent-override: 99.77%;
  descent-override: 24.87%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter fallback";
  font-style: normal;
  font-weight: 600 800;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 96.0%;
  ascent-override: 100.91%;
  descent-override: 25.16%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter fallback";
  font-style: italic;
  font-weight: 300 500;
  src: local("Arial Italic"), local("Arial-ItalicMT");
  size-adjust: 97.6%;
  ascent-override: 99.26%;
  descent-override: 24.74%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter fallback";
  font-style: italic;
  font-weight: 600 800;
  src: local("Arial Bold Italic"), local("Arial-BoldItalicMT");
  size-adjust: 96.6%;
  ascent-override: 100.28%;
  descent-override: 25.00%;
  line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Ink and neutrals */
  --color-text: #021b4e;          /* Deep field navy: headings, primary text. 16.5:1 on white */
  --color-body: #33466b;          /* Steel: body copy. 9.4:1 on white, 8.5:1 on ice */
  --color-muted: #4e5f80;         /* secondary text: 6.4:1 on white, 5.8:1 on ice */
  --color-bg: #ffffff;            /* page */
  --color-surface: #edf4ff;       /* Ice: panels, icon circles, small surfaces */
  --color-arc: #cfe0fb;           /* a deeper ice: the alpha mark on light panels (home integrations) */
  --color-section-alt: #f4f5f7;   /* Light gray: alternate page sections. Graphite text 15.5:1, muted 6.1:1, small blue text 5.8:1 */
  --color-panel-gray: #eef0f3;   /* Flat gray panel (home film): navy text 15:1, muted 5.8:1, small blue text 5.5:1 */
  --color-panel-line: #dcdfe5;   /* hairline around a flat gray panel and what sits on it (decorative) */
  --color-border: #d3e2f8;        /* dividers and card outlines (decorative) */
  --color-border-input: #7389b0;  /* form field outlines: 3.5:1 on white, 3.2:1 on ice */
  --color-device-silver: #c8cdd5; /* silver phone bezel around product screens (/trek); decorative */
  --color-rule: rgb(2 27 78 / 0.3); /* strong table rules */

  /* Brand blue */
  --color-brand: #006dff;         /* Electric blue: header, hero, closing band, buttons. White text 4.5:1 */
  --color-brand-deep: #0062e6;    /* bottom of the hero gradient. White text 5.4:1 */
  --color-brand-muted: #34609f;   /* steel blue: the closing band, quieter than the hero. White text 6.3:1 */
  --color-brand-shade: rgb(2 27 78 / 0.18); /* navy shading on blue blocks (only ever darkens, so text contrast only rises) */
  --color-brand-glow: rgb(0 109 255 / 0.45); /* blue glow on navy panels */
  --color-accent: #006dff;        /* big numerals, rules and markers on white: 4.5:1, 4.1:1 on ice */
  --color-accent-text: #0058d6;   /* small blue text: eyebrows, labels. 6.2:1 on white, 5.6:1 on ice */
  --color-accent-hover: #0047b3;
  --color-link: #0058d6;          /* inline links: 6.2:1 on white */

  /* Safety amber: the main action on blue, and accents on navy. Never text on white (1.6:1). */
  --color-amber: #ffc21a;         /* navy text on amber 10.2:1; amber on navy 10.2:1 */
  --color-amber-hover: #ffd352;
  --color-amber-light: #ffd352;   /* big numerals on brand blue: 3.2:1 (large text only) */
  --color-amber-dark: #9a6700;    /* amber as text on white: 4.87:1 (stacking-card step numbers) */
  --color-chart: #b3b8bf;         /* light gray bars in drawn charts (decorative) */
  --color-chart-highlight: #5c9fff; /* light blue for the highlighted bar, darker and bluer than the gray: 2.7:1 on white (decorative) */

  /* Navy bands and footer */
  --color-dark: #021b4e;          /* statement band, footer */
  --color-dark-deep: #010d29;     /* deeper navy for the quote card field, under its glows. White text 18:1 */
  --color-dark-night: #00081c;    /* near-black navy, the foot of the /telemetry mesh hero. White text 19:1 */
  --color-band: #021b4e;          /* dark bands and panels (stats, dark CTA, dark-band, tooltips) */
  --color-on-dark: #b5c6e6;       /* body text on navy: 9.6:1 */
  --color-on-dark-muted: #8fa3c8; /* secondary text on navy: 6.5:1 */
  --color-on-dark-gray: #a7adb7;  /* neutral gray text on navy (home hero italics): about 7:1 */
  --color-accent-on-dark: #ffc21a;/* small accent text on navy: amber 10.2:1 */
  --color-on-fill: #ffffff;       /* text on blue (4.5:1) and navy (16.5:1) */
  --color-on-fill-line: rgb(255 255 255 / 0.22); /* rules and outlines on blue and navy */
  --color-on-fill-tint: rgb(255 255 255 / 0.08); /* chips and tags on navy, tiles on blue */
  --color-grid: rgb(255 255 255 / 0.09);         /* drafting grid, major lines */
  --color-grid-fine: rgb(255 255 255 / 0.05);    /* drafting grid, minor lines */
  --color-grid-light: rgb(0 109 255 / 0.08);       /* drafting grid on white (desk hero), major lines */
  --color-grid-light-fine: rgb(0 109 255 / 0.04);  /* ...and minor lines */

  /* Footer drawing (decorative, no contrast requirement): the alpha mark drawn on navy, the telemetry trace */
  --color-sketch-line: rgb(255 255 255 / 0.28);       /* finished outline of the mark's white strokes */
  --color-sketch-fill: rgb(255 255 255 / 0.04);       /* ...and their fill */
  --color-sketch-fill-blue: rgb(0 109 255 / 0.18);    /* fill of the blue strokes (outlined in --color-brand) */
  --color-sketch-guide: rgb(255 255 255 / 0.1);       /* construction lines at rest */
  --color-sketch-guide-live: rgb(255 255 255 / 0.35); /* construction lines while they draw */
  --color-amber-glow: rgb(255 194 26 / 0.55);         /* glow around the telemetry trace */
  --color-scrim: rgb(0 0 0 / 0.55);              /* behind captions on photos */
  --color-overlay: rgb(2 27 78 / 0.45);          /* dims the page behind the open menu */

  /* Poster hero (/ldar): navy scrim over the photograph, left to right, with a blue glow behind the copy.
     White text over the deep and mid stops stays above 4.5:1. */
  --color-scrim-deep: rgb(2 27 78 / 0.93);
  --color-scrim-mid: rgb(2 27 78 / 0.85);
  --color-scrim-edge: rgb(2 27 78 / 0.55);
  --color-poster-glow: rgb(0 109 255 / 0.72);

  /* Object detection boxes (/ai .shot-detect): the red the model draws on a photo. White label text on
     --color-detect-label is 5.3:1. */
  --color-detect: #ff1a1a;
  --color-detect-label: rgb(200 20 40 / 0.9);
  --color-detect-stamp: rgb(2 27 78 / 0.6);  /* navy wash under the GPS and time stamp */

  /* Survey map (/ldar, static/js/survey.js): one facility record branching to pads, equipment and
     components, on a gray glow centered on the record. Brand blue only on the record and the pulses.
     Decorative only. Line, ink, pulse, leak and ring are hex: the script reads them as #rrggbb. */
  --color-survey-line: #4e5f80;   /* routes (drawn at reduced opacity) */
  --color-survey-ink: #021b4e;    /* junctions, component dots, labels: navy, 13:1+ on the gray */
  --color-survey-pulse: #006dff;  /* the record node and the pulses running out from it */
  --color-survey-leak: #ffc21a;   /* components with a leak finding */
  --color-survey-ring: #021b4e;   /* ring around leak dots */
  --color-survey-center: #d5dbe5; /* gray at the record */
  --color-survey-edge: #ffffff;   /* ...fading to white at the edges */
  /* Engine hero (/assets): the blue of the engine image's original backdrop (now the ink of the panels' check
     marks), and the glass dashboard panels and links over the engine (decorative). The hero text sits on the
     navy gradient: white 13:1+, --color-on-dark 7:1+. */
  --color-engine-field: #0a334b;
  --color-hud-fill: rgb(4 24 44 / 0.72);     /* panel glass: white text 12:1+ on it over the field */
  --color-hud-line: rgb(111 216 255 / 0.5);
  --color-hud-link: #6fd8ff;                 /* the cyan of the wireframe */
  --color-hud-glow: rgb(111 216 255 / 0.4);
  --color-hud-band: rgb(111 216 255 / 0.16); /* expected range behind the bars */
  --card-glow: radial-gradient(ellipse 90% 110% at 50% 100%, var(--color-section-alt), var(--color-bg) 80%); /* drawing area in outlined cards: the survey glow, lighter */

  /* Rule status pills (/ldar-rule-map): text on its own tint */
  --color-status-ok: #1d6b35;     /* in force: 5.7:1 on its tint */
  --color-status-ok-bg: #e5f3e9;
  --color-status-warn: #7a5000;   /* changing or partly delayed: 6.4:1 on its tint */
  --color-status-warn-bg: #fff3d1;
  --color-status-off: #4e5f80;    /* not in effect yet: 5.6:1 on its tint */
  --color-status-off-bg: #eceff3;

  /* Actions */
  --color-button: #006dff;        /* primary buttons on white: white text 4.5:1 */
  --color-button-text: #ffffff;
  --color-button-hover: #0058d6;  /* white text 6.2:1 */
  --color-focus: #021b4e;         /* keyboard focus: 16.5:1 on white, 3.6:1 on brand blue */
  --color-focus-on-dark: #ffc21a; /* keyboard focus on navy: 10.2:1 */

  /* Icons are single-color SVGs used as <img>; this filter paints them brand blue */
  --filter-brand: brightness(0) saturate(100%) invert(47%) sepia(84%) saturate(7041%) hue-rotate(209deg) brightness(103%) contrast(104%);
  --filter-white: brightness(0) invert(1);  /* ...and this paints them white (on brand blue) */

  /* Shadows (navy-tinted) */
  --shadow-soft: 0 20px 50px rgb(2 27 78 / 0.06);
  --shadow-raised: 0 30px 60px -30px rgb(2 27 78 / 0.5);
  --shadow-float: 0 40px 80px -30px rgb(2 27 78 / 0.6);
  --shadow-menu: 0 20px 50px rgb(2 27 78 / 0.3);
  --shadow-hover: 0 20px 40px -24px rgb(0 109 255 / 0.6);
  /* A filter, not a box-shadow: follows the alpha edge of a cut-out image such as a phone frame */
  --shadow-cutout: drop-shadow(0 24px 28px rgb(2 27 78 / 0.45)) drop-shadow(0 4px 8px rgb(2 27 78 / 0.25));
  --shadow-cutout-light: drop-shadow(0 24px 28px rgb(110 120 135 / 0.28)) drop-shadow(0 4px 8px rgb(110 120 135 / 0.18)); /* ...in light gray, for devices on the white desk hero */

  /* Fonts: Inter for everything (variable, with optical sizes) */
  --font-body: "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", sans-serif;   /* quotes and stat numbers */

  /* Type scale (fluid between ~390px and ~1440px wide) */
  --text-h1: clamp(2rem, 4.5vw + 0.75rem, 4.25rem);
  --text-h2: clamp(1.6rem, 3.5vw + 0.6rem, 3.25rem);
  --text-h3: clamp(1.35rem, 2vw + 0.6rem, 2.25rem);
  --text-h4: clamp(1.2rem, 1vw + 0.9rem, 1.55rem);
  --text-lead: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
  --text-body: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  --text-small: 0.95rem;
  --text-label: 0.8rem;           /* eyebrows and small uppercase labels */
  --text-note: 0.85rem;           /* source notes under a section (.note-ref) */
  --text-run: clamp(1.6rem, 2.2vw + 0.8rem, 2.75rem);      /* headline runs: a bold statement that continues in a softer color (/ldar section heads) */
  --text-run-hero: clamp(2.25rem, 2.8vw + 1rem, 4rem); /* ...and in the hero */
  --text-mock: 0.72rem;           /* labels inside product placeholders */
  --text-stat-row: clamp(2.5rem, 3vw + 1.25rem, 3.75rem); /* numbers in a divided stat row */

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 5rem;
  /* Fluid section rhythm, on trial on /ldar (main.page--spacious): 375px → 1600px wide */
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);       /* 64 → 128px: a section's top and bottom */
  --space-section-lg: clamp(5rem, 3rem + 7vw, 10rem);   /* 80 → 160px: hero, dark band, closing band */
  --space-band: clamp(3rem, 2rem + 3vw, 5rem);          /* 48 → 80px: a thin band such as the logo strip */
  --space-head: clamp(2.5rem, 1.5rem + 3vw, 4rem);      /* 40 → 64px: section head to its content */
  --space-overlap: clamp(3.5rem, 2rem + 5vw, 7rem);     /* 56 → 112px: how far the home flow panel rises into the hero until flow.js sets --flow-overlap (a third of the panel) */
  --space-film-overlap: clamp(4rem, 1rem + 12vw, 13rem); /* 64 → 208px: how far a .film panel rises into the hero (about a third of it at full width) */

  /* Layout */
  --container: 86rem;
  --video-width: 55rem;           /* 880px: every <video>, 16:9 (495px tall) */
  --radius: 0.875rem;             /* 14px: inputs, small panels */
  --radius-lg: 1.75rem;           /* 28px: cards, panels, media */
  --radius-xl: 2rem;              /* 32px: testimonial card */
  --radius-pill: 999px;           /* buttons, tags */
  --sticky-top: 5rem;            /* height of the sticky site header (80px): where pinned parts stop */
  --step-strip: 7rem;           /* how much of a stacked step card stays showing: its number and two lines of its headline run */
  --step-strip-tight: 4.75rem;  /* ...its number and the first line only, for five or more steps (.approach--tight, /ai) */
  --grid-major: 120px;            /* drafting grid spacing */
  --grid-minor: 24px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* slow start and finish: the film's page scrolls */
  --ease-spring: cubic-bezier(0.3, 1.35, 0.5, 1);  /* slight overshoot: menu icons on hover */
}
