/* The selected Business in focus identity, with content-led page layouts. */
:root {
  --section-space: clamp(72px, 7.5vw, 112px);
  --layout-gap: clamp(32px, 5vw, 80px);
  --reading-width: 70ch;
  --page-gutter: max(var(--pad), calc((100vw - 1440px) / 2));
}

.section { padding: var(--section-space) var(--page-gutter); }
.hero-publicis { padding: 0; }
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px var(--page-gutter) 112px;
}
.hero-publicis .hero-copy { max-width: 1060px; }
.hero-publicis .hero-description { max-width: 73ch; line-height: 1.65; }
.hero-threads { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.web-threads-canvas, .hero-threads-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 45%, #000 84%);
  mask-image: linear-gradient(to bottom, transparent 45%, #000 84%);
}
.hero-threads[data-webgl-ready] .hero-threads-fallback { visibility: hidden; }
.theme-publicis .issue-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 32px var(--page-gutter);
  gap: var(--layout-gap);
}
.issue-links p { max-width: 59ch; font-family: var(--body); }
.issue-links a { min-width: 0; }
.issue-links a + a { border-left: 1px solid #ffffff60; padding-left: var(--layout-gap); }

.editorial-split, .cases-intro {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: var(--layout-gap);
}
.theme-publicis .editorial-split > .section-heading,
.theme-publicis .cases-intro > .section-heading {
  margin: 0;
  max-width: none;
  text-align: left;
}
.editorial-split .section-heading h2, .cases-intro h2 { font-size: clamp(32px, 3.1vw, 46px); }
.reading-copy { font-size: 17px; line-height: 1.8; max-width: var(--reading-width); }
.proof-section { background: var(--paper); border-bottom: 1px solid var(--line); }
.proof-note { border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; margin-top: 32px; font-size: 15px; }
.proof-note strong { display: block; color: var(--accent); margin-bottom: 4px; }
.theme-publicis .opportunities { padding-block: var(--section-space); }
.opportunity-list { gap: 40px; }
.theme-publicis .opportunity { display: flex; flex-direction: column; align-items: flex-start; padding-top: 16px; }
.opportunity .service-diagram { margin: 0 0 28px; }
.service-diagram { display: block; width: 100%; height: auto; max-height: 170px; }
.opportunity h3 { margin-bottom: 18px; }
.opportunity p { color: var(--muted); font-size: 16px; }
.opportunity .text-link { margin-top: auto; padding-top: 16px; }
.theme-publicis .product-card { overflow: hidden; }
.theme-publicis .product-copy { align-self: center; }

.example-section {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr);
  gap: var(--layout-gap);
  align-items: start;
}
.theme-publicis .example-section > .section-heading { margin: 0; text-align: left; }
.example-section .illustration-note { margin-top: 20px; }
.example-grid { display: block; }
.example-card { padding: 0; border: 0; border-top: 1px solid var(--line); background: transparent; }
.example-card:last-child { border-bottom: 1px solid var(--line); }
.example-card summary { padding: 24px 40px 24px 0; font-size: 23px; }
.example-card summary::after { top: 22px; right: 3px; color: var(--accent); }
.example-card[open] summary { color: var(--accent); }
.example-card > div { margin: 0; padding: 0 0 32px; }
.example-kicker { max-width: 65ch; color: var(--muted); }
.example-body { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; margin-top: 24px; }
.example-card dl { margin: 0; padding: 24px; border: 0; background: var(--surface); }
.example-card dt { font-size: 12px; color: var(--muted); }
.example-card dd { font-size: 15px; margin-top: 5px; }
.example-card h3 { margin: 0 0 10px; font-size: 17px; }
.example-card h3:not(:first-child) { margin-top: 26px; }
.example-card p { line-height: 1.75; }

