/* Shared design tokens: the original monochrome palette and blue accent. */
:root {
  color-scheme: light;
  --ap-bg: #fff;
  --ap-subtle: #f5f5f7;
  --ap-text: #1d1d1f;
  --ap-muted: #626268;
  --ap-line: #dedee2;
  --ap-accent: #0068d1;
  --ap-accent-soft: #eef5fd;
  --ap-reject: #a72f28;
  --ap-gutter: clamp(20px, 3vw, 56px);
  --ap-width: 1520px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ap-bg); color: var(--ap-text); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; }
main:focus { outline: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
h3 { font-size: 1.25rem; letter-spacing: -.025em; line-height: 1.25; }
p + p { margin-top: 1rem; }
strong, b { font-weight: 600; }
a { color: var(--ap-accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--ap-accent); outline-offset: 5px; border-radius: 2px; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--ap-accent); outline-offset: 5px; }
a, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
ul { padding-left: 1.2em; }
li + li { margin-top: .5em; }
[id] { scroll-margin-top: 110px; }
.ap-container { width: min(var(--ap-width), calc(100% - 2 * var(--ap-gutter))); margin-inline: auto; }
.ap-eyebrow, .ap-label, .ap-section-number { font-size: .8125rem; font-weight: 500; line-height: 1.55; letter-spacing: .09em; text-transform: uppercase; color: var(--ap-muted); }
.ap-eyebrow { margin-bottom: 1.5rem; }
.ap-deck { max-width: 62ch; margin-top: 1.5rem; color: var(--ap-muted); font-size: 1.1875rem; line-height: 1.6; }
.ap-label + h2, .ap-section-number + h2 { margin-top: .75rem; }
.ap-text-link { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; font-size: 1rem; text-decoration: none; font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; transform: translateY(-150%); z-index: 200; padding: 10px 18px; background: var(--ap-text); color: white; }
.skip-link:focus { transform: none; }

