/* expede.ae — minimal editorial design system.
   Palette: burgundy, beige, navy, grey, black. RAG colours (burgundy, gold, green) only inside data graphics, always labelled.
   Type: Plus Jakarta Sans (SIL OFL 1.1, self-hosted). */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/PlusJakartaSans-latin.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../fonts/PlusJakartaSans-Italic-latin.woff2") format("woff2"); }

:root {
  --burgundy: #8b2332; --burgundy-deep: #6e1a27; --burgundy-tint: #f3e6e8;
  --beige: #f5f0e8; --paper: #fbf9f5; --line: #e3dacb; --line-soft: #ece5d9; --line-strong: #cfc4b2;
  --navy: #0d1b2a; --navy-soft: #e6e9ee; --navy-line: rgba(255, 255, 255, .12);
  --grey: #4a5568; --grey-2: #5b6472; --black: #111111; --white: #ffffff;
  --rag-red: #8b2332; --rag-amber: #c08a2b; --rag-green: #2e7d55;
  --div-1: #8b2332; --div-2: #ad5521; --div-3: #c08a2b; --div-4: #7b8932; --div-5: #2e7d55; /* RAG scale: burgundy, rust, amber, olive, green (blends computed in OKLCH) */
  --wrap: 1200px; --gutter: 24px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--beige); color: var(--navy); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--navy); text-wrap: balance; }
/* Browsers do not pass the page font to form controls: without this the menu button and fields fall back to Arial (QA, 12 Nov). */
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.c { max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.c.narrow { max-width: 820px; }
.section { padding-block: 104px; }
.section.paper { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section.rule { border-top: 1px solid var(--line); }
.section.tight { padding-block: 72px; }

.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); }
.lead { font-size: 18px; line-height: 1.7; color: var(--grey); }
.muted { color: var(--grey); }
.small { font-size: 14px; color: var(--grey-2); }
.h2 { font-size: 34px; line-height: 1.18; margin-top: 16px; }
.h3 { font-size: 22px; line-height: 1.3; }
.ctas.more { margin-top: 32px; }
.nw { white-space: nowrap; }
/* phrases separated by dots: the dot that would start a wrapped line is clipped, so no line ends or begins with one */
.seps { overflow: hidden; }
.seps > span { display: flex; flex-wrap: wrap; margin-left: -1.1em; }
.seps > span > span { white-space: nowrap; }
.seps > span > span::before { content: "·"; content: "·" / ""; display: inline-block; width: 1.1em; text-align: center; }
.ticks li, .bullets li, .legal li, .grid p, .timeline p { text-wrap: pretty; }
.page-head .lead.lead-2 { margin-top: 16px; font-size: 16.5px; }
.icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font: 500 14px/1 var(--font); padding: 12px 16px; border-radius: 8px; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: background-color .15s, box-shadow .15s, color .15s; }
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-deep); }
.btn-secondary { color: var(--navy); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.btn-link { padding: 12px 0; color: var(--navy); background: none; }
.btn-link .icon { color: var(--burgundy); transition: transform .15s; }
.btn-link:hover .icon { transform: translateX(3px); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.text-link { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245, 240, 232, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line-soft); }
.nav { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.nav .brand img { height: 30px; width: auto; }
.nav-main { margin-left: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--grey); padding: 6px 0; white-space: nowrap; }
.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current] { color: var(--navy); font-weight: 500; box-shadow: inset 0 -1.5px 0 var(--burgundy); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-menu-cta { display: none; } /* the header button, repeated inside the phone menu */

/* page heads */
.page-head { padding-block: 96px 72px; }
.page-head h1 { font-size: 46px; line-height: 1.1; letter-spacing: -0.03em; margin: 18px 0 20px; max-width: 820px; }
.page-head .lead { max-width: 700px; }
.page-head .ctas { margin-top: 30px; }
.statement { margin-top: 28px; padding-left: 18px; border-left: 2px solid var(--burgundy); font-size: 19px; font-weight: 500; letter-spacing: -0.015em; color: var(--navy); max-width: 640px; }

/* home hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; padding-block: 96px 104px; }
.hero h1 { font-size: 50px; line-height: 1.1; letter-spacing: -0.03em; margin: 20px 0 22px; max-width: 620px; }
.hero h1 span { color: var(--burgundy); }
.hero .lead { max-width: 520px; }
.hero .ctas { margin-top: 32px; }

/* two-column heads */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; }
.split.end { align-items: start; }
.split.end > .lead { padding-top: 35px; }
.split.end > div:has(> .udrf-lockup) + .lead { padding-top: 101px; } /* the mark above the eyebrow: 44 + 22 more */
.split > * { min-width: 0; }
.split p + p { margin-top: 16px; }
.split .body p { font-size: 17px; line-height: 1.75; color: var(--grey); }
.split .body p.statement { font-size: 19px; color: var(--navy); line-height: 1.5; }
.split .body p.small { font-size: 14px; color: var(--grey-2); line-height: 1.6; }

