/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Anonymous Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/AnonymousPro-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Anonymous Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/AnonymousPro-Italic.woff2') format('woff2');
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 8px 16px;
  background: #181818;
  color: #F9FBFE;
  z-index: 9999;
  font-size: 14px;
}
.skip-link:focus { top: 0; }

/* ---------- Tokens ---------- */
:root {
  --bg-light: #F9FBFE;
  --bg-dark: #181818;
  --ink: #181818;
  --ink-inv: #F9FBFE;
  --muted-dark: rgba(24, 24, 24, .55);
  --muted-light: rgba(249, 251, 254, .55);
  --hair-dark: rgba(24, 24, 24, .12);
  --hair-light: rgba(249, 251, 254, .14);
  --grad-a: #4AAB9D;
  --grad-b: #CCD463;

  --font: "Anonymous Pro", monospace;
  --display: "Anonymous Pro", monospace;
  --name-font: "Anonymous Pro", monospace;

  --ease: cubic-bezier(.2, .7, .15, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --container: 1320px;

  /* unified gap scale — used everywhere instead of ad hoc values */
  --gap-s: clamp(16px, 2vw, 24px);
  --gap-m: clamp(24px, 3vw, 40px);
  --gap-l: clamp(32px, 5vw, 56px);
  --gap-xl: clamp(48px, 6vw, 80px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--bg-light); }

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 140px); }
.section--tight { padding-block: clamp(40px, 6vw, 96px); }
.section--flush { padding-block: 0; }

.dark { background: var(--bg-dark); color: var(--ink-inv); }
.dark a { color: var(--ink-inv); }

