/* ==========================================================================
   FELIX KINER — two palettes, one language

   Every page uses the same typeface, the same spacing scale, the same
   components and the same white palette.

   Nothing below hardcodes a colour. Everything reads from the tokens, so
   changing a palette changes the whole site.
   ========================================================================== */

/* ==========================================================================
   PALETTE — one white palette for every page. (data-theme="dark" is kept as an
   alias so older pages still read the same tokens.)
   ========================================================================== */
[data-theme="light"],
[data-theme="dark"] {
  --bg:          #ffffff;   /* page ground */
  --surface:     #ffffff;   /* raised panels, cards, cta */
  --surface-2:   #f3f3f3;   /* insets, frames, hovers */
  --ink:         #111111;   /* primary text */
  --ink-soft:    #4a4a4a;   /* secondary text */
  --ink-faint:   #6b6b6b;   /* labels, captions, meta */
  --rule:        #e3e3e3;   /* hairlines */
  --rule-strong: #c8c8c8;   /* emphasised borders */
  --accent:      #111111;   /* buttons, links, slider handle */
  --accent-ink:  #ffffff;   /* text on accent */
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.06);
}

/* Home page: the Artist License card above the headline. Shown at 70% of the file width (420 of 600 px). */
.license {
  display: block;
  width: 100%; max-width: 420px; height: auto;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 14px 36px rgba(0,0,0,.12);
}

/* White words on black, boxed line by line (home page headline). */
.mark {
  background: var(--ink);
  color: var(--bg);
  padding: 0 .18em;
  line-height: 1.32;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Home page: Latest news cards (newest first). */
.news__label { font-size: var(--step-1); font-weight: 500; margin-bottom: 1.25rem; }
.news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.news__item { display: grid; gap: .45rem; align-content: start; color: var(--ink); }
.news__media { display: block; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius); aspect-ratio: 1200 / 630; }
.news__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news__item:hover .news__media img { transform: scale(1.03); }
.news__meta { margin-top: .4rem; font-size: var(--step--1); color: var(--ink-faint); letter-spacing: .04em; text-transform: uppercase; }
.news__title { font-size: var(--step-1); font-weight: 500; line-height: 1.25; }
.news__text { color: var(--ink-soft); }
.news__go { font-weight: 500; }
.news__item:hover .news__title { text-decoration: underline; text-underline-offset: .15em; }

.news__all { margin: -1rem 0 clamp(2rem, 5vw, 3.5rem); font-weight: 500; }
.news__all a:hover { text-decoration: underline; text-underline-offset: .15em; }

/* Articles page: one row per article, image left, text right. */
.posts { display: grid; }
.post {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(1.25rem, 4vw, 3rem); align-items: center;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.post:last-child { border-bottom: 1px solid var(--rule); }
.post__media { display: block; overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius); aspect-ratio: 1200 / 630; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__media img { transform: scale(1.03); }
.post__body { display: grid; gap: .55rem; justify-items: start; }
.post__title { font-size: var(--step-2); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.post__title a:hover { text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 720px) { .post { grid-template-columns: 1fr; } }

/* "Unpublished" bar on pages listed in seo.UNPUBLISHED (added at build time) */
.draft-bar {
  padding: .7rem var(--gutter);
  background: #d4351c; color: #ffffff;
  font-size: var(--step--1); line-height: 1.4; text-align: center;
}
.draft-bar strong { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

/* Cookie banner (EU/EEA/UK/CH visitors only; built by the Analytics snippet in tools/seo.py) */
.consent {
  position: fixed; z-index: 150;
  left: 50%; bottom: clamp(.75rem, 2vw, 1.25rem); transform: translateX(-50%);
  width: min(42rem, calc(100% - 1.5rem));
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,.14);
}
.consent__text { flex: 1 1 18rem; font-size: var(--step--1); line-height: 1.5; }
.consent__text a { border-bottom: 1px solid currentColor; }
.consent__btns { display: flex; gap: .6rem; }
.consent .btn { min-width: 6.5rem; justify-content: center; }

/* ==========================================================================
   PIPELINE JOURNEY — one frame followed through every stage (case study).
   Centre line on wide screens, stops alternate sides; left line on phones.
   The line fills (--p, set by initJourney in js/site.js) and each stop's dot
   lights up as it reaches the middle of the screen.
   ========================================================================== */
.journey { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); --p: 0; --rail: 50%; --hi: #ffd60a; }
.journey__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.75rem, 7vw, 5.5rem); }
.journey__rail, .journey__fill { position: absolute; top: 0; left: var(--rail); width: 2px; transform: translateX(-1px); pointer-events: none; }
.journey__rail { bottom: 0; background: var(--rule); }
.journey__fill { height: calc(var(--p) * 100%); background: var(--ink); }
.journey__stop { position: relative; display: grid; grid-template-columns: 1fr 4.5rem 1fr; align-items: center; }
.journey__dot { grid-column: 2; grid-row: 1; justify-self: center; z-index: 1;
  width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--rule-strong);
  transition: background .35s ease, border-color .35s ease, transform .35s ease; }