/* panels (used sparingly) */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 48px -36px rgba(13, 27, 42, .35); }
.panel-hd { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; color: var(--grey); }
.panel-hd b { color: var(--navy); font-weight: 600; }
.panel-hd .tag { margin-left: auto; color: var(--grey-2); font-size: 11.5px; }
.panel-ft { padding: 10px 20px 12px; font-size: 11.5px; color: var(--grey-2); } /* the last row above it draws the rule */

/* illustrative dashboard */
.score { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line-soft); }
.score .v { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.score .v small { margin-left: 4px; font-size: 14px; color: var(--grey-2); font-weight: 500; letter-spacing: 0; }
.score p { font-size: 12.5px; color: var(--grey); line-height: 1.5; }
.gauge { height: 6px; border-radius: 99px; margin: 10px 0 6px; position: relative; background: linear-gradient(90deg, var(--div-1) 0 20%, var(--div-2) 20% 40%, var(--div-3) 40% 60%, var(--div-4) 60% 80%, var(--div-5) 80% 100%); }
.gauge i { position: absolute; top: -4px; width: 3px; height: 14px; border-radius: 2px; background: var(--navy); box-shadow: 0 0 0 2px #fff; }
.gauge-l { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--grey-2); }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) 110px 30px; gap: 12px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.drow-hd { padding: 13px 20px 3px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); }
.panel-legend { margin: 0; padding: 12px 20px 14px; }
.drow > :first-child { text-wrap: balance; line-height: 1.35; }
.drow .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { height: 4px; border-radius: 99px; background: #eee8de; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.rag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--grey); }
.rag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.rag.g { --dot: var(--rag-green); } .rag.a { --dot: var(--rag-amber); } .rag.r { --dot: var(--rag-red); }

/* heat map */
.heat { padding: 22px 24px; }
.heat-t { display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--grey); }
.heat-t b { color: var(--navy); font-weight: 600; font-size: 14px; }
.heat-t span { margin-left: auto; color: var(--grey-2); font-size: 11.5px; }
.heat-scroll { overflow-x: auto; margin-top: 16px; -webkit-overflow-scrolling: touch; }
.cells { display: grid; grid-template-columns: 76px repeat(10, minmax(62px, 1fr)); gap: 3px; min-width: 730px; font-size: 11px; color: var(--grey); align-items: center; }
.cells .x { height: 22px; border-radius: 4px; display: grid; place-items: center; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); cursor: default; }
.cells .x:hover::after, .cells .x.on::after, .heat-scroll:focus-visible .cells .x::after { content: attr(data-v); } /* the score, only on hover, tap or keyboard focus */
.cells .hd { text-align: center; color: var(--navy); font-weight: 500; }
.cells > * { grid-row: var(--r); grid-column: var(--c); } /* placed by the script, so a narrow screen can turn the grid on its side */
@media (max-width: 840px) {
  /* one row per domain and one column per date: fits a phone without scrolling sideways */
  .cells { grid-template-columns: 84px repeat(3, minmax(0, 1fr)); min-width: 0; max-width: 560px; }
  .cells > * { grid-row: var(--c); grid-column: var(--r); }
  .cells .hd { text-align: left; }
  .cells .pd { text-align: center; }
}
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 11.5px; color: var(--grey); }
.legend i { display: inline-block; width: 20px; height: 6px; border-radius: 3px; margin-right: 2px; }
.legend .note { margin: 0 0 0 auto; font-size: 11.5px; color: var(--grey-2); }


