/* dap.solutions 2026. One stylesheet on the tokens in tokens.css.
   Lines, not shadows. Square and quiet. One red line per view. Dark first.
   No colour values here: every colour is a token. */

/* Fonts: local files only. */
@font-face { font-family: "Raleway"; src: url("/assets/fonts/Raleway-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/fonts/Raleway-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JBMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JBMono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
html.menu-open { overflow: hidden; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
[data-theme] { background-color: var(--bg); color: var(--ink); }
main { display: block; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
strong { font-weight: 600; color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; padding: 12px 16px; background: var(--dap-warm-white); color: var(--dap-carbon); font-weight: 600; }
.skip-link:focus { top: 16px; }

/* Type */
.disp { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.01em; }
.meta { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; }
.label { font-family: var(--font-sans); font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: 0.18em; text-transform: uppercase; }
.data { font-family: var(--font-mono); font-size: 15px; line-height: 20px; letter-spacing: 0.02em; }
.muted, .section-label { color: var(--ink-muted); }

/* Layout */
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: 80px; padding-right: 80px; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.col-left { grid-column: 1 / span 6; }
.col-right { grid-column: 8 / span 5; }
.col-wide { grid-column: 1 / span 7; }
.col-narrow { grid-column: 8 / span 5; }

/* Lines */
.redline { width: 64px; height: 3px; background: var(--signal); margin-top: 36px; }

/* Buttons and links. Buttons never invert: a faint wash and a brighter border; the label keeps its colour. */
.btn { display: inline-flex; align-items: center; gap: 22px; border: 1px solid var(--ink); color: var(--ink); background: transparent; transition: background-color 0.3s ease, border-color 0.3s ease; }
.btn:hover { background-color: var(--wash); border-color: var(--ink-strong); }
.btn-large { height: 58px; padding: 0 28px; align-self: flex-start; }
.tlink { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid currentColor; transition: opacity 0.3s ease; align-self: flex-start; justify-self: start; }
.tlink:hover { opacity: 0.7; }
.link-row { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 40px; }

/* Chips: Live, Pilot, Building, Coming soon. */
.chip { display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid var(--ink); font-size: 11px; line-height: 14px; white-space: nowrap; border-radius: var(--radius-small); }
.chip-dashed { border-style: dashed; border-color: var(--ink-muted); color: var(--ink-muted); }
.chip-filled { background: var(--ink); color: var(--bg); }
.chip-photo { border-color: var(--photo-chip); color: var(--dap-warm-white); padding: 7px 11px; }

/* Header. Carbon on every page; laid over the photograph on door pages. */
.site-header { position: relative; z-index: 20; background: var(--dap-carbon); border-bottom: 1px solid var(--hairline); }
.has-hero .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom-color: var(--photo-line-16); }
.header-inner { height: 92px; display: flex; align-items: center; gap: 40px; }
.site-brand { display: flex; align-items: center; flex: none; padding: 6px 0; }
.site-brand .brand-full { width: 212px; height: auto; }
.site-brand .brand-mark { display: none; width: 96px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; line-height: 20px; padding: 10px 0; color: var(--ink); border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease; }
.nav-link:hover { color: var(--ink-strong); }
.nav-link[aria-current="page"] { border-bottom-color: var(--ink); }
.header-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--dap-warm-white); color: var(--dap-warm-white); flex: none; transition: background-color 0.3s ease, border-color 0.3s ease; }
.header-cta:hover { background-color: var(--wash); border-color: var(--dap-white); }
.menu-btn { margin-left: auto; display: none; align-items: center; height: 44px; padding: 0 18px; background: transparent; border: 1px solid var(--photo-control); color: var(--dap-warm-white); }
.menu-btn:hover { background-color: var(--wash); }

/* Data solutions dropdown: opens on hover and on keyboard focus. */
.dd { position: relative; }
.dd-caret { transition: transform 0.2s ease; }
.dd-panel { display: none; position: absolute; top: 100%; left: -22px; padding-top: 20px; z-index: 30; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { display: block; }
.dd.dd-closed .dd-panel { display: none; }
.dd:hover .dd-caret, .dd:focus-within .dd-caret { transform: rotate(180deg); }
.dd-box { width: 380px; background: var(--dap-carbon); border: 1px solid var(--hairline); }
.dd-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; transition: background-color 0.2s ease; }
.dd-row + .dd-row { border-top: 1px solid var(--hairline); }
.dd-row:hover { background-color: var(--wash-soft); }
.dd-name { font-size: 16px; line-height: 22px; font-weight: 500; }
.dd-chip { font-size: 11px; color: var(--ink-muted); }
.dd-all { padding: 18px 22px; }
.dd-row.dd-all { border-top-color: var(--rule); }

/* Phone menu */
.menu-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 20px 32px; border: 0; background: var(--dap-carbon); color: var(--dap-warm-white); overflow-y: auto; }
.menu-dialog[open] { display: flex; flex-direction: column; }
.menu-dialog::backdrop { background: var(--dap-carbon); }
.menu-head { height: 92px; flex: none; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hairline); }
.menu-head img { width: 184px; height: auto; }
.menu-close { height: 44px; padding: 0 18px; background: transparent; border: 1px solid var(--photo-control); color: var(--dap-warm-white); }
.menu-nav { display: flex; flex-direction: column; margin-top: 24px; }
.menu-link { font-size: 40px; line-height: 48px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.menu-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.menu-link-group { border-bottom: 0; padding-bottom: 10px; }
.menu-sub { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 4px 0 20px; border-bottom: 1px solid var(--hairline); }
.menu-sub-link { color: var(--ink-muted); padding: 6px 0; }
.menu-cta { margin-top: 40px; justify-content: space-between; height: 56px; padding: 0 22px; border-color: var(--dap-warm-white); color: var(--dap-warm-white); }
.menu-fallback { display: none; background-color: transparent; }
.menu-fallback > summary { list-style: none; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid var(--photo-control); color: var(--dap-warm-white); cursor: pointer; }
.menu-fallback > summary::-webkit-details-marker { display: none; }
.menu-fallback-panel { padding: 8px 20px 32px; background: var(--dap-carbon); }

/* Footer */
.site-footer { background: var(--dap-carbon); border-top: 1px solid var(--hairline); padding: 104px 0 40px; }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
.footer-brand { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 28px; }
.footer-brand img { width: 176px; height: auto; }
.footer-line { font-size: 26px; line-height: 34px; max-width: 420px; }
.footer-nav { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-col .meta { color: var(--ink-muted); }
.footer-col a { font-size: 15px; line-height: 22px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--ink-strong); }
.footer-email { overflow-wrap: anywhere; user-select: all; }
.footer-place { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.footer-legal { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer-legal p { font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* Motion: the photograph settles, the headline rises. Both off under reduced motion. */
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes settle-soft { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0.2; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.settle { animation: settle 3.4s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.settle-soft { animation: settle-soft 3.4s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
.rise { animation: rise 1.3s 0.25s cubic-bezier(0.16, 0.84, 0.24, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .settle, .settle-soft, .rise { animation: none; }
  .btn, .tlink, .nav-link, .header-cta, .dd-row, .dd-caret { transition: none; }
}

/* Heroes: a full-bleed photograph, a flat scrim, the h1 and its redline. */
.hero { position: relative; overflow: hidden; background: var(--dap-carbon); color: var(--dap-warm-white); }
.hero-img, .photo-band-img, .split-photo, .card-plane-img, .tile-plane-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none; }
.scrim-12 { background-color: var(--scrim-12); }
.scrim-16 { background-color: var(--scrim-16); }
.scrim-18 { background-color: var(--scrim-18); }
.scrim-26 { background-color: var(--scrim-26); }
.scrim-34 { background-color: var(--scrim-34); }
.hero-meta { color: var(--photo-ink-80); }
/* Where the photograph is bright behind the headline, a flat carbon veil holds the text column.
   One flat colour with a hairline edge: never a gradient. */
.hero-veil { position: absolute; top: 0; bottom: 0; left: 0; width: calc(max(80px, (100vw - 1440px) / 2 + 80px) + 820px); background-color: var(--scrim-34); border-right: 1px solid var(--photo-line-10); pointer-events: none; }
.page-title { font-size: clamp(46px, 5.4vw, 80px); line-height: 1.02; margin-top: 24px; }
.hero-lede { margin-top: 28px; max-width: 600px; font-size: 19px; line-height: 30px; color: var(--photo-ink-88); }
.pos-terrace { object-position: 64% 50%; }
.pos-portal { object-position: 40% 50%; }
.pos-passage { object-position: 60% 30%; }
.pos-plane { object-position: 50% 58%; }
.pos-path { object-position: 60% 50%; }
.pos-poster { object-position: 70% 50%; }

/* Home hero */
.hero-home { height: clamp(660px, 63vw, 940px); }
.hero-home-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 92px; }
.hero-home-copy { max-width: 780px; margin-top: auto; margin-bottom: auto; padding-top: 32px; }
.hero-home-title { margin-top: 24px; font-size: clamp(46px, 5.7vw, 86px); line-height: 1.04; color: var(--dap-warm-white); }
.hero-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--photo-line-18); padding: 22px 0 26px; }
.strip-links { display: flex; gap: 32px; flex-wrap: wrap; color: var(--photo-ink-72); }
.strip-links a { transition: color 0.2s ease; }
.strip-links a:hover { color: var(--dap-white); }
.strip-scroll { color: var(--photo-ink-72); }

/* What we do hero: text in a solid carbon panel, bottom left. */
.hero-panel { height: clamp(640px, 56vw, 820px); }
.hero-panel-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 92px; padding-bottom: 88px; }
.hero-panel-box { max-width: 640px; background-color: var(--panel-carbon-82); border: 1px solid var(--photo-line-10); padding: 48px 48px 52px; }
.hero-panel-box .page-title { margin-top: 24px; }
.hero-panel-box .redline { margin-top: 32px; }

/* How we do it hero: text upper left over a flat scrim. */
.hero-top { height: clamp(660px, 58vw, 840px); }
.hero-top-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 196px; }
.hero-top-copy { max-width: 760px; }
.hero-top-copy .page-title { font-size: clamp(46px, 5.6vw, 84px); }
.hero-top-copy .redline { margin-top: 32px; }

/* Data hero: the Ledger plane, text upper left, the Ledger strip along the bottom. */
.hero-data { height: clamp(700px, 62vw, 900px); }
.hero-data-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: 92px; }
.hero-data-copy { max-width: 860px; padding-top: 88px; }
.hero-data-copy .meta { color: var(--ink-muted); }
.page-title-data { font-size: clamp(42px, 5vw, 76px); line-height: 1.05; }
.hero-ledger-strip { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; border-top: 1px solid var(--photo-line-18); padding: 24px 0 28px; background-color: var(--panel-carbon-72); }
.strip-line { font-size: 24px; line-height: 30px; }
.strip-meta { margin-left: auto; color: var(--ink-muted); }
.strip-link { padding-bottom: 6px; }

/* Research hero: text in a full-width carbon bar along the bottom. */
.hero-bar { height: clamp(640px, 56vw, 820px); }
.hero-bar-panel { position: absolute; left: 0; right: 0; bottom: 0; background-color: var(--panel-carbon-86); border-top: 1px solid var(--photo-line-12); }
.hero-bar-inner { padding-top: 48px; padding-bottom: 56px; }
.hero-bar-inner > .meta { color: var(--ink-muted); }
.hero-bar-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-top: 22px; }
.page-title-research { margin-top: 0; font-size: clamp(42px, 4.8vw, 72px); line-height: 1.04; }
.hero-bar-grid .redline { margin-top: 30px; }
.hero-bar-grid .hero-lede { margin-top: 0; font-size: 18px; line-height: 29px; }

