/* offbrand — 44–46: 04 canvas ("Board")'s styles, plus the opening sequence's frame (see the end of the file) */

:root {
  --canvas: #e9e9e6;
  --dot: rgba(24, 24, 20, 0.2);
  --ink: #141414;
  --ink-2: #3a3a37;
  --muted: #74746f;
  --faint: #a3a39d;
  --paper: #fbfbf9;
  --paper-2: #f3f3f0;
  --line: rgba(20, 20, 18, 0.09);
  --line-2: rgba(20, 20, 18, 0.16);
  --sel: #2f62ff;
  --pin: #e2432a;
  --sticky: #f5e589;
  --sticky-ink: #2b2713;
  --focus: var(--sel);
  --sans: "Timeless Sans", ui-sans-serif, system-ui, sans-serif;
  --serif: "Timeless Serif", ui-serif, Georgia, serif;
  --settle: cubic-bezier(.16, 1, .3, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
  --hud-shadow: 0 0 0 1px rgba(20, 20, 18, .06), 0 1px 2px rgba(20, 20, 18, .05), 0 10px 30px -14px rgba(20, 20, 18, .22);
  --radius: 14px;
  color-scheme: light;
}

html, body { height: 100%; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-variation-settings: "STYL" 100;
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  overscroll-behavior: none;
}
::selection { background: rgba(47, 98, 255, .18); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 500; transform: translateY(-160%);
  transition: transform .25s var(--out);
}
.skip-link:focus-visible { transform: none; }

kbd {
  font: 500 11px/1 var(--sans); font-variation-settings: "STYL" 100;
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 6px; color: var(--muted); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line);
}
button { background: none; border: 0; padding: 0; cursor: pointer; }
svg path, svg circle { vector-effect: non-scaling-stroke; }

/* ---------------------------------------------------------------- canvas */

.viewport {
  position: fixed; inset: 0; overflow: hidden; touch-action: none; cursor: grab;
  -webkit-user-select: none; user-select: none; contain: strict;
}
.is-panning .viewport, .is-panning .viewport * { cursor: grabbing !important; }

.dots {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; will-change: transform, opacity;
  background-image: radial-gradient(circle at 1.5px 1.5px, var(--dot) 1.05px, transparent 1.45px);
  background-size: 24px 24px;
}
.dots-b { background-size: 48px 48px; }

.board {
  position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0;
  --k: 1;
}

/* title card: the logo inks here */
.title-card { position: absolute; left: 0; top: 0; text-align: center; padding: 0 0 8px; }
.title-logo { width: 560px; margin: 0 auto; font-size: 0; }
.title-logo svg { width: 100%; height: auto; overflow: visible; fill: var(--ink); }
.title-desc {
  margin-top: 34px; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink-2);
}
.title-line {
  margin: 12px auto 0; max-width: 560px; font: 300 30px/1.18 var(--serif); letter-spacing: -.012em; color: var(--ink); text-wrap: balance;
}
.title-hint { margin-top: 22px; font-size: 14px; color: var(--muted); }
.hint-touch { display: none; }
@media (hover: none) { .hint-desk { display: none; } .hint-touch { display: inline; } }
.is-booting .title-logo { visibility: hidden; }