.eyebrow,
.caption {
  font-family: var(--font);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.dark .eyebrow, .dark .caption { color: var(--muted-light); }

.mono {
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: .04em;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 4vw, 56px);
  padding: 18px var(--gutter);
  background: transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  color: var(--ink);
}
.site-header.is-scrolled {
  background: rgba(249, 251, 254, .9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair-dark);
}
.site-header.is-on-dark { color: var(--ink-inv); }
.site-header.is-on-dark.is-scrolled {
  background: rgba(24, 24, 24, .8);
  border-bottom: 1px solid var(--hair-light);
}
.site-header__brand {
  font-family: var(--name-font);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  font-size: 16px;
}
.site-header__nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-left: auto;
}
.site-header__nav a {
  opacity: .82;
  transition: opacity .25s var(--ease);
}
@keyframes nav-pulse {
  0%, 49.9% { opacity: 1; }
  50%, 100% { opacity: .3; }
}
.site-header__nav a:hover,
.home-side__nav a:hover { animation: nav-pulse .45s linear infinite; }
.site-header__lang {
  display: none; /* hidden in case-page headers — language is global via URL */
  gap: 10px;
  margin-left: clamp(14px, 2vw, 28px);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-header__lang a { opacity: .4; cursor: pointer; transition: opacity .2s; }
.site-header__lang a.is-active { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px var(--gutter);
  background: var(--bg-dark);
  color: var(--ink-inv);
  border-top: 1px solid var(--hair-light);
}
.site-footer__brand { cursor: pointer; }

/* Easter egg overlay */
.easter-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.easter-overlay.is-visible { opacity: 1; pointer-events: auto; }
.easter-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  pointer-events: none;
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer__brand {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-footer__links {
  display: flex;
  gap: 22px;
  font-size: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-left: auto;
}
.site-footer__links a { transition: color .25s var(--ease); }
.site-footer__links a:hover { animation: nav-pulse .45s linear infinite; }
.site-footer__copy { font-size: 16px; color: var(--muted-light); letter-spacing: .08em; text-transform: uppercase; }

/* Home/light pages: footer reads as part of the light column, not a dark band */
.page-home .site-footer,
.page-light .site-footer { background: var(--bg-light); color: var(--ink); border-top: 1px solid var(--hair-dark); }
.page-home .site-footer__links,
.page-light .site-footer__links { color: var(--muted-dark); }
.page-home .site-footer__links a:hover,
.page-light .site-footer__links a:hover { color: var(--ink); }
.page-home .site-footer__copy,
.page-light .site-footer__copy { color: var(--muted-dark); }

/* page-light: "All projects" outro band turns white too, separated by a hairline */
.page-light .next-case.dark {
  background: var(--bg-light);
  color: var(--ink);
  border-top: 1px solid var(--hair-dark);
}
.page-light .next-case .next-case__eyebrow { color: var(--muted-dark); }
.page-light .next-case .next-case__link,
.page-light .next-case .next-case__title { color: var(--ink); }

/* page-light: uniform 64px padding — sides via .container, top/bottom per block */
.page-light .container { padding-inline: 64px; }
.page-light .case-hero { padding-bottom: 64px; }
.page-light .section { padding-bottom: 64px; }
.page-light .next-case { padding-block: 64px; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--delay-1.is-in { transition-delay: .06s; }
.reveal--delay-2.is-in { transition-delay: .12s; }
.reveal--delay-3.is-in { transition-delay: .18s; }
.reveal--delay-4.is-in { transition-delay: .24s; }
.reveal--delay-5.is-in { transition-delay: .30s; }

/* ====================================================
   HOME — fixed left sidebar (name + nav) + work list on the right,
   portfolio visible from the very first screen, no hero/photo.
   ==================================================== */

.home-side {
  position: fixed;
  inset: 0 auto 0 0;
  width: clamp(220px, 21vw, 320px);
  padding: 64px;
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  color: var(--ink);
  z-index: 40;
}
.home-side__brand {
  display: block;
  font-family: var(--name-font);
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.home-side__brand span { display: block; }

.home-side__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-side__role {
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
}

.home-side__nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: auto 0;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-side__nav a {
  position: relative;
  width: max-content;
  opacity: .55;
  transition: opacity .25s var(--ease);
}
.home-side__nav a:hover { opacity: 1; /* overridden by nav-pulse animation */ }

.home-side__lang {
  display: flex;
  gap: 12px;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-side__lang a { opacity: .35; cursor: pointer; transition: opacity .2s, color .4s var(--ease); }
.home-side__lang a.is-active { opacity: 1; }

.home-side--inv {
  background: none;
  color: #fff;
  z-index: 50;
  mix-blend-mode: difference;
}

.home-cover {
  position: fixed;
  inset: 0;
  display: block;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.home-cover__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.home-cover__slide.is-active {
  opacity: 1;
}

/* Slideshow cover zones: prev / next — JS-driven cursor handles display */
.home-cover__zone {
  position: fixed;
  top: 0; bottom: 0;
  z-index: 45;
  background: none;
  border: none;
  padding: 0;
  cursor: none;
}
.home-cover__zone--prev { left: 0; width: 560px; }
.home-cover__zone--next { right: 0; width: 240px; }

@media (max-width: 960px) {
  .home-cover__zone { display: none; }
  .cover-cursor { display: none; }
}

/* JS-created cursor arrow that inverts like sidebar text */
.cover-cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
  font-family: var(--font);
  font-size: 40px;
  line-height: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .15s var(--ease);
  user-select: none;
  will-change: left, top;
}
.cover-cursor.is-on { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .home-cover__zone { display: none; }
}

.page-cover {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.home-main {
  margin-left: clamp(220px, 21vw, 320px);
}
.home-work {
  padding: 64px var(--gutter);
}

/* Custom cursor dot */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 80;
  transform: translate3d(-50%, -50%, 0);
  transition: width .25s var(--ease), height .25s var(--ease);
  opacity: 0;
}
/* On the home cover, skip the blend trick — switch to a solid color
   matching the active slide's theme instead (blend-mode washes out
   to unreadable gray against mid-tone photos). */
.cursor-dot[data-cover-theme] {
  mix-blend-mode: normal;
  transition: width .25s var(--ease), height .25s var(--ease), background-color .4s var(--ease);
}
.cursor-dot[data-cover-theme].is-on-light {
  background: var(--ink);
}
.cursor-dot.is-on { opacity: 1; }
.cursor-dot.is-grow { width: 56px; height: 56px; }

/* No real persistent pointer on touch/coarse input — the dot just lags
   and renders oddly there, so don't show it at all. */
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* Section heading */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: var(--gap-xl);
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.section-head__counter { display: none; }

/* Heading set as subhead typography */
.section-head h2.section-head__title--meta {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.dark .section-head h2.section-head__title--meta { color: var(--muted-light); }

/* Work cards — image on top, text below, no tag chips */
.work {
  display: grid;
  gap: 80px;
}
.case-card {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
}

.case-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-dark);
}
.case-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.case-card:hover .case-card__media img { transform: scale(1.04); }

.case-card__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-m);
}
.case-card__name {
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.case-card__name small {
  display: block;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 14px;
}
.case-card__cta {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; letter-spacing: .12em; text-transform: uppercase;
}
.case-card__cta::after {
  content: "→";
  transition: transform .35s var(--ease);
}
.case-card:hover .case-card__cta::after { transform: translateX(8px); }

.case-card__cta--external::after { content: "↗"; }
.about-meta {
  margin-top: var(--gap-m);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.about-meta div strong {
  display: block;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  font-size: 14px;
  margin-top: 4px;
}

/* ====================================================
   CASE PAGE
   ==================================================== */

/* HERO with cover */
.case-hero {
  padding-top: 120px;
  padding-bottom: clamp(48px, 6vw, 96px);
}
.case-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-l);
  align-items: start;
}
.case-hero__copy { display: flex; flex-direction: column; gap: var(--gap-s); padding-top: 8px; }
.case-hero__eyebrow {
  display: flex; gap: 16px;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.case-hero__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(40px, 8vw, 96px);
  line-height: .92;
  letter-spacing: -0.03em;
}
.case-hero__sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  max-width: 44ch;
  color: var(--muted-dark);
}
.dark .case-hero__eyebrow,
.dark .case-hero__sub { color: var(--muted-light); }
.case-hero__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0;
}
.case-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}

