/* pages2: additions and overrides, loaded after v3.css. Owned by one workstream (see HANDOFF §5.28).
   Sections: fx (transitions, cursor, loupe, lightbox) · the read (case pages) · Work · the Oolka hub · About ·
   Contact · 404. */

/* =============================================================================================
   fx · page transitions
   ============================================================================================= */
/* a Work card opens into the case's film */
.fx-cover-in [data-f3] { view-transition-name: fx-cover; }
::view-transition-group(fx-cover) { overflow: clip; border-radius: clamp(14px, 1.6vw, 26px); animation-duration: 0.75s; }
::view-transition-old(fx-cover), ::view-transition-new(fx-cover) { height: 100%; object-fit: cover; }
::view-transition-new(fx-cover) { animation-duration: 0.5s; animation-delay: 0.12s; }
/* going back, the page leaves the other way */
@keyframes fx-back-out { to { opacity: 0; transform: translateY(3%); } }
@keyframes fx-back-in { from { opacity: 0; transform: translateY(-3%); } }
html:active-view-transition-type(back)::view-transition-old(root) { animation-name: fx-back-out; }
html:active-view-transition-type(back)::view-transition-new(root) { animation-name: fx-back-in; }
/* browsers without cross-document transitions: a short fade on the way out */
html.fx-leaving main, html.fx-leaving .site-footer { opacity: 0; transform: translateY(-10px); transition: opacity 0.24s ease, transform 0.24s ease; }

/* =============================================================================================
   fx · the cursor tag (built by main.js), the loupe
   ============================================================================================= */
.cursor-tag { transition: opacity 0.3s, background-color 0.25s, border-color 0.25s, color 0.25s, scale 0.2s var(--ease); }
.cursor-tag.fx-plain span::after { content: none; }
.fx-press .cursor-tag { scale: 0.88; }
.fx-quiet .cursor-tag:not(.is-action), .fx-looking .cursor-tag, .fx-lb-open .cursor-tag, html:has(.c3-toc:hover) .cursor-tag { opacity: 0 !important; }

.fx-loupe { position: fixed; left: 0; top: 0; z-index: 81; pointer-events: none; display: flex; flex-direction: column; gap: 7px; opacity: 0; scale: 0.9; transform-origin: 0 0; transition: opacity 0.25s, scale 0.35s var(--ease); }
.fx-loupe.is-on { opacity: 1; scale: 1; }
.fx-loupe i { display: block; width: 260px; height: 190px; border-radius: 14px; background-color: var(--card); background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(11, 11, 13, 0.1), 0 2px 4px rgba(11, 11, 13, 0.06), 0 24px 50px -16px rgba(11, 11, 13, 0.45); }
.fx-loupe span { align-self: flex-start; padding: 6px 10px 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--rule); color: var(--ink); font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* =============================================================================================
   fx · the lightbox
   ============================================================================================= */
