/* ==========================================================================
   Calibrum Design System
   Flat colour, real depth. One brand blue, one navy and neutral surfaces;
   dimension comes from glass, layered planes, light-aware shadows, hairline
   geometry and spring motion instead of gradients and boxed cards.

   Loaded from _Layout after the page sheets. Page views carry their own inline
   <style> blocks inside <main>, so component rules here are prefixed with
   body[data-route] to win on specificity instead of source order.
   Behaviour (consensus field, tilt, reveal, icons, back-to-top) lives in
   /assets/js/experience.js.

   1. Tokens            6. Open content items   11. Footer
   2. Base & type       7. Process timelines    12. Back to top
   3. Glass header      8. Dark bands & CTA     13. Motion
   4. Heroes & depth    9. Data display         14. Responsive, print
   5. Buttons          10. Forms
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --ds-brand: #0f6cbd;
  --ds-brand-hover: #115ea3;
  --ds-brand-pressed: #0c3b5e;
  --ds-brand-tint: #eef5fc;
  --ds-brand-tint-stroke: #b4d6fa;
  --ds-brand-on-dark: #8cc4f7;
  --ds-navy: #0a2540;

  /* Neutral foregrounds */
  --ds-fg1: #1b1f24;
  --ds-fg2: #3d444d;
  --ds-fg3: #5c6570;
  --ds-fg2-on-dark: #c9d6e4;

  /* Neutral surfaces and strokes */
  --ds-bg: #ffffff;
  --ds-bg-subtle: #f6f7f9;
  --ds-bg-warm: #ffffff;
  --ds-hero-bg: #ffffff;
  --ds-stroke: #dfe3e8;
  --ds-stroke-subtle: #eceff2;
  --ds-stroke-strong: #c8ced6;
  --ds-stroke-input: #868e98;

  /* Liquid glass */
  --ds-glass-bg: rgba(255, 255, 255, .9);
  --ds-glass-filter: blur(22px) saturate(170%) brightness(1.08);
  --ds-glass-edge: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(10, 37, 64, .06);

  /* Status */
  --ds-danger: #b10e1c;
  --ds-danger-tint: #fdf3f4;
  --ds-success-tint: #f1faf1;

  /* Shape */
  --ds-radius-s: 6px;
  --ds-radius-m: 8px;
  --ds-radius-l: 12px;
  --ds-radius-xl: 16px;

  /* Elevation: a tight contact shadow plus a soft ambient one. */
  --ds-shadow-2: 0 1px 2px rgba(10, 37, 64, .10);
  --ds-shadow-4: 0 1px 2px rgba(10, 37, 64, .08), 0 4px 10px -2px rgba(10, 37, 64, .10);
  --ds-shadow-8: 0 1px 2px rgba(10, 37, 64, .08), 0 8px 20px -4px rgba(10, 37, 64, .14);
  --ds-shadow-16: 0 2px 4px rgba(10, 37, 64, .08), 0 16px 36px -8px rgba(10, 37, 64, .18);
  --ds-shadow-28: 0 2px 6px rgba(10, 37, 64, .10), 0 32px 64px -16px rgba(10, 37, 64, .28);

  /* Type */
  --ds-font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ds-font-display: "Manrope", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Motion */
  --ds-ease: cubic-bezier(.33, 0, .1, 1);
  --ds-spring: cubic-bezier(.34, 1.36, .64, 1);
  --ds-glide: cubic-bezier(.16, 1, .3, 1);
  --ds-fast: .12s;
  --ds-normal: .24s;

  /* Layout */
  --ds-utility-h: 36px;
  --ds-nav-h: 68px;
  --ds-gutter: max(32px, calc((100vw - 1320px) / 2));
  --ds-section-y: clamp(56px, 6.5vw, 104px);

  /* Legacy shell tokens from site.css, re-pointed at the system. */
  --navy: var(--ds-navy);
  --blue: var(--ds-brand);
  --teal: var(--ds-brand);
  --ink: var(--ds-fg1);
  --muted: var(--ds-fg3);
  --line: var(--ds-stroke);
  --pale: var(--ds-bg-subtle);
  --sky: var(--ds-brand-tint);
  --shadow: var(--ds-shadow-16);
}

/* Page views declare their own palette on the root wrapper; re-point it. */
body[data-route] main.site-main > [class] {
  --cal-blue: var(--ds-brand);
  --cal-blue-dark: var(--ds-fg1);
  --cal-accent: var(--ds-brand);
  --cal-text: var(--ds-fg1);
  --cal-muted: var(--ds-fg2);
  --cal-light: var(--ds-bg-subtle);
  --cal-border: var(--ds-stroke);
  --cal-shadow: var(--ds-shadow-4);
  --blue: var(--ds-brand);
  --blue-dark: var(--ds-fg1);
  --dark: var(--ds-fg1);
  --accent: var(--ds-brand);
  --text: var(--ds-fg1);
  --muted: var(--ds-fg2);
  --light: var(--ds-bg-subtle);
  --border: var(--ds-stroke);
  --shadow: var(--ds-shadow-4);
  font-family: var(--ds-font);
  color: var(--ds-fg1);
}

/* 2. Base & type ---------------------------------------------------------- */
html { scroll-padding-top: calc(var(--ds-nav-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ds-font);
  font-feature-settings: "cv11", "ss03";
  color: var(--ds-fg1);
  background: var(--ds-bg);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--ds-brand); color: #fff; }

body[data-route] main :is(h1, h2, h3, h4) {
  font-family: var(--ds-font-display);
  font-weight: 700;
  color: var(--ds-fg1);
  text-wrap: balance;
}
body[data-route] #main-content h1 {
  font-size: clamp(34px, 3.7vw, 56px) !important;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}