.case-meta {
  margin-top: var(--gap-l);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hair-dark);
}
.case-meta div {
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.case-meta strong {
  display: block;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--ink);
  margin-top: 8px;
}
.dark .case-meta { border-color: var(--hair-light); }
.dark .case-meta div { color: var(--muted-light); }
.dark .case-meta strong { color: var(--ink-inv); }

/* Two-column intro */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-l);
  align-items: start;
}
.intro__lead {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}
.intro__body p { margin: 0 0 14px; max-width: 52ch; }

.section-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  max-width: 60ch;
  color: var(--muted-dark);
}
.dark .section-note { color: var(--muted-light); }

/* Full image */
.full-image { position: relative; overflow: hidden; margin: 0; }
.full-image img { width: 100%; display: block; }

/* CD section */
.cd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-m);
}
.cd-grid figure { margin: 0; }
.cd-grid img { width: 100%; }

/* Vinyl — plain 2x2 grid, no card chrome, just images.
   Source PNGs are already transparent around the disc. */
.vinyl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-l);
}
.vinyl-grid figure {
  margin: 0;
  aspect-ratio: 1017 / 613;
}
.vinyl-grid img {
  width: 100%; height: 100%; object-fit: contain;
}

/* Vinyl sleeve + spinning record — full-bleed.
   Flex + negative margin instead of aspect-ratio/absolute positioning,
   so the record genuinely overlaps the sleeve with no vertical clipping. */
.vinyl-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: clamp(72px, 11vw, 180px) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vinyl-hero__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1520px, 96vw);
}
.vinyl-hero__sleeve {
  position: relative;
  flex: 0 0 auto;
  width: 50%;
  margin-right: -14%;
  transform: rotate(-3deg);
  z-index: 1;
}
.vinyl-hero__sleeve img {
  width: 100%;
  display: block;
  filter: drop-shadow(10px 16px 44px rgba(0,0,0,.45));
}
.vinyl-hero__record {
  position: relative;
  flex: 0 0 auto;
  width: 46%;
  z-index: 2;
}
.vinyl-hero__record img {
  width: 100%;
  display: block;
  border-radius: 50%;
  transform-origin: 50% 50%;
  animation: vinylspin 22s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  filter: drop-shadow(-6px 10px 36px rgba(0,0,0,.55));
}
@keyframes vinylspin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Booklet — full bleed, edge to edge, 24px gap */
.booklet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.booklet-grid figure { margin: 0; }
.booklet-grid img {
  width: 100%; display: block;
  border-top: 1px solid var(--hair-light);
  border-bottom: 1px solid var(--hair-light);
}