.cases-section { background: var(--surface); }
.cases-intro > div:last-child { padding-top: 8px; max-width: 62ch; font-size: 17px; }
.case-disclosure { font-size: 14px; color: var(--muted); }
.cases-intro .text-link { margin-top: 12px; }
.theme-publicis .fit-section { padding-block: var(--section-space); }
.fit-section > div { max-width: 1100px; margin-inline: auto; }
.fit-section ul { padding: 0; margin: 48px 0 36px; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; text-align: left; }
.fit-section li { border-top: 1px solid #ffffff80; padding-top: 22px; font-size: 16px; }
.theme-publicis .process-content ol { display: block; margin: 0 0 32px; }
.process-content li { padding: 0 0 32px 64px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.process-content li:last-child { margin-bottom: 0; }
.process-content li::before { font-size: 30px; top: 3px; }
.process-content li strong { font-size: 23px; }
.provider-list { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 24px 0 0; margin: 28px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; }
.closing > .button { margin-top: 32px; }

/* Reading pages: a stable contents rail and a bounded text column. */
.inner-hero { padding-block: 56px 64px; min-height: 0; }
.breadcrumbs { display: flex; gap: 10px; align-items: baseline; margin-bottom: 28px; line-height: 1.6; }
.inner-hero h1 { max-width: 24ch; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.15; font-weight: 400; }
.inner-intro { max-width: var(--reading-width); line-height: 1.75; }
.inner-hero.has-visual { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: var(--layout-gap); padding-right: var(--page-gutter); }
.inner-hero-copy, .inner-hero-visual { min-width: 0; }
.inner-hero-visual { align-self: center; }
.inner-hero-visual .product-art { position: relative; inset: auto; width: 100%; height: 270px; }
.inner-hero-visual .product-concept-label { position: static; width: auto; margin: 12px 0 0; font-size: 12px; }
.inner-layout { grid-template-columns: 216px minmax(0, 1fr); gap: var(--layout-gap); padding: 56px var(--page-gutter) var(--section-space); }
.inner-sections { max-width: 1000px; min-width: 0; }
.contents-nav { gap: 0; padding-right: 16px; }
.contents-nav > span { display: block; margin-bottom: 16px; }
.contents-links { display: flex; flex-direction: column; gap: 4px; }
.contents-nav a { display: block; padding: 9px 0; line-height: 1.5; }
.content-section { margin-bottom: 56px; padding-bottom: 56px; }
.content-section > h2 { max-width: 30ch; font-size: clamp(28px, 2.5vw, 36px); font-weight: 400; margin-bottom: 24px; line-height: 1.25; }
.content-section > p, .content-section > ul, .content-section > ol { max-width: var(--reading-width); }
.content-section p { line-height: 1.8; }
.content-section .button { margin-top: 12px; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.topic { padding-top: 24px; border-top: 1px solid var(--line); }
.content-section .topic h3, .content-section .topic h4 { font-size: 23px; line-height: 1.3; margin: 0 0 16px; scroll-margin-top: 140px; }
.capability-group + .capability-group { margin-top: 48px; }
.content-section .capability-group > h3 { margin: 0 0 24px; font-size: 26px; font-weight: 400; }
.product-context { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); max-width: var(--reading-width); }
.topic p:last-child { margin-bottom: 0; }
.example-console { padding: 28px 32px; }
.example-console > .eyebrow { margin: 0 0 18px; }
.example-console > h3 { display: none; }
.example-console summary { font-size: 20px; line-height: 1.4; }
.stage-list { list-style: none; counter-reset: station; padding: 0 !important; margin-block: 24px; }
.stage-list li { counter-increment: station; padding: 20px; margin: 0; background: var(--surface); }
.stage-list li::before { content: counter(station, decimal-leading-zero); display: block; color: var(--accent); font-size: 13px; margin-bottom: 8px; }
.engagement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.engagement-option { padding: 28px 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.engagement-option h4 { font-size: 24px; }
.engagement-option dl { background: var(--surface); padding: 20px; }
.engagement-option dt { font-size: 13px; }
.engagement-option dd { font-size: 15px; line-height: 1.7; }
.engagement-option dd:last-child { margin-bottom: 0; }
.content-section .engagement-option details { padding: 6px 0 20px; }
.content-section .engagement-option summary { font-size: 16px; }
.content-section .engagement-option details > div { padding-top: 12px; }
.page-approach .content-section[data-stage] { position: relative; padding-left: 64px; counter-increment: approach; }
.page-approach .inner-sections { counter-reset: approach; }
.page-approach .content-section[data-stage]::before { content: counter(approach, decimal-leading-zero); position: absolute; inset: 0 auto auto 0; color: var(--accent); font: 300 28px/1.5 var(--display); }
.content-section table { display: block; overflow-x: auto; max-width: 100%; }

@media (max-width: 1000px) {
  .editorial-split, .cases-intro { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; }
  .example-section { grid-template-columns: 1fr; gap: 28px; }
  .inner-hero.has-visual { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
  .inner-layout { grid-template-columns: 176px minmax(0, 1fr); gap: 32px; }
  .topic-grid, .engagement-grid { grid-template-columns: 1fr; }
  .opportunity-list { gap: 24px; }
}
@media (max-width: 760px) {
  .hero-stage { padding: 44px var(--pad) 76px; }
  .hero-publicis h1 { font-size: clamp(34px, 7.7vw, 48px); line-height: 1.16; }
  .hero-publicis .hero-description { font-size: 16px; margin-top: 24px; }
  .hero-publicis .hero-actions { gap: 12px; margin-top: 28px; }
  .hero-threads { opacity: .72; }
  .theme-publicis .issue-links { display: block; padding-block: 12px; }
  .issue-links a + a { border-left: 0; padding-left: 0; }
  .theme-publicis .issue-links a { padding-block: 24px; }
  .issue-links strong { font-size: 23px; }
  .editorial-split, .cases-intro { display: grid; grid-template-columns: 1fr; gap: 28px; }
  .editorial-split .section-heading h2, .cases-intro h2 { font-size: 33px; }
  .reading-copy { font-size: 16px; }
  .theme-publicis .section-heading { margin-bottom: 36px; }
  .opportunity-list { display: block; }
  .theme-publicis .opportunity { padding-block: 20px 28px; margin: 0 0 20px; }
  .opportunity .service-diagram { max-width: 320px; max-height: 130px; margin: 0 auto 20px; }
  .opportunity .text-link { margin-top: 0; }
  .example-body { grid-template-columns: 1fr; gap: 24px; }
  .example-card summary { font-size: 22px; }
  .fit-section ul { grid-template-columns: 1fr; gap: 22px; margin-top: 32px; }
  .theme-publicis .fit-section { text-align: left; }
  .theme-publicis .fit-section p { margin-block: 24px; }
  .process-content li { padding-left: 52px; }
  .closing h2 { font-size: 34px; }
  .inner-hero, .inner-hero.has-visual { display: block; padding-block: 32px 44px; min-height: 0; }
  .inner-hero h1 { font-size: clamp(34px, 8vw, 43px); overflow-wrap: normal; }
  .inner-hero-visual { margin-top: 32px; }
  .inner-hero-visual .product-art { height: 225px; }
  .breadcrumbs { gap: 6px; font-size: 12px; margin-bottom: 24px; }
  .inner-layout { display: block; padding-top: 28px; }
  .contents-nav { display: block; padding: 0 0 20px; margin-bottom: 36px; overflow: visible; }
  .contents-nav > span { margin-bottom: 8px; }
  .contents-links { flex-direction: row; gap: 20px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 4px 4px 10px; }
  .contents-nav a { flex-shrink: 0; white-space: nowrap; padding: 12px 0; min-height: 44px; border: 0; }
  .content-section { margin-bottom: 40px; padding-bottom: 40px; }
  .content-section > h2 { font-size: 29px; }
  .topic-grid, .engagement-grid { gap: 24px; }
  .example-console { padding: 22px; }
  .example-console summary { font-size: 19px; }
  .stage-list { display: grid; grid-template-columns: 1fr; }
  .page-approach .content-section[data-stage] { padding-left: 48px; }
  .page-approach .content-section[data-stage]::before { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-threads { opacity: .6; }
}
.package-option { scroll-margin-top: 140px; }
.package-option > h3 { margin-top: 0; }
.package-links, .cases-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; }
.package-links { min-width: 0; }
.package-links .text-link { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.package-art { aspect-ratio: 1; overflow: hidden; background: var(--surface); margin-bottom: 18px; position: relative; }
.package-art .fragment { transform: scale(.72); transform-origin: top left; width: 139%; margin: 0; font-size: 13px; overflow-wrap: normal; word-break: keep-all; }
.package-art .fragment dt { white-space: nowrap; flex-shrink: 0; }
.package-art > .illustration-note { position: absolute; right: 12px; bottom: 10px; z-index: 1; }
.package-option > .photo { margin: 0 0 18px; }
/* Tinted band: bleeds right to the viewport edge; on the left only into the layout gap (never under the sidebar above 1440). */
.on-surface { --bleed-left: min(var(--page-gutter), var(--layout-gap)); background: var(--surface); padding: 40px var(--page-gutter) 56px var(--bleed-left); margin-inline: calc(var(--bleed-left) * -1) calc(var(--page-gutter) * -1); }
.cases-intro .cases-links .text-link { margin-top: 0; }
.terms-list dt { font-weight: 500; color: var(--ink); }
.terms-list dd { margin: 5px 0 18px; max-width: 75ch; }

/* Photographs (scripts/pictures.mjs): captioned illustrations; .photo-square crops to 1:1. */
.photo { margin: 0; min-width: 0; }
.photo picture, .photo img { display: block; width: 100%; height: auto; }
.photo figcaption { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.photo-square img { aspect-ratio: 1 / 1; object-fit: cover; }
.photo-notice { margin-top: 10px; }
.legal-address { margin-top: 10px; }

/* Home hero: on wide screens a decorative deck of three fragments sits beside the copy, threads behind both. */
.hero-stack, .hero-stack-note { display: none; }
@media (min-width: 1180px) {
  .hero-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, 520px); gap: var(--layout-gap); align-items: center; }
  .hero-stage > .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-stage > .hero-stack-note { display: block; grid-column: 2; grid-row: 1; align-self: end; position: relative; z-index: 4; margin: 0; }
  /* A deck: the back cards peek out above the front one, 40px per slot; the whole deck fades out at its foot. */
  .hero-stack {
    display: grid; grid-column: 2; grid-row: 1; padding: 80px 48px 0 0; pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent);
    mask-image: linear-gradient(to bottom, #000 75%, transparent);
  }
  .hero-stack-card {
    grid-area: 1 / 1;
    z-index: calc(3 - var(--slot));
    transform: translate(calc(var(--slot) * 24px), calc(var(--slot) * -40px));
    max-height: 440px;
    overflow: hidden;
    text-align: left;
    background: var(--paper);
    border: 1px solid var(--line);
    transition: opacity .7s cubic-bezier(.2,1,.2,1), transform .7s cubic-bezier(.2,1,.2,1);
  }
  /* Cards stay opaque so a back card never shows through the one above it; only their contents dim. */
  .hero-stack-card .fragment { height: 100%; background: var(--paper); font-size: 13px; padding: 20px; opacity: calc(1 - var(--slot) * .4); transition: opacity .7s cubic-bezier(.2,1,.2,1); }
  .hero-stack-card .ui { max-width: none; }
  .hero-stack-card .ui-title { font-size: 16px; }
  .hero-stack-card .ui-meta, .hero-stack-card .ui-label { font-size: 12px; }
}
body.motion-paused .hero-stack-card, body.motion-paused .hero-stack-card .fragment { transition: none; }
@media (prefers-reduced-motion: reduce) { .hero-stack-card, .hero-stack-card .fragment { transition: none; } }

/* Three ways we work: a square photograph, then the larger diagram on its own surface panel. */
.opportunity-picture { width: 100%; margin: 0 0 28px; display: flex; flex-direction: column; gap: 16px; }
.opportunity-diagram { padding: 20px 24px; background: var(--surface); }
.opportunity-diagram .service-diagram { max-height: 200px; margin: 0; }

/* Evaluation band: copy on the left, the scorecard fragment on the right. */
@media (min-width: 1001px) {
  .theme-publicis .fit-section { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--layout-gap); align-items: center; text-align: left; }
  .theme-publicis .fit-section > div { margin: 0; max-width: none; }
  .theme-publicis .fit-section h2, .theme-publicis .fit-section p { margin-inline: 0; }
  .fit-section ul { grid-template-columns: 1fr; gap: 18px; margin: 36px 0 32px; }
}
.fit-section > .fragment { text-align: left; }

/* Data residency: the drawn map under the heading, copy beside it. */
.sovereignty-section .reading-copy { grid-column: 2; grid-row: 1 / span 2; }
.sovereignty-map { grid-column: 1; grid-row: 2; min-width: 0; }
.diagram { display: block; width: 100%; height: auto; }
.diagram-map { max-width: 520px; }
.diagram-map .map-land { stroke: var(--ink); stroke-opacity: .55; fill: var(--paper); }
.diagram-map .map-box { stroke: var(--ink); stroke-opacity: .3; }
.diagram-map .map-link { stroke: var(--accent); }
.diagram-map text { fill: var(--ink); stroke: none; font: 400 20px/1 var(--body); }
.diagram-map .map-kicker { fill: var(--muted); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.diagram-map .map-land { stroke-linejoin: round; }
.diagram-map .map-inside circle { fill: var(--accent); stroke: none; }

/* Closing: the still Side Rays picture behind the call to action (Home already has its one canvas). */
html[data-reveal] .reveal:not(.is-in) > .field.field-rays { opacity: 1; transform: none; transition: none; }

@media (max-width: 1000px) {
  .theme-publicis .fit-section > .fragment { margin-top: 40px; }
}
@media (max-width: 760px) {
  .sovereignty-section .reading-copy, .sovereignty-map { grid-column: auto; grid-row: auto; }
  /* Keep the map labels near 12px when the drawing shrinks to the phone column. */
  .diagram-map text { font-size: 22px; }
  .diagram-map .map-kicker { font-size: 18px; }
  .opportunity-diagram { padding: 14px 16px; }
  .opportunity .opportunity-diagram .service-diagram { max-width: none; max-height: 130px; margin: 0; }
}

/* Readiness self-check and bundle picker (calc.js). Field styling matches .request-form. */
form.live { background: var(--paper); border: 1px solid var(--line); padding: 28px; margin-top: 24px; max-width: 760px; }
form.live fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
form.live legend { padding: 0; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 9px; }
form.live label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 22px 0 0; min-height: 44px; cursor: pointer; }
form.live input[type=radio], form.live input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); background: var(--paper); border-radius: 4px; flex-shrink: 0; }
form.live .live-choice { display: flex; align-items: flex-start; width: 100%; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
form.live .live-choice > span > span { display: block; color: var(--muted); }
form.live .button { margin-top: 4px; }
.live-result:not(:empty) { display: block; background: var(--surface); padding: 20px 22px; margin-top: 22px; font-size: 15px; color: var(--ink); }
.live-result ul { margin: 12px 0; padding-left: 20px; }
.live-result li { margin: 8px 0; }
.live-result li ul li { color: var(--muted); font-size: 14px; margin: 4px 0; }
.live-result p { margin: 0 0 10px; }
@media (max-width: 760px) { form.live { padding: 20px 16px; } form.live label { margin-right: 16px; } }
form.live .live-choice small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Solutions: the rays behind the hero copy; a drawn picture above each "What we build" topic; the parallel-run drawing
   on the surface tint; the six-rules fragment beside the shop counter; the door chooser as a Packages-style form. */
.inner-hero.has-field .inner-hero-copy { position: relative; }
.topic-picture { margin: 0 0 20px; padding: 16px 18px; background: var(--surface); }
.topic-picture .diagram { margin: 0 auto; }
.parallel-picture { margin: 8px 0 32px; padding: 28px 28px 20px; background: var(--surface); }
.parallel-picture .diagram { margin: 0 auto; }
.sme-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; margin: 32px 0; }
.sme-split .fragment { margin: 0; min-width: 0; }
.sme-split .photo { margin: 0; min-width: 0; }
.sme-split .photo img { aspect-ratio: 3/2; object-fit: cover; width: 100%; height: auto; }
#how-we-start #doors-heading { margin-top: 40px; font-size: 23px; }
@media (max-width: 760px) {
  .sme-split { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .parallel-picture { padding: 16px 12px 12px; margin-inline: 0; }
  .topic-picture { padding: 12px; }
}

/* Evaluation: the probe under "Why independent testing", the findings register under the deliverables, and the
   two drawings full-width on the surface tint at the top of their sections. */
.probe-live { margin: 32px 0 0; max-width: 640px; }
.probe-live .fragment, .findings-picture .fragment { margin: 0; }
.findings-picture { margin: 40px 0 0; max-width: 720px; }
.section-picture { margin: 0 0 32px; padding: 28px 28px 20px; background: var(--surface); }
.section-picture .diagram { margin: 0 auto; }
@media (max-width: 760px) { .section-picture { padding: 16px 12px 12px; } }
/* The explorer's option chips keep their own spacing inside a content section (fragments are exempted from the
   content-section list rules in site.css). */
.content-section ul.explorer-options { padding-left: 0; }
.content-section ul.explorer-options li { margin: 0; }
.content-section .explorer-options a { text-decoration: none; }

/* Evaluation: the export's numbered lists as titled items, a decorative counter beside each; the scorecard picture above
   the explorer; the footnote as a labelled source note. */
.content-section ol.item-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; max-width: var(--reading-width); }
.content-section ol.item-list > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; margin: 0; padding: 22px 0; border-top: 1px solid var(--line); max-width: none; }
.content-section ol.item-list > li:last-child { border-bottom: 1px solid var(--line); }
.content-section ol.item-list-plain > li { grid-template-columns: minmax(0, 1fr); }
.item-list .item-num { grid-row: 1 / 3; font: 400 22px/1.2 var(--display); color: var(--accent); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.content-section .item-list h3 { margin: 0 0 8px; font-size: 24px; color: var(--ink); }
.content-section .item-list p { margin: 0; }
.scorecard-picture { margin: 28px 0 0; max-width: 640px; }
.scorecard-picture .fragment { margin: 0; }
.content-section .source-note { font-size: 14px; border-left: 2px solid var(--accent); padding: 4px 0 4px 14px; }
.source-label { display: inline-block; margin-right: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.source-note cite { font-style: normal; color: var(--ink); }
@media (max-width: 760px) { .content-section ol.item-list > li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 10px; } .item-list .item-num { font-size: 18px; } }
.item-list:not(.item-list-plain) > li > :not(.item-num) { grid-column: 2; }

/* Approach: the four stages inside one timeline (timeline.js). Desktop: the horizontal drawing stays in view (sticky
   under the header) while the stages scroll, each stage copy left and its photograph right. Below 1000 px: the vertical
   drawing above the stages and a sticky row of stage chips. Every stage stays visible; the marker is state, not a loop. */
.timeline { position: relative; }
.timeline-picture { position: sticky; top: 128px; z-index: 3; margin: 0 0 44px; padding: 18px 24px 14px; background: var(--surface); box-shadow: 0 -32px 0 var(--paper); } /* the shadow covers the strip between the header and the pinned drawing */
.timeline-picture .diagram { display: block; width: 100%; height: auto; margin: 0 auto; }
[data-diagram="timeline"] { max-width: 820px; }
.timeline-picture [data-diagram="timeline-vertical"] { display: none; max-width: 400px; }
.timeline-chips { display: none; }
.timeline .content-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); grid-template-rows: auto 1fr; column-gap: 44px; scroll-margin-top: calc(var(--timeline-offset, 340px) - 120px); }
.timeline .content-section > h2, .timeline .stage-copy { grid-column: 1; min-width: 0; }
.timeline .stage-copy > p:first-child { margin-top: 0; }
.timeline .content-section > .photo { grid-column: 2; grid-row: 1 / 3; margin: 6px 0 0; min-width: 0; }
.timeline .content-section > .photo img { aspect-ratio: 3/2; object-fit: cover; width: 100%; height: auto; }
.timeline .content-section > .photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.timeline > .content-section:last-child { margin-bottom: 50px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }

/* The drawing's states: grey until a stage is reached, the line filling red up to the stage most in view. */
.diagram .tl-seg, .diagram .tl-stem { stroke: var(--ink); stroke-opacity: .28; }
.diagram .tl-seg { stroke-width: 2.5; }
.diagram .tl-dot { stroke: var(--ink); stroke-opacity: .5; stroke-width: 2; }
.diagram .tl-core { fill: var(--ink); fill-opacity: .3; stroke: none; }
.diagram .tl-halo { fill: none; stroke: var(--accent); stroke-opacity: 0; }
.diagram .tl-red { stroke: var(--accent); }
.diagram .tl-label { fill: var(--muted); stroke: none; font: 400 19px/1 var(--body); }
.diagram .tl-seg, .diagram .tl-dot, .diagram .tl-core, .diagram .tl-halo, .diagram .tl-label, .diagram .tl-scene { transition: stroke-dashoffset .8s cubic-bezier(.2,1,.2,1), stroke .4s var(--ease), stroke-opacity .4s var(--ease), fill .4s var(--ease), fill-opacity .4s var(--ease), opacity .4s var(--ease); }
.timeline[data-ready] .tl-node:not(.is-active) .tl-scene { opacity: .5; }
.tl-node:is(.is-active, .is-past) .tl-seg { stroke: var(--accent); stroke-opacity: 1; }
.tl-node:is(.is-active, .is-past) .tl-dot { stroke: var(--accent); stroke-opacity: 1; }
.tl-node:is(.is-active, .is-past) .tl-core { fill: var(--accent); fill-opacity: 1; }
.tl-node.is-active .tl-halo { stroke-opacity: .4; }
.tl-node.is-active .tl-label { fill: var(--ink); font-weight: 500; }
body.motion-paused .timeline *, body.motion-paused .timeline-chips { transition: none; scroll-behavior: auto; }
@media (min-width: 1000px) and (max-width: 1179px) { .diagram .tl-label { font-size: 23px; } }