/* timelines: numbered steps on a single rule. Column counts come from classes (n4, n6, n7) so each width can override them. */
.timeline { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 40px 28px; margin-top: 56px; list-style: none; overflow: hidden; }
.timeline.n4 { --n: 4; } .timeline.n6 { --n: 6; } .timeline.n7 { --n: 7; }
.timeline li { position: relative; padding-top: 30px; }
.timeline li::after { content: ""; position: absolute; left: 16px; right: -28px; top: 5px; border-top: 1px solid var(--line); }
.timeline li:last-child::after { right: 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg, var(--beige)); box-shadow: inset 0 0 0 2px var(--burgundy); }
.section.paper .timeline { --bg: var(--paper); }
.timeline .k { font-size: 12px; color: var(--grey-2); font-weight: 500; }
.timeline h3 { font-size: 17px; margin: 6px 0 8px; line-height: 1.35; }
.timeline p { font-size: 14px; color: var(--grey); line-height: 1.6; }
.timeline.compact li { padding-top: 24px; }
.timeline.compact h3 { font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em; margin: 4px 0 0; line-height: 1.4; }
.timeline .hl::before { background: var(--burgundy); }
@media (max-width: 1200px) { .timeline.n7 { --n: 4; } }
.timeline .hl h3 { color: var(--burgundy); }

/* open grids with top rules */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0 44px; margin-top: 48px; list-style: none; }
.grid.cols2 { --cols: 2; } .grid.cols3 { --cols: 3; } .grid.cols4 { --cols: 4; }
.grid > * { padding: 22px 0 26px; border-top: 1px solid var(--line); min-width: 0; }
.grid.strong > * { border-top: 2px solid var(--navy); }
.grid h3, .grid h4 { font-size: 17px; line-height: 1.4; }
.grid p { margin-top: 8px; font-size: 14.5px; color: var(--grey); line-height: 1.6; }
.grid .k { display: block; font-size: 12px; color: var(--grey-2); font-weight: 500; margin-bottom: 6px; }
.note { margin-top: 22px; font-size: 14px; color: var(--grey-2); max-width: 720px; }

/* service rows */
.rows { margin-top: 48px; border-top: 1px solid var(--line); list-style: none; }
.rows > li { border-bottom: 1px solid var(--line); }
.rows a.row, .rows .row { display: grid; grid-template-columns: 300px minmax(0, 1fr) 24px; gap: 32px; align-items: baseline; padding: 22px 0; text-decoration: none; }
.rows .row h3 { font-size: 17px; }
.rows .row p { color: var(--grey); font-size: 15px; line-height: 1.6; }
.rows .row .icon { color: var(--burgundy); align-self: center; transition: transform .15s; }
.rows a.row:hover .icon { transform: translateX(3px); }
.rows a.row:hover h3 { color: var(--burgundy); }

/* service detail (What We Do): one row per service, alternating bands */
.svc-band { border-top: 1px solid var(--line-soft); } /* a link to a service lands 88px down: the page's own scroll-padding clears the header */
.svc-band:nth-of-type(even) { background: var(--paper); }
.svc-band:last-of-type { border-bottom: 1px solid var(--line-soft); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; padding-block: 64px; }
.service > * { min-width: 0; }
.service h2 { font-size: 21px; line-height: 1.3; }
.service .sub { margin-top: 8px; font-size: 14.5px; color: var(--burgundy); font-weight: 500; line-height: 1.5; }
.service .desc { font-size: 16px; line-height: 1.75; color: var(--grey); max-width: 66ch; }
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-top: 20px; font-size: 14.5px; color: var(--grey); }
.ticks li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; min-width: 0; }
.ticks li::before { content: ""; width: 5px; height: 9px; border: solid var(--burgundy); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-1px, -1px); margin-left: 3px; }