.fx-lb-fig { position: relative; }
.fx-lb-hit { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border-radius: inherit; cursor: zoom-in; }
.fx-lb-hit::after { content: ""; position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(11, 11, 13, 0.12), 0 4px 12px -4px rgba(11, 11, 13, 0.35); background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 4h5v5M9 20H4v-5M20 4l-6.5 6.5M4 20l6.5-6.5'/%3E%3C/svg%3E") center / 15px no-repeat; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.35s var(--ease); }
.fx-lb-hit:hover::after, .fx-lb-hit:focus-visible::after { opacity: 1; transform: none; }
.fx-lb-hit:focus-visible { outline: 3px solid #0b0b0d; outline-offset: -3px; box-shadow: inset 0 0 0 6px #fff; } /* a black ring inside a white one: visible on any piece */
@media (hover: none) { .fx-lb-hit::after { opacity: 0.85; transform: scale(0.82); right: 6px; top: 6px; } }
html.fx-lb-open { overflow: hidden; }

.fx-lb { --fx-lb-dim: 1; position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(255, 255, 255, calc(0.97 * var(--fx-lb-dim))); color: var(--ink); overflow: hidden; opacity: 0; transition: opacity 0.3s ease, background-color 0.4s ease; overscroll-behavior: contain; }
.fx-lb:not([open]) { display: none; }
.fx-lb.is-on { opacity: 1; }
.fx-lb::backdrop { background: rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.fx-lb.is-closing { background-color: rgba(255, 255, 255, 0); }
.fx-lb.is-closing .fx-lb-top, .fx-lb.is-closing .fx-lb-foot, .fx-lb.is-closing .fx-lb-nav { opacity: 0; transition: opacity 0.2s; }
.fx-lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(12px, env(safe-area-inset-top)) var(--pad) 10px; }
.fx-lb-where { display: flex; align-items: baseline; gap: 14px; min-width: 0; margin: 0; }
.fx-lb-count { font: 600 12px/1 var(--f-sans); letter-spacing: 0.16em; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.fx-lb-group { font: 650 clamp(15px, 1.2vw, 18px)/1.2 var(--f-sans); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-lb-tools { display: flex; gap: 8px; flex: none; }
.fx-lb-btn, .fx-lb-nav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--rule-2); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 11, 13, 0.06); transition: background 0.2s, border-color 0.2s, opacity 0.2s, transform 0.3s var(--ease); }
.fx-lb-btn svg, .fx-lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fx-lb-btn:hover, .fx-lb-nav:hover { background: var(--surface); border-color: var(--control); }
.fx-lb-btn.is-x:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.fx-lb-btn:disabled, .fx-lb-nav:disabled { opacity: 0.28; pointer-events: none; }
.fx-lb-btn:focus-visible, .fx-lb-nav:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.fx-lb-stage { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; touch-action: none; cursor: zoom-in; padding: 6px var(--pad); }
.fx-lb.is-zoomed .fx-lb-stage { cursor: grab; }
.fx-lb.is-zoomed .fx-lb-stage:active { cursor: grabbing; }
.fx-lb-frame { display: grid; place-items: center; max-width: 100%; max-height: 100%; will-change: transform; }
.fx-lb-img { display: block; width: auto; height: auto; max-width: min(100%, 1500px); max-height: calc(100dvh - 210px); object-fit: contain; border-radius: 8px; box-shadow: 0 0 0 1px rgba(11, 11, 13, 0.08), 0 2px 6px rgba(11, 11, 13, 0.06), 0 36px 80px -36px rgba(11, 11, 13, 0.5); user-select: none; -webkit-user-select: none; -webkit-user-drag: none; transform-origin: 50% 50%; }
.fx-lb-nav { position: absolute; top: 50%; z-index: 3; width: 54px; height: 54px; margin-top: -27px; }
.fx-lb-nav.is-prev { left: max(12px, calc(var(--pad) - 6px)); }
.fx-lb-nav.is-next { right: max(12px, calc(var(--pad) - 6px)); }
.fx-lb-nav.is-prev:hover { transform: translateX(-3px); }
.fx-lb-nav.is-next:hover { transform: translateX(3px); }
.fx-lb.is-single .fx-lb-nav, .fx-lb.is-single .fx-lb-thumbs { display: none; }
.fx-lb.is-zoomed .fx-lb-nav { opacity: 0; pointer-events: none; }
.fx-lb-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px var(--pad) max(14px, env(safe-area-inset-bottom)); min-width: 0; }
.fx-lb-cap { margin: 0; max-width: 64ch; text-align: center; font: 500 clamp(14px, 1.05vw, 16px)/1.45 var(--f-sans); color: var(--ink-2); text-wrap: balance; min-height: 1.45em; }
.fx-lb-cap:empty { display: none; }
.fx-lb-hint { margin: 0; color: var(--muted); font-size: 10.5px; text-align: center; animation: fx-hint 5s ease forwards; }
@keyframes fx-hint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.fx-lb-thumbs { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.fx-lb-thumbs::-webkit-scrollbar { display: none; }
.fx-lb-thumbs button { flex: none; width: 40px; height: 50px; border-radius: 6px; overflow: hidden; opacity: 0.5; box-shadow: inset 0 0 0 1px var(--rule); outline-offset: 2px; transition: opacity 0.2s, transform 0.3s var(--ease); }
.fx-lb-thumbs button:hover { opacity: 0.8; }
.fx-lb-thumbs button.is-on { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 2px var(--ink); }
.fx-lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .fx-lb-nav { display: none; }
  .fx-lb-img { max-height: calc(100dvh - 190px); border-radius: 6px; }
  .fx-lb-stage { padding-inline: 10px; }
  .fx-lb-btn { width: 40px; height: 40px; }
  .fx-lb-tools [data-lb="out"], .fx-lb-tools [data-lb="in"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fx-lb { transition: none; } .fx-lb-hint { animation: none; } }

/* =============================================================================================
   Work: the filter, and the film that plays in a card while you hover it
   ============================================================================================= */
.w4-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: clamp(22px, 4vh, 40px); }
.w4-filter { display: flex; flex-wrap: wrap; gap: 8px; }
html:not(.js) .w4-filter { display: none; }
.w4-filter button { --acc-on: var(--ink); display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 16px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--fg-2); font: 600 14px/1 var(--f-sans); letter-spacing: -0.01em; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.4s var(--ease); }
/* a company's button carries its accent (bright, ink on it, and its on-paper variant for the outline); All is ink */
.w4-filter button[data-co="all"] { --acc: var(--ink); --acc-tx: var(--ink); --acc-on: var(--paper); }
.w4-filter button { background: var(--card); }
.w4-filter button span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--surface); color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; transition: inherit; }
.w4-filter button:hover { border-color: var(--acc-tx); color: var(--fg); }
.w4-filter button[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-on); }
.w4-filter button[aria-pressed="true"] span { background: color-mix(in srgb, var(--acc-on) 18%, transparent); color: var(--acc-on); }
.w4-filter button:active { transform: scale(0.96); }
.w4-tip { margin: 0; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.w4-tip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a1f; box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.22); animation: w4-blink 1.6s ease-in-out infinite; }
@keyframes w4-blink { 50% { opacity: 0.3; } }
@media (hover: none), (pointer: coarse) { .w4-tip { display: none; } }
@media (max-width: 560px) {
  .w4-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding: 2px var(--pad); }
  .w4-filter::-webkit-scrollbar { display: none; }
  .w4-filter button { flex: none; }
}

