/* ==========================================================================
   madebyzane.com — Project pages
   Loaded only by work/*.html, on top of tokens.css + style.css. The site's
   chrome (nav, pointer, loader, clock, blur bands) comes from style.css; this
   file is the reading page itself, which has its own voice: Poppins, a wider
   measure, and long horizontal runs of images where the work was a series.
   Every value is a token.
   ========================================================================== */

/* ---------- page ---------- */
.page-project { background: var(--background); }
/* No compositing hint on main here: a transformed ancestor would become the
   containing block for the pinned sections and they would scroll away with it.
   (The work/about pages set it for the page-slide transition; this page has none.) */
.page-project main { display: block; }
/* `will-change: transform` (set for the page-slide transition) makes an element
   the containing block for every fixed descendant — which would leave the pinned
   sections positioned against main instead of the window. This page has no slide
   transition, so it needs no hint. The selector matches the one it overrides. */
html.motion body > main.proj { will-change: auto; }

.proj {
  --proj-gutter: var(--margin);                 /* the minimum side margin */
  /* --proj-rhythm, --proj-pad-*, --proj-head-gap, --proj-image-gap,
     --proj-cap-gap, --proj-measure, --proj-run-* and --content-max all come from
     the Responsive family in tokens.css: five tiers, no clamps. */
}

/* A section is the content column: never wider than the cap, never closer to the
   edge than the margin, always centred. Below the cap the margin is what shows;
   past it the extra room goes to the sides (at 1920: 1440 of content, 240 each side). */
.proj__section {
  width: 100%;
  max-width: min(100% - 2 * var(--proj-gutter), var(--content-max));
  margin-inline: auto;
  margin-block: var(--proj-rhythm);
}
.proj__section--flush {                          /* a whole-width picture */
  width: 100%;
  margin-block: var(--proj-rhythm);              /* the same air as any section */
}
/* a whole-width picture is still the content column: as wide as the column
   allows, centred — never full-bleed past the margin, never at its own pixel
   size against the left edge */
.proj__section--flush > img,
.proj__section--flush > video,
.proj__section--flush > .proj-film {
  display: block; width: 100%; height: auto;
  max-width: min(100% - 2 * var(--proj-gutter), var(--content-max));
  margin-inline: auto;
}

/* page padding: hero → first section, last section → footer */
.proj-hero + .proj__section,
.proj-hero + .proj__section--flush,
.proj-hero + .proj-pin { margin-top: var(--proj-pad-top); }
.proj-intro { margin-bottom: 0; }
.proj > :last-child { margin-bottom: 0; }

.proj__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-5);
  margin-bottom: var(--proj-head-gap);
}
.proj__title {
  margin: 0;
  font: var(--t-proj-title-font); letter-spacing: var(--t-proj-title-tracking);
  text-transform: uppercase;
  color: var(--text);
}
.proj__aside {
  margin: 0;
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase;
  color: var(--label);
  text-align: right;
}
.proj__lede, .proj__body {
  margin: 0;
  font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
  color: var(--text-2);
  max-width: calc(var(--proj-measure) * 1ch);
}
.proj__body + .proj__body { margin-top: var(--space-5); }
.proj__label {
  margin: 0;
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase;
  color: var(--text);
}
.proj__note {
  margin: var(--space-2) 0 0;
  font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
  color: var(--text-2);
}

/* ---------- themes ----------
   A project page carries its own world. The default is the site's light ground
   and Poppins; a project whose work lives in the dark (Aria, a light) flips the
   colour tokens for the whole page — chrome included, since everything reads
   them — and a project may take another face by pointing --proj-family
   somewhere else. Both classes go on <html>, because that is where the tokens
   they override are defined. Nothing else in the page changes. */
.type-helvetica { --proj-family: var(--font-helvetica); }

.theme-dark {
  --background: #000000;
  --text: #f6f6f6;
  --text-2: #d6d6d6;
  --label: #8f8f8f;
  --divider: #3a3a3a;
  --card: #141414;
  /* the nav pill and the top line invert with it */
  --footer: #f6f6f6;
  --footer-text: #0a0a0a;
  --footer-muted: #4a4a4a;
  --footer-divider: #cfcfcf;
  --nav-glass: #141414b8;
  --nav-border: #3a3a3a7a;
  color-scheme: dark;
}

/* ---------- top bar: a real way back ----------
   The same line as every other page, but fixed over a full-bleed hero, so it
   is set in difference blend: white over the dark cover, black once the grey
   ground scrolls up under it. */
/* The top line is the site's own — same box, same colours, same clock dot as the
   work page. It sits on the page ground above the cover, never over a picture,
   so nothing has to be blended or inverted to stay readable. */
/* a project page scrolls over pictures of every tone, so here the top line stays
   in the flow and leaves with the page; same height and side padding as the HUD */
.page-project .topbar { position: relative; z-index: 5; pointer-events: auto; }
.page-project .topbar__eyebrow { white-space: nowrap; }
.topbar__back { color: inherit; text-decoration: none; }
.topbar__back:hover { opacity: 0.7; }
.topbar__here { color: var(--label); margin-left: var(--space-4); }
@media (max-width: 599px) { .topbar__here { display: none; } }

/* ---------- hero: the cover the carousel zooms into ----------
   The same picture as the work carousel's thumbnail, at the same 16:9 crop, full
   width under the top line: that is exactly where the zoom lands, so the cover
   never jumps or re-crops on arrival. The reading sits under it, not over it. */
.proj-hero {
  position: relative;
  width: 100%;
  max-width: min(100% - 2 * var(--margin), var(--content-max));
  margin-inline: auto;
  aspect-ratio: var(--cover-ratio);
  overflow: hidden;
  background: var(--card);
}
.proj-hero img,
.proj-hero video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A hero that bleeds to the window edges instead of sitting in the content
   column. zoom.js lands its cover full-width too: data-zoom-bleed on the carousel
   link, so the cover travels to the same box this paints. Not used: Dunhill tried
   it (18 Nov) and went back to the standard box, so every project opens alike. */
.proj-hero--bleed { max-width: none; margin-inline: 0; }

.proj-intro { margin-top: var(--proj-pad-top); display: grid; gap: var(--space-4); }
.proj-hero__name {
  margin: 0; max-width: calc(var(--proj-measure) * 1ch);
  font: var(--t-proj-display-font); letter-spacing: var(--t-proj-display-tracking);
  text-transform: uppercase;
  color: var(--text);
}
.proj-hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  margin: 0;
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase;
  color: var(--label);
}

/* ---------- a plain figure ---------- */
.proj-fig { margin: 0; }
.proj-fig img,
.proj-fig video { width: 100%; height: auto; display: block; background: var(--card); }

/* A grid whose pictures answer the pointer. The frame is a box of its own: it
   keeps its size and clips, and only the picture inside it grows — so the grid
   never reflows, the caption never moves, and the zoom happens within the frame. */
.proj-fig__frame { display: block; overflow: clip; background: var(--card); }
.proj-fig__frame img { display: block; width: 100%; height: auto; }
.proj-grid--zoom .proj-fig__frame img {
  transition: transform var(--dur-hover) var(--ease-out);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .proj-grid--zoom .proj-fig:hover .proj-fig__frame img { transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .proj-grid--zoom .proj-fig__frame img { transition: none; }
  .proj-grid--zoom .proj-fig:hover .proj-fig__frame img { transform: none; }
}
.proj-fig figcaption {
  margin-top: var(--proj-cap-gap);
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; color: var(--text);
}
.proj-fig figcaption span {
  display: block; margin-top: var(--space-2);
  font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
  text-transform: none; color: var(--text-2);
}

/* two, three or four across — never more than two below the 1024 tier, one on a phone */
.proj-grid { display: grid; gap: var(--proj-image-gap); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
@media (max-width: 959px) { .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .proj-grid { grid-template-columns: 1fr; } }

/* a picture beside its reading */
.proj-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--proj-head-gap); align-items: start; }
@media (max-width: 959px) { .proj-split { grid-template-columns: 1fr; gap: var(--proj-image-gap); } }

/* ---------- horizontal runs ----------
   Free, not pinned: the row scrolls sideways inside the page and the page
   itself keeps scrolling normally. Drag, shift-wheel, arrow keys, or a
   trackpad swipe all move it. */