/* Draggable collage — each layer is its own transparent PNG, free to drag */
.collage-drag {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 2552 / 2734;
}
.collage-drag__layer {
  position: absolute;
  /* left/top/width set per-layer inline — each PNG is cropped to its true
     content size, height follows automatically to keep its real aspect ratio */
  height: auto;
  cursor: grab;
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
  transition: filter .2s var(--ease);
}
.collage-drag__layer.is-dragging {
  cursor: grabbing;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.5));
}
/* Experience list */
.exp-list {
  display: grid;
  border-top: 1px solid var(--hair-light);
}
.exp-row {
  display: grid;
  grid-template-columns: 130px 1.1fr 1.8fr;
  gap: var(--gap-m);
  padding-block: var(--gap-m);
  border-bottom: 1px solid var(--hair-dark);
}
.exp-row:last-child { border-bottom: none; }
.exp-row__years {
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding-top: 4px;
}
.exp-row__role {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.exp-row__company {
  font-family: var(--name-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}
.exp-row__title {
  font-size: 16px;
  opacity: .55;
  color: var(--ink);
}
.exp-row__about {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted-dark);
}
.exp-row__notes {
  color: var(--muted-dark);
  font-size: 16px;
  line-height: 1.55;
}
.exp-row__notes p { margin: 0 0 6px; display: flex; gap: 10px; }
.exp-row__notes p::before {
  content: "—";
  flex: 0 0 auto;
  color: var(--muted-dark);
}

/* Next case */
.next-case { padding-block: clamp(56px, 8vw, 120px); }
.next-case__link { display: block; }
.next-case__eyebrow {
  font-size: 16px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-light); margin-bottom: 14px;
}
.next-case__row {
  display: flex;
  align-items: center;
  gap: var(--gap-l);
}
.next-case__title {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: clamp(32px, 9vw, 96px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transition: transform .45s var(--ease);
}
.next-case__link:hover .next-case__title { transform: translateX(40px); }

.next-case__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--hair-light);
  padding-top: clamp(40px, 5vw, 64px);
}
.page-light .next-case__grid { border-top-color: var(--hair-dark); }
.dark .case-card__name small { color: var(--muted-light); }

/* Logo marquee */
.logo-strip {
  overflow: hidden;
  border-block: 1px solid var(--hair-light);
  padding-block: clamp(20px, 3vw, 36px);
}
.logo-strip__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(32px, 3.5vw, 56px);
  animation: logo-scroll 42s linear infinite;
  white-space: nowrap;
}
.logo-strip__track picture {
  display: contents;
}
.logo-strip__track img {
  height: clamp(28px, 3vw, 42px);
  width: auto;
  display: block;
  opacity: .85;
  filter: brightness(0) invert(1);
  flex: 0 0 auto;
}
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Process timeline */
.timeline {
  display: grid;
  gap: 0;
}
.timeline__step {
  display: grid;
  grid-template-columns: 110px 1fr 1.4fr;
  gap: var(--gap-l);
  padding-block: var(--gap-l);
  border-top: 1px solid var(--hair-dark);
  align-items: start;
  position: relative;
}
.timeline__step:last-child { border-bottom: 1px solid var(--hair-dark); }
.timeline__num {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.timeline__title {
  margin: 0;
  font-family: var(--name-font);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.45;
}
.timeline__text { margin: 8px 0 0; max-width: 50ch; color: var(--muted-dark); font-size: 16px; line-height: 1.55; }

/* Role grid */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.role-card {
  padding: var(--gap-m);
  border: 1px solid var(--hair-light);
  margin: -.5px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  transition: background .3s var(--ease);
}
.role-card:hover { background: rgba(249, 251, 254, .03); }
.section:not(.dark) .role-card { border-color: var(--hair-dark); }
.section:not(.dark) .role-card:hover { background: rgba(24, 24, 24, .025); }
.role-card__num {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-light);
}
.section:not(.dark) .role-card__num,
.section:not(.dark) .role-card__desc { color: var(--muted-dark); }
.role-card__title {
  margin: 0;
  font-family: var(--name-font);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
}
.role-card__desc {
  margin: auto 0 0; max-width: 36ch;
  color: var(--muted-light);
  font-size: 16px; line-height: 1.55;
}

/* Poster wall (tilt on hover) */
.poster-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.poster {
  position: relative;
  overflow: hidden;
  margin: 0;
  perspective: 900px;
}
.poster img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .35s var(--ease);
  will-change: transform;
  transform-style: preserve-3d;
}

/* Vertical video stack (motion section) — one full-width video per row */
.nebo-video-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap-l);
}
.nebo-video-stack video {
  display: block;
  width: 100%;
  height: auto;
}

