/* Copied from src/components.css by scripts/build.js. Do not edit. */
/* Component styles (oz-* classes). Uses only the custom properties generated from tokens.json.
   Performance rule: while scrolling nothing runs but discrete state changes; nothing animates layout, clip-path or
   filters. Every rule describes a finished, visible state; motion is layered on in the "motion" section. */

:root {
  --oz-accent: var(--accent);   /* the full turquoise, kept for places that locally redefine --accent */
  --oz-margin: clamp(20px, 4vw, 72px);
  --oz-gutter: clamp(16px, 2vw, 32px);
  --oz-hd: 72px;
  --oz-ease: cubic-bezier(0.3, 0, 0.2, 1);
  --oz-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --oz-ease-move: cubic-bezier(0.65, 0, 0.25, 1);
  --oz-ease-brand: cubic-bezier(0.22, 1, 0.36, 1);
  --oz-control-line: rgba(20, 22, 21, 0.28);   /* the dialogs' pill buttons and switch at rest */
  --oz-copy-hover: #dfddd5;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--canvas); color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font-sans); font-size: 18px; line-height: 1.55; font-weight: 400; letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:where(a, button, input):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-focus); }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, h4, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[id], :where(main, footer) a { scroll-margin: calc(var(--oz-hd) + 20px) 0 24px; }
.oz-nobr { white-space: nowrap; }
.oz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Skip link: off screen until it has keyboard focus, then above everything at the top left */
.oz-skip { position: fixed; top: 12px; left: 12px; z-index: 2147483001; padding: 10px 14px; background: var(--canvas); color: var(--ink); font-size: 15px; font-weight: 560;
  transform: translateY(calc(-100% - 24px)); }
.oz-skip:focus-visible { transform: none; }
main:focus { outline: none; }
.oz-ic { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.oz-mark__ring { fill: none; stroke: currentColor; stroke-width: 136.7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }

/* ---------- layout ---------- */
.oz-wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding-inline: var(--oz-margin); }
.oz-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); }
.oz-section { padding-top: clamp(80px, 12vw, 160px); }
.oz-label { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); }
/* The line: joins a chapter's label, or a project's number, to what it names while that chapter or project is current
   (one class or attribute change, then one transform). It draws out from the label and retracts into the content. */
.oz-label--line, .oz-proj__no { display: flex; align-items: center; gap: 14px; }
.oz-line { flex: 1 1 auto; max-width: 56px; height: 2px; background: var(--accent-strong); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 320ms var(--oz-ease); }
@media (min-width: 1024px) { .oz-line { max-width: none; margin-right: calc(14px - var(--oz-gutter)); } }
.oz-about .oz-line { background: var(--oz-accent); }
html[data-sec="about"] .oz-about .oz-line, html[data-sec="work"] .oz-work__head .oz-line, .oz-project.is-current .oz-proj__no .oz-line {
  transform: scaleX(1); transform-origin: 0 50%; transition: transform 560ms var(--oz-ease-out) 60ms; }

/* ---------- links and actions ---------- */
.oz-link { position: relative; display: inline-flex; align-items: baseline; gap: 6px; font-weight: 500; padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.oz-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-strong); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 380ms var(--oz-ease-out); }
.oz-link__a { position: relative; top: 0.06em; transition: transform 320ms var(--oz-ease-out); }
.oz-link:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
@media (hover: hover) {
  .oz-link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
  .oz-link--out:hover .oz-link__a { transform: translate(1.5px, -1.5px); }
  .oz-link--in:hover .oz-link__a { transform: translateX(2px); }
  .oz-link--down:hover .oz-link__a { transform: translateY(2px); }
}
.oz-link:active { opacity: 0.7; }

/* Actions: square blocks. Hover slides a turquoise fill in under the label from the left and moves the arrow. */
.oz-act { position: relative; display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 20px 0 22px; overflow: hidden;
  font-size: 16.5px; font-weight: 560; letter-spacing: -0.01em; white-space: nowrap; transition: color 120ms linear; }
.oz-act--primary { background: var(--ink); color: var(--canvas); }
.oz-act--secondary { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
/* the fill starts moving on the first frame (a curve that leaves fast) and is mostly across within ~120ms */
.oz-act__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 340ms cubic-bezier(0.1, 0.75, 0.25, 1); }
.oz-act__t, .oz-act__a { position: relative; }
.oz-act__a { transition: transform 340ms var(--oz-ease-out); }
.oz-act:focus-visible { outline-offset: 3px; border-radius: 0; }
@media (hover: hover) {
  .oz-act:hover { color: var(--on-accent); }
  .oz-act:hover .oz-act__fill { transform: scaleX(1); }
  .oz-act--out:hover .oz-act__a { transform: translate(1.5px, -1.5px); }
  .oz-act--down:hover .oz-act__a { transform: translateY(2px); }
  .oz-act--in:hover .oz-act__a { transform: translateX(2px); }
}
.oz-act:active { opacity: 1; }
.oz-act:active .oz-act__fill { background: var(--accent-strong); transform: scaleX(1); transition-duration: 60ms; }

/* ---------- header ---------- */
/* Three zones; the bar under the current section slides between the names (one transform, on section change only).
   Over the ink chapter the header takes the chapter's colours, its focus ring included (the full turquoise: 8.8:1
   on ink, where the paper focus colour is only 3.3:1). */
/* The dark/light switch is instant: text and surface change in the same frame (a fade of one against the other would
   pass through an unreadable mix). */
.oz-header { --accent: var(--accent-strong); position: sticky; top: 0; z-index: 20; background: var(--canvas); color: var(--ink);
  box-shadow: 0 1px 0 var(--divider); }
html.oz-on-ink .oz-header { --canvas: var(--night); --ink: var(--night-ink); --ink-2: var(--night-2); --divider: var(--night-line); --accent: var(--oz-accent); --focus: var(--oz-accent); }
.oz-header__in { height: var(--oz-hd); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.oz-brand { font-family: var(--font-brand); justify-self: start; }
.oz-nav { position: relative; }
.oz-nav__list { display: flex; gap: clamp(22px, 3vw, 44px); }
.oz-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 520; color: var(--ink-2); }
.oz-nav a:is(.is-current, :focus-visible) { color: var(--ink); }
@media (hover: hover) { .oz-nav a:hover { color: var(--ink); } }
.oz-nav__bar { position: absolute; left: 0; bottom: 4px; width: 100px; height: 2px; background: var(--accent); transform-origin: 0 50%; pointer-events: none;
  transform: translate3d(var(--x, 0px), 0, 0) scaleX(0); }
.oz-nav__bar.is-on { transform: translate3d(var(--x, 0px), 0, 0) scaleX(var(--k, 1)); }   /* movement: initMotion */
.oz-header__end { justify-self: end; display: flex; align-items: center; gap: 20px; }
.oz-header__out { display: flex; gap: 28px; font-size: 15.5px; }
.oz-header__out .oz-link { color: var(--ink-2); font-weight: 500; }
@media (hover: hover) { .oz-header__out .oz-link:hover { color: var(--ink); } }
/* The theme switch: a 16px sun or moon in a 44px target, quiet like the header's links (ink-2, ink on hover and
   focus). The icon sits on the header's right edge. Shown once the head script that runs it has started. */
.oz-theme { display: none; place-items: center; width: 44px; height: 44px; margin-right: -14px; padding: 0; border: 0; background: none;
  color: var(--ink-2); cursor: pointer; transition: color var(--duration-fast) var(--oz-ease); }
html.oz-themes .oz-theme { display: inline-grid; }
.oz-theme .oz-ic { grid-area: 1 / 1; width: 16px; height: 16px; stroke-width: 1.15; }
.oz-theme__sun, html[data-theme="dark"] .oz-theme__moon { display: none; }
html[data-theme="dark"] .oz-theme__sun { display: block; }
.oz-theme:focus-visible { color: var(--ink); }
@media (hover: hover) { .oz-theme:hover { color: var(--ink); } }
.oz-theme:active { opacity: 0.7; }

/* The signature's choreography applies with and without reduced motion: it is a short, contained stroke animation
   and the identity itself, so Windows' Animation effects off keeps it (nothing else on the page travels then). */
/* Brand: the wordmark at the top; once scrolled (.is-scrolled), the OO monogram. Four clipped copies of the wordmark
   (O | kan | O | zcan) carry the transition: the second O travels onto the first, both scale onto the monogram's rings
   (Hanken Grotesk's O at 1.2x) and hand over to the SVG. Offsets are in em, measured from the rendered wordmark;
   initHeader() measures --oz-o2, the second O's real offset where glyph advances are rounded. */