.proj-run {
  /* positioned so it is the containing block of anything absolute inside it
     (the cards' screen-reader labels): otherwise those anchor to the page,
     escape the row's own clipping, and widen the whole page — on a phone that
     made the document 2,176px wide and zoomed the page out to fit. */
  position: relative;
  display: flex; gap: var(--proj-run-gap);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  /* full-bleed, but starting at the content edge rather than the raw margin */
  padding-inline: max(var(--proj-gutter), (100% - var(--content-max)) / 2);
  scroll-padding-inline: max(var(--proj-gutter), (100% - var(--content-max)) / 2);
  padding-bottom: var(--space-5);
  scrollbar-width: none;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.proj-run::-webkit-scrollbar { display: none; }
.proj-run.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.proj-run.is-dragging * { pointer-events: none; }
.proj-run__item {
  flex: 0 0 auto;
  width: var(--proj-run-item);
  scroll-snap-align: start;
}
.proj-run__item--wide { width: calc(var(--proj-run-item) * 1.8); }
.proj-run__item img { width: 100%; height: auto; display: block; background: var(--card); }
/* a run's caption reads like any other: the name, then its line under it */
.proj-run__item figcaption {
  margin-top: var(--proj-cap-gap);
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; color: var(--text);
}
.proj-run__item figcaption span {
  display: block; margin-top: var(--space-2);
  font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
  text-transform: none; color: var(--text-2);
}
.proj-run__year {
  margin: 0 0 var(--space-4);
  font: var(--t-proj-title-font); letter-spacing: var(--t-proj-title-tracking);
  color: var(--text);
}
.proj-run__hint {
  margin: var(--proj-cap-gap) 0 0;
  padding-inline: max(var(--proj-gutter), (100% - var(--content-max)) / 2);
  font: var(--t-label-font); letter-spacing: var(--t-label-tracking);
  text-transform: uppercase; color: var(--label);
}

/* ---------- slideshow ----------
   Three slides in one box: they are stacked in a single grid cell, so the box is
   as tall as the tallest slide and nothing jumps as they change, and the box is
   the content column, so the slide coming in is clipped at the margin and never
   bleeds past it. */
/* One image band for the whole slideshow, exactly as the deck is drawn: every
   picture is the same height and starts at the same line, whether the slide
   holds one, three or four of them — only their widths change with the count.
   The height is a share of the column (container units), so it holds at every
   tier without a hard-coded number. */
/* ---------- the band ----------
   One image height for a whole section, as a share of the column (container
   units) so it holds at every tier without a hard-coded number. It belonged to
   the Slideshow; when those sections became fixed stacks it came with them as
   --band rather than being applied to every stack, because the Panasonic and
   MoMA stacks hold whole 16:9 deck pages that must not be cropped to a band.
   .proj-fit and .proj-whole still switch it off per row. */
.proj-stack--band .proj-stack__frame, .proj-band { container-type: inline-size; }
.proj-stack--band .proj-fig img, .proj-stack--band .proj-fig video,
.proj-band .proj-fig img, .proj-band .proj-fig video {
  height: var(--show-band);
  width: 100%;
  object-fit: cover;
}
.proj-stack--band, .proj-band { --show-band: 35cqw; }
@media (max-width: 959px) { .proj-stack--band, .proj-band { --show-band: 46cqw; } }
@media (max-width: 599px) { .proj-stack--band, .proj-band { --show-band: 62cqw; } }
/* A row of pictures at ONE height, none of them cropped: each column is as wide
   as its picture's proportion, so every picture lands on the same top and the
   same bottom line while keeping its own shape — the way the deck lays them
   out. The proportion travels on the figure as --ar. */
.proj-fit .proj-grid {
  display: flex; flex-wrap: wrap;
  gap: var(--proj-image-gap);
  align-items: flex-start;
}
.proj-fit .proj-fig { flex: var(--ar, 1) 1 0; min-width: 0; }
.proj-fit .proj-fig img,
.proj-fit .proj-fig video { width: 100%; height: auto; object-fit: contain; }
/* Below the 1024 tier the row would have to wrap, and a wrapped justified row
   is a ragged one — so there it becomes the page's ordinary grid: two across,
   then one, each picture whole at its own height. */
@media (max-width: 959px) {
  .proj-fit .proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj-fit .proj-fig { flex: none; }
}
@media (max-width: 599px) { .proj-fit .proj-grid { grid-template-columns: 1fr; } }

/* ---------- Neue Haas Grotesk Display Pro ----------
   The face the Samsung x MoMA deck is set in. Self-hosted and subset to latin
   plus the marks this site actually sets (arrows, x, (c), the dashes), which is
   why four weights cost 56KB in total rather than 400KB.

   600 is deliberately absent: the family has no semibold, so a rule asking for
   600 resolves up to 75 Bold rather than having the browser smear a fake one. */
@font-face { font-family: "Neue Haas Grotesk Display Pro"; src: url("../assets/fonts/nhg-display-light.woff2") format("woff2");
             font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk Display Pro"; src: url("../assets/fonts/nhg-display-roman.woff2") format("woff2");
             font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk Display Pro"; src: url("../assets/fonts/nhg-display-medium.woff2") format("woff2");
             font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk Display Pro"; src: url("../assets/fonts/nhg-display-bold.woff2") format("woff2");
             font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --font-nhg: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.type-nhg { --proj-family: var(--font-nhg); }

/* ---------- grounds ----------
   The page changes colour by chapter rather than running one white the whole
   way down. A ground is full-bleed; the content inside it stays on the column.
   --bg is the ground, --on-bg the ink it carries. */
.proj-ground {
  background: var(--bg, var(--background));
  color: var(--on-bg, var(--text));
  padding-block: var(--proj-rhythm);
}
/* The intro sets the page up; a ground starting right under it needs the page's
   own rhythm between them, or the credit runs straight into the colour. */
.proj-intro + .proj-ground { margin-top: var(--proj-rhythm); }
.proj-ground > :first-child { margin-top: 0; }
.proj-ground > :last-child  { margin-bottom: 0; }
.proj-ground .proj__title,
.proj-ground .proj__label,
.proj-ground .proj-hero__name,
.proj-ground .proj-stat__n { color: var(--on-bg, var(--text)); }
.proj-ground .proj__lede,
.proj-ground .proj__body,
.proj-ground .proj-stat__k { color: var(--on-bg-2, var(--text-2)); }
.proj-ground .proj__aside,
.proj-ground .proj-swatch__hex { color: var(--on-bg-3, var(--label)); }
.proj-ground .proj-fold { border-color: var(--on-bg-line, var(--divider)); }
.proj-ground .proj-fold__btn { color: var(--on-bg, var(--text)); }
/* on a ground the row reads as one line of type: the summary and the + take the
   title's ink rather than the page's grey label colour, which was mixing two
   blacks in the same row */
.proj-ground .proj-fold__sum,
.proj-ground .proj-fold__sign { color: inherit; }

/* ---------- marquee ----------
   A long strip that reads itself: one continuous linear pass, looping with no
   seam because the track holds the strip twice and travels exactly one copy's
   width before repeating. Nothing to operate — no controls, no drag, no grab
   cursor — and nothing touches the page's own scrolling. It pauses while the
   pointer is over it, so a reader can stop on something.

   --loop is set per section from the strip's rendered width, which keeps every
   marquee moving at the same speed whatever its length or the viewport. */
.proj-marquee {
  width: 100%;
  max-width: min(100% - 2 * var(--proj-gutter), var(--content-max));
  margin-inline: auto;
  overflow: hidden;
  container-type: inline-size;
  background: var(--card);
}
.proj-marquee__track {
  display: flex; width: max-content;
  animation: proj-marquee var(--loop, 60s) linear infinite;
  will-change: transform;
}
.proj-marquee__set { display: flex; flex: none; }
.proj-marquee__set img {
  display: block; height: var(--band, 56.25cqw); width: auto; max-width: none;
  user-select: none; -webkit-user-drag: none;
}
.proj-marquee:hover .proj-marquee__track,
.proj-marquee:focus-within .proj-marquee__track { animation-play-state: paused; }

@keyframes proj-marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .proj-marquee__track { animation: none; }
  .proj-marquee { overflow-x: auto; }     /* no motion: let it be read by hand */
}

/* ---------- the credit ----------
   Set the way the deck's title slide sets it: one line per person, name, role
   and address, in the identity's red with the address as the link. */
.proj-credit {
  margin: 0; display: grid; gap: var(--space-2);
  font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
  font-weight: 500; color: var(--mark, #ef3e23);
}
.proj-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.proj-credit a:hover { text-decoration-thickness: 2px; }

/* ---------- a wordmark title ----------
   Two rows and the identity's own red, the way the deck sets it. The rows are
   their own lines rather than a wrapped string, so the break never moves. */
.proj-hero__name--mark {
  display: grid; gap: 0;
  color: var(--mark, #ef3e23);
  line-height: 0.92;
  text-transform: none;
}
.proj-hero__name--mark span { display: block; }

/* A picture that carries no ground of its own: the type is cut out, so the
   page's colour shows through instead of a white box sitting on it. Figures
   paint a --card ground behind every image by default, hence the override. */
.proj-cutout > img,
.proj-cutout img { background: none; }

/* A motion piece in the page: no chrome, no sound, nothing to operate — it
   behaves like a picture that happens to move. */
.proj-motion { width: 100%; height: auto; display: block; background: var(--card); }

/* a numbered caption under a picture, for a sequence that isn't pinned */
.proj-fig__cap {
  margin-top: var(--space-4);
  font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
  color: var(--on-bg-2, var(--text-2));
}
.proj-fig__step {
  display: inline-block; margin-right: var(--space-4);
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  color: var(--on-bg-3, var(--label)); font-variant-numeric: tabular-nums;
}

/* ---------- research block ----------
   One chapter that is not a grid cell: it spans the container in a single
   column. Three candidate layouts ship side by side and the QA panel swaps
   them; only the active one is in the DOM flow and the accessibility tree.
   All three carry the same [data-open] hook, so the modal behaviour is written
   once and the variations differ only in surface. */
.proj-research {
  width: 100%;
  max-width: min(100% - 2 * var(--proj-gutter), var(--content-max));
  margin-inline: auto;
}
.proj-research__v[hidden] { display: none !important; }
.proj-research__v {
  appearance: none; border: 0; cursor: pointer; text-align: left; width: 100%;
  font: inherit; color: var(--text); background: none;
  transition: filter var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}
.proj-research__v:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.proj-research__eyebrow {
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; opacity: 0.68; display: block;
}
.proj-research__t {
  display: block; font-family: var(--proj-family, inherit); font-weight: 500;
  font-size: clamp(26px, 3vw, 46px); line-height: 1.04; letter-spacing: -0.015em;
  text-transform: uppercase;
}
.proj-research__t--big { font-size: clamp(34px, 6vw, 92px); }
.proj-research__d {
  display: block; font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
  max-width: 46ch; opacity: 0.88;
}
.proj-research__d--wide { max-width: 62ch; }
.proj-research__cta {
  display: inline-block;
  font: var(--t-status-font); letter-spacing: var(--t-status-tracking);
  text-transform: uppercase; opacity: 0.7;
}
.proj-research__v:hover .proj-research__cta { opacity: 1; }
.proj-research__shot { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block; }

/* A — split: the words on one side, the picture on the other */
.proj-research__v--a {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 56px); align-items: center;
  background: var(--background); padding: clamp(20px, 2.4vw, 40px);
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.12);
}
.proj-research__v--a:hover { transform: translateY(-3px); }
.proj-research__col { display: grid; gap: clamp(10px, 1.1vw, 18px); align-content: center; }
.proj-research__shotwrap { display: block; background: var(--card); }

/* B — type only: the heading carries it, rules instead of a box */
.proj-research__v--b {
  display: grid; gap: clamp(12px, 1.4vw, 22px);
  padding: clamp(var(--space-5), 3vw, 56px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.proj-research__v--b:hover { background-color: rgba(10, 10, 10, 0.035); }
.proj-research__facts {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 72px);
  margin-top: clamp(4px, 0.6vw, 10px);
}
.proj-research__fact {
  display: grid; gap: 2px;
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; opacity: 0.72;
}
.proj-research__fact b {
  font-family: var(--proj-family, inherit); font-weight: 500; font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -0.01em; opacity: 1;
  text-transform: none; color: var(--text);
}

/* C — hero: one big card spanning the container, the slide whole above a
   heavy plate. The plate sits under the picture rather than over it: these
   are charts, and an overlay would cover the thing the slide is showing. */
.proj-research__v--c { display: grid; background: #0a0a0a; color: #ffffff; }
.proj-research__v--c:hover { filter: brightness(1.12); transform: translateY(-3px); }
.proj-research__bg { display: block; }
.proj-research__v--c .proj-research__shot { max-height: 68svh; margin-inline: auto; }
.proj-research__plate {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(14px, 2vw, var(--space-7)); align-items: end;
  padding: clamp(20px, 2.4vw, 44px);
}
.proj-research__plate > :nth-child(1) { grid-column: 1; align-self: end; }
.proj-research__plate > :nth-child(2) { grid-column: 1; }
.proj-research__plate > :nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.proj-research__plate > :nth-child(4) { grid-column: 2; }
.proj-research__v--c .proj-research__eyebrow,
.proj-research__v--c .proj-research__cta { opacity: 0.78; }
.proj-research__v--c .proj-research__d { opacity: 0.92; max-width: 44ch; }

@media (max-width: 959px) {
  .proj-research__v--a { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 959px) {
  /* the plate stacks on narrow screens rather than splitting in two */
  .proj-research__plate { grid-template-columns: minmax(0, 1fr); gap: clamp(10px, 1.4vw, 18px); }
  .proj-research__plate > * { grid-column: 1 !important; grid-row: auto !important; }
}
@media (max-width: 599px) { .proj-research__facts { gap: 18px; } }
@media (prefers-reduced-motion: reduce) { .proj-research__v { transition: none; } }

/* ---------- chapter cards ----------
   Six doors on a 3 x 2 grid. grid-auto-rows: 1fr holds both rows to the same
   height, so one card carrying extra copy cannot make its row taller than the
   other. Each card is head-then-picture with a flexible gap between, which
   keeps every thumbnail on the same baseline whatever the title does. Ink is
   chosen per colour by measured contrast in the generator, never by eye. */
.proj-cards {
  width: 100%;
  max-width: min(100% - 2 * var(--proj-gutter), var(--content-max));
  margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--proj-card-gap, var(--space-4));
  align-items: stretch;
}
.proj-card { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.proj-card__btn {
  appearance: none; border: 0; cursor: pointer; text-align: left; width: 100%; height: 100%;
  min-width: 0; background: var(--c); color: var(--ink, #ffffff);
  padding: clamp(var(--space-4), 1.6vw, 26px);
  display: grid; grid-template-rows: auto 1fr auto;
  gap: clamp(10px, 1.1vw, 18px);
  transition: filter var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
/* a white card needs an edge to read as a card on the off-white ground */
.proj-card--edge .proj-card__btn { box-shadow: inset 0 0 0 1px rgba(10, 10, 10, 0.24); }
/* the affordance: it lifts and brightens, the way every other clickable
   surface on this site answers the pointer */
.proj-card__btn:hover { filter: brightness(1.06); transform: translateY(-3px); }
.proj-card__btn:active { transform: translateY(-1px); }
.proj-card__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.proj-card__head { display: grid; gap: clamp(6px, 0.7vw, 12px); align-content: start; }
.proj-card__t {
  font-family: var(--proj-family, inherit); font-weight: 500;
  font-size: clamp(16px, 1.5vw, 24px); line-height: 1.12;
  letter-spacing: -0.01em; text-transform: uppercase; display: block;
}
/* The caption waits under the title and arrives on hover. Its space is
   reserved in both states, so revealing it moves nothing — the card is the
   same height whether the pointer is on it or not. Where there is no hover
   (touch, and a keyboard arriving by focus) it is simply shown. */
.proj-card__s {
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; opacity: 0.8;
}
@media (hover: hover) and (pointer: fine) {
  .proj-card__s {
    opacity: 0; transform: translateY(4px);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .proj-card__btn:hover .proj-card__s,
  .proj-card__btn:focus-visible .proj-card__s { opacity: 0.8; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .proj-card__s { transition: opacity var(--dur-fast) linear; transform: none; }
}
.proj-card__d { font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking); opacity: 0.86; }
/* the thumbnail is a whole slide, 16:9 in a 16:9 box: contain, so nothing is
   cropped even by a rounding error */
.proj-card__thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block; align-self: end; }

@media (max-width: 959px) { .proj-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .proj-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .proj-card__btn { transition: none; } }

/* ---------- scroll rail ----------
   A native horizontal scroller: the browser's own overflow with scroll-snap,
   no script, no hijack. The page keeps scrolling vertically the whole time,
   and a trackpad, a shift-wheel, a dragged scrollbar, Tab and the arrow keys
   inside it all work because none of them were reimplemented. */
.proj-rail {
  width: 100%;
  max-width: min(100% - 2 * var(--proj-gutter), var(--content-max));
  margin-inline: auto;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(88%, 980px);
  gap: var(--proj-card-gap, var(--space-4));
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: var(--space-4);
}
.proj-rail > * { scroll-snap-align: start; min-width: 0; }
.proj-rail img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block;
  background: var(--card);
}
@media (max-width: 599px) { .proj-rail { grid-auto-columns: 92%; } }

/* ---------- the modal ----------
   The slides are 3840 x 2160 exports, so the frame is a locked 16:9 box and
   object-fit: contain puts the whole slide inside it — no cropping, ever.
   The stage takes the lesser of the dialog's width and the width that a 16:9
   box can be before it runs out of viewport height, so the picture is as large
   as the screen allows and the dialog never spills off it. Nothing in that
   calculation depends on which slide is showing, which is what keeps the
   chrome from moving as you step through. */
.proj-modal[hidden] { display: none !important; }
.proj-modal {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: clamp(12px, 2vw, var(--space-6));
}
.proj-modal__scrim { position: absolute; inset: 0; background: #0a0a0acc; -webkit-backdrop-filter: blur(var(--blur-scrim)); backdrop-filter: blur(var(--blur-scrim)); }
.proj-modal__dialog {
  position: relative;
  width: min(92vw, 1600px);
  background: var(--background); color: var(--text);
  padding: clamp(14px, 1.5vw, var(--space-5));
  display: grid; gap: clamp(10px, 1vw, var(--space-4));
}
.proj-modal__head { display: flex; align-items: baseline; gap: var(--space-5); }
.proj-modal__title {
  margin: 0; font: var(--t-proj-title-font); letter-spacing: var(--t-proj-title-tracking);
  text-transform: uppercase; color: var(--text);
}
.proj-modal__count {
  margin-left: auto; margin-right: 44px;
  font: var(--t-status-font); letter-spacing: var(--t-status-tracking);
  color: var(--label); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.proj-modal__close {
  position: absolute; top: clamp(10px, 1.2vw, 18px); right: clamp(10px, 1.2vw, 18px);
  appearance: none; background: none; border: 0; cursor: pointer; padding: 6px;
  color: var(--text); line-height: 0; z-index: 2;
}
.proj-modal__close svg { width: 20px; height: 20px; display: block; }
.proj-modal__close:hover { opacity: 0.6; }
.proj-modal__close:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.proj-modal__stage {
  position: relative; margin-inline: auto;
  width: min(100%, calc((100vh - var(--modal-chrome, 188px)) * 16 / 9));
  width: min(100%, calc((100svh - var(--modal-chrome, 188px)) * 16 / 9));
}
.proj-modal--cap .proj-modal__stage { --modal-chrome: 268px; }
.proj-modal__frame {
  aspect-ratio: 16 / 9;            /* locked: the box never answers to its content */
  width: 100%; background: var(--card);
  display: grid; place-items: center; overflow: hidden;
  /* the containing block for the links plate. Making the frame positioned
     would otherwise paint it over the prev arrow, which precedes it in the
     DOM — hence the explicit z-index on the arrows below. */
  position: relative;
  /* declared on the frame, not on the plate inside it: an element is never its
     own query container, so cqw written on the plate would resolve against the
     viewport instead of the box it actually sits in */
  container-type: inline-size; container-name: modalframe;
}
.proj-modal__frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* a film is a moving picture in the same frame: same fit, same box. A film to
   listen to ("sound": true) adds the browser's own controls inside that box.
   Absolutely placed, not a grid item: the frame centres its items
   (place-items), which makes a <video> content-sized, so height:100% fell back
   to the film's own height — a 720x1280 testimonial laid out at 1124x1997 in a
   1124x632 frame and showed a band across the face. inset:0 gives it the
   frame's exact box; contain fits any ratio inside it, uncropped. */
.proj-modal__film {
  position: absolute; inset: 0; margin: auto;
  width: 100%; height: 100%; object-fit: contain; display: block; background: var(--card);
}
.proj-modal__film[hidden] { display: none; }

/* outward links riding a slide — grouped into its bottom-right corner, sitting
   directly on the page. No background of any kind: the slide's own ground is
   already flat where they land (measured spread 0.0 on all three), so a plate
   would only cover artwork the page meant to show.

   4.2% / 14% is not a guess — it is the deck template's own right margin and
   bottom margin, measured off the pages. The links therefore land on the same
   grid line as each slide's caption rather than floating near the edge. */
.proj-modal__links {
  position: absolute; right: 4.2%; bottom: 14%; z-index: 3;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: clamp(14px, 2.4cqw, 36px);
  font-size: clamp(11px, 1.15cqw, 15px);
  max-width: 62%;
  color: var(--slide-ink, var(--text));
}
.proj-modal__links[hidden] { display: none; }
/* the component takes the slide's ink instead of the page's. :link and
   :visited are named explicitly so no user-agent blue or purple can reach it
   through a more specific UA rule. */
.proj-modal__links .link-out,
.proj-modal__links .link-out:link,
.proj-modal__links .link-out:visited,
.proj-modal__links .link-out:hover,
.proj-modal__links .link-out:active { color: inherit; }
.proj-modal__links .link-out { border-bottom-color: currentColor; opacity: 0.75; }
.proj-modal__links .link-out svg { color: inherit; }
@media (hover: hover) {
  .proj-modal__links .link-out:hover { opacity: 1; border-bottom-color: currentColor; }
}
.proj-modal__links .link-out:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- use cases ----------
   Three rooms the system was built into. Each card is its cover at the
   ratio the cover was made in — the box is 4:5 because the pictures are,
   so nothing is ever cropped to fit a shape chosen for it. The card is a
   trigger: it opens the studio's slides in the one dialog. */
/* ---------- the three-up card grid ----------
   One grid, two skins. Both open their content in the shared dialog through
   the same data-card / [data-chapter] / [data-open] contract, so the grid is
   defined once here and each skin only states what differs:

     .proj-use   photographic covers at the covers' own ratio (use cases)
     .proj-kit   isolated product renders on a flat ground (the system)

   A third instance should add a skin, not a second grid. */
.proj-cards3 {
  width: 100%;
  max-width: min(100% - 2 * var(--proj-gutter), var(--content-max));
  margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--proj-card-gap, var(--space-4));
}
@media (max-width: 599px) {
  .proj-cards3 { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
}
/* four-up (In Any Scenario): the same grid with one more column — two by two
   on a tablet, one column on a phone, like the three-up */
.proj-cards3--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 959px) { .proj-cards3--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .proj-cards3--four { grid-template-columns: minmax(0, 1fr); } }

.proj-use__card { display: grid; min-width: 0; }
.proj-use__btn {
  appearance: none; border: 0; padding: 0; background: none; cursor: pointer;
  text-align: left; width: 100%; color: var(--text);
  display: grid; gap: clamp(10px, 0.9vw, var(--space-4)); align-content: start;
  transition: transform var(--dur-fast) var(--ease-out);
}
.proj-use__shot {
  aspect-ratio: 4 / 5; width: 100%; background: var(--card); overflow: hidden;
}
.proj-use__shot img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
/* the caption under a card is the same in both skins, so it is one rule rather
   than two that have to be kept in step by hand */
.proj-use__name, .proj-kit__name {
  margin: 0; font: var(--t-proj-title-font); letter-spacing: var(--t-proj-title-tracking);
  text-transform: uppercase;
}
.proj-use__line, .proj-kit__line {
  margin: 0; color: var(--text-2);
  font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
}
@media (hover: hover) {
  .proj-use__btn:hover { transform: translateY(-3px); }
  .proj-use__btn:hover .proj-use__shot img { transform: scale(1.03); }
}
.proj-use__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .proj-use__btn, .proj-use__shot img { transition: none; }
  .proj-use__btn:hover { transform: none; }
  .proj-use__btn:hover .proj-use__shot img { transform: none; }
}

/* ---------- skin two: the system, as isolated renders ----------
   The three renders are transparent PNGs at three different ratios
   (1.500 / 0.721 / 1.404). The box is square and contains them, so each keeps
   its own proportion and sits in the same amount of air as its neighbours —
   they were drawn on a common 1160px canvas, so normalising by height is what
   makes them read as one set. */
.proj-kit__card { display: grid; min-width: 0; }
.proj-kit__btn {
  appearance: none; border: 0; padding: 0; background: none; cursor: pointer;
  text-align: left; width: 100%; color: var(--text);
  display: grid; gap: clamp(10px, 0.9vw, var(--space-4)); align-content: start;
  transition: transform var(--dur-fast) var(--ease-out);
}
.proj-kit__shot {
  aspect-ratio: 1 / 1; width: 100%; background: var(--card);
  display: block; overflow: hidden;
  padding: clamp(var(--space-4), 2.2vw, 44px);
}
/* the same shape as .proj-modal__frame img, and for the same reason: the box
   has a definite height (aspect-ratio over a definite width), so a percentage
   height resolves against it and object-fit does the letterboxing. Centring a
   content-sized item and capping it with max-height:100% is the version that
   silently falls back to the intrinsic size. */
.proj-kit__shot img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}
@media (hover: hover) {
  .proj-kit__btn:hover { transform: translateY(-3px); }
  .proj-kit__btn:hover .proj-kit__shot img { transform: scale(1.03); }
}
/* a render that stands on something — the tablet on its stand — sits on the
   frame's floor instead of floating in its padding. The bottom padding goes and
   the picture is anchored to the bottom, at exactly the height it had before
   (the box minus top and bottom padding), so it keeps the set's common scale;
   its hover swell grows from the floor, so the stand never lifts off it. */
.proj-kit__shot--floor { padding-bottom: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.proj-kit__shot--floor img {
  flex: none; height: calc(100% - clamp(16px, 2.2vw, 44px));
  object-position: 50% 100%; transform-origin: 50% 100%;
}
.proj-kit__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .proj-kit__btn, .proj-kit__shot img { transition: none; }
  .proj-kit__btn:hover { transform: none; }
  .proj-kit__btn:hover .proj-kit__shot img { transform: none; }
}
/* arrows ride the frame rather than taking columns of their own, so the
   picture gets the full width of the dialog */
.proj-modal__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  appearance: none; border: 0; cursor: pointer; padding: 18px 12px;
  background: #0a0a0a8c; color: #ffffff; line-height: 0;
  transition: background var(--dur-fast) var(--ease-out);
}
.proj-modal__arrow:hover { background: #0a0a0acc; }
.proj-modal__arrow svg { width: 15px; height: 26px; display: block; }
.proj-modal__arrow:focus-visible { outline: 2px solid #ffffff; outline-offset: -4px; }
.proj-modal__arrow[data-modal-prev] { left: 0; }
.proj-modal__arrow[data-modal-next] { right: 0; }

.proj-modal__cap {
  margin: 0; height: var(--cap-reserve, 3.2em);
  overflow-y: auto; overscroll-behavior: contain;
  font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
  color: var(--text-2); max-width: 70ch;
}
/* two line boxes at every desktop tier; the line-height ratio differs per tier
   (1.65 / 1.6 / 1.55), so the reserve is stated per tier rather than guessed */
@media (min-width: 1728px) { .proj-modal__cap { --cap-reserve: 3.3em; } }
@media (max-width: 959px) { .proj-modal__cap { --cap-reserve: 3.1em; } }
@media (max-width: 599px) {
  /* stacked head on a phone: the title gets the full column instead of
     competing with the counter, so every chapter name sits on one line */
  .proj-modal__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-right: var(--space-6); }
  .proj-modal__count { margin-left: 0; margin-right: 0; }
  .proj-modal__stage { --modal-chrome: 150px; }
  .proj-modal--cap .proj-modal__stage { --modal-chrome: 240px; }
  .proj-modal__arrow { padding: 14px 10px; }
  .proj-modal__cap { --cap-reserve: 4.65em; }
}
@media (prefers-reduced-motion: reduce) { .proj-modal__arrow { transition: none; } }

/* ---------- fixed stack ----------
   Four slides, one position: the section holds still while the scroll swaps
   what is in the frame. Without motion they simply stack down the page. */
.proj-stack { margin-block: var(--proj-rhythm); }
.proj-stack__stage {
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--proj-head-gap); padding-block: var(--proj-head-gap);
}
.proj-stack__head,
.proj-stack__frame,
.proj-bar {
  width: 100%; max-width: min(100% - 2 * var(--proj-gutter), var(--content-max));
  margin-inline: auto;
}
.proj-stack__head .proj__head { margin-bottom: 0; }
.proj-stack__frame { display: grid; align-items: start; }
.proj-stack__slide { grid-area: 1 / 1; }
/* A HARD CUT, not a fast fade. The scroll is already the clock: the slide that
   is on is the one the scroll depth selects, and a transition only puts a lag
   between the two. The expo --ease-out used to hide this well — measured, the
   incoming slide reached 50% at 159ms and finished at 253ms of a declared
   600ms, which reads as a cut without being one. It is one now. */
.proj-stack.is-pinned .proj-stack__slide { opacity: 0; visibility: hidden; }
.proj-stack.is-pinned .proj-stack__slide.is-on { opacity: 1; visibility: visible; }
/* ---------- a pinned stage is exactly the viewport ----------
   The stage used to be as tall as its content, which is fine until the content
   is taller than the window: the section then pins with its lower part — and
   the bar with it — below the fold. Measured at 1440x700, the MoMA stage stood
   at 866px and its bar sat at y=824, off screen; Aria's and Dunhill's did the
   same. Since the bar is now the only control these sections have, a bar that
   can be scrolled out of view is a section with no control at all.

   100svh, the same as a pinned run, so nothing can be pinned out of sight. The
   two rules under it bound the pictures to what is left once the head, the gaps
   and the bar are taken off, which is what keeps the content inside the stage
   rather than merely clipping it. */
.proj-stack.is-pinned .proj-stack__stage { height: 100svh; overflow: hidden; }
.proj-stack.is-pinned .proj-stack__frame { min-height: 0; }
/* a banded row: shrink the band itself, so the pictures stay cropped to a line
   rather than letterboxing inside a box they no longer fill */
.proj-stack--band.is-pinned { --show-band: min(35cqw, 46svh); }
@media (max-width: 959px) { .proj-stack--band.is-pinned { --show-band: min(46cqw, 46svh); } }
/* A slide whose content is not a single 16:9 figure — MoMA's grids, Aria's test
   rows — still has to be bounded by the stage, so the height cap stays. What it
   must never do is change the picture's shape.

   A replaced element with width:100% and height:auto does NOT keep its ratio
   when a max-height binds: the used height becomes the cap, the width stays
   100%, and object-fit defaults to `fill`. For one task this rule stood here
   without the second line and squashed every deck slide it touched — measured at
   1728x900 it drew 1340x670, 2.001:1, against a natural 1.778:1. `contain` is
   what makes a height cap safe on a replaced element; the figure-width cap below
   is what makes it unnecessary for the slides whose ratio is known. */
.proj-stack.is-pinned .proj-fig img,
.proj-stack.is-pinned .proj-fig video,
.proj-stack.is-pinned .proj-stack__slide > img,
.proj-stack.is-pinned .proj-stack__slide > video {
  max-height: calc(100svh - var(--stack-chrome));
  object-fit: contain;
}
/* …except in a banded stack: there the band height is already capped to the stage
   (above), so `contain` only letterboxed every picture whose shape differs from its
   cell — grey bars either side of Dunhill's portrait details at 1024 and up. A band
   crops to its line, pinned or not. */
.proj-stack--band.is-pinned .proj-fig img,
.proj-stack--band.is-pinned .proj-fig video { object-fit: cover; }
/* MoMA's slides are a bare <img>, not a figure — which is why the two selectors
   above are needed and why that page kept clipping while the others did not.
   The budget is the stage's own chrome measured, not guessed: top and bottom
   padding, the gap, the head and the 1px bar. */
.proj-stack { --stack-chrome: calc(4 * var(--proj-head-gap) + 48px); }
/* A 16:9 slide at full column width is 720px tall on a 1280 column — taller
   than the stage on a short laptop. The cap is on the FIGURE'S WIDTH, not the
   image's height: a max-height needs width:auto to hold ratio, which hands the
   slide's size back to the image's INTRINSIC width, and these images are
   loading="lazy" — so the slide would measure zero until one arrived and the
   layout would jump when it landed. Converting the height limit into a width
   limit through the known 16:9 keeps every box sized by the column alone. */
.proj-stack.is-pinned .proj-stack__slide > .proj-fig {
  /* THE SAME BUDGET as the height cap above, deliberately. When the two
     disagree the stricter one wins and the picture letterboxes inside a box it
     no longer fills: measured at 1728x900 with two different budgets, the figure
     was 1340 wide and the picture only 1173, leaving 83px of dead space a side.
     Expressed through the known 16:9, one budget makes the figure exactly as
     tall as the cap allows, so the height cap never binds here and there is
     nothing to letterbox. */
  max-width: calc((100svh - var(--stack-chrome)) * 16 / 9);
  margin-inline: auto;
}
.proj-stack:not(.is-pinned) .proj-stack__slide + .proj-stack__slide { margin-top: var(--proj-image-gap); }
.proj-stack:not(.is-pinned) .proj-stack__frame { display: block; }
/* ---------- ProgressBar ----------
   THE progress bar. Every scroll-driven section on the site uses this one —
   stacks and runs alike — and there is deliberately no variant hook: a second
   bar is how the first one drifts. It was already drifting when this rule was
   written: the stack's bar was 1px with a 300ms ease, the pinned run's was 1px
   with none, and Panasonic overrode the run's to 2px with its own top margin.
   Three bars, one job. This is the one.

   The --on-bg fallbacks are not a variation: they let the identical bar invert
   on a dark section (the MoMA stack sits on black) and resolve to the same
   divider and text colours everywhere else. */
.proj-bar { height: 1px; background: var(--on-bg-line, var(--divider)); }
.proj-bar span {
  display: block; height: 1px; width: 0;
  background: var(--on-bg, var(--text));
  transition: width var(--dur-fast) linear;
}
.proj-stack__count {
  margin: 0; font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; color: var(--on-bg-3, var(--label)); font-variant-numeric: tabular-nums;
}

/* a source, named and linked, under the thing it supports */
.proj-cite {
  margin: var(--space-4) 0 0;
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; color: var(--on-bg-3, var(--label));
}
.proj-cite a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.proj-cite a:hover { color: var(--on-bg, var(--text)); }
.proj-panel__cite a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- colour panel ----------
   Some decks argue in full-bleed colour: one claim on a flat ground and nothing
   else on the slide. Rebuilt as type rather than shipped as a picture, so it
   stays sharp, selectable and reflows at 390. --accent carries the chapter's
   colour; the ink flips to near-black on the light grounds. */
.proj-panel {
  width: 100%;
  max-width: min(100% - 2 * var(--proj-gutter), var(--content-max));
  margin-inline: auto;
  background: var(--accent, var(--text));
  color: var(--panel-ink, #ffffff);
  padding: clamp(28px, 5.4vw, 88px);
  display: grid; gap: var(--space-4);
}
.proj-panel__claim {
  margin: 0; max-width: 18ch;
  font: var(--t-proj-display-font); letter-spacing: var(--t-proj-display-tracking);
  color: inherit; text-wrap: balance;
}
.proj-panel__claim em { font-style: normal; opacity: 0.62; }
.proj-panel__cite {
  margin: 0; font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; color: inherit; opacity: 0.7;
}
.proj-panel--quote .proj-panel__claim { max-width: 22ch; }

/* ---------- figures in numbers ----------
   The research slides turn on four or five numbers. They read better set as
   type than screenshotted out of the deck. */
.proj-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--proj-image-gap) var(--space-6);
}
.proj-stat { display: grid; gap: var(--space-2); align-content: start; }
.proj-stat__n {
  margin: 0; font: var(--t-proj-display-font); letter-spacing: var(--t-proj-display-tracking);
  color: var(--accent, var(--text)); font-variant-numeric: tabular-nums;
}
.proj-stat__k {
  margin: 0; font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
  color: var(--text-2); max-width: 30ch;
}

/* ---------- the palette, as the palette ---------- */
.proj-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--proj-image-gap); }
.proj-swatch { display: grid; gap: var(--space-4); }
.proj-swatch__chip { aspect-ratio: 4 / 3; background: var(--c); }
.proj-swatch__name {
  margin: 0; font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; color: var(--text);
}
.proj-swatch__hex {
  margin: 0; font: var(--t-status-font); letter-spacing: var(--t-status-tracking);
  color: var(--label); text-transform: uppercase;
}

