/* ==========================================================================
   Ronen Aminoff · Creative Leadership & Technology
   Signature: "The Composite". The hero title card breaks down into its layers,
   and each layer is a discipline. The rest of the site is laid out like an edit:
   tracks, clips, a timeline.
   ========================================================================== */

:root {
  /* Every design token (color, type size, spacing, motion, type recipes) comes from Figma:
     tokens/figma-tokens.json → assets/tokens.css, generated by the build. Never define one here;
     the build fails if you do. Change it in Figma and pull. */
  --ease: var(--ease-out);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins over a component's display rule (the Lab empty state showed beside results). */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-sans); font-size: var(--fs-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink-2); }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
strong, b { font-weight: 650; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }
.mark { display: inline-block; vertical-align: -0.1em; flex: none; fill: currentColor; overflow: visible; }
.mark .mk-dot { transform-box: fill-box; transform-origin: center; }

.eyebrow {
  font-family: var(--f-mono); font-size: var(--fs-s); line-height: 1.4; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.eyebrow .mark { color: var(--ink); }
/* The dot of the mark is orange only where it is the one point in its frame. */
.eyebrow .mark .mk-dot, .monitor-bar .mark .mk-dot { fill: var(--red); }
.hero .eyebrow .mark .mk-dot { fill: currentColor; }
.tk { font-family: var(--f-mono); font-size: 0.82em; color: #9a1d06; background: rgba(255, 61, 23, 0.1); padding: 1px 5px; border-radius: 2px; }

/* Track colors: the one place a track code becomes a color. Everything else uses var(--track). */
[data-track="V1"] { --track: var(--v1); }
[data-track="V2"] { --track: var(--v2); }
[data-track="V3"] { --track: var(--v3); }
[data-track="V4"] { --track: var(--v4); }
[data-track="A1"] { --track: var(--a1); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-family: var(--f-sans); font-weight: 600; font-size: var(--fs-md); text-decoration: none; white-space: nowrap;
  transition: background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-sm); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--night-2); border-color: var(--night-2); color: var(--paper); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: clamp(16px, 3vw, 40px);
  /* Full-bleed bar, content on the same edges as the page. */
  height: var(--header-h); padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: rgba(239, 236, 230, 0.9);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-stretch: 88%; font-size: var(--fs-ui); white-space: nowrap; justify-self: start; }
.brand .mark { color: var(--ink); }
.brand .mark .mk-dot { transition: transform var(--dur-3) var(--ease-out), fill var(--dur-2) ease; }
.brand:hover { color: var(--ink); }
/* The dot leans into the stem and turns accent: the logo answering the pointer. */
.brand:hover .mark .mk-dot { transform: translateX(-6%) scale(0.86); fill: var(--red); }
.site-nav ul { display: flex; gap: clamp(16px, 2.6vw, 36px); }
.site-nav a { font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.header-cta:hover { color: var(--paper); }
/* Language: EN / עב. The current language is marked, the other one is the link. */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin: 0; font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.06em; color: var(--ink-3); white-space: nowrap; }
.lang-opt { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; padding: 0 4px; color: var(--ink-2); text-decoration: none; }
.lang-opt[lang="he"] { font-family: var(--f-sans); letter-spacing: 0; font-weight: 600; }
a.lang-opt:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.lang-opt[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang-opt.is-off { color: var(--ink-3); cursor: default; }
@media (max-width: 560px) {
  .site-header { gap: 12px; }
  .brand span { font-size: var(--fs-md); }
  .site-nav ul { gap: 12px; }
  /* Contact stays reachable on phones (site audit v2): a compact button instead of none. */
  .header-cta { padding: 6px 10px; font-size: var(--fs-xs); }
}
/* Phones: two rows (audit 3, mobile header). Brand, language and contact on top; Work, Lab and About below,
   spread across the width with 44 px tap targets. */
@media (max-width: 560px) {
  html { scroll-padding-top: calc(var(--header-h) * 2 + 24px); }
  .site-header { height: auto; grid-template-columns: 1fr auto auto; grid-template-areas: "brand lang cta" "nav nav nav"; row-gap: 0; column-gap: 12px; padding-top: 8px; }
  .brand { grid-area: brand; min-height: 44px; min-width: 44px; }
  .lang-switch { grid-area: lang; }
  .header-cta { grid-area: cta; }
  .site-nav { grid-area: nav; border-top: 1px solid var(--rule); }
  .site-nav ul { justify-content: space-between; gap: 0; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  .site-nav li:first-child a { padding-inline-start: 0; }
  .site-nav li:last-child a { padding-inline-end: 0; }
}
@media (max-width: 359px) { .brand span { display: none; } }

/* ---------------------------------------------------------------- Hero
   Redesign 2026-11-06: Ronen's photo and "I get creative moving." are back (his choice). Who, in one look. */
.hero { padding-top: clamp(28px, 4.5vw, 64px); padding-bottom: clamp(16px, 2vw, 28px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap) clamp(20px, 3vw, 48px); align-items: start; }
.hero-copy { grid-column: 1 / span 6; padding-top: clamp(4px, 2vw, 28px); }
.hero-visual { grid-column: 7 / span 6; padding-top: clamp(4px, 2vw, 28px); }
.hero-title { margin: 8px 0 22px; font-size: var(--fs-hero); }
/* On the Hebrew site the English headline keeps its own reading order but sits on the right, like the rest of the column. */
[dir="rtl"] .hero-title[dir="ltr"] { text-align: right; }
.hero-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -0.02em; padding-inline-end: 0.04em; }
/* The full stop is the circle from the mark: the only orange in the frame. Archivo's stop is square, so draw it. */
.hero-title .stop { color: var(--red); font-style: normal; }
.contact-title .stop { display: inline-block; width: 0.16em; height: 0.16em; margin-inline-start: 0.03em; border-radius: 50%; background: var(--red); color: transparent; overflow: hidden; vertical-align: baseline; }
.hero-lede { font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-portrait { margin: 0; }
.hero-portrait .frame { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 120px); margin-inline-start: auto; }
@media (max-width: 1080px) {
  /* Small screens: the photo comes right after the words: who, then what. */
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-copy, .hero-visual { display: contents; }
  .hero-title { order: 1; margin-bottom: 18px; }
  .hero-lede { order: 2; max-width: 46ch; }
  .hero-actions { order: 3; }
  .hero .hero-portrait { order: 4; margin: 32px 0 0; width: 100%; max-width: 440px; }
}
/* Headline: lines rise out of a mask, like type built in a comp. Quick: readable in under a second. */
.hero-title .line { display: block; overflow: hidden; padding: 0.04em 0.08em 0.1em 0; margin: -0.04em -0.08em -0.1em 0; }
.hero-title .line > span { display: block; animation: lineUp 0.7s var(--ease-out) both; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.08s; }
@keyframes lineUp { from { transform: translateY(105%); } }
@media (prefers-reduced-motion: reduce) { .hero-title .line > span { animation: none; } }

/* Display recipes. Every big headline on the site is one of these two. */
.hero-title, .page-title, .case-title, .sec-title, .next b, .contact-title, .facts-big dd {
  font-weight: var(--display-w); font-stretch: var(--display-wdth); letter-spacing: var(--display-track); line-height: var(--display-lh);
}
.tp-title, .case-h, .principle-title, .wi-title, .credit-org, .lab-name {
  font-weight: var(--title-w); font-stretch: var(--title-wdth); letter-spacing: var(--title-track); line-height: var(--title-lh);
}
.contact-title { letter-spacing: -0.03em; line-height: 0.92; }

/* ---------------------------------------------------------------- Sections */
.sec-head {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 36ch); gap: var(--gap); align-items: end;
  padding: var(--space-section) 0 clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--ink);
}
.sec-num { font-family: var(--f-mono); font-size: var(--fs-s); color: var(--ink-3); padding-bottom: 0.6em; }
.sec-title { font-size: var(--fs-d2); }
.sec-aside { color: var(--ink-2); font-size: var(--fs-md); padding-bottom: 0.4em; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 10px; } .sec-num { padding: 0; } }

/* ---------------------------------------------------------------- Tracks ("What I do") */
.tracks { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); align-items: start; }
.track-tabs { display: grid; position: sticky; top: calc(var(--header-h) + 16px); border-right: 1px solid var(--ink); }
.track-tab {
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto 6px; column-gap: 8px; row-gap: 8px; align-items: center; text-align: left;
  border: 0; border-bottom: 1px solid var(--rule); background: transparent; padding: 16px 16px 14px 0; min-height: 64px;
  transition: background var(--dur-1), color var(--dur-1), padding var(--dur-1) var(--ease);
}
.tt-code { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.tt-name { font-weight: 700; font-size: var(--fs-ui); }
.tt-clip { grid-column: 1 / -1; height: 4px; position: relative; opacity: 0; transition: opacity var(--dur-2) ease; }
.track-tab:hover .tt-clip { opacity: 0.45; }
.track-tab[aria-selected="true"] .tt-clip { opacity: 1; }
/* Line + circle: the logo's own construction, used as the selection marker. */
.tt-clip::before { content: ""; position: absolute; z-index: 1; top: 50%; left: 40%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--track); transition: left var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.tt-clip::after { content: ""; position: absolute; inset: 0; background: var(--track); transform: scaleX(0.4); transform-origin: left; transition: transform var(--dur-3) var(--ease); }
.track-tab:hover { padding-left: 6px; }
.track-tab[aria-selected="true"] .tt-clip::before { left: calc(100% - 6px); transform: scale(1.15); }
.track-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); padding-left: 12px; }
.track-tab[aria-selected="true"] .tt-code { color: var(--track); }
.track-tab[aria-selected="true"] .tt-clip { background: rgba(239, 236, 230, 0.15); }
.track-tab[aria-selected="true"] .tt-clip::after { transform: scaleX(1); }
.no-js .track-tabs { display: none; }
.no-js .tracks { grid-template-columns: 1fr; }