/* traceability diagram (UDRF): an inline SVG on wide screens, a numbered list on narrow ones */
.diagram { margin: 0; }
.diagram svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.diagram .box { fill: var(--white); stroke: var(--line-strong); stroke-width: 1.2; }
.diagram .box.hl { stroke: var(--burgundy); stroke-width: 2; }
.diagram .box.dark { fill: var(--navy); stroke: var(--navy); }
.diagram .t { font-size: 15px; font-weight: 500; fill: var(--navy); text-anchor: middle; }
.diagram .t.inv { fill: #fff; font-weight: 600; }
.diagram .lbl { font-size: 11px; font-weight: 600; letter-spacing: .16em; fill: var(--grey-2); }
.diagram .sub { font-size: 12.5px; fill: var(--grey); text-anchor: middle; }
.diagram .ln { fill: none; stroke: var(--line-strong); stroke-width: 1.4; marker-end: url(#ah); }
.diagram .ln.loop { stroke-dasharray: 4 4; }
.diagram #ah path { fill: var(--line-strong); }
.diagram-list { list-style: none; counter-reset: d; display: grid; gap: 14px; }
.diagram-list li { counter-increment: d; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--grey); }
.diagram-list li::before { content: counter(d, decimal-leading-zero); font-size: 12px; font-weight: 600; color: var(--burgundy); padding-top: 4px; }
.diagram-list b { color: var(--navy); font-weight: 600; }
@media (min-width: 1001px) { .diagram-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 1000px) { .diagram svg { display: none; } }

/* layers (Sectors): bands of equal height that step inwards, the universal core widest at the top */
.layers { list-style: none; display: grid; gap: 10px; margin-top: 48px; }
.layers li { margin-left: calc(var(--i, 0) * 72px); min-height: 88px; display: grid; grid-template-columns: 32px 220px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 22px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.layers .k { font-size: 12px; font-weight: 600; color: var(--burgundy); }
.layers b { font-size: 15.5px; font-weight: 600; color: var(--navy); }
.layers .desc { font-size: 14.5px; line-height: 1.55; color: var(--grey); }

/* numbered principles (About) */
.numbered { list-style: none; counter-reset: n; display: grid; gap: 28px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: 0 14px; align-items: baseline; }
.numbered li::before { content: counter(n, decimal-leading-zero); font-size: 12px; font-weight: 600; color: var(--burgundy); }
.numbered h3 { font-size: 17px; line-height: 1.4; }
.numbered p { grid-column: 2; margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--grey); }

/* jump links to the sections of a long page (What We Do): one quiet line of small text links with a thin rule between
   them, not buttons. Where the line wraps, the rule that would start a row is clipped away; the box
   reaches 6px further left so a focus ring on the first link is not clipped with it. */
.jump { margin: 26px 0 0 -6px; padding: 6px 0 6px 6px; overflow: hidden; }
.jump ul { list-style: none; display: flex; flex-wrap: wrap; row-gap: 2px; margin-left: -11px; }
.jump li { padding: 0 10px; border-left: 1px solid var(--line-strong); }
.jump a { display: inline-block; padding: 5px 0; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--grey); text-decoration: none; white-space: nowrap; transition: color .15s; }
.jump a:hover { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) and (max-width: 1199px) { .jump ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; } } /* two even rows of three */
@media (max-width: 767px) { .jump ul { flex-direction: column; } } /* smaller screens: a plain list, one service to a line */

/* a link tile inside a grid */
.grid .tile-link .btn-link { padding: 8px 0 0; font-size: 14px; min-height: 0; }

/* bullets inside prose */
.bullets { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.bullets li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; color: var(--grey); font-size: 16px; line-height: 26px; }
.bullets li::before { content: ""; width: 6px; height: 2px; background: var(--burgundy); margin-top: 12px; }

/* entity box */
.entity { margin-top: 32px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 14.5px; color: var(--grey); line-height: 1.7; }
.entity b { display: block; color: var(--navy); font-weight: 600; letter-spacing: .02em; }

/* forms */
.form { display: grid; gap: 18px; padding: 28px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--navy); }
.field label .req { color: var(--burgundy); }
.field input, .field select { min-height: 46px; }
.field input, .field select, .field textarea { font: 400 15px/1.5 var(--font); color: var(--navy); background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; width: 100%; }
.field select { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230D1B2A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--burgundy); outline-offset: 0; border-color: var(--burgundy); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-error { font-size: 13px; line-height: 1.45; color: var(--burgundy); margin: 0; }
.field-error:empty { display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--burgundy); box-shadow: inset 0 0 0 1px var(--burgundy); }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--rag-green); } .form-status.err { color: var(--burgundy); }
.form .fine, .split .body .form p.fine { font-size: 12.5px; color: var(--grey-2); line-height: 1.6; }   /* also inside a split section's body text */

/* legal text */
.legal h2 { font-size: 19px; margin: 44px 0 12px; }
.legal p { font-size: 16px; line-height: 1.75; color: var(--grey); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0 0; list-style: none; display: grid; gap: 8px; }
.legal ul li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; color: var(--grey); line-height: 26px; }
.legal ul li::before { content: ""; width: 6px; height: 2px; background: var(--burgundy); margin-top: 12px; }
.legal address { font-style: normal; color: var(--navy); line-height: 1.7; margin-top: 12px; }