/* Sticky scroll stacking for outdoor mockups */
.mockup-stack-section {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 48px);
}
.mockup-stack__item {
  width: 100%;
  margin: 0;
}
.mockup-stack__item img {
  width: 100%;
  height: auto;
  display: block;
}
@supports (animation-timeline: scroll()) {
  @keyframes nebo-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1); }
  }
}

/* Full-width blog screenshot — flat cutout, no border */
.cloud-blogshot {
  background: #fff;
  padding: clamp(40px, 6vw, 80px) 0;
}
.cloud-blogshot__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.cloud-blogshot__inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Cover gallery — uniform 16:9 grid, staggered reveal, hover lift + title */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-m);
}
.cover-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e9edf2;
}
.dark .cover-card { background: #222; }
.cover-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.cover-card__title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 16px 14px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-inv);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.42) 100%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.cover-card:hover .cover-card__title { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .case-card__media { aspect-ratio: 4 / 3; }
  .case-card__meta { flex-direction: column; align-items: flex-start; gap: var(--gap-s); }

  .case-hero__grid { grid-template-columns: 1fr; gap: var(--gap-m); }
  .case-meta { grid-template-columns: repeat(2, 1fr); }

  .intro { grid-template-columns: 1fr; }
  .cd-grid { grid-template-columns: 1fr; }

  .vinyl-hero__inner { flex-direction: column; width: 80vw; }
  .vinyl-hero__sleeve { width: 86%; margin-right: 0; margin-bottom: -20%; }
  .vinyl-hero__record { width: 78%; }

  /* Sidebar collapses to a static top bar; work list flows full-width below */
  .home-side {
    position: static;
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--gutter);
  }
  .home-side__brand { font-size: 16px; }
  .home-side__brand span:last-child { display: none; }
  .home-side__nav { flex: 0 1 auto; flex-direction: row; justify-content: flex-end; gap: clamp(14px, 2.6vw, 28px); margin-top: 0; }
  .home-side__role { display: none; }
  .home-side__lang { display: none; }
  .home-main { margin-left: 0; }

  .page-cover .home-side {
    position: fixed;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 32px var(--gutter);
  }
  .page-cover .home-side__brand span:last-child { display: block; }
  .page-cover .home-side__nav {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: auto 0;
    gap: 20px;
    font-size: 16px;
  }
  .page-cover .home-side__role { display: block; max-width: 10ch; }
  .page-cover .home-side__lang { display: flex; font-size: 16px; }

  .home-cover__nav {
    right: var(--gutter);
    bottom: 32px;
  }
  .home-cover__arrow {
    font-size: 12px;
    line-height: 1.45;
  }

  .exp-row { grid-template-columns: 1fr; gap: var(--gap-s); }
  .exp-row__years { padding-top: 0; }
  .timeline__step { grid-template-columns: 1fr; gap: var(--gap-s); }
  .role-grid { grid-template-columns: 1fr; }
  .role-card__desc { max-width: none; }
  .poster-wall { grid-template-columns: repeat(2, 1fr); }
  .cover-grid { grid-template-columns: repeat(2, 1fr); }

  /* Case hero: full-width text at tablet, no forced title breaks */
  .case-hero__sub { max-width: none; }
  .case-hero__title br { display: none; }

  /* Cover page: name stays at 32px on mobile */
  .page-cover .home-side__brand { font-size: 32px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .site-header { padding: 14px var(--gutter); flex-wrap: nowrap; gap: 12px; }
  .site-header__brand { font-size: 0; flex-shrink: 0; }
  .site-header__brand::after { content: "R."; font-size: 13px; }
  .site-header__nav { gap: 10px 14px; font-size: 11px; flex-wrap: wrap; justify-content: flex-end; }
  .site-footer__row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-footer__links { margin-left: 0; }
  .next-case__grid { grid-template-columns: 1fr; }

  .home-side { padding: 14px var(--gutter); }
  .home-side__brand { font-size: 20px; }
  .home-side__brand span:first-child { display: none; }
  .home-side__brand::before { content: "R."; }
  .page-cover .home-side__brand span:first-child { display: block; }
  .page-cover .home-side__brand::before { content: none; }
  .home-side__nav { gap: 14px; font-size: 12px; }
  .page-cover .home-side__nav { font-size: 16px; gap: 20px; }
  .home-work { padding: 28px var(--gutter) 48px; padding-top: calc(48px + 28px); }

  /* tighten the 64px paddings on phones */
  .page-light .container { padding-inline: var(--gutter); }
  .page-light .site-footer { padding-inline: var(--gutter); }

  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta strong { font-size: 13px; }

  .vinyl-grid { grid-template-columns: 1fr; }

  .poster-wall { grid-template-columns: 1fr; }

  .cover-grid { grid-template-columns: 1fr; }
}