@media (max-width: 999px) {
  .timeline-picture [data-diagram="timeline"] { display: none; }
  .timeline-picture [data-diagram="timeline-vertical"] { display: block; }
  .timeline-picture { position: static; margin: 0 0 8px; padding: 16px; box-shadow: none; }
  .timeline-chips { display: flex; gap: 8px; position: sticky; top: var(--timeline-header, 96px); z-index: 3; margin: 0 0 36px; padding: 10px 4px; overflow-x: auto; background: var(--paper); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .timeline-chips::-webkit-scrollbar { display: none; }
  /* Without the script the header height is unknown, so the chips stay in the flow as plain links. */
  .timeline:not([data-ready]) .timeline-chips { position: static; }
  .timeline-chips a { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); color: var(--muted); font: 500 14px/1.3 var(--display); white-space: nowrap; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
  .timeline-chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .timeline-chips a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .timeline-chips .chip-num { font-size: 12px; letter-spacing: .06em; color: var(--accent); font-variant-numeric: tabular-nums; }
  .timeline-chips a[aria-current] .chip-num { color: inherit; opacity: .7; }
  .timeline .content-section { display: block; scroll-margin-top: calc(var(--timeline-offset, 180px) - 120px); }
  .timeline .content-section > .photo { margin: 24px 0 0; }
}
@media (max-width: 760px) { .timeline-chips { top: var(--timeline-header, 78px); } .timeline-picture { padding: 12px; } }

/* Company: the licence card beside the facts list from 1000 px; the wall picture full width at the top of "Our
   independence", its two sides as switch panels under it, side by side on desktop (both show without JS). */
.company-facts { display: grid; gap: 24px; margin-top: 32px; }
.company-facts .fragment { margin: 0; min-width: 0; max-width: 520px; }
.company-facts-text { min-width: 0; }
.company-facts-text h3 { margin: 0 0 12px; }
.content-section ul.company-facts-list { margin: 0; }
@media (min-width: 1000px) { .company-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.diagram-wall { max-width: 760px; }
.wall-switch { margin-top: 32px; }
.wall-views { gap: 16px; }
.wall-side { margin: 0; padding: 20px 24px; border: 1px solid var(--line); background: var(--paper); min-width: 0; }
.wall-side .wall-side-kicker { margin: 0 0 12px; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.5; }
.wall-side h3 { margin: 0 0 8px; font-size: 18px; }
.wall-side ul { margin: 0 0 16px; }
.wall-side li::first-letter { text-transform: uppercase; }
/* Each side keeps its own column, so with JS the shown panel sits on its side of the wall. */
@media (min-width: 1000px) { .wall-views { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; } .wall-side[data-state="build"] { grid-column: 1; } .wall-side[data-state="test"] { grid-column: 2; } }

/* Contact: online meetings and remote collaboration; the registered address stays in the legal footer. */
.content-section#booking { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 40px; align-items: start; }
.content-section#booking > * { grid-column: 1 / -1; min-width: 0; }
.content-section#booking > .button { justify-self: start; }
.contact-remote { display: grid; gap: 36px; margin-top: 40px; padding: clamp(24px, 3.4vw, 48px); background: var(--surface); }
.contact-remote > * { min-width: 0; }
.contact-remote-intro h3 { margin: 0 0 20px; font-size: clamp(28px, 2.6vw, 38px); font-weight: 400; line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
.contact-remote-intro p { max-width: 46ch; margin: 0; color: var(--muted); }
.contact-remote-details { margin: 0; }
.contact-remote-details > div { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-remote-details > div:first-child { padding-top: 0; border-top: 0; }
.contact-remote-details > div:last-child { padding-bottom: 0; }
.contact-remote-details dt { margin-bottom: 8px; font-family: var(--display); font-size: 20px; font-weight: 400; color: var(--ink); }
.contact-remote-details dd { margin: 0; color: var(--muted); }
@media (min-width: 1000px) {
  .contact-remote { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
}

/* Presentation: each slide as a card on paper with a hairline border, its number drawn large above the title. */
.content-section.slide-card { display: flex; flex-direction: column; padding: 36px 40px 40px; margin-bottom: 32px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); }
.content-section.slide-card:last-child { border: 1px solid var(--line); }
.slide-card > * { min-width: 0; }
.slide-num { order: -1; display: block; margin: 0 0 18px; font: 300 clamp(56px, 5.6vw, 88px)/1 var(--display); letter-spacing: -.04em; color: color-mix(in srgb, var(--muted) 38%, var(--paper)); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .content-section.slide-card { padding: 24px 20px 28px; } }

/* Case studies: the rule the case answers to, as a source note; where AI did the work, as a chip. */
.content-section .ai-tag { margin: 18px 0 0; }
.ai-tag .ui-chip { font-size: 14px; }