.oz-brand { position: relative; display: inline-flex; align-items: center; flex: none; white-space: nowrap; font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.oz-brand__name { display: block; }
.oz-brand::after { content: ""; position: absolute; inset: -4px 0; }   /* a 30px tall hit area, same layout */
.oz-brand__parts { position: absolute; top: 0; left: 0; visibility: hidden; pointer-events: none; user-select: none; }
.oz-brand__part { position: absolute; top: 0; left: 0; display: block; color: var(--ink); }
.oz-brand__part::before { content: attr(data-t); }
.oz-brand__part--o1 { --cx: 0.37375em; transform-origin: 0.37375em 0.5995em; }
.oz-brand__part--kan { clip-path: polygon(0.72875em -1em, 2.459em -1em, 2.459em 2em, 0.72875em 2em); }
.oz-brand__part--o2 { --cx: calc(2.95625em + var(--oz-o2, 0em)); transform-origin: 2.95625em 0.5995em; }
.oz-brand__part--o1, .oz-brand__part--o2 {
  clip-path: polygon(calc(var(--cx) - 0.4em) 0.1595em, calc(var(--cx) + 0.155em) 0.1595em, calc(var(--cx) + 0.355em) 0.3595em, calc(var(--cx) + 0.355em) 0.8395em, calc(var(--cx) + 0.155em) 1.0395em, calc(var(--cx) - 0.4em) 1.0395em);
}
.oz-brand__part--zcan { --x: calc(3.31125em + var(--oz-o2, 0em)); clip-path: polygon(var(--x) -1em, 99em -1em, 99em 2em, var(--x) 2em); }
.oz-brand__mark { position: absolute; top: 0; left: 0; pointer-events: none; }
/* The OO sits on the wordmark's baseline, so it shares its rounding; negative margins keep it out of the line height. */
.oz-brand__oo { display: inline-block; vertical-align: baseline; margin: -0.5em 0 -0.2515em; width: 1.518em; height: 1.2em; overflow: visible; color: var(--accent); opacity: 0; }
.oz-brand__ring { fill: none; stroke: currentColor; stroke-width: 136.7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 58; }
.oz-header.is-scrolled .oz-brand__oo { opacity: 1; }
.oz-header.is-scrolled .oz-brand__ring { stroke-dashoffset: 0; }
/* The focus ring follows what is visible: the wordmark, then the monogram. */
.oz-brand:focus-visible { outline: none; }
.oz-brand:focus-visible .oz-brand__name, .oz-header.is-scrolled .oz-brand:focus-visible .oz-brand__mark { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-focus); }
.oz-header.is-scrolled .oz-brand:focus-visible .oz-brand__name { outline: none; }
  /* the pieces replace the intact wordmark at once going down, and give it back only once they are home */
  .oz-header.is-scrolled .oz-brand__name { visibility: hidden; }
  .oz-header.is-scrolled .oz-brand__parts { visibility: visible; }
  .oz-brand__name, .oz-brand__parts { transition: visibility 0s linear 800ms; }
  .oz-header.is-scrolled :is(.oz-brand__name, .oz-brand__parts) { transition: visibility 0s; }
  .oz-header.is-scrolled .oz-brand__part--o1 { transform: translate(0.064em, 0.015em) scale(1.2); }
  .oz-header.is-scrolled .oz-brand__part--o2 { transform: translate(calc(-1.876em - 1.2 * var(--oz-o2, 0em)), 0.015em) scale(1.2); }
  .oz-header.is-scrolled :is(.oz-brand__part--o1, .oz-brand__part--o2) { color: var(--accent); opacity: 0; }
  .oz-header.is-scrolled :is(.oz-brand__part--kan, .oz-brand__part--zcan) { opacity: 0; }
  /* back to the wordmark: the pens retract (the second first) to the open OO, which hands back to the two O's; the O
     travels home and "kan" and "zcan" return */
  .oz-brand__ring { transition: stroke-dashoffset 340ms cubic-bezier(0.4, 0, 0.3, 1) 40ms; }
  .oz-brand__ring + .oz-brand__ring { transition-delay: 0s; }
  .oz-brand__oo { transition: opacity 150ms cubic-bezier(0.4, 0, 0.6, 1) 300ms; }
  .oz-brand__part--o1, .oz-brand__part--o2 { transition: opacity 150ms cubic-bezier(0.4, 0, 0.6, 1) 270ms, color 260ms var(--oz-ease) 300ms, transform 380ms cubic-bezier(0.45, 0, 0.25, 1) 420ms; }
  .oz-brand__part--kan, .oz-brand__part--zcan { transition: opacity 270ms cubic-bezier(0.3, 0, 0.4, 1) 530ms; }
  /* to the monogram: "kan" and "zcan" dissolve in place while the O's gather and grow into the monogram's rings; they
     hand over to the SVG (42% drawn) as they turn turquoise, and the pens close their rings */
  .oz-header.is-scrolled :is(.oz-brand__part--kan, .oz-brand__part--zcan) { transition: opacity 260ms cubic-bezier(0.35, 0, 0.6, 1); }
  .oz-header.is-scrolled :is(.oz-brand__part--o1, .oz-brand__part--o2) { transition: transform 430ms cubic-bezier(0.4, 0, 0.15, 1) 50ms, color 220ms var(--oz-ease) 290ms, opacity 150ms cubic-bezier(0.4, 0, 0.6, 1) 370ms; }
  .oz-header.is-scrolled .oz-brand__oo { transition: opacity 150ms cubic-bezier(0.4, 0, 0.6, 1) 330ms; }
  .oz-header.is-scrolled .oz-brand__ring { transition: stroke-dashoffset 700ms cubic-bezier(0.3, 0.3, 0.15, 1) 360ms; }
  .oz-header.is-scrolled .oz-brand__ring + .oz-brand__ring { transition-duration: 650ms; transition-delay: 450ms; }
/* reversed while the returning layer is still partly visible: it comes straight back instead of holding (the
   wordmark/pieces swap keeps its timing, so it still happens only when the pieces are home) */
.oz-header.is-turning .oz-brand :is(.oz-brand__part, .oz-brand__oo, .oz-brand__ring) { transition-delay: 0s; }
/* scrolling the visitor didn't do (an anchor, a restored position, a reload mid-page) shows the state at once */
.oz-header.is-instant .oz-brand :is(.oz-brand__name, .oz-brand__parts, .oz-brand__part, .oz-brand__oo, .oz-brand__ring) { transition: none !important; }
@media (forced-colors: active) {
  .oz-brand__oo { forced-color-adjust: none; color: LinkText !important; }
}
/* hover / focus on the monogram: the OO opens back into the name, on the same path, about twice as fast
   (~460ms out, ~620ms back) so it answers the pointer instead of performing */
.oz-header.is-quick .oz-brand__name, .oz-header.is-quick .oz-brand__parts { transition: visibility 0s linear 470ms; }
.oz-header.is-quick.is-scrolled :is(.oz-brand__name, .oz-brand__parts) { transition: visibility 0s; }
.oz-header.is-quick .oz-brand__ring { transition: stroke-dashoffset 170ms cubic-bezier(0.4, 0, 0.3, 1); }
.oz-header.is-quick .oz-brand__oo { transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1) 140ms; }
.oz-header.is-quick :is(.oz-brand__part--o1, .oz-brand__part--o2) { transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1) 130ms, color 160ms var(--oz-ease) 150ms, transform 260ms cubic-bezier(0.3, 0, 0.2, 1) 190ms; }
.oz-header.is-quick :is(.oz-brand__part--kan, .oz-brand__part--zcan) { transition: opacity 190ms var(--oz-ease) 270ms; }
.oz-header.is-quick.is-scrolled :is(.oz-brand__part--kan, .oz-brand__part--zcan) { transition: opacity 150ms var(--oz-ease); }
.oz-header.is-quick.is-scrolled :is(.oz-brand__part--o1, .oz-brand__part--o2) { transition: transform 280ms cubic-bezier(0.4, 0, 0.15, 1) 20ms, color 140ms var(--oz-ease) 170ms, opacity 90ms cubic-bezier(0.4, 0, 0.6, 1) 230ms; }
.oz-header.is-quick.is-scrolled .oz-brand__oo { transition: opacity 90ms cubic-bezier(0.4, 0, 0.6, 1) 210ms; }
.oz-header.is-quick.is-scrolled .oz-brand__ring { transition: stroke-dashoffset 380ms cubic-bezier(0.3, 0.3, 0.15, 1) 230ms; }
.oz-header.is-quick.is-scrolled .oz-brand__ring + .oz-brand__ring { transition-duration: 340ms; transition-delay: 280ms; }

/* hover on the wordmark (top of the page): only the two O's that become the monogram turn turquoise */
@media (hover: hover) {
  .oz-header:not(.is-scrolled) .oz-brand:hover .oz-brand__name { visibility: hidden; transition: visibility 0s; }
  .oz-header:not(.is-scrolled) .oz-brand:hover .oz-brand__parts { visibility: visible; transition: visibility 0s; }
  .oz-header:not(.is-scrolled):not(.is-quick) .oz-brand:hover :is(.oz-brand__part--o1, .oz-brand__part--o2) { color: var(--accent); transition: color 200ms var(--oz-ease); }
}

/* ---------- the welcome ---------- */
/* Homepage arrival (html.oz-arrive, see build.js and initMotion): a turquoise plane over the page with the OO on it. */
.oz-welcome, .oz-hero__glint { display: none; }
html.oz-arrive .oz-welcome { display: block; position: fixed; inset: 0; z-index: 30; background: var(--oz-accent); overflow: hidden; pointer-events: none; will-change: transform; }
html.oz-arrive .oz-welcome__oo { display: block; position: absolute; left: 0; top: 0; width: clamp(104px, 8.6vw, 156px); height: auto; aspect-ratio: 1518 / 1200; color: var(--canvas); overflow: visible; will-change: transform; }
html.oz-arrive .oz-welcome__oo .oz-mark__ring { stroke-dashoffset: 100; }
html.oz-arrive .oz-hero__glint { display: block; position: absolute; left: 0; top: 0; overflow: hidden; color: var(--oz-accent); white-space: nowrap; pointer-events: none; will-change: transform; }
html.oz-arrive .oz-hero__glint > span { display: block; will-change: transform; }
.oz-hero__glint > span::before { content: attr(data-t); }
/* kept after the arrival (html.oz-held) until the hero has left the screen: see cleanup() in initMotion */
html:is(.oz-arrive, .oz-held) .oz-hero :is(.oz-hero__work li, .oz-hero__work-h, .oz-hero__acts, .oz-hero__note, .oz-hero__lead, .oz-hero__role, .oz-hero__name) { will-change: transform, opacity; }
html.oz-arrive .oz-brand { pointer-events: none; }