.journey__stop.is-on .journey__dot { background: var(--hi); border-color: var(--ink); transform: scale(1.25); }
.journey__text { grid-row: 1; grid-column: 1; text-align: right; display: grid; gap: .5rem; justify-items: end; }
.journey__frame { grid-row: 1; grid-column: 3; margin: 0; }
.journey__stop:nth-child(even) .journey__text { grid-column: 3; text-align: left; justify-items: start; }
.journey__stop:nth-child(even) .journey__frame { grid-column: 1; }
.journey__num { font-size: var(--step-3); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--rule-strong);
  transition: color .35s ease; font-variant-numeric: tabular-nums; }
.journey__stop.is-on .journey__num { color: var(--ink); }
.journey__title { font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
.journey__body { color: var(--ink-soft); max-width: 34ch; }
.journey__tool { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint);
  border: 1px solid var(--rule-strong); border-radius: 999px; padding: .2rem .65rem; }
.journey__frame img { width: 100%; height: auto; display: block; border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 14px 34px rgba(0,0,0,.12);
  transition: transform .5s ease, box-shadow .5s ease; }
.journey__stop.is-on .journey__frame img { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,.1), 0 22px 44px rgba(0,0,0,.16); }
/* a stop whose picture needs the full width (the frame-by-frame storyboard) */
.journey__stop--wide { row-gap: clamp(1rem, 2.5vw, 1.75rem); }
.journey__stop--wide .journey__frame,
.journey__stop--wide:nth-child(even) .journey__frame { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 1; background: var(--bg); }
.journey__frame picture { display: block; }
.journey__stop--end .journey__title { font-size: var(--step-2); }
.journey__stop--end .journey__title span { background: var(--ink); color: var(--bg); padding: 0 .18em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.journey-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-top: clamp(2rem, 5vw, 3rem); }
.journey-intro__title { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.01em; }
.journey-intro__meta { color: var(--ink-faint); font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 760px) {
  .journey { --rail: .55rem; }
  .journey__list { gap: 2.5rem; }
  .journey__stop, .journey__stop:nth-child(even) { grid-template-columns: 1.1rem 1fr; column-gap: 1rem; row-gap: .9rem; align-items: start; }
  .journey__dot { grid-column: 1; grid-row: 1; margin-top: .45rem; }
  .journey__text, .journey__stop:nth-child(even) .journey__text { grid-column: 2; grid-row: 1; text-align: left; justify-items: start; }
  .journey__frame, .journey__stop:nth-child(even) .journey__frame,
  .journey__stop--wide .journey__frame, .journey__stop--wide:nth-child(even) .journey__frame { grid-column: 2; grid-row: 2; }
  .journey__num { font-size: var(--step-2); }
}
@media (prefers-reduced-motion: reduce) {
  .journey__dot, .journey__num, .journey__frame img { transition: none; }
  .journey__stop.is-on .journey__frame img { transform: none; }
}

/* Subtitle under a page's h1 (keyword h1 above, human line below) */
.h-subtitle { font-size: var(--step-2); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink-soft); margin: 0 0 1.1rem; max-width: 44ch; }