/* The disclaimer travels with the work: this is an independent concept, and the
   marks in it belong to their owners. Quiet, but never hidden. */
.proj-legal {
  margin: 0; max-width: calc(var(--proj-measure) * 1ch);
  font: var(--t-body-sm-font); letter-spacing: var(--t-body-sm-tracking);
  color: var(--label);
}

/* ---------- picture over mark ----------
   One block: the photograph, then the wordmark at the left with the line it
   carries across from it. The mark is sized against the row rather than the
   page, so it keeps the proportion the board gives it (260 of 1760) at every
   width, and never shrinks below readable when the row stacks. */
.proj-state__shot { display: block; width: 100%; height: auto; }
.proj-state__foot {
  container-type: inline-size;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--proj-image-gap);
  align-items: start; margin-top: var(--proj-image-gap);
}
.proj-state__mark { margin: 0; }
.proj-state__mark svg {
  display: block; width: max(132px, 14.8cqw); height: auto;
  aspect-ratio: 260 / 106; color: var(--text);
}
.proj-state__body { max-width: 46ch; margin: 0; }
@media (max-width: 959px) {
  .proj-state__foot { grid-template-columns: 1fr; }
  .proj-state__mark svg { width: 148px; }
}

/* A film in the page: the whole width of the column, with its own controls,
   plus a sound button that says what the native chrome cannot — that sound is
   waiting, while the browser will still only allow a muted start. */