.oz-hero__name { position: relative; }
/* ---------- hero ---------- */
/* Hero: identity and actions on the left, the index of selected work on the right. */
.oz-hero { min-height: calc(100svh - var(--oz-hd)); display: flex; }
.oz-hero__in { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); align-content: center; padding-block: clamp(48px, 8svh, 96px); }
.oz-hero__title { grid-column: 1 / span 6; grid-row: 1; display: flex; flex-direction: column; font-size: clamp(44px, 4.4vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; }
.oz-hero__name { position: relative; font-family: var(--font-brand); letter-spacing: -0.02em; white-space: nowrap; }
.oz-hero__role { color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.oz-hero__side { grid-column: 1 / span 5; grid-row: 2; display: grid; row-gap: 12px; padding-top: clamp(26px, 3.6svh, 36px); justify-items: start; }
.oz-hero__lead { font-size: clamp(19px, 1.4vw, 22px); line-height: 1.42; letter-spacing: -0.012em; text-wrap: pretty; max-width: 26em; }
.oz-hero__note { font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.oz-hero__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.oz-hero__work { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: center; }
.oz-hero__work-h { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.oz-hero__work a { position: relative; display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; column-gap: 0; row-gap: 4px; padding: 20px 0 21px; border-bottom: 1px solid var(--divider); }
.oz-hero__w-n { grid-column: 1; grid-row: 1; padding-top: 0.32em; font-size: 15px; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.oz-hero__w-t { grid-column: 2; grid-row: 1; font-size: clamp(20px, 1.55vw, 25px); line-height: 1.25; font-weight: 560; letter-spacing: -0.02em; transition: transform 360ms var(--oz-ease-out); }
.oz-hero__w-b, .oz-hero__w-s { grid-column: 2; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.oz-hero__w-s { color: var(--ink-3); }
.oz-hero__w-a { grid-column: 3; grid-row: 1; align-self: center; width: 14px; height: 14px; color: var(--ink-2); transition: transform 360ms var(--oz-ease-out), color 200ms var(--oz-ease); }
/* pointing at a project: a short turquoise line draws in front of its title (the same mark as the About rows) */
.oz-hero__work a::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent-strong); transform: scaleX(0); transform-origin: 0 50%; transition: transform 520ms var(--oz-ease-out); }
@media (hover: hover) {
  .oz-hero__work a:hover::before { transform: scaleX(1); }
  .oz-hero__work a:hover .oz-hero__w-a { color: var(--ink); transform: translateY(2px); }
}
.oz-hero__work a:focus-visible::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .oz-hero__w-a, .oz-hero__work a::before { transition-duration: 1ms; } }
@media (min-width: 721px) and (max-width: 1023px) { .oz-hero__title, .oz-hero__side { grid-column: 1 / span 7; } .oz-hero__work { grid-column: 8 / span 5; } .oz-hero__title { font-size: clamp(36px, 4.6vw, 48px); } }

/* ---------- about: the ink chapter ---------- */
.oz-about { background: var(--night); color: var(--night-ink); }
.oz-about__in { padding-block: clamp(80px, 11svh, 136px); }
.oz-about__intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); align-items: start; }
.oz-about .oz-label { grid-column: 1 / span 3; color: var(--night-2); padding-top: 0.6em; }
.oz-about__say { grid-column: 4 / span 9; max-width: 24em; font-size: clamp(30px, 3.1vw, 52px); line-height: 1.18; font-weight: 500; letter-spacing: -0.03em; text-wrap: pretty; }
.oz-areas { margin-top: clamp(56px, 8svh, 96px); }
.oz-area { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); align-items: baseline; padding-block: 26px 28px; border-top: 1px solid var(--night-line); }
.oz-area:last-child { border-bottom: 1px solid var(--night-line); }
.oz-area__t { grid-column: 1 / span 3; font-size: clamp(22px, 1.7vw, 27px); line-height: 1.2; font-weight: 560; letter-spacing: -0.02em; transition: transform 460ms var(--oz-ease-out); }
.oz-area__d { grid-column: 4 / span 7; font-size: clamp(18px, 1.3vw, 21px); line-height: 1.5; color: rgba(238, 237, 232, 0.86); max-width: 34em; }
/* Hovering a row highlights it and dims the others; at rest, and without a pointer, every row reads normally. */
.oz-area__t { position: relative; }
.oz-area__t::before { content: ""; position: absolute; left: -22px; top: 0.62em; width: 14px; height: 2px; background: var(--oz-accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 300ms var(--oz-ease-out); }
.oz-area { transition: opacity 260ms var(--oz-ease); }
.oz-area__t { transition: transform 360ms var(--oz-ease-out), color 160ms linear; }
@media (hover: hover) {
  .oz-areas:hover .oz-area:not(:hover) { opacity: 0.42; }
  .oz-area:hover .oz-area__t { color: var(--oz-accent); transform: translateX(22px); }
  .oz-area:hover .oz-area__t::before { transform: scaleX(1); transition-delay: 60ms; }
}

/* ---------- work ---------- */
.oz-work { padding-top: clamp(112px, 14vw, 192px); }
.oz-work__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); align-items: end; }
.oz-work__head .oz-label { grid-column: 1 / span 3; padding-bottom: 0.9em; }
.oz-work__t { grid-column: 4 / span 6; font-size: clamp(44px, 5vw, 92px); line-height: 0.98; font-weight: 600; letter-spacing: -0.04em; }
.oz-work__n { grid-column: 10 / span 3; justify-self: end; font-size: 17px; color: var(--ink-2); padding-bottom: 0.6em; }
.oz-project { margin-top: clamp(72px, 9vw, 128px); }
.oz-project + .oz-project { margin-top: clamp(120px, 14vw, 200px); }
.oz-proj__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); align-items: end; padding-bottom: 28px; }
.oz-proj__no { grid-column: 1 / span 3; align-self: start; font-size: 17px; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; padding-top: 0.5em; }
.oz-proj__titles { grid-column: 4 / span 5; display: grid; gap: 10px; }
.oz-proj__title { font-size: clamp(34px, 3.4vw, 60px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.oz-proj__stack { font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.oz-proj__links { grid-column: 9 / span 4; justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
/* the media starts on the page's main line (column 4), where the title, About's text and Work's heading start */
.oz-proj__media { margin-left: calc((100% - 11 * var(--oz-gutter)) / 4 + 3 * var(--oz-gutter)); }
.oz-proj__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); row-gap: 28px; margin-top: clamp(32px, 4vw, 48px); }
.oz-detail { grid-column: span 3; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--divider); }
.oz-detail--what { grid-column: 1 / span 6; border-top-color: var(--rule); }
.oz-detail__h { font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); }
.oz-detail p { font-size: 17px; line-height: 1.6; color: var(--ink); }
.oz-detail--what p { font-size: clamp(20px, 1.55vw, 24px); line-height: 1.45; letter-spacing: -0.015em; max-width: 30em; }
/* case study page: the project title used as the page title */

/* ---------- media ---------- */
.oz-media__box { position: relative; aspect-ratio: var(--oz-ratio, 16 / 9); overflow: hidden; border-radius: var(--radius-media); background: var(--media-fill); }
/* At rest the picture fills its frame exactly (the frame has the image's ratio). Hover zooms 1% from the centre,
   which keeps a HUD about 1% from the edges whole. */
.oz-media__box > img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1100ms var(--oz-ease-out); }
.oz-media__link { display: block; border-radius: var(--radius-media); }
.oz-media__hint { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; background: var(--canvas); color: var(--ink);
  font-size: 15.5px; font-weight: 560; transform: translate3d(0, calc(100% + 20px), 0); transition: transform 520ms var(--oz-ease-out); }
.oz-media__hint::before { content: ""; width: 3px; align-self: stretch; margin: 12px 0; background: var(--accent); }
@media (hover: hover) {
  .oz-media__link:hover .oz-media__box > img { transform: scale(1.01); }
  .oz-media__link:hover .oz-media__hint { transform: none; }
  .oz-project:has(.oz-media__link:hover) .oz-proj__links .oz-act--primary { color: var(--on-accent); }
  .oz-project:has(.oz-media__link:hover) .oz-proj__links .oz-act--primary .oz-act__fill { transform: scaleX(1); }
}
/* Without hover (touch screens), and in the phone layout, the picture never moves. */
@media (hover: none), (max-width: 720px) {
  .oz-media__link:hover .oz-media__box > img { transform: none; }
}
.oz-media__cap { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }
.oz-media__kind { color: var(--ink-2); font-weight: 560; }
.oz-media__kind + span::before { content: " \2014  "; color: var(--ink-3); }

/* ---------- contact ---------- */
.oz-contact { padding-top: clamp(120px, 15vw, 208px); }
.oz-contact__head { display: flex; align-items: center; gap: clamp(18px, 2vw, 28px); }
.oz-contact__t { font-size: clamp(44px, 5vw, 92px); line-height: 0.98; font-weight: 600; letter-spacing: -0.04em; margin-left: -0.04em; }
.oz-contact__oo { width: clamp(56px, 5vw, 88px); height: auto; flex: none; color: var(--accent-strong); overflow: visible; }
.oz-live .oz-contact:not(.is-seen) .oz-contact__oo .oz-mark__ring { stroke-dashoffset: 100; }
.oz-contact__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--oz-gutter); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.oz-contact__item { position: relative; display: grid; gap: 12px; align-content: start; padding-top: 22px; padding-right: 12px; }
.oz-contact__item::before { content: ""; position: absolute; left: 0; right: var(--oz-gutter); top: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 560ms var(--oz-ease-out); }
.oz-contact__item:focus-within::before { transform: scaleX(1); }
@media (hover: hover) { .oz-contact__item:hover::before { transform: scaleX(1); } }
.oz-contact__item dt { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); }
.oz-contact__item dd { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-width: 0; font-size: clamp(22px, 1.75vw, 30px); line-height: 1.25; letter-spacing: -0.02em; }
.oz-contact .oz-link { font-weight: 500; overflow-wrap: anywhere; }
.oz-contact .oz-link__a { width: 12px; height: 12px; }
.oz-copy { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 7px; border: 0; background: var(--canvas-2);
  font-size: 14.5px; font-weight: 560; letter-spacing: 0; color: var(--ink); cursor: pointer; transition: background-color var(--duration-fast) var(--oz-ease); }
.oz-copy__i { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; background: var(--canvas); overflow: hidden; transition: background-color 240ms var(--oz-ease); }
.oz-copy__i .oz-ic { grid-area: 1 / 1; transition: transform 340ms var(--oz-ease-out); }
.oz-copy__b { transform: translateY(150%); }
.oz-copy.is-done .oz-copy__i { background: var(--accent); }
.oz-copy.is-done .oz-copy__a { transform: translateY(-150%); }
.oz-copy.is-done .oz-copy__b { transform: none; }
@media (hover: hover) { .oz-copy:hover { background: var(--oz-copy-hover); } }

/* ---------- other pages' opening ---------- */
.oz-phero { padding-top: clamp(72px, 10vw, 128px); }
.oz-phero__title { font-size: clamp(46px, 6vw, 108px); line-height: 0.98; font-weight: 600; letter-spacing: -0.04em; margin-left: -0.045em; }
.oz-phero__foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); row-gap: 20px; margin-top: clamp(28px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--rule); align-items: start; }
.oz-phero__lead { grid-column: 1 / span 7; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.4; letter-spacing: -0.015em; max-width: 26em; }
.oz-phero__side { grid-column: 9 / -1; display: grid; gap: 10px; color: var(--ink-2); padding-top: 3px; }

/* ---------- footer ---------- */
.oz-footer { margin-top: clamp(120px, 14vw, 192px); }
.oz-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px 40px; border-top: 1px solid var(--divider); font-size: 15px; color: var(--ink-3); }
.oz-footer__in a { transition: color var(--duration-fast) var(--oz-ease); }
.oz-footer__in a, .oz-footer__in .oz-footer__btn { padding-block: 6px; margin-block: -6px; }   /* a taller hit area, same layout */
.oz-footer__in a:focus-visible { color: var(--ink); }
@media (hover: hover) { .oz-footer__in a:hover { color: var(--ink); } }

/* ---------- motion ---------- */
/* Supporting only: with full motion, groups fade in as they enter and images once decoded. */
.oz-motion [data-reveal] { transition: opacity 600ms var(--oz-ease); }
.oz-motion [data-reveal]:not(.is-in):not(:focus-within) { opacity: 0; }
.oz-motion .oz-media__box > img:not(.is-loaded) { opacity: 0; }
.oz-motion .oz-media__box > img { transition: opacity 520ms var(--oz-ease), transform 1100ms var(--oz-ease-out); }
/* Contact: copying the address selects it, visibly: the turquoise of the site's text selection sweeps across it and
   away again (a copy of the address on top, revealed by its clip; reduced motion: it appears and goes) */
.oz-link__t { position: relative; }
.oz-sel { position: absolute; inset: -0.08em -0.14em; padding: 0.08em 0.14em; background: var(--accent); color: var(--on-accent); white-space: nowrap; clip-path: inset(0 100% 0 0); pointer-events: none; }
/* Contact's OO signs itself again when you point at it or tap it */
.oz-contact__oo { pointer-events: bounding-box; }
/* while the page scrolls, a transparent shield takes the pointer, so nothing under a still pointer re-hovers as content
   moves past it (see initMotion). One element changes; nothing inherits anything. */