/* About hero: text left, vertically centred. */
.hero-centre { height: clamp(640px, 56vw, 820px); }
.hero-centre-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 92px; }
.hero-centre-copy { max-width: 700px; }
.hero-centre-copy .redline { margin-top: 32px; }

/* Bands */
.band { padding: 152px 0; }
.band-tight { padding: 96px 0 120px; }
.section-title { margin-top: 28px; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.06; }
.section-title-sm { font-size: clamp(36px, 3.8vw, 56px); line-height: 1.08; }
.section-title-lg { font-size: clamp(38px, 4.4vw, 64px); line-height: 1.08; }
.section-title-xl { font-size: clamp(46px, 5.4vw, 78px); line-height: 1.02; }
.section-title-lead { font-size: clamp(44px, 5vw, 72px); line-height: 1.04; }
.section-lede { margin-top: 28px; max-width: 560px; font-size: 20px; line-height: 32px; color: var(--ink-muted); }
.section-lede-narrow { max-width: 680px; font-size: 19px; line-height: 30px; }
.band-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.notes { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 48px; }
.notes p { font-size: 18px; line-height: 29px; color: var(--ink-muted); }
.block-title { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.note { margin-top: 20px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }

/* The firm (home) */
.band-firm { padding: 152px 0 144px; }
.firm-grid { row-gap: 56px; align-items: start; }
.firm-copy { grid-column: 1 / span 7; }
.firm-statement { margin-top: 32px; font-size: clamp(30px, 3.1vw, 46px); line-height: 1.28; }
.firm-statement-sm { margin-top: 28px; font-size: clamp(30px, 3vw, 44px); }
.facts-stack { grid-column: 9 / span 4; border-top: 1px solid var(--hairline); margin-top: 48px; }
.facts > div { padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.facts dt { color: var(--ink-muted); }
.facts dd { margin-top: 8px; font-size: 18px; line-height: 26px; }
.facts-inline { border-top: 1px solid var(--hairline); }
.facts-inline > div { padding: 18px 0; display: flex; justify-content: space-between; gap: 24px; }
.facts-inline dd { margin-top: 0; text-align: right; }
.answer-head { row-gap: 32px; align-items: end; }
.answer-head .section-lede { margin-top: 0; max-width: none; }

/* A photograph band (the problem) */
.photo-band { position: relative; overflow: hidden; background: var(--dap-carbon); color: var(--dap-warm-white); }
.pos-passage-home { object-position: 55% 38%; }
.photo-band-inner { position: relative; min-height: 900px; padding-top: 136px; padding-bottom: 80px; display: flex; flex-direction: column; justify-content: space-between; gap: 96px; }
.problem-head { max-width: 760px; }
.problem-head .section-label { color: var(--photo-ink-80); }
.problem-card { background-color: var(--panel-graphite-94); border: 1px solid var(--photo-line-10); padding: 32px 32px 40px; min-height: 236px; }
.problem-text { margin-top: 20px; font-size: 20px; line-height: 30px; }

/* Standard → Compiled → Custom */
.flow { display: flex; align-items: stretch; margin-top: 96px; }
.flow-box { flex: 1 1 0; min-width: 0; background: var(--surface); border: 1px solid var(--hairline); padding: 40px 36px 48px; min-height: 280px; display: flex; flex-direction: column; }
.flow-box-inverted { background: var(--bg); border-color: var(--bg); }
.flow-title { margin-top: auto; padding-top: 32px; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; }
.flow-line { margin-top: 14px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.flow-conn { flex: 0 0 72px; display: flex; align-items: center; justify-content: center; color: var(--rule); }
.flow-conn .conn { display: flex; }

/* The method (home): split panel, then four steps on hairlines */
.split { display: flex; align-items: stretch; min-height: 640px; }
.split-text { flex: 0 0 42%; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 120px 64px 96px max(80px, calc((100vw - 1440px) / 2 + 80px)); }
.split-text .section-title { font-size: clamp(38px, 4vw, 58px); line-height: 1.08; }
.split-lede { margin-top: 28px; font-size: 19px; line-height: 30px; color: var(--ink-muted); max-width: 520px; }
.split-text .tlink { margin-top: 40px; }
.split-img { flex: 1 1 auto; position: relative; min-height: 640px; overflow: hidden; }
.pos-portal-split { object-position: 30% 50%; }
.method-steps-wrap { padding-top: 24px; padding-bottom: 152px; }
.method-steps li { border-top: 1px solid var(--rule); padding: 28px 8px 0 0; }
.method-step-title { margin-top: 18px; font-size: 22px; line-height: 28px; font-weight: 600; }
.method-step-text { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }

/* Portfolio */
.portfolio-grid { margin-top: 72px; row-gap: 16px; }
.col-feature { grid-column: 1 / span 7; }
.col-stack { grid-column: 8 / span 5; }
.portfolio-stack { display: flex; flex-direction: column; gap: 16px; }
.ledger-feature { position: relative; display: block; min-height: 560px; height: 100%; overflow: hidden; background: var(--dap-carbon); color: var(--dap-warm-white); }
.plane-feature { object-position: 46% 62%; }
.ledger-feature-inner { position: relative; height: 100%; min-height: 560px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
/* The copy sits on a flat carbon panel so the Ledger plane's labels and horizon never run through it. */
.ledger-feature-copy { max-width: 560px; background-color: var(--panel-carbon-86); padding: 28px 28px 30px; margin: 0 -28px -12px; }
.ledger-feature-title { font-size: clamp(36px, 3.4vw, 52px); line-height: 1.08; }
.ledger-feature-body { margin-top: 20px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card { flex: 1 1 0; background: var(--surface); border: 1px solid var(--hairline); padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.card-dashed { background: transparent; border-style: dashed; border-color: var(--rule); }
.card-link { transition: border-color 0.3s ease; }
.card-link:hover { border-color: var(--rule); }
.card-title { font-size: 24px; line-height: 30px; font-weight: 600; }
.card-body { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.card-foot { margin-top: auto; color: var(--ink-muted); font-size: 11px; }

/* The offer: four rising steps */
.steps { display: flex; align-items: flex-end; gap: 16px; margin-top: 88px; }
.step { flex: 1 1 0; min-width: 0; border: 1px solid var(--hairline); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step.s2, .step.s3 { background: var(--surface); }
.step.s3 { border-color: var(--rule); }
.step.s4 { border-color: var(--bg); }
.s1 { height: 300px; } .s2 { height: 360px; } .s3 { height: 420px; } .s4 { height: 480px; }
.step-title { margin-top: auto; font-size: 22px; line-height: 28px; font-weight: 600; }
.step-line { font-size: 18px; line-height: 27px; color: var(--ink-muted); }
.step .tlink { margin-top: 8px; padding-bottom: 6px; }

/* Closing: the moving cantilever film on the home page, a graphite band elsewhere. */
.film-band { position: relative; height: clamp(620px, 54vw, 800px); overflow: hidden; background: var(--dap-carbon); color: var(--dap-warm-white); }
.film { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; }
.film-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.closing-title { max-width: 880px; font-size: clamp(40px, 4.8vw, 70px); line-height: 1.06; }
.closing-sub { margin-top: 32px; max-width: 560px; font-size: 20px; line-height: 31px; color: var(--photo-ink-88); }
.film-inner .btn { margin-top: 44px; border-color: var(--dap-warm-white); color: var(--dap-warm-white); }
.film-toggle { position: absolute; right: 24px; bottom: 24px; height: 40px; padding: 0 16px; background-color: var(--panel-carbon-70); border: 1px solid var(--photo-line-18); color: var(--dap-warm-white); }
.film-toggle:hover { background-color: var(--wash); border-color: var(--dap-warm-white); }
.closing-band { background: var(--dap-graphite); color: var(--dap-warm-white); padding: 112px 0; }
.closing-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing-band-line { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; max-width: 760px; }
.closing-band .btn { border-color: var(--dap-warm-white); color: var(--dap-warm-white); }

/* What we do: the platform */
.platform-grid { row-gap: 72px; align-items: center; }
.platform-grid .col-wide { grid-column: 1 / span 6; }
.platform-grid .col-narrow { grid-column: 7 / span 6; }
.platform-title { margin-top: 28px; font-size: clamp(52px, 6vw, 92px); line-height: 1; }
.platform-title a { border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.platform-title a:hover { border-bottom-color: currentColor; }
.platform-statement { margin-top: 36px; font-weight: 400; font-size: clamp(22px, 2vw, 28px); line-height: 1.4; max-width: 560px; }
.platform-body { margin-top: 24px; font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 540px; }
.layers { display: flex; flex-direction: column; }
.layer-row { display: grid; gap: 10px; }
.layer-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layer-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layer { padding: 26px 12px; text-align: center; font-weight: 600; font-size: 18px; line-height: 24px; border: 1px solid var(--hairline); }
.layer-top { background: var(--surface); }
.layer-base { background: var(--bg); }
.layer-ontology { padding: 30px 24px; }
.layer-name { font-size: 22px; line-height: 28px; }
.layer-note { margin-top: 8px; font-size: 18px; line-height: 26px; font-weight: 400; color: var(--ink-muted); }
.layer-stem { height: 44px; display: flex; justify-content: center; }
.layer-stem::before { content: ""; width: 1px; background: var(--rule); }

/* What we do: portfolio of four and the list of all systems */
.portfolio-four { margin-top: 64px; }
.portfolio-four .card { min-height: 300px; padding: 26px; }
.portfolio-four .card-title { font-size: 22px; line-height: 28px; }
.ledger-feature-compact { min-height: 300px; }
.plane-feature-sm { object-position: 44% 70%; }
.ledger-feature-compact .ledger-feature-inner { min-height: 300px; padding: 26px; gap: 24px; }
.ledger-feature-compact .card-title { font-size: 22px; line-height: 28px; }
.ledger-feature-compact .ledger-feature-body { margin-top: 0; background-color: var(--panel-carbon-70); }
.systems-head { margin-top: 120px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 20px; }
.systems-title { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; }
.systems-head .tlink { padding-bottom: 4px; }
.sys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.sys-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 20px 12px 20px 0; border-bottom: 1px solid var(--hairline); height: 100%; transition: background-color 0.25s ease; }
.sys-row:hover { background-color: var(--surface); }
.sys-name { font-weight: 600; font-size: 18px; line-height: 24px; }
.sys-cat { color: var(--ink-muted); font-size: 11px; padding-top: 4px; text-align: right; }
.sys-line { grid-column: 1 / -1; font-size: 18px; line-height: 26px; color: var(--ink-muted); }
.serve-tiles { margin-top: 72px; }
.serve-tiles li { background: var(--surface); border: 1px solid var(--hairline); padding: 34px 30px; font-size: 28px; line-height: 34px; }

/* How we do it */
.band-method { padding: 144px 0 136px; }
.step-rows { margin-top: 72px; border-top: 1px solid var(--rule); }
.step-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: baseline; padding: 36px 0; border-bottom: 1px solid var(--hairline); }
.step-num { font-size: 48px; line-height: 1; color: var(--rule); }
.step-row-title { font-size: 26px; line-height: 32px; font-weight: 600; }
.step-row-text { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.rule-rows { margin-top: 72px; border-top: 1px solid var(--rule); }
.rule-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.rule-title { font-size: 21px; line-height: 28px; font-weight: 600; }
.rule-text { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.oversight-grid { margin-top: 72px; row-gap: 72px; }
.col-gates { grid-column: 1 / span 5; }
.col-models { grid-column: 7 / span 6; }
.gates { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.gate { background: var(--surface); border: 1px solid var(--hairline); padding: 22px 24px; }
.gate-strong { border-color: var(--rule); }
.gate-text { margin-top: 10px; font-size: 18px; line-height: 26px; }
.block-lede { margin-top: 14px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.model-list { margin-top: 24px; border-top: 1px solid var(--hairline); }
.model-list li { padding: 20px 0; border-bottom: 1px solid var(--hairline); font-size: 20px; line-height: 28px; }
.sh4pe-card { margin-top: 28px; background: var(--surface); border: 1px solid var(--hairline); padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.sh4pe-card .card-title { font-size: 22px; line-height: 28px; }
.sh4pe-line { font-size: 18px; line-height: 26px; }
.engage-cards { margin-top: 72px; }
.engage-card { background: var(--surface); border: 1px solid var(--hairline); padding: 30px 28px 36px; min-height: 260px; }
.engage-card-inverted { background: var(--bg); border-color: var(--bg); }
.engage-title { margin-top: 22px; font-size: 24px; line-height: 30px; font-weight: 600; }
.engage-text { margin-top: 12px; font-size: 18px; line-height: 27px; color: var(--ink-muted); }
.loop { display: flex; align-items: stretch; margin-top: 72px; }
.loop-box { flex: 1 1 0; min-width: 0; border: 1px solid var(--hairline); padding: 30px 20px; text-align: center; font-weight: 600; font-size: 19px; line-height: 26px; }
.loop-box-inverted { border-color: var(--bg); }
.loop-arrow { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; color: var(--rule); }
.speed-grid { margin-top: 112px; row-gap: 40px; align-items: end; }
.speed-line { font-size: clamp(56px, 7vw, 108px); line-height: 1; }
.speed-sub { margin-top: 18px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.evidence-card { background: var(--surface); border: 1px solid var(--hairline); padding: 30px; }
.evidence-text { margin-top: 14px; font-size: 18px; line-height: 28px; }

/* The instrument frame */
.band-instrument { padding: 0 0 144px; }
.instrument-frame { border: 1px solid var(--hairline); background: var(--bg); }
.instrument-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.instrument-bar h2 { color: var(--ink); }
.instrument-bar .scene-note { color: var(--ink-muted); }
.instrument-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.instrument-main { position: relative; min-width: 0; }
.reading-panel { border-left: 1px solid var(--hairline); padding: 32px 28px; display: flex; flex-direction: column; gap: 28px; }
.reader-content .eyebrow { color: var(--ink-muted); }
.reader-content h3 { margin-top: 18px; font-family: var(--font-display); font-weight: 300; font-size: 32px; line-height: 38px; letter-spacing: -0.01em; }
.reader-intro { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.reader-links { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.reader-content details { margin-top: 24px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.reader-content summary { cursor: pointer; font-size: 15px; line-height: 22px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.reader-content summary::-webkit-details-marker { display: none; }
.reader-content details p { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.reader-content details .meta { display: block; margin-top: 14px; color: var(--ink-muted); }
.reader-content blockquote { margin-top: 10px; padding-left: 16px; border-left: 1px solid var(--rule); font-size: 17px; line-height: 26px; }
.reader-content .route-caption { margin-top: 18px; color: var(--ink-muted); }
.reader-content .demo-label { margin-top: 18px; color: var(--ink-muted); }
.reader-content > .tlink { margin-top: 20px; }
.assembly-inset { margin-top: auto; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 6px; align-items: center; padding-top: 20px; border-top: 1px solid var(--hairline); }
.assembly-inset .scene-mini { grid-row: 1 / span 2; width: 96px; height: 72px; position: relative; }
.assembly-caption { font-size: 15px; line-height: 20px; font-weight: 500; }
.assembly-inset .tlink { padding-bottom: 4px; }
.scene { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 420px; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-mini { aspect-ratio: auto; min-height: 0; }
.scene-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.scene[data-renderer="fallback"] .scene-fallback { display: flex; }
.scene[data-renderer="fallback"] canvas { display: none; }
.fallback-stack { display: flex; flex-direction: column; gap: 8px; width: min(320px, 70%); }
.fallback-stack span { display: block; padding: 14px 16px; border: 1px solid var(--rule); font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); background: var(--bg); }
.scene-mini .fallback-stack { gap: 2px; width: 70%; }
.scene-mini .fallback-stack span { padding: 3px; font-size: 0; line-height: 0; }
.scene-labels { position: absolute; inset: 0; pointer-events: none; }
.layer-label { position: absolute; pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); padding: 6px 8px; background: var(--bg); border: 1px solid var(--hairline); transition: color 0.2s ease, border-color 0.2s ease; }
.layer-label:hover, .layer-label.selected { color: var(--ink); border-color: var(--rule); }
.layer-label .leader { width: 24px; height: 1px; background: var(--rule); }
.flow-label { position: absolute; left: 24px; top: 24px; padding: 6px 8px; background: var(--bg); border: 1px solid var(--hairline); font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
/* Labels follow the model; they are placed by the scene script and step aside without it. */
.scene:not([data-renderer="webgl"]) .scene-labels, .scene:not([data-renderer="webgl"]) .flow-label { display: none; }
html:not(.js) .scene-fallback { display: flex; }
.instrument-footer { display: flex; align-items: stretch; border-top: 1px solid var(--hairline); }
.chapter-rail { flex: 1 1 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 24px; }
.chapter-rail a { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--hairline); padding-top: 14px; color: var(--ink-muted); transition: color 0.2s ease, border-color 0.2s ease; }
.chapter-rail a .meta { color: var(--ink-muted); }
.chapter-name { font-size: 16px; line-height: 22px; }
.chapter-rail a:hover { color: var(--ink); }
.chapter-rail a[aria-current="step"] { border-top-color: var(--ink); color: var(--ink); }
.next-chapter { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 24px; border-left: 1px solid var(--hairline); white-space: nowrap; transition: background-color 0.2s ease; }
.next-chapter:hover { background-color: var(--wash-soft); }
.no-script article { padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.no-script h3 { font-size: 24px; line-height: 30px; font-weight: 600; }
.no-script p { margin-top: 12px; color: var(--ink-muted); }

/* The decision example */
.operation-section { padding: 0 0 152px; }
.operation-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--hairline); padding: 0; }
.wrap.operation-grid { width: calc(100% - 160px); max-width: 1280px; }
.operation-visual { padding: 40px 32px 32px; border-right: 1px solid var(--hairline); }
.operation-visual .section-title { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.1; margin-top: 20px; }
.operation-visual .section-lede { margin-top: 16px; font-size: 18px; line-height: 28px; }
.operation-visual .scene { margin-top: 28px; aspect-ratio: 4 / 3; min-height: 320px; }
.demo-body { padding: 40px 32px; display: flex; flex-direction: column; gap: 24px; }
.demo-label { color: var(--ink-muted); }
.example-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; }
.example-controls label { grid-column: 1 / -1; color: var(--ink-muted); }
.example-controls select { height: 48px; padding: 0 14px; background: var(--bg); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius-small); font-size: 16px; }
.replay { height: 48px; padding: 0 18px; background: transparent; border: 1px solid var(--ink); color: var(--ink); transition: background-color 0.2s ease; }
.replay:hover { background-color: var(--wash); }
.operation-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.operation-steps button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; background: transparent; border: 0; border-top: 1px solid var(--hairline); color: var(--ink-muted); font-size: 15px; line-height: 20px; }
.operation-steps button .meta { color: inherit; }
.operation-steps button[aria-pressed="true"] { border-top-color: var(--ink); color: var(--ink); }
.operation-result { min-height: 240px; }
.operation-result .eyebrow { color: var(--ink-muted); }
.operation-result h3 { margin-top: 14px; font-size: 26px; line-height: 32px; font-weight: 600; }
.operation-result p { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.operation-result p.route-caption { color: var(--ink-muted); font-size: 12px; line-height: 18px; margin-top: 18px; }
.evidence-record { margin-top: 18px; border-top: 1px solid var(--hairline); }
.evidence-record > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.evidence-record dt { font-family: var(--font-mono); font-size: 12px; line-height: 18px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.evidence-record dd { font-family: var(--font-mono); font-size: 14px; line-height: 18px; text-align: right; }
.operation-next { background: transparent; border: 0; border-bottom: 1px solid currentColor; color: var(--ink); padding: 0 0 8px; }

/* Data solutions tiles */
.tiles { margin-top: 72px; }
.tile { background: var(--surface); border: 1px solid var(--hairline); display: flex; flex-direction: column; min-height: 400px; }
.tile-dashed { background: transparent; border-style: dashed; border-color: var(--rule); }
.tile-link { display: flex; flex-direction: column; flex: 1 1 auto; border: 1px solid transparent; transition: border-color 0.3s ease; }
.tile-link:hover { border-color: var(--rule); }
.tile-band { height: 132px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 18px 22px; flex: none; }
.tile-band .meta { font-size: 11px; color: var(--ink-muted); position: relative; }
.tile-band-plane { background: var(--dap-carbon); padding: 0; }
.tile-band-graphite { background: var(--dap-graphite); }
.tile-band-carbon { background: var(--dap-carbon); }
.tile-band-dashed { background: transparent; border-bottom: 1px dashed var(--rule); }
.plane-a { object-position: 40% 70%; }
.plane-b { object-position: 62% 34%; }
.tile-body { padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
.tile-title { font-size: 24px; line-height: 30px; font-weight: 600; }
.tile-line { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.tile-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hairline); color: var(--ink-muted); font-size: 11px; }
.tile-foot-live { color: var(--ink); }
.ledger-proof { margin-top: 40px; display: flex; gap: 32px; flex-wrap: wrap; }
.bw-grid { row-gap: 64px; align-items: start; }
.bw-title { margin-top: 28px; font-size: clamp(48px, 5.6vw, 84px); line-height: 1; }
.bw-line { margin-top: 32px; max-width: 600px; font-size: 20px; line-height: 32px; color: var(--ink-muted); }
.bw-grid .btn { margin-top: 44px; }
.bw-side { display: flex; flex-direction: column; gap: 16px; margin-top: 44px; }
.jurisdictions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.jurisdictions li { background: var(--bg); padding: 22px 20px; }
.bw-side .evidence-card { padding: 28px; }

/* Research */
.paper-library .band-head-row { align-items: flex-end; }
.library-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.library-controls { display: grid; grid-template-columns: auto; justify-items: end; gap: 10px; }
.library-controls label { color: var(--ink-muted); }
.library-controls input { width: min(420px, 80vw); height: 48px; padding: 0 14px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: var(--radius-small); font-size: 16px; }
.library-controls input::placeholder { color: var(--ink-muted); opacity: 1; }
.paper-filters, .system-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.paper-filters button, .system-filters button { height: 36px; padding: 0 14px; background: transparent; border: 1px solid var(--hairline); color: var(--ink); font-size: 14px; line-height: 20px; border-radius: 0; transition: border-color 0.2s ease, background-color 0.2s ease; }
.paper-filters button:hover, .system-filters button:hover { border-color: var(--rule); background-color: var(--rr-wash); }
.paper-filters button[aria-pressed="true"], .system-filters button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.library-count { color: var(--ink-muted); }
.paper-table { width: 100%; margin-top: 64px; border-collapse: collapse; }
.paper-table th { text-align: left; padding: 0 24px 16px 0; border-bottom: 1px solid var(--rule); color: var(--ink-muted); font-weight: 400; }
.paper-table td { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--hairline); vertical-align: baseline; }
.paper-table th:last-child, .paper-table td:last-child { padding-right: 0; text-align: right; }
.paper-name { width: 34%; font-weight: 600; font-size: 20px; line-height: 27px; }
.paper-name a { transition: opacity 0.2s ease; }
.paper-name a:hover { opacity: 0.7; }
.paper-ext { font-weight: 400; color: var(--ink-muted); }
.paper-sets { font-size: 18px; line-height: 27px; color: var(--ink-muted); }
.paper-id { width: 160px; white-space: nowrap; }
.no-papers { margin-top: 32px; color: var(--ink-muted); }
.reading-views { margin-top: 96px; }
.reading-views-title { margin-top: 20px; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.01em; }
.reading-list { margin-top: 32px; border-top: 1px solid var(--rule); }
.reading-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--hairline); }
.reading-title { font-weight: 600; font-size: 21px; line-height: 28px; transition: opacity 0.2s ease; }
.reading-title:hover { opacity: 0.7; }
.reading-row-meta, .reading-pdf { color: var(--ink-muted); }
.reading-pdf { transition: color 0.2s ease; }
.reading-pdf:hover { color: var(--ink); }
.proof-grid { margin-top: 72px; row-gap: 40px; }
.aa1-card { grid-column: 1 / span 5; background: var(--surface); border: 1px solid var(--hairline); padding: 40px; min-height: 420px; display: flex; flex-direction: column; }
.aa1-mark { margin-top: 28px; font-size: 72px; line-height: 1; }
.aa1-text { margin-top: auto; padding-top: 32px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.daap { grid-column: 7 / span 6; }
.daap-title { margin-top: 20px; font-size: 26px; line-height: 33px; font-weight: 600; }
.daap-text { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.props { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.props li { border: 1px solid var(--hairline); padding: 20px 22px; font-size: 18px; line-height: 26px; }
.reg-grid { margin-top: 72px; row-gap: 40px; }
.submissions { margin-top: 20px; border-top: 1px solid var(--hairline); }
.submissions li { padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.submission-text { margin-top: 10px; font-size: 18px; line-height: 27px; }
.cert-card { background: var(--bg); padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.cert-title { font-size: 26px; line-height: 33px; font-weight: 600; }
.cert-text { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.cert-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 18px; line-height: 28px; }

/* About */
.about-facts { background: var(--dap-carbon); }
.facts-row { gap: 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.facts-row > div { padding: 36px 24px 40px; border-right: 1px solid var(--hairline); }
.facts-row > div:first-child { padding-left: 0; }
.facts-row > div:last-child { border-right: 0; padding-right: 0; }
.facts-row dt { color: var(--ink-muted); }
.facts-row dd { margin-top: 16px; font-size: 18px; line-height: 27px; }
.facts-row dd.disp { font-size: 28px; line-height: 34px; }
.band-leadership { margin-top: 120px; }
.lead-role { margin-top: 14px; font-size: 20px; line-height: 28px; color: var(--ink-muted); }
.lead-grid { row-gap: 40px; align-items: end; }
.lead-blurb { font-size: 20px; line-height: 32px; }
.lead-link { margin-top: 28px; }
.contact-grid { row-gap: 56px; align-items: end; }
.contact-block { display: flex; flex-direction: column; gap: 20px; }
.contact-email { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; font-weight: 500; user-select: all; overflow-wrap: anywhere; }
.contact-place { margin-top: 12px; }

/* Footer-only pages: a plain carbon heading */
.page-head { padding: 112px 0 96px; border-bottom: 1px solid var(--hairline); }
.page-title-inner { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.05; max-width: 960px; }
.page-lede { margin-top: 28px; max-width: 640px; font-size: 20px; line-height: 31px; color: var(--ink-muted); }
.page-hero { padding: 160px 0 168px; }
.page-hero-contact .page-title { font-size: clamp(44px, 5vw, 72px); line-height: 1.04; }
.page-hero-contact .redline { margin-top: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-muted); margin-bottom: 40px; }
.crumbs a { transition: color 0.2s ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current="page"] { color: var(--ink); }
.redirect-page { padding: 160px 0; }
.redirect-page .tlink { margin-top: 40px; }

/* FAQ */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; row-gap: 14px; padding: 40px 0; border-bottom: 1px solid var(--hairline); }
.faq-item > .meta { grid-row: 1 / span 3; padding-top: 8px; }
.faq-q { font-size: 26px; line-height: 33px; font-weight: 600; letter-spacing: -0.01em; }
.faq-a { max-width: 760px; color: var(--ink-muted); }
.faq-item .tlink { margin-top: 8px; }

/* Systems catalogue and system pages */
.portfolio-controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.portfolio-controls label { color: var(--ink-muted); }
.portfolio-controls input { width: min(480px, 100%); height: 48px; padding: 0 14px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: var(--radius-small); font-size: 16px; }
.portfolio-controls input::placeholder { color: var(--ink-muted); opacity: 1; }
.portfolio-count { color: var(--ink-muted); }
.portfolio-group { margin-top: 56px; }
.portfolio-group-heading { padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.system-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 16px 32px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.system-identity { display: flex; flex-direction: column; gap: 6px; }
.system-identity h3 { font-size: 24px; line-height: 30px; font-weight: 600; }
.system-identity h3 a { transition: opacity 0.2s ease; }
.system-identity h3 a:hover { opacity: 0.7; }
.system-type { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.system-summary p { color: var(--ink-muted); }
.system-summary .system-line { color: var(--ink); font-weight: 500; margin-bottom: 8px; }
.system-brief summary { cursor: pointer; list-style: none; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink-muted); }
.system-brief summary::-webkit-details-marker { display: none; }
.system-brief[open] summary { margin-bottom: 12px; }
.system-open { display: inline-flex; align-items: center; gap: 10px; padding-top: 6px; white-space: nowrap; }
.portfolio-note { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; color: var(--ink-muted); }
.no-systems { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.no-systems button { background: transparent; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 8px; color: var(--ink); }
.system-detail { display: flex; flex-direction: column; gap: 48px; }
.system-premise { max-width: 900px; }
.large-copy { margin-top: 18px; font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.3; letter-spacing: -0.01em; }
.illustrative-label { margin-bottom: -28px; }
.system-scope { border-top: 1px solid var(--hairline); padding-top: 24px; max-width: 900px; }
.system-scope p:last-child { margin-top: 12px; color: var(--ink-muted); }
.system-further, .technical-notes { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--hairline); }
.system-further > summary, .technical-notes > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 18px; line-height: 26px; }
.system-further > summary::-webkit-details-marker, .technical-notes > summary::-webkit-details-marker { display: none; }
.technical-notes > div { padding: 0 0 24px; display: flex; flex-direction: column; gap: 16px; }
.technical-notes > div p { color: var(--ink-muted); max-width: 820px; }
.system-further > div { padding: 8px 0 32px; display: flex; flex-direction: column; gap: 40px; }
.system-audience p:last-child { margin-top: 10px; color: var(--ink-muted); max-width: 820px; }
.system-context { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
.system-context .block-title { margin-top: 12px; }
.system-context p { color: var(--ink-muted); }
.system-context .link-row { margin-top: 24px; }
.connected { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.connected > .meta { padding: 12px 0; }
.connected a { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.connected a span { display: flex; flex-direction: column; font-weight: 600; }
.connected small { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink-muted); }

/* Code-native diagrams (system pages) */
.technical-figure { border: 1px solid var(--hairline); background: var(--surface); padding: 28px; }
.technical-figure figcaption { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.visual-track { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; counter-reset: none; }
.visual-node { height: 100%; border-top: 1px solid var(--rule); padding-top: 16px; }
.node-face { display: flex; flex-direction: column; gap: 14px; }
.visual-node-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-muted); }
.visual-node-top svg { width: 30px; height: 32px; }
.step-index { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; }
.node-title { font-size: 18px; line-height: 24px; font-weight: 600; }
.diagram-hint, .cycle-return, .converge-result { margin-top: 16px; font-size: 14px; color: var(--ink-muted); }

/* Reading views and legal pages: the Reading Room, a 65-character measure */
.article-page { padding: 96px 0 144px; }
.reading-head { max-width: 860px; }
.reading-head .back-link { display: inline-block; margin-bottom: 40px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.reading-head .back-link:hover { color: var(--ink); }
.reading-head .eyebrow { color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; }
.reading-head h1, .legal-page h1 { margin-top: 24px; font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.05; letter-spacing: -0.01em; }
.reading-head h1::after, .legal-page h1::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 32px; background: var(--signal); }
.reading-head .lead { margin-top: 28px; font-size: 21px; line-height: 32px; color: var(--ink-muted); max-width: 65ch; }
.reading-head .reading-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.reading-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.reading-actions .button, .print-button { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--font-sans); font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; transition: background-color 0.2s ease; }
.reading-actions .button:hover, .print-button:hover { background-color: var(--rr-wash); border-color: var(--ink-strong); }
.reading-layout { margin-top: 72px; display: grid; grid-template-columns: 260px minmax(0, 65ch); gap: 64px; }
.reading-toc { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--rule); padding-top: 16px; }
.reading-toc nav { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.reading-toc nav a { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.reading-toc nav a:hover { color: var(--ink); }
.reading-toc .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-muted); }
.reading-toc .text-link { margin-top: 12px; font-size: 15px; border-bottom: 1px solid currentColor; align-self: flex-start; padding-bottom: 4px; }
.reading-body { font-size: 18px; line-height: 30px; }
.reading-body > * + * { margin-top: 20px; }
.reading-body h2 { margin-top: 56px; font-size: 26px; line-height: 33px; font-weight: 600; letter-spacing: -0.01em; }
.reading-body h3 { margin-top: 36px; font-size: 21px; line-height: 28px; font-weight: 600; }
.reading-body a { border-bottom: 1px solid currentColor; }
.reading-body ul, .reading-body ol { padding-left: 22px; list-style: disc; }
.reading-body ol { list-style: decimal; }
.reading-body li + li { margin-top: 8px; }
.reading-body blockquote { padding-left: 20px; border-left: 1px solid var(--rule); color: var(--ink-muted); }
.reading-body table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 24px; }
.reading-body th, .reading-body td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.reading-note { padding: 16px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: 16px; line-height: 25px; color: var(--ink-muted); }
.footnotes { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.reading-end { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); }
.legal-wrap { padding: 96px 0 144px; }
.legal-page .editorial-heading { max-width: 860px; }
.legal-page .eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.legal-page .editorial-heading > p { margin-top: 28px; font-size: 21px; line-height: 32px; color: var(--ink-muted); max-width: 65ch; }
.legal-body { margin-top: 72px; max-width: 65ch; }
.legal-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-muted); }
.legal-section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.legal-section h2 { margin-top: 12px; font-size: 24px; line-height: 30px; font-weight: 600; }
.legal-section p, .legal-section ul { margin-top: 14px; }
.legal-section ul { padding-left: 22px; list-style: disc; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { border-bottom: 1px solid currentColor; }
.legal-callout { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--hairline); background: var(--surface); }
.mono { font-family: var(--font-mono); }

/* Narrower desktops */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 26px; }
  .header-inner { gap: 28px; }
  .instrument-body { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* Phones and tablets: the menu takes over from the nav. */
@media (max-width: 1023px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
  .site-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-fallback { display: block; position: absolute; top: 24px; right: 32px; z-index: 25; }
  .menu-fallback[open] { position: fixed; inset: 0; top: 0; right: 0; overflow-y: auto; background: var(--dap-carbon); padding-top: 24px; }
  .menu-fallback[open] > summary { position: absolute; top: 24px; right: 32px; }
  .menu-fallback[open] .menu-fallback-panel { margin-top: 68px; border-top: 1px solid var(--hairline); }
  .site-brand .brand-full { width: 184px; }
  .g3 { grid-template-columns: minmax(0, 1fr); }
  .g3.tiles, .g3.serve-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-left, .col-right, .col-wide, .col-narrow, .firm-copy, .facts-stack, .col-feature, .col-stack, .col-gates, .col-models, .aa1-card, .daap, .platform-grid .col-wide, .platform-grid .col-narrow { grid-column: 1 / -1; }
  .facts-stack { margin-top: 0; }
  .flow { flex-direction: column; }
  .flow-conn { flex: 0 0 56px; }
  .flow-conn svg { transform: rotate(90deg); }
  .steps { flex-direction: column; align-items: stretch; }
  .s1, .s2, .s3, .s4 { height: auto; }
  .step-title { margin-top: 24px; }
  .split { flex-direction: column; }
  .split-text { flex: none; padding: 104px 32px 56px; }
  .split-img { min-height: 420px; }
  .strip-links { display: none; }
  .step-row, .rule-row { grid-template-columns: 56px minmax(0, 1fr); }
  .step-row > :last-child, .rule-row > :last-child { grid-column: 2; }
  .step-num { font-size: 36px; }
  .loop { flex-direction: column; }
  .loop-arrow { flex: 0 0 32px; }
  .loop-arrow svg { transform: rotate(90deg); }
  .instrument-body { grid-template-columns: minmax(0, 1fr); }
  .reading-panel { border-left: 0; border-top: 1px solid var(--hairline); }
  .instrument-footer { flex-direction: column; }
  .chapter-rail { grid-template-columns: repeat(5, minmax(88px, 1fr)); overflow-x: auto; }
  .next-chapter { border-left: 0; border-top: 1px solid var(--hairline); padding: 18px 24px; }
  .wrap.operation-grid { width: calc(100% - 64px); }
  .operation-grid { grid-template-columns: minmax(0, 1fr); }
  .operation-visual { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .hero-bar-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-row > div { padding: 28px 24px 32px 0; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .facts-row > div:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .facts-row > div:nth-child(even) { padding-left: 24px; }
  .facts-row > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .footer-brand, .footer-nav { grid-column: 1 / -1; }
  .system-row { grid-template-columns: minmax(0, 1fr) auto; }
  .system-summary { grid-column: 1 / -1; grid-row: 2; }
  .system-context { grid-template-columns: minmax(0, 1fr); }
  .reading-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .reading-toc { position: static; }
  .band-leadership { margin-top: 96px; }
  .band { padding: 112px 0; }
  .band-instrument { padding: 0 0 112px; }
  .operation-section { padding: 0 0 112px; }
  .band-firm { padding: 112px 0; }
  .method-steps-wrap { padding-bottom: 112px; }
}

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .menu-fallback { right: 20px; }
  .menu-fallback[open] > summary { right: 20px; }
  .g4, .g3, .sys, .g3.tiles, .g3.serve-tiles { grid-template-columns: minmax(0, 1fr); }
  .split-text { padding: 96px 20px 48px; }
  .hero-home-copy { margin-top: 0; padding-top: 72px; }
  .pos-terrace { object-position: 22% 50%; }
  .hero-panel-inner { padding-bottom: 32px; }
  .hero-panel-box { padding: 32px 24px 36px; }
  .hero-top-inner { padding-top: 156px; }
  .hero-data-copy { padding-top: 56px; }
  .strip-meta { margin-left: 0; flex-basis: 100%; }
  .pos-plane { object-position: 88% 58%; }
  .hero-ledger-strip { gap: 14px 20px; padding: 20px; margin: 0 -20px; }
  .hero-bar-inner { padding-top: 32px; padding-bottom: 40px; }
  .photo-band-inner { padding-top: 104px; padding-bottom: 32px; gap: 56px; }
  .flow { margin-top: 64px; }
  .flow-box { padding: 32px 24px 36px; min-height: 220px; }
  .portfolio-grid, .portfolio-four, .tiles, .serve-tiles { margin-top: 48px; }
  .ledger-feature, .ledger-feature-inner { min-height: 440px; }
  .ledger-feature-inner { padding: 28px 24px; }
  .steps { margin-top: 56px; }
  .loop { margin-top: 48px; }
  .speed-grid { margin-top: 72px; }
  .props { grid-template-columns: minmax(0, 1fr); }
  .aa1-card { padding: 32px 24px; min-height: 0; }
  .aa1-text { margin-top: 32px; }
  .cert-card { padding: 32px 24px; }
  .paper-table, .paper-table thead, .paper-table tbody, .paper-table tr, .paper-table td { display: block; }
  .paper-table { margin-top: 40px; border-top: 1px solid var(--rule); }
  .paper-table thead { display: none; }
  .paper-table tr { padding: 22px 0; border-bottom: 1px solid var(--hairline); }
  .paper-table td { padding: 0; border: 0; width: auto; }
  .paper-table td:last-child { text-align: left; margin-top: 10px; }
  .paper-sets { margin-top: 8px; }
  .reading-row { grid-template-columns: minmax(0, 1fr); }
  .library-tools, .library-controls { align-items: stretch; justify-items: stretch; width: 100%; }
  .library-controls input { width: 100%; }
  .band-head-row { align-items: flex-start; }
  .faq-item { grid-template-columns: minmax(0, 1fr); }
  .faq-item > .meta { grid-row: auto; padding-top: 0; }
  .facts-inline > div { flex-direction: column; gap: 6px; }
  .facts-inline dd { text-align: left; }
  .band { padding: 96px 0; }
  .band-tight { padding: 72px 0 96px; }
  .page-head { padding: 80px 0 64px; }
  .page-hero { padding: 104px 0 112px; }
  .closing-band { padding: 88px 0; }
  .site-footer { padding: 80px 0 32px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-legal { margin-top: 64px; }
  .instrument-bar { padding: 14px 16px; }
  .reading-panel { padding: 24px 20px; }
  .chapter-rail { padding: 16px; gap: 10px; }
  .scene:not(.scene-mini) { min-height: 300px; aspect-ratio: 4 / 5; }
  .scene-labels, .flow-label { display: none !important; }
  .chapter-rail { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; overflow: visible; }
  .chapter-name { font-size: 13px; line-height: 18px; }
  .example-controls { grid-template-columns: minmax(0, 1fr); }
  .replay { justify-self: start; }
  .hero-veil { width: 100%; border-right: 0; }
  .operation-visual, .demo-body { padding: 28px 20px; }
  .operation-visual .scene:not(.scene-mini) { aspect-ratio: 1 / 1; min-height: 260px; }
  .wrap.operation-grid { width: calc(100% - 40px); }
  .operation-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-toggle { right: 16px; bottom: 16px; }
  .system-open .label { display: none; }
  .layer-row-3 { grid-template-columns: minmax(0, 1fr); }
  .facts-row > div, .facts-row > div:nth-child(odd), .facts-row > div:nth-child(even) { padding: 24px 0 28px; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .facts-row > div:last-child { border-bottom: 0; }
}

@media (max-width: 360px) {
  .site-brand .brand-full { display: none; }
  .site-brand .brand-mark { display: block; }
  .menu-link { font-size: 34px; line-height: 42px; }
  .chip { white-space: normal; }
}

@media print {
  .site-header, .site-footer, .menu-dialog, .menu-fallback, .closing-band, .reading-toc, .reading-actions { display: none !important; }
  body, [data-theme] { background: var(--dap-white); color: var(--dap-carbon); }
  .reading-layout { display: block; }
}