/* clusters */
.cluster { position: absolute; left: 0; top: 0; }
.cl-label { position: absolute; left: 0; top: 0; pointer-events: none; transition: opacity .5s var(--out); }
.cl-name {
  font: 300 76px/1 var(--serif); letter-spacing: -.035em; color: var(--ink); display: flex; align-items: flex-start; gap: 10px;
}
.cl-count { font: 500 15px/1 var(--sans); font-variation-settings: "STYL" 100; letter-spacing: .04em; color: var(--muted); margin-top: 10px; }
.cl-blurb { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* tiles */
.tile {
  position: absolute; left: 0; top: 0; padding: 10px; contain: layout paint style;
  transition: opacity .5s var(--out);
}
.tile-media {
  position: relative; overflow: hidden; border-radius: 6px; background: #dcdcd8;
  box-shadow: 0 1px 1px rgba(20, 20, 18, .06), 0 6px 18px -8px rgba(20, 20, 18, .28);
}
.tile-media img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--out);
  -webkit-user-drag: none;
}
.tile-media.is-loaded img { opacity: 1; }
.tile-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 calc(2px * var(--k)) var(--sel); opacity: 0; transition: opacity .18s var(--out);
}
.tile:hover .tile-media::after, .tile:focus-within .tile-media::after, .tile.is-focus .tile-media::after { opacity: 1; }
.tile.is-focus .tile-media::after { box-shadow: inset 0 0 0 calc(1.5px * var(--k)) var(--sel); }
.tile-cap { padding: 14px 2px 0; display: grid; gap: 2px; transition: opacity .4s var(--out); }
.tile-link { display: grid; gap: 2px; outline: none; -webkit-user-drag: none; }
.tile:not(.is-live) .tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile-title { font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.tile-meta { font-size: 14px; color: var(--muted); }
.tile-out { margin-top: 6px; font: italic 300 16px/1.3 var(--serif); color: var(--ink-2); }
.board[data-lod="far"] .tile-cap, .board[data-lod="far"] .cl-blurb, .board[data-lod="far"] .title-hint { opacity: 0; }

/* live tiles */
.tile.is-live .tile-media { background: var(--paper); --lv-fg: var(--ink); --lv-bg: var(--paper); --lv-accent: var(--pin); --lv-muted: var(--muted); }
.tile.is-live .tile-media[data-live="film"] { background: #e2e2de; }
.tile.is-live .tile-media { cursor: pointer; }
.tile.is-live .tile-media .lv { opacity: 0; transition: opacity .45s var(--out); }
.tile.is-live .tile-media.is-on .lv { opacity: 1; }
.tile.is-live .tile-media.is-on .live-poster { opacity: 0; }
.tile.is-live .tile-media { will-change: transform; }

.live-poster {
  position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .4s var(--out); color: var(--ink);
}
.live-poster-tag {
  position: absolute; left: 14px; top: 12px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pin); display: flex; align-items: center; gap: 6px;
}
.live-poster-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live-poster-glyph { display: block; }
.live-poster--switch .live-poster-glyph { width: 92px; height: 52px; border-radius: 99px; background: var(--pin); position: relative; }
.live-poster--switch .live-poster-glyph::after { content: ""; position: absolute; right: 5px; top: 5px; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.live-poster--ink .live-poster-glyph { width: 70%; aspect-ratio: 425.8/107.9; background: var(--ink); -webkit-mask: url(/brand/offbrand-logo.svg) center/contain no-repeat; mask: url(/brand/offbrand-logo.svg) center/contain no-repeat; }
.live-poster--palette .live-poster-glyph { width: 84%; height: 56%; border-radius: 14px; background: linear-gradient(90deg, oklch(.97 .02 32) 0 14.3%, oklch(.9 .05 32) 0 28.6%, oklch(.78 .1 32) 0 42.9%, oklch(.64 .15 32) 0 57.1%, oklch(.52 .17 32) 0 71.4%, oklch(.4 .13 32) 0 85.7%, oklch(.27 .07 32) 0); }
.live-poster--type .live-poster-glyph::before { content: "offbrand"; font: 300 64px/1 var(--sans); font-variation-settings: "STYL" 100; letter-spacing: -.03em; }
.live-poster--dial .live-poster-glyph { width: 62%; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from -1deg, var(--ink) 0 2deg, transparent 2deg 7.5deg); -webkit-mask: radial-gradient(closest-side, transparent 76%, #000 77% 100%); mask: radial-gradient(closest-side, transparent 76%, #000 77% 100%); opacity: .35; }
.live-poster--marquee .live-poster-glyph::before { content: "Identity — Interface — Motion — Visuals"; white-space: nowrap; font: 300 64px/1 var(--serif); letter-spacing: -.03em; }
.live-poster--marquee { overflow: hidden; justify-items: start; padding-left: 22px; }
.live-poster--film { background: radial-gradient(120% 90% at 50% 60%, #f6f6f3, #dcdcd7); }
.live-poster--film .live-poster-glyph { width: 46%; aspect-ratio: 1.4; background: url(/img/studio.jpg) center/cover; border-radius: 4px; box-shadow: 18px -10px 0 -4px #cfcfca, 34px -18px 0 -8px #c4c4bf; transform: perspective(500px) rotateY(-18deg); }

/* sticky notes */
.sticky {
  position: absolute; left: 0; top: 0; width: 140px; min-height: 92px; padding: 11px 13px 13px; z-index: 2;
  background: var(--sticky); color: var(--sticky-ink); border-radius: 2px;
  box-shadow: 0 1px 1px rgba(60, 50, 10, .1), 0 10px 18px -12px rgba(60, 50, 10, .45);
  pointer-events: none; transition: opacity .5s var(--out);
}
.sticky::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(rgba(0,0,0,.035), transparent); }
.sticky-k { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .62; }
.sticky-v { display: block; margin-top: 5px; font: 400 17px/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }

/* pinned documents */
.docs { position: absolute; left: 0; top: 0; }
.doc {
  position: absolute; left: 0; top: 0; min-height: 380px; padding: 38px 26px 26px; background: #fdfdfb; border-radius: 3px;
  box-shadow: 0 1px 1px rgba(20,20,18,.06), 0 14px 30px -18px rgba(20,20,18,.42); contain: layout paint style;
  transition: opacity .5s var(--out);
}
.doc .pin {
  position: absolute; left: 50%; top: 14px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a72, var(--pin) 55%, #a92a17); box-shadow: 0 3px 4px -1px rgba(0,0,0,.35);
}
.doc-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; outline: none; }
.doc::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 calc(2px * var(--k)) var(--sel); opacity: 0; transition: opacity .18s var(--out);
}
.doc:hover::after, .doc:focus-within::after, .doc.is-focus::after { opacity: 1; }
.doc-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pin); }
.doc-lede { margin-top: 14px; font: 300 25px/1.18 var(--serif); letter-spacing: -.01em; }
.doc-lede--big { font-size: 46px; line-height: 1; letter-spacing: -.03em; margin-top: 18px; }
.doc-steps { margin-top: 22px; display: grid; gap: 8px; font-size: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.doc-steps b { font-weight: 500; color: var(--muted); font-size: 13px; margin-right: 8px; font-variant-numeric: tabular-nums; }
.doc-caps { margin-top: 16px; display: grid; gap: 12px; }
.doc-caps li { display: grid; gap: 1px; padding-top: 10px; border-top: 1px solid var(--line); }
.doc-caps b { font-weight: 500; font-size: 16px; }
.doc-caps span { font-size: 13px; color: var(--muted); }
.doc-mail { margin-top: 26px; font-size: 18px; font-weight: 500; padding-bottom: 4px; border-bottom: 1.5px solid var(--ink); display: inline-block; }
.doc-foot { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* intro / hero state: only the title and the drum's frame are on the wall; the drum's prints wait for their cards */
.board.is-pre .tile:not(.is-mapped), .board.is-pre .sticky:not(.is-mapped), .board.is-pre .doc, .board.is-pre .cl-label { opacity: 0; }
.tile.is-mapped:not(.is-landed) .tile-media { visibility: hidden; }
.tile.is-mapped:not(.is-landed) .tile-cap { opacity: 0; transition-duration: .15s; }
.sticky.is-mapped:not(.is-landed) { opacity: 0; transition-duration: .2s; }
.is-hero .board .cluster, .is-hero .board .docs { pointer-events: none; }
.title-desc, .title-line { transition: opacity .8s var(--settle), translate .8s var(--settle); }
.title-line { transition-delay: .08s; }
.board.is-ink .title-desc, .board.is-ink .title-line { opacity: 0; translate: 0 14px; transition-duration: 0s; transition-delay: 0s; }

/* the drum's frame: an artboard selected in a design tool. Labels and strokes are sized by --k (1 / zoom) so they
   read at a constant screen size, like a design tool's chrome. */
.dframe { position: absolute; left: 0; top: 0; transition: opacity .9s var(--settle) .1s; }
.board.is-ink .dframe { opacity: 0; transition: none; }
.df-board {
  position: absolute; inset: 0; background: #fbfbf9; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(20,20,18,.05), 0 2px 3px rgba(20,20,18,.04), 0 40px 80px -48px rgba(20,20,18,.35);
  transition: background-color .7s var(--out), box-shadow .7s var(--out);
}
.df-board::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .7s var(--out);
  border: calc(1.25px * var(--k)) dashed rgba(20,20,18,.28);
}
.df-sel { position: absolute; inset: 0; box-shadow: 0 0 0 calc(1.25px * var(--k)) var(--sel); transition: opacity .35s var(--out); }
.df-h { position: absolute; width: calc(8px * var(--k)); height: calc(8px * var(--k)); margin: calc(-4px * var(--k)); background: #fff; box-shadow: inset 0 0 0 calc(1.25px * var(--k)) var(--sel); }
.df-h--tl { left: 0; top: 0; } .df-h--tr { right: 0; top: 0; } .df-h--bl { left: 0; bottom: 0; } .df-h--br { right: 0; bottom: 0; }
.df-name, .df-count {
  position: absolute; bottom: 100%; margin-bottom: calc(7px * var(--k)); font-size: calc(12px * var(--k)); line-height: 1;
  white-space: nowrap; transition: color .4s, opacity .4s;
}
.df-name { left: 0; display: flex; align-items: center; gap: calc(5px * var(--k)); color: var(--sel); font-weight: 500; }
.df-ico { width: calc(9px * var(--k)); height: calc(9px * var(--k)); border: calc(1.25px * var(--k)) solid currentColor; border-radius: 50% / 28%; }
.df-count { right: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.df-count b { font-weight: 500; color: var(--ink-2); }
.df-size {
  position: absolute; left: 50%; top: 100%; margin-top: calc(8px * var(--k)); translate: -50% 0; padding: calc(3px * var(--k)) calc(6px * var(--k));
  border-radius: calc(4px * var(--k)); background: var(--sel); color: #fff; font-size: calc(11px * var(--k)); line-height: 1; font-weight: 500;
  font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .35s var(--out);
}
/* measured gap to the title, in the design tool's red */
.df-gap { position: absolute; left: 50%; bottom: 100%; height: 64px; width: 0; border-left: calc(1px * var(--k)) solid var(--pin); transition: opacity .35s var(--out); }
.df-gap::before, .df-gap::after { content: ""; position: absolute; left: calc(-4.5px * var(--k)); width: calc(8px * var(--k)); border-top: calc(1px * var(--k)) solid var(--pin); }
.df-gap::before { top: 0; } .df-gap::after { bottom: 0; }
.df-gap b {
  position: absolute; top: 50%; left: calc(6px * var(--k)); translate: 0 -50%; padding: calc(2px * var(--k)) calc(5px * var(--k)); border-radius: calc(4px * var(--k));
  background: var(--pin); color: #fff; font-size: calc(11px * var(--k)); line-height: 1; font-weight: 500;
}
.df-hint { position: absolute; left: 0; right: 0; top: 100%; margin-top: calc(40px * var(--k)); text-align: center; font-size: calc(13px * var(--k)); color: var(--muted); white-space: nowrap; }
.hint-board { display: none; }
.is-dealt .hint-hero { display: none; }
.is-dealt .hint-board { display: inline; }
.dframe.is-sub .df-sel, .dframe.is-sub .df-size { opacity: .3; }
.df-gather {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: calc(8px * var(--k));
  height: calc(40px * var(--k)); padding: 0 calc(16px * var(--k)) 0 calc(13px * var(--k)); border-radius: calc(12px * var(--k));
  background: var(--paper); box-shadow: var(--hud-shadow); font-size: calc(14px * var(--k)); font-weight: 500; color: var(--ink-2);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--out), color .2s; white-space: nowrap;
}
.df-gather:hover { color: var(--ink); }
.df-gather-ico { width: calc(14px * var(--k)); height: calc(8px * var(--k)); border: calc(1.4px * var(--k)) solid currentColor; border-radius: 50%; }
/* dealt: the frame is an empty placeholder you can gather the prints back onto */
.is-dealt .df-board { background: rgba(251,251,249,0); box-shadow: none; }
.is-dealt .df-board::after { opacity: 1; }
.is-dealt .df-sel, .is-dealt .df-size, .is-dealt .df-gap { opacity: 0; }
.is-dealt .df-name { color: var(--muted); }
.is-board .df-gather { opacity: 1; pointer-events: auto; transition-delay: .3s, 0s; }
.board[data-lod="far"] .df-hint { opacity: 0; }

/* the drum: a canvas over the board; the hover selection traced round the card under the pointer */
.drum { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .25s; }
.drum.is-on { opacity: 1; }
.sel { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 22; pointer-events: none; opacity: 0; transition: opacity .12s; overflow: visible; }
.sel.is-on { opacity: 1; }
.sel polygon { fill: none; stroke: var(--sel); stroke-width: 1.5; stroke-linejoin: round; }
.sel rect { fill: #fff; stroke: var(--sel); stroke-width: 1.25; }
.view-list .drum, .view-list .sel { visibility: hidden; }

/* filter / focus dimming */
.board.is-filtered .is-dim { opacity: .14; }
.board.is-filtered .tile.is-dim { pointer-events: none; }
.board.has-focus .tile:not(.is-focus), .board.has-focus .doc:not(.is-focus), .board.has-focus .sticky:not(.is-focus), .board.has-focus .cl-label { opacity: .2; }


/* ------------------------------------------------------------------- hud */

.hud { position: fixed; z-index: 30; transition: opacity .6s var(--out), filter .6s var(--out), translate .6s var(--out); }
.is-intro .hud { opacity: 0; filter: blur(4px); pointer-events: none; }
.is-intro .hud-top { translate: 0 -12px; }
.is-intro .hud-bottom, .is-intro .hud-corner, .is-intro .hud-left { translate: 0 12px; }
/* on the drum only the header shows; the board's tools come in with the deal */
.is-hero .hud-bottom, .is-hero .hud-corner, .is-hero .hud-left { opacity: 0; filter: blur(4px); pointer-events: none; translate: 0 12px; }
.is-hero .hud-bottom { translate: -50% 12px; }
.hud-top { transition-delay: 0s; }
.hud-bottom { transition-delay: .08s; }
.hud-corner { transition-delay: .16s; }
.hud-left { transition-delay: .22s; }
.is-booting .hud, .is-booting .board { opacity: 0; }

.hud-top {
  left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none;
}
.hud-top > * { pointer-events: auto; }
.brand {
  display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px 0 16px; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--hud-shadow);
}
.brand-logo { width: 84px; height: auto; fill: var(--ink); }
.brand-desc { font-size: 13px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line-2); line-height: 1; }
.nav { display: flex; align-items: center; gap: 2px; height: 44px; padding: 4px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--hud-shadow); }
.nav a { height: 36px; display: grid; place-items: center; padding: 0 14px; border-radius: 10px; font-weight: 450; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current] { color: var(--ink); background: var(--paper-2); }
.nav .nav-cta { background: var(--ink); color: #fff; margin-left: 4px; font-weight: 500; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current] { background: #2b2b29; color: #fff; }
.cta-short { display: none; }

.hud-bottom { left: 50%; bottom: 20px; translate: -50% 0; max-width: calc(100vw - 32px); }
.is-intro .hud-bottom { translate: -50% 12px; }

.hero-ui {
  position: fixed; left: 50%; bottom: 24px; z-index: 30; translate: -50% 0;
  transition: opacity .5s var(--out), translate .5s var(--out), filter .5s var(--out);
}
html:not(.is-hero) .hero-ui, .is-booting .hero-ui, .is-intro .hero-ui, .is-opening .hero-ui, .has-panel .hero-ui, .view-list .hero-ui { opacity: 0; translate: -50% 12px; filter: blur(4px); pointer-events: none; }
.spread {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px 0 15px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; box-shadow: var(--hud-shadow); transition: background-color .2s;
}
.spread:hover { background: #2b2b29; }
.spread svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.spread kbd { background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); box-shadow: none; }
.toolbar {
  display: flex; align-items: center; gap: 6px; height: 48px; padding: 4px; border-radius: 16px; background: var(--paper); box-shadow: var(--hud-shadow);
}
.chips { position: relative; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; isolation: isolate; border-radius: 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip-hl {
  position: absolute; left: 0; top: 0; height: 40px; width: 40px; border-radius: 12px; background: var(--ink); z-index: -1;
  transition: transform .45s var(--settle), width .45s var(--settle);
}
.chip {
  height: 40px; padding: 0 13px; border-radius: 12px; white-space: nowrap; display: flex; align-items: center; gap: 4px;
  color: var(--ink-2); font-weight: 450; transition: color .3s var(--out);
}
.chip sup { font-size: 10px; color: var(--faint); transition: color .3s; top: -.4em; position: relative; }
.chip:hover { color: var(--ink); }
.chip[aria-checked="true"] { color: #fff; }
.chip[aria-checked="true"] sup { color: rgba(255,255,255,.55); }
.chip:focus-visible { outline-offset: -2px; }
.tb-sep { width: 1px; height: 22px; background: var(--line-2); flex: none; }
.search { position: relative; display: flex; align-items: center; height: 40px; border-radius: 12px; padding: 0 8px 0 34px; transition: background-color .2s; }
.search:focus-within { background: var(--paper-2); }
.search-ico { position: absolute; left: 11px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.search input {
  width: 96px; border: 0; background: none; outline: none; height: 40px; font-size: 14px; transition: width .4s var(--settle);
  -webkit-appearance: none; appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--muted); }
.search:focus-within input, .search input:not(:placeholder-shown) { width: 168px; }
.search:focus-within .search-kbd, .search input:not(:placeholder-shown) ~ .search-kbd { display: none; }
.search-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 4px; min-width: 0; }
.search-count:empty { display: none; }
.view-toggle { display: flex; padding: 0 2px; }
.view-toggle button { height: 40px; padding: 0 12px; border-radius: 12px; color: var(--muted); font-weight: 450; transition: color .2s, background-color .2s; }
.view-toggle button:hover { color: var(--ink); }
.view-toggle button[aria-pressed="true"] { color: var(--ink); background: var(--paper-2); }

.hud-corner { right: 20px; bottom: 20px; display: grid; gap: 8px; justify-items: end; }
.minimap {
  border-radius: 12px; background: var(--paper); box-shadow: var(--hud-shadow); overflow: hidden; cursor: pointer; padding: 0;
  transition: opacity .3s;
}
.minimap svg { display: block; }
.mm-tile { fill: #cfcfca; transition: opacity .4s; }
.mm-doc { fill: #fff; stroke: #d2d2cd; stroke-width: 6; }
.mm-sticky { fill: #ecd96a; }
.mm-logo { fill: var(--ink); opacity: .85; }
.mm-frame { fill: none; stroke: #b9b9b3; stroke-width: 8; stroke-dasharray: 24 18; }
.is-dim { }
.mm-tile.is-dim, .mm-sticky.is-dim { opacity: .25; }
.mm-view { fill: rgba(47, 98, 255, .08); stroke: var(--sel); }
.zoom { display: flex; align-items: center; gap: 2px; height: 40px; padding: 4px; border-radius: 12px; background: var(--paper); box-shadow: var(--hud-shadow); }
.zoom button { height: 32px; min-width: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); font-size: 13px; transition: background-color .2s; }
.zoom button:hover { background: var(--paper-2); }
.zoom svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; fill: none; }
.zoom-read { width: 52px; font-variant-numeric: tabular-nums; }
.zoom-fit { padding: 0 10px; border-left: 1px solid var(--line) !important; border-radius: 0 8px 8px 0 !important; margin-left: 2px; }

.hud-left { left: 20px; bottom: 20px; }
.replay {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 12px; color: var(--muted);
  background: var(--paper); box-shadow: var(--hud-shadow); font-size: 13px; transition: color .2s;
}
.replay:hover { color: var(--ink); }
.replay svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hud-left { display: flex; gap: 6px; }
.back-drum { color: var(--ink-2); font-weight: 500; }
.replay-ico { width: 40px; padding: 0; justify-content: center; }

/* skip */
.intro-ui { position: fixed; left: 50%; bottom: 28px; z-index: 40; translate: -50% 0; transition: opacity .4s var(--out), translate .4s var(--out); }
.intro-ui.is-out { opacity: 0; translate: -50% 10px; pointer-events: none; }
.intro-ui[hidden] { display: none; }
.skip {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 16px; border-radius: 12px;
  background: rgba(251, 251, 249, .9); box-shadow: var(--hud-shadow); font-weight: 500; color: var(--ink-2);
  animation: skip-in .6s .4s var(--settle) backwards;
}
.skip:hover { color: var(--ink); }
.skip-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform-origin: 0 0; transform: scaleX(0); opacity: .5; }
@keyframes skip-in { from { opacity: 0; translate: 0 8px; filter: blur(4px); } }

/* hover name tag (screen space, so it never scales) */
.pill {
  position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; display: flex; align-items: center; gap: 8px;
  height: 24px; padding: 0 8px; border-radius: 6px; background: var(--sel); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap;
  opacity: 0; transition: opacity .15s; will-change: transform;
}
.pill.is-on { opacity: 1; }
.pill-c { opacity: .7; font-weight: 400; }
.is-moving .pill { opacity: 0; transition-duration: .08s; }

/* ----------------------------------------------------------------- panel */

.panel {
  position: fixed; z-index: 35; top: 16px; right: 16px; bottom: 16px; width: clamp(380px, 33vw, 480px);
  background: var(--paper); border-radius: 18px; box-shadow: var(--hud-shadow), 0 30px 80px -30px rgba(20,20,18,.35);
  display: flex; flex-direction: column; overflow: hidden;
}
.panel[hidden] { display: none; }
.panel-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 24px; border-bottom: 1px solid var(--line); flex: none; }
.panel-crumb { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.panel-close { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 8px; border-radius: 10px; color: var(--ink-2); transition: background-color .2s; }
.panel-close:hover { background: var(--paper-2); }
.panel-close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.panel-scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1; scrollbar-width: thin; }
.panel-body { padding: 26px 28px 32px; }

.panel-stage { display: none; position: relative; margin: -26px -28px 26px; overflow: hidden; background: #dcdcd8; max-height: 62vh; --lv-fg: var(--ink); --lv-bg: var(--paper); --lv-accent: var(--pin); --lv-muted: var(--muted); }
.panel-stage[data-live] { background: var(--paper-2); aspect-ratio: auto !important; height: min(62vh, 420px); }
.panel-stage img { width: 100%; height: 100%; object-fit: cover; }
.view-list .panel-stage { display: block; }

.pv-eyebrow { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-cat { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--pin); }
.pv-title { margin-top: 14px; font: 300 52px/1 var(--serif); letter-spacing: -.035em; outline: none; text-wrap: balance; }
.pv-client { margin-top: 10px; font-size: 15px; color: var(--muted); }
.pv-outcome { margin-top: 26px; padding: 16px 18px 18px; background: var(--sticky); color: var(--sticky-ink); border-radius: 3px; rotate: -.6deg; box-shadow: 0 10px 18px -14px rgba(60,50,10,.5); }
.pv-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .62; }
.pv-outcome p { margin-top: 6px; font: 400 22px/1.2 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.pv-summary { margin-top: 24px; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.pv-meta { margin-top: 24px; border-top: 1px solid var(--line); }
.pv-meta > div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pv-meta dt { color: var(--muted); }
.pv-cta {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 18px 0 20px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; transition: background-color .2s;
}
.pv-cta:hover { background: #2b2b29; }
.pv-cta svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--settle); }
.pv-cta:hover svg { translate: 3px 0; }
.pv-pager { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-pager a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); transition: background-color .2s; }
.pv-pager a:hover { background: #ebebe7; }
.pv-next { text-align: right; }
.pv-dir { font-size: 12px; color: var(--muted); }
.pv-ptitle { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dv-lede { margin-top: 18px; font: 300 24px/1.25 var(--serif); letter-spacing: -.01em; text-wrap: pretty; }
.dv-p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.dv-h { margin-top: 34px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.dv-steps { margin-top: 12px; border-top: 1px solid var(--line); }
.dv-steps li { display: grid; grid-template-columns: 36px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dv-n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.dv-steps b { font-weight: 500; font-size: 16px; }
.dv-steps p { margin-top: 2px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.dv-clients { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.dv-clients li { padding: 6px 10px; border-radius: 8px; background: var(--paper-2); font-size: 13px; }
.dv-caps { margin-top: 18px; border-top: 1px solid var(--line); }
.dv-cap { padding: 16px 0; border-bottom: 1px solid var(--line); }
.dv-capname { display: flex; justify-content: space-between; align-items: baseline; font: 300 28px/1.1 var(--serif); letter-spacing: -.02em; }
.dv-see { font: 500 12px var(--sans); font-variation-settings: "STYL" 100; color: var(--sel); padding: 4px 0; }
.dv-see:hover { text-decoration: underline; text-underline-offset: 3px; }
.dv-cap ul { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-2); }
.dv-avail { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.dv-avail i { width: 8px; height: 8px; border-radius: 50%; background: #2fa565; box-shadow: 0 0 0 3px rgba(47,165,101,.18); }
.dv-contact { margin-top: 22px; border-top: 1px solid var(--line); }
.dv-contact > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dv-contact dt { color: var(--muted); }
.dv-contact a { border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.dv-contact a:hover { border-color: var(--ink); }
.dv-mail { font-weight: 500; }
.dv-social { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.dv-social a { display: block; padding: 7px 12px; border-radius: 9px; background: var(--paper-2); font-size: 13px; transition: background-color .2s; }
.dv-social a:hover { background: #ebebe7; }

/* ----------------------------------------------------------------- index */

.index {
  position: fixed; inset: 0; z-index: 10; overflow-y: auto; display: none; background: var(--canvas); outline: none;
  padding: 96px 24px 120px;
}
.view-list .index { display: block; animation: page-settle .5s var(--settle); }
.view-list .viewport, .view-list .hud-corner, .view-list .hud-left { visibility: hidden; }
.view-list .hud-corner, .view-list .hud-left { opacity: 0; }
@keyframes page-settle { from { opacity: 0; translate: 0 8px; } }
.index-inner { max-width: 1120px; margin: 0 auto; }
.index-title { font: 300 76px/1 var(--serif); letter-spacing: -.035em; margin-bottom: 18px; }
.ix-group { margin-top: 36px; }
.ix-group[hidden] { display: none; }
.ix-h { display: flex; gap: 8px; align-items: baseline; font: 300 30px/1 var(--serif); letter-spacing: -.02em; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.ix-h span { font: 500 12px var(--sans); color: var(--muted); }
.ix-row[hidden] { display: none; }
.ix-row a {
  display: grid; grid-template-columns: 64px minmax(160px, 1.1fr) 1fr 1.4fr; gap: 20px; align-items: center; padding: 12px 8px;
  border-bottom: 1px solid var(--line); border-radius: 4px; transition: background-color .2s;
}
.ix-row a:hover { background: rgba(255,255,255,.55); }
.ix-thumb { position: relative; width: 64px; height: 48px; border-radius: 4px; overflow: hidden; background: #dcdcd8; display: block; }
.ix-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ix-thumb .live-poster { background: var(--paper); transform: scale(.28); transform-origin: 0 0; width: 357%; height: 357%; }
.ix-main { display: grid; }
.ix-title { font-weight: 500; font-size: 16px; }
.ix-client, .ix-disc { font-size: 13px; color: var(--muted); }
.ix-out { font: italic 300 15px/1.35 var(--serif); color: var(--ink-2); }
.ix-docs { display: flex; gap: 8px; padding-top: 14px; }
.ix-docs a { display: block; padding: 10px 16px; border-radius: 10px; background: var(--paper); box-shadow: var(--hud-shadow); font-weight: 500; }
.ix-empty { margin-top: 36px; font: 300 24px/1.3 var(--serif); color: var(--muted); }

/* ---------------------------------------------------------------- mobile */

@media (max-width: 1100px) {
  .brand-desc { display: none; }
}
@media (max-width: 1240px) and (min-width: 760px) {
  .hud-left { bottom: 80px; }
}
@media (max-width: 980px) {
  .hud-corner .minimap { display: none; }
  .replay-ico { display: none; }
}
@media (max-width: 759px) {
  body { font-size: 14px; }
  .hud-top { left: 10px; right: 10px; top: max(10px, env(safe-area-inset-top)); }
  .brand { height: 40px; padding: 0 12px; }
  .brand-logo { width: 74px; }
  .nav { height: 40px; padding: 3px; }
  .nav a { height: 34px; padding: 0 9px; font-size: 13px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .hud-bottom { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); translate: none; max-width: none; }
  .is-intro .hud-bottom { translate: 0 12px; }
  .toolbar { height: auto; flex-wrap: wrap; padding: 4px; gap: 4px; }
  .chips { order: 1; width: 100%; }
  .toolbar > .tb-sep { display: none; }
  .search { order: 2; flex: 1; background: var(--paper-2); }
  .search input, .search:focus-within input, .search input:not(:placeholder-shown) { width: 100%; }
  .search-kbd { display: none; }
  .view-toggle { order: 3; }
  .hud-corner { right: 10px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 104px); }
  .zoom { height: 36px; padding: 2px; }
  .zoom [data-zoom="in"], .zoom [data-zoom="out"], .zoom-read { display: none; }
  .zoom-fit { border: 0 !important; border-radius: 8px !important; margin: 0; }
  .intro-ui { bottom: max(24px, env(safe-area-inset-bottom)); }
  .is-hero .hud-bottom { translate: 0 12px; }
  .hero-ui { bottom: max(28px, env(safe-area-inset-bottom)); }
  .spread kbd { display: none; }
  /* the drum's corner: Back to the drum sits above the toolbar, left */
  .hud-left { left: 10px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 104px); }
  .back-drum { height: 36px; font-size: 13px; padding: 0 12px 0 10px; }
  /* the hero frames the title column on a phone (the drum's frame bleeds off both sides); the small caps line is
     scaled up without changing the measured layout */
  .title-desc { scale: 1.6; transform-origin: 50% 100%; }

  .panel { inset: 0; width: auto; border-radius: 0; }
  .panel-stage { display: block; }
  .panel-bar { padding: max(10px, env(safe-area-inset-top)) 10px 10px 20px; }
  .panel-body { padding: 26px 20px 40px; }
  .panel-stage { margin: -26px -20px 24px; }
  .panel-close kbd { display: none; }
  .pv-title { font-size: 42px; }
  .pv-meta > div, .dv-contact > div { grid-template-columns: 100px 1fr; }

  .index { padding: 72px 16px 150px; }
  .index-title { font-size: 54px; }
  .ix-row a { grid-template-columns: 56px 1fr; gap: 6px 14px; padding: 12px 4px; }
  .ix-thumb { width: 56px; height: 56px; grid-row: span 3; align-self: start; }
  .ix-disc { display: none; }
  .ix-out { grid-column: 2; }
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  .hud, .chip-hl, .tile, .sticky, .doc, .cl-label, .search input, .tile-media img, .view-list .index,
  .dframe, .df-board, .title-desc, .title-line, .hero-ui, .tile-cap { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------ 44–46: the opening */

/* the sequence: a canvas over the board while the opening plays, cleared and hidden once the pages have landed */
.seq { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; visibility: hidden; }
.seq.is-on { visibility: visible; }
.view-list .seq { visibility: hidden; }
.mode-pinup .hero-ui, .mode-zoom .hero-ui { display: none; }

/* the frame keeps its name while the pages leave it; in the zoom out it is never emptied (it keeps the cover) */
.df-ico--play { border: 0; border-radius: 0; width: 0; height: 0; border-left: calc(8px * var(--k)) solid currentColor; border-top: calc(5px * var(--k)) solid transparent; border-bottom: calc(5px * var(--k)) solid transparent; }
.df-ico--auto { border-radius: calc(2px * var(--k)); background: linear-gradient(90deg, currentColor 0 30%, transparent 30% 70%, currentColor 70%) center / 70% 46% no-repeat; }
.df-gather-ico--play { border: 0; border-radius: 0; width: 0; height: 0; border-left: calc(9px * var(--k)) solid currentColor; border-top: calc(5.5px * var(--k)) solid transparent; border-bottom: calc(5.5px * var(--k)) solid transparent; }

/* auto layout: the prints sit in the frame, scaled to their slots, captions off until they are on the wall */
.tile.is-row .tile-cap { opacity: 0; transition-duration: .2s; }
.is-hero .board .tile.is-row { pointer-events: auto; cursor: pointer; }
.is-hero .board .tile.is-row .tile-media { box-shadow: 0 1px 1px rgba(20, 20, 18, .06), 0 4px 12px -8px rgba(20, 20, 18, .3); }

/* zoom out: the front page stays in the frame as its cover */
.df-cover { position: absolute; border-radius: 6px; overflow: hidden; background: #dcdcd8; cursor: pointer; box-shadow: 0 1px 1px rgba(20,20,18,.06), 0 10px 26px -14px rgba(20,20,18,.4); }
.df-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.df-cover.is-mapped:not(.is-landed) { visibility: hidden; }
.df-cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 calc(2px * var(--k)) var(--sel); opacity: 0; transition: opacity .18s var(--out); }
.df-cover:hover::after { opacity: 1; }
.mode-zoom.is-dealt .df-board { background: #fbfbf9; box-shadow: 0 0 0 1px rgba(20,20,18,.05), 0 2px 3px rgba(20,20,18,.04), 0 40px 80px -48px rgba(20,20,18,.35); }
.mode-zoom.is-dealt .df-board::after { opacity: 0; }
.mode-zoom.is-dealt .df-name { color: var(--ink-2); }
