/* Shared editorial layer. This file is the source of truth: edit it here. (The old hub generator copy is retired.) */
:root {
  --ed-pad: max(var(--case-gutter), 20px);
  --ed-gap: 24px;
  --ed-col: 34em;
  
  --ed-span-wide: 12; --ed-span-text: 12; --ed-span-narrow: 12;
  
  --ed-inset: max(16px, calc(var(--ed-pad) - var(--ed-panel-g)));
  
  --ed-body: 17px;
  --ed-lead: clamp(24px, 2.5vw, 38px);
  --ed-statement: clamp(20px, 1.8vw, 26px);  /* statements and section openers: one style (23 Nov) */
  
  --ed-result: clamp(30px, 3vw, 44px);
  
  --ed-measure: 33em; 
  --ed-panel-g: max(12px, 1.5vw);
  --ed-panel-r: 4px;
  --ed-panel-ink: #121110;
  
  --ed-green: #157A3A;
  --nav-h: 64px;

  --sp-label: 12px;                         
  --sp-cap: 14px;                           
  --sp-sub: clamp(20px, 1.8vw, 30px);       
  --sp-lead: clamp(36px, 3.6vw, 56px);      
  --sp-beat: clamp(96px, 11vw, 176px);
  /* Two gaps, so a section break reads as one (23 Nov): --sp-beat between sections (and before the story),
     --sp-step between the beats inside a section, about 0.6 of the beat. At 1440: 94 inside, 158 between.
     From 1600: 104 and 176. At 375: 64 and 96. */
  --sp-step: clamp(64px, 6.5vw, 104px);
  --sp-bar: 46px;
  
  --sp-clear: calc(var(--nav-h) + var(--sp-bar) + 40px);
  --ed-beat: var(--sp-beat);
  --ed-near: var(--sp-lead);

  --r-lg: 4px; --r-sm: 2px; --r-card: clamp(12px, 1.25vw, 18px);
}
@media (max-width: 767px) { :root { --ed-gap: 16px; --nav-h: 58px; } }
@media (min-width: 1081px) { :root { --ed-span-wide: 12; --ed-span-text: 10; --ed-span-narrow: 8; } }
@media (min-width: 1280px) { :root { --ed-span-wide: 10; --ed-span-text: 8; --ed-span-narrow: 6; } }
@media (min-width: 1680px) { :root { --ed-span-wide: 8; --ed-span-text: 6; --ed-span-narrow: 4; } }
@media (min-width: 2200px) { :root { --ed-span-wide: 6; --ed-span-text: 4; --ed-span-narrow: 4; } }
html { scroll-padding-top: var(--sp-clear); }

@property --bg { syntax: '<color>'; inherits: true; initial-value: #F8F6F2; }
@property --bg-raised { syntax: '<color>'; inherits: true; initial-value: #EFEDE9; }
@property --bg-surface { syntax: '<color>'; inherits: true; initial-value: #E4E2DE; }
@property --more-bg { syntax: '<color>'; inherits: true; initial-value: #F8F6F2; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #0E0D0B; }
@property --ink-mid { syntax: '<color>'; inherits: true; initial-value: #5C5A56; }
@property --ink-light { syntax: '<color>'; inherits: true; initial-value: #6A6863; }
@property --rule { syntax: '<color>'; inherits: true; initial-value: rgba(14, 13, 11, 0.1); }
@property --ed-green { syntax: '<color>'; inherits: true; initial-value: #157A3A; }
html {
  --theme-ease: cubic-bezier(0.33, 0, 0.2, 1);
  transition: --bg 600ms var(--theme-ease), --bg-raised 600ms var(--theme-ease), --bg-surface 600ms var(--theme-ease),
              --more-bg 600ms var(--theme-ease), --ink 600ms var(--theme-ease), --ink-mid 600ms var(--theme-ease),
              --ink-light 600ms var(--theme-ease), --rule 600ms var(--theme-ease), --ed-green 600ms var(--theme-ease);
}
html.ed-theme-init { transition: none !important; }
@media (prefers-reduced-motion: reduce) { html { transition: none; } }

html.ed-theme-dark {
  --bg: #121110; --bg-raised: #1C1A18; --bg-surface: #262422; --more-bg: #121110;
  --ink: #F3F0EA; --ink-mid: #B4AFA6; --ink-light: #A39E95; --rule: rgba(243, 240, 234, 0.14);
  --ed-green: #3DB56B;
}

html.ed-theme-warm {
  --bg: #E6D8C4; --bg-raised: #DDCDB6; --bg-surface: #D3C1A8; --more-bg: #E6D8C4;
  --ink: #17150F; --ink-mid: #57514A; --ink-light: #5F5952; --rule: rgba(23, 21, 15, 0.14);
  --ed-green: #116430;
}

.ed-panel, .ed-plate, .ed-ba-media, .ed-ba-plate, .cs-flow, .cs-spread, .cs-hyp-note, .cs-impact-drawer {
  --bg: #F8F6F2; --bg-raised: #EFEDE9; --bg-surface: #E4E2DE; --more-bg: #F8F6F2;
  --ink: #0E0D0B; --ink-mid: #5C5A56; --ink-light: #6A6863; --rule: rgba(14, 13, 11, 0.1);
  --ed-green: #157A3A;
}

.ed-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.ed-proto { position: fixed; top: 0; left: 131px; z-index: 201; height: 64px; display: flex; align-items: center; pointer-events: none; }
.ed-proto span { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 28%, transparent); background: color-mix(in srgb, var(--bg) 72%, transparent); font: 500 12px/1 var(--sans); color: var(--ink); white-space: nowrap; }
.ed-proto .s { display: none; }
@media (max-width: 1080px) { .ed-proto { left: 123px; } }
@media (max-width: 767px) { .ed-proto { left: 101px; height: 58px; } .ed-proto .l { display: none; } .ed-proto .s { display: inline-flex; } }

.ed-frame { width: calc(100% - 2 * var(--ed-pad)); margin-inline: auto; }
.ed-col { --span: var(--ed-span-narrow); width: calc((100% - 2 * var(--ed-pad) + var(--ed-gap)) * var(--span) / 12 - var(--ed-gap)); margin-inline: auto; padding-inline: 0; }
.ed-col--wide { --span: var(--ed-span-text); }
@media (max-width: 1080px) { .ed-col > * { max-width: 760px; } }

.ed-col > .ed-p, .ed-opener > .ed-p { max-width: var(--ed-measure); }
.ed-grid { width: calc(100% - 2 * var(--ed-pad)); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ed-gap); align-items: center; }
.ed-grid > * { min-width: 0; }

.ed-lead { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--ed-lead); line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); text-wrap: pretty; }
.ed-accent { color: var(--ed-green); }
a.ed-accent { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a.ed-accent:hover { text-decoration-color: currentColor; }
.ed-statement { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--ed-statement); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.ed-statement--mid { color: var(--ink-mid); }

.ed-col > .ed-p.ed-lead-sub { margin-top: var(--sp-sub); }
/* The line under a lead runs to the lead's width. The lead is balanced, so it stops short of its column: editorial.js measures its widest line into
   --lead-w. The sub-line fills its lines (pretty, not balance), so it can't fold back to half. Phones keep the column. */
.ed-lead + .ed-p:is(.ed-lead-sub, .ed-sub) { max-width: max(var(--lead-w, var(--ed-measure)), 20em); text-wrap: pretty; }
@media (max-width: 767px) { .ed-lead + .ed-p:is(.ed-lead-sub, .ed-sub) { max-width: none; } }
.ed-statement--mid em { color: var(--ink); }
.ed-p { margin: 0; font-family: var(--sans); font-size: var(--ed-body); line-height: 1.6; letter-spacing: -0.005em; color: var(--ink-mid); text-wrap: pretty; }

.ed-p--ink { color: var(--ink); font-size: clamp(17px, 1.25vw, 18px); line-height: 1.5; }
.ed-cap { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--ink-mid); text-wrap: pretty; }

.ed-hero { position: relative; }

.ed-hero-stage { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; padding: clamp(28px, 6vh, 72px) var(--ed-pad) 0; text-align: center; }
.ed-back { position: absolute; top: clamp(12px, 2vh, 24px); left: var(--ed-pad); z-index: 3; display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); color: var(--ink-mid); }
.ed-back:hover { color: var(--ink); }

.ed-back:focus-visible, a.ed-accent:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-sm); }
.ed-bar a:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: var(--r-sm); }