/* the card's film: the real player, inert and without its chrome (lens.js) */
.w4-card .w4-mini.f3 { position: absolute; inset: 0; z-index: 3; width: auto; display: none; overflow: hidden; border-radius: inherit; background: #fff; box-shadow: none; pointer-events: none; opacity: 0; transition: opacity 0.35s ease; }
.w4-card.is-live .w4-mini.f3 { display: block; }
.w4-card.is-mini .w4-mini.f3 { opacity: 1; }
.w4-mini > :not(.f3-stage):not(.w4-mini-hud):not(.w4-mini-bar) { display: none !important; }
.w4-mini .f3-stage { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; cursor: inherit; }
.w4-mini .sc { padding-top: 8cqmin; }
.w4-mini .sc-shot > .sc { visibility: inherit; } /* a shot shows or hides its scene */
.w4-mini-hud { position: absolute; z-index: 8; right: 14px; top: 14px; padding: 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.9); color: var(--ink); box-shadow: 0 0 0 1px rgba(11, 11, 13, 0.1); font: 600 10.5px/1 var(--f-sans); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.w4-mini-hud:empty { display: none; }
.w4-mini-bar { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(11, 11, 13, 0.1); }
.w4-mini-bar b { display: block; height: 100%; background: var(--acc-tx); transform-origin: 0 50%; transform: scaleX(0); }
/* a single wide card: the film takes the right-hand side and the card keeps its words */
.w4-cards:not(.is-many) .w4-mini.f3 { inset: 12px 12px 12px auto; aspect-ratio: 16 / 9; max-width: calc(60% - 12px); border-radius: 12px; box-shadow: 0 0 0 1px rgba(11, 11, 13, 0.08), 0 18px 34px -20px rgba(11, 11, 13, 0.5); }
.w4-card .w4-work { transition: opacity 0.3s; }
.w4-card.is-mini .w4-work { opacity: 0; }

/* =============================================================================================
   Case pages: the read's contents, "Watch this part", the way back, and the type
   ============================================================================================= */
.c3-read > .r3-head { flex-wrap: wrap; row-gap: 6px; }
.c3-readmeta { margin-left: auto; color: var(--muted); font: 500 11.5px/1.5 var(--f-mono); letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }

/* the type: a comfortable measure, ragged edges kept tidy, punctuation that hangs */
.c3-read .r3-step .prose { max-width: 64ch; }
.c3-read .r3-step .prose p, .c3-read .r3-step .prose li { text-wrap: pretty; hanging-punctuation: first allow-end last; font-feature-settings: "kern", "calt", "case"; }
.c3-read .r3-step .prose .pull { padding-left: 0.7em; border-left: 3px solid var(--acc-tx); max-width: 26ch; }
.c3-read .r3-step .c3-quote { margin: 4px 0 6px; padding: 0; }
.c3-read .r3-step .c3-quote p { max-width: 28ch; font: 650 clamp(21px, 1.8vw, 30px)/1.22 var(--f-sans); letter-spacing: -0.03em; color: var(--fg); text-indent: -0.4em; }
.c3-read .r3-step .c3-said { gap: 12px; }
.c3-read .r3-step .c3-said strong { display: block; margin-bottom: 2px; color: var(--fg); font-weight: 650; text-indent: -0.36em; }
.c3-read .ledger-row dd b { font-variant-numeric: tabular-nums; }

/* every step can play its part of the film */
.c3-watch { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 38px; margin-top: 8px; padding: 0 15px 0 6px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg-2); font: 600 13.5px/1 var(--f-sans); letter-spacing: -0.01em; transition: border-color 0.25s, color 0.25s, background-color 0.25s, transform 0.4s var(--ease); }
.c3-watch i { position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--acc); transition: transform 0.4s var(--ease); }
.c3-watch i::after { content: ""; position: absolute; left: 10px; top: 8px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #0b0b0d; }
.c3-watch-t { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.c3-watch-t:empty { display: none; }
.c3-watch:hover { border-color: var(--acc-tx); color: var(--fg); }
.c3-watch:hover i { transform: scale(1.12); }
.c3-watch:active { transform: scale(0.97); }
html:not(.js) .c3-watch { display: none; }

.c3-back { position: fixed; z-index: 45; right: var(--pad); bottom: max(18px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 99px; background: rgba(255, 255, 255, 0.96); color: var(--ink); border: 1px solid var(--rule); font: 650 14px/1 var(--f-sans); letter-spacing: -0.01em; box-shadow: 0 10px 28px -12px rgba(11, 11, 13, 0.35); opacity: 0; visibility: hidden; translate: 0 16px; transition: opacity 0.3s, translate 0.45s var(--ease), visibility 0s linear 0.3s; }
.c3-back.is-on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.3s, translate 0.45s var(--ease); }
.c3-back span { display: inline-block; animation: c3-nudge 1.6s var(--ease) infinite; }
@keyframes c3-nudge { 50% { transform: translateY(3px); } }

/* the contents */
.c3-toc, .c3-back { --acc: var(--case-acc, #7f93ff); }
.c3-toc { position: fixed; z-index: 44; opacity: 0; visibility: hidden; transition: opacity 0.4s, translate 0.5s var(--ease), visibility 0s linear 0.4s; }
.c3-toc.is-in { opacity: 1; visibility: visible; transition: opacity 0.4s, translate 0.5s var(--ease); }
.c3-toc ol { display: flex; flex-direction: column; }
.c3-toc a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--muted); }
.c3-toc a i { order: -1; flex: none; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--acc-tx) calc(var(--p, 0) * 100%), var(--line-2) 0); transition: width 0.4s var(--ease); }
.c3-toc .is-extra a i { background: var(--line-2); }
.c3-toc .is-extra a.is-on i { background: var(--acc-tx); }
.c3-toc a b { flex: none; min-width: 20px; font: 600 10.5px/1 var(--f-sans); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.c3-toc a span { min-width: 0; font: 600 14px/1.15 var(--f-sans); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c3-toc a.is-on, .c3-toc a.is-done { color: var(--fg-2); }
.c3-toc a.is-on b, .c3-toc a.is-on span { color: var(--fg); }
.c3-toc a:hover span, .c3-toc a:focus-visible span { color: var(--acc-tx); }
.c3-toc-head { margin: 0 0 8px; color: var(--muted); font: 600 10.5px/1 var(--f-sans); letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
html:not(.js) .c3-toc { display: none; }

/* desktop: a rail of ticks at the left edge; point at it and it opens into the contents */
@media (min-width: 1100px) {
  .c3-toc { left: 8px; top: 50%; translate: -10px -50%; }
  .c3-toc.is-in { translate: 0 -50%; }
  .c3-toc-btn { display: none; }
  .c3-toc-panel { width: 26px; padding: 10px 0; border-radius: 16px; overflow: hidden; transition: width 0.45s var(--ease), padding 0.45s var(--ease), background-color 0.3s, box-shadow 0.3s; }
  .c3-toc a { height: 28px; }
  .c3-toc a i { width: 12px; }
  .c3-toc a.is-on i { width: 22px; }
  .c3-toc a b, .c3-toc a span, .c3-toc-head { opacity: 0; translate: -8px 0; transition: opacity 0.2s, translate 0.35s var(--ease), color 0.2s; }
  .c3-toc:hover .c3-toc-panel, .c3-toc:focus-within .c3-toc-panel { width: 300px; padding: 14px 18px 12px 14px; background: rgba(255, 255, 255, 0.97); box-shadow: var(--float-shadow); }
  .c3-toc:hover a b, .c3-toc:hover a span, .c3-toc:hover .c3-toc-head, .c3-toc:focus-within a b, .c3-toc:focus-within a span, .c3-toc:focus-within .c3-toc-head { opacity: 1; translate: 0 0; transition-delay: 0.08s; }
  .c3-toc:not(:hover):not(:focus-within) .c3-toc-head { height: 0; margin: 0; }
}
/* phones and tablets: a chip in the corner that opens into the contents */
@media (max-width: 1099px) {
  .c3-toc { left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); translate: 0 14px; max-width: calc(100vw - 24px); }
  .c3-toc.is-in { translate: 0 0; }
  .c3-toc-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; max-width: min(78vw, 360px); height: 44px; padding: 0 16px 0 14px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--rule); color: var(--ink); font: 600 13.5px/1 var(--f-sans); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 28px -12px rgba(11, 11, 13, 0.35); }
  .c3-toc-k { flex: none; color: var(--muted); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
  .c3-toc-now { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .c3-toc-meter { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rule); }
  .c3-toc-meter b { display: block; height: 100%; background: var(--acc-tx); transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.2s linear; }
  .c3-toc-panel { position: absolute; left: 0; bottom: calc(100% + 8px); width: min(340px, calc(100vw - 24px)); max-height: min(64vh, 520px); overflow: auto; overscroll-behavior: contain; padding: 14px 10px 8px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--float-shadow); opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity 0.25s, translate 0.4s var(--ease), visibility 0s linear 0.25s; }
  .c3-toc.is-open .c3-toc-panel { opacity: 1; visibility: visible; translate: 0 0; transition: opacity 0.25s, translate 0.4s var(--ease); }
  .c3-toc a { min-height: 44px; }
  .c3-toc a i { width: 18px; }
}
@media (prefers-reduced-motion: reduce) { .c3-back span { animation: none; } }

