/* ==========================================================================
   Tekspace — tokens.css
   Foundation stylesheet: design tokens (CSS custom properties), base element
   styling, typography, and layout primitives. Sourced from the
   `tekspace-design-system` skill's colors_and_type.css — token names/values
   are not invented here, only ported and, where noted, extended with the
   project's own layout primitives.
   Always loaded before styles.css so the cascade resolves correctly.
   See src/styles/README.md for the two-stylesheet split and conventions.
   ========================================================================== */

/* ---------- FONT FACES (self-hosted; variable Inter + Inter Tight) -------- */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
}
@font-face {
	font-family: 'Inter';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('/fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
}
@font-face {
	font-family: 'Inter Tight';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/fonts/InterTight-VariableFont_wght.ttf') format('truetype-variations');
}
@font-face {
	font-family: 'Inter Tight';
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url('/fonts/InterTight-Italic-VariableFont_wght.ttf') format('truetype-variations');
}

:root {
	/* ---------- BASE COLOR PALETTE ---------- */
	--white:        rgb(255, 255, 255);
	--black:        rgb(0, 0, 0);
	--grey-100:     rgb(26, 26, 26);   /* near-black panel bg */
	--grey-75:      rgb(54, 54, 54);   /* dark surface / bar fill */
	--grey-50:      rgb(78, 78, 78);   /* secondary text on light */
	--grey-25:      rgb(126, 126, 126);/* tertiary / muted text */
	--grey-10:      rgb(238, 240, 241);/* light surface bg */

	/* ---------- SEMANTIC COLOR TOKENS ---------- */
	--bg:           var(--white);
	--bg-muted:     var(--grey-10);
	--bg-inverse:   var(--black);
	--bg-panel-dark:var(--grey-100);
	--bg-panel-deep:var(--grey-75);

	--fg:           var(--black);
	--fg-muted:     var(--grey-50);
	--fg-subtle:    var(--grey-25);
	--fg-on-dark:   var(--white);
	/* fb1-t4: on-dark counterparts of --fg-muted/--fg-subtle, sourced
	   verbatim from the tekspace-design-system's own dark-mode reference
	   (colors-dark-mode.html: "muted on bg" 65%, "subtle on muted" 45% —
	   both pass WCAG AA/AAA against a near-black surface). Consumed by
	   `.section--dark` in styles.css, never referenced directly by a
	   module. */
	--fg-muted-on-dark:  rgba(255, 255, 255, 0.65);
	--fg-subtle-on-dark: rgba(255, 255, 255, 0.45);

	--border:       var(--grey-10);
	/* fb1-t4: on-dark hairline, same source as above (10% white — "keeps
	   them honest as surfaces change" rather than a solid grey). */
	--border-on-dark: rgba(255, 255, 255, 0.1);
	--accent:       var(--black);          /* Tekspace runs a mono accent system */
	--accent-fg:    var(--white);
	/* stakeholder-changes: a deliberate, confirmed exception to the mono
	   accent rule above — an interactive-only blue used for hover/focus
	   states across the CTA family: every primary button's hover fill, the
	   whole `.text-link` CTA tier set (plain/reveal/arrow/tertiary, incl.
	   `.stat-band__cta`), and inline prose links. NOT footer links (utility
	   nav, deliberately kept plain). Never a rest-state fill/text colour, so
	   the mono system still governs everything at rest. */
	--accent-interactive: #0072ff;
	--accent-interactive-fg: var(--white);

	/* ---------- HAIRLINE RULES (fb5 <stat-band>) ----------
	   `_plan/feedback-5.md`'s Build values name two tokens (`--rule-on-
	   light` / `--rule-on-dark`); the supplied stat-band-refined spec needs
	   four (a row-divider alpha and a stronger foot-rule alpha, on each
	   surface), so each named token gains a `-strong` sibling for the foot
	   rule. `--rule-on-dark` is NOT folded into the existing
	   `--border-on-dark` (rgba(255, 255, 255, 0.1), a near-duplicate value)
	   even though the two are almost the same alpha: `--border-on-dark` is
	   the semantic border token `.section--dark` remaps across every
	   module, so conflating them would couple every dark border site-wide
	   to a stat-band hairline decision. */
	--rule-on-light:        rgba(0, 0, 0, 0.10);
	--rule-on-light-strong: rgba(0, 0, 0, 0.22);
	--rule-on-dark:         rgba(255, 255, 255, 0.12);
	--rule-on-dark-strong:  rgba(255, 255, 255, 0.22);

	/* ---------- LIQUID GLASS (fb3 C5) ----------
	   BUILT but pending George's design-system extension approval - these
	   four tokens are a proposed extension to the tekspace-design-system
	   glass component, not yet part of its signed-off surface. The dark
	   variant of the glass.

	   m18 (Finn 2026-08-25): re-enabling the mega-menu panel's own blur (see
	   styles.css) surfaced that 0.93 left almost nothing of the blurred
	   backdrop visible. Tried 0.75 (~5.8:1), then 0.85 (~8.0:1) chasing a
	   visibly obvious frosted texture, but Finn's final call was to stop
	   tuning this by feel and land above the original 0.93 instead: 0.95,
	   prioritising a solid, unambiguous panel over a subtle blur effect that
	   reads inconsistently against real page content anyway. Re-run through
	   the same WCAG AA calculation this token's own history already used
	   (contrast blended in sRGB space, worst case a pure white page behind
	   the panel, exactly as the fb5 tint step measured): solid-white title
	   text stays enormously high-contrast regardless (its own colour
	   carries no alpha), so the binding constraint is the muted colour
	   below (`--glass-fg-muted`, 0.82 alpha on top of this tint, used by
	   both `.mega-menu__group-title` and `.mega-menu__cta-desc`). At 0.95
	   that muted text composites to ~10.7:1 against the panel's own
	   composite background (worst-case white backdrop) - comfortably above
	   the 4.5:1 AA floor, and above 0.93's own 10.1:1 figure. 0.93 was
	   previously RAISED from 0.78 by a deliberate human ruling for contrast
	   reasons (fb5) - this is not a silent reversal of that call, it is a
	   recalculation with the same method, landing higher still. Paired with
	   the blur going back to 24px
	   (styles.css) - the original fb3 C5 design pairing this comment's own
	   10.1:1 figures were measured against, before fb5 later dropped the
	   panel's blur to `none` entirely and stakeholder-changes brought it
	   back at only 16px without re-measuring. Consumed
	   by the mega-menu panel in styles.css and by the .liquidGlass-*--dark
	   modifiers below. */
	--glass-tint-dark: rgba(26, 26, 26, 0.95); /* m18: settled here after 0.93 -> 0.75 -> 0.85 -> 0.95 - see this token's comment above */
	--glass-fg:        var(--fg-on-dark);
	--glass-fg-muted:  rgba(255, 255, 255, 0.82);
	--glass-rim:       rgba(255, 255, 255, 0.28);

	/* ---------- TYPE FAMILIES ---------- */
	/* fb3 PART A: the old display-font custom property is deleted (breaking
	   change) - every former reference to it across tokens.css/styles.css
	   now points at --font-body instead. --font-body-wide is new, for the
	   specific form/data/footer selectors PART A names. */
	--font-body:      'Inter Tight', 'Arial', sans-serif; /* was Inter */
	--font-body-wide: 'Inter', 'Arial', sans-serif;       /* new */
	/* No monospace anywhere (George's brand review, 14 Oct 2026): values take
	   the body face with font-variant-numeric: tabular-nums. */

	/* ---------- BASE TYPE ---------- */
	--text-base:        20px;
	--leading-base:     1.5;        /* 30 / 20 (fb1-t2, was 1.75) */
	--leading-tight:    1;
	--leading-display:  0.7727;     /* 170 / 220 */
	--tracking-tight:   -0.03em;
	--tracking-display: -0.05em;

	/* ---------- FONT WEIGHT SCALE ---------- */
	--w-regular:    400;
	--w-medium:     500;            /* body default */
	--w-semibold:   600;
	--w-bold:       700;
	--w-extrabold:  800;            /* h1 / h2 */
	--w-black:      900;            /* eyebrow / subhead */

	/* ---------- TYPE SCALE (em-based; 20px root) ---------- */
	--fs-h1:        11em;   /* 220 — colossal hero (bare <h1> only; see styles.css for .hero-primary__headline's own fb1-t2 sizing) */
	--fs-h2:        4.5em;  /* 90 (fb1-t2, was 8.5em/170 — h2.small removed, every h2 now this one size) */
	/* fs-h2-sm removed (fb5 <stat-band>): was 3em (60px at lg+, 51px below
	   lg per the fb4 B1 text-base drop). Its sole consumer,
	   `.stat-band__figure` in styles.css, now uses a fluid `clamp()`
	   instead as part of the stat-band redesign; confirmed unreferenced
	   elsewhere via `rg -n 'fs-h2-sm' src prototype` (only this comment and
	   two unrelated prose mentions in styles.css survive). */
	--fs-h3:        3em;    /* 60 */
	--fs-h4:        1.5em;  /* 30 */
	--fs-section:   2em;    /* 40  — section intro */
	--fs-body:      1em;    /* 20 */
	--fs-subhead:   1.15em; /* 23  - fb3 PART A */
	--fs-sm:        0.85em; /* 17 */
	--fs-xs:        0.75em; /* 15  — small print */

	/* ---------- SPACING SCALE (panel-based pad-* utilities) ---------- */
	--space-0:      0;      /* fb1-t3: first-class "none" option for the section padding modifiers below */
	/* The scale, design system v1 (15 Oct 2026; G1): 5, 10, 20, 30, 50, 100.
	   15, 150 and 500 are gone; stray values snap to the nearest step. */
	--space-5:      5px;
	--space-10:     10px;
	--space-20:     20px;
	--space-30:     30px;
	--space-50:     50px;
	--space-100:    100px;
	--space-page-end: var(--space-50); /* fb5: single page-ending gap above the footer, see .section--page-end below */

	/* ---------- RADII ---------- */
	--radius-sm:    5px;    /* prod-list-icon */
	--radius-md:    10px;   /* prod-icon */
	--radius-lg:    20px;   /* buttons / video / header */
	--radius-xl:    30px;   /* panels / sections / cta */
	--radius-pill:  9999px;

	/* ---------- ELEVATION ---------- */
	--shadow-button: 0 0 10px rgba(0, 0, 0, 0.1);
	--shadow-glass:  0 6px 6px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.1);
	--shadow-text-on-dark: 0px 3px 20px var(--black);

	/* ---------- MOTION ---------- */
	--ease-bounce:  cubic-bezier(0.175, 0.885, 0.32, 2.2);
	--ease-soft:    ease;
	/* fb7 S1: the mid-content-cta module's Card 2 hover/rim transitions
	   need a gentler out-curve than --ease-soft (plain `ease`) provides.
	   Substituting --ease-soft was the alternative and was rejected
	   because it changes the motion character of a treatment the
	   stakeholder has approved by sight - see the supplied prototype at
	   _plan/_supplied/mid-content-cta/m3-feature-capture-prototype.html. */
	--ease-standard: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	/* go-live: the uniform fade+rise entrance reveal's own out-curve (see
	   the ENTRANCE REVEAL rule below) - a locked decision, not derived from
	   an existing token. */
	--ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
	--dur-fast:     0.2s;
	--dur-base:     0.3s;
	--dur-slow:     0.4s;
}