.proj-film { position: relative; }
.proj-film video { width: 100%; height: auto; display: block; background: var(--card); }
.proj-film__sound {
  position: absolute; inset-block-start: 16px; inset-inline-end: 16px;
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: var(--t-label-font); letter-spacing: var(--t-label-tracking);
  color: var(--text); background: var(--nav-glass); border: 1px solid var(--nav-border);
  border-radius: 999px; padding: var(--space-2) 14px; cursor: pointer;
  -webkit-backdrop-filter: blur(var(--blur-glass)); backdrop-filter: blur(var(--blur-glass));
  transition: background var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.proj-film__sound::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: 0.3;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.proj-film__sound[aria-pressed="true"]::before { opacity: 1; }
.proj-film__sound:hover { background: var(--card); }
.proj-film__sound:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.no-js .proj-film__sound { display: none; }

/* Some pictures cannot be cropped: a drawing, a diagram, a test sheet whose
   caption is part of the photograph. Those rows keep each picture whole and
   still start on one line — the band rule off, top alignment on. */
.proj-whole .proj-fig img,
.proj-whole .proj-fig video { height: auto; object-fit: contain; }

/* the band starts at the top; the reading sits beside or under it */
.proj-stack--band .proj-grid, .proj-stack--band .proj-split, .proj-band .proj-grid { align-items: start; }

/* a row whose pictures carry a sentence rather than a name: the note reads as
   body text straight under the picture */
.proj-grid--notes .proj-fig figcaption {
  font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
  text-transform: none; color: var(--text-2);
  max-width: calc((var(--proj-measure) - 20) * 1ch);
}
/* ---------- pinned runs ----------
   A series that reads sideways: the section holds still while the page scrolls,
   and the scroll moves the row across — two screens' worth of scrolling for the
   whole run. The head stays put inside the content column. Without GSAP or with
   reduced motion the same markup is an ordinary horizontal scroller, so nothing
   is trapped. */
.proj-pin { margin-block: var(--proj-rhythm); }
.proj-pin__stage {
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--proj-head-gap);
  padding-block: var(--proj-head-gap);
}
.proj-pin__head {
  width: 100%;
  max-width: min(100% - 2 * var(--proj-gutter), var(--content-max));
  margin-inline: auto;
}
.proj-pin__head .proj__head { margin-bottom: 0; }
.proj-pin__head .proj__lede { margin-top: var(--space-4); }