/* "The job in numbers" board (case study). Numbers count up in js/site.js (initStats). */
.stats { list-style: none; margin: clamp(2rem, 5vw, 3rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  border-top: 2px solid var(--ink); }
.stat { display: grid; align-content: start; gap: .45rem; padding: clamp(1rem, 2.5vw, 1.5rem) clamp(.9rem, 2vw, 1.25rem) clamp(1.1rem, 2.5vw, 1.6rem);
  border-bottom: 1px solid var(--rule); }
.stat + .stat { border-left: 1px solid var(--rule); }
.stat__num { font-size: var(--step-3); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--step--1); line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); max-width: 18ch; }
.stat--accent { background: var(--ink); border-color: var(--ink); }
.stat--accent .stat__num { color: #ffd60a; }
.stat--accent .stat__label { color: #e6e6e6; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat + .stat { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--rule); }
  .stat--accent { grid-column: 1 / -1; }
}

/* Screenshot of a production tool (case study "Working with Claude") */
.board-shot { margin: clamp(1.75rem, 4vw, 2.5rem) 0 0; max-width: 592px; }
.board-shot img { width: 100%; height: auto; display: block; border: 1px solid var(--rule-strong); border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 16px 40px rgba(0,0,0,.12); }
.board-shot .note { margin-top: .8rem; }

/* Type is identical on every page and lives in base.css: Helvetica throughout. */

/* ==========================================================================
   HUB — the doors
   ========================================================================== */
.doors {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.door {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.4rem, 3.2vw, 2.4rem) var(--gutter);
  background: var(--bg);
  isolation: isolate;
  transition: background .4s var(--ease);
  overflow: hidden;
}
.door__num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  transition: color .4s var(--ease);
}
.door__main { min-width: 0; }
/* title and desc are spans; without this they run together on one line */
.door__title,
.door__desc { display: block; }
.door__title {
  font-family: var(--font-hero);
  font-weight: var(--hero-weight);
  font-size: clamp(1.7rem, 1rem + 3.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: var(--hero-tracking);
  transition: color .4s var(--ease);
}
.door__desc {
  color: var(--ink-soft);
  font-size: var(--step-0);
  margin-top: 0.45rem;
  max-width: 54ch;
  transition: color .4s var(--ease);
}
.door__go {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  transition: color .4s var(--ease), transform .4s var(--ease);
}
/* the hover wash: a light grey fill behind the row */
.door__wash {
  position: absolute; inset: 0; z-index: -1;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
/* Every page is white now, so every door gets the same quiet hover. */
.door .door__wash { background: var(--surface-2); }
.door { --door-ink: var(--ink); --door-ink-soft: var(--ink-soft); }

.door:hover .door__wash,
.door:focus-visible .door__wash { opacity: 1; }
.door:hover .door__title,
.door:hover .door__num,
.door:focus-visible .door__title,
.door:focus-visible .door__num { color: var(--door-ink); }
.door:hover .door__desc,
.door:focus-visible .door__desc { color: var(--door-ink-soft); }
.door:hover .door__go,
.door:focus-visible .door__go { color: var(--door-ink); transform: translateX(6px); }

@media (max-width: 720px) {
  .door { grid-template-columns: 2.5rem 1fr; }
  .door__go { grid-column: 2; margin-top: .5rem; }
}

/* ==========================================================================
   STORYBOARDS — sequence strip
   ========================================================================== */
.strip {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: var(--radius);
}
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-track { background: var(--surface-2); }
.strip::-webkit-scrollbar-thumb { background: var(--rule-strong); }
.panel {
  flex: 0 0 clamp(230px, 30vw, 340px);
  scroll-snap-align: start;
  border-right: 1px solid var(--rule);
  padding: 0.7rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.panel:last-child { border-right: none; }
.panel__frame {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule-strong);
  background: var(--surface-2);
  overflow: hidden;
  border-radius: var(--radius);
}
.panel__frame img { width: 100%; height: 100%; object-fit: cover; }
.panel__action {
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}
.panel__foot {
  display: flex; justify-content: space-between; gap: .5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.panel__no { color: var(--accent); font-weight: 600; }

.note {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-top: 0.9rem;
  max-width: var(--measure);
  line-height: 1.6;
}

/* ==========================================================================
   CHARACTER DESIGN — turnaround + expressions
   ========================================================================== */
.turnaround {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
/* construction lines — part of the drawing, not decoration */
.turnaround::before, .turnaround::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  opacity: .4;
  pointer-events: none;
}
.turnaround::before { top: 26%; }
.turnaround::after  { top: 62%; }
.turn {
  border-right: 1px solid var(--rule);
  padding: 1rem 0.6rem 0.7rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.turn:last-child { border-right: none; }
.turn__fig { aspect-ratio: 2 / 3; display: grid; place-items: center; }
.turn__fig img { width: 100%; height: 100%; object-fit: contain; }
.turn__cap {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}

.expressions {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 1024px) { .expressions { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px)  { .expressions { grid-template-columns: repeat(2, 1fr); } }
.expr { background: var(--surface); aspect-ratio: 1/1; display: grid; place-items: center; position: relative; }
.expr img { width: 100%; height: 100%; object-fit: contain; }
.expr__cap {
  position: absolute; bottom: .35rem; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
}

/* ==========================================================================
   FILMS — alternating rows
   ========================================================================== */
.film {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.film:nth-child(even) .film__media { order: 2; }
.film__media {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  overflow: hidden;
  border-radius: var(--radius);
}
.film__media img, .film__media video { width: 100%; height: 100%; object-fit: cover; }
.film__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(transparent 55%, rgba(0,0,0,.5));
  opacity: 0; transition: opacity .35s var(--ease);
}
.film:hover .film__play { opacity: 1; }
.film__play span {
  border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: .16em; text-transform: uppercase;
  padding: .55rem 1.1rem; background: rgba(0,0,0,.5);
  border-radius: var(--radius);
}
.film__title {
  font-family: var(--font-hero);
  font-weight: var(--hero-weight);
  font-size: var(--step-2);
  line-height: 1.05;
  letter-spacing: var(--hero-tracking);
}
.film__year {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--accent); letter-spacing: .12em;
  margin-bottom: .5rem; display: block;
}
.film__log { color: var(--ink-soft); margin-block: .8rem 1.1rem; max-width: 46ch; }
.film__credits {
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--ink-faint); letter-spacing: .04em; line-height: 1.8;
}
.film__credits b { color: var(--ink-soft); font-weight: 400; }
@media (max-width: 860px) {
  .film { grid-template-columns: 1fr; }
  .film:nth-child(even) .film__media { order: 0; }
}

/* ==========================================================================
   ILLUSTRATION — the hang
   ========================================================================== */
.hang { display: grid; gap: clamp(3rem, 8vw, 8rem); }
.hang__piece { display: grid; gap: 1.1rem; }
/* width:100% is required — auto inline margins on a grid item disable stretching */
.hang--wide { width: 100%; max-width: 78rem; margin-inline: auto; }
.hang--tall { width: 100%; max-width: 46rem; margin-inline: auto; }
.hang__piece > img, .hang__piece > .slot { width: 100%; }
.hang__piece img { width: 100%; height: auto; border-radius: var(--radius); }
.hang__cap {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hang__cap b { color: var(--ink); font-weight: 400; }

/* ==========================================================================
   VFX — before / after comparison
   ========================================================================== */
.ba {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface-2);
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer img, .ba__layer .slot {
  width: 100%; height: 100%; object-fit: cover;
  border: none; border-radius: 0;
}
/* Drag moves only transforms (GPU), never clip-path or left: no repaint of the 4K images per frame */
.ba__layer--after {
  overflow: hidden;
  transform: translate3d(var(--pos, 50%), 0, 0);
  will-change: transform;
}
.ba__layer--after img {
  transform: translate3d(calc(-1 * var(--pos, 50%)), 0, 0);
  will-change: transform;
}
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%;
  transform: translate3d(var(--pos, 50%), 0, 0);
  will-change: transform;
  pointer-events: none;
}
.ba__handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px;
  width: 2px; background: #ffd60a;
}
.ba__knob {
  position: absolute; top: 50%; left: 0;
  transform: translate(-50%, -50%);
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  background: #ffd60a;
  color: #111111;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
  box-shadow: 0 0 0 6px rgba(255, 214, 10, .25);
}
.ba__tag {
  position: absolute; bottom: .75rem;
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0,0,0,.65); color: #f2ede4;
  padding: .3rem .6rem; border-radius: var(--radius);
  pointer-events: none;
}
.ba__tag--before { left: .75rem; }
.ba__tag--after  { right: .75rem; color: #ffd60a; }   /* bright yellow: readable on dark frames */

/* ==========================================================================
   VFX — before / after pair (side by side on wide screens, stacked on phones)
   ========================================================================== */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pair__item { position: relative; }
.pair__item img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.pair__tag {
  position: absolute; left: .6rem; bottom: .6rem;
  font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0,0,0,.65); color: #f2ede4;
  padding: .3rem .6rem; border-radius: var(--radius);
}
.pair__tag--after { color: #ffd60a; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

.ba-item { display: grid; gap: .85rem; }
.ba-item__meta {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--ink-faint); letter-spacing: .06em;
}
.ba-item__meta b { color: var(--ink); font-weight: 400; letter-spacing: 0; font-family: var(--font-sans); }

/* ==========================================================================
   SHARED ODDMENTS
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--rule-strong); color: var(--ink-soft);
  padding: .4rem .75rem; border-radius: 100px;
}

.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
}

/* ==========================================================================
   TITLE DESIGN — sequences, embeds, case studies

   Title sequences are time-based. Everything here is built so the video is
   the largest thing on screen and everything else defers to it.
   ========================================================================== */

/* --- swappable embed -------------------------------------------------------
   Works with a Vimeo/YouTube <iframe>, a self-hosted <video>, or a .slot
   placeholder. Drop any of the three inside and it fills the frame. */
.embed {
  position: relative;
  width: 100%;
  /* per-sequence ratio: style="--ar:2.387" for scope, default 16:9 */
  aspect-ratio: var(--ar, 16 / 9);
  background: #000;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.embed > iframe,
.embed > video,
.embed > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  object-fit: cover;
}
.embed > .slot { position: absolute; inset: 0; border: none; border-radius: 0; }
.embed--cinema { --ar: 2.39 / 1; }

/* --- a sequence, presented large ------------------------------------------ */
.seq {
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
  padding-block: clamp(2.25rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.seq:last-of-type { border-bottom: none; }
.seq__head {
  display: flex; align-items: baseline; gap: 1rem 1.5rem; flex-wrap: wrap;
}
.seq__title {
  font-family: var(--font-hero);
  font-weight: var(--hero-weight);
  font-size: var(--step-2);
  line-height: 1.05;
  letter-spacing: var(--hero-tracking);
}
.seq__meta {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: auto;
}
.seq__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
}
@media (max-width: 900px) { .seq__body { grid-template-columns: 1fr; } }
/* no prose alongside the credits — let them sit on their own */
.seq__body--solo { grid-template-columns: minmax(0, 40rem); }
.seq__idea { color: var(--ink); font-size: var(--step-1); line-height: 1.45; }
.seq__note { color: var(--ink-soft); margin-top: .8rem; font-size: var(--step-0); }
.seq__link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.1rem;
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.seq__link:hover { border-color: var(--accent); gap: .85rem; }

/* --- genre tag ------------------------------------------------------------ */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: .25rem .6rem;
  border-radius: 100px;
  white-space: nowrap;
}

/* --- credits block -------------------------------------------------------- */
.credits { border-top: 1px solid var(--rule); }
.credits__row {
  display: grid;
  grid-template-columns: minmax(110px, 30%) 1fr;
  gap: .5rem 1.5rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .04em;
}
.credits__key { color: var(--ink-faint); text-transform: uppercase; letter-spacing: .1em; }
.credits__val { color: var(--ink-soft); }
@media (max-width: 560px) { .credits__row { grid-template-columns: 1fr; gap: .15rem; } }

/* --- stills strip --------------------------------------------------------- */
.stills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(.5rem, 1.2vw, 1rem);
}
.stills .slot, .stills img { aspect-ratio: var(--ar, 16/9); border-radius: var(--radius); }
/* larger frames: two up on desktop, one on mobile */
.stills--lg { grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 1.6vw, 1.35rem); }
@media (max-width: 760px) { .stills--lg { grid-template-columns: 1fr; } }
.stills img { width: 100%; object-fit: cover; }