body[data-route] main h2 { font-size: clamp(26px, 2.5vw, 38px); line-height: 1.16; letter-spacing: -.028em; }
body[data-route] main h3 { font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: -.012em; }
body[data-route] main :is(p, li) { line-height: 1.65; }
body[data-route] main strong { font-weight: 600; }

body[data-route] main a { font-weight: 600; text-underline-offset: 3px; }
body[data-route] main :is(p, li, td) > a:not([class*="button"]):not([class*="btn"]) { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; }
body[data-route] main :is(p, li, td) > a:not([class*="button"]):not([class*="btn"]):hover { text-decoration-thickness: 2px; }
body[data-route] main .design-location a { font-weight: 500; }
body[data-route] main .design-location a:hover { color: var(--ds-brand); }

/* Section labels: a short rule, then tracked small caps. */
body[data-route] main :is([class*="eyebrow"], .cal-page-kicker, [class$="-kicker"]) {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ds-brand);
  font-family: var(--ds-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body[data-route] main :is([class*="eyebrow"], .cal-page-kicker, [class$="-kicker"])::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

:is(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ds-fg1) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px #fff;
  border-radius: var(--ds-radius-s);
}
a.sr-only[href="#main-content"]:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto; overflow: visible;
  background: #fff; color: var(--ds-brand); font-weight: 600; text-decoration: none;
  border-radius: var(--ds-radius-s); box-shadow: var(--ds-shadow-16);
}

/* 3. Glass header ----------------------------------------------------------
   Always pinned. The utility strip scrolls away; the navigation row stays as
   a frosted pane that refracts whatever passes beneath it. */
.site-shell { width: min(100% - 64px, 1600px); }
.site-header {
  position: sticky;
  top: calc(var(--ds-utility-h) * -1);
  z-index: 100;
  background: var(--ds-glass-bg);
  -webkit-backdrop-filter: var(--ds-glass-filter);
  backdrop-filter: var(--ds-glass-filter);
  border-bottom: 1px solid rgba(10, 37, 64, .08);
  box-shadow: var(--ds-glass-edge);
  transition: box-shadow var(--ds-normal) var(--ds-ease);
}
.site-header.is-scrolled { box-shadow: var(--ds-glass-edge), 0 10px 30px -12px rgba(10, 37, 64, .22); }

.site-utility { background: var(--ds-navy); color: var(--ds-fg2-on-dark); font-size: 12px; letter-spacing: .01em; }
.site-utility-inner { min-height: var(--ds-utility-h); height: var(--ds-utility-h); }
.site-utility a { color: #fff; font-weight: 600; margin-left: 24px; }
.site-utility a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-nav-row { min-height: var(--ds-nav-h); gap: 32px; }
.site-brand { border-radius: var(--ds-radius-s); }
.site-brand img { width: 168px; transition: transform var(--ds-normal) var(--ds-glide); }
.site-brand:hover img { transform: scale(1.025); }
.site-menu { gap: 2px; }
.site-menu > a,
.site-dropdown > button {
  position: relative;
  color: var(--ds-fg1);
  font-family: var(--ds-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.005em;
  padding: 9px 13px;
  border-radius: 999px;
  transition: background var(--ds-fast) var(--ds-ease), color var(--ds-fast) var(--ds-ease);
}
.site-menu > a:hover,
.site-dropdown > button:hover,
.site-dropdown.open > button { background: rgba(10, 37, 64, .07); color: var(--ds-fg1); }
.site-menu > a:active,
.site-dropdown > button:active { background: rgba(10, 37, 64, .12); }
.site-dropdown > button span { display: inline-block; margin-left: 2px; font-size: 11px; color: var(--ds-fg3); transition: transform var(--ds-normal) var(--ds-spring); }
.site-dropdown:hover > button span,
.site-dropdown:focus-within > button span,
.site-dropdown.open > button span { transform: rotate(180deg); }

.site-menu > a.active:not(.site-nav-cta) { background: transparent; color: var(--ds-brand); font-weight: 600; }
.site-menu > a.active:not(.site-nav-cta)::after {
  content: ""; position: absolute; left: 50%; bottom: 1px;
  width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--ds-brand);
}
.site-nav-cta {
  margin-left: 12px;
  background: var(--ds-brand) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  box-shadow: 0 1px 2px rgba(10, 37, 64, .2), 0 6px 14px -6px rgba(15, 108, 189, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform var(--ds-normal) var(--ds-spring), background var(--ds-fast) var(--ds-ease) !important;
}
.site-nav-cta:hover { background: var(--ds-brand-hover) !important; transform: translateY(-1px); }
.site-nav-cta:active { background: var(--ds-brand-pressed) !important; transform: translateY(0) scale(.98); }

.site-dropdown-menu {
  top: calc(100% + 8px);
  width: 272px;
  padding: 6px;
  border: 1px solid var(--ds-stroke);
  border-radius: var(--ds-radius-xl);
  background: #fff;
  box-shadow: var(--ds-shadow-28);
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity var(--ds-normal) var(--ds-ease), transform var(--ds-normal) var(--ds-spring), visibility var(--ds-normal);
}
.site-dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.site-dropdown-menu a { color: var(--ds-fg1); font-weight: 500; padding: 10px 12px; border-radius: 10px; }
.site-dropdown-menu a:hover { background: rgba(10, 37, 64, .07); }
.site-dropdown-menu a.active { color: var(--ds-brand); font-weight: 600; background: var(--ds-brand-tint); }

.site-menu-toggle { width: 42px; height: 42px; padding: 10px; background: transparent; border-radius: 50%; }
.site-menu-toggle:hover { background: rgba(10, 37, 64, .07); }
.site-menu-toggle > span:not(.sr-only) { height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ds-fg1); transition: transform var(--ds-normal) var(--ds-spring), opacity var(--ds-fast); }
.site-menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
.site-menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 4. Heroes & depth --------------------------------------------------------
   Flat white stage. experience.js draws the consensus field behind the copy
   and tilts the artwork in 3D; a rear plane and a light-aware shadow give the
   image physical thickness. */
body[data-route] main section:is([class$="-hero"], [data-layout="hero"]) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ds-hero-bg) !important;
  color: var(--ds-fg1);
  border-bottom: 1px solid var(--ds-stroke-subtle) !important;
  padding-left: var(--ds-gutter) !important;
  padding-right: var(--ds-gutter) !important;
}
.ds-field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