/* the progress of the run, on the content column */
/* A bar with nothing driving it is a dead 1px line, so it shows only while its
   section is actually pinned. This is part of the one bar, not per-component
   behaviour: below 600px nothing pins, and every bar on the site hides. */
.proj-pin:not(.is-pinned) .proj-bar,
.proj-stack:not(.is-pinned) .proj-bar { display: none; }


/* pinned: the row no longer scrolls itself — the page scroll moves it.
   The stage carries the page ground: while it is held, the section behind it is
   still in the document, and a transparent stage would let it show through on a
   fast flick. */
/* `clip`, not `hidden`: the stage must not become a scroll container of its
   own — the TRACK inside it is the scroll container, and the driver writes
   its scrollLeft. Clipping here keeps a 4,944px row from reporting itself
   into the document's scrollable rectangle (measured: 4,454px of phantom
   width at the top of the Embodied Sound page). No user could reach it —
   a real horizontal gesture leaves scrollX at 0 — but a scrollable area
   nothing can scroll is still a thing assistive tech and scrollIntoView
   can trip over. */
.proj-pin.is-pinned .proj-pin__stage { height: 100svh; background: var(--background); overflow: clip; }
.proj-pin.is-pinned .proj-run {
  overflow: hidden;
  cursor: default;
  scroll-snap-type: none;
  padding-bottom: 0;
  align-items: flex-start;
}
.proj-pin.is-pinned .proj-run__item { scroll-snap-align: none; }