/* Navigation stays visible and usable without a script or collapsed menu. */
.ap-header { position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 88px; padding: 16px max(var(--ap-gutter), calc((100% - var(--ap-width)) / 2)); background: #fff; border-bottom: 1px solid var(--ap-line); }
.ap-wordmark { display: inline-flex; align-items: center; min-height: 44px; color: var(--ap-text); font-size: 1rem; font-weight: 600; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.ap-nav { display: flex; align-items: center; padding: 4px; background: #eeeef0; border-radius: 30px; }
.ap-nav a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 17px; border-radius: 24px; font-size: .875rem; line-height: 1.3; font-weight: 500; text-decoration: none; color: #4c4c51; }
.ap-nav a:hover { color: var(--ap-text); background: #e1e1e5; }
.ap-nav a[aria-current] { background: var(--ap-text); color: white; }
.ap-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px max(var(--ap-gutter), calc((100% - var(--ap-width)) / 2)); border-top: 1px solid var(--ap-line); font-size: .875rem; color: var(--ap-muted); }
.ap-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.ap-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ap-muted); text-decoration: none; }
.ap-footer nav a:hover { color: var(--ap-accent); text-decoration: underline; }
.ap-analytics-settings { border: 0; padding: 0; min-height: 44px; background: none; color: var(--ap-muted); font: inherit; cursor: pointer; }
.ap-analytics-settings:hover { color: var(--ap-accent); text-decoration: underline; text-underline-offset: .2em; }

/* A native dialog keeps focus within the cookie choice without resizing the page. */
.ap-consent { width: min(360px, calc(100% - 40px)); max-height: calc(100svh - 48px); margin: auto; padding: 28px; overflow: auto; border: 1px solid var(--ap-line); border-radius: 12px; background: var(--ap-bg); color: var(--ap-text); box-shadow: 0 20px 64px rgb(29 29 31 / .14); font-size: .875rem; line-height: 1.55; }
.ap-consent::backdrop { background: rgb(29 29 31 / .16); }
.ap-consent h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.ap-consent h2:focus { outline: none; }
.ap-consent p { margin-top: 12px; color: var(--ap-muted); }
.ap-consent-privacy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 2px; font-size: .8125rem; text-decoration: none; }
.ap-consent-privacy:hover { text-decoration: underline; }
.ap-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.ap-consent-actions button { min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid #c8c8ce; border-radius: 6px; background: var(--ap-bg); color: var(--ap-text); font: inherit; font-weight: 500; cursor: pointer; touch-action: manipulation; }
.ap-consent-actions button:hover { background: var(--ap-subtle); border-color: var(--ap-text); }
@media (prefers-reduced-motion: no-preference) {
  .ap-consent[open] { animation: ap-consent-enter 180ms ease-out; }
  @keyframes ap-consent-enter { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-height: 430px) and (min-width: 520px) {
  .ap-consent { width: min(540px, calc(100% - 40px)); padding: 20px 24px; }
  .ap-consent[open] { display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: center; gap: 24px; }
  .ap-consent p { margin-top: 8px; }
  .ap-consent-actions { grid-template-columns: 1fr; margin-top: 0; }
}
.ap-privacy-copy { padding-bottom: 80px; }
.ap-privacy-copy > p { max-width: 80ch; }
.ap-privacy-copy h2 { margin-block: 36px 16px; font-size: 1.5rem; }

/* A personal opening, followed by the story and work through an explicit reveal. */
.page-home { --ap-home-header-height: 88px; }
.page-home:not(.ap-work-revealed) .ap-footer { display: none; }
.ap-home-hero { min-height: calc(100svh - var(--ap-home-header-height)); display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; gap: 40px; padding: 56px var(--ap-gutter) max(24px, env(safe-area-inset-bottom)); background: var(--ap-subtle); }
.ap-home-intro { width: min(100%, var(--ap-width)); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 7vw, 100px); }
.ap-home-identity .ap-eyebrow { margin-bottom: 24px; }
.ap-home-hero h1 { max-width: 7ch; font-size: clamp(5.5rem, 10.5vw, 8.5rem); font-weight: 600; line-height: .94; letter-spacing: -.065em; text-wrap: initial; }
.ap-home-tagline { margin-top: 28px; font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.4; letter-spacing: -.025em; color: var(--ap-muted); }
.ap-home-summary > p { max-width: 36ch; font-size: clamp(1.125rem, 1.75vw, 1.375rem); line-height: 1.65; letter-spacing: -.015em; }
.ap-home-reveal-row { width: min(100%, var(--ap-width)); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid var(--ap-line); }
.ap-home-reveal-row > span { color: var(--ap-muted); font-size: .875rem; }
.ap-home-reveal { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex-shrink: 0; padding: 0; border: 1px solid var(--ap-line); border-radius: 50%; background: transparent; color: var(--ap-muted); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ap-home-reveal:hover { background: #eaeaed; color: var(--ap-text); }
.ap-home-noscript { font-size: .8125rem; color: var(--ap-muted); }
#about, #selected-work { scroll-margin-top: calc(var(--ap-home-header-height) + 24px); }
#about-heading:focus, #work-heading:focus { outline: none; }
.ap-home-links { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 24px; }
.ap-home-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 500; }
.ap-home-links a:hover { text-decoration: underline; }
.ap-home-about { padding-block: 88px 32px; }
.ap-home-about-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(40px, 8vw, 112px); }
.ap-home-about h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
.ap-home-about-copy { max-width: 60ch; color: var(--ap-muted); font-size: 1.0625rem; }
.ap-home-about-copy > p:first-child { color: var(--ap-text); }
.ap-home-background { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 48px 0 0; padding-block: 28px; border-block: 1px solid var(--ap-line); }
.ap-home-background dt { margin-bottom: 10px; color: var(--ap-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; }
.ap-home-background dd { margin: 0; font-size: 1.0625rem; font-weight: 500; }
.ap-home-background dd span { display: block; margin-top: 3px; color: var(--ap-muted); font-size: .8125rem; font-weight: 400; }
.ap-home-work { padding-block: 44px 0; }
.ap-section-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding-bottom: 24px; }
.ap-section-heading h2 { font-size: 1.5rem; }
.ap-home-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(32px, 7vw, 96px); padding-block: 36px 52px; border-top: 1px solid var(--ap-line); }
.ap-home-project-copy h3 { font-size: clamp(1.8rem, 2.9vw, 2.5rem); line-height: 1.12; letter-spacing: -.04em; margin-block: 16px 24px; }
.ap-home-project-copy h3 a { color: inherit; text-decoration: none; }
.ap-home-project-copy h3 a:hover { color: var(--ap-accent); }
.ap-home-project-copy > p:not(.ap-label) { color: var(--ap-muted); }
.ap-project-outcome { display: grid; gap: 3px; padding-block: 20px 16px; }
.ap-project-outcome strong { color: var(--ap-text); font-size: 1.75rem; letter-spacing: -.04em; line-height: 1.2; }
.ap-project-outcome span { font-size: .8125rem; }
.ap-home-chart { min-width: 0; }
.ap-home-chart > figcaption { font-weight: 500; font-size: .9375rem; }
.ap-home-engineering { padding: 28px 32px 20px; background: #edf1f3; }
.ap-home-engineering img { width: min(100%, 300px); margin-inline: auto; }
.ap-home-engineering figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-top: 18px; font-size: .8125rem; color: #515159; }

/* Section pages and featured work. */
.ap-page-hero, .ap-case-hero, .ap-cv-hero { width: min(var(--ap-width), calc(100% - 2 * var(--ap-gutter))); margin-inline: auto; padding-block: 80px 56px; }
.ap-page-hero h1 { max-width: 23ch; }
.ap-page-hero .ap-deck { max-width: 65ch; }
/* Broader index introductions use the whole page, with readable text columns. */
.page-finance .ap-page-hero, .page-engineering .ap-page-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 48px; }
.page-finance .ap-page-hero > .ap-eyebrow, .page-engineering .ap-page-hero > .ap-eyebrow { grid-column: 1 / -1; }
.page-finance .ap-page-hero h1, .page-engineering .ap-page-hero h1 { grid-row: 2 / 4; }
.page-finance .ap-page-hero .ap-deck, .page-engineering .ap-page-hero .ap-deck { align-self: end; margin-top: 4px; }
.page-finance .ap-page-hero .ap-page-jump, .page-engineering .ap-page-hero .ap-page-jump { grid-column: 2; align-self: start; margin-top: 14px; }
.ap-feature { width: min(var(--ap-width), calc(100% - 2 * var(--ap-gutter))); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 48px; padding-block: 48px 64px; border-block: 1px solid var(--ap-line); }
.ap-feature-copy { min-width: 0; }
.ap-feature-copy h2 { margin-block: 16px 24px; font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.ap-feature-copy > p:not(.ap-label):not(.ap-question) { color: var(--ap-muted); }
.ap-question { margin-bottom: 1rem; font-weight: 500; color: var(--ap-accent); }
.ap-feature-visual { min-width: 0; padding: 28px; background: var(--ap-subtle); margin-top: 42px; }
.ap-feature-visual.ap-upright { background: #edf1f3; }
.ap-engineering-hero-figure img { width: min(100%, 320px); margin-inline: auto; }
.ap-engineering-hero-figure figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: .875rem; }
.ap-engineering-hero-figure small { display: block; margin-top: 8px; color: var(--ap-muted); font-size: .8125rem; }
.ap-metrics, .ap-report-facts, .ap-case-facts, .ap-decision-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 28px; border-block: 1px solid var(--ap-line); font-variant-numeric: tabular-nums; }
.ap-metrics > div, .ap-report-facts > div, .ap-case-facts > div, .ap-decision-facts > div { padding: 16px 12px; display: grid; align-content: start; gap: 5px; }
.ap-metrics > div:first-child, .ap-report-facts > div:first-child, .ap-case-facts > div:first-child, .ap-decision-facts > div:first-child { padding-left: 0; }
.ap-metrics > div + div, .ap-report-facts > div + div, .ap-case-facts > div + div, .ap-decision-facts > div + div { border-left: 1px solid var(--ap-line); }
.ap-metrics span, .ap-report-facts span, .ap-case-facts span, .ap-decision-facts span { color: var(--ap-muted); font-size: .8125rem; line-height: 1.4; }
.ap-metrics strong { font-size: 1.0625rem; letter-spacing: -.02em; }
.ap-report-facts strong, .ap-case-facts strong, .ap-decision-facts strong { font-size: clamp(1.0625rem, 1.6vw, 1.5rem); letter-spacing: -.025em; }
.ap-report-facts small, .ap-case-facts small { font-size: .8125rem; color: var(--ap-muted); }
.ap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ap-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 18px; border: 1px solid #bcbcc2; border-radius: 4px; font-size: .875rem; font-weight: 500; line-height: 1.4; text-decoration: none; color: var(--ap-text); }
.ap-action:hover { background: var(--ap-subtle); text-decoration: none; border-color: var(--ap-text); }
.ap-action-primary { background: var(--ap-accent); color: white; border-color: var(--ap-accent); }
.ap-action-primary:hover { color: white; background: #0058b0; border-color: #0058b0; }
.ap-feature-actions .ap-action-primary { flex-basis: 100%; justify-content: flex-start; }
.ap-index-section { width: min(var(--ap-width), calc(100% - 2 * var(--ap-gutter))); margin-inline: auto; padding-block: 64px 88px; }
.ap-index-heading { display: flex; align-items: baseline; gap: 22px; margin-bottom: 32px; }
.ap-index-note { max-width: 65ch; margin-bottom: 24px; font-size: .875rem; color: var(--ap-muted); }
.ap-index-heading:has(+ .ap-index-note) { margin-bottom: 16px; }
.ap-page-jump { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 20px; }
.ap-page-jump a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; text-decoration: none; }
.ap-page-jump a:hover { text-decoration: underline; }
.ap-project-grid { border-top: 1px solid var(--ap-line); }
.ap-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); grid-template-areas: "title description" "links reflection"; gap: 12px 64px; padding-block: 32px; border-bottom: 1px solid var(--ap-line); }
.ap-project > div { grid-area: title; }
.ap-project h3 { margin-top: 10px; max-width: 30ch; }
.ap-project > p { grid-area: description; color: var(--ap-muted); }
.ap-project-actions { grid-area: links; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; align-self: start; font-size: .875rem; }
.ap-project-actions a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; text-decoration: none; }
.ap-project-actions a:hover { text-decoration: underline; }