body[data-route] main section:is([class$="-hero"], [data-layout="hero"]) :is(h1, h2) { color: var(--ds-fg1); }
body[data-route] main section:is([class$="-hero"], [data-layout="hero"]) p { color: var(--ds-fg2); font-size: 18px; line-height: 1.6; }
body[data-route] main section:is([class$="-hero"], [data-layout="hero"]) [class*="eyebrow"] { color: var(--ds-brand) !important; margin-bottom: 16px; }
body[data-route] main section:is([class$="-hero"], [data-layout="hero"]) :is([class$="-trust-label"], [class$="-pill-label"]) { color: var(--ds-fg3); }
/* Capability chips are small panes of glass over the field. */
body[data-route] main section:is([class$="-hero"], [data-layout="hero"]) span[class$="-pill"] {
  border: 1px solid rgba(10, 37, 64, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 #fff, var(--ds-shadow-2);
  color: var(--ds-fg2);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
}
body[data-route] main section:is([class$="-hero"], [data-layout="hero"]) span[class$="-pill"][data-delphi-mode] {
  border-color: var(--ds-brand-tint-stroke);
  color: var(--ds-brand-hover);
  font-size: 12px;
  font-weight: 600;
}
body[data-route] .site-hero-glyph { background: #fff; color: var(--ds-brand); border: 1px solid var(--ds-stroke); border-radius: var(--ds-radius-l); box-shadow: var(--ds-shadow-4); }

/* Artwork: a light-aware shadow and, for still images only, a slight tilt toward
   the pointer (--ds-rx/--ds-ry in deg, --ds-nx/--ds-ny in -1..1, set by
   experience.js). Nothing is layered over the media and the video player is
   never transformed, so it always stays fully visible and clickable. */
body[data-route] .site-hero-art { --ds-rx: 0deg; --ds-ry: 0deg; --ds-nx: 0; --ds-ny: 0; position: relative; }
body[data-route] .site-hero-art img,
body[data-route] .site-hero-video iframe,
body[data-route] .contact-hero img {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(10, 37, 64, .1);
  border-radius: var(--ds-radius-xl);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(10, 37, 64, .1),
    calc(var(--ds-nx, 0) * -18px) calc(28px + var(--ds-ny, 0) * -14px) 56px -18px rgba(10, 37, 64, .3);
}
body[data-route] .site-hero-art img { transform: perspective(1400px) rotateX(var(--ds-rx, 0deg)) rotateY(var(--ds-ry, 0deg)); }
.site-hero-art.has-enlargeable-image::after {
  right: 14px; bottom: 14px; padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 #fff, var(--ds-shadow-4);
  color: var(--ds-fg1);
  font-size: 12px; font-weight: 600;
  z-index: 2;
}
body[data-route="/"] .cal-home-hero { padding-top: 80px !important; padding-bottom: 88px !important; }

/* 5. Buttons -------------------------------------------------------------- */
body[data-route] main :is([class*="button"], [class*="btn"]):is(a, button),
body[data-route] main .form-submit,
.error-page a {
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--ds-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.35;
  text-decoration: none !important;
  transition: transform var(--ds-normal) var(--ds-spring), background var(--ds-fast) var(--ds-ease), border-color var(--ds-fast) var(--ds-ease), box-shadow var(--ds-normal) var(--ds-ease);
}
body[data-route] main :is([class*="button"], [class*="btn"]):is(a, button):hover,
body[data-route] main .form-submit:hover { transform: translateY(-2px); }
body[data-route] main :is([class*="button"], [class*="btn"]):is(a, button):active,
body[data-route] main .form-submit:active { transform: translateY(0) scale(.98); }
/* Primary */
body[data-route] main :is([class*="button"], [class*="btn"]):is([class*="-primary"], [class*="-blue"]),
body[data-route] main .form-submit,
.error-page a {
  background: var(--ds-brand);
  border-color: var(--ds-brand);
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(10, 37, 64, .2), 0 8px 18px -8px rgba(15, 108, 189, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
}
body[data-route] main :is([class*="button"], [class*="btn"]):is([class*="-primary"], [class*="-blue"]):hover,
body[data-route] main .form-submit:hover,
.error-page a:hover { background: var(--ds-brand-hover); border-color: var(--ds-brand-hover); box-shadow: 0 1px 2px rgba(10, 37, 64, .2), 0 14px 24px -10px rgba(15, 108, 189, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
/* Secondary: clear glass */
body[data-route] main :is([class*="button"], [class*="btn"]):is([class*="-secondary"], [class*="-outline"]) {
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  border-color: var(--ds-stroke-strong);
  color: var(--ds-fg1) !important;
  box-shadow: inset 0 1px 0 #fff, var(--ds-shadow-2);
}
body[data-route] main :is([class*="button"], [class*="btn"]):is([class*="-secondary"], [class*="-outline"]):hover { background: #fff; border-color: var(--ds-fg3); box-shadow: inset 0 1px 0 #fff, var(--ds-shadow-8); }
body[data-route] main [class$="-actions"] { gap: 12px; }
/* Text-style actions inside content items */
body[data-route^="/delphi-services"] main .cal-services-options .cal-card .cal-button {
  min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  color: var(--ds-brand) !important;
}
body[data-route^="/delphi-services"] main .cal-services-options .cal-card .cal-button:hover { transform: none; text-decoration: underline !important; }

/* 6. Open content items -----------------------------------------------------
   Content sits directly on the page: a hairline, an icon or index, then type.
   No boxes, fills or drop shadows. The hairline draws itself in brand blue
   when an item that links somewhere is hovered. :where() keeps specificity low
   so page-level structure rules can still adjust individual grids. */
body[data-route] main section:not(:is([class$="-hero"], [data-layout="hero"])) {
  padding: var(--ds-section-y) var(--ds-gutter) !important;
}
body[data-route] main [class*="section-blue"]:not([data-layout]) { background: var(--ds-bg-subtle); }
body[data-route] main section[class*="section"]:nth-of-type(even):not([data-layout]) { background-color: var(--ds-bg-subtle); }
body[data-route] main [class$="-intro"] { color: var(--ds-fg2); font-size: 18px; line-height: 1.6; }

body[data-route] main :is(.design-grid, [class*="-grid-"], .cal-reference-list, .cal-nm-reference-list) { gap: 40px 56px !important; }

body[data-route] main :is([class*="-card"], .cal-reference, .cal-nm-reference):where(:not(.contact-card, .video-card, [class*="scale-card"], [data-layout="packages"] *)) {
  position: relative;
  min-width: 0;
  padding: 26px 8px 4px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--ds-stroke-strong) !important;
  border-radius: 0 !important;
  background: linear-gradient(var(--ds-brand), var(--ds-brand)) no-repeat left top / 0 2px !important;
  background-origin: border-box !important;
  box-shadow: none !important;
  transform: none;
  transition: background-size .7s var(--ds-glide);
}
body[data-route] main :is([class*="-card"], .cal-reference, .cal-nm-reference):where(:not(.contact-card, .video-card, [class*="scale-card"], [data-layout="packages"] *)):has(a):hover {
  background-size: 100% 2px !important;
}
body[data-route] main [class*="-card"] :is(p, li) { color: var(--ds-fg2); }
body[data-route] main [class*="-card"] h3 { margin-bottom: 10px; }
body[data-route] main [class*="-card"] h3 a { color: inherit; text-decoration: none; }
body[data-route] main [class*="-card"]:hover h3 a { color: var(--ds-brand); }

/* Content icons injected by experience.js */
.ds-icon { display: block; width: 34px; height: 34px; margin: 0 0 18px; color: var(--ds-brand); transition: transform .6s var(--ds-spring); }
.ds-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
:hover > .ds-icon { transform: translateY(-3px) scale(1.06); }

/* Reference libraries: an indexed, ruled reading list. */
body[data-route] main :is(.cal-rank, .cal-nm-rank) {
  display: block !important; position: static; width: auto; height: auto; margin: 0 0 12px; padding: 0;
  border: 0; border-radius: 0; background: none;
  color: var(--ds-brand); font-family: var(--ds-font-display); font-size: 15px; font-weight: 700; letter-spacing: .04em; line-height: 1;
}
body[data-route] main :is(.cal-reference, .cal-nm-reference) h3 { margin: 0 0 12px; }
body[data-route] main :is(.cal-reference, .cal-nm-reference) h3 a { color: var(--ds-fg1); text-decoration: none; }
body[data-route] main :is(.cal-reference, .cal-nm-reference):hover h3 a { color: var(--ds-brand); }

/* Pricing packages stay as panels: they are compared side by side. */
body[data-route] main [data-layout="packages"] .design-card {
  border: 1px solid var(--ds-stroke);
  border-radius: var(--ds-radius-xl);
  background: #fff;
  box-shadow: var(--ds-shadow-4);
  transition: transform var(--ds-normal) var(--ds-spring), box-shadow var(--ds-normal) var(--ds-ease);
}
body[data-route] main [data-layout="packages"] .design-card:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow-16); }

/* Editorial layouts: the heading column stays in view while its chapter is read,
   and chapter numbers become large outlined numerals. */
body[data-route] main :is([data-layout="chapter"], [data-layout="split"], [data-layout="intro"]) > h2 {
  position: sticky;
  top: calc(var(--ds-nav-h) + 32px);
  align-self: start;
  border-top: 0;
  padding-top: 0;
}
body[data-route] main :is([data-layout="chapter"], [data-layout="split"], [data-layout="intro"]) > h2::before {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin-bottom: 24px;
  border-radius: 3px;
  background: var(--ds-brand);
}
body[data-route][data-kind="article"] main section[data-chapter]::before {
  margin-bottom: 8px;
  color: transparent;
  font-family: var(--ds-font-display);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--ds-brand-tint-stroke);
}
body[data-route][data-kind="article"] main section[data-layout="timeline"][data-chapter]::before { -webkit-text-stroke-color: rgba(255, 255, 255, .35); }
body[data-route] main :is([data-layout="intro"], [data-layout="chapter"]) > p:first-of-type { color: var(--ds-fg1); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; }

/* Lists: a drawn check replaces the default disc. Legal copy keeps plain bullets. */
body[data-route] main section:not([data-layout="legal"]) ul:not([class]):not(.legal-copy ul) { list-style: none; padding-left: 0; }
body[data-route] main section:not([data-layout="legal"]) ul:not([class]):not(.legal-copy ul) > li { position: relative; padding-left: 30px; margin-bottom: 10px; }
body[data-route] main section:not([data-layout="legal"]) ul:not([class]):not(.legal-copy ul) > li::before {
  content: "";
  position: absolute;
  left: 4px; top: .42em;
  width: 6px; height: 11px;
  border: solid var(--ds-brand);
  border-width: 0 2px 2px 0;
  border-radius: 1px;
  transform: rotate(45deg);
}
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) ul:not([class]) > li::before { border-color: var(--ds-brand-on-dark); }

/* Section openers */
body[data-route] main section > h2 + [class$="-intro"] { margin-bottom: 40px; max-width: 78ch; }

/* Callouts */
body[data-route] main [class$="-note"]:not(.form-note) {
  border: 0;
  border-left: 2px solid var(--ds-brand);
  border-radius: 0;
  background: none;
  padding: 4px 0 4px 20px;
  margin-top: 32px;
  color: var(--ds-fg2);
}
body[data-route] main [class$="-note"] strong { color: var(--ds-fg1); }

/* Badges and tags */
body[data-route] main [class*="-badge"]:not([class$="-badges"]) {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 3px 10px;
}
body[data-route] main [class$="-icon"]:not(.ds-icon) { border-radius: 50%; background: none; border: 1.5px solid var(--ds-brand); color: var(--ds-brand); font-family: var(--ds-font-display); font-weight: 700; }
body[data-route] main [class$="-price"] { font-family: var(--ds-font-display); font-weight: 800; letter-spacing: -.03em; }

/* Media */
body[data-route] main .video-card { border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0; }
body[data-route] main .video-frame { border-radius: var(--ds-radius-xl); background: var(--ds-navy); box-shadow: var(--ds-shadow-16); }
body[data-route] main [class$="-figure"] { border-radius: var(--ds-radius-xl); box-shadow: var(--ds-shadow-16); border-color: var(--ds-stroke); }

/* Legal copy keeps one readable measure for paragraphs and lists alike. */
body[data-route] main [data-layout="legal"] :is(p, ul, ol, h2, h3) { max-width: 80ch; }
body[data-route] main [class*="nav-links"] a { border-radius: 999px; font-weight: 500; background: var(--ds-bg-subtle); transition: background var(--ds-fast) var(--ds-ease), color var(--ds-fast) var(--ds-ease); }
body[data-route] main [class*="nav-links"] a:hover { background: var(--ds-brand); color: #fff; text-decoration: none; }

/* 7. Process timelines -----------------------------------------------------
   Steps are nodes on a continuous line rather than a row of boxes. */
body[data-route] main :is(.cal-steps, .design-steps, [class$="-steps"]) { gap: 40px 0 !important; }
body[data-route] main [class$="-step"] {
  position: relative;
  padding: 68px 32px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
body[data-route] main [class$="-step"]::before {
  top: 0 !important; left: 0 !important;
  width: 44px !important; height: 44px !important;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ds-brand);
  color: var(--ds-brand);
  font-family: var(--ds-font-display);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 0 0 6px #fff;
  z-index: 1;
  transition: background var(--ds-normal) var(--ds-ease), color var(--ds-normal) var(--ds-ease), transform var(--ds-normal) var(--ds-spring);
}
body[data-route] main [class$="-step"]:hover::before { background: var(--ds-brand); color: #fff; transform: scale(1.08); }
body[data-route] main [class$="-step"]::after {
  content: "";
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 1px;
  background: var(--ds-stroke-strong);
}
body[data-route] main :is([class*="section-blue"], [data-layout="tiles"], [data-layout="statement"], [data-layout="comparison"], [data-layout="collection"]) [class$="-step"]::before { box-shadow: 0 0 0 6px var(--ds-bg-subtle); background: var(--ds-bg-subtle); }
body[data-route] main [class$="-step"] strong { color: var(--ds-fg1); font-family: var(--ds-font-display); font-weight: 700; }

/* Progress ring around each step number (drawn by experience.js). */
.ds-step-ring { position: absolute; top: -5px; left: -5px; z-index: 2; width: 54px; height: 54px; fill: none; transform: rotate(-90deg); pointer-events: none; }
.ds-step-ring circle { stroke-width: 2.5; }
.ds-step-ring circle:first-child { stroke: var(--ds-stroke); }
.ds-step-ring circle:last-child {
  stroke: var(--ds-brand);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.5s var(--ds-glide) calc(var(--ds-step-i, 0) * 160ms + .5s);
}
[data-ds-ring="in"] > .ds-step-ring circle:last-child { stroke-dashoffset: calc(100 - var(--ds-step-progress, 1) * 100); }
body[data-route] main :is([class$="-step"], .cal-home-process [class*="-card"]):has(> .ds-step-ring)::before { border-color: transparent; }

/* Convergence chart above a step sequence. */
.ds-steps-chart {
  --ds-chart-line: var(--ds-brand);
  --ds-chart-band: var(--ds-brand-tint);
  --ds-chart-edge: var(--ds-brand-tint-stroke);
  --ds-chart-grid: var(--ds-stroke);
  --ds-chart-node: #fff;
  height: 132px;
  margin: 36px 0 44px;
}
.ds-steps-chart svg { display: block; overflow: visible; }
.ds-chart-grid { stroke: var(--ds-chart-grid); stroke-width: 1; stroke-dasharray: 2 6; }
.ds-chart-band { fill: var(--ds-chart-band); clip-path: inset(-20px 100% -20px -20px); transition: clip-path 2s var(--ds-glide) .1s; }
.ds-chart-edge { fill: none; stroke: var(--ds-chart-edge); stroke-width: 1; clip-path: inset(-20px 100% -20px -20px); transition: clip-path 2s var(--ds-glide) .1s; }
.ds-chart-line { fill: none; stroke: var(--ds-chart-line); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.2s var(--ds-glide) .2s; }
.ds-chart-dot { fill: var(--ds-chart-line); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: opacity .5s var(--ds-ease), transform .7s var(--ds-spring); transition-delay: calc(var(--ds-dot-i, 0) * 220ms + .2s); }
.ds-chart-node { fill: var(--ds-chart-node); stroke: var(--ds-chart-line); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s var(--ds-spring) calc(var(--ds-dot-i, 0) * 220ms + .45s); }
.ds-chart-target { fill: none; stroke: var(--ds-chart-line); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity .8s var(--ds-ease), transform 1s var(--ds-spring); transition-delay: calc(var(--ds-dot-i, 0) * 220ms + .9s); }
[data-ds-chart="in"] :is(.ds-chart-band, .ds-chart-edge) { clip-path: inset(-20px); }
[data-ds-chart="in"] .ds-chart-line { stroke-dashoffset: 0; }
[data-ds-chart="in"] .ds-chart-dot { opacity: .45; transform: none; }
[data-ds-chart="in"] .ds-chart-node { transform: none; }
[data-ds-chart="in"] .ds-chart-target { opacity: .55; transform: none; }

/* 8. Dark bands & CTA ------------------------------------------------------ */
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-services-comparison, .cal-live-process, .cal-live-example) :is([class*="-card"], [class$="-step"]):not(td *) {
  border-top-color: rgba(255, 255, 255, .24) !important;
}
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) :is(h2, h3, h4, strong):not([class*="badge"] *) { color: #fff !important; }
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) :is(p, li, span:not([class*="badge"])) { color: var(--ds-fg2-on-dark) !important; }
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) :is(p, li, h3) > a:not([class*="button"]):not([class*="btn"]) { color: var(--ds-brand-on-dark) !important; }
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) :is(.ds-icon, .cal-page-kicker, [class*="eyebrow"]) { color: var(--ds-brand-on-dark); }
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) [class$="-note"] { border-left-color: var(--ds-brand-on-dark); background: none !important; color: var(--ds-fg2-on-dark) !important; }
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) [class*="formula-item"] { color: var(--ds-fg2-on-dark) !important; padding-left: 0 !important; border: 0 !important; border-top: 1px solid rgba(255, 255, 255, .24) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) [class$="-step"]::before {
  background: var(--ds-navy); border-color: var(--ds-brand-on-dark); color: #fff; box-shadow: 0 0 0 6px var(--ds-navy);
}
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) [class$="-step"]::after { background: rgba(255, 255, 255, .24); }
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) :is([class*="-card"], .cal-reference):has(a):hover { background-image: linear-gradient(#fff, #fff) !important; }

body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) .ds-steps-chart { --ds-chart-line: var(--ds-brand-on-dark); --ds-chart-band: rgba(255, 255, 255, .07); --ds-chart-edge: rgba(255, 255, 255, .28); --ds-chart-grid: rgba(255, 255, 255, .16); --ds-chart-node: var(--ds-navy); }
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) .ds-step-ring circle:first-child { stroke: rgba(255, 255, 255, .2); }
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-live-process, .cal-live-example) .ds-step-ring circle:last-child { stroke: var(--ds-brand-on-dark); }