/* closing band and footer: the one dark area */
.dark { background: var(--navy); color: rgba(255, 255, 255, .72); }
.dark a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.dark a:hover { color: #fff; }
.closing { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 40px; padding-block: 88px 72px; position: relative; } /* the text gives way, so the buttons never drop to a line of their own on the right */
.closing::after { content: ""; position: absolute; bottom: 0; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); border-top: 1px solid var(--navy-line); }
.closing h2 { color: #fff; font-size: 32px; line-height: 1.2; }
.closing p { margin-top: 12px; font-size: 16px; max-width: 620px; }
.closing .btn-secondary { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.closing .btn-secondary:hover { box-shadow: inset 0 0 0 1px #fff; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; padding-block: 56px 32px; font-size: 14px; }
.foot .brand img { height: 30px; width: auto; }
.foot .lbl { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: rgba(255, 255, 255, .5); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot address { font-style: normal; display: grid; gap: 8px; }
.foot .strong { color: #fff; }
.bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 20px 32px; position: relative; font-size: 12px; color: rgba(255, 255, 255, .5); }
.bottom::before { content: ""; position: absolute; top: 0; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); border-top: 1px solid var(--navy-line); }

/* responsive */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split > .lead, .split > .body { max-width: 720px; }
  .split.end > .lead, .split.end > div:has(> .udrf-lockup) + .lead { padding-top: 0; }
  .hero .panel { max-width: 640px; }
  .service { grid-template-columns: 1fr; gap: 18px; padding-block: 48px; }
  .layers li { margin-left: calc(var(--i, 0) * 40px); grid-template-columns: 28px 180px minmax(0, 1fr); }
  .timeline.n6 { --n: 3; } .timeline.n4 { --n: 2; } .timeline.n7 { --n: 4; }
  .grid.cols3, .grid.cols4 { --cols: 2; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
  .closing { grid-template-columns: minmax(0, 1fr); } /* buttons below the text, on its left edge */
}
@media (max-width: 960px) {
  .nav-main { margin-left: 0; }
  .nav-toggle { display: inline-flex; margin-right: -8px; margin-left: auto; order: 3; } /* last in the bar, so the hidden menu's gap is not after it */
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 20px; background: var(--beige); border-bottom: 1px solid var(--line); box-shadow: 0 28px 40px -28px rgba(13, 27, 42, .45); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav-links a[aria-current] { box-shadow: none; color: var(--burgundy); }
  .nav-links .nav-menu-cta { display: block; padding-top: 20px; }
  .nav-links .nav-menu-cta .btn { display: inline-flex; padding: 12px 18px; border-bottom: 0; font-size: 15px; color: #fff; }
  .nav .nav-cta { display: none; }
  /* the page behind an open menu is dimmed; a tap on it closes the menu (site.js) */
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 30; background: rgba(13, 27, 42, .32); animation: scrim-in .15s ease both; }
}
@keyframes scrim-in { from { opacity: 0; } }
@media (max-width: 860px) {
  .rows a.row, .rows .row { grid-template-columns: minmax(0, 1fr) 24px; gap: 8px 16px; }
  .rows .row p { grid-column: 1; }
  .rows .row .icon { grid-row: 1; grid-column: 2; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .section { padding-block: 72px; }
  .hero { padding-block: 56px 72px; }
  .hero h1 { font-size: 36px; }
  .page-head { padding-block: 64px 48px; }
  .page-head h1 { font-size: 34px; }
  .h2, .closing h2 { font-size: 27px; }
  .timeline.n4, .timeline.n6, .timeline.n7, .grid.cols2, .grid.cols3, .grid.cols4 { --n: 1; --cols: 1; }
  .layers li { margin-left: calc(var(--i, 0) * 12px); min-height: 0; grid-template-columns: 28px minmax(0, 1fr); gap: 6px 12px; padding: 14px 16px; align-items: baseline; }
  .layers .desc { grid-column: 2; }
  .ticks { grid-template-columns: 1fr; }
  /* steps become one vertical rail: each dot beside its step, a line down to the next */
  .timeline { gap: 0; margin-top: 40px; }
  .timeline li, .timeline.compact li { padding: 0 0 26px 30px; }
  .timeline.compact li { padding-bottom: 14px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 7px; }
  .timeline li::after { left: 5px; right: auto; top: 21px; bottom: -4px; border-top: 0; border-left: 1px solid var(--line-strong); }
  .timeline li:last-child::after { display: none; }
  .timeline .k { display: inline-block; min-width: 26px; }
  .timeline h3, .timeline.compact h3 { display: inline; margin: 0; }
  .timeline p { margin-top: 6px; }
  .panel-hd span:not(.tag) { display: none; }
  .form .row2 { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: left; line-height: 1.3; }
  .form { padding: 20px; }
  .foot { grid-template-columns: 1fr; gap: 32px; }
  .drow { grid-template-columns: minmax(0, 1fr) 34px; grid-template-areas: "label n" "bar bar"; gap: 6px 10px; padding: 12px 20px; }
  .drow > :nth-child(1) { grid-area: label; } .drow > :nth-child(2) { grid-area: bar; } .drow > :nth-child(3) { grid-area: n; }
  .score { grid-template-columns: 1fr; gap: 12px; }
  .flow li span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } body.nav-open::after { animation: none; } }
/* UDRF product mark (signed off 12 Nov 2026; design/udrf-mark/) */
.udrf-lockup { display: block; height: 44px; width: auto; overflow: visible; font-family: var(--font); margin-bottom: 22px; }
.udrf-lockup.sm { height: 34px; margin-bottom: 16px; }
.udrf-mark { display: inline-block; height: 14px; width: auto; vertical-align: -2px; margin-right: 6px; }

/* UDRF quick check (/udrf/check/): five steps, an analysis moment, a details form, then the result */
.fine { font-size: 13px; color: var(--grey-2); line-height: 1.6; }
.page-head .fine { max-width: 700px; }
.qc { scroll-margin-top: 16px; } /* added to the page's 88px scroll-padding: each step lands 104px from the top */
.qc h2:focus { outline: none; }
.qc [hidden] { display: none !important; }
.qc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qc legend { padding: 0; font-size: 17px; line-height: 1.5; color: var(--navy); font-weight: 500; text-wrap: pretty; }
.qc-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.qc-opts label { position: relative; cursor: pointer; }
.qc-opts input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qc-opts span { display: inline-block; min-height: 24px; padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); font-size: 14.5px; color: var(--navy); transition: background-color .15s, border-color .15s, color .15s; }
.qc-opts label:hover span { border-color: var(--burgundy); }
.qc-opts input:checked + span { background: var(--burgundy); border-color: var(--burgundy); color: var(--white); }
.qc-opts input:focus-visible + span { outline: 2px solid var(--burgundy); outline-offset: 2px; }
/* progress: the five links, filled as each step is finished */
.qc-chain { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 760px; }
.qc-chain li { position: relative; padding-top: 24px; font-size: 12.5px; font-weight: 500; color: var(--grey-2); transition: color .25s; }
.qc-chain li::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 1px solid var(--line-strong); transition: border-color .25s; }
.qc-chain li:last-child::before { display: none; }
.qc-chain i { position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line-strong); transition: background-color .25s, box-shadow .25s; }
.qc-chain .now, .qc-chain .done { color: var(--navy); }
.qc-chain .now { font-weight: 600; }
.qc-chain .now i { box-shadow: inset 0 0 0 2px var(--burgundy); }
.qc-chain .done i { background: var(--burgundy); box-shadow: inset 0 0 0 2px var(--burgundy); }
.qc-chain .done::before { border-color: var(--burgundy); }
.qc:not(.is-live) .qc-chain, .qc:not(.is-live) .qc-nav { display: none; }
.qc:not(.is-live) .qc-step + .qc-step { margin-top: 56px; }
/* steps */
.qc-step, [data-qc-analysis] { max-width: 760px; }
.qc.is-live .qc-step:not([hidden]), .qc-stage:not([hidden]) { animation: qc-in .35s ease both; }
@keyframes qc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qc-step > h2, [data-qc-analysis] > .h3 { margin-top: 10px; font-size: 28px; line-height: 1.2; }
.qc-step > .muted, [data-qc-analysis] > .muted { margin-top: 8px; font-size: 17px; }
.qc-hint { margin-top: 6px; }
.qc-list { list-style: none; margin: 26px 0 0; padding: 0; }
.qc-list > li { padding: 24px 0; border-top: 1px solid var(--line-soft); }
.qc-list > li:last-child { border-bottom: 1px solid var(--line-soft); }
.qc-nav { margin-top: 28px; }
/* analysis: one line per comparison */
.qc-scan { list-style: none; margin: 26px 0 0; padding: 0; }
.qc-scan li { position: relative; padding: 15px 0 15px 30px; border-top: 1px solid var(--line-soft); font-size: 15.5px; line-height: 1.5; color: var(--grey-2); transition: color .3s; }
.qc-scan li:last-child { border-bottom: 1px solid var(--line-soft); }
.qc-scan li::before { content: ""; position: absolute; left: 1px; top: 21px; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); transition: background-color .3s, box-shadow .3s; }
.qc-scan .on, .qc-scan .done { color: var(--navy); }
.qc-scan .on::before { box-shadow: inset 0 0 0 2px var(--burgundy); animation: qc-pulse .52s ease-in-out; }
.qc-scan .done::before { background: var(--burgundy); box-shadow: inset 0 0 0 2px var(--burgundy); }
@keyframes qc-pulse { 50% { transform: scale(1.35); } }
/* details form */
.qc-gate { gap: 64px; align-items: start; }
.qc-gate .h2 { margin-top: 12px; }
.qc-gets { grid-template-columns: 1fr; margin-top: 24px; font-size: 15.5px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.55; color: var(--grey); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--burgundy); cursor: pointer; }
/* result */
[data-qc-result] > .h2 { margin-top: 12px; max-width: 820px; }
.qc-pattern-text { margin-top: 16px; max-width: 760px; }
.qc-panel { margin: 36px 0 0; max-width: 920px; }
.qc-links { list-style: none; margin: 0; padding: 28px 20px 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.qc-links li { display: grid; gap: 5px; align-content: start; justify-items: start; }
.qc-links i { display: block; position: relative; width: 100%; height: 6px; margin-bottom: 10px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.qc-links i::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: var(--seg); transform: scaleX(0); transform-origin: left; transition: transform .5s ease calc(var(--i) * .14s); }
.qc-links.in i::after { transform: none; }
.qc-links li.g { --seg: var(--rag-green); } .qc-links li.a { --seg: var(--rag-amber); } .qc-links li.r { --seg: var(--rag-red); }
.qc-links li.u i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--grey-2); }
.qc-links li.u i::after { display: none; }
.qc-links li.first i { overflow: visible; outline: 2px solid var(--burgundy); outline-offset: 3px; }
.qc-links .nm { font-size: 14.5px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.qc-links .wk { margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--burgundy); }
.qc-legend { margin-top: 0; padding: 13px 20px 15px; border-top: 1px solid var(--line-soft); }
.rag.u { --dot: transparent; } .rag.u::before { border: 1.5px solid var(--grey-2); box-sizing: border-box; }
.qc-note { margin-top: 12px; max-width: 920px; }
/* the three stages of a UDRF assessment (quick check page): three columns under thin rules, a large figure for each,
   and a burgundy line that lengthens with each stage to show the depth */