.ed-sec[tabindex="-1"]:focus { outline: none; }
.ed-back svg { width: 16px; height: 16px; }
.ed-hero-text { position: relative; z-index: 1; }
/* The one small label: the hero's role line, and a section kicker where a page has one (Australia's phases). 13px, sentence case. */
.ed-kicker { margin: 0; font: 500 13px/1.3 var(--sans); color: var(--ink-mid); }
.ed-title { margin: var(--sp-label) 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7vw, 116px); line-height: 0.96; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }

.ed-line { max-width: 42ch; margin: var(--sp-sub) auto 0; font: 400 clamp(17px, 1.3vw, 19px)/1.45 var(--sans); color: var(--ink-mid); text-wrap: balance; }
:root { --hero-w: min(calc(100vw - 2 * var(--ed-panel-g)), 1640px); --hero-h: min(calc(var(--hero-w) * 0.5), calc(100svh - 140px)); }
@media (max-width: 767px) { :root { --hero-h: min(calc(var(--hero-w) * 1.12), calc(100svh - 150px)); } }

.ed-hero-mask { --focal-x: 50; --focal-y: 50; position: relative; width: var(--hero-w); height: var(--hero-h); margin-top: clamp(48px, 7vh, 80px); border-radius: var(--ed-panel-r); overflow: hidden; background: var(--hero-bg, var(--bg-surface)); }
.ed-hero-mask picture { display: block; width: 100%; height: 100%; }
.ed-hero-mask img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: calc(var(--focal-x) * 1%) calc(var(--focal-y) * 1%); }
/* A frame's fill is for an empty frame only. Once it holds its picture, which covers it, the fill can only show
   through the clip's anti-aliased edge: a hairline wherever that edge lands on part of a pixel or runs round the
   radius (TD, 23 Nov). Same for .ed-webshot, .ex-media and .nx-media. :where keeps page-level rules winning. */
.ed-hero-mask:where(:has(img, video)) { background: transparent; }

.ed-motion .ed-hero { height: calc(100svh + var(--hero-run, 85svh)); }
@media (max-width: 767px) { .ed-motion .ed-hero { --hero-run: 60svh; } }
.ed-motion .ed-hero-stage { position: sticky; top: 0; height: 100svh; padding-top: calc(var(--nav-h) + clamp(24px, 5vh, 64px)); overflow: hidden; }
.ed-motion .ed-back { top: calc(var(--nav-h) + clamp(8px, 1.6vh, 20px)); }
.ed-motion .ed-hero-mask {
  --hs: 0.45; --hx: 16.7%; --hy: 16vh;
  position: absolute; z-index: 2; left: 50%; top: 50%; margin: 0;
  transform: translate(-50%, -50%) translateY(var(--hy)) scale(var(--hs)) translateX(calc(var(--hx) * (50 - var(--focal-x)) / 50));
  clip-path: inset(0 calc(var(--hx) * (100 - var(--focal-x)) / 50) 0 calc(var(--hx) * var(--focal-x) / 50) round calc(var(--ed-panel-r) / var(--hs)));
  will-change: transform, clip-path;
}
.ed-motion .ed-hero-text { opacity: var(--ho, 1); transform: translateY(var(--ht, 0px)); will-change: opacity, transform; }

.ed-motion .ed-hero { margin-bottom: calc((var(--hero-h) - 100svh) / 2); }
.ed-motion .ed-hero-stage { pointer-events: none; }
.ed-motion .ed-hero-stage > * { pointer-events: auto; }

.ed-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.2em 0.16em 0.26em; margin: -0.2em -0.16em -0.26em; }
.ed-rise { display: inline-block; }
.ed-loading .ed-hero-text .ed-kicker, .ed-loading .ed-line, .ed-loading .ed-hero-mask { opacity: 0; }
.ed-loading .ed-hero-text .ed-kicker, .ed-loading .ed-line { filter: blur(6px); translate: 0 8px; }
.ed-loading .ed-rise { opacity: 0; filter: blur(6px); transform: translateY(140%); }
.ed-loaded .ed-hero-text .ed-kicker { animation: edFocus 1.2s cubic-bezier(0.33, 0, 0.2, 1) both; }
.ed-loaded .ed-rise { animation: edRise 1s cubic-bezier(0.16, 1, 0.3, 1) both, edFocusWord 1.2s cubic-bezier(0.33, 0, 0.2, 1) both; }
.ed-loaded .ed-mask:nth-child(1) .ed-rise { animation-delay: 0.15s; }
.ed-loaded .ed-mask:nth-child(2) .ed-rise { animation-delay: 0.25s; }
.ed-loaded .ed-mask:nth-child(3) .ed-rise { animation-delay: 0.35s; }
.ed-loaded .ed-mask:nth-child(4) .ed-rise { animation-delay: 0.45s; }
.ed-loaded .ed-mask:nth-child(5) .ed-rise { animation-delay: 0.55s; }
.ed-loaded .ed-mask:nth-child(6) .ed-rise { animation-delay: 0.65s; }
.ed-loaded .ed-line { animation: edFocus 1.2s cubic-bezier(0.33, 0, 0.2, 1) 0.5s both; }