/* --- prev / next ---------------------------------------------------------- */
.pager {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.pager a {
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.pager a:hover { color: var(--accent); }
.pager__label { display: block; color: var(--ink-faint); margin-bottom: .3rem; }

/* --- provenance callout --------------------------------------------------- */
.callout {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 2rem);
}

/* label above an embed when a project has more than one piece of title work */
.embed-cap {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .65rem;
}
.embed-cap b { color: var(--accent); font-weight: 500; }

/* director / client quote — the strongest evidence a case study can carry */
.pullquote {
  border-left: 2px solid var(--accent);
  padding: .35rem 0 .35rem 1.5rem;
  margin-block: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 52ch;
}
.pullquote p {
  font-family: var(--font-hero);
  font-weight: var(--hero-weight);
  font-size: var(--step-1);
  line-height: 1.35;
  letter-spacing: var(--hero-tracking);
  color: var(--ink);
}
.pullquote cite {
  display: block;
  margin-top: .75rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink-faint);
}

/* ==========================================================================
   COLLAGE — frames from every sequence, as the page's opening image
   ========================================================================== */
.collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(78px, 8.2vw, 150px);
  gap: 3px;
  background: var(--rule);
  padding: 0;
  margin: 0;
  list-style: none;
}
.collage li { overflow: hidden; grid-column: span 2; }
.collage li:nth-child(1),
.collage li:nth-child(7) { grid-row: span 2; }
.collage img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92);
  transition: filter .5s var(--ease), transform .8s var(--ease);
}
.collage li:hover img { filter: saturate(1.05); transform: scale(1.03); }
@media (max-width: 860px) {
  .collage { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(70px, 13vw, 120px); }
}
@media (max-width: 520px) {
  .collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 22vw; }
  .collage li:nth-child(1), .collage li:nth-child(7) { grid-row: span 1; }
}