/* Buttons that sit directly on navy */
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-services-comparison, .cal-live-process, .cal-live-example) :is([class*="button"], [class*="btn"]):is([class*="-primary"], [class*="-blue"]) {
  background: #fff;
  border-color: #fff;
  color: var(--ds-navy) !important;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
}
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-services-comparison, .cal-live-process, .cal-live-example) :is([class*="button"], [class*="btn"]):is([class*="-secondary"], [class*="-outline"]) {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .45);
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
body[data-route] main :is([data-layout="spotlight"], [data-layout="timeline"], .cal-home-evidence, .cal-home-beyond, .cal-delphi-modes, .cal-services-comparison, .cal-live-process, .cal-live-example) :is([class*="button"], [class*="btn"]):is([class*="-secondary"], [class*="-outline"]):hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* Closing call to action: white, typographic, with a target of hairline rings. */
body[data-route] main :is(section[class$="-cta"], [data-layout="cta"]) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff !important;
  color: var(--ds-fg1);
  border-top: 1px solid var(--ds-stroke-subtle) !important;
}
body[data-route] main :is(section[class$="-cta"], [data-layout="cta"])::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%; right: calc(var(--ds-gutter) * .5 - 120px);
  width: 640px; height: 640px;
  margin-top: -320px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 39px, var(--ds-brand-tint-stroke) 39px 40px);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 70%);
  mask-image: radial-gradient(circle, #000 0, transparent 70%);
  transform: translate3d(0, var(--ds-ring-y, 0px), 0);
}
body[data-route] main :is(section[class$="-cta"], [data-layout="cta"]) :is(h2, h3) { color: var(--ds-fg1) !important; max-width: 24ch; }
body[data-route] main :is(section[class$="-cta"], [data-layout="cta"]) h2 { font-size: clamp(30px, 3.4vw, 50px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
body[data-route] main :is(section[class$="-cta"], [data-layout="cta"]) p { color: var(--ds-fg2) !important; max-width: 62ch; }
body[data-route] main :is(section[class$="-cta"], [data-layout="cta"]) :is(p, li) > a:not([class*="button"]):not([class*="btn"]) { color: var(--ds-brand) !important; }

/* 9. Data display --------------------------------------------------------- */
body[data-route] main [class*="table-wrap"] {
  border: 1px solid var(--ds-stroke);
  border-radius: var(--ds-radius-xl);
  background: #fff;
  box-shadow: var(--ds-shadow-8);
}
body[data-route] main [class*="table-wrap"] table { margin: 0; border-collapse: collapse; }
body[data-route] main [class*="table-wrap"] :is(th, td) { border: 0; border-bottom: 1px solid var(--ds-stroke-subtle); padding: 16px 20px; font-size: 15px; }
body[data-route] main [class*="table-wrap"] th { background: #fff; color: var(--ds-fg3) !important; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--ds-stroke-strong); }
body[data-route] main [class*="table-wrap"] td { color: var(--ds-fg2) !important; }
body[data-route] main [class*="table-wrap"] td:first-child { color: var(--ds-fg1) !important; font-weight: 600; }
body[data-route] main [class*="table-wrap"] td a { color: var(--ds-brand) !important; }
body[data-route] main [class*="table-wrap"] tbody tr { background: transparent; transition: background var(--ds-fast) var(--ds-ease); }
body[data-route] main [class*="table-wrap"] tbody tr:hover { background: var(--ds-bg-subtle); }
body[data-route] main [class*="table-wrap"] tbody tr:last-child td { border-bottom: 0; }

/* 10. Forms --------------------------------------------------------------- */
body[data-route] main .contact-form,
body[data-route] main .contact-card {
  border: 1px solid var(--ds-stroke);
  border-radius: var(--ds-radius-xl);
  background: #fff;
  box-shadow: var(--ds-shadow-16);
}
body[data-route] main .contact-card { border: 0; border-top: 1px solid var(--ds-stroke-strong); border-radius: 0; background: none; box-shadow: none; padding-inline: 0; }
body[data-route] main :is(.contact-form, .contact-card) h2 { color: var(--ds-fg1); font-size: 26px; }
body[data-route] main .contact-card :is(h2, strong) { color: var(--ds-fg1) !important; }
body[data-route] main .contact-card p { color: var(--ds-fg2) !important; }
body[data-route] main .contact-card a { color: var(--ds-brand) !important; font-weight: 600; }
body[data-route] main .contact-card .contact-method { border-top-color: var(--ds-stroke-subtle); }
body[data-route] main .form-field label { color: var(--ds-fg1); font-size: 14px; font-weight: 600; }
body[data-route] main .form-field :is(input, textarea, select) {
  border: 1px solid var(--ds-stroke-strong);
  border-radius: var(--ds-radius-m);
  padding: 11px 14px;
  font-family: var(--ds-font);
  font-size: 15px;
  color: var(--ds-fg1);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(10, 37, 64, .05);
  transition: border-color var(--ds-fast) var(--ds-ease), box-shadow var(--ds-normal) var(--ds-ease);
}
body[data-route] main .form-field :is(input, textarea, select):hover { border-color: var(--ds-stroke-input); }
body[data-route] main .form-field :is(input, textarea, select):focus,
body[data-route] main .form-field :is(input, textarea, select):focus-visible {
  outline: 0 !important;
  border-color: var(--ds-brand);
  box-shadow: 0 0 0 4px rgba(15, 108, 189, .16);
}
body[data-route] main .form-field ::placeholder { color: #6b7480; }
body[data-route] main .contact-form .form-field [aria-invalid="true"] { border: 1px solid var(--ds-danger); box-shadow: 0 0 0 4px rgba(177, 14, 28, .12); }
body[data-route] main .contact-form .field-error { color: var(--ds-danger); font-size: 12px; font-weight: 500; }
body[data-route] main .form-note { color: var(--ds-fg3); font-size: 12px; }
body[data-route] main .form-status { border: 1px solid var(--ds-brand-tint-stroke); border-radius: var(--ds-radius-m); background: var(--ds-brand-tint); color: var(--ds-fg1); font-weight: 500; }
body[data-route] main .form-status[data-state="success"] { border-color: #9fd89f; background: var(--ds-success-tint); }
body[data-route] main .form-status[data-state="error"] { border-color: #eeacb2; background: var(--ds-danger-tint); color: var(--ds-danger); }
body[data-route] main .form-submit { justify-self: start; align-self: flex-start; width: auto; min-width: 180px; cursor: pointer; }
body[data-route] main .form-submit:disabled { background: #eef0f2; border-color: #e0e3e7; color: #a3abb5 !important; box-shadow: none; cursor: not-allowed; opacity: 1; transform: none; }

/* 11. Footer ----------------------------------------------------------------
   A light ground with the live consensus field behind a white glass index. */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0 32px;
  border-top: 1px solid var(--ds-stroke);
  background: var(--ds-bg-subtle);
  color: var(--ds-fg2);
}
.site-footer-grid {
  gap: 48px;
  padding: clamp(28px, 3.5vw, 56px);
  border: 1px solid #fff;
  border-radius: 28px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(10, 37, 64, .05), var(--ds-shadow-16);
}
.site-footer-brand { color: var(--ds-navy); font-family: var(--ds-font-display); font-size: 30px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 16px; }
.site-footer p { color: var(--ds-fg2); font-size: 15px; line-height: 1.65; max-width: 380px; }
.site-footer h2 { color: var(--ds-fg3); font-family: var(--ds-font); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer-grid > div > a {
  position: relative;
  width: fit-content;
  color: var(--ds-fg1);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  transition: color var(--ds-fast) var(--ds-ease), transform var(--ds-normal) var(--ds-spring);
}
.site-footer-grid > div > a::before {
  content: "";
  position: absolute; left: -18px; top: 50%;
  width: 10px; height: 2px; border-radius: 2px;
  background: var(--ds-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--ds-normal) var(--ds-glide);
}
.site-footer-grid > div > a:hover { color: var(--ds-brand); transform: translateX(18px); text-decoration: none; }
.site-footer-grid > div > a:hover::before { transform: scaleX(1); }
.site-footer-bottom { border-top: 0; color: var(--ds-fg3); font-size: 13px; margin-top: 28px; padding: 0 84px 0 4px; }
.site-footer-bottom a { color: var(--ds-fg2); font-weight: 500; margin-left: 28px; }
.site-footer-bottom a:hover { color: var(--ds-brand); text-decoration: underline; text-underline-offset: 3px; }

/* 12. Back to top ----------------------------------------------------------- */
.ds-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: var(--ds-glass-filter);
  backdrop-filter: var(--ds-glass-filter);
  box-shadow: var(--ds-glass-edge), var(--ds-shadow-16), 0 0 0 1px rgba(10, 37, 64, .08);
  color: var(--ds-navy);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.8);
  transition: opacity var(--ds-normal) var(--ds-ease), transform .5s var(--ds-spring), visibility var(--ds-normal), background var(--ds-fast) var(--ds-ease);
}
.ds-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.ds-top:hover { background: #fff; transform: translateY(-4px); }
.ds-top:active { transform: scale(.94); }
.ds-top svg { grid-area: 1 / 1; }
.ds-top .ds-top-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--ds-normal) var(--ds-spring); }
.ds-top:hover .ds-top-arrow { transform: translateY(-2px); }
.ds-top .ds-top-ring { width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2.5; }
.ds-top .ds-top-ring circle:first-child { stroke: rgba(10, 37, 64, .1); }
.ds-top .ds-top-ring circle:last-child { stroke: var(--ds-brand); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--ds-progress, 0) * 100); }

/* 13. Motion ------------------------------------------------------------------
   experience.js tags elements as they approach the viewport; they rise into
   place on a spring and then hand control back to their own transitions. */
[data-ds-reveal="pending"] { opacity: 0; transform: translate3d(0, 28px, 0); }
[data-ds-reveal="in"] {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ds-ease) calc(var(--ds-i, 0) * 70ms), transform .9s var(--ds-glide) calc(var(--ds-i, 0) * 70ms);
}

.error-page h1 { color: var(--ds-brand); font-family: var(--ds-font-display); font-weight: 800; letter-spacing: -.04em; }
.error-page h2 { color: var(--ds-fg1); font-family: var(--ds-font-display); font-weight: 700; }
.error-page a { display: inline-flex; align-items: center; }

.cal-image-viewer { background: rgba(6, 20, 36, .72); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.cal-image-viewer__caption { font-weight: 600; font-size: 14px; }
.cal-image-viewer__link,
.cal-image-viewer__close {
  min-height: 38px; padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ds-fg1) !important; font-size: 14px; font-weight: 600;
}
.cal-image-viewer__link:hover,
.cal-image-viewer__close:hover { background: #fff; }
.cal-image-viewer__image { border-radius: var(--ds-radius-xl); box-shadow: var(--ds-shadow-28); }

/* 14. Responsive, print ---------------------------------------------------- */
@media (max-width: 1180px) {
  .site-menu > a, .site-dropdown > button { padding-inline: 9px; font-size: 13px; }
  .site-brand img { width: 150px; }
  .site-nav-row { gap: 16px; }
  .site-nav-cta { margin-left: 6px; padding-inline: 16px !important; }
  body[data-route] main :is(.design-grid, [class*="-grid-"], .cal-reference-list, .cal-nm-reference-list) { gap: 36px 40px !important; }
}
@media (max-width: 900px) {
  :root { --ds-nav-h: 60px; --ds-gutter: 28px; }
  .site-shell { width: min(100% - 56px, 1600px); }
  .site-nav-row { min-height: var(--ds-nav-h); }
  .site-menu {
    top: 100%; left: 12px; right: 12px;
    max-height: calc(100vh - var(--ds-nav-h) - 24px);
    overflow-y: auto;
    margin-top: 8px;
    padding: 10px 16px 18px;
    gap: 0;
    border: 1px solid var(--ds-stroke);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--ds-shadow-28);
  }
  .site-menu > a, .site-dropdown > button { padding: 13px 10px; font-size: 16px; border-radius: 12px; }
  .site-menu > a:not(.site-nav-cta), .site-dropdown { border-bottom: 1px solid var(--ds-stroke-subtle); }
  .site-dropdown > button { display: flex; justify-content: space-between; align-items: center; }
  .site-menu > a.active:not(.site-nav-cta)::after { left: 0; bottom: auto; top: 50%; width: 3px; height: 18px; margin: -9px 0 0; }
  .site-dropdown-menu { padding: 0 0 8px 12px; border: 0; background: none; box-shadow: none; transform: none; }
  .site-dropdown-menu::before { display: none; }
  .site-dropdown:hover > button span, .site-dropdown:focus-within > button span { transform: none; }
  .site-dropdown.open > button span { transform: rotate(180deg); }
  .site-nav-cta { margin: 16px 0 0; text-align: center !important; padding: 14px 16px !important; }
  body[data-route] .site-hero-art { margin-top: 8px; }
  body[data-route] main :is([data-layout="chapter"], [data-layout="split"], [data-layout="intro"]) > h2 { position: static; }
  body[data-route] main :is(section[class$="-cta"], [data-layout="cta"])::before { width: 420px; height: 420px; margin-top: -210px; right: -160px; }
  .site-footer-grid > div > a:hover { transform: none; }
  .site-footer-grid > div > a::before { display: none; }
}
@media (max-width: 620px) {
  :root { --ds-gutter: 20px; }
  .site-header { top: 0; }
  .site-shell { width: min(100% - 40px, 1600px); }
  body[data-route] #main-content h1 { font-size: clamp(30px, 8.6vw, 38px) !important; }
  body[data-route] main [class$="-actions"] > :is([class*="button"], [class*="btn"]) { flex: 1 1 100%; }
  body[data-route] main section:is([class$="-hero"], [data-layout="hero"]) p { font-size: 17px; }
  body[data-route] main :is(.design-grid, [class*="-grid-"], .cal-reference-list, .cal-nm-reference-list) { gap: 28px !important; }
  body[data-route] main [class$="-step"] { padding: 0 0 0 64px !important; min-height: 48px; }
  body[data-route] main [class$="-step"]::after { top: 0; bottom: -40px; left: 22px; right: auto; width: 1px; height: auto; }
  body[data-route] main [class$="-step"]:last-child::after { display: none; }
  .ds-steps-chart { height: 96px; margin: 24px 0 36px; }
  body[data-route] main .form-submit { width: 100%; }
  .site-footer-grid { border-radius: 20px; gap: 32px; }
  .site-footer-bottom { margin-top: 24px; }
  .site-footer-bottom a { margin: 0 22px 0 0; }
  .ds-top { width: 48px; height: 48px; }
}
@media (hover: none) {
  body[data-route] main :is([class*="button"], [class*="btn"]):is(a, button):hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-ds-reveal] { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .ds-top, .ds-field, .site-hero-art.has-enlargeable-image::after { display: none !important; }
  [data-ds-reveal] { opacity: 1 !important; transform: none !important; }
  body[data-route] main section { padding: 24px 0 !important; background: #fff !important; color: #000 !important; }
}