.oz-shield { position: fixed; inset: 0; z-index: 2147483000; display: none; }
html.oz-scrolling .oz-shield { display: block; }
/* Reduced motion, per rule (no blanket switch): nothing travels or pans; drawn lines, colour and fills remain. */
@media (prefers-reduced-motion: reduce) {
  .oz-area__t { transition: color 160ms linear; }
  .oz-media__box > img, .oz-motion .oz-media__box > img { transition: opacity 400ms var(--oz-ease); }
  .oz-media__hint { transition: opacity 200ms linear; opacity: 0; transform: none; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) {
  .oz-area:hover .oz-area__t, .oz-media__link:hover .oz-media__box > img { transform: none; }
  .oz-media__link:hover .oz-media__hint { opacity: 1; }
}


/* ---------- case study (oz-x) ---------- */
/* Case study pages. The Asteroid page uses the dark surface to match its screenshots. Diagrams animate once in
   view (.is-in from initMotion); without script, or with reduced motion, every diagram is complete. */
.oz-xpage { --canvas: var(--night); --ink: var(--night-ink); --ink-2: var(--night-2); --ink-3: rgba(238, 237, 232, 0.52); --divider: var(--night-line);
  --rule: rgba(238, 237, 232, 0.42); --accent: var(--oz-accent); --accent-strong: var(--oz-accent); background: var(--night); color: var(--night-ink); min-height: 100svh; }
.oz-header--ink { --canvas: var(--night); --ink: var(--night-ink); --ink-2: var(--night-2); --divider: var(--night-line); --accent: var(--oz-accent); --focus: var(--oz-accent); }
.oz-header__crumb { position: relative; justify-self: center; display: flex; align-items: center; gap: 16px; font-size: 15.5px; white-space: nowrap; min-width: 0; }
.oz-header__up { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--ink-2); font-weight: 520; }
.oz-header__up .oz-ic { transition: transform 300ms var(--oz-ease-out); }
@media (hover: hover) { .oz-header__up:hover { color: var(--ink); } .oz-header__up:hover .oz-ic { transform: translateX(-2px); } }
.oz-header__proj { color: var(--ink); font-weight: 560; }
.oz-header__proj { position: relative; }
/* the chapter sits beside the project's name without taking space, so changing it never moves the crumb */
.oz-header__chap { position: absolute; left: 100%; top: 50%; margin-top: -0.7em; line-height: 1.4; padding-left: 10px; color: var(--accent); font-weight: 520; }
.oz-header__chap:not(:empty)::before { content: "\00b7\2002"; color: var(--ink-2); }
.oz-header__chap.is-new { animation: oz-x-chap 420ms var(--oz-ease-out); }
@keyframes oz-x-chap { from { opacity: 0; transform: translate3d(0, 6px, 0); } }

.oz-x__open { padding-block: clamp(32px, 5svh, 72px) 0; }
.oz-x__open-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); row-gap: 40px; align-items: start; }
.oz-x__open-text { grid-column: 1 / span 5; }
.oz-x__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15px; color: var(--ink-2); }
.oz-x__title { margin-top: clamp(18px, 3svh, 32px); font-size: clamp(44px, 5.6vw, 100px); line-height: 0.96; font-weight: 600; letter-spacing: -0.045em; max-width: 11.5em; text-wrap: balance; }
.oz-x__say { margin-top: clamp(16px, 2vw, 24px); max-width: 30em; font-size: clamp(18px, 1.45vw, 23px); line-height: 1.4; letter-spacing: -0.012em; color: var(--ink-2); text-wrap: pretty; }
.oz-x__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--oz-gutter); margin-top: clamp(28px, 4svh, 44px); }
.oz-x__fact--wide { grid-column: 1 / -1; }
.oz-x__facts > div { padding: 14px 0 16px; border-top: 1px solid var(--divider); }
.oz-x__facts dt { font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-2); }
.oz-x__facts dd { margin-top: 5px; font-size: 16.5px; line-height: 1.45; }
.oz-x__open-media { grid-column: 6 / -1; margin-top: 8px; }
.oz-x__hero { margin-right: calc(-1 * var(--oz-margin)); }
.oz-x__kicker-n { color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; }
.oz-x__acts { margin-top: clamp(28px, 4svh, 40px); }
.oz-x__hero .oz-media__box { border-radius: var(--radius-media) 0 0 var(--radius-media); }
.oz-x__hero .oz-media__cap { color: var(--ink-3); }

.oz-x__chap { padding-top: clamp(96px, 12vw, 176px); }
.oz-x__chap-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); row-gap: 16px; margin-bottom: clamp(36px, 4.6vw, 72px); align-items: start; }
.oz-x__label { grid-column: 1 / span 3; padding-top: 0.75em; color: var(--ink-2); }
.oz-x__label .oz-line { background: var(--accent); }
.oz-x__chap.is-current .oz-x__label .oz-line { transform: scaleX(1); transform-origin: 0 50%; transition: transform 560ms var(--oz-ease-out) 60ms; }
.oz-x__h { grid-column: 4 / span 8; font-size: clamp(32px, 3.5vw, 58px); line-height: 1.06; font-weight: 600; letter-spacing: -0.032em; max-width: 17em; text-wrap: balance; }
.oz-x__lead { grid-column: 4 / span 7; max-width: 36em; font-size: clamp(18px, 1.3vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.oz-x__h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.oz-x__cap { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-3); }

/* the game, annotated */
.oz-x__notes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); row-gap: 28px; align-items: start; }
.oz-x__shot { grid-column: 4 / -1; grid-row: 1; }
.oz-x__notelist { grid-column: 1 / span 3; grid-row: 1; counter-reset: none; }
.oz-x__shot-box { position: relative; aspect-ratio: 2000 / 1124; border-radius: var(--radius-media); overflow: hidden; background: var(--media-fill); }
.oz-x__shot-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.oz-x__pin { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--accent); color: #062420;
  font-size: 13.5px; font-weight: 650; line-height: 30px; text-align: center; box-shadow: 0 0 0 4px rgba(11, 12, 12, 0.55); transition: transform 220ms var(--oz-ease-out), background-color 160ms linear; }
/* badge positions: GAME_NOTES' bx, by in % of the 2000 x 1124 screenshot */
.oz-x__pin[data-note="0"] { left: 34.5%; top: 49.82%; }
.oz-x__pin[data-note="1"] { left: 70%; top: 46.26%; }
.oz-x__pin[data-note="2"] { left: 32%; top: 18.24%; }
.oz-x__pin[data-note="3"] { left: 59.5%; top: 4.27%; }
.oz-x__pin[data-note="4"] { left: 12.5%; top: 47.15%; }
.oz-x__leads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.oz-x__leader { stroke: rgba(238, 237, 232, 0.72); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke 160ms linear; }
.oz-x__target { fill: var(--accent); transform-box: fill-box; transform-origin: center; transition: transform 220ms var(--oz-ease-out); }
.oz-x__lead-g.is-lit .oz-x__leader { stroke: var(--accent); stroke-width: 2.5; }
.oz-x__lead-g.is-lit .oz-x__target { transform: scale(1.8); }
.oz-x__pin.is-lit { transform: scale(1.22); background: #fff; }
.oz-x__note { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 15px 0 17px; border-top: 1px solid var(--divider); outline: none; }
.oz-x__note:last-child { border-bottom: 1px solid var(--divider); }
.oz-x__note-n { grid-row: 1 / span 2; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); font-size: 12.5px; font-weight: 650; line-height: 24px; text-align: center; transition: background-color 160ms linear, color 160ms linear; }
.oz-x__note-t { font-size: 17px; font-weight: 600; transition: color 160ms linear; }
.oz-x__note-d { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.oz-x__note.is-lit .oz-x__note-n, .oz-x__note:focus-visible .oz-x__note-n { background: var(--accent); color: #062420; }
.oz-x__note.is-lit .oz-x__note-t { color: var(--accent); }
.oz-x__note:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* who built what */
.oz-x__stack { display: grid; }
.oz-x__layer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); padding: 26px 0 30px; border-top: 1px solid var(--divider); position: relative; }
.oz-x__layer:last-child { border-bottom: 1px solid var(--divider); }
.oz-x__layer-who { grid-column: 1 / span 3; font-size: 15.5px; font-weight: 560; color: var(--ink-2); padding-top: 0.35em; }
.oz-x__layer-body { grid-column: 4 / span 7; }
.oz-x__layer-t { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.oz-x__layer-d { margin-top: 8px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.oz-x__layer.is-mine .oz-x__layer-who { color: var(--accent); }
.oz-x__layer.is-mine::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; }

/* multiplayer */
.oz-x__net { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 1.3fr) minmax(0, 1fr) minmax(90px, 1.3fr) minmax(0, 1fr); align-items: center; }
.oz-x__node { padding: 18px 20px 20px; border: 1px solid var(--rule); border-radius: 4px; }
.oz-x__node--h { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.oz-x__node-t { font-size: 18px; font-weight: 600; }
.oz-x__node-s { margin-top: 4px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.oz-x__lanes { display: flex; flex-direction: column; gap: 30px; padding: 0 10px; }
.oz-x__lane { position: relative; height: 2px; }
.oz-x__wire { position: absolute; inset: 0; background: var(--rule); }
.oz-x__lane--out .oz-x__wire { background: var(--accent); opacity: 0.7; }
.oz-x__lane-l { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.oz-x__lane--out .oz-x__lane-l { bottom: auto; top: 8px; }
.oz-x__pkt { position: absolute; inset: -3px 0 auto 0; height: 8px; pointer-events: none; opacity: 0; }
.oz-x__pkt::before { content: ""; position: absolute; top: 0; width: 14px; height: 8px; border-radius: 4px; background: var(--night-ink); }
.oz-x__lane--in .oz-x__pkt::before { left: 0; }
.oz-x__lane--out .oz-x__pkt::before { right: 0; background: var(--accent); }
@keyframes oz-x-pkt-in { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translate3d(calc(100% - 14px), 0, 0); } }
@keyframes oz-x-pkt-out { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translate3d(calc(14px - 100%), 0, 0); } }
.oz-motion .oz-x__net.is-in .oz-x__lane--in .oz-x__pkt { animation: oz-x-pkt-in 1000ms cubic-bezier(0.45, 0, 0.55, 1) 3 both; }
.oz-motion .oz-x__net.is-in .oz-x__lane--out .oz-x__pkt { animation: oz-x-pkt-out 1000ms cubic-bezier(0.45, 0, 0.55, 1) 3 both; animation-delay: 500ms; }
.oz-motion .oz-x__net.is-in .oz-x__pkt--2 { animation-delay: 1500ms !important; animation-iteration-count: 2 !important; }
.oz-x__note-line { margin-top: clamp(32px, 4vw, 48px); font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 40em; margin-left: calc((100% - 11 * var(--oz-gutter)) / 4 + 3 * var(--oz-gutter)); }

/* a match, start to finish: three screenshots in order, numbered on a line that draws through them */
.oz-x__steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--oz-gutter); row-gap: 36px; align-items: start; }
.oz-x__step-box { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-media); overflow: hidden; background: var(--media-fill); }
/* contain: the frames share one ratio (16:10, the LAN captures'); the 16:9 result screen shows whole, on the dark fill */
.oz-x__step-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.oz-x__step-c { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; margin-top: 18px; padding-top: 18px; }
.oz-x__step-c::before { content: ""; position: absolute; left: 0; right: calc(-1 * var(--oz-gutter)); top: 0; height: 2px; background: var(--accent); transform-origin: 0 50%; }
.oz-x__step-f:last-child .oz-x__step-c::before { right: 0; }
.oz-x__step-n { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #062420; font-size: 13px; font-weight: 650; line-height: 26px; text-align: center; }
.oz-x__step-t { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.oz-x__step-d { font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }

/* the second layer: technical detail, closed until asked for */
.oz-x__tech { margin-top: clamp(32px, 4vw, 48px); margin-left: calc((100% - 11 * var(--oz-gutter)) / 4 + 3 * var(--oz-gutter)); max-width: 52em; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.oz-x__tech-s { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 560; color: var(--ink-2); transition: color 160ms linear; }
.oz-x__tech-s::-webkit-details-marker { display: none; }
.oz-x__tech-i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rule); transition: box-shadow 160ms linear, transform 320ms var(--oz-ease-out); }
.oz-x__tech-i .oz-ic { width: 12px; height: 12px; }
.oz-x__tech[open] .oz-x__tech-i { transform: rotate(45deg); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.oz-x__tech[open] .oz-x__tech-s { color: var(--ink); }
@media (hover: hover) { .oz-x__tech-s:hover { color: var(--ink); } .oz-x__tech-s:hover .oz-x__tech-i { box-shadow: inset 0 0 0 1.5px var(--ink); } }
.oz-x__tech-s:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.oz-x__tech-b { padding: 4px 0 26px; }
.oz-x__tech[open] .oz-x__tech-b { animation: oz-x-tech 420ms var(--oz-ease-out); }
@keyframes oz-x-tech { from { opacity: 0; transform: translate3d(0, -6px, 0); } }
.oz-x__tech-l > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); column-gap: var(--oz-gutter); padding: 14px 0 15px; border-top: 1px solid var(--divider); }
.oz-x__tech-l dt { font-size: 16px; font-weight: 600; }
.oz-x__tech-l dd { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.oz-x__tech-p { margin-top: 22px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 44em; }
.oz-x__tech .oz-x__frame { padding-top: 18px; }
.oz-x__code { font-family: var(--font-mono); font-size: 0.86em; letter-spacing: 0; padding: 1px 6px 2px; border-radius: 3px; background: rgba(238, 237, 232, 0.08); color: var(--ink); }
.oz-x__box-t .oz-x__code { margin-left: 10px; font-size: 12.5px; font-weight: 400; color: var(--ink-2); vertical-align: 1px; }
.oz-x__layer-x { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); max-width: 46em; }

