/* DFS redesign, DESIGN 3 "The Facility Builder": shared design tokens (owner D3-A).
   Brand colour values are fixed by the client; type, scale, surfaces and motion are Design 3's.
   Every stylesheet uses these variables; do not hard-code brand values elsewhere. */
:root {
  /* Brand colours (unchanged) */
  --dfs-blue: #005EA4;        /* secondary UI, links on light */
  --dfs-orange: #F15E24;      /* THE accent: CTAs, numbers, progress. Text on it is --dfs-black. */
  --dfs-navy: #00345A;        /* deep navy sections */
  --dfs-periwinkle: #99BFDB;  /* blueprint line art, secondary text on dark */
  --dfs-orange-light: #F58E66;
  --dfs-tan: #E5D1C2;         /* button hover fill */
  --dfs-black: #051712;       /* near-black sections, body text on light */
  --dfs-white: #FDFCFB;       /* off-white sections, text on dark */

  /* Type: Archivo variable. Display = Expanded (wdth 125) 800 uppercase; body/UI = normal width.
     Headings h1-h3 set font-stretch: var(--dfs-display-stretch). If you switch one of them to
     --dfs-font-body with the font-family longhand, also set font-stretch: 100% (the font shorthand resets it). */
  --dfs-font-display: "Archivo", "Arial", system-ui, sans-serif;
  --dfs-font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dfs-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; /* small technical labels only */
  --dfs-display-stretch: 125%;
  --dfs-display-weight: 800;
  --dfs-display-tracking: -0.01em;
  --dfs-fs-display: clamp(3rem, 0.9rem + 8.2vw, 9.75rem); /* home hero only */
  --dfs-fs-title: clamp(2.375rem, 1.3rem + 4.2vw, 5.25rem); /* heading-title, page heroes */
  --dfs-fs-h1: clamp(2.375rem, 1.3rem + 4.2vw, 5.25rem);
  --dfs-fs-h2: clamp(1.875rem, 1.1rem + 3vw, 3.75rem);
  --dfs-fs-h3: clamp(1.3125rem, 1rem + 1.25vw, 2rem);
  --dfs-fs-h4: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); /* h4-h6: normal width, 700, sentence case */
  --dfs-fs-h5: 1.1875rem;
  --dfs-fs-h6: 1.0625rem;
  --dfs-fs-body: 1.0625rem;  /* 17px */
  --dfs-fs-small: .9375rem;  /* 15px */
  --dfs-fs-label: .75rem;    /* 12px mono labels */
  --dfs-fs-button: .875rem;  /* 14px, 700, semi-expanded, uppercase */
  --dfs-button-tracking: .06em;

  /* Layout */
  --dfs-container: 1360px;
  --dfs-gutter: clamp(20px, 4.2vw, 64px);
  --dfs-section-y: clamp(80px, 10vw, 160px);
  --dfs-radius: 2px;          /* machined edges: near-square everywhere */
  --dfs-ease: cubic-bezier(.2, .7, .2, 1);

  /* Surfaces (Design 3) */
  --dfs-bg-dark: var(--dfs-black);
  --dfs-bg-navy: var(--dfs-navy);
  --dfs-blueprint-line: color-mix(in srgb, var(--dfs-periwinkle) 34%, transparent); /* single hairlines/outlines on dark (never grids) */
  /* Depth from light and material, not lines. Use ONE per dark section: */
  --dfs-light-orange: radial-gradient(ellipse 60% 65% at 92% -8%, color-mix(in srgb, var(--dfs-orange) 24%, transparent), transparent 70%);  /* stadium light, top right */
  --dfs-light-blue: radial-gradient(ellipse 70% 75% at -8% 108%, color-mix(in srgb, var(--dfs-blue) 42%, transparent), transparent 72%);      /* cool fill, bottom left */
  --dfs-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .42 0 0 0 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); /* film grain tile, layer on top of dark surfaces */
  --dfs-fleck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .6 0 0 0 0 .75 0 0 0 0 .86 14 0 0 0 -9.8'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.45' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .37 0 0 0 0 .14 16 0 0 0 -11.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='.3'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='.4'/%3E%3C/svg%3E"); /* rubber-floor fleck (EPDM specks) */

  /* Motion system (REDESIGN.md "Motion"). Transform/opacity/clip-path only. */
  --dfs-ease-out: cubic-bezier(.16, 1, .3, 1);       /* expo-out: entrances, reveals */
  --dfs-ease-in-out: cubic-bezier(.65, 0, .35, 1);    /* state changes, tabs, drawers */
  --dfs-ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* tiny overshoot: badges, icons only */
  --dfs-ease-draw: cubic-bezier(.77, 0, .18, 1);      /* Design 3: blueprint lines, wipes, step changes */
  --dfs-dur-fast: 180ms;   /* hovers, presses */
  --dfs-dur: 420ms;        /* UI state changes */
  --dfs-dur-slow: 800ms;   /* scroll reveals */
  --dfs-dur-hero: 1100ms;  /* page-load hero choreography */
  --dfs-dur-draw: 1300ms;  /* Design 3: line art drawing in */
  --dfs-dur-step: 700ms;   /* Design 3: journey step change */
  --dfs-stagger: 70ms;     /* between siblings; cap at 8 steps */
  --dfs-rise: 32px;        /* reveal travel distance */
}
@media (prefers-reduced-motion: reduce) {
  :root { --dfs-dur-fast: 0ms; --dfs-dur: 0ms; --dfs-dur-slow: 0ms; --dfs-dur-hero: 0ms; --dfs-dur-draw: 0ms; --dfs-dur-step: 0ms; --dfs-stagger: 0ms; --dfs-rise: 0px; }
}