/* ---------- the collapsed block ---------- */
.proj-fold { scroll-margin-top: var(--space-7); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.proj-fold__btn {
  appearance: none; background: none; border: 0; width: 100%;
  display: flex; align-items: baseline; gap: var(--space-5);
  padding: var(--space-6) 0;
  cursor: pointer; text-align: left; color: var(--text);
  font: var(--t-proj-title-font); letter-spacing: var(--t-proj-title-tracking);
  text-transform: uppercase;
}
.proj-fold__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.proj-fold__sum {
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  color: var(--label); text-transform: uppercase;
}
.proj-fold__sign {
  margin-left: auto; font: var(--t-proj-title-font); color: var(--label);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
/* The research row opens the modal rather than expanding in place. It keeps the
   fold's rule-above-rule frame; on hover the + takes the ground's own ink and
   grows a little. It does not rotate — a + turned 45 degrees is an x, which
   reads as dismiss on a control whose whole job is to open something. */
.proj-fold--open .proj-fold__btn:hover .proj-fold__sign,
.proj-fold--open .proj-fold__btn:focus-visible .proj-fold__sign {
  transform: scale(1.15); color: var(--on-bg, var(--text));
}
.proj-fold__btn[aria-expanded="true"] .proj-fold__sign { color: var(--text); }
/* inside the fold the page's own rhythm continues: blocks are a section apart,
   titles sit a head-gap above their content */
.proj-sub { margin-top: var(--proj-rhythm); }
.proj-sub:first-child { margin-top: var(--proj-head-gap); }
.proj-sub__title {
  margin: 0 0 var(--proj-head-gap);
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; color: var(--text);
}

/* the price ladder */
.proj-price { display: grid; gap: var(--proj-image-gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 959px) { .proj-price { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .proj-price { grid-template-columns: 1fr; } }
.proj-price__row {
  display: flex; justify-content: space-between; gap: var(--space-4);
  margin-top: var(--proj-cap-gap);
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; color: var(--text);
}
.proj-price__row b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- links out ---------- */
.proj-link {
  display: inline-flex; align-items: baseline; gap: var(--space-2);
  margin-top: var(--space-5);
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  text-transform: uppercase; color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--divider);
  padding-bottom: var(--space-2);
}
.proj-link:hover { border-bottom-color: var(--text); }

/* ---------- footer: the next project ---------- */
.proj-foot {
  border-top: 1px solid var(--divider);
  margin-top: var(--proj-pad-bottom);
  padding-block: var(--space-8) calc(var(--touch-min) + var(--space-9));
  padding-inline: max(var(--proj-gutter), (100% - var(--content-max)) / 2);
  display: flex; justify-content: space-between; gap: var(--space-6);
}
.proj-foot a {
  display: grid; gap: var(--space-2); text-decoration: none; color: var(--text);
  max-width: 45%;
}
.proj-foot__dir {
  font: var(--t-label-font); letter-spacing: var(--t-label-tracking);
  text-transform: uppercase; color: var(--label);
}
.proj-foot__name {
  font: var(--t-proj-title-font); letter-spacing: var(--t-proj-title-tracking);
  text-transform: uppercase;
}
.proj-foot a:last-child { text-align: right; }
.proj-foot a:hover .proj-foot__name { color: var(--text-2); }

/* ---------- arriving from the carousel ----------
   The zoom itself runs on the work page: the cover grows to fill the window,
   then this page opens with the same picture already filling it. All that is
   left here is to let the reading catch up. */
.page-project.is-arriving .topbar,
.page-project.is-arriving .proj-intro,
.page-project.is-arriving .navdock { opacity: 0; }
.page-project .topbar,
.page-project .proj-intro,
.page-project .navdock { transition: opacity var(--dur-base) var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .page-project.is-arriving .topbar,
  .page-project.is-arriving .proj-intro,
  .page-project.is-arriving .navdock { opacity: 1; }
}

/* The travelling layer (.zoomer) is styled in css/style.css: the work page uses
   it too and does not load this file. */

/* the 390 tier: heads and the footer stack (rhythm, hero and card widths are tokens now) */
@media (max-width: 599px) {
  .proj__head { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .proj__aside { text-align: left; }
  .proj-foot { flex-direction: column; gap: var(--space-7); }
  .proj-foot a { max-width: none; }
  .proj-foot a:last-child { text-align: left; }
}

/* ==========================================================================
   PANASONIC DMS — a scoped skin for one project
   Everything below is namespaced to .proj-panasonic on <html>, so it reaches
   this page and the dialog it opens (the dialog is appended to body, which is
   inside that root) and nothing else on the site. Two things live here:

     · one radius token, scaled by viewport
     · a type scale written for this page alone — its own sizes, line-heights
       and weights, not the site's steps with a tweak

   The page has no section headings at all, so the scale is short on purpose:
   a name, a meta line, a lede, the control labels, and the counters.
   ========================================================================== */
.proj-panasonic {
  /* 12px on a desktop, easing down to 6px on a phone */
  /* --pana-radius is gone. Every rectangle on the site is square now: the
     windows, the pictures inside them, the hero, the run items, the timeline,
     the colourway tiles and the trigger strips (except the colourway animation
     frames, rounded with radius-lg since 18 Nov). Circles (the dots, the ring,
     the timeline node) are shapes, not corners, and keep their 50%. */
}

/* every surface that holds a picture or acts as a block */
/* The hero paints --card behind its picture and clips with overflow: hidden.
   Rounding only the <img> left that grey square showing through each corner —
   the "clipped radius" — so the radius goes on the box that paints, and the
   picture inside is clipped by it. */
/* Nothing here rounds anything any more. Every window on the site is square,
   and so is every picture: see the note where --pana-radius used to live. */

/* ---- the type scale, this project only ---------------------------------- */
.proj-panasonic {
  --pana-face: var(--font-poppins, system-ui, sans-serif);
}
/* The hero meta, lede and fold had their own sizes here (--pana-meta / -lede / -label);
   removed 18 Nov — they read proj-label / proj-body / proj-title like every project. */
/* The footer is deliberately NOT in this scope. It is the site's component and
   must read identically on every project page; scoping it here is what put this
   page's footer out of step with the others. */

/* ---- the pinned runs on this page carry whole slides ---------------------
   The Dunhill run is a strip of small figures; here each item is a deck page,
   so it needs to be wide enough to read — and wide enough that two of them
   overflow the viewport, which is what gives the pin something to travel. */
.proj-panasonic .proj-run__item--slide { width: min(78vw, 1180px); }
.proj-panasonic .proj-run__item--slide img { aspect-ratio: 16 / 9; object-fit: contain; background: var(--card); }

/* ---------- the Panasonic history, as one continuous timeline --------------
   Seven items in one row inside the pinned run. The grey line is a single
   element behind the whole track — not a border per item — so it runs
   unbroken from 1918 to 2026 however far the row is scrolled, and each item
   drops its own node onto it. Geometry follows the deck: the photo frame is
   726 x 640, the year sits above the line, the reading below it. */
.proj-panasonic .proj-time { position: relative; align-items: start; gap: 0; }
/* One line element cannot do this: inside a scroll container an absolutely
   positioned child resolves its width against the VISIBLE box, so the rule
   would stop at the right edge of the viewport and the rest of the row would
   have none. Instead every item carries a segment the full width of its own
   box — the gap lives inside the item as padding, so consecutive segments abut
   exactly and the line reads as one unbroken rule from 1918 to 2026. */
.proj-panasonic .proj-time__line { display: none; }
.proj-panasonic .proj-time__item {
  position: relative; width: min(62vw, 560px);
  padding-right: var(--proj-run-gap);
  display: grid; grid-template-rows: auto auto auto; gap: 0;
}
.proj-panasonic .proj-time__item::before {
  content: ''; position: absolute; left: 0; top: var(--time-line-y, 72px);
  width: 100%; height: 1px; background: var(--divider); pointer-events: none;
}
.proj-panasonic .proj-time__item:last-child { padding-right: 0; }
.proj-panasonic .proj-time__year {
  margin: 0 0 calc(var(--time-line-y, 72px) - 1.15em);
  font-family: var(--pana-face); font-weight: 600;
  font-size: clamp(22px, 1.9vw, 34px); line-height: 1.15; letter-spacing: -0.02em;
}
.proj-panasonic .proj-time__node {
  position: absolute; left: 0; top: var(--time-line-y, 72px);
  width: 9px; height: 9px; margin: -4px 0 0 -0.5px;
  border-radius: 50%; background: var(--label);
}
.proj-panasonic .proj-time__item img {
  width: 100%; aspect-ratio: 726 / 640; object-fit: cover; display: block;
  margin-top: clamp(18px, 2vw, 34px);
}
.proj-panasonic .proj-time__item figcaption {
  display: grid; gap: clamp(var(--space-2), 0.8vw, 14px);
  margin-top: clamp(14px, 1.4vw, var(--space-5));
  border: 0; padding: 0;
}
.proj-panasonic .proj-time__name {
  font-family: var(--pana-face); font-weight: 500;
  font-size: clamp(17px, 1.4vw, 26px); line-height: 1.2; letter-spacing: -0.02em;
}
.proj-panasonic .proj-time__body {
  font-family: var(--pana-face); font-weight: 300;
  font-size: clamp(13px, 0.85vw, 16px); line-height: 1.5; letter-spacing: 0;
  color: var(--text-2); max-width: 46ch;
}
@media (max-width: 959px) { .proj-panasonic .proj-time__item { width: min(78vw, 460px); } }
@media (max-width: 599px) { .proj-panasonic .proj-time { --time-line-y: 54px; } }

/* ---------- a line the deck sets over a slide -----------------------------
   Slide 3 is missing the line its design file carries. Rather than burn text
   into the picture, it is printed over it at the proportions measured from
   slide 2 of the same deck: left 8.44% and top 7.36% of the frame, at 1.63%
   of its width. Container units, so it holds at every size. */
.proj-panasonic .proj-fig--note { position: relative; container-type: inline-size; }
.proj-panasonic .proj-fig__note {
  position: absolute; left: 8.44%; top: 7.36%; max-width: 48%;
  margin: 0; border: 0; padding: 0;
  font-family: var(--pana-face); font-weight: 600;
  font-size: 1.63cqw; line-height: 1.2; letter-spacing: -0.01em;
  /* the figure caption style the site uses elsewhere uppercases and tracks out;
     this line is the deck's own sentence-case text, so both are undone here */
  text-transform: none; color: #111111;
}
/* the images keep the item's own width, now that the gap is padding */
.proj-panasonic .proj-time__item img,
.proj-panasonic .proj-time__item figcaption { width: 100%; }

/* ---------- the Aria slideshow, at full content width ----------
   The component is the site's own; this only widens it to the content column
   and locks each slide's picture to 16:9 so the viewport never changes height
   between slides. */
/* ==========================================================================
   ColorwaySwitcher
   Four colourways of one product, three views each, inside a strict 16:9 box.

   THE THREE SLOTS DO NOT ANIMATE ALIKE. This is the point of the component,
   and it is measured off the reference, not guessed:
     · the hero cross-fades in place — four stacked pictures, opacity only
     · the front and side views SLIDE — a flex track inside a mask, moved by
       transform, so the next colourway is physically pushed into view
     · they start LATE. In the reference the hero changes 270ms before the
       other two move, and that offset is most of why the motion reads as one
       object turning rather than three tiles blinking. --cw-stagger keeps it.
   A single cross-fade over all three was the earlier, wrong reading.

   GEOMETRY — the whole spec is two percentages:
       --cw-margin  80 / 1440   of the border width  (padding resolves on width
                                 for all four sides, so one value does it)
       --cw-gutter  20 / 1440   of the frame width, in container units
   Hence the 6-column grid is proportionally identical at every tier with no
   breakpoint at all, and the 80/20 of the 1440 design simply falls out of it.
   Each slot spans two columns.

   The gutter is a CONTAINER UNIT, not a percentage. A percentage gap resolves
   against a different dimension on each axis — column-gap against the inline
   size, row-gap against the block size — so a single percentage gave 20px
   between columns and 10.16px between rows once a variant had rows. A cqw is
   the same measure both ways, so one token means 20px in either direction.
   ========================================================================== */
.proj-cw {
  --cw-margin: 5.5556%;
  /* 20 / 1440 of the frame width. The container is .proj-cw__inner, which is
     exactly the frame's width, so this is 20px at the 1440 design size and
     scales with it — on both axes. */
  --cw-gutter: 1.3889cqw;
  /* The swatch holds one size at every tier, rather than shrinking on the
     devices whose users most need a target to hit, so there is no reason to shrink
     it on the devices that need it most. What flexes instead is the space
     BETWEEN the swatches — see --cw-dots-gap. */
  /* 40px: still clear of the 24px minimum target, and the ring's stroke and
     gap are proportions of it, so the indicator rescales with no second edit. */
  --cw-dot: 40px;
  /* The ring's stroke and clear gap are proportions of the swatch, not fixed
     pixels, so the indicator keeps the deck's drawing at any dot size.
     0.0625 of the swatch each. */
  --cw-gap: calc(var(--cw-dot) * 0.0625);      /* 2.5px at 40 */
  --cw-ring-w: calc(var(--cw-dot) * 0.0625);   /* 2.5px at 40 */
  --cw-reach: calc(var(--cw-dot) * 0.03 + var(--cw-gap) + var(--cw-ring-w));
  /* Four swatches at a fixed 1.1x pitch outgrow the 335px content column on a
     phone. The pitch is therefore fluid and the
     swatch is not: it opens up on desktop and closes on small screens, and the
     row never outgrows the column. */
  --cw-dots-gap: clamp(16px, 4.4vw, calc(var(--cw-dot) * 1.1));
  /* motion. The slide must finish inside the 1200ms beat with room to rest:
     140 + 600 = 740ms of movement, 460ms still. */
  --cw-fade: 500ms;
  --cw-slide: 600ms;
  --cw-stagger: 140ms;
  --cw-ring-move: 420ms;
  --cw-ease: cubic-bezier(.4, 0, .2, 1);
  --cw-tile: var(--card);
}
/* .proj-cw is itself a .proj__section, which already resolves the content
   column — it lands on exactly the same edges as the Aria slideshows above it.
   Repeating max-width: min(100% - 2 * gutter, ...) on an inner element
   subtracts the margin a second time and loses 240px. */
.proj-cw__inner { width: 100%; container-type: inline-size; }

/* ---- the swatch row, outside the frame, flush with its right edge ---- */
.proj-cw__dots {
  position: relative;
  display: flex; justify-content: flex-end; align-items: center;
  gap: var(--cw-dots-gap);
  /* No padding on any side. The ring is placed from the active dot's
     offsetLeft, measured from the row's border box, while `left: 0` resolves
     against its padding box — with padding at zero the two frames coincide and
     the ring needs no correction term.

     The row is therefore flush: the last swatch's right edge lands exactly on
     the frame's right edge below. The indicator ring is box-shadow and takes
     no part in layout, so while the last colourway is active it reaches
     --cw-reach past that line. That is the cost of aligning the swatches
     rather than the ring; padding-right: var(--cw-reach) aligns the ring
     instead and insets the swatches by the same amount. */
  padding: 0;
  margin-bottom: calc(var(--cw-dot) * 0.3);
}
/* The indicator is one element that travels, not a ring that appears on each
   dot in turn. It sits behind the swatches and paints its gap in the page
   colour, so the disc on top stays crisp. */
.proj-cw__ring {
  position: absolute; left: 0; top: 0; z-index: 0;
  width: var(--cw-dot); height: var(--cw-dot); border-radius: 50%;
  box-shadow: 0 0 0 var(--cw-gap) var(--background),
              0 0 0 calc(var(--cw-gap) + var(--cw-ring-w)) var(--cw-ring-c, transparent);
  transform: translate(var(--cw-ring-x, 0px), var(--cw-ring-y, 0px));
  transition: transform var(--cw-ring-move) var(--cw-ease),
              box-shadow 260ms linear;
  pointer-events: none;
}
.proj-cw__dot {
  position: relative; z-index: 1;
  appearance: none; border: 0; padding: 0; background: none; cursor: pointer;
  width: var(--cw-dot); height: var(--cw-dot); border-radius: 50%;
  display: block; line-height: 0;
  transition: transform 240ms var(--cw-ease);
}
.proj-cw__disc {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  /* 135deg points at the bottom-right corner, so the body colour takes the
     top-left half exactly as it does on the deck's swatches. */
  background: linear-gradient(135deg, var(--cw-body) 0 50%, var(--cw-accent) 50% 100%);
  /* Cream reads 1.14:1 against the page. The hairline is what keeps the pale
     discs from dissolving into the ground; it is not decoration. */
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.10);
}
/* A gentler lift than the small build used: at 48px a 1.12 scale pushes the
   disc out past the indicator ring that is supposed to contain it. */
.proj-cw__dot:hover { transform: scale(1.06); }
.proj-cw__dot:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; }

/* ---- the frame: the grid itself, so the padding IS the margin ---- */
.proj-cw__stage {
  aspect-ratio: 16 / 9;
  padding: var(--cw-margin);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--cw-gutter);
}
/* Two slots instead of three. 6:4 rather than two equal halves because the two
   renders are not the same shape — the front cut-out is landscape-ish and the
   back panel is portrait — and at 6:4 each very nearly fills its slot under
   object-fit: contain, so neither has to be cropped to look deliberate.
   The 80px margin and the 20px gutter are untouched: only the division of what
   is left between them changes. */
.proj-cw--pair .proj-cw__stage { grid-template-columns: 6fr 4fr; }
.proj-cw--pair .proj-cw__slot  { grid-column: auto; }

/* Three slots in two rows: one full-width above a 50/50 pair. One gutter token
   does both axes, so the 20px between the rows and the 20px between the bottom
   columns are the same number and stay that way as the grid scales. Equal rows,
   because a soundbar seen face on and one seen end on want nearly the same
   height — 1280/4.68 and 630/2.32 land within 2px of each other at 1440. */
.proj-cw--stack .proj-cw__stage {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
}
.proj-cw--stack .proj-cw__slot       { grid-column: auto; }
.proj-cw--stack .proj-cw__slot--wide { grid-column: 1 / -1; }
/* The stagger follows the hero, not the technique. On the other two variants
   the fade slot is the big one and leads, so the delay sits on the tracks.
   Here the full-width slot is the one that slides, so the delay moves to the
   fades and the bar still turns first. */
.proj-cw--stack .proj-cw__track { transition-delay: 0s; }
.proj-cw--stack .proj-cw__fig   { transition-delay: var(--cw-stagger); }

.proj-cw__slot {
  grid-column: span 2;
  position: relative;
  min-width: 0;
  overflow: hidden;                      /* the mask the track slides inside */
  background: var(--cw-tile);
  border-radius: var(--radius-lg);       /* rounded frame: tokens.json radius-lg */
}

/* ---- slot 1: the cross-fade ---- */
.proj-cw__fig {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity var(--cw-fade) var(--cw-ease);
}
.proj-cw__fig.is-on { opacity: 1; }

/* ---- slots 2 and 3: the slide ---- */
.proj-cw__track {
  display: flex;
  width: 100%; height: 100%;
  /* --cw-at is a position on an EXTENDED track that carries the colourways
     twice over, not an index into four cells. Each cell is one slot wide, so
     the track travels exactly one slot per step and always in the same
     direction: wrapping from the last colourway to the first slides forward
     into the duplicate rather than rewinding across the whole strip.
     project.js then shifts the position back by one full set with the
     transition suppressed — the cells repeat with that exact period, so the
     pixels under the mask do not change and the shift cannot be seen.
     The delay is what makes these two follow the hero. */
  transform: translate3d(calc(var(--cw-at, 0) * -100%), 0, 0);
  transition: transform var(--cw-slide) var(--cw-ease) var(--cw-stagger);
}
.proj-cw__cell { flex: 0 0 100%; height: 100%; margin: 0; }

/* ---- a slide slot can run down instead of across ----
   column-reverse is what makes "the next render descends into view" fall out
   of the same index the horizontal tracks use. In a reversed column the first
   child sits at the main-start, which is the BOTTOM of the box, so cells 1..n
   overflow upwards — out of sight above the mask. Translating the track down
   by one cell per step therefore lowers the next render into the frame, and
   --cw-at keeps exactly the meaning it has on the horizontal tracks: no second
   code path, no sign flip in the script, and the one-way wrap is inherited
   whole.

   The percentage resolves against the track's own height, and the track is
   one cell tall, so 100% is exactly one step. */
.proj-cw__slot--vert .proj-cw__track {
  flex-direction: column-reverse;
  transform: translate3d(0, calc(var(--cw-at, 0) * 100%), 0);
}
.proj-cw__slot--vert .proj-cw__cell { width: 100%; }

.proj-cw__fig img, .proj-cw__cell img {
  display: block; width: 100%; height: 100%;
  /* contain by default: a cut-out has a silhouette, and cropping one to fit a
     box cuts the product. */
  object-fit: contain;
}
/* The exception, declared per slot rather than assumed from position: a render
   that is already a flat, full-frame crop with its own background and no
   silhouette to protect. It fills its block edge to edge, with no letterbox
   between the block's background and the picture.

   This is only safe because the 6:4 split was sized to these renders — the
   back panel is 0.761 against a 0.775 block, so `cover` trims under 2% of the
   height. Point it at a render whose proportion is not already close to its
   block and `cover` will take a real bite out of the product. */
.proj-cw__slot--bleed .proj-cw__fig img,
.proj-cw__slot--bleed .proj-cw__cell img { object-fit: cover; }

/* ---- tiers ---- */
/* No per-tier swatch size: 48px is constant and --cw-dots-gap absorbs the
   narrowing. The grid below is handled by the two percentages alone. */

/* Below 600 the three-up stops working: at a 350px column each slot would be
   100px wide. The 16:9 frame is a desktop grid, so the phone releases it and
   stacks the three views. Each slot keeps its own mask, so the hero still
   fades and the other two still slide — the motion survives, only the
   arrangement changes. */
@media (max-width: 599px) {
  .proj-cw { --cw-margin: 0px; --cw-gutter: 12px; }
  .proj-cw__stage,
  .proj-cw--pair .proj-cw__stage,
  .proj-cw--stack .proj-cw__stage {
    aspect-ratio: auto; padding: 0;
    grid-template-columns: 1fr; grid-template-rows: none;
  }
  .proj-cw__slot { grid-column: 1; aspect-ratio: 27 / 34; }
  /* The portrait block above suits a standing speaker. A soundbar is the
     opposite shape, so the stacked variant keeps its own proportions once the
     rows collapse into a single column. */
  .proj-cw--stack .proj-cw__slot       { aspect-ratio: 2 / 1; }
  .proj-cw--stack .proj-cw__slot--wide { aspect-ratio: 3 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .proj-cw__fig, .proj-cw__track, .proj-cw__ring, .proj-cw__dot { transition: none; }
}


/* ==========================================================================
   Embodied Sound — the page's own scope
   Helvetica Neue LT Pro, per the Figma. The family is NOT self-hosted: it is a
   licensed Monotype face and no files for it are in assets/fonts/, so this
   declares it by name. A visitor who has it installed gets it; everyone else
   falls through the chain below to the nearest neo-grotesque their system has.
   To serve it to every visitor, drop the licensed .woff2 files into
   assets/fonts/ and add an @font-face block — see the one below, commented out
   because a @font-face pointing at files that are not there 404s on every load.

   SCOPING: this is the ONLY place the family is named, and it is set on a
   custom property under .proj-edge — a class on <html> for this page alone.
   Nothing here touches html, body or *, so it cannot reach another project.
   The eleven rules below are the complete list of what uses it.

   Only type and one accent are scoped here. Every interaction on the page is
   the site's own component, unmodified — the rule the Panasonic audit set.
   ========================================================================== */

/* Ready for the licensed files. Uncomment once they are in assets/fonts/.
@font-face { font-family: "Helvetica Neue LT Pro"; font-weight: 300; font-style: normal;
             font-display: swap; src: local("Helvetica Neue LT Pro 45 Light"),
             url("../assets/fonts/helvetica-neue-lt-pro-45-light.woff2") format("woff2"); }
@font-face { font-family: "Helvetica Neue LT Pro"; font-weight: 400; font-style: normal;
             font-display: swap; src: local("Helvetica Neue LT Pro 55 Roman"),
             url("../assets/fonts/helvetica-neue-lt-pro-55-roman.woff2") format("woff2"); }
@font-face { font-family: "Helvetica Neue LT Pro"; font-weight: 500; font-style: normal;
             font-display: swap; src: local("Helvetica Neue LT Pro 65 Medium"),
             url("../assets/fonts/helvetica-neue-lt-pro-65-medium.woff2") format("woff2"); }
@font-face { font-family: "Helvetica Neue LT Pro"; font-weight: 700; font-style: normal;
             font-display: swap; src: local("Helvetica Neue LT Pro 75 Bold"),
             url("../assets/fonts/helvetica-neue-lt-pro-75-bold.woff2") format("woff2"); }
*/

.proj-edge {
  /* The real family first, then its own alternate spellings, then the nearest
     grotesques. No synthetic fallback is listed that would change the design's
     proportions — every name here is a Helvetica or a Helvetica-metric face. */
  /* one stack, declared once, in tokens.json as type.families["helvetica-neue"].
     It used to be spelled out here as well; two copies of a font stack is two
     places to forget. */
  --edge-face: var(--font-helvetica-neue);
  --edge-accent: #ffa67d;                 /* sampled from the deck itself */
  /* Its own type scale (--edge-meta / -lede / -title / -body / -micro) was retired
     on 18 Nov: titles, captions and reading now use the same project styles as
     every other project page (proj-title / proj-label / proj-body). Only the face
     and the accent stay this page's own. */
}
.proj-edge .proj-hero__name {
  /* The same title as every project page (proj-display: size, weight, leading,
     tracking, uppercase). Only the face is this page's own, as on Aria and Samsung. */
  font-family: var(--edge-face);
}
/* Same sizes, weights and tracking as every project page; the face alone is swapped. */
.proj-edge .proj-hero__meta, .proj-edge .proj__lede, .proj-edge .proj__title,
.proj-edge .proj__aside, .proj-edge .proj-fold__sum, .proj-edge .proj__body,
.proj-edge .proj__note, .proj-edge .proj-fold__btn { font-family: var(--edge-face); }
/* Its section titles alone have their own style, edge-title (tokens.json, per tier),
   so they can be sized apart from every other project page. */
.proj-edge .proj__title {
  font: var(--t-edge-title-font); letter-spacing: var(--t-edge-title-tracking);
  font-family: var(--edge-face);
}
.proj-edge .proj__body strong { font-weight: 700; }

/* ---------- the reading block ----------
   A heading, its tag, and prose beside them. Three on this page: the premise,
   the invention, the system. One layout for all three — there is no longer a
   plain variant and a wide variant, because every instance wants the wide one.

   THE TAG SITS ABOVE THE NAME and both hold a narrow left rail; the prose and
   anything under it take a right column more than twice as wide. In a 12-column
   reading that is roughly four columns to the rail and eight to the content.

   NOTHING HERE IS STICKY. An earlier build parked the rail below the blur band
   on scroll; measured, the shortest of these sections is 361px tall against a
   64px rail, so there were 184px of travel — a fifth of a screen — and it was
   not worth the rule. These sections are short by nature: a heading, two
   paragraphs, and sometimes a list. Static is the standard here, and a sticky
   rail should only come back for a section with a screen or more of content to
   travel past.

   The 2.3fr is not a taste call. Three PatentLink cards abreast need ~720px of
   column before the longest name stops wrapping; 1.6fr gave 440 and 2.1fr gave
   762 with the measure cap on. 2.3fr gives 784 with no cap. */
.proj-edge__say .proj-split { align-items: start; }
.proj-edge__say .proj__body + .proj__body { margin-top: var(--space-4); }
.proj-edge__say .proj__aside {
  margin: 0 0 var(--space-4);
  color: var(--label);
  text-align: left;                    /* the base rule right-aligns it */
}

/* The prose fills its column. This is a deliberate override of the site-wide
   `--proj-measure` cap: at 1440 the line runs 784px, about 75 characters,
   against the 66 the token asks for.

   It is accepted for THIS block type because these are two-paragraph standfirsts
   rather than columns of body text, and because the alternative is worse — the
   cap was previously applied to the column to keep a card list flush with the
   prose, and it bought those flush edges by squeezing every card to 218px. Both
   ways give flush edges; only one leaves room for what sits underneath. */
.proj-edge__say .proj__body { max-width: none; }

@media (min-width: 960px) {
  .proj-edge__say .proj-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr);
    column-gap: calc(var(--proj-head-gap) * 1.5);
  }
  .proj-edge__say .proj-tech { margin-top: var(--space-6); }
}
/* The COLUMN is the container anything inside it measures against, because a
   list that sets its own columns cannot answer a query about its own width.
   Declared on all three blocks even though only one carries a list — a container
   with nothing querying it costs nothing, and the next list to go in one of
   these columns works without remembering this line. */