/* =============================================================================================
   The Oolka hub
   ============================================================================================= */
.o4-hero::before { background: radial-gradient(40% 60% at 18% 30%, #ff5a8a, transparent 70%), radial-gradient(40% 60% at 45% 20%, #ff4a3d, transparent 70%), radial-gradient(40% 60% at 72% 35%, #5b7cff, transparent 70%), radial-gradient(40% 60% at 92% 25%, #7cf2c6, transparent 70%); filter: blur(60px) saturate(1.2); opacity: 0.12; }
.o4-hero .c3-title { font-size: clamp(72px, 15vw, 260px); }
.o4-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(10px, 2vh, 24px); }
.o4-stats > div { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-2); position: relative; }
.o4-stats > div::before { content: ""; position: absolute; left: 0; top: -1px; width: 44px; height: 3px; background: var(--acc-tx); }
.o4-stats b { font: 800 clamp(46px, 5.4vw, 96px)/0.86 var(--f-sans); letter-spacing: -0.055em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.o4-stats > div > span { color: var(--muted); font-size: 14.5px; line-height: 1.45; max-width: 36ch; }
@media (max-width: 700px) { .o4-stats { grid-template-columns: 1fr; gap: 22px; } }

.o4-cases, .o4-also { padding-block: clamp(36px, 7vh, 100px) 0; }
.o4-cases > .r3-head, .o4-also > .r3-head { flex-wrap: wrap; row-gap: 6px; margin-bottom: clamp(20px, 3.4vh, 36px); }
.o4-tip { display: inline-flex; align-items: center; gap: 10px; }
.o4-tip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5a1f; box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.22); animation: w4-blink 1.6s ease-in-out infinite; }
@media (hover: none), (pointer: coarse) { .o4-tip { display: none; } }
.o4-cards .w4-card { min-height: clamp(260px, 34vh, 360px); }

.o4-block { padding-block: clamp(30px, 6vh, 80px); border-bottom: 1px solid var(--line); }
.o4-block:last-child { border-bottom: 0; }
.o4-copy { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 10px clamp(24px, 4vw, 70px); align-items: start; margin-bottom: clamp(22px, 4vh, 44px); }
.o4-copy h3 { grid-column: 1; grid-row: 1 / 4; margin: 0; font: 750 clamp(30px, 3.6vw, 60px)/0.98 var(--f-sans); letter-spacing: -0.045em; text-wrap: balance; }
.o4-copy p { grid-column: 2; margin: 0; max-width: 60ch; color: var(--fg-2); font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; text-wrap: pretty; }
.o4-copy .o4-k { font-size: 11.5px; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); }
.o4-copy .o4-k i { display: inline-block; width: 22px; height: 10px; border-radius: 2px; }
.o4-copy .o4-k i + i, .o4-copy .o4-k .o4-blue { margin-left: 8px; }
.o4-red { background: #e3262f; }
.o4-blue { background: #1f3fd6; }
@media (max-width: 860px) { .o4-copy { grid-template-columns: 1fr; } .o4-copy h3, .o4-copy p { grid-column: 1; grid-row: auto; } }

/* Har Indian: the posters, pasted on a wall */
.o4-har { position: relative; isolation: isolate; }
.o4-har::before { content: ""; position: absolute; z-index: -1; inset: 18% -6% 0; background: radial-gradient(40% 50% at 12% 60%, rgba(227, 38, 47, 0.07), transparent 70%), radial-gradient(40% 50% at 88% 55%, rgba(31, 63, 214, 0.08), transparent 70%); pointer-events: none; } /* on white, a breath of the two colours, not a haze */
.o4-wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 26px); padding: 6px; }
.o4-wall figure { position: relative; aspect-ratio: 966 / 1200; border-radius: 4px; overflow: hidden; background: var(--surface); rotate: var(--r, 0deg); box-shadow: 0 0 0 1px rgba(11, 11, 13, 0.06), 0 2px 3px rgba(11, 11, 13, 0.08), 0 18px 30px -18px rgba(11, 11, 13, 0.5); transition: rotate 0.5s var(--ease), translate 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.4s, filter 0.4s; }
.o4-wall img { width: 100%; height: 100%; object-fit: cover; }
.o4-wall figure:hover, .o4-wall figure:focus-within { rotate: 0deg; translate: 0 -10px; z-index: 2; box-shadow: 0 0 0 1px rgba(11, 11, 13, 0.06), 0 4px 6px rgba(11, 11, 13, 0.06), 0 34px 50px -24px rgba(11, 11, 13, 0.55); }
.o4-wall:has(figure:hover) figure:not(:hover) { opacity: 0.55; filter: saturate(0.6); }
@media (max-width: 1000px) { .o4-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .o4-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* the store screenshots, as phones on a shelf */
.o4-sets { display: flex; flex-direction: column; gap: clamp(28px, 5vh, 56px); }
.o4-set-k { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--muted); }
.o4-set-k span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--surface); color: var(--fg-2); letter-spacing: 0; }
.o4-shelf { display: grid; gap: clamp(10px, 1.4vw, 22px); align-items: end; }
.o4-set.is-ios .o4-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1040px; }
.o4-set.is-play .o4-shelf { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.o4-shelf figure { position: relative; border-radius: clamp(10px, 1.2vw, 18px); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px rgba(11, 11, 13, 0.08), 0 2px 4px rgba(11, 11, 13, 0.06), 0 24px 40px -24px rgba(11, 11, 13, 0.45); transition: translate 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.o4-set.is-ios figure { aspect-ratio: 600 / 1303; }
.o4-set.is-play figure { aspect-ratio: 600 / 1067; }
.o4-shelf img { width: 100%; height: 100%; object-fit: cover; }
.o4-shelf figure:hover, .o4-shelf figure:focus-within { translate: 0 -10px; box-shadow: 0 0 0 1px rgba(11, 11, 13, 0.08), 0 4px 6px rgba(11, 11, 13, 0.06), 0 40px 56px -26px rgba(11, 11, 13, 0.5); }
@media (max-width: 1099px) { .o4-set.is-play .o4-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .o4-shelf { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 14px; scrollbar-width: none; }
  .o4-shelf::-webkit-scrollbar { display: none; }
  .o4-shelf figure { flex: 0 0 auto; scroll-snap-align: center; }
  .o4-set.is-ios figure { width: 52vw; }
  .o4-set.is-play figure { width: 44vw; }
}

/* scroll: posters are pasted up, phones rise onto the shelf */
@keyframes o4-paste { from { opacity: 0; scale: 1.16; } }
@keyframes o4-rise { from { opacity: 0; translate: 0 var(--rise, 60px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.motion-off) .o4-wall figure { animation: o4-paste linear both; animation-timeline: view(); animation-range: entry 5% entry 80%; }
    html:not(.motion-off) .o4-shelf figure { animation: o4-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    html:not(.motion-off) .o4-shelf figure:nth-child(even) { --rise: 110px; }
  }
}

.o4-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 70px); }
.o4-list li { padding: 18px 0 20px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; text-wrap: pretty; }
.o4-list li strong { display: block; margin-bottom: 4px; color: var(--fg); font: 700 clamp(19px, 1.5vw, 24px)/1.2 var(--f-sans); letter-spacing: -0.025em; }
.o4-list a { color: var(--fg); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.o4-list a:hover { text-decoration-color: currentColor; }
@media (max-width: 860px) { .o4-list { grid-template-columns: 1fr; } }

/* =============================================================================================
   About: the experience list as a timeline you can scrub
   ============================================================================================= */
.ab-hint { margin: 0 0 14px; color: var(--muted); }
html:not(.js) .ab-hint { display: none; }
.ab-box { --s: 1; position: relative; }
.ab-axis { position: relative; height: 40px; margin-bottom: 4px; cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; }
.ab-axis::before { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--line-2); }
.ab-axis > span { position: absolute; left: calc(var(--x) * 100%); bottom: 14px; translate: -50% 0; color: var(--muted); font: 600 11px/1 var(--f-sans); letter-spacing: 0.14em; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.ab-axis > span::after { content: ""; position: absolute; left: 50%; top: calc(100% + 2px); width: 1px; height: 8px; background: var(--line-2); }
.ab-axis > span.is-now { translate: calc(-100% - 14px) 0; color: var(--fg); display: inline-flex; align-items: center; gap: 7px; }
.ab-axis > span.is-now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.22); animation: w4-blink 2s ease-in-out infinite; }
.ab-axis > span.is-now::after { left: auto; right: 0; }
.ab-knob { position: absolute; left: calc(var(--s) * 100%); bottom: 2px; width: 14px; height: 14px; translate: -50% 0; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); box-shadow: 0 0 0 4px var(--bg); transition: left 0.12s linear, transform 0.2s var(--ease); }
.ab-knob:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ab-axis:active .ab-knob, .ab-knob:focus-visible { transform: scale(1.25); }