/* one input path */
.oz-x__split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); row-gap: 48px; align-items: start; }
.oz-x__input { grid-column: 1 / span 6; display: grid; justify-items: stretch; }
.oz-x__bot { grid-column: 8 / span 5; display: grid; gap: 18px; }
.oz-x__sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.oz-x__src { display: flex; flex-direction: column; justify-content: flex-start; appearance: none; margin: 0; padding: 14px 14px 16px; border: 0; border-radius: 4px; background: none; box-shadow: inset 0 0 0 1px var(--rule); text-align: left; cursor: pointer;
  transition: box-shadow 140ms linear, opacity 160ms linear; }
.oz-x__src-t { display: block; font-size: 16px; font-weight: 600; }
.oz-x__src-s { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.oz-x__src[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.oz-x__src[aria-pressed="true"] .oz-x__src-t { color: var(--accent); }
.oz-x__input.has-pick .oz-x__src[aria-pressed="false"] { opacity: 0.5; }
@media (hover: hover) { .oz-x__src:hover { box-shadow: inset 0 0 0 1px var(--ink); } .oz-x__src[aria-pressed="true"]:hover { box-shadow: inset 0 0 0 2px var(--accent); } }
.oz-x__src:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.oz-x__join { display: block; width: 100%; height: 56px; overflow: visible; }
.oz-x__route { fill: none; stroke: var(--rule); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke 160ms linear, opacity 160ms linear; }
.oz-x__input.has-pick .oz-x__route { opacity: 0.25; }
.oz-x__input.has-pick .oz-x__route.is-on { opacity: 1; stroke: var(--accent); stroke-width: 2.5; }
.oz-x__box { padding: 14px 18px 16px; border: 1px solid var(--rule); border-radius: 4px; }
.oz-x__box--key { border-color: var(--accent); }
.oz-x__box-t { font-size: 17px; font-weight: 600; }
.oz-x__box-s { margin-top: 3px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.oz-x__step { justify-self: center; width: 1.5px; height: 22px; background: var(--rule); transform-origin: 50% 0; }
.oz-x__rules > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); column-gap: 18px; padding: 15px 0 17px; border-top: 1px solid var(--divider); }
.oz-x__rules > div:last-child { border-bottom: 1px solid var(--divider); }
.oz-x__rules dt { font-size: 16px; font-weight: 600; }
.oz-x__rules dd { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.oz-x__plain { font-size: 16px; color: var(--ink-2); }

/* one frame */
.oz-x__frame { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--oz-gutter); }
.oz-x__stage { position: relative; padding-top: 22px; }
.oz-x__stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--rule); transform-origin: 0 50%; }
.oz-x__stage:nth-child(3)::before { background: var(--accent); }
.oz-x__stage::after { content: ""; position: absolute; top: -4px; right: calc(-1 * var(--oz-gutter) + 2px); width: 8px; height: 8px; border-top: 2px solid var(--rule); border-right: 2px solid var(--rule); transform: rotate(45deg); }
.oz-x__stage:last-child::after { display: none; }
.oz-x__stage-t { font-size: 18px; font-weight: 600; font-variant-ligatures: none; }
.oz-x__stage-s { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.oz-x__states { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.oz-x__state { padding: 3px 9px 4px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--rule); font-size: 13.5px; color: var(--ink-2); }
.oz-x__state.is-on { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); font-weight: 600; }