.proj-edge__say .proj-split > :last-child {
  container-type: inline-size;
  container-name: techcol;
}

/* ---------- PatentLink ----------
   One row per patented technology: name, patent number, what it does, and an
   arrow out to Edge Sound Research's page for it.

   CORNERS: the reference shows these rounded, but the site-wide rule from the
   overlap-window audit is zero radius on every rectangle, and the whole site
   measures zero. So the radius is a token, defaulting to 0 — square ships, and
   flipping --tech-radius is the one change needed if the rounded version wins.

   It is a <ul> because it is a list: three peers, fixed order, each a link. The
   grid is 1fr auto 1fr auto so the name and the outcome share the slack while
   the patent number and the arrow stay put — the row holds its shape whatever
   the strings are. */
.proj-edge .proj-tech {
  --tech-radius: 0px;
  /* cqw, NOT vw. A card's padding should scale with the card, not the window:
     on vw, a 1440 window pushed these to 26px a side on a 252px card, eating
     52px of the ~200 the longest name needs. The list sits in a container, so
     cqw is available and is the honest unit. */
  --tech-pad-y: clamp(14px, 1cqw + 9px, 22px);
  --tech-pad-x: clamp(16px, 1.1cqw + 8px, 22px);
  list-style: none; margin: var(--space-5) 0 0; padding: 0;
  display: grid; gap: var(--space-2);
}
/* The card is a BLOCK, not a row: name and number at the head, outcome dropped
   to the foot, arrow holding the top right. Three of these go abreast when the
   list has the width for it, and stack when it does not — which is the whole
   reason the row's old four-column one-line problem stopped mattering. */
.proj-edge .proj-tech__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr auto;
  align-items: start; align-content: start;
  gap: var(--space-2) var(--space-4);
  padding: var(--tech-pad-y) var(--tech-pad-x);
  background: var(--card); border-radius: var(--tech-radius);
  color: var(--text); text-decoration: none;
  min-height: 100%;                    /* fill the tallest card when abreast */
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
/* The name and the number span BOTH columns; the outcome and the arrow share
   the foot. The arrow used to sit top-right beside the name, which quietly took
   29px — its own 1em plus the column gap — out of the name's track on every
   card. At three abreast that is the difference between "Environmental
   Renderer" setting on one line and not: 223px of card inner at 1440 became
   194px of usable name track, against 193px of name. Moved to the foot it
   costs the name nothing, and the outcome and the way out read as one line of
   furniture at the bottom of the block. */