/* Figures keep the supplied scientific evidence intact. No runtime chart library. */
.ap-ferrari-figure { min-width: 0; }
.ap-chart-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; }
.ap-chart-heading figcaption { font-weight: 500; line-height: 1.4; }
.ap-chart-heading > span { color: var(--ap-muted); font-size: .8125rem; white-space: nowrap; }
.ap-chart-scroll { overflow-x: auto; margin-top: 20px; }
.ap-chart-image { width: 100%; min-width: 380px; height: auto; }
.ap-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--ap-muted); font-size: .8125rem; line-height: 1.5; }
.ap-chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ap-chart-swatch { width: 20px; height: 2px; display: inline-block; flex: 0 0 auto; }
.ap-chart-swatch-dark { background: #3a3a3c; }
.ap-chart-swatch-red { background: #c70000; }
.ap-chart-takeaway { color: var(--ap-muted); font-size: .8125rem; margin-top: 16px; line-height: 1.6; }
.ap-chart-data { margin-top: 12px; font-size: .8125rem; color: var(--ap-muted); }
.ap-chart-data summary { cursor: pointer; min-height: 36px; padding-block: 7px; text-decoration: underline; text-underline-offset: 3px; }
.ap-chart-data table { margin-top: 12px; font-size: .8125rem; }
.ap-chart-data .ap-table-scroll { margin-top: 0; }

/* Report pages use a shared reading rhythm with visible section anchors. */
.ap-breadcrumb { width: min(var(--ap-width), calc(100% - 2 * var(--ap-gutter))); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 24px; color: var(--ap-muted); font-size: .8125rem; }
.ap-breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.ap-case-hero { padding-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.ap-case-hero h1 { max-width: 24ch; }
.ap-research-hero { display: block; }
.ap-case-downloads { margin-top: 26px; }
.ap-report-date { margin-top: 1.25rem; font-size: .875rem; color: var(--ap-muted); }
.ap-case-snapshot { display: grid; gap: 8px; padding: 22px 0 22px 24px; border-left: 2px solid var(--ap-accent); font-size: .875rem; color: var(--ap-muted); }
.ap-case-snapshot strong { color: var(--ap-text); font-size: 1.6rem; letter-spacing: -.035em; }
.ap-case-snapshot small { font-size: .8125rem; }
.ap-case-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 24px; }
.ap-case-meta > div { display: grid; gap: 4px; font-size: .875rem; }
.ap-case-meta span { color: var(--ap-muted); font-size: .8125rem; }
.ap-case-meta strong { font-weight: 500; }
.ap-case-layout, .ap-research-shell { width: min(var(--ap-width), calc(100% - 2 * var(--ap-gutter))); margin-inline: auto; padding-bottom: 88px; }
.ap-case-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); align-items: start; gap: clamp(32px, 6vw, 72px); border-top: 1px solid var(--ap-line); }
.ap-toc { padding-block: 26px; display: flex; flex-direction: column; gap: 2px; font-size: .875rem; }
.ap-case-layout > .ap-toc { position: sticky; top: 100px; }
.ap-toc > span { font-size: .8125rem; color: var(--ap-muted); margin-bottom: 12px; }
.ap-toc a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: var(--ap-muted); line-height: 1.4; }
.ap-toc a:hover { color: var(--ap-accent); text-decoration: underline; }
.ap-case-main, .ap-report-main, .ap-report-aside { min-width: 0; }
.ap-case-section { padding-block: 36px 44px; }
.ap-case-section + .ap-case-section { border-top: 1px solid var(--ap-line); }
.ap-case-section h2, .ap-report-section h2 { max-width: 31ch; font-size: clamp(1.65rem, 2.65vw, 2.25rem); margin-bottom: 24px; }
.ap-case-section > p:not(.ap-section-number):not(.ap-label), .ap-report-section > p:not(.ap-label) { color: var(--ap-muted); }
.ap-case-section > p, .ap-report-section > p { max-width: 88ch; }
.ap-case-split, .ap-report-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.ap-case-split p, .ap-case-split li, .ap-report-sides li { color: var(--ap-muted); }
.ap-case-split h3 { margin-bottom: 16px; }
.ap-process { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 22px 0; font-size: .875rem; }
.ap-process i { font-style: normal; color: var(--ap-muted); }
.ap-process span { padding-block: 5px; }
.ap-evidence-figure { margin-top: 28px; }
.ap-load-evidence img { width: 100%; background: #dbe2e6; }
.ap-evidence-figure figcaption { margin-top: 12px; color: var(--ap-muted); font-size: .8125rem; }
.ap-mesh-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-block: 28px; }
.ap-mesh-chart-grid figure { min-width: 0; }
.ap-mesh-chart-grid figcaption { font-size: .9375rem; font-weight: 500; }
.ap-mesh-chart-grid .ap-chart-image { min-width: 310px; }
.ap-table-scroll { max-width: 100%; overflow-x: auto; margin-top: 24px; overscroll-behavior-x: contain; }
.ap-table-hint { font-size: .8125rem; margin-top: 24px; color: var(--ap-muted); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.5; text-align: left; font-variant-numeric: tabular-nums; }
th { font-weight: 500; color: var(--ap-muted); border-bottom: 1px solid #bcbcc2; }
th, td { padding: 13px 10px; vertical-align: top; }
td { border-bottom: 1px solid var(--ap-line); }
.ap-case-table { min-width: 560px; }
.ap-iteration-table { min-width: 790px; }
.ap-iteration-table th, .ap-iteration-table td { white-space: nowrap; }
.ap-table-selected { background: var(--ap-accent-soft); }
.ap-table-rejected { background: #fdf1f0; }
.ap-table-note, .ap-note { margin-top: 22px; font-size: .875rem; line-height: 1.6; color: var(--ap-muted); }
.ap-note { padding: 18px 22px; border-left: 2px solid var(--ap-accent); background: var(--ap-subtle); }
.ap-iteration-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-block: 28px; font-size: .8125rem; }
.ap-iteration-row span { padding: 12px 4px; border-block: 1px solid var(--ap-line); text-align: center; color: var(--ap-muted); }
.ap-iteration-row .ap-selected { background: var(--ap-accent-soft); color: var(--ap-accent); }
.ap-iteration-row .ap-rejected { background: #fdf1f0; color: var(--ap-reject); }
.ap-iteration-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
.ap-iteration-gallery img { width: 100%; }
.ap-iteration-gallery figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; font-size: .8125rem; margin-top: 10px; }
.ap-cost-bars { display: grid; gap: 18px; margin-block: 28px; font-size: .875rem; }
.ap-cost-bars > div { display: grid; grid-template-columns: 90px minmax(0, 1fr) 65px; align-items: center; gap: 14px; }
.ap-cost-bars i { display: block; height: 10px; background: var(--ap-subtle); }
.ap-cost-bars b { display: block; width: var(--ap-bar); height: 10px; background: #bcbcc2; }
.ap-cost-bars .ap-cost-selected b { background: var(--ap-accent); }
.ap-cost-bars strong { text-align: right; font-variant-numeric: tabular-nums; }
.ap-conclusion { border-top: 2px solid var(--ap-text) !important; }
.ap-decision-scale { display: flex; gap: 16px; align-items: center; font-size: .8125rem; color: var(--ap-muted); }
.ap-decision-scale i { flex: 1; height: 1px; background: var(--ap-line); }
.ap-next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--ap-line); margin-top: 28px; padding-top: 24px; }
.ap-next-steps span { display: block; color: var(--ap-accent); font-size: .8125rem; margin-bottom: 12px; }
.ap-next-steps strong { display: block; line-height: 1.4; }
.ap-next-steps p { font-size: .875rem; color: var(--ap-muted); margin-top: 10px; }
.ap-research-rating { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 26px; border-block: 1px solid var(--ap-line); }
.ap-research-rating > div { display: grid; gap: 8px; padding-left: 28px; }
.ap-research-rating > div:first-child { padding-left: 0; }
.ap-research-rating > div + div { border-left: 1px solid var(--ap-line); }
.ap-research-rating span { font-size: .875rem; color: var(--ap-muted); }
.ap-research-rating strong { font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: -.045em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ap-research-toc { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 24px; border-bottom: 1px solid var(--ap-line); padding-block: 16px; }
.ap-research-toc > span { margin-bottom: 0; }
.ap-research-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .85fr); gap: 56px; padding-top: 12px; }
.ap-report-section { padding-block: 36px 44px; }
.ap-report-section + .ap-report-section { border-top: 1px solid var(--ap-line); }
.ap-report-aside { border-left: 1px solid var(--ap-line); padding-left: 28px; margin-top: 32px; }
.ap-report-panel { padding-bottom: 24px; }
.ap-report-panel + .ap-report-panel { border-top: 1px solid var(--ap-line); padding-top: 24px; }
.ap-report-data { margin: 18px 0 0; font-size: .875rem; }
.ap-report-data > div { display: flex; justify-content: space-between; gap: 18px; padding-block: 11px; border-bottom: 1px solid var(--ap-line); }
.ap-report-data dt { color: var(--ap-muted); }
.ap-report-data dd { margin: 0; white-space: nowrap; font-weight: 500; }
.ap-report-table { margin-top: 18px; }
.ap-report-table th, .ap-report-table td { padding-inline: 5px; }
.ap-report-table th:first-child, .ap-report-table td:first-child { padding-left: 0; }
.ap-report-table td:not(:first-child), .ap-report-table th:not(:first-child) { text-align: right; }
.ap-report-total { font-weight: 600; }
.ap-report-caveat, .ap-report-limits { font-size: .875rem; color: var(--ap-muted); margin-top: 18px; }
.ap-report-chart-figure { margin-block: 28px; }
.ap-report-conclusion > p { max-width: 88ch; }