.track-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 48px); padding: var(--space-stack) 0 var(--space-stack) clamp(20px, 3vw, 48px); align-items: start; }
.js .track-panel[data-inactive] { display: none; }
.no-js .track-panel { padding-left: 0; border-bottom: 1px solid var(--rule); }
.track-panel.is-entering .tp-text { animation: panelIn 0.6s var(--ease-out) both; }
.track-panel.is-entering .tp-visual { animation: panelVis 0.75s var(--ease-out) 0.05s both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
@keyframes panelVis { from { opacity: 0; transform: scale(0.985); } }
.tp-code { font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.tp-code b { color: var(--ink); background: var(--track, var(--red)); padding: 3px 6px; font-weight: 500; }
.tp-title { margin-top: 18px; font-size: var(--fs-d3); }
.tp-body { margin-top: 16px; color: var(--ink-2); font-size: 1.06rem; max-width: 46ch; }
.proof { margin-top: 22px; display: grid; border-top: 1px solid var(--ink); }
.proof a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; font-size: var(--fs-md); transition: padding var(--dur-1) var(--ease), color var(--dur-1); }
.proof a:hover { padding-left: 8px; }
.tp-visual { min-width: 0; }
@media (max-width: 960px) {
  .tracks { grid-template-columns: 1fr; }
  .track-tabs { position: sticky; top: var(--header-h); z-index: 5; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--ink); background: var(--paper); scrollbar-width: none; }
  .track-tabs::-webkit-scrollbar { display: none; }
  .track-tab { flex: none; min-height: 52px; padding: 10px 14px; border-bottom: 0; border-right: 1px solid var(--rule); grid-template-columns: auto auto; }
  .track-tab:hover { padding-left: 14px; }
  .track-panel { grid-template-columns: 1fr; padding-left: 0; }
}

/* Track visuals */
.tv-motion { display: grid; gap: 4px; }
.tv-design { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.tv-design-side { display: grid; gap: var(--gap); }
.tv-design-side .media:last-child { max-width: 260px; }
.tv-tech { display: grid; gap: 18px; }
.tv-tech .lab-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; }
.tv-people { display: grid; gap: 22px; }
.facts-big { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.facts-big div { background: var(--night); color: var(--on-night); padding: 18px 18px 20px; display: flex; flex-direction: column-reverse; gap: 10px; min-height: 150px; justify-content: flex-end; }
.facts-big dd { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.facts-big div:first-child dd { color: var(--a1); }
.facts-big dt { font-size: var(--fs-sm); color: var(--on-night-2); }
.facts-big dt span { display: block; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-night); margin-top: 4px; }
.pull p { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.35; border-inline-start: 3px solid var(--a1); padding-inline-start: 18px; }
@media (max-width: 600px) {
  .tv-design { grid-template-columns: 1fr; }
  .tv-tech .lab-mini { grid-template-columns: 1fr; }
}

/* Program monitor */
.monitor { background: var(--night); color: var(--on-night); }
.monitor-bar, .monitor-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-night-2); padding: 9px 12px; }
.monitor-bar .mark { margin-right: 6px; }
.tc { color: var(--on-night); font-variant-numeric: tabular-nums; }
.monitor-screen { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.clip { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--dur-3) var(--ease), visibility 0s 0.5s; }
.clip.is-on { opacity: 1; visibility: visible; transition: opacity var(--dur-3) var(--ease); }
.clip .media, .clip .frame, .clip .offline { height: 100%; aspect-ratio: auto; }
.monitor .clip .frame img, .monitor .clip .frame video { object-fit: contain; }
.monitor-meta { text-transform: none; letter-spacing: 0; font-size: var(--fs-s); min-height: 56px; }
.clip-info { display: grid; gap: 2px; }
.clip-info b { font-family: var(--f-sans); font-size: var(--fs-md); font-weight: 650; color: var(--on-night); }
.monitor-btns { display: flex; gap: 4px; }
.mon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--on-night-2); background: transparent; color: var(--on-night); display: grid; place-items: center; font-size: 18px; line-height: 1; padding: 0; }
.mon-btn:hover { border-color: var(--on-night); }
.monitor-pause span { width: 8px; height: 10px; border-inline: 3px solid var(--on-night); }
.monitor-pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-left: 9px solid var(--on-night); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.no-js .monitor-btns { display: none; }
.no-js .clip:not(.is-on) { display: none; }