.proj-edge .proj-tech__name { grid-column: 1 / -1; grid-row: 1; }
.proj-edge .proj-tech__pat  { grid-column: 1 / -1; grid-row: 2; }
.proj-edge .proj-tech__out  { grid-column: 1; grid-row: 4; align-self: end; }
.proj-edge .proj-tech__arr  { grid-column: 2; grid-row: 4; align-self: end; justify-self: end; }
.proj-edge .proj-tech__name {
  font: var(--t-proj-title-font); letter-spacing: var(--t-proj-title-tracking);
  font-family: var(--edge-face); text-transform: uppercase;
  /* Insurance only: none of the three wrap at any width now. Kept so a longer
     technology name added later breaks evenly instead of stranding one word on
     a line of its own. Ignored by browsers that do not have it. */
  text-wrap: balance;
}
.proj-edge .proj-tech__pat {
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  font-family: var(--edge-face);
  color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.proj-edge .proj-tech__out {
  font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking);
  font-family: var(--edge-face);
  padding-top: var(--space-4); color: var(--text-2);
}
.proj-edge .proj-tech__arr { width: 1em; height: 1em; flex: none; }
/* the whole row is the target, so the hover is the whole row */
@media (hover: hover) {
  .proj-edge .proj-tech__row:hover { background: var(--divider); }
}
.proj-edge .proj-tech__row:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
/* Three abreast once the column has 720px, and NOT BEFORE.

   The number is not round for tidiness — it is where the longest name stops
   wrapping. "Environmental Renderer" sets 193px at the three-up title size; at
   a 720px column each card gets a 203px name track, so it holds. Below that the
   three stack at full column width, where every name has 480px or more.

   It was 640, which is merely where three cards *fit*. They fit and wrapped: at
   1280 a card came out 213px wide holding a 218px name. A threshold that asks
   "do three fit" rather than "do three work" is how the page ended up squeezed,
   so this one asks the second question.

   Measured name track against the 193px it needs: 276px at 1728, 258 at 1600,
   223 at 1440, 207 at 1366 — then stacked from 1340 down. */
@container techcol (min-width: 720px) {
  .proj-edge .proj-tech { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proj-edge .proj-tech__item { display: grid; }
  /* A card in a three-up row carries a slightly smaller title than a full-width
     one. At body size the longest name needs 229px of bold and a 1440 card has
     223 — a four-pixel miss, and chasing it with padding and column ratios kept
     landing on one- to five-pixel margins that any font fallback would flip.
     (This page is one: Helvetica Neue LT Pro is not installed, so it renders in
     the next name on the stack today.) 0.9em opens ~17px of headroom instead,
     and a 17px bold title against 19px regular prose still reads as a title.
     Full-width stacked cards keep the body size — they have 600px to play with. */
  /* (was: a 0.9× title in three-up cards; proj-title is small enough to fit as is) */
  /* The `1fr` row above already drops the outcome to the foot of the tallest
     card; this is only the MINIMUM clearance for a card that has no slack to
     give. It was --space-6, which on top of the 1fr left a 32px hole that read
     as a mistake once the names went to two lines. */
  .proj-edge .proj-tech__out { padding-top: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) { .proj-edge .proj-tech__row { transition: none; } }

/* ---------- Voices (In Any Scenario) ----------
   Four cards in the four-up card grid, one per scenario (Sports, Music, Movie,
   Gaming). Each is the use-case card (.proj-use__btn / __name / __line) with a
   film still as its picture, and opens its three films in the site's one
   dialog (js/modal.js) with sound and controls ("sound": true on the slide),
   the quote as the caption. What is left here is only what the use-case card
   does not already draw: the head, the 3:4 still and its play badge. */
.proj-edge .proj-voices__head { align-items: flex-end; }
.proj-edge .proj-voices__head .proj__aside { margin: 0 0 var(--space-4); text-align: left; }
.proj-edge .proj-voices__shot {
  position: relative; display: block; overflow: hidden;
  background: var(--card); border-radius: 0;
  aspect-ratio: 3 / 4;
}
.proj-edge .proj-voices__shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur-hover) var(--ease-out);
}
/* the picture opens films, so it says so */
.proj-edge .proj-voices__play {
  position: absolute; left: var(--space-4); bottom: var(--space-4);
  width: 34px; height: 34px; display: grid; place-items: center;
  background: #000; color: #fff; opacity: 0.88;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.proj-edge .proj-voices__play svg { width: 11px; height: 11px; fill: currentColor; }
@media (hover: hover) {
  .proj-edge .proj-use__btn:hover .proj-voices__shot img { transform: scale(1.035); }
  .proj-edge .proj-use__btn:hover .proj-voices__play { opacity: 1; transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .proj-edge .proj-voices__shot img, .proj-edge .proj-voices__play { transition: none; }
  .proj-edge .proj-use__btn:hover .proj-voices__shot img { transform: none; }
}
/* the head stacks under its own width, like every other head on the site */
@media (max-width: 599px) {
  .proj-edge .proj-voices__head { align-items: flex-start; }
}

/* ---------- the project disclaimer ----------
   Built from the deck's own closing page: the mark and the line at the top with
   the links opposite, a rule, then the fine print in two columns. */
/* The navbar floats over the page bottom — measured, it sits 76px into the last
   section on every project page. Everywhere else the last thing there is a
   footer with its own padding, so nothing collides; here the last thing is the
   fine print, which would read underneath the nav. The clearance is this
   block's, not the navbar's, so no other page is affected.
   The top is 0 because the preceding section's own rhythm already sets the gap;
   padding here would not collapse with it and the two would stack. */
.proj-disc { padding-block: 0 clamp(104px, 11vh, 168px); }
.proj-disc__top {
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  align-items: flex-start; justify-content: space-between;
}
.proj-disc__name {
  margin: 0; font: var(--t-proj-title-font); letter-spacing: var(--t-proj-title-tracking);
  font-family: var(--edge-face); text-transform: uppercase;
}
.proj-disc__name sup { font-size: 0.42em; vertical-align: super; font-weight: 600; }
.proj-disc__tag {
  margin: var(--space-2) 0 0; font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  font-family: var(--edge-face); text-transform: uppercase;
  color: var(--text-2);
}
.proj-disc__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
/* This WAS the whole component. It is now LinkOut in css/style.css, and all
   that is left here is the size the disclaimer wants — everything else, the
   hairline, the arrow, the hover and the focus ring, comes from the global
   rule. The markup carries `class="link-out proj-disc__link"`. */
.proj-disc__link { font: var(--t-proj-body-font); letter-spacing: var(--t-proj-body-tracking); font-family: var(--edge-face); }
.proj-disc__fine {
  margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px solid var(--divider);
  columns: 2; column-gap: var(--space-7);
  font: var(--t-proj-label-font); letter-spacing: var(--t-proj-label-tracking);
  font-family: var(--edge-face); line-height: 1.55; color: var(--text-2);
}
.proj-disc__fine p { margin: 0 0 var(--space-4); break-inside: avoid; }
.proj-disc__fine sup { font-size: 0.85em; }
@media (max-width: 759px) { .proj-disc__fine { columns: 1; } }

/* ==========================================================================
   Embodied Sound — "Hearing vs Feeling"
   The entry under the premise title opens work/hearing-feeling.html as a
   full-bleed overlay (js/experience.js): a circle that starts as the entry's
   own play disc and grows to the window's farthest corner. Close, Esc or Back
   shrink it back into the disc.
   ========================================================================== */

/* ---------- the entry: a hairline capsule holding a solid play disc ----------
   The hairline is an inset shadow, not a border, so hover changes colour and
   never size: nothing on the page moves when the cursor arrives. */
.xp-entry {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; margin-top: var(--space-6); padding: 0 22px 0 5px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--text);
  color: var(--text); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 50%;
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.xp-entry__disc {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--text); color: var(--background);
}
.xp-entry__disc svg { width: 12px; height: 12px; margin-left: 2px; fill: currentColor; }
.xp-entry__label {
  font-family: var(--edge-face); font-weight: 500;
  font-size: 15px; letter-spacing: -0.005em; white-space: nowrap;
}
/* hover: the capsule fills with the Embodied Sound orange (the disc and the
   words stay black on it, 11 : 1) and swells 5 %; leaving reverses both. The
   swell is a transform, so nothing around it moves. Fine pointers only, so a
   tap never leaves it stuck. */
@media (hover: hover) and (pointer: fine) {
  .xp-entry:hover { background: var(--edge-accent); box-shadow: inset 0 0 0 1px var(--edge-accent); transform: scale(1.05); }
}
/* press: a quick give before the overlay takes over */
.xp-entry:active { background: var(--edge-accent); box-shadow: inset 0 0 0 1px var(--edge-accent); transform: scale(.98); transition-duration: 120ms; }
.xp-entry:focus-visible {
  outline: none;
  background: var(--edge-accent);
  box-shadow: inset 0 0 0 1px var(--edge-accent), 0 0 0 2px var(--background), 0 0 0 4px var(--text);
}
.xp-entry.is-open { visibility: hidden; }        /* while the overlay is up, the real button waits under it */

@media (prefers-reduced-motion: reduce) { .xp-entry, .xp-entry:hover { transform: none; } }

/* ---------- the overlay ---------- */
.xp { position: fixed; inset: 0; z-index: 9000; }  /* over everything but the pointer, which it hides */
.xp[hidden] { display: none; }
.xp__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: var(--background); }
.xp__veil { position: absolute; inset: 0; background: var(--text); pointer-events: none; }
/* the page's pointer cannot follow the mouse into the iframe (the experience
   draws its own), so it steps aside rather than freezing on screen */
.xp-open .pointer, .xp-open .pointer-ink { opacity: 0 !important; }
/* the lock: no page scroll while the overlay is up, and the scrollbar's width
   held as padding so the page underneath keeps its exact width (no reflow, so
   nothing re-measures while it is covered) */
html.xp-open { overflow: hidden; padding-right: var(--xp-gap, 0px); }

/* ==========================================================================
   Embodied Sound — the Spatial Activation Room entrance
   A 50/50 split: the room's render on the left, the words and the entry on the
   right, centred on each other. Type is the page's own (.proj__aside / __title /
   __body, left-set by .proj-edge__say) and the way in is the same .xp-entry as
   "Feel the difference", opening work/spatial-room.html in the same overlay.
   Pointing at the render or at the entry lights the room up (the "all active"
   render crossfades in), and the render pointed at shows the entry's own hover,
   so the two read as one control. No JS: :has() carries the state.
   ========================================================================== */
@media (min-width: 960px) {
  .proj-edge__say.proj-room .proj-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}
/* title and body share a column here (elsewhere they sit side by side), so they need the page's own step between them */
.proj-room .proj__title + .proj__body { margin-top: var(--space-5); }
.proj-room__visual { display: grid; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.proj-room__visual > img { grid-area: 1 / 1; display: block; width: 100%; height: auto; }
.proj-room__on { opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.proj-room:has(.xp-entry:focus-visible) .proj-room__on,
.proj-room:has(.xp-entry.is-open) .proj-room__on,
.proj-room__visual.is-open .proj-room__on { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .proj-room:has(.proj-room__visual:hover) .proj-room__on,
  .proj-room:has(.xp-entry:hover) .proj-room__on { opacity: 1; }
  .proj-room:has(.proj-room__visual:hover) .xp-entry {      /* = .xp-entry:hover */
    background: var(--edge-accent); box-shadow: inset 0 0 0 1px var(--edge-accent); transform: scale(1.05);
  }
}
@media (prefers-reduced-motion: reduce) { .proj-room:has(.proj-room__visual:hover) .xp-entry { transform: none; } }

/* ---------- the two ranges in the premise ----------
   Bold, in the site's burnt orange (--accent2, 4.5 : 1 on the page). The page's
   lighter orange (#ffa67d) is only 1.8 : 1 as text, so it stays a fill. */
.proj-edge .proj__body .proj-freq { font-weight: 700; color: var(--accent2); white-space: nowrap; }

/* ==========================================================================
   SERIF (tokens.json: type.families.serif, style serif-display): the project names in the footer's
   Previous / Next links. Only the family and the style change — the size,
   line-height, case and tracking stay what the footer already sets.
   Hover: the name and its label turn to the accent in .25s.
   ========================================================================== */
.proj-foot__name { font: var(--t-serif-footer-font); letter-spacing: var(--t-serif-footer-tracking); }   /* its own serif style: size + weight tunable in the Design System */
.proj-foot a { --brand: var(--accent2); transition: color .25s; }
.theme-dark .proj-foot a { --brand: var(--accent); }
.proj-foot__name, .proj-foot__dir { transition: color .25s; }
.proj-foot a:hover, .proj-foot a:focus-visible,
.proj-foot a:hover .proj-foot__name, .proj-foot a:focus-visible .proj-foot__name,
.proj-foot a:hover .proj-foot__dir, .proj-foot a:focus-visible .proj-foot__dir { color: var(--brand); }