.ed-motion:not(.ed-hero-ready) .ed-hero-mask { opacity: 0; }
.ed-loaded.ed-hero-ready .ed-hero-mask { animation: edImg 1.6s cubic-bezier(0.33, 0, 0.2, 1) var(--hero-img-delay, 1s) both; }
@keyframes edFocus { from { opacity: 0; filter: blur(6px); translate: 0 8px; } to { opacity: 1; filter: none; translate: 0 0; } }
@keyframes edFocusWord { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
@keyframes edRise { from { transform: translateY(140%); } to { transform: none; } }
@keyframes edImg { from { opacity: 0; filter: blur(16px); translate: 0 20px; } to { opacity: 1; filter: none; translate: 0 0; } }

@keyframes edImgIn { from { scale: 1.04; } to { scale: 1; } }
.ed-loaded.ed-hero-ready .ed-hero-mask > * { transform-origin: 50% 50%; animation: edImgIn 1.6s cubic-bezier(0.33, 0, 0.2, 1) var(--hero-img-delay, 1s) both; }

.ed-panel { position: relative; isolation: isolate; overflow: hidden; width: calc(100% - 2 * var(--ed-panel-g)); margin-inline: auto; border-radius: var(--ed-panel-r); }
.ed-panel--plain { background: var(--ed-panel-ink); color: #FFFFFF; }
.ed-panel--photo { background: var(--panel-bg, #8A9196); color: #FFFFFF; }

.ed-panel--warm { background: var(--panel-warm, #E4E2DE); color: var(--ink); }

.ed-panel--plain, .ed-panel--photo { --on: #FFFFFF; --on-mid: rgba(255, 255, 255, 0.72); }
.ed-panel--warm { --on: var(--ink); --on-mid: var(--ink-mid); }
.ed-panel-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ed-panel--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 20, 48, 0.5) 0%, rgba(8, 20, 48, 0) 45%); pointer-events: none; }

.ed-panel-in { padding: clamp(56px, 7vw, 120px) var(--ed-inset) clamp(20px, 2.4vw, 32px); }
.ed-panel--strip { padding-block: clamp(36px, 4.5vw, 72px) 0; }

.ed-work .cs-spread--bleed { margin-inline: var(--ed-panel-g); border-radius: var(--ed-panel-r); }
.ed-work .cs-spread { --spread-w: min(330px, 23cqi); margin-bottom: 0; }
/* Hero straight into the screens band, with no words between (Michigan, Australia): one 24px gap between the two
   images, not a beat. Measured from the hero image's final edge. */
.ed-hero + .ed-work { margin-block-start: 24px; }

.ed-shot { position: relative; aspect-ratio: 414 / 811; border-radius: 10% / calc(10% * 414 / 811); overflow: hidden; background: var(--shot-bg, #F1ECE6); }
.ed-shot:where(:has(img, video)) { background: var(--shot-bg, transparent); }  /* as .ed-hero-mask above. A letterbox (contain fit) sets --shot-bg, as WONE's before screens do */
.ed-shot img, .ed-shot video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: var(--fit, cover); object-position: center top; }
/* On a panel or plate the surface is already set, so a shot has no fill unless it sets --shot-bg (a letterbox
   for contain-fit or cropped screens). A light fill shows through the clip's anti-aliased edge as an outline
   on dark panels (QA W1, 23 Nov; same cause as cs-spread S1). :where keeps page-level shot rules winning. */
:where(.ed-panel, .ed-plate) .ed-shot { background: var(--shot-bg, transparent); }

.ed-trim video.is-interim { transform: scale(1.06); transform-origin: 50% 100%; }

.ed-shot video[data-ready] { object-position: 50% 59%; }

.ed-proto-cap { display: none; margin: 0; font: 400 13px/1.4 var(--sans); color: var(--on-mid, rgba(255, 255, 255, 0.72)); }
[data-vscope]:has(video[data-ready]) .ed-proto-cap { display: block; }
.ed-plate .ed-proto-cap { position: absolute; left: 18px; bottom: 24px; }
.ed-panel--photo .ed-shot { box-shadow: 0 50px 90px -40px rgba(6, 14, 34, 0.6); }
.ed-screens { display: flex; justify-content: center; align-items: flex-start; gap: clamp(20px, 3.4vw, 56px); }
.ed-screen { flex: none; width: var(--screen-w, clamp(160px, 19vw, 300px)); }
.ed-screens--two .ed-screen { --screen-w: clamp(170px, 23vw, 350px); }
.ed-panel .ed-cap { margin-top: var(--sp-cap); color: var(--on-mid, rgba(255, 255, 255, 0.72)); }

.ed-webshot { position: relative; display: block; aspect-ratio: var(--ar, 16 / 10); border-radius: var(--r-lg); overflow: hidden; background: var(--web-bg, #FFFFFF); }
.ed-webshot img, .ed-webshot video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: var(--fit, cover); object-position: var(--pos, 50% 0); }
.ed-webshot:where(:has(img, video)) { background: var(--web-bg, transparent); }  /* as .ed-hero-mask above; was panels only (QA N1). A letterbox (contain fit) sets --web-bg */
.ed-webshot--crop img { inset: auto; top: 0; left: 0; width: calc(100% / var(--cw)); height: auto; max-width: none; object-fit: fill; margin: calc(var(--cy) * -100% / var(--cw)) 0 0 calc(var(--cx) * -100% / var(--cw)); }
.ed-panel--photo .ed-webshot { box-shadow: 0 50px 90px -40px rgba(6, 14, 34, 0.6); }

.ed-panel-foot { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: clamp(20px, 2.6vw, 36px) var(--ed-inset) clamp(14px, 1.8vw, 20px); }
:not(.ed-panel) > .ed-panel-foot { padding-inline: var(--ed-pad); }

.ed-beat .ed-media { grid-column: 1 / span 6; }
.ed-beat .ed-words { grid-column: 8 / span 5; }
.ed-beat--flip .ed-media { grid-column: 7 / span 6; grid-row: 1; }
.ed-beat--flip .ed-words { grid-column: 1 / span 5; grid-row: 1; }
.ed-words > * + * { margin-top: var(--sp-sub); }
.ed-words > .ed-p + .ed-p { margin-top: 16px; }

.ed-plate { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--ed-panel-r); background: var(--plate, var(--ed-panel-ink)); }
.ed-plate .ed-screen { --screen-w: min(58%, 360px); }

.ed-plate--wide { aspect-ratio: 16 / 10; }
.ed-web { width: 84%; border-radius: 6px; overflow: hidden; background: #0B1A33; }
.ed-web img { display: block; width: 100%; height: auto; }
.ed-brief .ed-words { max-width: 30em; }

.ed-row { width: calc(100% - 2 * var(--ed-pad)); margin-inline: auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 32px var(--ed-gap); }

.ed-row .ed-cap { margin-top: var(--sp-cap); min-height: calc(var(--cap-lines, 2) * 1.4em); font-size: 13px; line-height: 1.4; color: var(--ink-mid); text-align: left; }
.ed-row .ed-cap span { display: block; }

.ed-panel .ed-row .ed-cap { color: var(--on-mid, var(--ink-mid)); }

.cs-flow .cs-flow-key, .cs-flow .cs-flow-kicker { display: none !important; }

.ed-notes { container-type: inline-size; }
.cs-hyp-notes { display: grid; grid-template-columns: 1fr; gap: 16px; }
@container (min-width: 440px) { .cs-hyp-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 800px) { .cs-hyp-notes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cs-hyp-note { position: relative; margin: 0; padding: 22px 24px 26px; border-radius: 6px; font: 500 clamp(15px, 1.05vw, 17px)/1.45 var(--sans); letter-spacing: -0.01em; color: #17150F; }

.cs-hyp-vote { position: absolute; top: -10px; right: 14px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: #FFFFFF; border: 1px solid rgba(14, 13, 11, 0.06); font: 400 11px/1.3 var(--sans); color: var(--ink-mid); transform: rotate(-5deg); }
.cs-hyp-vote--alt { transform: rotate(5deg); left: 16px; right: auto; }

.ed-notes--square { --note-gap: var(--ed-gap); width: calc((100% - 2 * var(--ed-pad) + var(--ed-gap)) * max(var(--ed-span-text), 6) / 12 - var(--ed-gap)); }
.ed-notes--square .cs-hyp-notes { --note: calc((100cqi - 3 * var(--note-gap)) / 4); grid-template-columns: repeat(4, var(--note)); justify-content: center; gap: var(--note-gap); }

@container (max-width: 699px) {
  
  .ed-notes--square .cs-hyp-notes { --note: min(228px, calc((100cqi - var(--note-gap)) / 2)); grid-template-columns: repeat(2, var(--note)); }
}
.ed-notes--square .cs-hyp-note { aspect-ratio: 1; padding: clamp(12px, calc(var(--note) * 0.075), 18px); font-size: clamp(13px, calc(var(--note) * 0.066), 15px); line-height: 1.3; }

@media (max-width: 767px) { .ed-notes--square { --note-gap: 10px; } }
.cs-hyp-note:nth-child(4n+1) { background: #CBE4F7; }
.cs-hyp-note:nth-child(4n+2) { background: #FBEFC6; }
.cs-hyp-note:nth-child(4n+3) { background: #FAD0DD; }
.cs-hyp-note:nth-child(4n+4) { background: #D6ECD5; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cs-hyp-note { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
  .cs-hyp-note:nth-child(odd):hover  { transform: rotate(-2deg); }
  .cs-hyp-note:nth-child(even):hover { transform: rotate(2deg); }
}

.ed-notes--square .cs-hyp-note:nth-child(1) { background: #CBE4F7; }
.ed-notes--square .cs-hyp-note:nth-child(2) { background: #FAD0DD; }
.ed-notes--square .cs-hyp-note:nth-child(3) { background: #D6ECD5; }
.ed-notes--square .cs-hyp-note:nth-child(4) { background: #FBEFC6; }
.ed-notes--square .cs-hyp-note:nth-child(5) { background: #FBEFC6; }
.ed-notes--square .cs-hyp-note:nth-child(6) { background: #CBE4F7; }
.ed-notes--square .cs-hyp-note:nth-child(7) { background: #FAD0DD; }
.ed-notes--square .cs-hyp-note:nth-child(8) { background: #D6ECD5; }

.pan-row { overflow-x: clip; }
.pan-track { --pan-gap: 6px; display: flex; align-items: center; gap: var(--pan-gap); padding-inline-end: var(--pan-gap); width: max-content; }
.pan-row--left  .pan-track { animation: panLeft  60s linear infinite; }
.pan-row--right .pan-track { animation: panRight 60s linear infinite; }
@keyframes panLeft  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes panRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.is-paused .pan-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .pan-track { animation: none !important; } }

[data-variant="a"] [data-v]:not([data-v="a"]),
[data-variant="b"] [data-v]:not([data-v="b"]),
[data-variant="c"] [data-v]:not([data-v="c"]) { display: none !important; }
.ed-vtoggle { display: inline-flex; align-items: center; gap: 3px; padding: 3px 3px 3px 9px; border: 1px dashed #B08A3E; border-radius: 6px; background: #FFF8E8; font: 500 11px/1 var(--sans); color: #7A5A1E; }
.ed-vtoggle span { margin-right: 4px; }
.ed-vtoggle button { min-width: 24px; height: 22px; padding: 0 7px; border: 0; border-radius: 4px; background: transparent; font: 600 11px/1 var(--sans); color: #7A5A1E; cursor: pointer; }
.ed-vtoggle button[aria-pressed="true"] { background: #7A5A1E; color: #FFFFFF; }
.ed-vtoggle button:focus-visible { outline: 2px solid #7A5A1E; outline-offset: 2px; }
.ed-opener .ed-vtoggle { grid-column: 9 / -1; justify-self: end; align-self: center; }

.ed-vtoggles { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ed-opener .ed-vtoggles { grid-column: 8 / -1; justify-self: end; align-self: center; }
.ed-vtoggles .ed-vtoggle { grid-column: auto; }
.ed-words .ed-vtoggle { margin-top: 20px; }

.ex-drift { overflow-x: clip; padding: 8px 0 4px; }
.ex-drift .pan-track { --pan-gap: clamp(28px, 3.4vw, 56px); align-items: flex-start; }
.ex-drift:hover .pan-track, .ex-drift:focus-within .pan-track { animation-play-state: paused; }

.ex-drift { position: relative; }
.ex-drift:focus-visible { outline: none; }
.ex-drift::after { content: "Use \2190  and \2192  to move"; position: absolute; left: 50%; bottom: 10px; translate: -50% 0; z-index: 3; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 13px/1 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.ex-drift:focus-visible::after { opacity: 1; }
.ex-item { flex: 0 0 auto; margin: var(--mt, 0px) 0 0; }
.ex-media { height: var(--h); border-radius: 20px; overflow: hidden; background: #E9E4DD; }
.ex-media img, .ex-media video { display: block; height: 100%; width: auto; }
.ex-media:where(:has(img, video)) { background: transparent; }  /* as .ed-hero-mask above */
.ex-item figcaption { margin-top: var(--sp-cap); font: 400 13px/1.4 var(--sans); color: var(--ink-mid); }
@media (prefers-reduced-motion: reduce) { .ex-drift { overflow-x: auto; scrollbar-width: thin; } }

.pan-row[data-drift="free"] .pan-track, .pan-row.is-free .pan-track { animation: none; }
.pan-row[data-drift="free"], .pan-row.is-free { cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.pan-row.is-dragging { cursor: grabbing; }
.pan-row[data-drift="free"] .pan-track > *, .pan-row.is-free .pan-track > * { will-change: transform; transform-origin: 50% 0; }

.pan-row[data-drift-feel="swing"] .pan-track { --pan-gap: clamp(40px, 5vw, 80px); }
.pan-row[data-drift="free"] :is(img, video), .pan-row.is-free :is(img, video) { -webkit-user-drag: none; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .ex-drift[data-drift="free"], .ex-drift.is-free { overflow-x: clip; } }

.pan-row.is-waiting .pan-track > * { opacity: 0; }
.pan-row.is-arriving .pan-track > * { animation: edArrive var(--in-dur, 1000ms) cubic-bezier(0.33, 0, 0.2, 1) var(--in-delay, 0ms) both; }
@keyframes edArrive { from { opacity: 0; filter: blur(10px); translate: var(--in-dx, 24px) 12px; } to { opacity: 1; filter: none; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .pan-row.is-waiting .pan-track > *, .pan-row.is-arriving .pan-track > * { opacity: 1; animation: none; } }

.ex-stack-stage { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.ex-card { margin: 0; }
.ex-card img, .ex-card video { display: block; height: min(62svh, 600px); width: auto; max-width: 84vw; border-radius: 16px; object-fit: cover; }
.ex-card--wide img, .ex-card--wide video { height: auto; width: min(72vw, 960px); }
.ex-card figcaption { margin-top: var(--sp-cap); font: 400 13px/1.4 var(--sans); color: var(--ink-mid); text-align: center; }
.ed-motion .ex-stack { height: calc(100svh + (var(--n) - 1) * 70svh); }
.ed-motion .ex-stack-stage { position: sticky; top: 0; height: 100svh; display: block; overflow: hidden; }
.ed-motion .ex-card { position: absolute; left: 50%; top: calc(50% + 40px); transform: translate(-50%, -50%); will-change: transform, opacity; }

.ex-collage { width: calc(100% - 2 * var(--ed-pad)); margin-inline: auto; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ed-gap); align-items: start; }
.ex-collage figure { position: relative; margin-inline: 0; margin-block-end: 0; }
.ex-collage img, .ex-collage video { display: block; width: 100%; height: auto; border-radius: 14px; }
.ex-collage figcaption { margin-top: var(--sp-cap); font: 400 13px/1.4 var(--sans); color: var(--ink-mid); }

.rs-type { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px var(--ed-gap); }
.rs-type li { padding-top: 0; border-top: 0; }
.rs-num { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 3.9vw, 60px); line-height: 0.95; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.rs-num span { margin-left: 0.06em; font-size: 0.32em; letter-spacing: 0; color: var(--ink-mid); }
.rs-num--low { color: var(--ink-mid); }
.rs-lab { margin: var(--sp-label) 0 0; max-width: 32ch; font: 400 14px/1.45 var(--sans); color: var(--ink-mid); text-wrap: balance; }   

.ed-opener { width: calc(100% - 2 * var(--ed-pad)); margin-inline: auto; margin-block-end: var(--sp-lead); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--ed-gap); align-items: baseline; }
.ed-opener-line { grid-column: 1 / span 7; margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--ed-statement); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); text-wrap: pretty; }
.ed-opener-label { grid-column: 1 / span 3; margin: 0; font: 500 15px/1.4 var(--sans); color: var(--ink); }
.ed-opener-label + .ed-opener-line { grid-column: 4 / span 7; }

.ed-opener > .ed-opener-line + .ed-p { grid-column: 1 / span 7; margin-top: var(--sp-label); }

.ed-opener--center { display: block; text-align: center; align-items: center; }

.ed-opener--center .ed-opener-label { margin-bottom: var(--sp-label); text-align: center; }
.ed-opener--center .ed-opener-line { max-width: 34em; margin-inline: auto; }

.ed-opener--sans .ed-opener-line { font-family: var(--sans); font-size: clamp(17px, 1.25vw, 18px); line-height: 1.5; letter-spacing: -0.005em; }

.ed-story { position: relative; margin-block-start: var(--sp-beat); }
.ed-bar { position: sticky; top: var(--nav-h); z-index: 150; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--rule); }
.ed-bar-in { position: relative; width: calc(100% - 2 * var(--ed-pad)); margin-inline: auto; display: flex; justify-content: center; gap: clamp(18px, 2.2vw, 32px); overflow-x: auto; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x; }
.ed-bar-in::-webkit-scrollbar { display: none; }
.ed-bar a { position: relative; flex: none; padding: 15px 0 14px; font: 500 13px/1.2 var(--sans); color: var(--ink-mid); white-space: nowrap; transition: color 0.25s ease; }
.ed-bar a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.ed-bar a:hover, .ed-bar a[aria-current="true"] { color: var(--ink); }
.ed-bar a[aria-current="true"]::after { transform: scaleX(1); }
.ed-sec { margin-block-start: var(--sp-beat); }
.ed-sec:first-of-type { margin-block-start: clamp(72px, 8vw, 128px); }
.ed-story .cs-flow-eyebrow { font-size: 15px; letter-spacing: -0.005em; text-transform: none; }

.ed-flag { display: inline-block; margin: 0 0 var(--sp-label); padding: 3px 8px; border: 1px dashed #B08A3E; border-radius: 4px; background: #FFF8E8; color: #7A5A1E; font: 500 11px/1.3 var(--sans); letter-spacing: 0.01em; }

.ed-opener > .ed-flag { grid-column: 1 / -1; justify-self: start; }
.ed-xl { margin: 0; max-width: 20ch; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 76px); line-height: 1.06; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.ed-after { margin-block-start: var(--sp-beat); }

.ed-impact { --res-span: var(--ed-span-wide); --res-gap: clamp(32px, 2.8vw, 48px); }
.ed-impact > .ed-col, .ed-impact > .ed-frame { width: calc((100% - 2 * var(--ed-pad) + var(--ed-gap)) * var(--res-span) / 12 - var(--ed-gap)); margin-inline: auto; padding-inline: 0; }
.ed-impact > .ed-frame { container: ed-res / inline-size; }
.ed-impact > .ed-col > * { max-width: none; }
.ed-impact > .ed-col > h2 { max-width: 32ch; }

@media (min-width: 1081px) { .ed-impact > .ed-col > h2 { max-width: min(32ch, calc((200% - var(--res-gap)) / 3)); } }
.ed-impact > .ed-col > :not(.ed-p) { text-wrap: balance; }
.ed-impact > .ed-col > .ed-p { max-width: 34em; }

.ed-impact .cs-impact-cards.ed-results { display: grid; grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: var(--sp-lead) var(--res-gap); align-items: start; overflow: visible; margin-right: 0; padding-right: 0; scroll-snap-type: none; }
@container ed-res (min-width: 600px) {
  .ed-impact .cs-impact-cards.ed-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container ed-res (min-width: 880px) {
  .ed-impact .cs-impact-cards.ed-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ed-impact .cs-impact-cards.ed-results:has(> :nth-child(2):last-child),
  .ed-impact .cs-impact-cards.ed-results:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ed-impact .cs-impact-controls { display: none !important; }
.ed-impact .ed-results > .cs-impact-card { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: default; overflow-wrap: anywhere; }
.ed-impact .ed-results > .cs-impact-card > * { min-width: 0; }

.ed-impact .ed-results .cs-impact-rest { order: 1; align-self: stretch; opacity: 1 !important; transition: none; }
.ed-impact .ed-results .cs-impact-num,
.ed-impact .ed-results .cs-impact-num--word { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 3.9vw, 60px); line-height: 0.95; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }

.ed-impact .ed-results .cs-impact-num--word { white-space: normal; text-wrap: balance; }
.ed-impact .ed-results .cs-impact-unit { position: static; top: auto; margin-left: 0.06em; font-size: 0.32em; font-weight: 400; letter-spacing: 0; color: var(--ink-mid); }

.ed-impact .ed-results { --kick-h: 21px; }
.ed-impact .ed-results .cs-impact-kicker { order: 0; height: var(--kick-h); margin: 0 0 var(--sp-label); overflow: hidden; font-family: var(--sans); font-weight: 500; font-size: 15px; line-height: var(--kick-h); letter-spacing: -0.005em; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.ed-impact .ed-results:has(.cs-impact-kicker) > .cs-impact-card:not(:has(.cs-impact-kicker))::before { content: ""; order: 0; flex: none; height: var(--kick-h); margin-bottom: var(--sp-label); }
.ed-caveat { margin: 6px 0 0; font: 400 13px/1.45 var(--sans); color: var(--ink-mid); }

.ed-impact .ed-results .cs-impact-card .cs-impact-reveal { display: none; }
.ed-impact .ed-results .cs-impact-more { order: 3; display: block; align-self: stretch; margin-top: 6px; opacity: 1; visibility: visible; transform: none; transition: none; }
.ed-impact .ed-results .cs-impact-more .cs-impact-figure, .ed-impact .ed-results .cs-impact-more .cs-impact-bars, .ed-impact .ed-results .cs-impact-more .cs-impact-cue { display: none; }

.ed-impact .ed-results .cs-impact-label { margin: var(--sp-label) 0 0; max-width: 32em; font: 400 14px/1.45 var(--sans); letter-spacing: 0; color: var(--ink-mid); text-wrap: pretty; }
.ed-impact .ed-results .cs-impact-more p, .ed-impact .ed-results .ed-caveat { margin: 0; max-width: 32em; font: 400 14px/1.45 var(--sans); letter-spacing: 0; color: var(--ink-mid); text-wrap: pretty; }
.ed-impact .ed-results .cs-impact-more p + p { margin-top: 6px; }

.ed-steps { padding: 0; list-style: none; display: grid; gap: 6px; max-width: 26em; }
.ed-steps li { font: 400 14px/1.45 var(--sans); color: var(--ink-light); }
.ed-steps li:not(.is-on) + li.is-on { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.ed-steps li.is-on { color: var(--ink); }
.ed-steps li span { display: block; margin: 3px 0 0; font-size: 13px; color: var(--ink-mid); }

.ed-beat--clip .ed-media { grid-column: 2 / span 5; justify-self: end; }
.ed-beat--clip .ed-words { grid-column: 7 / span 4; }
.ed-beat--clip .ed-plate { aspect-ratio: auto; padding: clamp(24px, 2.4vw, 36px); }
.ed-beat--clip .ed-plate .ed-screen { --screen-w: clamp(220px, 21vw, 300px); }

.ed-plate { transition: background-color 600ms cubic-bezier(0.33, 0, 0.2, 1), box-shadow 600ms cubic-bezier(0.33, 0, 0.2, 1); }
html.ed-theme-dark .ed-plate { background: var(--plate, #1C1A18); box-shadow: inset 0 0 0 1px rgba(243, 240, 234, 0.12); }
@media (prefers-reduced-motion: reduce) { .ed-plate { transition: none; } }

:root { --ba-before: #E4E2DE; --ba-after: #FFFFFF; }
.ed-ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); align-items: start; }
.ed-ba > figure { margin-inline: 0; margin-block-end: 0; min-width: 0; }
.ed-ba-media { position: relative; padding: 52px clamp(16px, 2.2vw, 32px) clamp(16px, 2.2vw, 32px); border-radius: var(--r-lg); background: var(--ba-after); }
.ed-ba-before .ed-ba-media { background: var(--ba-before); }
/* The 52px top is room for a tag. Before/After tags are gone from every page, so a box without one
   gets even padding, as .ed-ba-plate does below. Sits before .ed-ba--bare so bare boxes keep no padding. */
.ed-ba-media:not(:has(> .ed-ba-tag)) { padding-top: clamp(16px, 2.2vw, 32px); }
.ed-ba-tag { position: absolute; top: 16px; left: 16px; z-index: 2; margin: 0; padding: 6px 9px; border-radius: var(--r-sm); background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--rule); font: 500 12px/1 var(--sans); letter-spacing: 0.01em; color: var(--ink-mid); }
.ed-ba-tag--after, .ed-ba-after .ed-ba-tag { color: var(--ink); }
.ed-ba figcaption { margin-top: var(--sp-cap); font: 400 14px/1.45 var(--sans); color: var(--ink); }
.ed-ba figcaption span { display: block; margin-top: 4px; color: var(--ink-mid); }
.ed-ba-before figcaption { color: var(--ink-mid); }

.ed-ba--bare { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; align-items: flex-start; }
.ed-ba--bare > figure { flex: 1 1 331px; max-width: 340px; }
.ed-ba--bare .ed-ba-media { padding: 0; background: none; border-radius: 0; }
.ed-ba--bare .ed-ba-tag { position: static; display: block; margin: 0 0 var(--sp-label); padding: 0; background: none; box-shadow: none; font: 500 12px/1.3 var(--sans); letter-spacing: 0.02em; color: var(--ink-mid); }
.ed-ba--bare .ed-ba-after .ed-ba-tag { color: var(--ink); }
.ed-ba--bare .ed-ba-media > :not(.ed-ba-tag) { box-shadow: 0 0 0 1px var(--rule); }
.ed-ba-plate { position: relative; width: calc(100% - 2 * var(--ed-pad)); margin-inline: auto; padding: 52px clamp(16px, 2.2vw, 32px) clamp(16px, 2.2vw, 32px); border-radius: var(--r-lg); background: var(--ba-before); }
.ed-ba-plate:not(:has(> .ed-ba-tag)) { padding-top: clamp(16px, 2.2vw, 32px); }
.ed-ba-plate > .ed-row { width: 100%; }

.ed-quotes { display: grid; gap: clamp(28px, 3vw, 48px); }
.ed-quote { margin: 0; }
.ed-quote p { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 52px); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.ed-quote footer { margin-top: var(--sp-label); font: 400 14px/1.45 var(--sans); color: var(--ink-mid); }
.ed-quote.is-armed { opacity: 0; filter: blur(6px); translate: 0 8px; transition: opacity 1.2s cubic-bezier(0.33, 0, 0.2, 1) var(--qd, 0ms), filter 1.2s cubic-bezier(0.33, 0, 0.2, 1) var(--qd, 0ms), translate 1.2s cubic-bezier(0.33, 0, 0.2, 1) var(--qd, 0ms); }
.ed-quote.is-armed.is-in { opacity: 1; filter: none; translate: 0 0; }
.ed-quote.is-init { transition: none !important; }

.ed-panel, .ed-hero-mask, .ed-plate, .ed-web { border-radius: var(--r-lg); }
.ex-media, .ex-card img, .ex-card video, .ex-collage img, .ex-collage video { border-radius: var(--r-card); }
.ed-work .cs-spread--bleed { border-radius: var(--r-lg); }
.cs-flow, .cs-flow-stage { border-radius: var(--r-lg); }
.cs-flow-key, .cs-flow-node:not(.cs-flow-node--term), .cs-flow-node--choice::before { border-radius: var(--r-sm); }
body .cs-flow-toggle, body .cs-flow-toggle button,
body .cs-flow--across:not(.is-tight) .cs-flow-toggle, body .cs-flow--across:not(.is-tight) .cs-flow-toggle button { border-radius: var(--r-sm); }
.cs-impact { --cs-impact-radius: var(--r-lg); }
.cs-impact-figure, .cs-impact-drawer-panel { border-radius: var(--r-lg); }
.cs-impact-callout, .cs-impact-tip, .cs-impact-delta, .cs-impact-track, .cs-impact-bar { border-radius: var(--r-sm); }
.cs-scroll-panel, .next-case__peek { border-radius: var(--r-lg); }
.cs-scroll-caption, .next-case__thumb, .cs-credits-tile { border-radius: var(--r-sm); }
.cs-hyp-note, .cs-hyp-vote, .ed-flag, .ed-vtoggle, .ed-vtoggle button, .ed-proto span { border-radius: var(--r-sm); }

@media (max-width: 1080px) {
  .ed-opener { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .ed-opener-line, .ed-opener-label, .ed-opener-label + .ed-opener-line { grid-column: 1; }
  .ed-opener > .ed-opener-line + .ed-p { grid-column: 1; }
  .ed-opener .ed-vtoggle { grid-column: 1; justify-self: start; margin-top: 10px; }
  .ed-opener .ed-vtoggles { grid-column: 1; justify-self: start; justify-content: flex-start; margin-top: 10px; }
  .ed-vtoggles .ed-vtoggle { margin-top: 0; }
  .ex-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .ex-collage figure { grid-column: auto; grid-row: auto; margin-top: 0; }
  .ed-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  
}

@media (max-width: 899px) {
  .ed-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .ed-beat .ed-media, .ed-beat .ed-words, .ed-beat--flip .ed-media, .ed-beat--flip .ed-words { grid-column: 1; grid-row: auto; }
  .ed-beat--flip .ed-words { order: -1; }
  .ed-words { max-width: var(--ed-col); }
  .ed-plate { aspect-ratio: auto; padding: 48px 0; }
  .ed-plate .ed-screen { --screen-w: min(64vw, 320px); }
  .ed-plate--wide { aspect-ratio: auto; padding: 40px 0; }
  .ed-beat--clip .ed-media, .ed-beat--clip .ed-words { justify-self: center; }
  .ed-beat--clip .ed-words { width: min(100%, 22em); }
}

@media (min-width: 900px) and (max-width: 1080px) {
  .ed-grid:not(.ed-beat) { row-gap: 28px; }
  .ed-grid:not(.ed-beat) > * { width: max(100%, min(12 * 100% + 11 * var(--ed-gap), (90px - 100%) * 1000)); }
  .ed-grid:not(.ed-beat) > .ed-words { max-width: var(--ed-col); }
}
@media (max-width: 767px) {
  .ed-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-screens { flex-wrap: wrap; gap: 28px 16px; }
  .ed-screen { --screen-w: calc(50% - 8px); }
  .ed-screens--two .ed-screen { --screen-w: calc(50% - 8px); }
  .ed-panel-in { padding: 48px var(--ed-inset) 8px; }
  .rs-type { gap: 32px var(--ed-gap); }
  .ed-bar-in { justify-content: flex-start; }
  .ed-ba { grid-template-columns: minmax(0, 1fr); }
}

.ed-panel.cb { padding-inline: var(--ed-inset); }

.ed-panel.cb > .ed-panel-foot { padding-inline: 0; }

@media (min-width: 768px) { .ed-panel.cb > .cb-grid { gap: var(--ed-gap); } }

.case-body.ed-after { padding-inline: var(--ed-pad); }
.case-body.ed-after .cs-section { padding-inline: 0; }
.case-body.ed-after .cs-credits { margin-inline: 0; }

@media (min-width: 821px) { .case-body.ed-after .cs-scroll-sticky { column-gap: var(--ed-gap); } }
/* More features gets its header back, small and centred over the module. It's set as a section opener (What shipped's style), big enough to read as a
   header (the old 15px note wasn't) without competing with the list. It takes over the module's beat above; cs-scroll.css
   then pulls the module up to sit one short gap under it. Centred at every width, like the other openers. */
.case-body.ed-after .cs-scroll-title { margin: clamp(96px, 11vw, 176px) 0 0; font-family: var(--serif); font-weight: 400; font-size: var(--ed-statement); line-height: 1.3; letter-spacing: -0.01em; text-align: center; color: var(--ink); text-wrap: balance; }

.next-case { --next-case-x: var(--ed-pad); }

.ed-scope .cs-credits-item { padding-inline-start: 0.8em; text-indent: -0.8em; }

.ed-beat-gap, .ed-gap { margin-block-start: var(--sp-beat); }
/* Inside a section the gap is the shorter step. :where keeps this at one class, so a page rule still wins. */
:where(.ed-sec) :is(.ed-beat-gap, .ed-gap) { margin-block-start: var(--sp-step); }
.ed-near { margin-block-start: var(--sp-lead); }
.ed-sub { margin-block-start: var(--sp-sub); }

.ed-impact .ed-xl { font-size: var(--ed-result); line-height: 1.1; }
.ed-impact .ed-results .cs-impact-num,
.ed-impact .ed-results .cs-impact-num--word,
.rs-num { font-size: clamp(36px, 3.2vw, 48px); }

.ed-motion .ed-sec[data-ed-theme="dark"] > .ed-opener--center { opacity: 0; filter: blur(6px); translate: 0 8px; transition: opacity 0.9s cubic-bezier(0.33, 0, 0.2, 1), filter 0.9s cubic-bezier(0.33, 0, 0.2, 1), translate 0.9s cubic-bezier(0.33, 0, 0.2, 1); }
.ed-motion.ed-theme-dark .ed-sec[data-ed-theme="dark"] > .ed-opener--center { opacity: 1; filter: none; translate: 0 0; transition-delay: 0.15s; }

.ed-sec[data-ed-theme="dark"] > .ed-opener--center { display: flex; flex-direction: column; justify-content: center; min-height: clamp(220px, 36vh, 380px); margin-block-end: 0; }

.ed-motion .ed-sec[data-ed-theme="light"] > .ed-col:first-of-type { transition: opacity 0.9s cubic-bezier(0.33, 0, 0.2, 1) 0.15s, filter 0.9s cubic-bezier(0.33, 0, 0.2, 1) 0.15s, translate 0.9s cubic-bezier(0.33, 0, 0.2, 1) 0.15s; }
.ed-motion.ed-theme-dark .ed-sec[data-ed-theme="light"] > .ed-col:first-of-type { opacity: 0; filter: blur(6px); translate: 0 8px; transition-delay: 0s; }

.ed-motion .ed-sec[data-ed-theme="dark"] > :not(.ed-sr):not(.ed-opener--center),
.ed-motion .ed-sec[data-ed-theme="light"] > :not(.ed-sr):not(.ed-col:first-of-type) { transition: opacity 0.9s cubic-bezier(0.33, 0, 0.2, 1) 0.35s, translate 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s; }

.ed-motion:not(.ed-theme-dark) .ed-sec[data-ed-theme="dark"] > :not(.ed-sr):not(.ed-opener--center):not(:where(.ed-res-motion > .ed-frame)),
.ed-motion.ed-theme-dark .ed-sec[data-ed-theme="light"] > :not(.ed-sr):not(.ed-col:first-of-type):not(:where(.ed-res-motion > .ed-frame)) { opacity: 0; translate: 0 16px; transition-delay: 0s; }

.ed-motion .ed-impact .ed-results > .cs-impact-card.is-armed { opacity: 0; filter: blur(6px); transition: opacity 0.9s cubic-bezier(0.33, 0, 0.2, 1) var(--sd, 0ms), filter 0.9s cubic-bezier(0.33, 0, 0.2, 1) var(--sd, 0ms); }
.ed-motion .ed-impact .ed-results > .cs-impact-card.is-armed.is-in { opacity: 1; filter: none; }
.ed-motion .ed-impact .ed-results > .cs-impact-card.is-init { transition: none !important; }
.ed-motion:not(.ed-theme-dark) .ed-sec[data-ed-theme="dark"] .ed-results > .cs-impact-card.is-armed.is-in,
.ed-motion.ed-theme-dark .ed-sec[data-ed-theme="light"] .ed-results > .cs-impact-card.is-armed.is-in { opacity: 0; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .ed-impact .ed-results > .cs-impact-card.is-armed { opacity: 1 !important; filter: none !important; transition: none !important; } }

:where(.ed-story p, .ed-story li, .ed-story figcaption, .ed-story blockquote, .ed-brief p, .ed-col p, .ed-p, .cb-label) { text-wrap: pretty; }
.ed-lead, .ed-statement, .ed-opener-line, .ed-xl, .ed-line, .ed-quote p, .cs-flow-eyebrow, h1, h2, h3, h4 { text-wrap: balance; }

.ed-p.ed-lead-sub, .ed-p.ed-sub, .ed-p.ed-p--ink, .ed-impact .ed-results .cs-impact-label, .ed-impact .ed-results .cs-impact-more p, p.rs-lab, p.cs-hyp-note, p.ed-cap, p.gf-feature-sub, p.mi-ask, .cs-feature-title, p.ed-opener-line, p.ed-statement, .ed-lead { text-wrap: balance; }

@media (min-width: 768px) { .ed-motion .ed-hero { margin-top: -60px; } }

@media (max-width: 767px) {
  .ed-motion .ed-hero { height: auto; margin-bottom: 0; }
  .ed-motion .ed-hero-stage { position: relative; top: auto; height: auto; padding-top: clamp(28px, 6vh, 72px); overflow: visible; }
  .ed-motion .ed-back { top: clamp(12px, 2vh, 24px); }
  .ed-motion .ed-hero-mask { position: relative; left: auto; top: auto; margin-top: clamp(48px, 7vh, 80px); transform: none; clip-path: none; will-change: auto; }
  .ed-motion .ed-hero-text { opacity: 1; transform: none; will-change: auto; }
}

@media (max-width: 767px) {
  :root { --ed-panel-g: 0px; --ed-inset: var(--ed-pad); --hero-w: calc(100vw - 2 * var(--ed-pad)); }
  .ed-panel, .ed-work .cs-spread--bleed { border-radius: 0; }
  .ed-ba-plate { width: 100%; border-radius: 0; padding-inline: var(--ed-pad); }
  .ed-ba-plate > .ed-ba-tag { left: var(--ed-pad); }
}

@media (max-width: 767px) {
  .ed-frame > .cs-flow { margin-inline: calc(-1 * var(--ed-pad)); padding: 24px var(--ed-pad); border-radius: 0; }
}

@media (max-width: 767px) {
  .cs-flow { --flow-stick: calc(var(--nav-h) + var(--sp-bar) + 10px); }
  .cs-flow .cs-flow-rail { justify-content: flex-start; }
  .cs-flow .cs-flow-toggle { justify-self: start; width: max-content; max-width: 100%; }
  .cs-flow .cs-flow-toggle button { padding: 8px 14px; }
}

/* The section bar is fixed under the nav and fades in place while the reader is inside the story, so it reads as part
   of the nav: it never shows as a strip in the page and never moves with it. Out of the flow, it leaves no gap: the first
   section sits one beat under the hero, like any other section break. */
.ed-bar.ed-bar--fade { position: fixed; top: var(--nav-h); left: 0; right: 0; opacity: 0; pointer-events: none; transition: opacity 0.35s cubic-bezier(0.33, 0, 0.2, 1); }
.ed-bar.ed-bar--fade.is-stuck, .ed-bar.ed-bar--fade:focus-within { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .ed-bar.ed-bar--fade { transition: none; } }
.ed-bar.ed-bar--fade + .ed-sec { margin-block-start: 0; }

@media (hover: none) {
  .ed-bar a { -webkit-tap-highlight-color: transparent; }
  .ed-bar a:hover:not([aria-current="true"]) { color: var(--ink-mid); }
}

@media (max-width: 767px) {
  .ed-screens:has(> .ed-screen:nth-child(3)):has(.ed-shot) {
    flex-wrap: nowrap; justify-content: flex-start; gap: 12px;
    margin-inline: calc(-1 * var(--ed-pad)); padding-inline: var(--ed-pad) 0;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--ed-pad);
    scrollbar-width: none;
  }
  .ed-screens:has(> .ed-screen:nth-child(3)):has(.ed-shot)::-webkit-scrollbar { display: none; }
  
  .ed-screens:has(> .ed-screen:nth-child(3)):has(.ed-shot)::after { content: ""; flex: 0 0 calc(var(--ed-pad) - 12px); }
  .ed-screens:has(> .ed-screen:nth-child(3)):has(.ed-shot) > .ed-screen { --screen-w: 80%; margin-top: 0; scroll-snap-align: start; }
}

@media (max-width: 767px) {
  .ed-row:has(> li:nth-child(3)):has(.ed-shot) {
    display: flex; gap: 12px; width: 100vw; margin-inline: calc(50% - 50vw); padding-inline: var(--ed-pad) 0;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--ed-pad);
    scrollbar-width: none;
  }
  .ed-row:has(> li:nth-child(3)):has(.ed-shot)::-webkit-scrollbar { display: none; }
  .ed-row:has(> li:nth-child(3)):has(.ed-shot)::after { content: ""; flex: 0 0 calc(var(--ed-pad) - 12px); }
  .ed-row:has(> li:nth-child(3)):has(.ed-shot) > li { flex: 0 0 80%; min-width: 0; scroll-snap-align: start; }
}

@media (max-width: 767px) {
  .ed-sec[data-ed-theme="dark"] > .ed-opener--center { min-height: 0; margin-block-end: var(--sp-lead); }
  .ed-sec[data-ed-theme="dark"] > .ed-opener--center + .ed-panel > .ed-panel-in:first-child { padding-top: 0; }
}

@media (max-width: 767px) { .ex-item { margin-top: calc(var(--mt, 0px) * 0.35); } }

@media (max-width: 767px) {
  
  .case-body.ed-after .cs-scroll-note { font-family: var(--serif); font-weight: 400; font-size: var(--ed-lead); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
  .case-body.ed-after .cs-scroll-sticky { height: 100svh; height: 100dvh; grid-template-rows: minmax(0, 1fr) clamp(120px, 22dvh, 180px); padding: calc(var(--nav-h) + 10px) 0 var(--ed-pad); }
  .case-body.ed-after .cs-scroll-panel--list { padding: 4px 0 0; border-radius: 0; background: none; }
}

@media (max-width: 767px) {
  
  :root { --ed-body: 17px; --ed-lead: 22px; --ed-statement: 19px; --ed-result: 26px; }
  
  .ed-p { line-height: 1.55; }
  
  .ed-p--ink { font-size: var(--ed-body); line-height: 1.5; }
  .ed-line { font-size: var(--ed-body); }

  .ed-opener--sans .ed-opener-line { font-size: var(--ed-body); }
  
  .ed-impact .ed-xl { font-size: var(--ed-result); }
}

@media (max-width: 1080px) { .ed-opener-line { max-width: 32em; } }

@media (min-width: 768px) and (max-width: 1080px) {
  :root { --ed-pad: 32px; --ed-inset: calc(var(--ed-pad) - var(--ed-panel-g)); }
}

@media (min-width: 768px) { .ed-bar-in { justify-content: safe center; } }

@media (min-width: 900px) and (max-width: 1080px) {
  .ed-row { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 899px) {
  .ed-row:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ed-row:has(> li:nth-child(7):last-child) { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .ed-row:has(> li:nth-child(7):last-child) > li { grid-column: span 2; }
  .ed-row:has(> li:nth-child(7):last-child) > li:nth-child(5) { grid-column: 2 / span 2; }
}

@media (min-width: 900px) and (max-width: 1279px) {
  .ed-beat:not(.ed-beat--clip) .ed-media { grid-column: 1 / span 6; }
  .ed-beat:not(.ed-beat--clip) .ed-words { grid-column: 7 / span 6; }
  .ed-beat--flip:not(.ed-beat--clip) .ed-media { grid-column: 7 / span 6; }
  .ed-beat--flip:not(.ed-beat--clip) .ed-words { grid-column: 1 / span 6; }
}

@media (min-width: 900px) and (max-width: 1279px) {
  .ed-beat:not(.ed-beat--clip) .ed-words { padding-inline: var(--ed-gap) 0; }
  .ed-beat--flip:not(.ed-beat--clip) .ed-words { padding-inline: 0 var(--ed-gap); }
}

@container ed-res (600px <= width < 880px) {
  .ed-impact .cs-impact-cards.ed-results:has(> :nth-child(3):last-child) > :first-child,
  .ed-impact .cs-impact-cards.ed-results:has(> :nth-child(5):last-child) > :first-child { grid-column: 1 / -1; }
}

@media (min-width: 768px) and (max-width: 1080px) {
  .cs-flow { --flow-stick: calc(var(--nav-h) + var(--sp-bar) + 10px); }
}
@container (640px < width < 820px) {
  .cs-flow-body:has(> .cs-flow-rail > .cs-flow-toggle) { display: block; }
  .cs-flow-body:has(> .cs-flow-rail > .cs-flow-toggle) > .cs-flow-rail { display: flex; justify-content: flex-start; margin-bottom: 16px; }
  .cs-flow-rail > .cs-flow-toggle { display: inline-flex; width: max-content; max-width: 100%; }
  .cs-flow-rail > .cs-flow-toggle button { padding: 9px 16px; text-align: center; }
}

@media (min-width: 768px) and (max-width: 1080px) { .ex-item { margin-top: calc(var(--mt, 0px) * 0.65); } }

@media (min-width: 768px) and (max-width: 1080px) { .case-body.ed-after .cs-credits-grid { column-gap: var(--ed-gap); } }

@media (min-width: 768px) and (max-width: 1080px) and (orientation: portrait) {
  .case-body.ed-after .cs-scroll-sticky { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) clamp(150px, 20dvh, 220px); height: 100svh; height: 100dvh; padding: calc(var(--nav-h) + 16px) 0 var(--ed-pad); }
  .case-body.ed-after .cs-scroll-panel--list { order: 2; padding: 8px 0 0; border-radius: 0; background: none; }
}

/* Hairlines (23 Nov). A fill behind an image that fills its frame only ever shows as an anti-aliased line at the
   edges and rounded corners. JPEGs are always opaque, so their own fill is never needed; and these page frames are
   filled edge to edge by their image (checked at 1440: cover or fill, none letterboxed). Nike's Reserved for You
   cards keep their white on purpose (it finishes the card's fade). Frames that letterbox set a colour inline and keep it. */
img:where([src$=".jpg"], [src$=".jpeg"]) { background-color: transparent !important; }
:where(.vs-b, .vs-race-media, .vs-clip, .au-web, .au-full, .au-phone, .mi-crop, .mi-clip, .nk-cut):where(:has(> img, > video, > picture)):not([style*="-bg"]) { background-color: transparent !important; }