/* ---------------------------------------------------------------- Tags */
.tags { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.tags li { font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 3px; border: 1px solid var(--rule); white-space: nowrap; }
.tags b { font-weight: 500; padding: 1px 4px; color: var(--ink); background: var(--track); }
.case-head .tags { margin-top: 20px; }

/* ---------------------------------------------------------------- Work index */
.windex { border-top: 1px solid var(--ink); }
.wf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px clamp(20px, 3vw, 48px); padding: var(--space-stack) 0; border-bottom: 1px solid var(--rule); align-items: start; }
.wf-media { grid-column: 1 / span 7; }
.wf-media .media { margin: 0; }
.wf-text { grid-column: 8 / span 5; display: grid; gap: 10px; justify-items: start; }
.wf-meta { font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.wf-title { font-size: var(--fs-d3); font-weight: var(--title-w); font-stretch: var(--title-wdth); letter-spacing: var(--title-track); line-height: var(--title-lh); }
.wf-summary { color: var(--ink-body); max-width: 46ch; }
.wf-role, .wi-role { font-size: var(--fs-sm); color: var(--ink-2); }
.wf-actions { margin-top: 6px; }
@media (max-width: 900px) { .wf-media, .wf-text { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- Background (Home, H13-H17)
   Short: one paragraph, the three recent stations, a small portrait, a way to the full record. */
.bg-grid { padding-top: var(--space-stack); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 48px); align-items: start; }
.bg-text { grid-column: 1 / span 8; display: grid; gap: var(--space-stack); }
.bg-portrait { grid-column: 10 / span 3; }
.bg-portrait .media { margin: 0; }
.bg-portrait .frame { aspect-ratio: 4 / 5; }
.bg-lede { font-size: var(--fs-lead); line-height: 1.5; max-width: 60ch; color: var(--ink-body); }
.stations { border-top: 1px solid var(--rule); }
.station { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.station-org { font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.2em; }
.station-main { display: grid; gap: 4px; }
.station-main b { font-weight: 650; }
.station-main span { font-size: var(--fs-sm); color: var(--ink-2); }
@media (max-width: 900px) {
  .bg-text { grid-column: 1 / -1; }
  .bg-portrait { grid-column: 1 / -1; max-width: 140px; grid-row: 1; }
  .station { grid-template-columns: 1fr; }
}
.windex .wr > a {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 300px) 46px; gap: var(--gap); align-items: center;
  padding: clamp(20px, 2.4vw, 30px) 10px; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background var(--dur-1), color var(--dur-1);
}
.wi-n { font-family: var(--f-mono); font-size: var(--fs-s); color: var(--ink-3); align-self: start; padding-top: 0.6em; }
.wi-main { display: grid; gap: 8px; }
.wi-title { font-size: var(--fs-d3); }
.wi-line { color: var(--ink-2); max-width: 62ch; font-size: var(--fs-md); }
.wi-side { display: grid; gap: 10px; justify-items: start; }
.wi-client { font-size: var(--fs-sm); font-weight: 600; }
.wi-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 18px; transition: background var(--dur-2) ease, color var(--dur-2) ease, border-color var(--dur-2) ease, transform var(--dur-3) var(--ease-out); }
.windex .wr > a:hover, .windex .wr > a:focus-visible { background: var(--ink); color: var(--paper); }
.windex .wr > a:hover .wi-line, .windex .wr > a:focus-visible .wi-line { color: var(--on-night-2); }
.windex .wr > a:hover .wi-n, .windex .wr > a:focus-visible .wi-n { color: var(--on-night-2); }
.windex .wr > a:hover .tags li { border-color: rgba(239, 236, 230, 0.25); }
.windex .wr > a:hover .wi-arrow { transform: translateX(4px); background: var(--paper); border-color: var(--paper); color: var(--ink); }
@media (max-width: 860px) {
  .windex .wr > a { grid-template-columns: 32px minmax(0, 1fr); padding-inline: 0; }
  .wi-side { grid-column: 2; }
  .wi-arrow { display: none; }
}

/* ---------------------------------------------------------------- Media */
.media { position: relative; }
.media .frame { position: relative; aspect-ratio: var(--ratio, 16/9); background: var(--night); overflow: hidden; }
.media .frame img, .media .frame video { width: 100%; height: 100%; object-fit: cover; }
.media figcaption { margin-top: 9px; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.4; }
.vid-toggle { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: rgba(6, 12, 48, 0.72); display: grid; place-items: center; opacity: 0; transition: opacity var(--dur-1); }
.vid-toggle span { width: 8px; height: 10px; border-inline: 2.5px solid #fff; }
.vid-toggle.is-paused span { width: 0; height: 0; border: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.vid-toggle { opacity: 1; }
.no-js .vid-toggle { display: none; }
.diagram, .frames, .phone { position: relative; }

.offline {
  aspect-ratio: var(--ratio, 16/9); width: 100%; background: var(--black); color: var(--on-night);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; padding: 20px;
  background-image: linear-gradient(135deg, transparent 49.6%, rgba(255, 61, 23, 0.16) 49.6% 50.4%, transparent 50.4%), linear-gradient(45deg, transparent 49.6%, rgba(255, 61, 23, 0.16) 49.6% 50.4%, transparent 50.4%);
}
.offline-flag { font-family: var(--f-mono); font-size: var(--fs-s); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); background: var(--black); padding: 2px 8px; }
.offline-title { font-weight: 650; font-size: clamp(15px, 1.4vw, 19px); background: var(--black); padding: 0 8px; }
.offline-file { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--on-night-2); background: var(--black); padding: 0 8px; }
.offline-reason { font-size: var(--fs-s); line-height: 1.45; color: var(--on-night-2); max-width: 40ch; background: var(--black); padding: 2px 8px; }
.in-monitor .offline-reason { display: none; }

.phone { width: min(100%, 270px); }
.phone-body { border: 9px solid #26252a; border-radius: 34px; background: #000; overflow: hidden; box-shadow: 0 0 0 1px #3a393f; }
.phone-screen { aspect-ratio: 393 / 850; overflow-y: auto; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }
.phone-screen img { width: 100%; height: auto; }
/* K34: the long capture scrolls by hand (wheel, touch, keyboard); no auto-pan on hover. */

.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: var(--ink); padding: 3px; }
.frames figure { background: #000; }
.frames img { width: 100%; height: auto; aspect-ratio: 500 / 192; object-fit: cover; }
.frames figcaption { font-family: var(--f-mono); font-size: var(--fs-2xs); color: var(--on-night-2); padding: 4px 6px; }
.frames-mini { grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* Motion track: the build, frame by frame, big enough to read. The hero plays it. */
.frames-mini figcaption { padding: 3px 4px; font-size: 9px; }
@media (max-width: 600px) { .frames-mini { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- Diagrams */
.diagram { border: 1px solid var(--ink); background: var(--paper); padding: clamp(14px, 2vw, 24px); display: grid; gap: 18px; }
.diagram figcaption { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.dia-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.dia-head span:last-child { color: var(--ink-3); }
.dia-families { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 3px; }
.dia-families span { font-family: var(--f-mono); font-size: 9.5px; text-align: center; padding: 10px 0; background: var(--paper-2); color: var(--ink-2); }
.dia-families em { grid-column: 1 / -1; font-style: normal; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.dia-tiers { display: grid; grid-template-columns: 2fr 3fr 5fr; gap: 3px; }
.tier { padding: 14px 12px 16px; display: grid; gap: 6px; align-content: start; min-height: 110px; }
.tier b { font-size: var(--fs-md); font-weight: 700; }
.tier span { font-size: var(--fs-s); line-height: 1.4; }
.t1 { background: var(--ink); color: var(--paper); }
.t2 { background: var(--ink-mid); color: var(--paper); }
.t3 { background: var(--paper-2); }
.dia-lane { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.dia-lane li { font-family: var(--f-mono); font-size: var(--fs-xs); padding: 5px 9px; border: 1px solid var(--ink); position: relative; }
.dia-lane li:nth-child(5) { border-color: var(--ink); border-width: 2px; font-weight: 600; }
.dia-lane li + li::before { content: "→"; position: absolute; left: -11px; color: var(--ink-3); font-size: var(--fs-2xs); top: 5px; }
.dia-lane li + li { margin-left: 10px; }
@media (max-width: 600px) { .dia-families { grid-template-columns: repeat(7, 1fr); } .dia-tiers { grid-template-columns: 1fr; } .tier { min-height: 0; } }

.flow-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.flow-tag { font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 6px; }
.flow-row ol { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.flow-row li { font-family: var(--f-mono); font-size: var(--fs-xs); padding: 5px 9px; border: 1px solid var(--ink); position: relative; }
.flow-row li + li::before { content: "→"; position: absolute; left: -13px; top: 5px; font-size: var(--fs-2xs); color: var(--ink-3); }
.is-before li { color: var(--ink-3); border-color: var(--ink-3); border-style: dashed; }
.is-before .repeat { border: 0; color: var(--ink); font-weight: 600; }
.is-before .repeat::before { content: none !important; }
.flow-row .hot { background: var(--ink); color: var(--paper); }

.os-in { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.os-quote { font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; line-height: 1.4; }
.os-arrow { font-size: 26px; color: var(--ink); }
.os-tables { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.os-tables div { background: var(--paper-2); padding: 12px; display: grid; gap: 4px; }
.os-tables div:nth-child(3) { background: var(--ink); color: var(--paper); }
.os-tables b { font-size: var(--fs-sm); }
.os-tables span { font-family: var(--f-mono); font-size: var(--fs-2xs); opacity: 0.8; }
@media (max-width: 600px) { .os-tables { grid-template-columns: 1fr 1fr; } }

/* Brand color map demo */
.dia-controls { --c1: #2B2BE0; --c2: #F2C14E; --c3: #F25C54; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); align-items: start; }
.dia-controls figcaption { grid-column: 1 / -1; }
.ctl-panel { --ae-bg: #232323; --ae-raised: #2f2f2f; --ae-hover: #3a3a3a; --ae-text: #d8d8d8; --ae-dim: #9a9a9a; --ae-value: #6fb2ff; background: var(--ae-bg); color: var(--ae-text); font-family: var(--f-mono); font-size: var(--fs-xs); border: 1px solid #000; }
.ctl-head { display: flex; justify-content: space-between; padding: 7px 9px; background: var(--ae-raised); color: var(--ae-dim); border-bottom: 1px solid #000; gap: 8px; }
.ctl-rows { padding: 6px 9px; display: grid; gap: 7px; }
.ctl-rows div { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; }
.ctl-rows i { width: 14px; height: 14px; border: 1px solid #000; transition: background var(--dur-3) var(--ease); }
.ctl-rows code { color: var(--ae-value); font-family: inherit; }
.ctl-presets { display: grid; gap: 4px; padding: 8px 9px 10px; border-top: 1px solid #000; }
.ctl-presets button { text-align: left; background: var(--ae-raised); border: 1px solid #000; color: var(--ae-text); font-family: var(--f-mono); font-size: var(--fs-xs); padding: 7px 8px; min-height: 32px; }
.ctl-presets button:hover { background: var(--ae-hover); }
.ctl-presets button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.no-js .ctl-presets { display: none; }
.comps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.comp-mini, .comps > div { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c1); transition: background var(--dur-3) var(--ease); }
.comps b, .comps i { position: absolute; display: block; transition: background var(--dur-3) var(--ease); }
.comps span { position: absolute; left: 4px; bottom: 4px; font-family: var(--f-mono); font-size: 8.5px; line-height: 1; padding: 2px 3px; color: #fff; background: rgba(0, 0, 0, 0.72); }
.c-title b { left: 10%; top: 26%; width: 56%; height: 18%; background: var(--c2); }
.c-title i { left: 10%; height: 5%; background: var(--c3); }
.c-title i:nth-of-type(1) { top: 52%; width: 40%; } .c-title i:nth-of-type(2) { top: 62%; width: 26%; background: var(--c2); }
.comps .c-lower { background: #6b6862; }
.c-lower b { left: 6%; bottom: 18%; width: 62%; height: 18%; background: var(--c1); }
.c-lower i { left: 6%; bottom: 18%; width: 3%; height: 18%; background: var(--c3); }
.comps .c-social { background: var(--c2); }
.c-social b { left: 50%; top: 50%; width: 44%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--c3); }
.c-social i { left: 50%; top: 50%; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); background: var(--c1); }
.comps .c-end { background: #efece6; }
.c-end b { left: 50%; top: 42%; width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%); background: var(--c1); }
.c-end i { left: 30%; top: 66%; width: 40%; height: 5%; background: var(--c3); }
.comps .c-promo { background: repeating-linear-gradient(-45deg, var(--c1) 0 14px, var(--c2) 14px 28px); }
.c-promo b { left: 20%; top: 30%; width: 60%; height: 40%; background: var(--c3); }
.c-promo i { left: 28%; top: 44%; width: 44%; height: 12%; background: var(--c1); }
.comps .c-ui { background: #d9d5cd; }
.c-ui b { left: 8%; top: 12%; width: 84%; height: 14%; background: var(--c1); }
.c-ui i { left: 8%; width: 38%; top: 34%; height: 50%; background: #fff; }
.c-ui i:nth-of-type(2) { left: 50%; width: 42%; background: var(--c3); }
@media (max-width: 600px) { .dia-controls { grid-template-columns: 1fr; } .comps { grid-template-columns: repeat(2, 1fr); } }

.var-row { display: grid; grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 2fr); gap: 12px; align-items: center; }
.var-master { aspect-ratio: 9 / 16; max-height: 180px; background: var(--ink); color: var(--paper); display: grid; place-items: end start; padding: 8px; font-family: var(--f-mono); font-size: var(--fs-2xs); }
.var-arrow { font-size: 22px; color: var(--ink-3); }
.var-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.var-grid li { aspect-ratio: 9 / 16; background: var(--paper-2); font-family: var(--f-mono); font-size: 9px; display: grid; place-items: end start; padding: 4px; color: var(--ink-2); }
.var-grid .keep { background: var(--ink); color: var(--paper); }
.var-grid .drop { background: transparent; border: 1px dashed var(--ink-3); color: var(--ink-3); }
.var-loop { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--f-mono); font-size: var(--fs-xs); border-top: 1px solid var(--rule); padding-top: 12px; }
.var-loop span[aria-hidden] { color: var(--ink-3); font-size: var(--fs-ui); }

/* ---------------------------------------------------------------- Principles */
.principle { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--gap); padding: var(--space-stack) 0; border-bottom: 1px solid var(--rule); }
.principle-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px clamp(24px, 4vw, 64px); align-items: start; }
.principle-n { font-family: var(--f-mono); font-size: var(--fs-s); color: var(--ink-3); padding-top: 0.6em; }
.principle-title { font-size: var(--fs-d3); grid-row: span 2; }
.principle-body { color: var(--ink-2); max-width: 60ch; }
.receipt { justify-self: start; font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-top: 6px; }
@media (max-width: 900px) { .principle { grid-template-columns: 36px minmax(0, 1fr); } .principle-main { grid-template-columns: 1fr; } .principle-title { grid-row: auto; } }

/* ---------------------------------------------------------------- Credits + timeline */
.band-ink { background: var(--night); color: var(--on-night); margin-top: var(--space-section); padding-bottom: clamp(56px, 8vw, 110px); }
.band-ink .sec-head { border-color: var(--on-night); padding-top: var(--space-block); }
.band-ink .sec-num { color: var(--on-night-2); }
.band-ink .sec-aside { color: var(--on-night-2); }
.ruler { --lab: 84px; position: relative; margin-top: clamp(28px, 4vw, 48px); padding-bottom: 22px; }
.ruler-ticks { position: relative; height: 26px; margin-left: var(--lab); }
.tick { position: absolute; top: 0; width: 1px; height: 6px; background: var(--on-night-2); }
.tick.major { height: 10px; background: var(--on-night); }
.tick b { position: absolute; top: 11px; left: 0; transform: translateX(-50%); font-family: var(--f-mono); font-size: var(--fs-2xs); font-weight: 400; color: var(--on-night-2); }
.track { display: grid; grid-template-columns: var(--lab) 1fr; align-items: center; height: 26px; }
.track + .track { border-top: 1px dashed rgba(239, 236, 230, 0.15); }
.track-label { font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-2); }
.track-lane { position: relative; height: 100%; }
.bar { position: absolute; top: 5px; height: 16px; background: var(--on-night); overflow: hidden; border-right: 1px solid var(--night); }
.bar i { display: block; font-style: normal; font-family: var(--f-mono); font-size: 9.5px; line-height: 16px; color: var(--night); padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar.thin { top: 11px; height: 4px; background: repeating-linear-gradient(90deg, var(--on-night-2) 0 6px, transparent 6px 9px); }
.bar.thin i { display: none; }
.bar.live { background: var(--on-night); }
.ruler-overlay { position: absolute; top: 0; bottom: 0; left: var(--lab); right: 0; pointer-events: none; }
.now { position: absolute; top: 0; bottom: 0; border-left: 1.5px solid var(--on-night); }
.now::before { content: ""; position: absolute; top: -5px; left: -6.5px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.now span { position: absolute; bottom: 0; left: -11px; font-family: var(--f-mono); font-size: var(--fs-2xs); color: var(--on-night); }
@media (max-width: 760px) { .ruler { --lab: 52px; } .bar i { display: none; } .tick.major:nth-child(4n+3) b { display: none; } }

.credits { padding-top: clamp(28px, 4vw, 56px); display: grid; gap: clamp(26px, 3vw, 40px); }
.credit { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 64px); row-gap: 4px; grid-template-areas: "years role" "org scope"; }
.credit-years { grid-area: years; text-align: end; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--on-night-2); letter-spacing: 0.06em; }
.credit-org { grid-area: org; text-align: end; font-size: var(--fs-d4); }
.credit-role { grid-area: role; font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-night); }
.credit-scope { grid-area: scope; color: var(--on-night-2); max-width: 52ch; font-size: var(--fs-md); }
@media (max-width: 700px) {
  .credit { grid-template-columns: 1fr; grid-template-areas: "years" "org" "role" "scope"; }
  .credit-years, .credit-org { text-align: start; }
  .credit-role { margin-top: 6px; }
}

/* ---------------------------------------------------------------- Lab */
.chip { display: inline-block; font-family: var(--f-mono); font-size: var(--fs-2xs); font-weight: 500; letter-spacing: 0.1em; line-height: 1; padding: 5px 7px 4px; border: 1px solid var(--ink); white-space: nowrap; }
.chip[data-status="IN USE"] { background: var(--ink); color: var(--paper); }
.chip[data-status="PROTOTYPE"] { border-style: dashed; }
.chip[data-status="EVALUATION"] { border-style: dashed; color: var(--ink-2); }
.lab-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding-top: 28px; }
.lab-mini li { display: grid; gap: 8px; align-content: start; justify-items: start; border-top: 1px solid var(--ink); padding-top: 14px; }
.lab-mini b { font-size: 1.05rem; line-height: 1.15; font-weight: 700; }
.lab-mini li > span:last-child { color: var(--ink-2); font-size: var(--fs-sm); }
.legend-status { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: var(--fs-sm); color: var(--ink-2); }
.legend-status li { display: flex; gap: 10px; align-items: center; }
.lab-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--gap); padding: 40px 0; }
.lab-item { border: 1px solid var(--ink); padding: 18px 18px 22px; display: grid; gap: 14px; align-content: start; background: var(--paper); }
.lab-item header { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.lab-year { margin-inline-start: auto; }
.lab-name { font-size: 1.55rem; }
.lab-name a { text-decoration: none; }
.lab-item dl { display: grid; gap: 10px; }
.lab-item dt { font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.lab-item dd { font-size: var(--fs-md); color: var(--ink-2); }
.lab-note dt { color: var(--ink-3); }
.lab-disclaimer p { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.35; max-width: 40ch; padding: 24px 0 48px; border-top: 1px solid var(--ink); }
.entry-cta { font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; justify-self: start; }

/* ---------------------------------------------------------------- Archive */
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding-top: 32px; }
.archive-list { padding: 40px 0 24px; max-width: 70ch; }
.archive-list h3 { font-size: 1.3rem; margin-bottom: 10px; }
.archive-list p { color: var(--ink-2); }
@media (max-width: 760px) { .archive-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Pages */
.page-head { padding-top: clamp(40px, 7vw, 112px); padding-bottom: clamp(24px, 4vw, 48px); }
.page-title { margin-top: 18px; font-size: var(--fs-d1); max-width: 16ch; }
.page-lede { margin-top: 24px; font-size: var(--fs-lead); line-height: 1.45; max-width: 46ch; color: var(--ink-2); }

.crumbs { font-family: var(--f-mono); font-size: var(--fs-s); color: var(--ink-3); margin-bottom: 26px; }
.crumbs a { text-decoration: none; border-bottom: 1px solid currentColor; }
.case-head { padding-top: clamp(32px, 6vw, 96px); }
.case-title { margin: 16px 0 0; font-size: var(--fs-d1); max-width: 15ch; }
.case-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); margin-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--ink); }
.case-lede { font-size: var(--fs-lead); line-height: 1.45; color: var(--ink); max-width: 46ch; }
.facts { display: grid; gap: 14px; align-content: start; }
.facts div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.facts dt { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.facts dd { font-size: var(--fs-md); }
@media (max-width: 860px) { .case-intro { grid-template-columns: 1fr; } }
.case-cover { padding-top: clamp(28px, 4vw, 56px); }
.case-cover .media .frame { max-height: 78vh; }
.case-cover .frame video, .case-cover .frame img { object-fit: contain; }

.case-sec { display: grid; grid-template-columns: 64px minmax(0, 1fr) var(--notes-w); gap: var(--gap) clamp(24px, 3vw, 48px); padding-top: var(--space-block); }
.case-sec .sec-num { padding-top: 0.9em; }
.case-main { min-width: 0; display: grid; gap: 24px; align-content: start; }
.case-h { font-size: var(--fs-d3); max-width: 22ch; }
.prose { display: grid; gap: 1em; }
.prose p { font-size: 1.1rem; line-height: 1.62; max-width: 64ch; color: var(--ink-body); }
.case-media { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.case-media.is-phone { grid-template-columns: minmax(0, 270px) minmax(0, 1fr); align-items: center; }
@media (max-width: 860px) {
  .case-sec { grid-template-columns: minmax(0, 1fr); }
  .case-sec .sec-num { padding: 0; }
  .case-media.is-phone { grid-template-columns: 1fr; }
  .frames { grid-template-columns: repeat(2, 1fr); }
}

/* Production notes: margin notes, always on. Decisions, credits, status. */
.notes { padding-top: 0.9em; }
.note { font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); border-inline-start: 2px solid var(--ink); padding-block: 2px; padding-inline: 12px 0; margin: 0 0 16px; max-width: 46ch; }
.note-kind { display: block; font-family: var(--f-mono); font-size: var(--fs-2xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 3px; color: var(--ink-3); }
.note a { color: inherit; }
@media (max-width: 860px) { .notes { padding-top: 0; } }

.case-ledger { padding-top: clamp(56px, 7vw, 112px); }
/* Template A/B (handoff 2026-11-05): what was delivered, the status when there is one, then the credits, once. */
.case-out { padding-top: clamp(56px, 7vw, 112px); display: grid; gap: 14px; }
.case-out > * { max-width: 900px; }
.case-k { font-family: var(--f-mono); font-size: var(--fs-s); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.case-k:not(:first-child) { margin-top: 22px; }
.case-outcome { font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; }
.case-status b { font-weight: 650; margin-inline-end: 8px; }
.case-credits { color: var(--ink-2); display: grid; gap: 4px; }
.case-credits li::before { content: "– "; color: var(--ink-3); }
/* The decision, next to the work it explains. An ink rule: orange stays the point, never a line. */
.decision { margin-top: 22px; padding-inline-start: 16px; border-inline-start: 2px solid var(--ink); display: grid; gap: 6px; max-width: 60ch; font-size: var(--fs-lead); line-height: 1.45; }
.decision-k { font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.frames-fig { margin: 0; }
.frames-fig > figcaption { margin-top: 8px; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.os-label { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger caption { text-align: start; display: grid; gap: 6px; padding-bottom: 18px; }
/* The rule sits on the first row, not the caption: a grid caption does not span the table in every browser. */
.ledger tr:first-child > * { border-top: 1px solid var(--ink); }
.ledger-sub { color: var(--ink-2); font-size: var(--fs-md); }
.ledger th, .ledger td { padding: 13px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.ledger-not { margin: 14px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); max-width: 70ch; }
.ledger th { text-align: start; font-weight: 500; font-size: var(--fs-ui); padding-inline-end: 20px; }
.ledger td { text-align: end; white-space: nowrap; }
.state { font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 7px 3px; border: 1px solid var(--ink); }
.is-shipped .state { background: var(--ink); color: var(--paper); }
.is-ongoing .state { border-style: dashed; }

.next { padding-top: clamp(64px, 8vw, 128px); }
.next > a { display: grid; gap: 10px; text-decoration: none; border-top: 1px solid var(--ink); padding: 28px 0 8px; }
.next b { font-size: var(--fs-d2); transition: color var(--dur-1); }
.next > a:hover { color: var(--ink); }
.next > a:hover b { color: var(--ink-2); }
.next span:last-child { color: var(--ink-2); }


/* ---------------------------------------------------------------- System page */
.sys .sec-head { padding-top: var(--space-block); }
.sys-h { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin: 28px 0 12px; }
.sys code { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-2); }
.sys-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; padding-top: 24px; }
.sys-swatches li { display: grid; gap: 6px; }
.sys-swatches span:not(.sys-sw) { font-size: var(--fs-sm); color: var(--ink-3); }
.sys-sw { height: 64px; border: 1px solid var(--rule); }
.sys-type li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.sys-type:first-of-type { padding-top: 16px; }
.sys-display { font-weight: var(--display-w); font-stretch: var(--display-wdth); letter-spacing: var(--display-track); line-height: var(--display-lh); }
.sys-title { font-weight: var(--title-w); font-stretch: var(--title-wdth); letter-spacing: var(--title-track); line-height: var(--title-lh); }
.sys-space li { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; padding: 10px 0; }
.sys-space span { display: block; height: 14px; background: var(--ink); }
.sys-motion li { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 4px 16px; padding: 16px 0 40px; border-bottom: 1px solid var(--rule); }
.sys-motion span { font-size: var(--fs-sm); color: var(--ink-2); }
.sys-motion i { position: absolute; left: 196px; bottom: 12px; width: 16px; height: 16px; background: var(--ink); transition: transform var(--d, 0.9s) var(--e, var(--ease-out)); }
.sys-motion li:hover i { transform: translateX(min(60vw, 520px)); }
.sys-comps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; padding-top: 8px; }
.sys-comps .sys-wide { grid-column: 1 / -1; }
.sys-comps .notes { padding-top: 0; }
.sys-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sys .media.is-offline { max-width: 560px; }
@media (max-width: 760px) { .sys-type li, .sys-space li, .sys-motion li { grid-template-columns: 1fr; } .sys-motion i { left: 0; } .sys-comps { grid-template-columns: 1fr; } }

.sys-why { display: grid; padding-top: 8px; }
.sys-why li { display: grid; grid-template-columns: 180px 260px minmax(0, 1fr); gap: 8px 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.sys-why span { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.sys-why b { font-size: var(--fs-ui); font-weight: 700; }
.sys-why p { color: var(--ink-2); max-width: 64ch; }
@media (max-width: 860px) { .sys-why li { grid-template-columns: 1fr; } }
.sys-mark { display: grid; grid-template-columns: auto 1fr; gap: 40px 64px; align-items: end; padding-top: 32px; }
.sys-mark figure { display: grid; gap: 14px; }
.sys-mark figcaption { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); max-width: 44ch; }
.sys-mark-word .wordmark { width: 100%; max-width: 720px; height: auto; fill: var(--ink); }
.sys-mark-hero .mark { color: var(--ink); }
.sys-mark-hero .mark .mk-dot { fill: var(--red); }
.sys-kit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--ink); padding-top: 24px; }
.sys-kit li { display: grid; gap: 10px; align-content: end; }
.sys-kit svg { height: 72px; width: auto; fill: var(--ink); }
.sys-kit li:last-child svg { fill: var(--red); height: 40px; }
.sys-kit span { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-2); }
@media (max-width: 760px) { .sys-mark { grid-template-columns: 1fr; } .sys-kit { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- Footer / contact */
/* When a page ends on the credits band, contact follows on the same navy: end credits, then the call. */
main:has(> .band-ink:last-child) + .site-footer { margin-top: 0; }
main:has(> .band-ink:last-child) + .site-footer .grid { border-top: 1px solid rgba(239, 236, 230, 0.22); }
.site-footer { background: var(--night); color: var(--on-night); margin-top: clamp(80px, 10vw, 160px); }
.site-footer .grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 48px); padding-top: clamp(48px, 7vw, 112px); padding-bottom: clamp(48px, 6vw, 88px); }
.site-footer .eyebrow, .site-footer .mark { color: var(--on-night); }
.contact-title { margin-top: 14px; font-size: var(--fs-d2); max-width: 12ch; }
.contact-lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 38ch; }
.contact-body { align-self: end; display: grid; gap: 22px; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer .btn { border-color: var(--on-night); color: var(--on-night); }
.site-footer .btn-solid { background: var(--on-night); color: var(--ink); }
.site-footer .btn-solid:hover { background: transparent; color: var(--on-night); }
.site-footer .btn-ghost:hover { background: var(--on-night); color: var(--ink); }
.contact-links { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--f-mono); font-size: var(--fs-s); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-links a:hover { color: var(--on-night-2); }
.site-footer .tk { background: transparent; color: var(--on-night); border: 1px dashed var(--on-night-2); font-size: 0.9em; }
.footer-bar { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 16px; padding-bottom: 22px; border-top: 1px solid rgba(239, 236, 230, 0.22); font-family: var(--f-mono); font-size: var(--fs-xs); }
.footer-build { margin-inline-start: auto; }
.footer-sign { display: inline-flex; align-items: center; gap: 8px; }
.no-js .copy { display: none; }
@media (max-width: 960px) { .site-footer .grid { grid-template-columns: 1fr; } .footer-build { margin-inline-start: 0; } }

/* ---------------------------------------------------------------- Reveal on scroll
   Quiet by design: rows settle, section titles wipe up out of a mask. */
/* Reveal on scroll removed (handoff K33). */

/* Page to page: the old page steps back, the new one wipes up. Browsers without
   cross-document view transitions simply navigate. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: 0.32s var(--ease-in) both vt-out; }
::view-transition-new(root) { animation: 0.6s var(--ease-out) 0.08s both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); transform: translateY(24px); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
}
@media print { .site-header, .vid-toggle, .monitor-btns { display: none !important; } .site-footer { background: none; } }
.case-media .is-offline { max-width: 560px; }

/* ---------------------------------------------------------------- Creative Technology Lab
   Scoped to .lx-*. Built from the site's tokens, chips, buttons and display recipes; no new palette.
   Status is shape, not color: solid = working, line = demo, dashed = unfinished, dotted = idea. */
.lx-status { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: var(--fs-2xs); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--ink); color: var(--ink); white-space: nowrap; }
.lx-status[data-s="WORKING"] { background: var(--ink); color: var(--paper); }
.lx-status[data-s="INTERACTIVE_DEMO"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lx-status[data-s="PROTOTYPE"], .lx-status[data-s="IN_DEVELOPMENT"] { border-style: dashed; }
.lx-status[data-s="IN_DEVELOPMENT"], .lx-status[data-s="CONCEPT"] { color: var(--ink-2); border-color: var(--ink-3); }
.lx-status[data-s="CONCEPT"] { border-style: dotted; }
.lx-tally { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 22px 0 0; font-size: var(--fs-sm); }
.lx-tally li { display: flex; gap: 8px; align-items: center; }
.lx { padding-bottom: var(--space-block); }
.lx-search { margin: 8px 0 28px; }
.lx-search-label { display: block; font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.lx-search-row { display: flex; align-items: center; border-bottom: 2px solid var(--ink); }
.lx-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: var(--fs-d4); font-weight: var(--title-w); font-stretch: var(--title-wdth); letter-spacing: var(--title-track); color: var(--ink); padding: 10px 0; }
.lx-search input::placeholder { color: var(--ink-3); opacity: 1; }
.lx-search input:focus { outline: none; }
.lx-search-row:focus-within { box-shadow: 0 2px 0 var(--ink); }
.lx-search input::-webkit-search-cancel-button { display: none; }
.lx-clear { border: 1px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 10px; cursor: pointer; }
.lx-layout { display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.lx-filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; border-top: 1px solid var(--ink); }
.lx-filters summary { font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.06em; text-transform: uppercase; padding: 12px 0; cursor: pointer; }
.lx-filter-body { display: grid; gap: 22px; padding-bottom: 16px; }
.lx-group { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.lx-group legend { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: 0 0 6px; }
.lx-check { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); cursor: pointer; }
.lx-check input { accent-color: var(--ink); width: 16px; height: 16px; }
.lx-n { font-family: var(--f-mono); font-size: var(--fs-2xs); color: var(--ink-3); }
.lx-mode { display: grid; gap: 4px; font-size: var(--fs-sm); margin-bottom: 4px; }
.lx-mode input { accent-color: var(--ink); }
.lx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-chip { font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.04em; padding: 5px 8px; border: 1px solid var(--rule); background: transparent; color: var(--ink); cursor: pointer; }
.lx-chip:hover { border-color: var(--ink); }
.lx-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lx-chip[aria-pressed="true"] .lx-n { color: var(--on-night-2); }
.lx-hint { font-size: var(--fs-xs); color: var(--ink-3); margin: 4px 0 0; }
.lx-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--ink); padding: 12px 0; }
.lx-count { margin: 0; font-family: var(--f-mono); font-size: var(--fs-s); }
.lx-sort { font-family: var(--f-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; display: flex; gap: 8px; align-items: center; }
.lx-sort select { font: inherit; text-transform: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 4px 6px; }
.lx-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lx-card a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; height: 100%; padding: 16px; border: 1px solid var(--ink); text-decoration: none; color: var(--ink); transition: background var(--dur-1), color var(--dur-1); }
.lx-card a:hover, .lx-card a:focus-visible { background: var(--ink); color: var(--paper); }
.lx-card a:hover .lx-status, .lx-card a:focus-visible .lx-status { border-color: var(--paper); color: var(--paper); }
.lx-card-top { display: flex; align-items: center; gap: 8px; }
.lx-id, .lx-type { font-family: var(--f-mono); font-size: var(--fs-2xs); color: inherit; opacity: 0.75; }
.lx-type { margin-inline-start: auto; }
.lx-prev { display: block; aspect-ratio: 16 / 9; margin-bottom: 4px; }
.lx-prev-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lx-prev-svg .s { fill: none; stroke: currentColor; stroke-width: 1.5; }
.lx-prev-svg .fr { stroke-opacity: 0.35; }
.lx-prev-svg .ln { stroke-opacity: 0.3; }
.lx-prev-svg .dim { stroke-opacity: 0.4; }
.lx-prev-svg .bg { fill: var(--paper); }
.lx-card a:hover .lx-prev-svg .bg, .lx-card a:focus-visible .lx-prev-svg .bg { fill: var(--ink); }
.lx-prev-svg .f { fill: currentColor; }
.lx-prev-svg .m { fill: currentColor; opacity: 0.2; }
.lx-prev-svg .a { fill: var(--track); }
.lx-prev-svg .as { fill: none; stroke: var(--track); stroke-width: 2; }
.lx-prev-svg .t { fill: currentColor; font-family: var(--f-mono); font-size: 12px; }
.lx-prev-svg .sm { font-size: 10px; }
.lx-prev-svg .big { font-family: var(--f-sans); font-weight: 800; font-size: 26px; }
.lx-title { font-size: var(--fs-d4); font-weight: var(--title-w); font-stretch: var(--title-wdth); letter-spacing: var(--title-track); line-height: var(--title-lh); }
.lx-sub { font-size: var(--fs-sm); line-height: 1.45; }
.lx-meta { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-xs); opacity: 0.85; flex-wrap: wrap; }
.lx-avail { font-family: var(--f-mono); }
.lx-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lx-tags i { font-style: normal; font-family: var(--f-mono); font-size: var(--fs-2xs); border: 1px solid currentColor; padding: 1px 5px; opacity: 0.7; }
.lx-empty { border: 1px dashed var(--ink-3); padding: 24px; display: grid; gap: 12px; justify-items: start; }
.lx-empty p { margin: 0; }
@media (max-width: 960px) {
  .lx-layout { grid-template-columns: 1fr; }
  .lx-filters { position: static; max-height: none; }
}
/* Detail */
.lx-oneliner { font-size: var(--fs-lead); line-height: 1.4; max-width: 40ch; margin: 18px 0 0; }
.lx-statusbox { margin: 24px 0 0; padding: 14px 16px; border-inline-start: 2px solid var(--ink); display: grid; gap: 6px; justify-items: start; max-width: 70ch; }
.lx-statusbox p { margin: 0; font-size: var(--fs-sm); }
.lx-evidence { color: var(--ink-3); }
.lx-facts { margin-top: 28px; max-width: 760px; }
.lx-detail-tags { margin-top: 18px; }
.lx-detail-tags a { color: inherit; text-decoration: none; font-family: var(--f-mono); font-size: var(--fs-2xs); }
.lx-sec { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--gap); padding-top: var(--space-block); }
.lx-sec-main { max-width: 820px; display: grid; gap: 14px; }
.lx-sec-main p { margin: 0; }
.lx-h3 { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 8px 0 0; }
.lx-list { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; }
.lx-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
.lx-flow li { padding: 14px; font-size: var(--fs-sm); display: grid; gap: 6px; align-content: start; }
.lx-flow li + li { border-inline-start: 1px solid var(--rule); }
.lx-flow span { font-family: var(--f-mono); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.lx-demo-note { font-size: var(--fs-sm); color: var(--ink-2); }
.lx-demo { border: 1px solid var(--ink); min-height: 120px; }
.lx-demo-loading { padding: 16px; font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink-3); }
.lx-downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lx-downloads li { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.lx-dl-meta { font-size: var(--fs-xs); color: var(--ink-2); }
.lx-dl-meta code { font-family: var(--f-mono); font-size: var(--fs-2xs); word-break: break-all; }
.lx-tests { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
.lx-tests b { font-family: var(--f-mono); font-size: var(--fs-2xs); text-transform: uppercase; padding: 1px 5px; border: 1px solid var(--ink); margin-inline-end: 6px; }
.lx-tests [data-r="pass"] b { background: var(--ink); color: var(--paper); }
.lx-tests [data-r="pending"] b { border-style: dashed; }
.lx-tests span { color: var(--ink-3); font-size: var(--fs-xs); }
.lx-related { padding-top: var(--space-block); display: grid; gap: 12px; }
.lx-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.lx-related li a { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; flex-wrap: wrap; }
.lx-related li span { color: var(--ink-2); font-size: var(--fs-sm); }
.lx-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.lab-mini a { color: inherit; text-decoration: none; display: grid; gap: 4px; }
@media (max-width: 760px) { .lx-sec { grid-template-columns: 1fr; } .lx-flow { grid-template-columns: 1fr; } .lx-flow li + li { border-inline-start: 0; border-top: 1px solid var(--rule); } }
/* Lab demos: shared demo frame (dx-*). */
.dx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dx > * { padding: 16px; }
.dx-in { border-right: 1px solid var(--rule); display: grid; gap: 10px; align-content: start; }
.dx-label { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.dx textarea, .dx input[type=text], .dx select { width: 100%; font: inherit; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); padding: 10px; }
.dx textarea:focus, .dx input:focus, .dx select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.dx-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dx-hint { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }
.dx-out { display: grid; gap: 18px; align-content: start; }
.dx-empty { color: var(--ink-3); font-size: var(--fs-sm); margin: 0; }
.dx-proj h3 { margin: 0 0 8px; font-size: var(--fs-ui); }
.dx-proj ul { margin: 0; padding-left: 1em; font-size: var(--fs-sm); display: grid; gap: 4px; }
.dx-items { list-style: none; padding: 0 !important; }
.dx-kind { font-family: var(--f-mono); font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 10px 0 4px; }
.dx-state { font-family: var(--f-mono); font-size: var(--fs-2xs); text-transform: uppercase; padding: 1px 5px; border: 1px solid var(--ink); }
.dx-state[data-st="done"] { background: var(--ink); color: var(--paper); }
.dx-state[data-st="waiting"], .dx-state[data-st="open"] { border-style: dashed; }
.dx-corr { font-family: var(--f-mono); font-size: var(--fs-2xs); color: var(--ink-3); font-style: normal; }
.dx-log { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
.dx-log ol { margin: 0; padding-left: 2.4em; font-family: var(--f-mono); font-size: var(--fs-xs); display: grid; gap: 3px; color: var(--ink-2); }
.dx-log b { font-weight: 500; color: var(--ink); text-transform: uppercase; }
.dx-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
/* One column whenever the demo itself is narrow (a phone, or the side column on desktop). It used to be a media
   query written before .dx-wide, which then put the two columns back on phones (audit F04). */
.lx-demo { container-type: inline-size; }
.dx-in, .dx-out { min-width: 0; overflow-wrap: anywhere; }
.dx-table { display: block; max-width: 100%; overflow-x: auto; }
@container (max-width: 700px) {
  .dx, .dx-wide { grid-template-columns: minmax(0, 1fr); }
  .dx-in { border-right: 0; border-bottom: 1px solid var(--rule); }
  .dx-variants { grid-template-columns: 1fr 1fr; } .dx-var:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) { .dx, .dx-wide { grid-template-columns: minmax(0, 1fr); } .dx-in { border-right: 0; border-bottom: 1px solid var(--rule); } }
.dx-table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.dx-table th { text-align: left; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); padding: 4px 6px 4px 0; border-bottom: 1px solid var(--ink); }
.dx-table td { padding: 4px 6px 4px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.dx-table input { padding: 4px 6px !important; }
.dx-sw { display: inline-block; width: 18px; height: 18px; border: 1px solid var(--rule); vertical-align: middle; }
.dx-warn { margin: 0; padding-left: 1em; font-size: var(--fs-xs); color: var(--ink-2); }
.dx-error { color: var(--ink); border-left: 2px solid var(--ink); padding-left: 8px; margin: 0; font-size: var(--fs-sm); }
.dx-variants { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; align-items: end; }
.dx-var { margin: 0; display: grid; gap: 6px; }
.dx-var img { width: 100%; height: auto; border: 1px solid var(--rule); background: var(--paper-2); }
.dx-var figcaption { font-family: var(--f-mono); font-size: var(--fs-2xs); color: var(--ink-2); display: grid; gap: 2px; }
@media (max-width: 760px) { .dx-variants { grid-template-columns: 1fr 1fr; } .dx-var:first-child { grid-column: 1 / -1; } }
.lx-run { margin: 0; padding: 16px; background: var(--night); color: var(--on-night); font-family: var(--f-mono); font-size: var(--fs-2xs); line-height: 1.6; overflow-x: auto; white-space: pre; }
.lx-run b { color: var(--on-night); font-weight: 500; }
.dx-stack { grid-template-columns: 1fr; }
.dx-stack .dx-in { border-right: 0; border-bottom: 1px solid var(--rule); }
.dx-row { display: flex !important; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.dx-row .dx-label { flex-basis: 100%; margin: 0; }
.dx-field { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); }
/* Webinar Kit: short labels ("Speaker 1", "Role") never break mid-word; the input gives way instead. */
[data-lx-demo="webinar-kit"] .dx-field { white-space: nowrap; }
[data-lx-demo="webinar-kit"] .dx-field input:not([type=number]) { min-width: 0; flex: 1 1 auto; width: 100%; }
.dx-field select { width: auto; }
.dx-counts { font-family: var(--f-mono); font-size: var(--fs-s); margin: 0; }
.dx-state[data-st="used"] { background: var(--ink); color: var(--paper); }
.dx-state[data-st="uncertain"] { border-style: dashed; }
.dx-state[data-st="unused"] { border-style: dotted; color: var(--ink-2); }
.dx-out .dx-table { display: block; overflow-x: auto; }
.dx-slider { display: grid; gap: 4px; font-size: var(--fs-sm); }
.dx-slider span { display: flex; justify-content: space-between; }
.dx-slider output { font-family: var(--f-mono); font-size: var(--fs-xs); }
.dx-slider input { accent-color: var(--ink); width: 100%; }
.dx-stage { width: 100%; height: auto; display: block; background: var(--paper-2); }
.dx-ghost { fill: none; stroke: var(--ink-3); stroke-dasharray: 4 4; stroke-width: 1; }
.dx-pole { fill: var(--ink); }
.dx-flag { fill: var(--v2); }
.dx-ribbon { fill: var(--ink); }
.dx-tree { max-height: 560px; overflow: auto; font-size: var(--fs-sm); }
.dx-tree li { line-height: 1.7; }
.dx-tree summary { cursor: pointer; }
.dx-nest { margin: 2px 0 6px 4px !important; padding-left: 14px !important; border-left: 1px solid var(--rule); }
@media (max-width: 760px) { [data-lx-demo="opportunity-atlas"] [data-board] { grid-template-columns: 1fr !important; } }
.lx-chip[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Lab item page: overview first, the tool beside it, details on demand. */
.lx-head { padding-top: var(--space-block); }
.lx-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; font-size: var(--fs-sm); color: var(--ink-2); }
.lx-overview { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--gap) * 2); align-items: start; padding-top: 40px; }
.lx-ov-text { display: grid; gap: 28px; }
.lx-ov-block { display: grid; gap: 8px; }
.lx-ov-block p { margin: 0; font-size: var(--fs-lead); line-height: 1.45; max-width: 46ch; }
.lx-k { margin: 0; font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.lx-points { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.lx-points li { padding-inline-start: 18px; position: relative; }
.lx-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--track); }
.lx-ov-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.lx-ov-actions:empty { display: none; }
.lx-ov-side { position: sticky; top: 88px; display: grid; gap: 12px; max-height: calc(100vh - 104px); overflow: auto; }
.lx-hero-prev { border: 1px solid var(--ink); padding: 16px; aspect-ratio: 16 / 9; }
.lx-hero-prev .lx-prev-svg { width: 100%; height: 100%; }
.lx-hero-prev .lx-prev-svg .s { stroke-width: 1.2; }
.lx-more-list { display: grid; border-top: 1px solid var(--rule); }
.lx-more { border-bottom: 1px solid var(--rule); }
.lx-more summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.lx-more summary::-webkit-details-marker { display: none; }
.lx-more summary::after { content: "+"; font-family: var(--f-mono); }
.lx-more[open] summary::after { content: "−"; }
.lx-more-body { display: grid; gap: 12px; padding: 0 0 18px; }
.lx-more-body p { margin: 0; }
/* The five labels are explained on demand, so the first cards come sooner (site audit v2: fewer decisions up front). */
.lx-legend-wrap { margin: 20px 0 0; }
.lx-legend-wrap summary { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: var(--fs-sm); color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.lx-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; margin: 16px 0 0; max-width: 1000px; }
.lx-legend div { display: grid; gap: 4px; justify-items: start; }
.lx-legend dd { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.lx-try-link { display: none; }
@media (max-width: 1100px) {
  .lx-overview { grid-template-columns: 1fr; }
  .lx-ov-side { position: static; max-height: none; overflow: visible; order: 2; }
  .lx-try-link { display: inline-flex; }
}

/* Phones: long labels, file names and checksums wrap instead of pushing the page wide (audit F04). */
.lx-downloads .btn { white-space: normal; max-width: 100%; text-align: start; }
.lx-dl-meta, .lx-list li, .lx-more-body { overflow-wrap: anywhere; }
.dx select, .dx input, .dx textarea { max-width: 100%; }
.dx label, .dx-field { min-width: 0; max-width: 100%; }

/* Focus rings stay visible on the dark footer and on inverted cards (audit F05). */
.site-footer :focus-visible { outline-color: var(--on-night); }
.windex .wr > a:focus-visible, .lx-card a:focus-visible { outline-color: var(--ink); outline-offset: 4px; }
/* File pickers: the input stays in the tab order (visually hidden), and its label shows the focus (audit F06). */
label.btn:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.dx-error:empty { display: none; }

/* Home (site audit v2): plain section heads, a "more" link under each short list, the sign-off line. */
.sec-head-plain { grid-template-columns: minmax(0, 1fr); }
.sec-more { margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-grid-home { margin-top: 8px; }
.contact-email { margin: 0 0 16px; font-family: var(--f-mono); font-size: var(--fs-md); color: var(--on-night); user-select: all; }
.lx-scope { margin: 0; padding: 10px 12px; border-inline-start: 3px solid var(--track); background: var(--paper-2); font-size: var(--fs-sm); }

/* ---------------------------------------------------------------- Right to left (Hebrew pages) */
/* Arrows point the way the page reads. */
[dir="rtl"] .arr { display: inline-block; transform: scaleX(-1); }
/* Mirror only: the phone rule that hides the row arrow must still win in Hebrew. */
[dir="rtl"] .wi-arrow { transform: scaleX(-1); }
[dir="rtl"] .windex .wr > a:hover .wi-arrow { transform: scaleX(-1) translateX(4px); }
/* The timeline is a numeric axis and keeps reading left to right. */
[dir="rtl"] .ruler { direction: ltr; }
[dir="rtl"] .ruler .track-label { text-align: left; }
/* Hebrew has no capitals: no uppercase, no wide tracking. */
[dir="rtl"] .eyebrow, [dir="rtl"] .site-nav a, [dir="rtl"] .record th, [dir="rtl"] .lx-tests b { letter-spacing: 0; text-transform: none; }
/* Negative tracking closes up Hebrew word spaces in display sizes. */
[dir="rtl"] :is(h1, h2, h3) { letter-spacing: 0; }
/* A demo button with a long label wraps on a phone instead of widening the page. */
.lx-demo .dx-actions .btn { white-space: normal; text-align: center; }
/* Work page: three lead projects, then the rest (audit 3). */
.wi-group { margin: clamp(40px, 5vw, 64px) 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-family: var(--f-mono); font-size: var(--fs-s); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
[dir="rtl"] .wi-group { letter-spacing: 0; text-transform: none; }
/* A case without real media opens with its illustration, at full width. */
.case-cover.is-diagram .diagram { margin: 0; }
/* Lab: featured tools first, then the full list with search and filters (audit 3). */
.lx-start { padding-bottom: clamp(32px, 4vw, 56px); }
.lx-start .sec-head { margin-bottom: 20px; }
.lx-all-h { margin: 0 0 16px; padding-top: 20px; border-top: 1px solid var(--ink); font-family: var(--f-mono); font-size: var(--fs-s); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
[dir="rtl"] .lx-all-h { letter-spacing: 0; text-transform: none; }


/* ---------------------------------------------------------------- Tools page (handoff 2026-11-05, L01)
   Six selected tools as cards; the other experiments as a plain list with one search box. */
.lx-format { font-weight: 600; }
.lx-more-link { margin-top: auto; padding-top: 6px; font-size: var(--fs-sm); font-weight: 600; }
.lx-arch .lx-search { margin-top: var(--space-stack); }
.lx-arch .lx-count { margin: 14px 0 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.lx-arch-list { border-top: 1px solid var(--ink); }
.lx-arch-list a { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(0, 0.9fr); gap: 6px 24px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.lx-arch-list a:hover b, .lx-arch-list a:focus-visible b { text-decoration: underline; text-underline-offset: 0.18em; }
.lx-arch-list b { font-weight: 650; }
.lx-arch-sub { color: var(--ink-2); font-size: var(--fs-md); }
.lx-arch-meta { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 760px) { .lx-arch-list a { grid-template-columns: 1fr; } }
.lx-featured .lx-meta { display: grid; gap: 2px; justify-items: start; }
@media (min-width: 1000px) { .lx-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Vimeo on Play (MEDIA01): poster first, the player only after the click. */
.vimeo .frame, .linkedin .frame { position: relative; aspect-ratio: var(--ratio); background: var(--black); }
.vimeo .frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.is-playing img, .frame.is-playing .vid-play, .frame.is-playing .li-poster { visibility: hidden; }
.vimeo iframe, .linkedin iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--black); }

/* Footer links: a comfortable hit area, not only the text height (QA 08, item 7). */
.contact-links a { display: inline-block; padding-block: 6px; }

/* M20: the full capture, one click away. M12: a failed video says so over its poster. */
.media-more { margin-top: 6px; font-size: var(--fs-sm); }
.media-error { position: absolute; inset-inline: 12px; bottom: 12px; margin: 0; padding: 8px 10px; background: var(--paper); color: var(--ink); font-size: var(--fs-sm); }

/* UI09: an illustration says what it is. */
.dia-k { font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-inline-end: 6px; }

/* ================================================================ Redesign 2026-11-06: simple pages
   One card for every piece of work (Card/Work in Figma), a short project page, a short About. */
.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; padding-top: 36px; }
.wcard > a { display: grid; gap: 12px; text-decoration: none; color: inherit; }
.wcard-poster { aspect-ratio: 16 / 9; background: var(--night); overflow: hidden; }
.wcard-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.wcard > a:hover .wcard-poster img, .wcard > a:focus-visible .wcard-poster img { transform: scale(1.03); }
.wcard-poster.is-text { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: clamp(14px, 1.8vw, 22px); background: var(--ink); color: var(--paper); }
.pt-name { font-size: var(--fs-d3); font-weight: var(--display-w); font-stretch: var(--display-wdth); letter-spacing: var(--display-track); line-height: 1; }
.pt-note { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.wcard-meta { font-family: var(--f-mono); font-size: var(--fs-s); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.wcard-name { font-size: var(--fs-d4); font-weight: var(--title-w); font-stretch: var(--title-wdth); letter-spacing: var(--title-track); line-height: var(--title-lh); }
.wcard > a:hover .wcard-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.wcard-role { font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); margin-top: -4px; }
.wcard-line { color: var(--ink-2); max-width: 40ch; }
@media (max-width: 960px) { .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wgrid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.home-work .sec-more, .about-short .sec-more { padding-top: 36px; }
/* Work or Tools: the heading is the switch. The selected word is ink; the other is quiet until hovered. */
.home-work { padding-top: var(--space-section); }
.wt-tabs { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 3vw, 40px); }
.wt-tab { appearance: none; background: none; border: 0; padding: 0 0 4px; margin: 0; cursor: pointer; color: var(--ink); font-family: inherit; font-size: var(--fs-d2); font-weight: var(--display-w); font-stretch: var(--display-wdth); letter-spacing: var(--display-track); line-height: var(--display-lh); }
.page-work .wt-tab { font-size: var(--fs-d3); }
.wt-tab[aria-selected="false"] { color: var(--ink-3); opacity: 0.45; transition: opacity var(--dur-1); }
.wt-tab[aria-selected="false"]:hover { opacity: 0.8; }
.wt-tab:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.wt-nojs { display: none; }
.no-js .wt-tabs { display: none; }
.no-js .wt-nojs { display: block; font-size: var(--fs-d3); font-weight: var(--display-w); font-stretch: var(--display-wdth); letter-spacing: var(--display-track); line-height: var(--display-lh); padding-top: 48px; }
.js .wt-panel:not(.is-active) { display: none; }
.wcard-poster.is-svg { display: grid; place-items: center; background: var(--paper-2); }
.wcard-poster.is-svg svg { width: 100%; height: 100%; }
.work-all .work-also { padding-top: clamp(48px, 5vw, 72px); display: grid; gap: 14px; }

.help-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 36px; }
.help-list li { border-top: 1px solid var(--ink); padding-top: 14px; display: grid; gap: 10px; align-content: start; }
.help-list h3 { font-size: var(--fs-brandline); line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; }
.help-list p { color: var(--ink-2); }
@media (max-width: 960px) { .help-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .help-list { grid-template-columns: minmax(0, 1fr); } }
.about-short-text { padding-top: 36px; font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; color: var(--ink-body); }

.proj-head { padding-top: clamp(32px, 6vw, 96px); padding-bottom: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.proj-title { font-size: var(--fs-d2); font-weight: var(--display-w); font-stretch: var(--display-wdth); letter-spacing: var(--display-track); line-height: var(--display-lh); max-width: 20ch; }
:lang(he) .proj-title { line-height: 1.15; }
.proj-meta, .proj-k { font-family: var(--f-mono); font-size: var(--fs-s); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.proj-main .media { margin: 0; }
/* Square and vertical ads sit in the same 16:9 frame as everything else, so the page keeps one rhythm. */
.proj .vimeo.is-square .frame, .proj .vimeo.is-tall .frame { aspect-ratio: 16 / 9; }
.proj .vimeo.is-square .frame img, .proj .vimeo.is-tall .frame img { object-fit: contain; }
.proj-text { padding-top: clamp(32px, 4vw, 56px); display: grid; gap: 20px; }
.proj-text p { font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; color: var(--ink-body); }
.proj-more { padding-top: clamp(56px, 6vw, 88px); display: grid; gap: 24px; }
.proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; align-items: start; }
.proj-grid .media { margin: 0; }
@media (max-width: 760px) { .proj-grid { grid-template-columns: minmax(0, 1fr); } }
.proj .next b { font-size: var(--fs-d3); max-width: 24ch; }
.help .sec-head { border-bottom: 0; padding-bottom: 0; }

/* Play: a round control in the middle of the poster. */
.vid-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--paper); cursor: pointer; transition: transform var(--dur-2) var(--ease-out); }
.vid-play::before { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; transform: translateX(3px); border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink); }
.vid-play:hover, .vid-play:focus-visible { transform: scale(1.08); }
.vid-play:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.proj-grid .vid-play { width: 56px; height: 56px; }
/* WIZ on LinkedIn: no LinkedIn image is copied, so the poster is the title on ink. */
.li-poster { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(14px, 2vw, 24px); background: var(--ink); color: var(--paper); }
.li-name { font-size: var(--fs-brandline); line-height: 1.15; font-weight: 650; letter-spacing: -0.01em; max-width: 22ch; }
.proj-main .li-name { font-size: var(--fs-d4); font-weight: var(--title-w); font-stretch: var(--title-wdth); letter-spacing: var(--title-track); line-height: var(--title-lh); }
.li-src { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.linkedin figcaption { display: grid; gap: 4px; justify-items: start; }
.vid-title { font-family: var(--f-sans); font-size: var(--fs-sm); font-weight: 650; color: var(--ink); }
.vid-desc { font-family: var(--f-sans, inherit); font-size: var(--fs-sm); color: var(--ink-2); letter-spacing: 0; text-transform: none; max-width: 60ch; }
.vid-credit { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.vid-post { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 6px; }
/* One WIZ page with sections (2026-11-06): each section is a label, two short paragraphs and its videos. */
.proj-sec .proj-text { padding-top: 0; }

.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding-top: 8px; }
.about .about-text { align-content: start; display: grid; gap: 20px; }
.about .prose p { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-body); margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-portrait { max-width: 360px; } }
.exp { padding-top: clamp(64px, 7vw, 112px); }
.exp-title { font-size: var(--fs-d4); font-weight: var(--title-w); font-stretch: var(--title-wdth); letter-spacing: var(--title-track); line-height: var(--title-lh); padding-bottom: 20px; }
.exp-list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) minmax(0, 2fr); gap: 4px 28px; padding: 14px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.exp-list b { font-weight: 650; }
.exp-list span { color: var(--ink-2); }
.exp-years { font-family: var(--f-mono); font-size: var(--fs-s); color: var(--ink-3); text-align: end; white-space: nowrap; }
@media (max-width: 700px) { .exp-list li { grid-template-columns: minmax(0, 1fr) auto; } .exp-list li span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; } }
.tools-line { padding-top: clamp(48px, 6vw, 72px); display: grid; gap: 12px; }
.tools-line p { color: var(--ink-2); max-width: 64ch; }
.work-all { padding-top: 8px; }
.work-also { padding-top: clamp(56px, 6vw, 88px); display: grid; gap: 14px; }
.work-also p:first-child { color: var(--ink-2); max-width: 60ch; }
.work-also-links { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) {
  .li-name, .proj-main .li-name { font-size: var(--fs-md); font-family: var(--f-sans); font-weight: 650; letter-spacing: 0; line-height: 1.25; }
  .vid-play, .proj-grid .vid-play { width: 56px; height: 56px; }
}