.ab-tl .tl-row { position: relative; }
.ab-bar { position: absolute; z-index: 0; left: calc(var(--a) * 100%); width: max(6px, calc((var(--b) - var(--a)) * 100%)); bottom: -1px; height: 3px; border-radius: 3px; background: var(--c-tx, var(--acc-tx)); transform-origin: 0 50%; pointer-events: none; transition: height 0.35s var(--ease), opacity 0.35s, bottom 0.35s var(--ease); }
.ab-tl .tl-row > span { position: relative; z-index: 1; transition: opacity 0.25s, color 0.3s; }
.ab-tl .tl-row:hover .ab-bar, .ab-tl .tl-row:focus-visible .ab-bar, .ab-tl .tl-row.is-then .ab-bar { height: calc(100% - 10px); bottom: 5px; opacity: 0.2; background: var(--c, var(--acc)); }
.ab-tl .tl-row:hover .co, .ab-tl .tl-row.is-then .co { color: var(--c-tx, var(--acc-tx)); }
.ab-box.is-scrub .tl-row:not(.is-then) > span, .ab-box.is-scrub .tl-row:not(.is-then) .ab-bar { opacity: 0.3; }
.ab-scrub { position: absolute; z-index: 3; top: 44px; bottom: 0; left: calc(var(--s) * 100%); width: 1px; background: var(--fg); pointer-events: none; opacity: 0; transition: opacity 0.2s; }
.ab-box.is-scrub .ab-scrub { opacity: 1; }
.ab-scrub p { position: absolute; top: -37px; left: 0; translate: -50% 0; display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 7px 11px; border-radius: 99px; background: var(--card); color: var(--ink); border: 1px solid var(--rule); white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(11, 11, 13, 0.35); }
.ab-scrub b { font: 700 11px/1 var(--f-sans); letter-spacing: 0.12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.ab-scrub span { font: 600 12.5px/1 var(--f-sans); letter-spacing: -0.01em; }
.ab-scrub span:empty { display: none; }
.ab-scrub.is-left p { translate: calc(-100% + 18px) 0; }
.ab-scrub:not(.is-left) p { translate: -18px 0; }
.ab-box.is-scrub .ab-axis > span { opacity: 0; }
.ab-axis > span { transition: opacity 0.2s; }
@media (max-width: 420px) { .ab-scrub span { display: none; } }

/* =============================================================================================
   Contact: hints, the draft, the meter
   ============================================================================================= */
.c4-field-wrap { display: flex; flex-direction: column; gap: 8px; }
.c4-hint { flex-basis: 100%; display: flex; align-items: center; gap: 8px; margin: 2px 0 0; color: var(--acc-tx); font: 500 13.5px/1.4 var(--f-sans); }
.c4-hint::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--acc-tx); flex: none; }
.c4-chips .c4-hint { margin-top: 4px; }
.c4-field input[aria-invalid="true"] { border-color: var(--acc-tx); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.18); }
.c4-chips[aria-invalid="true"] legend { color: var(--acc-tx); }
.c4-form.is-ready [data-brief-send] { box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.22); }
.c4-reset { align-self: center; margin-left: 6px; padding: 8px 2px; color: var(--muted); font: 500 14px/1 var(--f-sans); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: color 0.2s, text-decoration-color 0.2s; }
.c4-reset:hover { color: var(--fg); text-decoration-color: currentColor; }
.c4-keys { margin: -6px 0 0; color: var(--muted); }
.c4-keys kbd { display: inline-block; min-width: 22px; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); font: 600 11px/1 var(--f-sans); letter-spacing: 0; text-align: center; color: var(--fg); }
@media (hover: none), (pointer: coarse) { .c4-keys { display: none; } }
.c4-restored { align-self: flex-start; margin: 0 0 -6px; padding: 6px 10px; border-radius: 99px; background: var(--surface); color: var(--fg-2); }
.c4-card dd.is-empty, .c4-card .c4-line.is-empty, .c4-card h2.is-empty { color: #6b665c; }
.c4-meter { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.c4-meter i { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.c4-meter b { position: absolute; inset: 0; border-radius: inherit; background: #ff5a1f; transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.5s var(--ease); }
.c4-meter span { flex: none; color: #6b665c; font: 600 12px/1 var(--f-sans); letter-spacing: 0.02em; }
[data-brief-copy].is-done { background: #34c759; border-color: #34c759; color: #0b0b0d; }
@media (max-width: 560px) { .c4-reset { margin-left: 0; } .c4-meter span { font-size: 11px; } }

/* =============================================================================================
   404: what you asked for, and a guess for anyone who'd rather not play
   ============================================================================================= */
.lost3-asked { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.lost3-asked code { padding: 4px 8px; border-radius: 6px; background: var(--surface); color: var(--ink); font: 600 12px/1.2 ui-monospace, "JetBrains Mono", monospace; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }
.lost3-guess { margin: 0; color: var(--fg-2); font-size: clamp(15px, 1.1vw, 17px); }
.lost3-guess a { color: var(--fg); font-weight: 650; text-decoration: underline; text-decoration-color: rgba(255, 59, 48, 0.7); text-underline-offset: 4px; transition: text-decoration-color 0.2s, color 0.2s; }
.lost3-guess a:hover { color: var(--green); text-decoration-color: currentColor; }

/* =============================================================================================
   Small screens: the biggest words still fit at 320px
   ============================================================================================= */
.c3-next-t { font-size: clamp(42px, 12vw, 230px); }
.about-hero .cs-title { font-size: clamp(42px, 13vw, 250px); }

/* the buttons on these pages take the front page's round shape (the case pages' and the front page's are round too) */
main .pill { border-radius: 99px; letter-spacing: 0.14em; }

/* reduced motion: a card's work stays where it is when you point at it */
@media (prefers-reduced-motion: reduce) {
  .w4-card:is(:hover, :focus-visible) .w4-work:is(.is-slides, .is-screens, .is-phone) img { --s: 62%; --r: 6deg; --y: 0%; --sx: 0%; --sy: 0%; --py: 0%; }
}
html.motion-off .w4-card:is(:hover, :focus-visible) .w4-work:is(.is-slides, .is-screens, .is-phone) img { --s: 62%; --r: 6deg; --y: 0%; --sx: 0%; --sy: 0%; --py: 0%; }

/* phones: the read's stage stays pinned at the top, so anything in the read that takes focus lands below it */
@media (max-width: 900px) {
  .c3-read .r3-step :is(a, button) { scroll-margin-top: calc(var(--header-h) + 44vh + 28px); scroll-margin-bottom: 24px; }
  /* the pinned stage brings a band of paper up to the top of the screen, so the words it passes over go under it
     cleanly instead of showing through the header's strip; its foot fades, so they come out from under it softly */
  .c3-read .r3-stagewrap { top: 0; margin-inline: calc(var(--pad) * -1); padding: calc(var(--header-h) + 6px) var(--pad) 14px; border-radius: 0; box-shadow: none; background: linear-gradient(var(--paper) calc(100% - 14px), rgba(255, 255, 255, 0)); }
  .c3-read .r3-stagebox { border-radius: 18px; box-shadow: 0 0 0 1px rgba(11, 11, 13, 0.08), 0 18px 30px -18px rgba(11, 11, 13, 0.35); }
}

/* =============================================================================================
   Case pages, one page each (21 Oct): In short, the article in five parts, the mini-contents, the work and the
   numbers. Written by tools/cases_v3.py; the motion is case5.js (figures rise once, the diagnosis's marker draws,
   the bars grow) and main.js (numbers count once). With motion off or no JavaScript, everything is simply there.
   ============================================================================================= */
.c5-page { --c5-w: 680px; --c5-ser: "Instrument Serif", Georgia, "Times New Roman", serif; --c5-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; --c5-tight: "Inter Tight", "Inter Tight Fallback", "Inter", sans-serif; }
.c5-lab { font: 500 11px/1.4 var(--c5-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
/* a card opened from Work or the Oolka hub lands on "In short" */
.fx-cover-in [data-c5-cover] { view-transition-name: fx-cover; }

/* ---- the hero, and In short ---- */
.c5-hero { padding-bottom: clamp(24px, 5vh, 64px); }
.c5-hero .c3-top { margin-bottom: clamp(26px, 5vh, 56px); }
.c5-short { position: relative; padding: clamp(20px, 2.6vw, 40px); border-radius: clamp(16px, 1.6vw, 24px); background: var(--card); box-shadow: var(--lift-shadow); }
.c5-short-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: clamp(16px, 2.2vw, 28px); }
.c5-short h2 { margin: 0; font: 400 clamp(30px, 2.8vw, 46px)/1 var(--c5-ser); letter-spacing: -0.01em; color: var(--ink); }
.c5-short dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 44px); margin: 0; }
.c5-short dl > div { padding-top: 14px; border-top: 2px solid var(--ink); }
.c5-short dt { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font: 500 11.5px/1.2 var(--c5-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc-tx); }
.c5-short dt i { display: inline-grid; place-items: center; width: 21px; height: 21px; flex: none; border-radius: 50%; background: var(--acc); color: var(--ink); font-style: normal; font-size: 10.5px; letter-spacing: 0; }
.c5-short dd { margin: 0; font: 550 clamp(17px, 1.28vw, 21px)/1.4 var(--f-sans); letter-spacing: -0.012em; color: var(--ink); text-wrap: pretty; }
@media (max-width: 860px) { .c5-short dl { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* ---- the body: the mini-contents on the left (desktop), the article on the right ---- */
.c5-body { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: clamp(8px, 3vh, 40px); padding-bottom: clamp(64px, 11vh, 130px); }
.c5-toc { display: none; }
@media (min-width: 1100px) {
  .c5-body { grid-template-columns: 200px minmax(0, 1fr); column-gap: clamp(40px, 5vw, 96px); }
  .c5-toc { display: block; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; padding-top: clamp(40px, 8vh, 96px); }
}
.c5-toc .c5-lab { display: block; margin-bottom: 14px; }
.c5-toc ol { display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.c5-toc a { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: baseline; padding: 9px 0 9px 16px; color: var(--muted); font: 500 14.5px/1.3 var(--f-sans); letter-spacing: -0.01em; text-decoration: none; transition: color 0.3s; }
.c5-toc a b { font: 500 11px/1 var(--c5-mono); color: inherit; transition: color 0.3s; }
.c5-toc a i { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--acc-tx); transform: scaleY(var(--p, 0)); transform-origin: 50% 0; }
.c5-toc a:hover, .c5-toc a[aria-current] { color: var(--ink); }
.c5-toc a[aria-current] b { color: var(--acc-tx); }

/* ---- the article ---- */
.c5-art { min-width: 0; max-width: 1080px; }
.c5-page .c5-sec.cs-sec { display: block; padding-top: clamp(40px, 8vh, 96px); scroll-margin-top: calc(var(--header-h) + 16px); }
.c5-page .c5-sh.cs-sec-head { position: static; display: flex; flex-direction: row; align-items: baseline; gap: 14px; margin-bottom: clamp(18px, 3vh, 30px); padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.c5-page .c5-sh .c5-n { font: 500 12px/1 var(--c5-mono); letter-spacing: 0.04em; color: var(--acc-tx); }
.c5-page .c5-sh h2 { margin: 0; font: 400 clamp(34px, 3.3vw, 56px)/1 var(--c5-ser); letter-spacing: -0.012em; color: var(--ink); }
.c5-h { max-width: 34ch; margin-top: clamp(30px, 4.4vh, 48px); font: 650 clamp(21px, 1.7vw, 28px)/1.22 var(--f-sans); letter-spacing: -0.022em; color: var(--ink); text-wrap: balance; }
.c5-in > .c5-h:first-child, .c5-split-t > .c5-h:first-child { margin-top: 0; }
.c5-prose { max-width: var(--c5-w); margin-top: clamp(14px, 2vh, 20px); font-size: clamp(17px, 1.18vw, 19.5px); line-height: 1.62; color: var(--ink-2); }
.c5-h + .c5-prose { margin-top: 10px; }
.c5-in > .c5-prose:first-child { margin-top: 0; }
.c5-prose > * + * { margin-top: 0.85em; }
.c5-prose p, .c5-prose li { text-wrap: pretty; hanging-punctuation: first allow-end last; }
.c5-prose strong { color: var(--ink); font-weight: 650; }
.c5-prose a { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--acc); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.c5-prose a:hover { text-decoration-color: var(--acc-tx); }
.c5-prose .list { border-top: 1px solid var(--rule); }
.c5-prose .list li { padding-block: 13px; }
.c5-prose .dots li::before { background: var(--acc-tx); }
.c5-prose .note { font-size: 15px; color: var(--muted); font-style: italic; }
.c5-prose.is-lead p { max-width: 32ch; font: 600 clamp(21px, 1.9vw, 30px)/1.3 var(--f-sans); letter-spacing: -0.02em; color: var(--ink); }
.c5-pull2 { max-width: 24ch; padding-left: 0.6em; border-left: 3px solid var(--acc-tx); font: 700 clamp(23px, 2.1vw, 34px)/1.16 var(--c5-tight) !important; letter-spacing: -0.03em; color: var(--ink) !important; }
.c5-quote { margin: 0; }
.c5-quote p { max-width: 30ch; font: italic 400 clamp(26px, 2.4vw, 38px)/1.18 var(--c5-ser); letter-spacing: -0.005em; color: var(--ink); text-indent: -0.35em; }
.c5-said strong { display: block; margin-bottom: 2px; text-indent: -0.36em; }

/* ---- the diagnosis: the biggest type on the page, on a wash of the case's colour ---- */
.c5-page .c5-sec.is-diagnosis { margin-top: clamp(40px, 8vh, 96px); padding: clamp(26px, 4.6vw, 72px) clamp(20px, 4.4vw, 72px) clamp(30px, 5vw, 76px); border-radius: clamp(18px, 2vw, 30px); background: #f6f5f2; background: color-mix(in srgb, var(--acc) 11%, #ffffff); }
.c5-page .c5-sec.is-diagnosis .c5-sh { border-bottom-color: rgba(11, 11, 13, 0.12); }
.c5-lead { max-width: 36ch; margin-bottom: clamp(10px, 1.6vh, 16px); font: 600 clamp(19px, 1.55vw, 25px)/1.32 var(--f-sans); letter-spacing: -0.015em; color: var(--ink-2); }
.c5-pull { max-width: 17ch; font: 800 clamp(30px, calc(4.2vw + 14px), 92px)/1.02 var(--c5-tight); letter-spacing: -0.042em; color: var(--ink); text-wrap: balance; }
.c5-pull span { background: linear-gradient(color-mix(in srgb, var(--acc) 50%, transparent), color-mix(in srgb, var(--acc) 50%, transparent)) 0 82% / var(--mk, 100%) 0.32em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 1.3s var(--ease) 0.15s; }
.c5-pull.is-pre span { --mk: 0%; }
.c5-sec.is-diagnosis .c5-prose { color: #45423d; }

/* ---- key numbers, set large ---- */
.c5-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(22px, 3vh, 36px) clamp(18px, 3vw, 48px); margin-block: clamp(22px, 4vh, 40px); }
.c5-in > .c5-nums:first-child { margin-top: 0; }
.c5-nums li { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-top: 14px; border-top: 2px solid var(--acc); }
.c5-num-k { font: 500 11px/1.3 var(--c5-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.c5-num-v { font: 800 clamp(46px, 5.2vw, 88px)/0.92 var(--c5-tight); letter-spacing: -0.045em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c5-nums.is-m .c5-num-v { font-size: clamp(36px, 3.7vw, 62px); }
.c5-nums.is-s .c5-num-v { font-size: clamp(28px, 2.5vw, 44px); }
.c5-num-l { max-width: 32ch; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.c5-nums.is-four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* ---- a sentence, drawn (hidden from screen readers: the sentence is right above it) ---- */
.c5-bars { display: grid; gap: 16px; max-width: var(--c5-w); margin-top: clamp(20px, 3vh, 32px); }
.c5-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "b b"; gap: 6px 14px; align-items: end; }
.c5-bar-l { grid-area: l; font-size: 15px; line-height: 1.35; color: #45423d; }
.c5-bar-v { grid-area: v; font: 800 clamp(26px, 2.4vw, 38px)/1 var(--c5-tight); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.c5-bar i { grid-area: b; height: 14px; border-radius: 99px; background: rgba(11, 11, 13, 0.08); overflow: hidden; }
.c5-bar i b { display: block; width: calc(var(--w) * 100%); min-width: 6px; height: 100%; border-radius: inherit; background: #8f8a82; transform-origin: 0 50%; }
.c5-bar.is-hot i b { background: var(--acc-tx); }
.c5-bars.c5-rv-pre i b { transform: scaleX(0); }
.c5-bars.c5-rv-in i b { transition: transform 1.2s var(--ease) 0.2s; }

/* ---- the work, inline: white, a hairline and a soft shadow, captioned; a click opens it large ---- */
.c5-fig { margin-block: clamp(24px, 4vh, 44px); }
.c5-cap { margin-top: 10px; font: 500 11px/1.4 var(--c5-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.c5-fig figure { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: var(--surface); box-shadow: var(--paper-shadow); }
.c5-fig figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.c5-fig .shot { border: 0; border-radius: 10px; background: var(--card); }
.c5-fig .shot img { height: auto; }
.c5-fig .shot figcaption { padding: 12px 16px; font-size: 13.5px; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--rule); }
/* the carousels, laid flat: one row of up to ten slides each, five a row on smaller screens */
.c5-decks { display: grid; gap: clamp(24px, 3.4vh, 36px); }
.c5-deck-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.c5-deck-h b { font: 650 clamp(17px, 1.3vw, 20px)/1.2 var(--f-sans); letter-spacing: -0.02em; color: var(--ink); }
.c5-slides { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: clamp(6px, 0.7vw, 10px); }
.c5-slides figure { aspect-ratio: 4 / 5; border-radius: 6px; }
@media (max-width: 1000px) { .c5-slides { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Mission 2027's posters */
.c5-posters .c5-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.c5-posters .c5-grid figure { aspect-ratio: 805 / 1000; }
.c5-posters .c5-wide { max-width: 640px; margin-top: clamp(8px, 1vw, 14px); aspect-ratio: 1000 / 545; }
@media (max-width: 760px) { .c5-posters .c5-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Digi Periscope's feeds */
.c5-ddj .feed, .c5-brand .feed { margin-top: 0; gap: clamp(4px, 0.5vw, 8px); }
.c5-ddj .feed figure, .c5-brand .feed figure { border-radius: 4px; box-shadow: var(--hair); }
.c5-ddj .feed .feed-label { box-shadow: none; }
.c5-brands { display: grid; gap: clamp(26px, 4vh, 40px); }
.c5-brand-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; padding-top: 12px; border-top: 1px solid var(--rule-2); }
.c5-brand-h b { font: 700 clamp(19px, 1.5vw, 24px)/1.1 var(--f-sans); letter-spacing: -0.025em; color: var(--ink); }
.c5-brand-l { margin: 6px 0 12px; max-width: var(--c5-w); font-size: 16px; color: var(--ink-2); }
/* the tools */
.c5-shots { display: grid; gap: clamp(16px, 2.4vw, 28px); }
/* text beside a tall piece: the Linktree, the nine-post look */
.c5-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(24px, 4vw, 64px); align-items: start; }
.c5-split > .c5-fig { margin-block: 0; }
.c5-tall figure.shot img { aspect-ratio: 780 / 1300; object-fit: cover; object-position: 50% 0; }
@media (max-width: 860px) { .c5-split { grid-template-columns: minmax(0, 1fr); } .c5-split > :last-child { max-width: 300px; } }
/* drawn: the nine-post look, and Alendei's funnel (both hidden from screen readers; the words carry them) */
.c5-nine > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; width: min(100%, 260px); padding: 10px; border-radius: 12px; background: var(--card); box-shadow: var(--paper-shadow); }
.c5-nine i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 4px; background: #f7f0e9; background: color-mix(in srgb, var(--acc) 26%, #ffffff); color: var(--ink-2); font: 500 11px/1 var(--c5-mono); font-style: normal; }
.c5-funnel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: clamp(18px, 3vh, 28px); }
.c5-funnel span { padding: 9px 14px; border: 1px solid var(--rule-2); border-radius: 99px; background: var(--card); font: 600 14px/1 var(--f-sans); color: var(--ink-2); }
.c5-funnel span.is-hot { border-color: var(--acc); background: var(--acc); color: var(--ink); }
.c5-funnel em { font-style: normal; color: var(--muted); }

/* ---- also at the company (Thinking Pixel) ---- */
.c5-also { max-width: var(--c5-w); margin-top: clamp(48px, 9vh, 104px); padding-top: 18px; border-top: 1px solid var(--rule); }
.c5-also h2 { margin: 0 0 12px; font: 400 clamp(26px, 2.2vw, 36px)/1.1 var(--c5-ser); color: var(--ink); }
.c5-also .list li { padding-block: 13px; }

/* ---- motion: figures rise once as they arrive; text never waits for it ---- */
.c5-rv-pre { opacity: 0; transform: translateY(22px); }
.c5-rv-in { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
@media (prefers-reduced-motion: reduce) { .c5-rv-pre { opacity: 1; transform: none; } .c5-pull.is-pre span { --mk: 100%; } .c5-bars.c5-rv-pre i b { transform: none; } }
html.motion-off .c5-rv-pre { opacity: 1; transform: none; }
html.motion-off .c5-pull.is-pre span { --mk: 100%; }

/* ---- phones ---- */
@media (max-width: 700px) {
  .c5-page .c5-sec.is-diagnosis { margin-inline: calc(var(--pad) * -0.5); padding-inline: calc(var(--pad) + 4px); }
  .c5-nums, .c5-nums.is-four { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .c5-num-v { font-size: clamp(42px, 13vw, 58px); }
  .c5-nums.is-m .c5-num-v { font-size: clamp(36px, 11vw, 50px); }
  .c5-nums.is-s .c5-num-v { font-size: clamp(28px, 8.6vw, 40px); }
}
/* phones: the small pieces (slides, posters, posts) open on a tap without a badge on every one */
@media (max-width: 700px) {
  .c5-slides .fx-lb-hit::after, .c5-posters .c5-grid .fx-lb-hit::after, .c5-fig .feed .fx-lb-hit::after { display: none; }
}

@media print {
  .c5-toc { display: none !important; }
  .c5-body { display: block !important; }
  .c5-rv-pre { opacity: 1 !important; transform: none !important; }
  .c5-short { box-shadow: none; border: 1px solid #ccc; }
  .c5-page .c5-sec.is-diagnosis { background: none !important; padding: 0 !important; }
  .c5-pull span { background: none !important; }
  .c5-sec, .c5-fig, .c5-nums li { break-inside: avoid; }
}