/* ====================================================
   404 — LENS
   White page with the message; a black veil on top with a circular hole
   punched through (CSS mask) that follows the cursor and swells near the
   centre to reveal the text. On touch/coarse pointers the hole is a static
   centred circle so the text is simply visible through it.
   ==================================================== */
.page-lens { background: var(--bg-light); }
.lens {
  position: fixed;
  inset: 0;
  background: var(--bg-light);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lens__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(10px, 1.5vw, 16px);
  padding: var(--gutter);
}
.lens__code {
  font-family: var(--name-font);
  font-size: clamp(84px, 15vw, 180px);
  line-height: .88;
  letter-spacing: -0.02em;
}
.lens__msg {
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.lens__link {
  margin-top: clamp(8px, 1.4vw, 16px);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}

.lens__veil {
  --x: 50%;
  --y: 50%;
  --r: 96px;
  position: fixed;
  inset: 0;
  z-index: 2;
  background: var(--bg-dark);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), transparent 0, transparent var(--r), #000 var(--r));
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), transparent 0, transparent var(--r), #000 var(--r));
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

/* Touch / no real hover: don't run the moving lens — show a static centred
   hole big enough to read the message straight away. */
@media (hover: none), (pointer: coarse) {
  .lens__veil {
    --x: 50% !important;
    --y: 50% !important;
    --r: clamp(168px, 50vw, 230px) !important;
  }
}

/* ====================================================
   404 / NOT FOUND
   Reuses the kinetic-letter mechanic from the home hero.
   ==================================================== */
.notfound {
  position: relative;
  min-height: 86svh;
  background: var(--bg-dark);
  color: var(--ink-inv);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 64px;
  overflow: hidden;
}
.notfound__eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: var(--gap-m);
}
.notfound__num {
  margin: 0;
  font-family: var(--name-font);
  font-size: clamp(140px, 26vw, 420px);
  line-height: .82;
  letter-spacing: -0.02em;
}
.notfound__num span { display: block; }
.notfound__num .char {
  display: inline-block;
  color: var(--ink-inv);
  transition: font-variation-settings .25s var(--ease);
}
.notfound__copy {
  margin: clamp(20px, 3vw, 36px) 0 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--muted-light);
}
.notfound__copy em { color: var(--ink-inv); font-style: italic; }
.notfound__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(32px, 4vw, 48px);
}
.notfound__links a {
  position: relative;
  font-size: 13px;
  letter-spacing: .06em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hair-light);
  transition: border-color .25s var(--ease), opacity .25s var(--ease);
}
.notfound__links a:hover { border-color: var(--ink-inv); }
.notfound__links a.is-primary { color: var(--ink-inv); }

@media (max-width: 560px) {
  .notfound { padding-top: 110px; }
  .notfound__num { font-size: clamp(72px, 26vw, 140px); }
}

/* ====================================================
   Lightbox — image popup at container width, keyboard nav scoped per gallery
   ==================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 14, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 56px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
  cursor: zoom-out;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__frame {
  width: 100%;
  max-width: var(--container);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__frame img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(.98);
  transition: transform .35s var(--ease);
}
.lightbox.is-open .lightbox__frame img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ====================================================
   Misc case — Pinterest-style masonry feed, no captions
   ==================================================== */
.misc-section {
  padding: 64px;
  padding-top: calc(64px + 56px);
}
.misc-wall {
  max-width: 1792px;
  margin: 0 auto;
  column-count: 4;
  column-gap: 40px;
}
.misc-wall__item {
  display: block;
  break-inside: avoid;
  margin-bottom: 40px;
}
.misc-wall__item img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 960px) {
  .misc-section { padding: 40px; }
  .misc-wall { column-count: 3; column-gap: 20px; }
  .misc-wall__item { margin-bottom: 20px; }
}
@media (max-width: 560px) {
  .misc-section { padding: var(--gutter); padding-top: calc(48px + var(--gutter)); }
  .misc-wall { column-count: 3; column-gap: 10px; }
  .misc-wall__item { margin-bottom: 10px; }
}