/* CV and contact: a readable document, with direct contact and PDF links. */
.ap-cv-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.ap-cv-hero h1 { font-size: clamp(2.5rem, 4.5vw, 3.7rem); }
.ap-cv-positioning { margin-top: 22px; max-width: 60ch; font-size: 1.125rem; color: var(--ap-muted); }
.ap-cv-contact-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: .875rem; }
.ap-cv-contact-line a { min-height: 32px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.ap-cv-contact-line span { display: inline-flex; align-items: center; }
.ap-cv-actions { display: grid; justify-items: end; gap: 12px; }
.ap-cv-actions > span { font-size: .8125rem; color: var(--ap-muted); }
.ap-cv-jump { display: flex; flex-wrap: wrap; gap: 8px 28px; width: min(var(--ap-width), calc(100% - 2 * var(--ap-gutter))); margin-inline: auto; padding-block: 14px; border-block: 1px solid var(--ap-line); }
.ap-cv-jump a { display: inline-flex; min-height: 40px; align-items: center; font-size: .875rem; text-decoration: none; }
.ap-cv-layout { width: min(var(--ap-width), calc(100% - 2 * var(--ap-gutter))); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 60px; padding-block: 48px 64px; }
.ap-cv-main, .ap-cv-sidebar { min-width: 0; }
.ap-cv-sidebar { padding-left: 32px; border-left: 1px solid var(--ap-line); }
.ap-cv-section > .ap-label { margin-bottom: 24px; }
.ap-cv-section + .ap-cv-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--ap-line); }
.ap-cv-entry { padding-bottom: 30px; }
.ap-cv-entry + .ap-cv-entry { padding-top: 30px; border-top: 1px solid var(--ap-line); }
.ap-cv-entry h2 { font-size: 1.5rem; line-height: 1.25; letter-spacing: -.03em; }
.ap-cv-organisation { margin-top: 8px; }
.ap-cv-entry ul { color: var(--ap-muted); }
.ap-cv-date { font-size: .875rem; color: var(--ap-muted); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ap-cv-date time { color: var(--ap-text); }
.ap-cv-date span { display: block; }
.ap-cv-side-entry + .ap-cv-side-entry { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--ap-line); }
.ap-cv-side-entry h2 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.025em; }
.ap-cv-side-entry p { margin-top: 8px; }
.ap-cv-side-entry span, .ap-cv-side-entry small { display: block; color: var(--ap-muted); font-size: .875rem; }
.ap-cv-side-entry small { margin-top: 12px; }
.ap-cv-inline-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: .875rem; text-decoration: none; }
.ap-cv-skills { margin: 0; display: grid; gap: 20px; font-size: .9375rem; }
.ap-cv-skills dt { font-weight: 500; margin-bottom: 6px; }
.ap-cv-skills dd { margin: 0; color: var(--ap-muted); }
.ap-cv-credentials { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; font-size: .9375rem; }
.ap-cv-credentials small { display: block; font-size: .8125rem; color: var(--ap-muted); margin-top: 4px; }
.ap-cv-close { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 48px max(var(--ap-gutter), calc((100% - var(--ap-width)) / 2)); background: var(--ap-subtle); }
.ap-cv-close h2 { margin-block: 12px; font-size: 1.75rem; }
.ap-cv-close p:not(.ap-label) { color: var(--ap-muted); }
.ap-cv-close > a { white-space: nowrap; }
.ap-contact { padding-block: 88px 100px; }
.ap-contact h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.055em; }
.ap-contact .ap-deck { max-width: 47ch; }
.ap-contact-links { margin-block: 50px 24px; border-top: 1px solid var(--ap-line); }
.ap-contact-links > a { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--ap-line); color: var(--ap-text); text-decoration: none; }
.ap-contact-links > a:hover { color: var(--ap-accent); }
.ap-contact-links > a > span:nth-child(2) { font-size: clamp(1.2rem, 2.7vw, 2rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.ap-contact-links > a > span:last-child { font-size: 1.5rem; }
.ap-file-meta { color: var(--ap-muted); font-size: .8125rem; margin-left: 6px; }

@media (max-width: 1000px) {
  .page-finance .ap-page-hero, .page-engineering .ap-page-hero { display: block; }
  .page-finance .ap-page-hero .ap-deck, .page-engineering .ap-page-hero .ap-deck { margin-top: 24px; }
  .ap-feature { gap: 32px; }
  .ap-feature-visual { padding: 22px; }
  .ap-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-metrics > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ap-metrics > div:nth-child(n+3) { border-top: 1px solid var(--ap-line); }
  .ap-case-layout { grid-template-columns: 155px minmax(0, 1fr); gap: 28px; }
  .ap-case-split, .ap-mesh-chart-grid { grid-template-columns: 1fr; }
  .ap-research-grid { gap: 28px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .ap-report-aside { padding-left: 20px; }
  .ap-report-facts, .ap-case-facts, .ap-decision-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-report-facts > div:nth-child(3), .ap-case-facts > div:nth-child(3), .ap-decision-facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ap-report-facts > div:nth-child(n+3), .ap-case-facts > div:nth-child(n+3), .ap-decision-facts > div:nth-child(n+3) { border-top: 1px solid var(--ap-line); }
  .ap-cv-layout { gap: 32px; }
  .ap-cv-sidebar { padding-left: 24px; }
}
@media (max-width: 760px) {
  .ap-header { gap: 12px; flex-direction: column; padding: 10px var(--ap-gutter) 12px; }
  .ap-wordmark { min-height: 32px; }
  .ap-nav { width: min(100%, 440px); }
  .ap-nav a { flex: 1; padding: 8px 10px; min-height: 40px; font-size: .8125rem; }
  [id] { scroll-margin-top: 135px; }
  .page-home { --ap-home-header-height: 115px; }
  .ap-home-hero { padding-block: 36px max(24px, env(safe-area-inset-bottom)); gap: 28px; }
  .ap-home-intro { grid-template-columns: 1fr; gap: 32px; }
  .ap-home-identity .ap-eyebrow { margin-bottom: 20px; font-size: .75rem; }
  .ap-home-hero h1 { max-width: none; font-size: clamp(2.75rem, 11.5vw, 5.25rem); line-height: 1; }
  .ap-home-tagline { margin-top: 16px; font-size: 1.25rem; }
  .ap-home-summary > p { max-width: 42ch; font-size: 1.0625rem; line-height: 1.6; }
  .ap-home-links { margin-top: 16px; gap: 6px 28px; font-size: .9375rem; }
  .ap-home-links a { font-size: inherit; }
  .ap-home-about { padding-block: 48px 20px; }
  .ap-home-about-story { grid-template-columns: 1fr; gap: 28px; }
  .ap-home-about .ap-eyebrow { margin-bottom: 16px; }
  .ap-home-about-copy { font-size: 1rem; }
  .ap-home-background { grid-template-columns: 1fr; gap: 0; margin-top: 32px; padding-block: 0; }
  .ap-home-background > div { padding-block: 18px; }
  .ap-home-background > div + div { border-top: 1px solid var(--ap-line); }
  .ap-home-background dt { margin-bottom: 6px; }
  .ap-home-work { padding-top: 28px; }
  .ap-section-heading { gap: 8px 20px; padding-bottom: 20px; }
  .ap-home-project { grid-template-columns: 1fr; gap: 32px; padding-block: 28px 40px; }
  .ap-home-project-copy h3 { max-width: 23ch; }
  .ap-home-chart { padding-block: 16px; }
  .ap-home-engineering img { width: min(100%, 290px); }
  .ap-page-hero, .ap-cv-hero { padding-block: 48px 36px; }
  .ap-deck { font-size: 1.0625rem; }
  .ap-feature { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 40px; }
  .ap-feature-visual { margin-top: 0; }
  .ap-feature-copy h2 { font-size: 1.875rem; }
  .ap-feature-actions .ap-action-primary { flex-basis: auto; }
  .ap-index-section { padding-block: 40px 56px; }
  .ap-project { grid-template-columns: 1fr; grid-template-areas: "title" "description" "links" "reflection"; gap: 18px; padding-block: 28px; }
  .ap-project h3 { max-width: 32ch; font-size: 1.375rem; }
  .ap-project-actions { margin-top: -6px; }
  .ap-case-hero { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .ap-case-snapshot { padding-block: 0; }
  .ap-case-layout { display: block; }
  .ap-case-layout > .ap-toc { position: static; }
  .ap-toc { flex-direction: row; flex-wrap: wrap; gap: 2px 22px; border-bottom: 1px solid var(--ap-line); }
  .ap-toc > span { flex-basis: 100%; margin-bottom: 6px; }
  .ap-toc a { min-height: 40px; }
  .ap-case-section { padding-block: 32px; }
  .ap-case-layout, .ap-research-shell { padding-bottom: 48px; }
  .ap-research-grid { grid-template-columns: 1fr; }
  .ap-report-aside { margin-top: 0; padding-left: 0; border-left: 0; border-top: 1px solid var(--ap-line); padding-top: 28px; }
  .ap-report-sides { grid-template-columns: 1fr; gap: 28px; }
  .ap-research-rating { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .ap-research-rating > div { padding: 20px 16px; }
  .ap-research-rating > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ap-research-rating > div:nth-child(n+3) { border-top: 1px solid var(--ap-line); }
  .ap-iteration-row { gap: 2px; font-size: .75rem; }
  .ap-iteration-gallery { gap: 22px 14px; }
  .ap-next-steps { grid-template-columns: 1fr; gap: 20px; }
  .ap-next-steps > div { display: grid; grid-template-columns: 30px 1fr; gap: 0 8px; }
  .ap-next-steps p { grid-column: 2; margin-top: 6px; }
  .ap-cv-hero { grid-template-columns: 1fr; gap: 24px; }
  .ap-cv-actions { justify-items: start; }
  .ap-cv-layout { grid-template-columns: 1fr; gap: 32px; padding-block: 32px; }
  .ap-cv-sidebar { padding-left: 0; border-left: 0; border-top: 1px solid var(--ap-line); padding-top: 28px; }
  .ap-cv-close { align-items: start; flex-direction: column; gap: 16px; padding-block: 32px; }
  .ap-contact { padding-block: 48px 64px; }
  .ap-contact-links > a { grid-template-columns: 1fr auto; gap: 8px; }
  .ap-contact-links .ap-label { grid-column: 1 / -1; }
  .ap-footer { flex-wrap: wrap; gap: 8px 20px; padding-block: 24px; }
  .ap-footer nav { order: 3; width: 100%; gap: 0 24px; }
}
@media (max-width: 390px) {
  :root { --ap-gutter: 20px; }
  .ap-nav a { padding-inline: 7px; font-size: .75rem; }
  .ap-home-links { gap: 8px 18px; font-size: .875rem; }
  .ap-action { padding-inline: 13px; }
  .ap-feature-visual { padding: 18px; }
  .ap-iteration-gallery { grid-template-columns: 1fr; }
  .ap-note { padding-inline: 16px; }
  .ap-cost-bars > div { grid-template-columns: 76px minmax(0, 1fr) 60px; gap: 8px; font-size: .8125rem; }
}
@media (max-width: 760px) and (max-height: 740px) {
  .ap-home-tagline { display: none; }
}
@media (max-height: 660px) {
  .ap-home-hero { padding-top: 20px; padding-bottom: max(16px, env(safe-area-inset-bottom)); gap: 20px; }
  .ap-home-identity .ap-eyebrow { margin-bottom: 12px; }
  .ap-home-hero h1 { font-size: clamp(2.75rem, 8vw, 5rem); }
  .ap-home-intro { gap: 24px; }
  .ap-home-tagline { display: none; }
  .ap-home-summary > p { font-size: .9375rem; line-height: 1.6; }
  .ap-home-links { margin-top: 8px; }
  .ap-home-reveal-row { padding-top: 12px; }
}
@media (max-height: 430px) and (min-width: 520px) {
  .page-home .ap-header { flex-direction: row; min-height: 64px; padding-block: 8px; }
  .page-home .ap-nav { width: auto; }
  .ap-home-hero { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); gap: 8px; }
  .ap-home-intro { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; }
  .ap-home-hero .ap-eyebrow { display: none; }
  .ap-home-hero h1 { font-size: 2.75rem; }
  .ap-home-summary > p { font-size: .8125rem; line-height: 1.5; }
  .ap-home-links { margin-top: 0; gap: 16px; font-size: .8125rem; }
  .ap-home-reveal-row { padding-top: 8px; }
}

/* The assembly occupies the scene itself; native playback remains available. */
.ap-upright-film { --ap-upright-header-height: 88px; --ap-film-gutter: max(var(--ap-gutter), calc((100% - var(--ap-width)) / 2)); margin-bottom: 64px; background: #dadad7; scroll-margin-top: var(--ap-upright-header-height); }
.ap-upright-film-stage { position: relative; isolation: isolate; overflow: clip; padding: 40px var(--ap-film-gutter) 24px; display: flex; flex-direction: column; gap: 24px; }
.ap-upright-film-heading { position: relative; z-index: 1; pointer-events: none; }
.ap-upright-film-heading .ap-label { color: #42423f; font-size: .6875rem; }
#upright-film-title { max-width: 16ch; margin-top: 12px; font-size: clamp(2rem, 4vw, 3.75rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.05; text-wrap: balance; }
#upright-film-copy { margin-top: 12px; max-width: 44ch; font-size: .9375rem; line-height: 1.5; color: #42423f; }
#upright-video { display: block; width: 100%; height: auto; max-height: min(65svh, max(160px, calc(100svh - var(--ap-upright-header-height) - 300px))); aspect-ratio: 16 / 9; object-fit: contain; }
.ap-upright-film-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; font-size: .8125rem; }
.ap-upright-film-footer button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; font: inherit; color: var(--ap-text); cursor: pointer; white-space: nowrap; }
.ap-upright-film-footer button:hover { color: var(--ap-accent); text-decoration: underline; text-underline-offset: .2em; }
.ap-upright-film-footer p { color: #42423f; margin: 0; }
.ap-upright-film-footer > a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; white-space: nowrap; color: var(--ap-text); }
.ap-upright-film-footer > a:hover { color: var(--ap-accent); text-decoration: underline; }
#upright-video-progress { position: absolute; inset: auto 0 0; width: 100%; height: 2px; appearance: none; border: 0; background: rgb(29 29 31 / .1); color: var(--ap-accent); }
#upright-video-progress::-webkit-progress-bar { background: rgb(29 29 31 / .1); }
#upright-video-progress::-webkit-progress-value { background: var(--ap-accent); }
#upright-video-progress::-moz-progress-bar { background: var(--ap-accent); }
.ap-upright-film.is-scroll-video { height: calc(340svh - var(--ap-upright-header-height)); }
.is-scroll-video .ap-upright-film-stage { position: sticky; top: var(--ap-upright-header-height); height: calc(100svh - var(--ap-upright-header-height)); min-height: 380px; justify-content: space-between; }
.is-scroll-video #upright-video { position: absolute; inset: 0; z-index: -1; height: 100%; max-height: none; object-fit: cover; object-position: center; }
/* A soft edge lets the rendered floor meet the page without a player frame. */
.is-scroll-video #upright-video { mask-image: linear-gradient(to bottom, transparent 18%, #000 48%, #000 78%, transparent); }
@media (max-width: 760px) {
  .ap-upright-film { --ap-upright-header-height: 115px; margin-bottom: 40px; }
  .ap-upright-film-stage { padding-block: 28px 16px; gap: 20px; }
  #upright-film-title { font-size: clamp(2rem, 6vw, 2.8rem); }
  #upright-film-copy { max-width: 35ch; font-size: .8125rem; }
  .ap-upright-film-footer { font-size: .75rem; gap: 0 16px; }
  .ap-upright-film-footer > p { width: 100%; }
  .is-scroll-video #upright-video { width: 150%; max-width: none; height: auto; inset: 50% auto auto -25%; transform: translateY(-50%); object-fit: contain; mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 78%, transparent); }
}
@media (min-width: 600px) and (max-width: 760px) {
  .is-scroll-video #upright-video { width: 140%; left: -20%; top: calc(50% + 64px); }
}
@media (max-height: 620px) {
  .ap-upright-film-stage { padding-block: 20px 12px; }
  #upright-film-title { font-size: 2rem; }
  #upright-film-copy { margin-top: 8px; }
}
@media (max-width: 760px) and (max-height: 620px) {
  .is-scroll-video #upright-video { width: 130%; left: -15%; top: calc(50% + 36px); }
}
@media print {
  .ap-upright-film { display: none; }
}

/* Case-study explorers: native controls, numerical detail, and readable fallbacks. */
.ap-tool-link { display: flex; width: fit-content; }
.ap-explorer { padding-block: 36px 48px; border-top: 1px solid var(--ap-line); }
.ap-explorer-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px 36px; }
.ap-explorer-heading .ap-eyebrow { margin-bottom: 12px; }
.ap-explorer-heading > .ap-label { max-width: 28ch; text-align: right; }
.ap-explorer-heading time { white-space: nowrap; }
.ap-explorer-intro { max-width: 76ch; margin-top: 20px; color: var(--ap-muted); }
.ap-dcf-layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); margin-block: 36px; }
.ap-dcf-controls { display: grid; gap: 24px; }
.ap-dcf-mobile-result { display: none; }
.ap-rate-control > div:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.ap-rate-control > div:first-child > span { font-variant-numeric: tabular-nums; font-size: 1.35rem; letter-spacing: -.03em; }
.ap-rate-control p { margin-top: 4px; font-size: .8125rem; color: var(--ap-muted); }
.ap-rate-control input { display: block; width: 100%; min-height: 44px; margin: 6px 0 0; accent-color: var(--ap-accent); cursor: pointer; }
.ap-range-extents { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ap-muted); font-variant-numeric: tabular-nums; }
.ap-explorer-reset { width: fit-content; min-height: 44px; padding: 8px 0; display: inline-flex; align-items: center; gap: 12px; background: transparent; border: 0; font: inherit; font-size: .875rem; font-weight: 500; color: var(--ap-accent); cursor: pointer; text-align: left; }
.ap-explorer-reset:hover { text-decoration: underline; text-underline-offset: .2em; }
.ap-explorer-note { color: var(--ap-muted); font-size: .8125rem; line-height: 1.65; }
.ap-dcf-controls > .ap-explorer-note { margin: -14px 0 0; }
.ap-dcf-result { min-width: 0; padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--ap-line); }
.ap-dcf-price { margin-top: 12px; display: grid; gap: 4px; }
.ap-dcf-price > span:first-child { font-size: clamp(3.2rem, 6.2vw, 5rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ap-dcf-price > span:last-child { color: var(--ap-muted); font-size: .875rem; }
.ap-dcf-gap { font-size: .9375rem; margin-top: 20px; }
.ap-value-bar { display: flex; height: 8px; margin-top: 32px; gap: 3px; }
.ap-value-bar > span:first-child { background: var(--ap-accent); }
.ap-value-bar > span:last-child { flex: 1; background: #3a3a3c; }
.ap-dcf-components { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-block: 16px 12px; }
.ap-dcf-components dt { font-size: .75rem; color: var(--ap-muted); }
.ap-dcf-components dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.ap-value-key { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: var(--ap-accent); }
.ap-value-key-terminal { background: #3a3a3c; }
.ap-explorer-details { border-top: 1px solid var(--ap-line); }
.ap-explorer-details:last-of-type { border-bottom: 1px solid var(--ap-line); }
.ap-explorer-details summary { min-height: 56px; padding-block: 16px; font-size: .9375rem; font-weight: 500; cursor: pointer; }
.ap-explorer-details[open] { padding-bottom: 24px; }
.ap-model-notes { max-width: 88ch; font-size: .875rem; }
.ap-model-notes > .ap-text-link { margin-top: 16px; }
.ap-source-cells { margin-block: 24px; font-size: .8125rem; }
.ap-source-cells > div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; border-top: 1px solid var(--ap-line); padding-block: 10px; }
.ap-source-cells dt { font-weight: 500; }
.ap-source-cells dd { margin: 0; color: var(--ap-muted); overflow-wrap: anywhere; }
.ap-sensitivity-table, .ap-cash-flow-table, .ap-comparison-table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.ap-sensitivity-table caption, .ap-cash-flow-table caption, .ap-comparison-table caption { text-align: left; font-size: .75rem; color: var(--ap-muted); padding-bottom: 12px; }
.ap-sensitivity-table { min-width: 620px; font-size: .8125rem; }
.ap-sensitivity-table th, .ap-sensitivity-table td { padding: 12px 10px; border-bottom: 1px solid var(--ap-line); text-align: right; }
.ap-sensitivity-table thead, .ap-sensitivity-table th:first-child { background: var(--ap-subtle); font-weight: 500; }
.ap-sensitivity-table td[data-selected] { background: var(--ap-accent-soft); outline: 2px solid var(--ap-accent); outline-offset: -2px; font-weight: 600; }
.ap-cash-flow-table { font-size: .8125rem; }
.ap-cash-flow-table th, .ap-cash-flow-table td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--ap-line); }
.ap-cash-flow-table td { text-align: right; }
.ap-comparison-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 28px; font-size: .875rem; }
.ap-comparison-controls select { font: inherit; background: #fff; color: var(--ap-text); border: 1px solid #a1a1a8; border-radius: 4px; min-height: 44px; padding: 8px 28px 8px 12px; max-width: 100%; }
.ap-comparison-controls > button { margin-left: auto; }
.ap-comparison-scroll-note { margin-top: 20px; }
.ap-comparison-table { min-width: 720px; table-layout: fixed; }
.ap-comparison-table th, .ap-comparison-table td { padding: 16px 20px; border-bottom: 1px solid var(--ap-line); vertical-align: top; }
.ap-comparison-table tr > :first-child { width: 18%; padding-left: 0; background: #fff; position: sticky; left: 0; z-index: 1; }
.ap-comparison-table thead th { padding-top: 14px; font-weight: 500; }
.ap-comparison-table thead strong { display: block; margin-top: 4px; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.ap-design-status { font-size: .75rem; color: var(--ap-muted); }
.ap-comparison-table img { margin-top: 16px; width: 100%; }
.ap-comparison-table tbody th { font-size: .8125rem; font-weight: 500; }
.ap-comparison-table tbody td { font-size: 1.125rem; letter-spacing: -.02em; white-space: nowrap; }
.ap-comparison-table small { display: block; margin-top: 5px; font-size: .75rem; line-height: 1.5; color: var(--ap-muted); letter-spacing: 0; }
.ap-comparison-table .ap-design-recommended { background: var(--ap-accent-soft); }
.ap-comparison-table thead .ap-design-recommended { border-top: 2px solid var(--ap-accent); }
.ap-design-recommended .ap-design-status { color: var(--ap-accent); }
.ap-comparison-decision { display: grid; grid-template-columns: 18% 1fr; padding-block: 24px; gap: 20px; }
.ap-comparison-decision p + p { margin-top: 0; max-width: 82ch; font-size: .9375rem; }
.ap-comparison-decision + p { max-width: 108ch; }
.ap-explorer > .ap-text-link { margin-top: 12px; }
@media (max-width: 760px) {
  .ap-explorer { padding-block: 28px 36px; }
  .ap-explorer-heading { display: block; }
  .ap-explorer-heading > .ap-label { max-width: none; text-align: left; margin-top: 16px; font-size: .75rem; }
  .ap-dcf-layout { grid-template-columns: 1fr; gap: 28px; margin-block: 28px; }
  .ap-dcf-mobile-result { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; position: sticky; top: 124px; z-index: 2; background: #fff; border-bottom: 1px solid var(--ap-line); padding-block: 10px; }
  .ap-dcf-mobile-result span { font-size: .8125rem; color: var(--ap-muted); }
  .ap-dcf-mobile-result strong { font-size: 2rem; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
  .ap-explorer-ready .ap-dcf-result > .ap-label, .ap-explorer-ready .ap-dcf-result > .ap-dcf-price { display: none; }
  .ap-dcf-result { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--ap-line); }
  .ap-dcf-price > span:first-child { font-size: 3.6rem; }
  .ap-comparison-controls { gap: 8px 16px; }
  .ap-comparison-controls label { flex-basis: 100%; }
  .ap-comparison-controls > button { margin-left: 0; }
  .ap-comparison-table { min-width: 670px; }
  .ap-comparison-table th, .ap-comparison-table td { padding-inline: 12px; }
  .ap-comparison-table tr > :first-child { width: 110px; padding-right: 10px; }
  .ap-comparison-table thead strong { font-size: 1.25rem; }
  .ap-comparison-table tbody td { font-size: 1rem; }
  .ap-comparison-decision, .ap-source-cells > div { grid-template-columns: 1fr; gap: 8px; }
}
/* Reading and reflection use the same editorial rhythm as the project indexes. */
.ap-project h3 a, .ap-note-entry h2 a { color: inherit; text-decoration: none; }
.ap-project-reflection { grid-area: reflection; min-width: 0; }
.ap-project-reflection summary { min-height: 44px; padding-block: 10px; font-size: .875rem; color: var(--ap-accent); cursor: pointer; }
.ap-project-reflection .ap-lessons { font-size: .875rem; margin: 6px 0 0; }
.ap-project-reflection .ap-lessons > div { grid-template-columns: 1fr; gap: 4px; padding-block: 12px; }
.ap-project-reflection > p { margin-top: 12px; font-size: .875rem; }
.ap-lessons { margin: 24px 0; }
.ap-lessons > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 28px; padding-block: 18px; border-top: 1px solid var(--ap-line); }
.ap-lessons dt { font-weight: 500; }
.ap-lessons dd { margin: 0; max-width: 74ch; color: var(--ap-muted); }
.ap-notes-index { padding-bottom: 80px; }
.ap-note-entry { display: grid; grid-template-columns: minmax(160px, .55fr) minmax(0, 1.45fr); gap: 48px; padding-block: 40px; border-top: 1px solid var(--ap-line); }
.ap-note-entry:last-of-type { border-bottom: 1px solid var(--ap-line); margin-bottom: 24px; }
.ap-note-entry h2 { font-size: clamp(1.65rem, 2.8vw, 2.3rem); max-width: 30ch; }
.ap-note-entry > div > p:not(.ap-label) { margin-block: 18px 10px; max-width: 62ch; color: var(--ap-muted); }
.ap-note-meta time { display: block; margin-top: 12px; font-size: .875rem; color: var(--ap-muted); }
.ap-note-page .ap-page-hero { padding-top: 32px; }
.ap-note-page .ap-page-hero h1 { max-width: 22ch; }
.ap-note-layout { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr); gap: 48px; padding-block: 40px 88px; border-top: 1px solid var(--ap-line); }
.ap-note-context { color: var(--ap-muted); font-size: .875rem; }
.ap-note-context a { display: inline-block; margin-top: 16px; padding-block: 8px; }
.ap-note-body { max-width: 70ch; min-width: 0; font-size: 1.0625rem; line-height: 1.8; }
.ap-note-body h2 { margin-block: 36px 18px; font-size: 1.55rem; letter-spacing: -.03em; }
.ap-note-body > p { color: #45454c; }
.ap-note-body .ap-table-scroll { margin-block: 24px; }
.ap-note-table, .ap-option-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .875rem; }
.ap-note-table { min-width: 490px; }
.ap-note-table th, .ap-note-table td, .ap-option-table th, .ap-option-table td { padding: 14px 16px 14px 0; text-align: right; border-bottom: 1px solid var(--ap-line); }
.ap-note-table th:first-child, .ap-option-table th:first-child { text-align: left; }
.ap-note-table th, .ap-option-table th { font-weight: 500; }
.ap-note-table caption, .ap-option-table caption { text-align: left; font-size: .8125rem; color: var(--ap-muted); padding-bottom: 12px; }
.ap-note-source { margin-top: 36px; padding-block: 24px; border-block: 1px solid var(--ap-line); font-size: .875rem; line-height: 1.7; color: var(--ap-muted); }
.ap-note-next { display: grid; gap: 12px; padding-top: 24px; font-size: .9375rem; }
.ap-note-next a { display: inline-block; padding-block: 8px; }

/* The option tree is a diagram, with a native disclosure for every numerical node. */
.ap-option-step-control { display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: .9375rem; }
.ap-option-step-control select { font: inherit; color: var(--ap-text); background: var(--ap-bg); min-height: 44px; padding: 8px 28px 8px 12px; border: 1px solid #a1a1a8; border-radius: 4px; max-width: 65%; }
.ap-option-difference { margin-top: 20px; font-size: .9375rem; color: var(--ap-muted); }
.ap-option-facts > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ap-option-facts dd { text-align: right; font-variant-numeric: tabular-nums; }
.ap-option-tree-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; padding-top: 28px; border-top: 1px solid var(--ap-line); }
.ap-option-tree-heading p { font-size: .875rem; color: var(--ap-muted); }
.ap-option-scroll-hint { display: none; }
.ap-option-tree-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding-top: 16px; }
.ap-option-tree-scroll svg { display: block; width: 100%; min-width: 560px; max-width: 920px; margin-inline: auto; overflow: visible; }
.ap-tree-branches line { stroke: #b3b3bb; stroke-width: 1; }
.ap-option-tree-scroll circle { fill: var(--ap-accent); }
.ap-option-tree-scroll rect { fill: var(--ap-bg); }
.ap-option-tree-scroll text { text-anchor: middle; font-family: inherit; font-variant-numeric: tabular-nums; }
.ap-tree-spot { fill: var(--ap-text); font-size: 15px; font-weight: 500; }
.ap-tree-call { fill: var(--ap-accent); font-size: 14px; }
.ap-tree-time { fill: var(--ap-muted); font-size: 13px; }
.ap-option-table { min-width: 420px; }
@media (max-width: 760px) {
  .ap-note-entry { grid-template-columns: 1fr; gap: 18px; padding-block: 28px; }
  .ap-note-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
  .ap-note-meta time { margin: 0; font-size: .8125rem; }
  .ap-notes-index { padding-bottom: 48px; }
  .ap-note-layout { grid-template-columns: 1fr; gap: 32px; padding-block: 28px 48px; }
  .ap-note-context { padding-bottom: 24px; border-bottom: 1px solid var(--ap-line); }
  .ap-note-body { font-size: 1rem; }
  .ap-lessons > div { grid-template-columns: 1fr; gap: 8px; }
  .ap-option-scroll-hint { display: block; margin-top: 12px; }
  #option-controls { gap: 20px; }
}
@media print {
  .ap-consent { display: none; }
  @page { margin: 16mm; }
  body { color: #000; font-size: 10pt; }
  .ap-header, .ap-footer, .skip-link, .ap-toc, .ap-cv-jump, .ap-cv-actions, .ap-cv-close, .ap-breadcrumb, .ap-case-downloads, .ap-chart-data { display: none; }
  main, .ap-page { display: block; }
  .ap-home-hero { min-height: 0; display: block; padding: 0 0 24px; }
  .ap-home-reveal-row { display: none; }
  .ap-container, .ap-page-hero, .ap-case-hero, .ap-case-layout, .ap-research-shell, .ap-cv-hero, .ap-cv-layout { width: 100%; padding-block: 16px; }
  .ap-case-layout, .ap-research-grid, .ap-cv-layout { display: block; }
  .ap-report-aside, .ap-cv-sidebar { border: 0; padding: 0; }
  h1 { font-size: 26pt; } h2 { font-size: 18pt; } h3 { font-size: 13pt; }
  h1, h2, h3, .ap-label { break-after: avoid; }
  figure, tr, .ap-cv-side-entry, .ap-report-panel { break-inside: avoid; }
  .ap-table-scroll, .ap-chart-scroll { overflow: visible; }
  .ap-case-table { min-width: 0; font-size: 8pt; }
  .ap-iteration-table th, .ap-iteration-table td { white-space: normal; padding: 6px 3px; }
  .ap-chart-image { min-width: 0; }
  a { color: inherit; }
  .ap-dcf-controls, .ap-comparison-controls, .ap-comparison-scroll-note { display: none; }
  .ap-explorer { break-before: page; width: 100%; }
  .ap-comparison-table { min-width: 0; }
  .ap-comparison-table th, .ap-comparison-table td { padding: 8px; }
  .ap-comparison-table tbody td { font-size: 9pt; }
  .ap-comparison-table tr > :first-child { position: static; width: 18%; }
}