.stages { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; margin-top: 56px; }
.stages li { display: grid; align-content: start; }
.stages .k { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); }
.stages .depth { display: block; height: 2px; margin: 14px 0 26px; background: var(--line); }
.stages .depth i { display: block; height: 100%; width: calc(var(--w) * 100% / 3); background: var(--burgundy); }
.stages .fig { font-size: 15px; font-weight: 600; color: var(--navy); } /* the unit differs per stage (minutes, questions), so it carries weight */
.stages .fig b { display: block; margin-bottom: 4px; font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.stages h3 { margin-top: 22px; font-size: 19px; line-height: 1.3; }
.stages .desc { margin-top: 8px; font-size: 15.5px; line-height: 1.7; color: var(--grey); max-width: 42ch; }
.stages-after { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.7; color: var(--grey); }
.stages-after b { color: var(--navy); font-weight: 600; }
@media (max-width: 860px) {
  .stages { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .stages .fig b { font-size: 40px; }
}
.qc-sub { margin-top: 56px; }
.qc-conn { list-style: none; margin: 20px 0 0; padding: 0; }
.qc-conn li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; padding: 26px 0; border-top: 1px solid var(--line); }
.qc-conn li:last-child { border-bottom: 1px solid var(--line); }
.qc-conn h4 { margin-top: 8px; font-size: 19px; line-height: 1.35; }
.qc-conn p { font-size: 16px; line-height: 1.7; color: var(--grey); text-wrap: pretty; }
.qc-more { margin-top: 14px; }
.qc-more:empty { display: none; }
.qc-after { margin-top: 56px; gap: 64px; align-items: start; }
@media (max-width: 1080px) { .qc-gate, .qc-after { gap: 40px; } }
@media (max-width: 640px) {
  .qc-chain { margin-bottom: 36px; }
  .qc-chain li { font-size: 11.5px; }
  .qc-step > h2, [data-qc-analysis] > .h3 { font-size: 24px; }
  .qc-links { grid-template-columns: 1fr; gap: 0; padding: 4px 20px 6px; }
  .qc-links li { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .qc-links li:last-child { border-bottom: 0; }
  .qc-links i { margin: 0; }
  .qc-links .wk { grid-column: 2 / -1; margin: 0; }
  .qc-conn li { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .qc-sub, .qc-after { margin-top: 44px; }
}
@media (max-width: 400px) { .qc-chain li span { visibility: hidden; } .qc-chain li.now span { visibility: visible; white-space: nowrap; } .qc-chain li:last-child.now span { position: absolute; right: 0; } }
@media (prefers-reduced-motion: reduce) { .qc.is-live .qc-step, .qc-stage, .qc-scan .on::before { animation: none !important; } .qc-links i::after { transform: none; } }

/* Articles (/insights/<slug>/) and the Insights list */
.article { padding-block: 64px 104px; }
.article-head { max-width: 760px; }
.article-head .back { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; font-size: 14px; font-weight: 500; color: var(--grey); text-decoration: none; }
.article-head .back:hover { color: var(--navy); }
.article-head .back .icon { color: var(--burgundy); transform: rotate(180deg); }
.article-head .eyebrow { margin-top: 36px; }
.article-head h1 { font-size: 42px; line-height: 1.12; letter-spacing: -0.03em; margin: 16px 0 18px; }
.article-head .lead { font-size: 19px; line-height: 1.65; }
.byline { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--grey-2); }
.prose { max-width: 680px; margin-top: 44px; }
.prose > * + * { margin-top: 20px; }
.prose p { font-size: 17.5px; line-height: 1.8; color: var(--grey); }
.prose h2 { font-size: 24px; line-height: 1.3; margin-top: 52px; }
.prose > h2 + * { margin-top: 14px; }
.prose .bullets { margin-top: 18px; padding: 0; }
.prose .bullets li { font-size: 17px; line-height: 28px; }
.prose .bullets li::before { margin-top: 13px; }
.prose .bullets b { color: var(--navy); font-weight: 600; }
.prose .pull { margin: 44px 0; padding-left: 22px; border-left: 2px solid var(--burgundy); }
.prose .pull p { font-size: 22px; line-height: 1.45; font-weight: 500; letter-spacing: -0.015em; color: var(--navy); }
.prose .keyq { margin-top: 52px; padding: 28px 30px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.prose .keyq h2 { margin-top: 0; font-size: 19px; }
.posts .post { position: relative; }
.post h3 a { color: inherit; text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post h3 a:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 3px; border-radius: 2px; }
.post:hover h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--navy); }
.post .more .icon { color: var(--burgundy); transition: transform .15s; }
.post:hover .more .icon { transform: translateX(3px); }
.draft-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--burgundy-tint); color: var(--burgundy-deep); font-size: 11px; font-weight: 600; vertical-align: 1px; }
.draft-banner { background: var(--burgundy-tint); border-bottom: 1px solid var(--line); padding-block: 12px; font-size: 14px; line-height: 1.5; color: var(--burgundy-deep); }
@media (max-width: 640px) {
  .article { padding-block: 44px 72px; }
  .article-head h1 { font-size: 31px; }
  .article-head .lead { font-size: 17.5px; }
  .prose p { font-size: 16.5px; }
  .prose .bullets li { font-size: 16px; line-height: 26px; }
  .prose .bullets li::before { margin-top: 12px; }
  .prose h2 { font-size: 21px; margin-top: 44px; }
  .prose .pull p { font-size: 19px; }
  .prose .keyq { padding: 22px 20px 24px; }
}

@media print { .site-header, .closing .ctas, .page-head .ctas, .jump { display: none; } body { background: #fff; } }
@media print { [data-qc-chain], [data-qc-step], [data-qc-analysis], [data-qc-gate], .page-head .fine, #ways-to-work, [data-qc-print], .closing { display: none !important; } .qc-links i::after { transform: none; } }