/* three selected frames under a sequence */
.picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.5rem, 1.2vw, 1rem);
  margin-top: clamp(.75rem, 1.6vw, 1.25rem);
}
.picks img {
  width: 100%; height: 100%;
  aspect-ratio: var(--ar, 16/9);
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
@media (max-width: 620px) { .picks { grid-template-columns: 1fr; } }

/* natural-aspect gallery — art and boards are not cropped */
.gallery {
  columns: 3;
  column-gap: clamp(.5rem, 1.2vw, 1rem);
  margin-top: clamp(.75rem, 1.6vw, 1.25rem);
}
.gallery--2 { columns: 2; }
.gallery img {
  width: 100%; height: auto; display: block;
  margin-bottom: clamp(.5rem, 1.2vw, 1rem);
  border-radius: var(--radius);
  break-inside: avoid;
  cursor: zoom-in;
  transition: opacity .25s var(--ease);
}
.gallery img:hover { opacity: .82; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 620px) { .gallery, .gallery--2 { columns: 1; } }

/* full-bleed hero image, swapped by viewport */
.hero-img { display: block; }
.hero-img img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   LIGHTBOX — enlarged frames with prev/next
   ========================================================================== */
.picks img { cursor: zoom-in; transition: opacity .25s var(--ease); }
.picks img:hover { opacity: .82; }

.more-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: clamp(.6rem, 1.2vw, .9rem);
  padding: .55rem 1rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.more-btn:hover { color: var(--accent); border-color: var(--accent); }
.more-btn span { color: var(--ink-faint); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  background: rgba(6, 5, 4, .96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* the viewer stays dark on the white site, so it gets its own light-on-dark tokens */
  --ink:         #f2f2f2;
  --ink-soft:    #c4c4c4;
  --ink-faint:   #9a9a9a;
  --rule-strong: rgba(255,255,255,.35);
  --surface-2:   #222222;
  --accent:      #ffffff;
  --accent-ink:  #111111;
}
.lightbox[open], .lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; }

.lightbox__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem clamp(1rem, 3vw, 2rem);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lightbox__count { color: var(--ink); }
.lightbox__title { color: var(--ink-faint); }
.lightbox__spacer { flex: 1; }

.lightbox__stage {
  position: relative;
  display: grid; place-items: center;
  padding: 0 clamp(.5rem, 4vw, 4.5rem);
  min-height: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: clamp(2.6rem, 4vw, 3.4rem); aspect-ratio: 1;
  display: grid; place-items: center;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 50%;
  color: #111111;
  font-size: 1.2rem; line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.lightbox__nav:hover { background: #dcdcdc; border-color: #dcdcdc; color: #111111; }
.lightbox__nav--prev { left: clamp(.25rem, 1.5vw, 1.25rem); }
.lightbox__nav--next { right: clamp(.25rem, 1.5vw, 1.25rem); }

.lightbox__close {
  background: transparent; border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .8rem; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__close:hover { color: var(--accent); border-color: var(--accent); }

.lightbox__strip {
  display: flex; gap: .4rem;
  overflow-x: auto;
  padding: .9rem clamp(1rem, 3vw, 2rem) 1.2rem;
  scrollbar-width: thin;
}
.lightbox__strip button {
  flex: 0 0 auto;
  width: clamp(58px, 7vw, 86px);
  aspect-ratio: 16/9;
  padding: 0; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--surface-2); cursor: pointer; overflow: hidden;
  opacity: .45; transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__strip button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__strip button:hover { opacity: .8; }
.lightbox__strip button[aria-current="true"] { opacity: 1; border-color: var(--accent); }

body.lb-open { overflow: hidden; }

@media (max-width: 620px) {
  .lightbox__strip { display: none; }
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .picks img, .more-btn, .lightbox__nav { transition: none; }
}