/* details */
.oz-x__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--oz-gutter); row-gap: 48px; }
.oz-x__detail h3 { margin-top: 18px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.oz-x__detail--text h3 + p + h3 { margin-top: 26px; }
.oz-x__detail--text h3:first-child { margin-top: 0; }
.oz-x__detail p { margin-top: 8px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.oz-x__swept, .oz-x__splits { display: block; width: 100%; height: auto; overflow: visible; border-top: 1px solid var(--divider); padding-top: 18px; }
.oz-x__rock, .oz-x__sq { fill: none; stroke: var(--night-ink); stroke-width: 1.5; }
.oz-x__path { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.oz-x__tick { stroke: var(--accent); stroke-width: 1.2; opacity: 0.8; }
.oz-x__shotdot { fill: var(--accent); }
.oz-x__shotdot--a { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.oz-x__svgl { fill: var(--ink-2); font-size: 11.5px; }
.oz-x__svgl--hit { fill: var(--accent); font-weight: 600; }
.oz-x__arrow { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }

/* limits and the way out */
.oz-x__limits { margin-left: calc((100% - 11 * var(--oz-gutter)) / 4 + 3 * var(--oz-gutter)); max-width: 46em; }
.oz-x__limits li { position: relative; padding: 18px 0 20px 32px; border-top: 1px solid var(--divider); font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.oz-x__limits li:last-child { border-bottom: 1px solid var(--divider); }
.oz-x__limits li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 16px; height: 2px; background: var(--accent); }
.oz-x__limits strong { color: var(--ink); font-weight: 600; }
.oz-x__end { padding-top: clamp(120px, 14vw, 200px); }
.oz-x__end-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); row-gap: 40px; align-items: end; padding-top: 32px; border-top: 1px solid var(--rule); }
.oz-x__next { grid-column: 1 / span 8; display: grid; gap: 6px; }
.oz-x__next-k { font-size: 15px; font-weight: 560; color: var(--ink-2); }
.oz-x__next-t { display: inline-flex; align-items: center; gap: 0.3em; font-size: clamp(40px, 5.4vw, 92px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.oz-x__next-a { width: 0.5em; height: 0.5em; stroke-width: 1.2; transition: transform 340ms var(--oz-ease-out); }
@media (hover: hover) { .oz-x__next:hover .oz-x__next-t { color: var(--accent); } .oz-x__next:hover .oz-x__next-a { transform: translateX(0.12em); } }
.oz-x__next:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.oz-x__end-side { grid-column: 9 / span 4; display: grid; gap: 10px; justify-items: start; font-size: 16px; }
.oz-x__end-k { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

/* motion: the opening arrives in a short sequence; diagrams build once as they arrive */
@keyframes oz-x-in { from { opacity: 0; transform: translate3d(0, 18px, 0); } }
.oz-motion .oz-x [data-in] { animation: oz-x-in 720ms var(--oz-ease-out) both; }
.oz-motion .oz-x [data-in="1"] { animation-delay: 70ms; }
.oz-motion .oz-x [data-in="2"] { animation-delay: 150ms; }
.oz-motion .oz-x [data-in="3"] { animation-delay: 240ms; }
.oz-live .oz-x [data-notes]:not(.is-in) .oz-x__pin { transform: scale(0); opacity: 0; }
.oz-x [data-notes] .oz-x__pin { transition: transform 420ms cubic-bezier(0.3, 1.4, 0.5, 1), opacity 200ms linear, background-color 160ms linear; }
.oz-x [data-notes].is-in .oz-x__pin:nth-of-type(2) { transition-delay: 0ms; }
.oz-x [data-notes].is-in .oz-x__pin:nth-of-type(3) { transition-delay: 90ms; }
.oz-x [data-notes].is-in .oz-x__pin:nth-of-type(4) { transition-delay: 180ms; }
.oz-x [data-notes].is-in .oz-x__pin:nth-of-type(5) { transition-delay: 270ms; }
.oz-x [data-notes].is-in .oz-x__pin:nth-of-type(6) { transition-delay: 360ms; }
.oz-x [data-notes].is-in .oz-x__pin.is-lit { transition-delay: 0ms; }
.oz-live .oz-x [data-notes]:not(.is-in) .oz-x__leader { stroke-dashoffset: 1; }
.oz-live .oz-x [data-notes]:not(.is-in) .oz-x__target { transform: scale(0); }
.oz-x [data-notes] .oz-x__leader { transition: stroke-dashoffset 520ms var(--oz-ease-out) 360ms, stroke 160ms linear; }
.oz-x [data-notes] .oz-x__target { transition: transform 300ms var(--oz-ease-out) 700ms; }
.oz-x [data-notes].is-in .oz-x__lead-g.is-lit .oz-x__target { transition-delay: 0ms; }
.oz-x [data-notes].is-in .oz-x__lead-g:nth-child(2) * { transition-delay: 450ms; }
.oz-x [data-notes].is-in .oz-x__lead-g:nth-child(3) * { transition-delay: 540ms; }
.oz-x [data-notes].is-in .oz-x__lead-g:nth-child(4) * { transition-delay: 630ms; }
.oz-x [data-notes].is-in .oz-x__lead-g:nth-child(5) * { transition-delay: 720ms; }
.oz-x [data-notes].is-in .oz-x__lead-g.is-lit * { transition-delay: 0ms; }
.oz-live .oz-x__steps:not(.is-in) .oz-x__step-f { opacity: 0; transform: translate3d(0, 16px, 0); }
.oz-x__steps .oz-x__step-f { transition: opacity 520ms var(--oz-ease), transform 760ms var(--oz-ease-out); }
.oz-x__steps .oz-x__step-f:nth-child(2) { transition-delay: 160ms; }
.oz-x__steps .oz-x__step-f:nth-child(3) { transition-delay: 320ms; }
.oz-live .oz-x__steps:not(.is-in) .oz-x__step-c::before { transform: scaleX(0); }
.oz-x__steps .oz-x__step-c::before { transition: transform 700ms var(--oz-ease-out) 260ms; }
.oz-x__steps .oz-x__step-f:nth-child(2) .oz-x__step-c::before { transition-delay: 600ms; }
.oz-x__steps .oz-x__step-f:nth-child(3) .oz-x__step-c::before { transition-delay: 940ms; }
.oz-live .oz-x__stack:not(.is-in) .oz-x__layer { opacity: 0; transform: translate3d(0, 14px, 0); }
.oz-x__stack .oz-x__layer { transition: opacity 500ms var(--oz-ease), transform 700ms var(--oz-ease-out); }
.oz-x__stack .oz-x__layer:nth-child(2) { transition-delay: 120ms; }
.oz-x__stack .oz-x__layer:nth-child(3) { transition-delay: 240ms; }
.oz-live .oz-x__stack:not(.is-in) .oz-x__layer.is-mine::before { transform: scaleX(0); }
.oz-x__stack .oz-x__layer.is-mine::before { transition: transform 700ms var(--oz-ease-out) 300ms; }
.oz-live .oz-x__input:not(.is-in) .oz-x__route { opacity: 0; }
.oz-x__input.is-in .oz-x__route { transition: opacity 500ms linear 120ms, stroke 160ms linear; }
.oz-live .oz-x__input:not(.is-in) .oz-x__step { transform: scaleY(0); }
.oz-x__input .oz-x__step { transition: transform 360ms var(--oz-ease-out) 620ms; }
.oz-x__input .oz-x__step ~ .oz-x__step { transition-delay: 820ms; }
.oz-live .oz-x__swept:not(.is-in) .oz-x__path { stroke-dashoffset: 1; }
.oz-x__swept .oz-x__path { transition: stroke-dashoffset 900ms cubic-bezier(0.5, 0, 0.3, 1) 200ms; }
.oz-live .oz-x__swept:not(.is-in) :is(.oz-x__tick, .oz-x__svgl--hit) { opacity: 0; }
.oz-x__swept .oz-x__tick { transition: opacity 160ms linear; }
.oz-x__swept .oz-x__svgl--hit { transition: opacity 240ms linear 1000ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(1) { transition-delay: 292ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(2) { transition-delay: 324ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(3) { transition-delay: 356ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(4) { transition-delay: 388ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(5) { transition-delay: 420ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(6) { transition-delay: 452ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(7) { transition-delay: 484ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(8) { transition-delay: 516ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(9) { transition-delay: 548ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(10) { transition-delay: 580ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(11) { transition-delay: 612ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(12) { transition-delay: 644ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(13) { transition-delay: 676ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(14) { transition-delay: 708ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(15) { transition-delay: 740ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(16) { transition-delay: 772ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(17) { transition-delay: 804ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(18) { transition-delay: 836ms; }
.oz-x__swept.is-in .oz-x__tick:nth-of-type(19) { transition-delay: 868ms; }
.oz-live .oz-x__splits:not(.is-in) .oz-x__sq:not(:first-of-type) { opacity: 0; }
.oz-x__splits .oz-x__sq { transition: opacity 300ms linear; }
.oz-x__splits .oz-x__sq:nth-of-type(2), .oz-x__splits .oz-x__sq:nth-of-type(3) { transition-delay: 260ms; }
.oz-x__splits .oz-x__sq:nth-of-type(n+4) { transition-delay: 560ms; }
@media (prefers-reduced-motion: reduce) {
  /* the same builds, without movement: things appear and lines draw in place; packets don't travel, the wires light */
  @keyframes oz-x-in { from { opacity: 0; } }
  .oz-live .oz-x [data-notes]:not(.is-in) .oz-x__pin { transform: none; }
  .oz-x [data-notes] .oz-x__pin { transition: opacity 260ms linear, background-color 160ms linear; }
  .oz-x__pin.is-lit { transform: none; box-shadow: 0 0 0 4px rgba(11, 12, 12, 0.55), 0 0 0 6px #fff; }
  .oz-live .oz-x__stack:not(.is-in) .oz-x__layer { transform: none; }
  .oz-x__net.is-in .oz-x__wire { animation: oz-x-wire 1400ms linear 1 both; }
  .oz-x__net.is-in .oz-x__lane--out .oz-x__wire { animation-delay: 500ms; }
  @keyframes oz-x-wire { 0%, 100% { opacity: 0.7; } 30% { opacity: 1; background: var(--accent); } }
  .oz-header__chap.is-new { animation: none; }
}

/* ---------- the second case study (oz-spage) ---------- */
/* Streamer Simulator, on the site's own paper: the game's screen is bright and busy, so the page around it stays quiet.
   It shares the case study's parts (.oz-x) and their motion; marks use the turquoise for paper, text the turquoise ink. */
.oz-spage { --accent: var(--accent-strong); background: var(--canvas); color: var(--ink); min-height: 100svh; }
.oz-spage .oz-header__chap, .oz-spage .oz-x__kicker-n, .oz-spage .oz-x__layer.is-mine .oz-x__layer-who, .oz-spage .oz-x__note.is-lit .oz-x__note-t,
.oz-spage .oz-x__tech[open] .oz-x__tech-i { color: var(--accent-ink); }
.oz-spage .oz-x__note-n { color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent-ink); }
.oz-spage .oz-x__note.is-lit .oz-x__note-n, .oz-spage .oz-x__note:focus-visible .oz-x__note-n { background: var(--accent-ink); color: var(--canvas); }
.oz-spage .oz-x__title { font-size: clamp(44px, 4.4vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.oz-spage .oz-x__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.oz-spage .oz-x__hero { margin-right: 0; }
.oz-spage .oz-x__hero .oz-media__box { border-radius: var(--radius-media); }
@media (min-width: 1024px) {
  .oz-spage .oz-x__open-in { row-gap: clamp(32px, 5svh, 56px); }
  .oz-spage .oz-x__open-text { grid-column: 1 / span 7; }
  .oz-spage .oz-x__facts { grid-column: 9 / -1; align-self: end; margin-top: 0; }
  .oz-spage .oz-x__open-media { grid-column: 1 / -1; margin-top: 0; }
}
/* the annotated screen: over the picture, the full turquoise; badge positions are STREAM_NOTES' bx, by in % of 1264 x 714 */
.oz-spage .oz-x__shot-box { aspect-ratio: 1264 / 714; }
.oz-spage .oz-x__pin { background: var(--oz-accent); }
.oz-spage .oz-x__target { fill: var(--oz-accent); }
.oz-spage .oz-x__lead-g.is-lit .oz-x__leader { stroke: var(--oz-accent); }
.oz-spage .oz-x__pin[data-note="0"] { left: 16.22%; top: 36.69%; }
.oz-spage .oz-x__pin[data-note="1"] { left: 55.38%; top: 80.39%; }
.oz-spage .oz-x__pin[data-note="2"] { left: 77.93%; top: 4.2%; }
.oz-spage .oz-x__pin[data-note="3"] { left: 96.91%; top: 65.83%; }
/* a key and a tracked hand, side by side under the heading */
.oz-s__vs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--oz-gutter); row-gap: 32px; }
.oz-s__vs-i { grid-column: 4 / span 4; padding-top: 18px; border-top: 2px solid var(--ink-3); }
.oz-s__vs-i + .oz-s__vs-i { grid-column: 8 / span 5; border-top-color: var(--accent); }
.oz-s__vs-i p { margin-top: 8px; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 30em; }
/* from the webcam to the game: five stages on a line */
.oz-s__flow { margin-top: clamp(48px, 6vw, 80px); }
.oz-s__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--oz-gutter); counter-reset: none; }
.oz-s__step { position: relative; display: grid; gap: 8px; align-content: start; padding-top: 22px; }
.oz-s__step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink-3); }
.oz-s__step::after { content: ""; position: absolute; top: -4px; right: calc(-1 * var(--oz-gutter) + 2px); width: 8px; height: 8px; border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: rotate(45deg); }
.oz-s__step:last-child::after { display: none; }
.oz-s__step.is-on::before { background: var(--accent); height: 3px; top: -0.5px; }
.oz-s__step-t { font-size: 18px; font-weight: 600; }
.oz-s__step.is-on .oz-s__step-t { color: var(--accent-ink); }
.oz-s__step-s { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.oz-s__flow .oz-x__cap { margin-top: 24px; }
/* the two illustrations */
.oz-s__ill { margin-top: clamp(48px, 6vw, 80px); }
.oz-s__ill-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--oz-gutter); row-gap: 36px; }
.oz-s__ill-i { border-top: 1px solid var(--divider); padding-top: 16px; }
.oz-s__ill-t { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.oz-s__ill-i svg { display: block; width: 100%; max-width: 560px; height: auto; margin-top: 12px; overflow: visible; }
.oz-s__ill .oz-x__svgl { font-size: 11px; }
.oz-s__svgl--on { fill: var(--accent-ink); font-weight: 600; }
.oz-s__goal { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.oz-s__raw { fill: none; stroke: var(--ink-3); stroke-width: 1.25; stroke-linejoin: round; }
.oz-s__smooth { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.oz-s__dot { fill: var(--ink); }
.oz-s__dot--off { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.oz-s__ill .oz-x__cap { margin-top: 18px; }
.oz-x__stack .oz-x__layer:nth-child(4) { transition-delay: 360ms; }
.oz-x__stack .oz-x__layer:nth-child(5) { transition-delay: 480ms; }
@media (max-width: 1023px) {
  .oz-spage .oz-x__facts { grid-column: 1 / -1; }
  .oz-s__vs-i, .oz-s__vs-i + .oz-s__vs-i { grid-column: span 6; }
}
@media (max-width: 720px), (orientation: portrait) and (max-width: 900px) {
  .oz-spage .oz-x__pin[data-note="2"] { top: 5.6%; }
  .oz-spage .oz-x__pin[data-note="3"] { left: 95.4%; }
  .oz-s__vs-i, .oz-s__vs-i + .oz-s__vs-i { grid-column: 1 / -1; }
  .oz-s__steps { grid-template-columns: 1fr; }
  .oz-s__step { padding: 0 0 22px 22px; }
  .oz-s__step:last-child { padding-bottom: 0; }
  .oz-s__step::before, .oz-s__step.is-on::before { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .oz-s__step:first-child::before { top: 6px; }
  .oz-s__step:last-child::before { bottom: auto; height: 12px; }
  .oz-s__step.is-on::before { width: 3px; left: -0.5px; }
  .oz-s__step::after { display: none; }
  .oz-s__ill-row { grid-template-columns: 1fr; }
  .oz-s__ill .oz-x__svgl { font-size: 14px; }
}

/* view transitions between pages of the site: a project's picture carries on from its homepage card into its case
   study's opening (and back); everything else crossfades briefly. Browsers without them just navigate. */
@view-transition { navigation: auto; }
/* Crossfade: the new page fades in over the old one without the default plus-lighter blend (both are opaque). */
::view-transition-group(root) { animation: none; }
::view-transition-image-pair(root) { isolation: auto; }
::view-transition-old(root) { animation: oz-vt-under 300ms steps(1, end) both; }
::view-transition-new(root) { animation: oz-vt-in 300ms ease both; }
@keyframes oz-vt-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes oz-vt-under { from { opacity: 1; } to { opacity: 0; } }
.oz-boot *, .oz-boot *::before, .oz-boot *::after { transition: none !important; }
/* Phones: no picture morph; the new page fades and rises 14px, and nothing on it animates during the transition. */
@media (max-width: 720px) {
  html.oz-vt-m :is([data-reveal], .oz-media__box > img) { transition: none !important; }   /* only these (a narrow selector: toggling it restyles just them) */
  html.oz-vt-arrived .oz-x [data-in] { animation: none; }
}
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  ::view-transition-new(root) { animation: oz-vt-rise 320ms cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  ::view-transition-old(root) { animation: oz-vt-under 320ms steps(1, end) both; }
  @keyframes oz-vt-rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 721px) {
  /* each project's picture has its own name, so it only ever morphs into its own case study */
  #asteroid .oz-media__box, .oz-xpage .oz-x__hero .oz-media__box { view-transition-name: oz-asteroid; }
  #streamer .oz-media__box, .oz-spage .oz-x__hero .oz-media__box { view-transition-name: oz-streamer; }
  /* initMotion turns the group's width/height morph into the same motion as a transform (scaled about this corner) */
  ::view-transition-group(oz-asteroid), ::view-transition-group(oz-streamer) { transform-origin: 0 0; animation-duration: 620ms; animation-timing-function: cubic-bezier(0.65, 0, 0.25, 1); }
  /* the picture's crossfade is drawn the same way as the page's: both pictures are opaque boxes */
  ::view-transition-image-pair(oz-asteroid), ::view-transition-image-pair(oz-streamer) { isolation: auto; }
  ::view-transition-old(oz-asteroid), ::view-transition-new(oz-asteroid), ::view-transition-old(oz-streamer), ::view-transition-new(oz-streamer) { height: 100%; object-fit: cover; }
  ::view-transition-old(oz-asteroid), ::view-transition-old(oz-streamer) { animation: oz-vt-under 620ms steps(1, end) both; }
  ::view-transition-new(oz-asteroid), ::view-transition-new(oz-streamer) { animation: oz-vt-in 620ms cubic-bezier(0.65, 0, 0.25, 1) both; }
  /* a picture with no partner on the other page (the other project's card, or a case study's picture on the way to
     somewhere else) goes with its page: out as the new page fades in over it, or in with the new page */
  ::view-transition-old(oz-asteroid):only-child, ::view-transition-old(oz-streamer):only-child { animation: oz-vt-under 300ms ease both; }
  ::view-transition-new(oz-asteroid):only-child, ::view-transition-new(oz-streamer):only-child { animation: oz-vt-in 300ms ease both; }
}

@media (max-width: 1023px) {
  .oz-header__crumb .oz-header__chap { display: none; }
  .oz-x__open-text, .oz-x__open-media { grid-column: 1 / -1; }
  .oz-x__hero { grid-column: 1 / -1; margin-right: 0; margin-top: 0; }
  .oz-x__hero .oz-media__box { border-radius: var(--radius-media); }
  .oz-x__label, .oz-x__h, .oz-x__lead { grid-column: 1 / -1; }
  .oz-x__label { padding-top: 0; }
  .oz-x__shot, .oz-x__notelist { grid-column: 1 / -1; grid-row: auto; }
  .oz-x__layer-who { grid-column: 1 / -1; padding-top: 0; margin-bottom: 8px; }
  .oz-x__layer-body { grid-column: 1 / -1; }
  .oz-x__note-line, .oz-x__limits, .oz-x__tech { margin-left: 0; }
  .oz-x__input, .oz-x__bot { grid-column: 1 / -1; }
  .oz-x__frame { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .oz-x__stage:nth-child(2)::after { display: none; }
  .oz-x__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oz-x__next { grid-column: 1 / -1; }
  .oz-x__end-side { grid-column: 1 / -1; }
}
@media (max-width: 720px), (orientation: portrait) and (max-width: 900px) {
  .oz-header__crumb .oz-header__proj { display: none; }
  .oz-header__crumb { justify-self: end; }
  .oz-x__facts { grid-template-columns: 1fr; }
  .oz-x__notelist { display: grid; gap: 0; }
  .oz-x__pin { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11.5px; line-height: 22px; box-shadow: 0 0 0 3px rgba(11, 12, 12, 0.55); }
  /* the exchange, upright: joiner above, host below, the two directions side by side */
  .oz-x__net { grid-template-columns: 1fr; }
  .oz-x__lanes { flex-direction: row; justify-content: center; gap: 30%; padding: 10px 0; height: 84px; }
  .oz-x__lane { width: 2px; height: 100%; }
  .oz-x__lane-l { left: auto; right: 12px; bottom: auto; top: 50%; width: 26vw; transform: translateY(-50%); text-align: right; white-space: normal; line-height: 1.3; }
  .oz-x__lane--out .oz-x__lane-l { right: auto; left: 12px; top: 50%; text-align: left; }
  /* the opening on a phone: name, sentence, the picture, then the facts */
  .oz-x__open-text { display: contents; }
  .oz-x__kicker, .oz-x__title, .oz-x__say { grid-column: 1 / -1; }
  .oz-x__open-media { grid-row: 4; }
  .oz-x__facts { grid-column: 1 / -1; grid-row: 5; margin-top: 0; }
  .oz-x__acts { grid-column: 1 / -1; grid-row: 6; margin-top: 0; }
  .oz-x__open-in { row-gap: 0; }
  .oz-x__title { margin-top: 14px; }
  .oz-x__say { margin-bottom: 28px; }
  .oz-x__open-media { margin-bottom: 28px; }
  .oz-x__pkt { inset: 0 -3px auto -3px; width: 8px; height: 100%; }
  .oz-x__pkt::before { width: 8px; height: 14px; left: 0 !important; right: auto !important; }
  .oz-x__lane--in .oz-x__pkt::before { top: 0; }
  .oz-x__lane--out .oz-x__pkt::before { top: auto; bottom: 0; }
  @keyframes oz-x-pkt-in { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, calc(100% - 14px), 0); } }
  @keyframes oz-x-pkt-out { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translate3d(0, calc(14px - 100%), 0); } }
  .oz-x__sources { grid-template-columns: 1fr; }
  .oz-x__steps { grid-template-columns: 1fr; row-gap: 40px; }
  .oz-x__step-c::before { right: 0; }
  .oz-x__tech-l > div { grid-template-columns: 1fr; row-gap: 4px; }
  .oz-x__pin[data-note="3"] { left: 62.5%; top: 6.4%; }
  /* the annotated screen runs edge to edge on a phone, for every pixel it can get */
  .oz-x__shot { margin-inline: calc(-1 * var(--oz-margin)); }
  .oz-x__shot-box { border-radius: 0; }
  .oz-x__shot .oz-x__cap { padding-inline: var(--oz-margin); }
  .oz-x__src { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
  .oz-x__src-s { margin-top: 0; }
  .oz-x__join { display: none; }
  .oz-x__sources { margin-bottom: 22px; }
  .oz-x__frame { grid-template-columns: 1fr; }
  .oz-x__stage::after { display: none; }
  .oz-x__details { grid-template-columns: 1fr; }
  .oz-x__rules > div { grid-template-columns: 1fr; row-gap: 4px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .oz-header__out { display: none; }
  .oz-header__in { grid-template-columns: auto 1fr auto; }
  .oz-nav { justify-self: end; }
  .oz-about .oz-label, .oz-about__say { grid-column: 1 / -1; }
  .oz-about__say { margin-top: 20px; }
  .oz-area__t { grid-column: 1 / span 4; }
  .oz-area__d { grid-column: 5 / span 8; }
  .oz-work__head .oz-label, .oz-work__t { grid-column: 1 / span 9; }
  .oz-work__t { margin-top: 12px; }
  .oz-proj__no { grid-column: 1 / -1; }
  .oz-proj__titles { grid-column: 1 / span 12; margin-top: 8px; }
  .oz-proj__links { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; margin-top: 20px; }
  .oz-proj__media { margin-left: 0; }
  .oz-detail--what { grid-column: 1 / -1; }
  .oz-detail { grid-column: span 6; }
  .oz-contact__list { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .oz-phero__lead, .oz-phero__side { grid-column: 1 / -1; }
}
@media (max-width: 720px), (max-width: 1100px) and (max-aspect-ratio: 4/5) {
  :root { --oz-hd: 62px; }
  .oz-hero { min-height: calc(100svh - var(--oz-hd)); }
  /* portrait: one stack, placed by the small viewport height so browser bars never move it */
  .oz-hero__in { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(20px, 3svh, 32px) clamp(36px, 7svh, 72px); }
  .oz-hero__title, .oz-hero__side, .oz-hero__work { grid-column: 1; grid-row: auto; width: 100%; max-width: 560px; align-self: flex-start; }
  .oz-hero__title { font-size: clamp(34px, 9.4vw, 54px); line-height: 1.04; }
  .oz-hero__side { padding-top: 18px; row-gap: 10px; order: 2; }
  .oz-hero__lead { font-size: clamp(16px, 4.4vw, 17px); line-height: 1.5; max-width: 21em; text-wrap: balance; }
  .oz-hero__note { font-size: clamp(13.5px, 3.75vw, 14.5px); }
  .oz-hero__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 14px; }
  .oz-hero__acts > * { justify-content: center; }
  .oz-hero__work { order: 3; padding-top: clamp(36px, 6svh, 56px); }
  .oz-hero__work a { padding: 14px 0 15px; }
  .oz-hero__w-t { font-size: 19px; }
  .oz-hero__w-b { font-size: 14.5px; text-wrap: balance; }
  .oz-hero__w-s { font-size: 13.5px; }
}
@media (max-width: 720px) {
  .oz-brand { font-size: 18px; }
  .oz-nav__list { gap: 18px; }
  .oz-nav a { font-size: 15px; }
  .oz-about__say { font-size: clamp(27px, 7.6vw, 36px); }
  .oz-area { grid-template-columns: 1fr; row-gap: 8px; padding-block: 22px 24px; }
  .oz-area__t, .oz-area__d { grid-column: 1; }
  .oz-work__n { grid-column: 1 / -1; justify-self: start; }
  .oz-work__head .oz-label, .oz-work__t { grid-column: 1 / -1; }
  .oz-proj__body { grid-template-columns: 1fr; }
  .oz-detail, .oz-detail--what { grid-column: 1; }
  .oz-contact__list { grid-template-columns: 1fr; row-gap: 0; }
  .oz-contact__item { padding-block: 20px 22px; border-bottom: 1px solid var(--divider); }
  .oz-contact__item dd { font-size: 22px; }
  .oz-act { height: 50px; }
  .oz-phero__title { font-size: clamp(42px, 12vw, 68px); }
}
@media (max-width: 380px) {
  .oz-brand { font-size: 16px; }
  .oz-header__in { gap: 10px; }
  .oz-nav__list { gap: 13px; }
  .oz-nav a { font-size: 14px; }
  .oz-act { padding: 0 16px 0 18px; }
  .oz-hero__acts .oz-act { gap: 10px; padding: 0 14px; }  /* the two equal actions keep their label and arrow inside */
}
@media (forced-colors: active) {
  .oz-hero__work a::before, .oz-nav__bar, .oz-line, .oz-area__t::before, .oz-contact__item::before { forced-color-adjust: none; background: CanvasText; }
}

/* ---------- privacy controls ---------- */
/* Everything below is for the consent panel, Privacy preferences and the privacy page; it styles only their own
   classes. The footer's links wrap as one group on narrow screens; on wider ones the footer keeps its single row. */
.oz-footer__in { flex-wrap: wrap; row-gap: var(--space-3); }
.oz-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.oz-footer__btn { appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; transition: color var(--duration-fast) var(--oz-ease); }
.oz-footer__btn:focus-visible { color: var(--ink); }
@media (hover: hover) { .oz-footer__btn:hover { color: var(--ink); } }
/* A button that looks and behaves like a TextLink (it opens Privacy preferences). */
.oz-link--btn { appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; text-align: inherit; cursor: pointer; }
:where(.oz-footer__btn, .oz-link--btn, .oz-choice):active { opacity: 0.7; }

/* Accept analytics and Necessary only (and Save / Cancel) are one kind of button: the same size, weight, colour and
   1px rule, side by side, so neither choice is easier to see or reach. Hover and focus turn text and rule turquoise. */
.oz-choice {
  appearance: none; margin: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 0; background: none;
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1.25; letter-spacing: -0.005em; color: var(--ink); text-align: center; cursor: pointer;
  transition: color var(--duration-fast) var(--oz-ease), border-color var(--duration-fast) var(--oz-ease);
}
.oz-choice:focus-visible { color: var(--accent); border-color: var(--accent); }
@media (hover: hover) { .oz-choice:hover { color: var(--accent); border-color: var(--accent); } }

/* Consent gate and Privacy preferences: native modal dialogs over a blurred, dimmed page. The page is inert and
   locked while either is open. Escape closes Privacy preferences, never the gate. */
.oz-consent, .oz-prefs {
  max-width: none; max-height: calc(100% - 2 * var(--space-4)); overflow: auto; overscroll-behavior: contain;
  margin: auto; padding: var(--space-8); border: 1px solid var(--rule); border-radius: 0; background: var(--canvas); color: var(--ink);
  font-size: 16px; line-height: 1.5;
}
.oz-consent { width: min(460px, calc(100% - 2 * var(--space-4))); }
.oz-prefs { width: min(540px, calc(100% - 2 * var(--space-4))); }
.oz-consent:not([open]), .oz-prefs:not([open]) { display: none; }
.oz-consent:focus { outline: none; }  /* focused on opening, so reading starts at its name and text; its controls show focus */
:is(.oz-consent, .oz-prefs)::backdrop { background: rgba(20, 20, 19, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.oz-gated .oz-prefs::backdrop { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }  /* the gate's is already there */
.oz-consent.is-behind { opacity: 0; }  /* Privacy preferences, opened from the gate, takes its place until it closes */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :is(.oz-consent, .oz-prefs)::backdrop { background: rgba(20, 20, 19, 0.88); }
}
@media (prefers-reduced-transparency: reduce) {
  :is(.oz-consent, .oz-prefs)::backdrop { background: rgba(20, 20, 19, 0.88); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
html.oz-locked { overflow: hidden; }
.oz-consent__t, .oz-prefs__t { font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.oz-consent__body { margin-top: var(--space-3); color: var(--ink-2); }
.oz-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-6); }
.oz-consent__more { margin-top: var(--space-4); }
.oz-prefs__intro { margin-top: var(--space-3); color: var(--ink-2); }
.oz-pref { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--divider); }
.oz-pref__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 32px; }
.oz-pref__name { font-size: 17px; line-height: 1.3; font-weight: 600; }
label.oz-pref__name { cursor: pointer; }
.oz-pref__state { font-size: 15px; color: var(--ink-2); }
.oz-pref__control { display: inline-flex; align-items: center; gap: var(--space-3); }
.oz-pref__state--switch::before { content: "Off"; }
.oz-pref__control[data-on="true"] .oz-pref__state--switch::before { content: "On"; }
.oz-pref__desc { margin-top: var(--space-2); font-size: 15px; color: var(--ink-2); }
.oz-prefs__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); margin-top: var(--space-8); }
/* The Analytics switch: a native checkbox (role="switch"), square like everything else; its On/Off label says the
   state in words, so it never relies on colour or position alone. */
.oz-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0; width: 44px; height: 24px;
  border: 1px solid var(--rule); border-radius: 0; background: none; cursor: pointer;
  transition: border-color var(--duration-fast) var(--oz-ease);
}
.oz-switch::before {
  content: ""; position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; background: var(--ink-2);
  transition: transform var(--duration-fast) var(--oz-ease), background-color var(--duration-fast) var(--oz-ease);
}
.oz-switch:checked { border-color: var(--accent); }
.oz-switch:checked::before { transform: translateX(20px); background: var(--accent); }
.oz-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) { .oz-switch:hover { border-color: var(--accent); } }
@media (forced-colors: active) {
  .oz-switch::before { forced-color-adjust: none; background: CanvasText; }
  .oz-switch:checked::before { background: Highlight; }
}
/* The dialogs and their backdrops appear by a short fade; under reduced motion they simply appear, and the switch
   doesn't slide. They close at once. */
@media (prefers-reduced-motion: no-preference) {
  :is(.oz-consent, .oz-prefs)[open], :is(.oz-consent, .oz-prefs)[open]::backdrop { animation: oz-appear 200ms var(--oz-ease-out); }
  @keyframes oz-appear { from { opacity: 0; } }
  :is(.oz-consent, .oz-prefs).oz-fade-hold, :is(.oz-consent, .oz-prefs).oz-fade-hold::backdrop { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .oz-switch, .oz-switch::before { transition: none; } }
@media (max-width: 640px) {
  .oz-consent, .oz-prefs { padding: var(--space-6) 20px; }
}
@media (max-width: 360px) { .oz-choice { padding: 8px 10px; font-size: 15px; } }
@media print { .oz-consent { display: none; } html.oz-locked { overflow: visible; } }

/* ---------- privacy page ---------- */
/* Numbered sections on the project grid: the number in the margin column, the text in columns 3-9. */
.oz-section.oz-legal { padding-top: var(--space-24); }
.oz-legal__sec { align-items: start; row-gap: var(--space-2); padding: var(--space-6) 0 var(--space-12); border-top: 1px solid var(--divider); }
.oz-legal__sec:first-child { border-top-color: var(--rule); }
.oz-legal__no { grid-column: 1 / span 2; font-size: 17px; line-height: 1.45; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.oz-legal__body { grid-column: 3 / span 7; display: flex; flex-direction: column; gap: var(--space-3); max-width: 38em; color: var(--ink-2); }
.oz-legal__h { font-size: 24px; line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); margin-bottom: var(--space-1); }
.oz-legal__list { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: var(--space-2); }
.oz-legal__code { font-family: var(--font-mono); font-size: 0.82em; color: var(--ink); overflow-wrap: anywhere; }
/* Cookies and storage: name, purpose, duration, ruled like the contact rows; one block per item on small screens. */
.oz-legal__table { width: 100%; border-collapse: collapse; margin-top: var(--space-1); }
.oz-legal__table :is(th, td) { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-top: 1px solid var(--divider); text-align: left; vertical-align: top; font-weight: 400; }
.oz-legal__table :is(th, td):last-child { padding-right: 0; }
.oz-legal__table thead th { padding-top: 0; border-top: 0; font-size: 15px; }
.oz-legal__table tbody th { white-space: nowrap; }
/* Phones: the text takes the rest of the row, and links in running text wrap with it like words. */
@media (max-width: 720px) {
  .oz-legal__body { grid-column: 3 / -1; }
  .oz-legal__body p .oz-link { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .oz-legal__body p .oz-link__a { margin-left: 0.3em; }
}
@media (max-width: 640px) {
  .oz-legal__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .oz-legal__table :is(tbody, tr, th, td) { display: block; }
  .oz-legal__table tr { padding: var(--space-3) 0; border-top: 1px solid var(--divider); }
  .oz-legal__table :is(th, td) { padding: 0; border-top: 0; }
  .oz-legal__table tbody th { margin-bottom: var(--space-1); }
  .oz-legal__table td + td { margin-top: var(--space-2); }
}

/* ---------- paper theme for the privacy controls ---------- */
/* The gate and Privacy preferences keep their structure and behaviour; on paper they become a quiet sheet with the
   page's own controls: equal pill buttons (neither choice is easier to see or reach) and a pill switch. */
:is(.oz-consent, .oz-prefs) { border: 0; border-radius: var(--radius-panel); box-shadow: 0 0 0 1px var(--divider), 0 24px 60px -24px rgba(20, 22, 21, 0.35); }
:is(.oz-consent, .oz-prefs)::backdrop { background: rgba(20, 22, 21, 0.38); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { :is(.oz-consent, .oz-prefs)::backdrop { background: rgba(20, 22, 21, 0.78); } }
@media (prefers-reduced-transparency: reduce) { :is(.oz-consent, .oz-prefs)::backdrop { background: rgba(20, 22, 21, 0.78); } }
.oz-choice { border: 0; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--oz-control-line); font-weight: 560; font-size: 15px;
  transition: box-shadow var(--duration-fast) var(--oz-ease), background-color var(--duration-fast) var(--oz-ease), color var(--duration-fast) var(--oz-ease); }
.oz-choice:focus-visible { color: var(--ink); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--ink); }
@media (hover: hover) { .oz-choice:hover { color: var(--ink); background: var(--canvas-2); box-shadow: inset 0 0 0 1px var(--ink); } }
.oz-switch { border: 0; border-radius: var(--radius-pill); background: var(--canvas-2); box-shadow: inset 0 0 0 1px var(--oz-control-line); }
.oz-switch::before { top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-2); }
.oz-switch:checked { background: var(--accent-strong); box-shadow: none; }
.oz-switch:checked::before { transform: translateX(20px); background: var(--canvas); }
@media (hover: hover) { .oz-switch:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.oz-legal__table tbody th { font-weight: 500; }

/* ---------- dark theme ---------- */
/* html[data-theme="dark"], set before the first paint by the THEME head script (see build.js), swaps every colour token
   for the near-black set in tokens.json, on screen only: paper always prints in the light theme. These are the few
   colours that are not tokens. */
@media not print {
  html[data-theme="dark"] { color-scheme: dark; --oz-control-line: rgba(236, 234, 228, 0.28); --oz-copy-hover: #2a2e2b; }
}
@media print { html.oz-themes .oz-theme { display: none; } }   /* a switch means nothing on paper */

/* Media aspect ratios, generated from the pages by scripts/build.js. */
.oz-media__box[data-ratio="2000 / 1124"] { --oz-ratio: 2000 / 1124; }
.oz-media__box[data-ratio="1264 / 714"] { --oz-ratio: 1264 / 714; }