/* ---------- MOTION SAFETY (m3-t1) ----------
   Global `prefers-reduced-motion` guard: collapses every CSS transition/
   animation to effectively instant. The module JS (see prototype/js/
   entrance.js) additionally skips its own entrance animation under this
   same media query, so this is a belt-and-suspenders CSS-only backstop for
   any purely CSS-driven motion (e.g. the header toggle, hover states). */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- ENTRANCE REVEAL (go-live) ----------
   One uniform fade+rise, replacing the prototype-era `prototype/js/
   entrance.js` (anime.js) with a plain CSS transition the BaseLayout
   IntersectionObserver drives by toggling `.is-visible` — every component
   already carries `data-entrance`/`data-entrance-item` in its markup (see
   each block's own comment), only the CSS+JS that reveals them was
   missing. Gated behind the `.js` class the observer's own script sets on
   `<html>` first: with JS disabled (or before it runs) items render in
   their normal visible state rather than staying permanently hidden.
   Per-item stagger is an inline `transition-delay` the observer sets
   (index * 80ms), not a CSS nth-child rule, since group size varies.
   stakeholder-changes (sharpness pass): the transition lives on `.is-visible`
   (the reveal), NOT on the base hidden state — so removing `.is-visible` (when
   a group scrolls fully out of view) snaps back to hidden INSTANTLY rather than
   running the 0.6s fade in reverse. That keeps re-entry a clean, full replay on
   fast scroll; the reset is off-screen so the snap is never seen. */
.js [data-entrance-item] {
	opacity: 0;
	transform: translateY(16px);
}
.js [data-entrance-item].is-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
	.js [data-entrance-item] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ---------- BOX MODEL RESET (m4-t3 fix) ----------
   `bootstrap-grid.css` (the grid-only build this project uses, per the
   "grid/breakpoints only" decision) only applies border-box to `.row > *`
   columns, not to `.container` itself or anything else. Without a global
   reset, `.container`'s `width: 100%` plus its horizontal padding renders
   24px wider than the viewport below the 576px breakpoint (no `max-width`
   yet absorbs the padding), pushing every section into horizontal
   overflow on mobile. Standard, universally-expected reset. */
*, *::before, *::after {
	box-sizing: border-box;
}

/* ---------- BODY DEFAULT ---------- */
body {
	color: var(--fg);
	background: var(--bg);
	font-family: var(--font-body);
	font-optical-sizing: auto;
	font-size: var(--text-base);
	font-weight: var(--w-medium);
	line-height: var(--leading-base);
	margin: 0;
}

/* ---------- SEMANTIC TYPE ELEMENTS ---------- */
h1 {
	font-family: var(--font-body);
	/* Mobile-first (m4-t3 fix): --fs-h1 (11em/220px) has no responsive step,
	   so a bare <h1> (legal-header) overflows a 375-768px viewport the same
	   way .hero-primary__headline did — see styles.css for that sibling fix
	   and its fuller explanation. Restored to the full token value at
	   desktop.
	   fb1-t5: the mobile/tablet steps were hardcoded px; font-size is a
	   relative-by-convention property, so both are re-expressed in `em`
	   against the same 20px (--text-base) parent context the desktop
	   `--fs-h1` (11em) already relies on — no ancestor between <h1> and
	   <body> sets its own font-size, so this is pixel-equivalent, not a
	   rebasing: mobile 3.75em = 75px, tablet 8em = 160px, desktop
	   (unchanged) 11em = 220px.
	   fb3 PART A: xs tier reduced again, 3.75em -> 2.2em (44px), so the
	   longest words in the copy ("Vulnerability", "Certificate",
	   "consultancy", "benchmarking") clear a 319px viewport; the tablet/
	   desktop steps above are unchanged. */
	font-size: 2.2em;
	font-weight: var(--w-extrabold);
	letter-spacing: var(--tracking-tight);
	line-height: var(--leading-display);
	margin: 0;
}
@media (min-width: 768px) {
	h1 {
		font-size: 8em;
	}
}
@media (min-width: 992px) {
	h1 {
		font-size: var(--fs-h1);
	}
}
h2 {
	font-family: var(--font-body);
	/* Mobile-first (fb1-t2): unifies every h2 on one scale — the old
	   `h2.small` class is gone, every heading now uses this single rule.
	   --fs-h2 (4.5em/90px) only fits comfortably at desktop; the
	   unprefixed default and the tablet step are the same overflow-safety
	   pattern used throughout this file (see h1 above), scaled down since
	   90px is far smaller than h1's 220px. line-height is a ratio, not a
	   fixed px, so it holds at 0.875 (~80px per the feedback) at every
	   step, not only at the 90px desktop size. overflow-wrap guards a
	   single long word narrower columns (e.g. narrative-lead's new
	   6-column heading, see styles.css) can't wrap on a space.
	   fb1-t5: mobile/tablet steps re-expressed in `em` off the same 20px
	   parent context as --fs-h2 (no ancestor overrides font-size) —
	   pixel-equivalent: mobile 2.2em = 44px, tablet 3.2em = 64px, desktop
	   (unchanged) 4.5em = 90px.
	   fb3 PART A: xs tier reduced again, 2.2em -> 1.6em (32px) - the
	   `text-wrap: balance` rule below now does the wrapping work the
	   removed `overflow-wrap: break-word` used to, so the smaller size
	   clears 319px without the mid-word split. Tablet/desktop unchanged. */
	font-size: 1.6em;
	font-weight: var(--w-extrabold);
	letter-spacing: var(--tracking-tight);
	/* A8 (Finn, 2026-08-26): loosened from 0.875. That deliberate "colossal
	   display" tightness (80px line for 90px type) made MULTI-LINE h2s collide
	   line-to-line — e.g. the home "Too many tools, too little time to choose."
	   0.95 clears the descenders while staying tight for display; single-line
	   h2s are visually unaffected. Dial toward 1.0 if any big heading still
	   touches. Hero headlines are h1 (own rule), unaffected by this.
	   2026-10-05 (Finn): dialled to 1.0. At 0.95 a descender still met the cap
	   below it, e.g. the "p" of "gaps" on "Closing" in the vulnerability page's
	   "Finding gaps is easy. Closing them is the work." 1.0 leaves ~5px. */
	line-height: 1;
	margin: 0 0 var(--space-30);
}
@media (min-width: 768px) {
	h2 {
		font-size: 3.2em;
	}
}
@media (min-width: 992px) {
	h2 {
		font-size: var(--fs-h2);
	}
}
/* fb3 PART A: even wrapping across the whole headline/heading set -
   `.hero-primary__headline` is a module class (styles.css) but shares this
   rule since it's the same "colossal display type" wrapping problem as a
   bare h1/h2. `pretty` declared first as the fallback; `balance` second so
   it wins in browsers that support both. */
h1, h2, .hero-primary__headline, .vision-hero__headline {
	text-wrap: pretty;
	text-wrap: balance;
}
h3, .section-quote {
	font-family: var(--font-body);
	font-size: var(--fs-h3);
	font-weight: var(--w-bold);
	line-height: var(--leading-tight);
	margin: 0 0 var(--space-30);
}
h4 {
	font-family: var(--font-body);
	font-size: var(--fs-h4);
	font-weight: var(--w-bold);
	letter-spacing: var(--tracking-tight);
	line-height: var(--leading-tight);
	margin: 0;
}
.eyebrow {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	font-weight: var(--w-black);
	line-height: var(--leading-tight);
	text-transform: uppercase;
	display: inline-block;
	margin-bottom: var(--space-10);
}
.subhead {
	font-family: var(--font-body);
	font-size: var(--fs-h4);
	font-weight: var(--w-black);
	line-height: var(--leading-tight);
	text-transform: uppercase;
	display: inline-block;
	margin-top: var(--space-10);
}
.section-intro {
	font-family: var(--font-body);
	font-size: var(--fs-section);
	font-weight: var(--w-bold);
	letter-spacing: var(--tracking-tight);
	line-height: 1.2;
	margin: var(--space-30) 0 0;
}
.small-print {
	font-family: var(--font-body-wide);
	font-size: var(--fs-xs);
	color: var(--fg-muted);
	line-height: var(--leading-tight);
	margin-top: var(--space-20);
	display: block;
}

/* fb4 PART A: the `.text-sm` utility fb3 PART A declared here went unused -
   relocated to styles.css, near `.text-link`, where feedback-4 PART A
   applies it and adds its below-lg override (see the fb4 PART A build note
   there for the rule A / rule B convergence this class now resolves). */

/* ---------- COLOR UTILITY CLASSES ---------- */
.text-grey  { color: var(--fg-subtle); }
.text-white { color: var(--white); }
.bkg-black  { color: var(--white); background-color: var(--black); }
.bkg-grey   { background-color: var(--grey-10); }
.bkg-grey-white { background: linear-gradient(var(--grey-10), var(--white)); }
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* fb6 <selection>: branded text-selection colour, brief item B7.
   ::selection only accepts color, background-color, text-decoration,
   text-shadow and -webkit-text-stroke (radius/padding/transform are
   ignored), so this stays to the two declarations that matter here.
   No ::-moz-selection: Firefox has supported the unprefixed pseudo-element
   since v62, so the prefix is dead weight (unlike -webkit-backdrop-filter
   above, which is a live, still-needed Safari prefix, so "add it for
   safety" is a plausible instinct here, but not this time).
   Inverts on dark for free: .section--dark already remaps both --accent and
   --accent-fg in its custom-property block in styles.css, so no second rule
   is declared for it here. The one place that needed an explicit fix was
   the --media band/hero variants (.cta-band--media, .assurance-band--media,
   .hero-primary--bg-media), which force light text over a photo + scrim but
   never remapped --accent/--accent-fg the way .section--dark does, fixed at
   their shared __inner rule in styles.css rather than here. */
::selection {
	background-color: var(--accent);
	color: var(--accent-fg);
}

/* ---------- LIQUID GLASS ----------
   Requires the #glass-distortion SVG filter to be inlined in the same document.
   Source: tekspace-design-system skill, assets/glass-distortion.svg
   Markup: four empty sibling divs (.liquidGlass-effect, -tint, -shine) +
   .liquidGlass-content inside .liquidGlass-wrapper. */
.liquidGlass-wrapper {
	position: relative;
	display: flex;
	overflow: hidden;
	box-shadow: var(--shadow-glass);
	transition: all var(--dur-slow) var(--ease-bounce);
	border-radius: var(--radius-xl);
}
	.liquidGlass-effect {
		position: absolute;
		z-index: 0;
		inset: 0;
		/* N1 (15 Oct): one unprefixed line only. The build (lightningcss) adds
		   -webkit- for Safari; a hand-written -webkit- line after this one made
		   the minifier drop the unprefixed rule, killing the blur in Chromium. */
		backdrop-filter: blur(3px);
		filter: url(#glass-distortion);
		overflow: hidden;
		isolation: isolate;
	}
	.liquidGlass-tint {
		z-index: 1;
		position: absolute;
		inset: 0;
		background: rgba(255, 255, 255, 0.25);
	}
	.liquidGlass-shine {
		position: absolute;
		inset: 0;
		z-index: 2;
		overflow: hidden;
		box-shadow: inset 1px 1px 1px 0 rgba(255, 255, 255, 0.5);
	}
	.liquidGlass-content {
		width: 100%;
		z-index: 3;
	}

/* fb3 C5 dark-glass sibling modifiers (BUILT, pending sign-off). They sit on
   the existing tint/shine siblings - the canonical four-layer order (effect,
   tint, shine, content) is untouched. The shine drops its white inset rim to
   --glass-rim and adds a second full inset ring at --border-on-dark, so the
   dark panel keeps a visible edge when it floats over a dark page band. */
	.liquidGlass-tint--dark {
		background: var(--glass-tint-dark);
	}
	.liquidGlass-shine--dark {
		box-shadow:
			inset 1px 1px 1px 0 var(--glass-rim),
			inset 0 0 0 1px var(--border-on-dark);
	}

/* Container for an inlined #glass-distortion SVG filter. The filter has to be
   inlined in every document that renders a glass component (a
   `filter: url(#...)` reference does not resolve across files), and the
   carrier <svg> must not take up layout space. */
.glass-filter {
	display: none;
}

/* ---------- LAYOUT PRIMITIVES ----------
   Project-specific, not part of the design-system source above. Three
   project breakpoints, mobile-first, aligned to the Bootstrap grid's own
   `md`/`lg` breakpoints so layout primitives and grid columns switch
   together:
     mobile:  0px    (default, unprefixed styles below)
     tablet:  768px  (min-width)
     desktop: 992px  (min-width)
   Plain CSS custom properties cannot be used inside @media conditions, so
   these are documented pixel values rather than variables — repeat them
   verbatim in styles.css / component styles rather than re-deriving. */
.section {
	padding-block: var(--space-50);
}
@media (min-width: 768px) {
	.section {
		padding-block: var(--space-100);
	}
}

/* ---------- SECTION PADDING MODIFIERS (fb1-t3) ----------
   Editor-selectable top/bottom padding: each side is independently
   overridable to one fixed amount from the spacing scale, including 0.
   This is the CSS half of a future Sanity page-builder dropdown (per
   section, top and bottom padding, same fixed list) — see
   docs/outstanding-assets.md. With no modifier applied, `.section` above
   keeps its current responsive default unchanged. A modifier sets that one
   side to a single fixed value at every breakpoint (the picked "dropdown
   value" itself), independent of the other side and of the responsive
   scale on the side without a modifier. */
.section--pt-0   { padding-top: var(--space-0); }
.section--pt-50  { padding-top: var(--space-50); }
.section--pt-100 { padding-top: var(--space-100); }
.section--pt-150 { padding-top: var(--space-100); } /* G1: 150 left the scale; the class stays for Sanity's option */
.section--pb-0   { padding-bottom: var(--space-0); }
.section--pb-50  { padding-bottom: var(--space-50); }
.section--pb-100 { padding-bottom: var(--space-100); }
.section--pb-150 { padding-bottom: var(--space-100); }

/* fb5: page-ending module gap. The --pb-* family above is the future Sanity
   per-section dropdown, an editor's explicit choice of one fixed value.
   --page-end is different in kind: a semantic marker meaning "this module
   is the last one on the page, right above the footer", so every page-ending
   module stays in lockstep and the gap can be retuned once, globally, without
   touching 19 pages. Authored after .section's media queries above, so it
   wins by source order alone at every breakpoint, no !important needed.
   Not applied to prototype/gallery.html: that file is the component gallery,
   not a real page, so its last demo is not a page-ending module. */
.section--page-end { padding-bottom: var(--space-page-end); }
