/* ============================================================
   MAPA LÓPEZ · Archive Cinematique
   Two fonts: JetBrains Mono + Instrument Serif
   ============================================================ */

:root {
  --bg: oklch(0.97 0.003 80);
  --bg-2: oklch(0.94 0.004 80);
  --ink: oklch(0.15 0.005 80);
  --ink-2: oklch(0.35 0.005 80);
  --muted: oklch(0.55 0.005 80);
  --line: oklch(0.85 0.005 80);
  --accent: #c0392b;

  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-sans:
    "JetBrains Mono", ui-monospace, monospace; /* enforced two-font rule */

  --px-edge: 36px;
  --tracking-label: 0.16em;
}

/* ---- TYPOGRAPHY PAIRINGS (tweakable) ----
   Each pairing overrides the three font vars. The display font is chosen
   via [data-display="serif|sans|mono"] and reads from the pairing's vars. */
[data-typography="archive"] {
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-sans: "Archivo", "Helvetica Neue", sans-serif;
}
[data-typography="editorial"] {
  --font-serif: "Fraunces", "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-sans: "Inter", "Helvetica Neue", sans-serif;
}
[data-typography="studio"] {
  --font-serif: "Newsreader", "Times New Roman", serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, monospace;
  --font-sans: "Space Grotesk", "Helvetica Neue", sans-serif;
}
[data-typography="documentary"] {
  --font-serif: "Newsreader", "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
}

/* ---- LIGHT BACKGROUND PRESETS (tweakable) ----
   Applied only when theme is light/warm. Dark theme overrides below still win. */
[data-bg="paper"] {
  --bg: oklch(0.97 0.003 80);
  --bg-2: oklch(0.94 0.004 80);
  --line: oklch(0.85 0.005 80);
}
[data-bg="bone"] {
  --bg: oklch(0.95 0.015 80);
  --bg-2: oklch(0.92 0.018 80);
  --line: oklch(0.83 0.015 80);
}
[data-bg="gallery"] {
  --bg: oklch(0.97 0.003 240);
  --bg-2: oklch(0.94 0.005 240);
  --line: oklch(0.85 0.006 240);
}
[data-bg="mat"] {
  --bg: oklch(0.87 0.005 80);
  --bg-2: oklch(0.83 0.006 80);
  --line: oklch(0.73 0.008 80);
}
[data-bg="sand"] {
  --bg: oklch(0.94 0.025 75);
  --bg-2: oklch(0.91 0.028 75);
  --line: oklch(0.82 0.025 75);
}
[data-bg="olive"] {
  --bg: oklch(0.94 0.02 120);
  --bg-2: oklch(0.91 0.022 120);
  --line: oklch(0.82 0.02 120);
}

[data-theme="dark"] {
  --bg: oklch(0.12 0.003 260);
  --bg-2: oklch(0.16 0.004 260);
  --ink: oklch(0.96 0.003 80);
  --ink-2: oklch(0.75 0.005 80);
  --muted: oklch(0.55 0.005 80);
  --line: oklch(0.25 0.005 260);
}

[data-theme="warm"] {
  --bg: oklch(0.95 0.018 70);
  --bg-2: oklch(0.91 0.022 70);
  --ink: oklch(0.22 0.02 40);
  --ink-2: oklch(0.4 0.02 40);
  --muted: oklch(0.55 0.015 60);
  --line: oklch(0.82 0.02 60);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  /* faint grain texture */
  background-image:
    radial-gradient(circle at 0 0, transparent 98%, rgba(0, 0, 0, 0.015) 100%),
    radial-gradient(
      circle at 100% 100%,
      transparent 98%,
      rgba(0, 0, 0, 0.015) 100%
    );
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

/* ------------- SCROLLBAR ------------- */
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--ink-2) transparent;
}
/* WebKit */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--ink) 35%, transparent);
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in oklab, var(--ink) 60%, transparent);
}
::-webkit-scrollbar-corner {
  background: transparent;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.serif {
  font-family: var(--font-serif);
  font-weight: 400;
}
.link {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ------------- NAV ------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px calc(var(--px-edge) * 0.5) 24px var(--px-edge);
  z-index: 50;
  color: var(--ink);
  pointer-events: none;
  transition:
    background 0.3s,
    border-color 0.3s,
    backdrop-filter 0.3s;
}
.nav > * {
  pointer-events: auto;
}

/* ---- NAV CHROME VARIANTS ---- */
[data-nav-chrome="gradient"] .nav {
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--bg) 96%, transparent) 0%,
    color-mix(in oklab, var(--bg) 80%, transparent) 80%,
    transparent 100%
  );
}
[data-nav-chrome="solid"] .nav {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
[data-nav-chrome="blur"] .nav {
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
[data-nav-chrome="rule"] .nav {
  background: transparent;
}
[data-nav-chrome="rule"][data-nav-scrolled="true"] .nav {
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
[data-nav-chrome="none"] .nav {
  background: transparent;
}
.nav__mark {
  font-size: 12px;
  letter-spacing: var(--tracking-label);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.nav__mark-bullet {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.nav__mark-sub {
  margin-left: 6px;
}
.nav__links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
}

/* ---- SOCIAL ICONS ---- */
.nav__social {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.nav__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  opacity: 0.6;
  transition:
    opacity 0.2s,
    color 0.2s,
    transform 0.2s;
}
.nav__social-link:hover {
  opacity: 1;
  color: var(--accent);
}
.nav__social-link svg {
  display: block;
}

/* Layout: INLINE (default) — mark on left, links + social grouped on right */
[data-social="inline"] .nav {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 22px;
}
[data-social="inline"] .nav__mark {
  grid-column: 1;
  justify-self: start;
}
[data-social="inline"] .nav__links {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}
[data-social="inline"] .nav__social {
  padding-left: 18px;
  margin-left: 0;
  border-left: 1px solid var(--line);
}

/* Layout: EDGE — social floats to the far right, nav becomes 3-col */
[data-social="edge"] .nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}
[data-social="edge"] .nav__mark {
  justify-self: start;
}
[data-social="edge"] .nav__links {
  justify-self: center;
}
[data-social="edge"] .nav__social {
  justify-self: end;
  align-self: center;
}

/* Layout: STACK — social sits beneath the text links, right-aligned */
[data-social="stack"] .nav {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  row-gap: 12px;
  align-items: start;
}
[data-social="stack"] .nav__mark {
  grid-column: 1;
  grid-row: 1;
}
[data-social="stack"] .nav__links {
  grid-column: 2;
  grid-row: 1;
}
[data-social="stack"] .nav__social {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  width: fit-content;
  padding-left: 20px;
}

/* Layout: HIDDEN */
[data-social="hidden"] .nav__social {
  display: none;
}

/* ------------- BURGER + MOBILE FULLSCREEN MENU ------------- */
.nav__burger {
  display: none; /* shown via @media on narrow screens */
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 110; /* sit above the fullscreen menu so it stays clickable */
}
.nav__burger-lines {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 14px;
}
.nav__burger-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease,
    top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav__burger-lines span:nth-child(1) {
  top: 0;
}
.nav__burger-lines span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.nav__burger-lines span:nth-child(3) {
  top: 100%;
  transform: translateY(-100%);
}

.nav__burger.is-open .nav__burger-lines span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav__burger.is-open .nav__burger-lines span:nth-child(2) {
  opacity: 0;
}
.nav__burger.is-open .nav__burger-lines span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}
.nav__burger-label {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* When the fullscreen mobile menu is open, hide the rest of the nav chrome
   (logo mark + desktop links) so only the burger and the menu remain visible. */
.nav:has(.nav__mobile.is-open) .nav__mark,
.nav:has(.nav__mobile.is-open) .nav__links,
.nav:has(.nav__mobile.is-open) .nav__social {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Fullscreen mobile menu — hidden on desktop, slides/fades in when open */
.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--bg);
  color: var(--ink);
  z-index: 100;
  display: none; /* enabled via @media */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav__mobile.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav__mobile-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 88px var(--px-edge) calc(var(--px-edge) + 12px);
  gap: 32px;
  overflow-y: auto;
}
.nav__mobile-label {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.nav__mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav__mobile-section {
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.nav__mobile-section-label {
  font-family: var(--font-serif);
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.nav__mobile-sublink {
  display: grid;
  grid-template-columns: 32px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  padding-left: 12px;
  font-size: 13px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.85;
  transition:
    color 0.2s,
    opacity 0.2s,
    transform 0.25s;
  text-decoration: none;
}
.nav__mobile-sublink:hover,
.nav__mobile-sublink.is-active {
  color: var(--accent);
  opacity: 1;
}
.nav__mobile-sublink:hover .nav__mobile-arrow {
  transform: translateX(6px);
}
.nav__mobile-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
}
.nav__mobile-sublink.is-active .nav__mobile-dot {
  color: var(--accent);
}
.nav__mobile-arrow {
  justify-self: end;
  transition: transform 0.25s;
}
.nav__mobile-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition:
    color 0.2s,
    padding 0.25s;
}
.nav__mobile-link:hover,
.nav__mobile-link.is-active {
  color: var(--accent);
}
.nav__mobile-link-text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1;
  letter-spacing: -0.005em;
}
.nav__mobile-foot {
  display: flex;
  gap: 8px;
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* Stagger items in when menu opens */
.nav__mobile-list > li,
.nav__mobile-sublink {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav__mobile.is-open .nav__mobile-list > li,
.nav__mobile.is-open .nav__mobile-sublink {
  opacity: 1;
  transform: translateY(0);
}
.nav__mobile.is-open .nav__mobile-sublink:nth-child(2) {
  transition-delay: 0.08s;
}
.nav__mobile.is-open .nav__mobile-sublink:nth-child(3) {
  transition-delay: 0.12s;
}
.nav__mobile.is-open .nav__mobile-sublink:nth-child(4) {
  transition-delay: 0.16s;
}
.nav__mobile.is-open .nav__mobile-list > li:nth-child(2) {
  transition-delay: 0.2s;
}
.nav__mobile.is-open .nav__mobile-list > li:nth-child(3) {
  transition-delay: 0.24s;
}
.nav__mobile.is-open .nav__mobile-list > li:nth-child(4) {
  transition-delay: 0.28s;
}

.nav__links a {
  position: relative;
  padding-bottom: 2px;
  transition: opacity 0.2s;
  opacity: 0.7;
}
.nav__links a:hover {
  opacity: 1;
}
.nav__links a.is-active,
.nav__dropdown-trigger.is-active {
  opacity: 1;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.nav__links a:hover {
  color: var(--accent);
  opacity: 1;
}
.nav__dropdown-trigger:hover {
  color: var(--accent);
  opacity: 1;
}

/* dropdown */
.nav__dropdown {
  position: relative;
}
.nav__dropdown-trigger {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 2px;
  color: inherit;
  transition: opacity 0.2s;
}
.nav__dropdown-trigger:hover {
  opacity: 1;
}
.nav__caret {
  font-size: 8px;
  opacity: 0.7;
}

.nav__menu {
  position: fixed;
  /* positioned via inline style from JS — top/left set by trigger rect */
  min-width: 240px;
  padding: 12px 0;
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  color: var(--ink);
  border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: menuIn 0.2s ease;
  z-index: 60;
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav__menu-label {
  font-size: 9.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 6px 16px 10px;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  margin-bottom: 4px;
}
.nav__menu-item {
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.85;
  transition:
    background 0.2s,
    opacity 0.2s,
    color 0.2s;
  text-decoration: none !important;
}
.nav__menu-item:hover {
  background: color-mix(in oklab, var(--ink) 6%, transparent);
  opacity: 1;
  color: var(--accent);
}
.nav__menu-item:hover .nav__menu-arrow {
  transform: translateX(3px);
}
.nav__menu-item.is-active {
  color: var(--accent);
  opacity: 1;
}
.nav__menu-n {
  color: var(--muted);
  font-size: 9.5px;
}
.nav__menu-arrow {
  justify-self: end;
  font-size: 12px;
  transition: transform 0.2s;
}

/* ------------- MAIN ------------- */
.main {
  padding-top: 120px;
  max-width: 100dvw;
}
.main > * {
  max-width: 100%;
}

/* ------------- STRIP / GALLERY ------------- */
.strip {
  margin: 0 0 160px;
}
.strip__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 var(--px-edge) 40px;
}
.strip__meta {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.strip__num {
  color: var(--muted);
}
.strip__label {
  font-weight: 600;
}
.strip__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}
[data-strip-counter="false"] .strip__progress {
  display: none;
}
.strip__progress-track {
  width: 120px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.strip__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

.strip__track {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  padding: 0;
  /* Allow both axes so the page can scroll vertically when a touch starts on the strip.
     Native horizontal scroll still works because overflow-x is auto. */
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  will-change: scroll-position;
}
.strip__track::-webkit-scrollbar {
  display: none;
}
.strip--dragging {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
}
.strip--dragging img {
  pointer-events: none;
}
.strip--dragging .tile img {
  transition: none !important;
}
.strip--dragging .tile__cap {
  transition: none !important;
}

.strip__inner {
  display: flex;
  gap: 0;
  align-items: flex-start;
  padding: 0 var(--px-edge) 48px;
  min-height: 0px;
}

.tile {
  flex: 0 0 auto;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0) contrast(1);
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.5s ease;
}
.tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-transform: uppercase;
  transform: translateY(8px);
}
.tile:hover .tile__cap {
  opacity: 1;
  transform: translateY(0);
}
.tile__cap .muted {
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   HOVER — corner brackets fade/scale in to signal interactivity.
   Top-left + bottom-right marks; no image transforms.
   ============================================================ */
.tile {
  --cmk: 14px;
}
.tile::before,
.tile::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
  width: var(--cmk);
  height: var(--cmk);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tile::before {
  top: 10px;
  left: 10px;
  border-top: 1.5px solid #fff;
  border-left: 1.5px solid #fff;
}
.tile::after {
  bottom: 10px;
  right: 10px;
  border-bottom: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
}
.tile:hover::before,
.tile:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* TEXT tile — editorial pull-quote rendered inline in the strip.
   Not openable (no lightbox), no hover image, sits in the same staggered
   rhythm as image tiles. Height is content-driven; width comes from the
   item's `w` value (pixels). */
.tile--text {
  cursor: default;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  overflow: visible;
  height: auto;
  align-self: flex-start;
  /* Sharper text rendering — opt out of GPU-rasterized subpixel fuzz that
     can leak in from the strip's `will-change: scroll-position` parent. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings:
    "kern" 1,
    "liga" 1;
  transform: translateZ(0); /* own layer, stable subpixel positioning */
  backface-visibility: hidden;
}
.tile--text:hover img {
  transform: none;
}
/* Corner marks don't apply to text tiles. */
.tile--text::before,
.tile--text::after {
  content: none !important;
}
.tile__text-kicker {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.tile__text-body {
  margin: 0;
  font-size: 19px;
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.92);
  text-wrap: pretty;
}
.tile__text-body.serif {
  font-family: var(--font-serif);
}
.tile__text-body.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
}
.tile__text-attr {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  align-self: flex-end;
}
/* Optional tonal variants */
.tile--text-paper {
  background: oklch(0.92 0.01 80);
  border-color: oklch(0.78 0.02 60);
}
.tile--text-paper .tile__text-body {
  color: oklch(0.18 0.015 40);
}
.tile--text-paper .tile__text-kicker,
.tile--text-paper .tile__text-attr {
  color: oklch(0.42 0.015 40);
}
.tile--text-accent {
  background: var(--accent);
  border-color: transparent;
}
.tile--text-accent .tile__text-body,
.tile--text-accent .tile__text-kicker,
.tile--text-accent .tile__text-attr {
  color: #111;
}
.tile--text-ink {
  background: #000;
  border-color: rgba(255, 255, 255, 0.12);
}
.tile--text-ink .tile__text-body {
  color: rgba(255, 255, 255, 0.94);
}
.tile--text-ink .tile__text-kicker {
  color: rgba(255, 255, 255, 0.55);
}
.tile--text-ink .tile__text-attr {
  color: rgba(255, 255, 255, 0.45);
}

.strip__end {
  flex: 0 0 auto;
  align-self: center;
  padding: 0 120px 0 60px;
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ------------- ABOUT ------------- */
.about {
  padding: 80px var(--px-edge) 80px;
}
.about__head {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding-bottom: 60px;
  /* border-bottom: 1px solid var(--line); */
  /* margin-bottom: 60px; */
}
.about__body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 120px;
  align-items: start;
}
.about__lead {
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 18ch;
}
.about__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  font-size: 12px;
}
.about__cols .muted {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.about__cols p {
  margin: 0;
  max-width: 38ch;
  line-height: 1.6;
}

/* ---- BIO VARIANTS ---- */
.bio {
  max-width: 44ch;
  font-size: 12px;
}
.bio p {
  margin: 0;
  line-height: 1.75;
  color: var(--ink-2);
}

/* prose — two flowing paragraphs */
.bio--prose p + p {
  margin-top: 1.1em;
}

/* fragments — manifesto-style lines separated by rules */
.bio--fragments .bio__frag {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  line-height: 1.55;
  color: var(--ink);
  font-size: 12.5px;
}
.bio--fragments .bio__frag:last-child {
  border-bottom: 1px solid var(--line);
}

/* index — numbered entries, press-kit feel */
.bio--index .bio__item + .bio__item {
  margin-top: 28px;
}
.bio--index .bio__n {
  display: block;
  font-size: 9.5px;
  letter-spacing: var(--tracking-label);
  margin-bottom: 10px;
}

/* dropcap — serif lede with capital, mono follow-up */
.bio--dropcap .bio__lede {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.005em;
  margin: 0 0 1.1em;
}
.bio--dropcap .bio__cap {
  float: left;
  font-family: var(--font-serif);
  font-size: 58px;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.bio--dropcap .bio__body {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}
.about__list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 30px;
}
.about__list li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  break-inside: avoid;
}

/* ------------- MOTION ------------- */
.motion {
  padding: 80px var(--px-edge);
  margin-bottom: 0;
  max-width: 100%;
}
.motion > .strip__head {
  padding-left: 0;
  padding-right: 0;
}
.motion__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 30px;
}
.motion__card {
  cursor: pointer;
}
.motion__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-2);
  overflow: hidden;
  max-width: 100%;
}
.motion__thumb .img {
  display: block;
  max-width: 100%;
}
.motion__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.4s;
}
.motion__card:hover .motion__thumb img {
  transform: scale(1.03);
  filter: brightness(0.7);
}
.motion__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s;
}
.motion__card:hover .motion__play {
  opacity: 1;
}
.motion__dur {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  color: #fff;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.5);
}
.motion__meta {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 0;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.motion__player {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.motion__player-inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16/9;
}
.motion__player-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.motion__player-meta {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 10.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ------- MOTION · shared head + variant switcher ------- */
.motion__head {
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.motion__switch {
  display: inline-flex;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: var(--tracking-label);
}
.motion__switch button {
  appearance: none;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 9px 14px;
  font: inherit;
  letter-spacing: inherit;
  color: var(--muted);
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
}
.motion__switch button:last-child {
  border-right: 0;
}
.motion__switch button:hover {
  color: var(--ink);
}
.motion__switch button.is-active {
  color: var(--bg);
  background: var(--ink);
}

/* ------- MOTION · variant 1 (grid) — extra description + credit ------- */
.motion__desc {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  text-transform: none;
  letter-spacing: 0;
}
.motion__credit {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* ------- MOTION · variant 2 (feature) — hero + sidebar list ------- */
.motion-feat {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: start;
}
.motion-feat__hero {
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.motion-feat__hero .motion__thumb {
  background: var(--bg-2);
}
.motion-feat__hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  pointer-events: none;
}
.motion-feat__hero-tags {
  display: flex;
  gap: 6px;
  font-size: 9.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.motion-feat__hero-tags span {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 8px;
}
.motion-feat__hero-play {
  align-self: flex-start;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  color: #fff;
  background: var(--accent);
  padding: 8px 12px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s;
}
.motion-feat__hero:hover .motion-feat__hero-play {
  opacity: 1;
}
.motion-feat__hero:hover .motion__thumb img {
  transform: scale(1.02);
  filter: brightness(0.78);
}

.motion-feat__hero-body {
  padding: 22px 0 0;
}
.motion-feat__hero-kicker {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.motion-feat__hero-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  margin: 8px 0 14px;
}
.motion-feat__hero-syn {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.4;
  font-style: italic;
  max-width: 56ch;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.motion-feat__hero-credit {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.motion-feat__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.motion-feat__list-label {
  padding: 10px 0;
  font-size: 9.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.motion-feat__row {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 28px 88px 1fr 18px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}
.motion-feat__row:hover {
  background: color-mix(in oklab, var(--ink) 4%, transparent);
}
.motion-feat__row.is-active {
  background: color-mix(in oklab, var(--accent) 7%, transparent);
}
.motion-feat__row.is-active .motion-feat__row-arrow {
  color: var(--accent);
}
.motion-feat__row-n {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
}
.motion-feat__row-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  overflow: hidden;
}
.motion-feat__row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.motion-feat__row-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.motion-feat__row-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.motion-feat__row-arrow {
  justify-self: end;
  font-size: 12px;
  color: var(--muted);
}

/* ------- MOTION · variant 3 (index) — editorial filmography table ------- */
.motion-idx {
  position: relative;
  border-top: 1px solid var(--line);
}
.motion-idx__header,
.motion-idx__row {
  display: grid;
  grid-template-columns:
    40px minmax(220px, 2.4fr) 60px minmax(120px, 1fr)
    60px minmax(160px, 1.4fr) 24px;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.motion-idx__header {
  padding: 12px 0;
  font-size: 9.5px;
}
.motion-idx__row {
  cursor: pointer;
  transition:
    background 0.15s,
    padding 0.2s;
}
.motion-idx__row:hover {
  background: color-mix(in oklab, var(--ink) 4%, transparent);
}
.motion-idx__row:hover .motion-idx__play {
  color: var(--accent);
  transform: translateX(2px);
}
.motion-idx__title h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-transform: none;
}
.motion-idx__desc {
  margin: 8px 0 0;
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.5;
}
.motion-idx__year {
  font-variant-numeric: tabular-nums;
}
.motion-idx__dur {
  font-variant-numeric: tabular-nums;
}
.motion-idx__play {
  justify-self: end;
  font-size: 14px;
  transition:
    transform 0.15s,
    color 0.15s;
  color: var(--muted);
}
.motion-idx__preview {
  position: fixed;
  pointer-events: none;
  bottom: 36px;
  right: 36px;
  width: min(38vw, 460px);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  padding: 8px 8px 10px;
  z-index: 40;
  animation: motionIdxPreviewIn 0.18s ease;
}
.motion-idx__preview img {
  width: 100%;
  height: auto;
  display: block;
}
.motion-idx__preview span {
  display: block;
  padding: 8px 4px 2px;
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
@keyframes motionIdxPreviewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------- MOTION · variant 4 (reel) — featured stage + horizontal strip ------- */
.motion-reel {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  grid-template-rows: auto auto;
  gap: 30px 36px;
}
.motion-reel__stage {
  grid-column: 1;
  grid-row: 1;
  cursor: pointer;
  background: var(--bg-2);
}
.motion-reel__stage .motion__thumb {
  aspect-ratio: 21/9;
}
.motion-reel__stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.55) 100%
  );
  opacity: 0;
  transition: opacity 0.25s;
}
.motion-reel__stage:hover .motion-reel__stage-overlay {
  opacity: 1;
}
.motion-reel__stage-play {
  font-size: 12px;
  letter-spacing: var(--tracking-label);
  color: #fff;
  background: var(--accent);
  padding: 12px 20px;
  text-transform: uppercase;
}
.motion-reel__info {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}
.motion-reel__info-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.motion-reel__title {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.05;
  margin: 0;
}
.motion-reel__syn {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}
.motion-reel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.motion-reel__tags span {
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-size: 9.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.motion-reel__credit {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.motion-reel__strip {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.motion-reel__cell {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.motion-reel__cell:hover {
  opacity: 0.9;
}
.motion-reel__cell.is-active {
  opacity: 1;
}
.motion-reel__cell.is-active .motion-reel__cell-thumb {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.motion-reel__cell-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  overflow: hidden;
}
.motion-reel__cell-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.motion-reel__cell-meta {
  display: flex;
  gap: 8px;
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* ------- MOTION · responsive ------- */
@media (max-width: 880px) {
  .motion-feat,
  .motion-reel {
    grid-template-columns: 1fr;
  }
  .motion-reel__stage {
    grid-column: 1;
    grid-row: 1;
  }
  .motion-reel__info {
    grid-column: 1;
    grid-row: 2;
  }
  .motion-reel__strip {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: repeat(2, 1fr);
  }

  .motion-idx__header {
    display: none;
  }
  .motion-idx__row {
    grid-template-columns: 32px 1fr 18px;
    grid-template-areas:
      "n title title"
      ". meta  play"
      ". desc  desc";
    row-gap: 10px;
  }
  .motion-idx__row > .motion-idx__n {
    grid-area: n;
  }
  .motion-idx__row > .motion-idx__title {
    grid-area: title;
  }
  .motion-idx__row > .motion-idx__year,
  .motion-idx__row > .motion-idx__loc,
  .motion-idx__row > .motion-idx__dur,
  .motion-idx__row > .motion-idx__role {
    grid-area: meta;
    display: inline;
  }
  .motion-idx__row > .motion-idx__year::after {
    content: " · ";
  }
  .motion-idx__row > .motion-idx__loc::after {
    content: " · ";
  }
  .motion-idx__row > .motion-idx__dur::after {
    content: " · ";
  }
  .motion-idx__play {
    grid-area: play;
  }
  .motion-idx__preview {
    display: none;
  }
}

/* ------- MOTION · variant 5 (stack/editorial) — alternating rows ------- */
.motion-stk {
  display: flex;
  flex-direction: column;
  gap: 80px;
  overflow-x: hidden;
  max-width: 100%;
  min-width: 0;
}
.motion--stack .motion__switch,
.motion--stack .strip__meta .muted,
.motion--stack .motion-stk__media-bar {
  display: none;
}

.motion-stk__row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.motion-stk__row.is-reverse {
  direction: rtl;
}
.motion-stk__row.is-reverse > * {
  direction: ltr;
}

.motion-stk__media {
  position: relative;
  cursor: pointer;
}
.motion-stk__media .motion__thumb {
  aspect-ratio: 4/3;
}
.motion-stk__media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s;
}
.motion-stk__media:hover .motion-stk__media-overlay {
  background: rgba(0, 0, 0, 0.32);
}
.motion-stk__media-play {
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  color: #fff;
  border: 1px solid #fff;
  padding: 10px 16px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s;
}
.motion-stk__media:hover .motion-stk__media-play {
  opacity: 1;
}
/* Vertical accent slab on the outer edge, mirroring the reference. */
.motion-stk__media-bar {
  position: absolute;
  top: 28px;
  bottom: 28px;
  right: -22px;
  width: 14px;
  background: var(--ink);
}
.motion-stk__row.is-reverse .motion-stk__media-bar {
  right: auto;
  left: -22px;
}

.motion-stk__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 52ch;
}
.motion-stk__index {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.motion-stk__title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.motion-stk__kicker {
  font-size: 12px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.motion-stk__rule {
  display: block;
  width: 64px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 22px;
}
.motion-stk__desc {
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  margin: 0 0 26px;
}
.motion-stk__cta {
  appearance: none;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 14px 26px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  margin-bottom: 22px;
}
.motion-stk__cta:hover {
  background: var(--ink);
  color: var(--bg);
}
.motion-stk__credit {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .motion-stk {
    gap: 56px;
  }
  .motion-stk__row,
  .motion-stk__row.is-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
  }
  .motion-stk__media-bar {
    display: none;
  }
  .motion-stk__title {
    font-size: clamp(32px, 8vw, 44px);
  }
}

/* ------------- SERVICES ------------- */
.services {
  padding: 0 var(--px-edge);
  margin-bottom: 160px;
}
.services__list {
  border-top: 1px solid var(--line);
}
.services__row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 60px;
  gap: 30px;
  align-items: baseline;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.3s,
    background 0.3s;
  cursor: pointer;
}
.services__row:hover {
  padding-left: 16px;
  background: var(--bg-2);
}
.services__row:hover .services__arrow {
  transform: translateX(8px);
  color: var(--accent);
}
.services__n {
  font-size: 11px;
  letter-spacing: var(--tracking-label);
}
.services__t {
  font-size: clamp(22px, 2.6vw, 36px);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.services__d {
  font-size: 12px;
  color: var(--ink-2);
  max-width: 46ch;
  line-height: 1.6;
}
.services__arrow {
  justify-self: end;
  font-size: 18px;
  transition:
    transform 0.3s,
    color 0.3s;
}

/* ------------- SHOP ------------- */
.shop {
  padding: 0 var(--px-edge);
  margin-bottom: 160px;
}
.shop__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
}
.shop__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-2);
}
.shop__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.shop__card:hover .shop__img img {
  transform: scale(1.04);
}
.shop__meta {
  padding: 12px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shop__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

/* ------------- KIOSCO ------------- */
.kiosco {
  padding: 80px var(--px-edge) 80px;
}
.kiosco__head {
  /* margin-bottom: 48px; */
  padding-left: 0 !important;
}
.kiosco__spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-items: stretch;
}

/* LEFT side */
.kiosco__left {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.kiosco__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
  flex: 1;
}
/* 3 small cards: first two fill top row, third spans full bottom */
.kiosco__card:nth-child(3) {
  grid-column: 1 / -1;
}

.kiosco__card {
  display: block;
  text-decoration: none;
  background: var(--bg-2);
  position: relative;
  min-height: 180px;
  overflow: hidden;
  transition: background 0.2s;
}
.kiosco__card:hover {
  background: var(--ink);
}
.kiosco__card:hover .kiosco__card-n,
.kiosco__card:hover .kiosco__card-platform,
.kiosco__card:hover .kiosco__card-handle,
.kiosco__card:hover .kiosco__card-cta {
  color: var(--bg);
}
.kiosco__card:hover .kiosco__card-n {
  color: oklch(0.55 0.005 80);
}

.kiosco__card-inner {
  padding: 20px 22px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.kiosco__card-n {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  transition: color 0.2s;
}
.kiosco__card-platform {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
  transition: color 0.2s;
}
.kiosco__card-handle {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.1;
  color: var(--ink);
  display: block;
  margin-top: 6px;
  transition: color 0.2s;
}
.kiosco__card-cta {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  color: var(--ink-2);
  margin-top: 16px;
  transition: color 0.2s;
}

/* Captions */
.kiosco__captions {
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kiosco__caption {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.kiosco__caption-n {
  font-size: 9.5px;
  letter-spacing: var(--tracking-label);
}

/* RIGHT — featured */
.kiosco__featured {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--ink);
  position: relative;
  min-height: 420px;
  overflow: hidden;
  transition: background 0.25s;
}
.kiosco__featured:hover {
  background: oklch(0.08 0.005 80);
}
.kiosco__featured-inner {
  padding: 32px 36px 36px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.kiosco__featured-n {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  color: oklch(0.55 0.005 80) !important;
}
.kiosco__featured-platform {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
}
.kiosco__featured-handle {
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.05;
  color: var(--bg);
  display: block;
  margin-top: 10px;
  white-space: pre-line;
}
.kiosco__featured-desc {
  font-size: 11px;
  line-height: 1.65;
  color: oklch(0.7 0.005 80);
  margin: 24px 0 0;
  max-width: 32ch;
}
.kiosco__featured-cta {
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  color: var(--bg);
  margin-top: 32px;
  display: block;
}

/* Bottom strip */
.kiosco__foot {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 80px;
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

/* Mobile */
@media (max-width: 680px) {
  .kiosco__spread {
    grid-template-columns: 1fr;
  }
  .kiosco__featured {
    min-height: 280px;
  }
  .kiosco__card {
    min-height: 140px;
  }
}

/* ------------- FOOTER ------------- */
.footer {
  padding: 80px var(--px-edge) 40px;
}
.footer__head {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 80px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
}
.footer__big {
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.96;
  margin: 0;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.footer__big em {
  font-style: italic;
  color: var(--accent);
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  font-size: 11px;
}
.footer__cols p {
  margin: 0;
  line-height: 1.7;
}
.footer__cols .muted {
  font-size: 9.5px;
  letter-spacing: var(--tracking-label);
  margin-bottom: 6px;
  display: block;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 80px;
  border-top: 1px solid var(--line);
  margin-top: 120px;
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

/* ------------- CURSOR PREVIEW ------------- */
.cursor-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 280px;
  pointer-events: none;
  z-index: 80;
  transition: opacity 0.2s;
  will-change: transform;
  margin: -140px 0 0 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.cursor-preview * {
  pointer-events: none;
}
.cursor-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------- LIGHTBOX ------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  cursor: default;
  opacity: 0;
  transition: opacity 0.26s ease;
}
.lightbox.is-visible {
  opacity: 1;
}

/* Entry image animation — only the very FIRST image of the session.
   Once the user navigates, the per-image fade-in below takes over. */
.lightbox.is-visible .lightbox__stage img {
  transition: opacity 0.24s ease;
}
.lightbox__stage.is-loading img {
  opacity: 0;
}
.lightbox__stage.is-loaded img {
  opacity: 1;
}

/* Spinner (appears only after LB_SLOW_MS if still loading) */
.lightbox__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1;
}
.lightbox__stage.is-slow .lightbox__spinner {
  opacity: 1;
}
.lightbox__spinner-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.85);
  animation: lbSpin 0.9s linear infinite;
}
@keyframes lbSpin {
  to {
    transform: rotate(360deg);
  }
}
.lightbox__spinner-label {
  font-size: 9.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.lightbox.is-visible .lightbox__caption,
.lightbox.is-visible .lightbox__counter,
.lightbox.is-visible .lightbox__close {
  animation: lbChromeIn 0.38s ease 0.08s both;
}
@keyframes lbChromeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== BACKGROUND variants via [data-lightbox-bg] ==== */
[data-lightbox-bg="cinema"] .lightbox {
  background: radial-gradient(
    ellipse at center,
    oklch(0.14 0.006 70) 0%,
    oklch(0.07 0.004 70) 70%,
    oklch(0.04 0.003 70) 100%
  );
}
[data-lightbox-bg="ink"] .lightbox {
  background: oklch(0.12 0.01 260);
}
[data-lightbox-bg="vignette"] .lightbox {
  background: radial-gradient(
    ellipse 90% 80% at center,
    oklch(0.18 0.008 70) 0%,
    oklch(0.08 0.005 70) 55%,
    oklch(0.02 0.002 70) 100%
  );
}
[data-lightbox-bg="paper"] .lightbox {
  background: oklch(0.92 0.018 75);
  color: oklch(0.18 0.015 40);
}
[data-lightbox-bg="spotlight"] .lightbox {
  background: radial-gradient(
    circle 60vh at 50% 45%,
    oklch(0.22 0.015 70) 0%,
    oklch(0.06 0.005 70) 60%,
    oklch(0.02 0 0) 100%
  );
}

/* Paper variant — invert contrast on overlay text/controls so they read on light bg */
[data-lightbox-bg="paper"] .lightbox__counter {
  color: oklch(0.35 0.015 40);
}
[data-lightbox-bg="paper"] .lightbox__close {
  color: oklch(0.25 0.015 40);
}
[data-lightbox-bg="paper"] .lightbox__close {
  border-color: oklch(0.7 0.02 60);
  background: transparent;
}
[data-lightbox-bg="paper"] .lightbox__close:hover {
  background: color-mix(in oklab, oklch(0.25 0.015 40) 8%, transparent);
}
[data-lightbox-bg="paper"] .lightbox__caption {
  color: oklch(0.2 0.015 40);
  border-top-color: oklch(0.78 0.02 60);
}
[data-lightbox-bg="paper"] .lightbox__caption-title {
  color: oklch(0.15 0.015 40);
}
[data-lightbox-bg="paper"] .lightbox__caption-index,
[data-lightbox-bg="paper"] .lightbox__caption-meta {
  color: oklch(0.42 0.015 40);
}
[data-lightbox-bg="paper"] .lightbox__nav {
  color: oklch(0.25 0.015 40);
}
[data-lightbox-bg="paper"] .lightbox__cursor {
  color: oklch(0.2 0.015 40);
}
[data-lightbox-bg="paper"] [data-lightbox-cursor="disc"] .lightbox__cursor,
[data-lightbox-bg="paper"] [data-lightbox-cursor="chip"] .lightbox__cursor {
  background: color-mix(in oklab, oklch(0.2 0.015 40) 8%, transparent);
  border-color: color-mix(in oklab, oklch(0.2 0.015 40) 25%, transparent);
}
[data-lightbox-bg="paper"] [data-lightbox-cursor="ring"] .lightbox__cursor {
  border-color: oklch(0.2 0.015 40);
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hide native cursor when over the backdrop (we draw our own).
   Native cursor only restores on truly interactive controls (close, nav buttons,
   and selectable cells in mosaic/contact/spread layouts). */
.lightbox[data-cursor="prev"],
.lightbox[data-cursor="next"] {
  cursor: none;
}
.lightbox[data-cursor="prev"] *,
.lightbox[data-cursor="next"] * {
  cursor: none;
}
.lightbox[data-cursor="prev"] .lightbox__close,
.lightbox[data-cursor="next"] .lightbox__close,
.lightbox[data-cursor="prev"] .lightbox__nav,
.lightbox[data-cursor="next"] .lightbox__nav,
.lightbox[data-cursor="prev"] .lightbox__mosaic-cell,
.lightbox[data-cursor="next"] .lightbox__mosaic-cell,
.lightbox[data-cursor="prev"] .lightbox__contact-cell,
.lightbox[data-cursor="next"] .lightbox__contact-cell,
.lightbox[data-cursor="prev"] .lightbox__spread-cell,
.lightbox[data-cursor="next"] .lightbox__spread-cell {
  cursor: pointer;
}

.lightbox__counter {
  position: absolute;
  top: 20px;
  left: var(--px-edge);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  z-index: 3;
}

/* --- CLOSE button base + variants ---
   Position is FIXED to the viewport so all layout & close-style variants
   render the close button in the exact same spot, regardless of which
   inner container the lightbox happens to lay out for the current layout. */
.lightbox__close {
  position: fixed;
  top: 20px;
  right: var(--px-edge);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  background: transparent;
  border: 0;
  padding: 6px 8px;
  cursor: pointer;
  z-index: 3;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.lightbox__close:hover {
  color: var(--accent);
}
.lightbox__close {
  z-index: 5;
}
.lightbox__close-label,
.lightbox__close-glyph,
.lightbox__close-esc {
  display: none;
}

/* LABEL — "CERRAR ✕" (default) */
[data-lightbox-close="label"] .lightbox__close-label,
[data-lightbox-close="label"] .lightbox__close-glyph {
  display: inline;
}

/* GLYPH — thin × inside a circle */
[data-lightbox-close="glyph"] .lightbox__close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  justify-content: center;
  font-size: 16px;
}
[data-lightbox-close="glyph"] .lightbox__close-glyph {
  display: inline;
}
[data-lightbox-close="glyph"] .lightbox__close:hover {
  border-color: var(--accent);
  transform: rotate(90deg);
}

/* CORNER — tiny × top-right, no background */
[data-lightbox-close="corner"] .lightbox__close {
  font-size: 22px;
  font-weight: 300;
  opacity: 0.7;
  padding: 4px 6px;
}
[data-lightbox-close="corner"] .lightbox__close-glyph {
  display: inline;
}
[data-lightbox-close="corner"] .lightbox__close:hover {
  opacity: 1;
}

/* KEYBOARD — "ESC" hint in a keycap */
[data-lightbox-close="keyboard"] .lightbox__close {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.04);
}
[data-lightbox-close="keyboard"] .lightbox__close-esc {
  display: inline;
}
[data-lightbox-close="keyboard"] .lightbox__close:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

/* --- STAGE --- */
.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--px-edge) 20px;
  position: relative;
  min-height: 0;
}
.lightbox__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  /* aspectRatio set inline via JS so the box reserves space before the
     image loads — prevents layout reflow when load resolves */
}
.lightbox__frame img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s,
    color 0.2s;
  z-index: 2;
}
/* Hide inline nav buttons by default — the backdrop-click area handles nav. */
/* Show them on variants where the backdrop isn't clickable. */
.lightbox__nav--prev {
  left: 12px;
}
.lightbox__nav--next {
  right: 12px;
}
.lightbox__nav:disabled {
  cursor: not-allowed;
}

/* --- CAPTION base + variants --- */
.lightbox__caption {
  color: rgba(255, 255, 255, 0.9);
  z-index: 2;
}
.lightbox__caption-index {
  display: none !important;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lightbox__caption-title {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: #fff;
  margin-bottom: 8px;
}
.lightbox__caption-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.lightbox__caption-sep {
  opacity: 0.4;
}
.lightbox__caption-desc {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 12px auto 0;
  max-width: 56ch;
  text-wrap: pretty;
}
[data-lightbox-bg="paper"] .lightbox__caption-desc {
  color: oklch(0.32 0.015 40);
}

/* ==== LAYOUT: MINIMAL (default) ==== */
[data-lightbox-layout="minimal"] .lightbox__caption,
.lightbox:not([data-lightbox-layout]) .lightbox__caption {
  padding: 20px var(--px-edge) 32px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
[data-lightbox-layout="minimal"] .lightbox__caption-index {
  display: none;
}
[data-lightbox-layout="minimal"] .lightbox__caption-title {
  font-size: 18px;
  margin-bottom: 4px;
}

/* ==== LAYOUT: FILMSTRIP — caption aligned left with index number ==== */
[data-lightbox-layout="filmstrip"] .lightbox__stage {
  padding: 60px var(--px-edge) 20px;
}
[data-lightbox-layout="filmstrip"] .lightbox__caption {
  padding: 24px var(--px-edge) 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
[data-lightbox-layout="filmstrip"] .lightbox__caption-title {
  margin: 0 auto 6px;
}
[data-lightbox-layout="filmstrip"] .lightbox__caption-meta {
  position: absolute;
  right: var(--px-edge);
  bottom: 40px;
}
[data-lightbox-layout="filmstrip"] .lightbox__caption-index {
  display: none;
}

/* ==== LAYOUT: FOCUS — caption overlays bottom-left of image, blurred chip ==== */
[data-lightbox-layout="focus"] .lightbox__stage {
  padding: 40px var(--px-edge);
  position: relative;
}
[data-lightbox-layout="focus"] .lightbox__caption {
  position: absolute;
  left: var(--px-edge);
  bottom: 32px;
  max-width: 440px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  text-align: left;
  z-index: 3;
}
[data-lightbox-layout="focus"] .lightbox__caption-title {
  font-size: 18px;
  margin-bottom: 6px;
}

/* ==== LAYOUT: MUSEUM — image left, caption column right ==== */
[data-lightbox-layout="museum"] {
  display: grid !important;
  grid-template-columns: 1fr 320px;
  grid-template-rows: 1fr;
}
[data-lightbox-layout="museum"] .lightbox__stage {
  padding: 80px 40px 40px 60px;
  grid-column: 1;
}
[data-lightbox-layout="museum"] .lightbox__caption {
  grid-column: 2;
  padding: 80px 40px 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[data-lightbox-layout="museum"] .lightbox__caption-title {
  font-size: 28px;
  margin: 0 0 4px;
  line-height: 1.15;
}
[data-lightbox-layout="museum"] .lightbox__caption-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
[data-lightbox-layout="museum"] .lightbox__caption-sep {
  display: none;
}
[data-lightbox-layout="museum"] .lightbox__nav {
  display: none;
}

/* ==== LAYOUT: SPREAD — editorial magazine spread (ref: Mallorca magazine) ==== */
/* Caption in top-left quadrant as a short blurb; hero image mid-left;
   5 neighbour tiles in an asymmetric 3-column grid on the right. */
[data-lightbox-layout="spread"] {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 32px;
  padding: 64px var(--px-edge) 40px;
  align-items: stretch;
}
[data-lightbox-layout="spread"] .lightbox__counter {
  position: absolute;
  top: 20px;
  left: var(--px-edge);
  z-index: 5;
}
[data-lightbox-layout="spread"] .lightbox__caption {
  grid-column: 1;
  grid-row: 1;
  padding: 0;
  align-self: start;
  max-width: 46ch;
  text-align: left;
  border: 0;
}
[data-lightbox-layout="spread"] .lightbox__caption-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-align: left;
}
[data-lightbox-layout="spread"] .lightbox__caption-meta {
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
}
[data-lightbox-layout="spread"] .lightbox__caption-index {
  display: none;
}

[data-lightbox-layout="spread"] .lightbox__stage {
  grid-column: 1;
  grid-row: 2;
  padding: 0;
  min-height: 0;
  min-width: 0;
}
[data-lightbox-layout="spread"] .lightbox__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[data-lightbox-layout="spread"] .lightbox__frame {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto !important;
}
[data-lightbox-layout="spread"] .lightbox__nav {
  display: none;
}

[data-lightbox-layout="spread"] .lightbox__spread-grid {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  min-height: 0;
  min-width: 0;
}
.lightbox__spread-cell {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  border: 0;
  transition: transform 0.2s;
}
.lightbox__spread-cell:hover {
  transform: scale(1.01);
}
.lightbox__spread-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox__spread-cap {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s;
}
.lightbox__spread-cell:hover .lightbox__spread-cap {
  opacity: 1;
}

/* Hide spread/mosaic/contact DOM on other layouts (always rendered conditionally,
   but belt-and-braces in case layout flips while open) */
.lightbox:not([data-lightbox-layout="spread"]) .lightbox__spread-grid,
[data-lightbox-layout="spread"] .lightbox__spread-grid {
}

/* ==== LAYOUT: MOSAIC — large hero + thumbnail grid below ==== */
[data-lightbox-layout="mosaic"] {
  display: grid !important;
  grid-template-rows: 1fr auto;
  padding: 56px var(--px-edge) 24px;
  gap: 20px;
}
[data-lightbox-layout="mosaic"] .lightbox__counter {
  position: absolute;
  top: 20px;
  left: var(--px-edge);
}
[data-lightbox-layout="mosaic"] .lightbox__stage {
  padding: 0;
  min-height: 0;
  position: relative;
}
[data-lightbox-layout="mosaic"] .lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  border: 0;
  text-align: left;
  pointer-events: none;
}
[data-lightbox-layout="mosaic"] .lightbox__caption-title {
  font-size: 18px;
  margin: 0 0 2px;
  text-align: left;
}
[data-lightbox-layout="mosaic"] .lightbox__caption-meta {
  font-size: 9.5px;
  justify-content: flex-start;
}
[data-lightbox-layout="mosaic"] .lightbox__caption-index {
  display: none;
}
[data-lightbox-layout="mosaic"] .lightbox__nav {
  display: none;
}

.lightbox__mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.lightbox__mosaic-cell {
  position: relative;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.5;
  transition: opacity 0.2s;
  background: rgba(255, 255, 255, 0.04);
}
.lightbox__mosaic-cell:hover {
  opacity: 0.85;
}
.lightbox__mosaic-cell.is-active {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.lightbox__mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox__mosaic-num {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.08em;
  mix-blend-mode: difference;
}

/* ==== LAYOUT: CONTACT — contact-sheet grid of all items, no hero ==== */
[data-lightbox-layout="contact"] {
  display: block !important;
  padding: 60px var(--px-edge) 40px;
  overflow-y: auto;
}
[data-lightbox-layout="contact"] .lightbox__counter {
  position: absolute;
  top: 20px;
  left: var(--px-edge);
  z-index: 5;
}
[data-lightbox-layout="contact"] .lightbox__stage,
[data-lightbox-layout="contact"] .lightbox__caption {
  display: none !important;
}

.lightbox__contact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.lightbox__contact-cell {
  position: relative;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.lightbox__contact-cell img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition:
    transform 0.3s,
    opacity 0.2s;
}
.lightbox__contact-cell:hover img {
  transform: scale(1.02);
}
.lightbox__contact-cell.is-active img {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.lightbox__contact-meta {
  display: flex;
  gap: 10px;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.lightbox__contact-cell.is-active .lightbox__contact-meta {
  color: var(--accent);
}

/* ==== LAYOUT: CARD — single image + caption block, like an editorial preview card.
   Orientation (vertical/horizontal) and order (normal/reverse) combine to give
   4 sub-layouts. Caption block contains the date + title + meta as a stacked unit. ==== */
[data-lightbox-layout="card"] .lightbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  padding: 72px var(--px-edge) 40px;
  overflow: hidden;
  box-sizing: border-box;
}
[data-lightbox-layout="card"] .lightbox * {
  box-sizing: border-box;
}
[data-lightbox-layout="card"] .lightbox__counter {
  position: absolute;
  top: 20px;
  left: var(--px-edge);
  z-index: 5;
}
[data-lightbox-layout="card"] .lightbox__nav {
  display: none;
}

[data-lightbox-layout="card"] .lightbox__card {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  max-width: min(1200px, 100%);
  width: 100%;
  max-height: 100%;
  min-height: 0;
  min-width: 0;
}

/* The stage becomes the image half of the card */
[data-lightbox-layout="card"] .lightbox__stage {
  flex: 1 1 60%;
  padding: 0;
  min-height: 0;
  min-width: 0;
  align-items: stretch;
  justify-content: stretch;
}
[data-lightbox-layout="card"] .lightbox__frame {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto !important;
}
[data-lightbox-layout="card"] .lightbox__stage img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

/* Caption block styled as the editorial text: small eyebrow, big serif title, meta */
[data-lightbox-layout="card"] .lightbox__caption {
  flex: 1 1 40%;
  padding: 0;
  border: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}
[data-lightbox-layout="card"] .lightbox__caption-index {
  display: block !important;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
[data-lightbox-layout="card"] .lightbox__caption-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-align: left;
  text-wrap: balance;
}
[data-lightbox-layout="card"] .lightbox__caption-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

/* --- VERTICAL orientation: image and text stacked --- */
[data-lightbox-layout="card"][data-card-orientation="vertical"]
  .lightbox__card {
  flex-direction: column;
  max-width: 720px;
  gap: clamp(20px, 3vh, 32px);
}
[data-lightbox-layout="card"][data-card-orientation="vertical"][data-card-order="reverse"]
  .lightbox__card {
  flex-direction: column-reverse;
}
[data-lightbox-layout="card"][data-card-orientation="vertical"]
  .lightbox__stage {
  flex: 1 1 auto;
  min-height: 0;
  height: 58vh;
}
[data-lightbox-layout="card"][data-card-orientation="vertical"]
  .lightbox__caption {
  flex: 0 0 auto;
  justify-content: flex-start;
}
[data-lightbox-layout="card"][data-card-orientation="vertical"]
  .lightbox__caption-title {
  font-size: clamp(26px, 3vw, 40px);
}

/* --- HORIZONTAL orientation: image and text side-by-side --- */
[data-lightbox-layout="card"][data-card-orientation="horizontal"]
  .lightbox__card {
  flex-direction: row;
  align-items: stretch;
}
[data-lightbox-layout="card"][data-card-orientation="horizontal"][data-card-order="reverse"]
  .lightbox__card {
  flex-direction: row-reverse;
}
[data-lightbox-layout="card"][data-card-orientation="horizontal"]
  .lightbox__stage {
  height: 72vh;
}

@media (max-width: 760px) {
  [data-lightbox-layout="card"][data-card-orientation="horizontal"]
    .lightbox__card {
    flex-direction: column;
  }
  [data-lightbox-layout="card"][data-card-orientation="horizontal"][data-card-order="reverse"]
    .lightbox__card {
    flex-direction: column-reverse;
  }
  [data-lightbox-layout="card"] .lightbox__stage {
    height: 50vh;
  }
}

/* --- Custom cursor arrow (on backdrop) — variants via [data-lightbox-cursor] --- */
.lightbox__cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 400;
  will-change: transform;
  color: #fff;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}
.lightbox__cursor-arrow {
  font-size: 18px;
  line-height: 1;
}
.lightbox__cursor-label {
  font-size: 9px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  display: none;
}

/* DISC (default) — filled translucent circle */
[data-lightbox-cursor="disc"] .lightbox__cursor,
:root:not([data-lightbox-cursor]) .lightbox__cursor {
  margin: -22px 0 0 -22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* RING — empty outline circle, larger and lighter */
[data-lightbox-cursor="ring"] .lightbox__cursor {
  margin: -28px 0 0 -28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
}
[data-lightbox-cursor="ring"] .lightbox__cursor-arrow {
  font-size: 20px;
  font-weight: 300;
}

/* CHIP — horizontal pill with arrow + label ("ANT" / "SIG") */
[data-lightbox-cursor="chip"] .lightbox__cursor {
  margin: -16px 0 0 -40px;
  padding: 8px 14px;
  min-width: 80px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-lightbox-cursor="chip"] .lightbox__cursor-arrow {
  font-size: 13px;
}
[data-lightbox-cursor="chip"] .lightbox__cursor-label {
  display: inline;
}
[data-lightbox-cursor="chip"] .lightbox__cursor[data-side="prev"] {
  flex-direction: row;
}
[data-lightbox-cursor="chip"] .lightbox__cursor[data-side="next"] {
  flex-direction: row-reverse;
}

/* ARROW — minimal: just a large glyph, no container, with soft drop-shadow */
[data-lightbox-cursor="arrow"] .lightbox__cursor {
  margin: -16px 0 0 -16px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
}
[data-lightbox-cursor="arrow"] .lightbox__cursor-arrow {
  font-size: 34px;
  font-weight: 200;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

/* DOT — tiny accent-colored dot with the arrow to its side */
[data-lightbox-cursor="dot"] .lightbox__cursor {
  margin: -6px 0 0 -6px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
}
[data-lightbox-cursor="dot"] .lightbox__cursor-arrow {
  position: absolute;
  top: 50%;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: var(--tracking-label);
}
[data-lightbox-cursor="dot"]
  .lightbox__cursor[data-side="prev"]
  .lightbox__cursor-arrow {
  right: 20px;
  transform: translateY(-50%);
}
[data-lightbox-cursor="dot"]
  .lightbox__cursor[data-side="next"]
  .lightbox__cursor-arrow {
  left: 20px;
  transform: translateY(-50%);
}

/* ------------- INTRO ------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  color: var(--ink);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.intro--out {
  opacity: 0;
  pointer-events: none;
}
.intro__grid {
  position: absolute;
  inset: 0;
  padding: var(--px-edge);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.intro__tl {
  grid-column: 1;
  grid-row: 1;
}
.intro__tr {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}
.intro__bl {
  grid-column: 1;
  grid-row: 3;
}
.intro__br {
  grid-column: 2;
  grid-row: 3;
  text-align: right;
}
.intro__center {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.intro__bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(560px, 70vw);
}
.intro__bar {
  width: 100%;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.intro__bar-fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  width: 0;
  transition: width 0.05s linear;
}
.intro__bar-meta {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.intro__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-serif);
  font-size: clamp(64px, 12vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  animation: riseIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.intro__name-line {
  display: block;
}
.intro__name-line:nth-child(2) {
  font-style: italic;
  margin-left: 1em;
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------- TWEAKS PANEL ------------- */
.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  z-index: 400;
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
}
.tweaks__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.tweaks__body {
  padding: 6px 14px 14px;
}
.tweaks__group {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tweaks__group:last-child {
  border-bottom: 0;
}
.tweaks__hint {
  font-size: 10px;
  color: var(--muted);
  margin-top: -4px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  font-style: italic;
  opacity: 0.8;
}
.tweaks__label {
  font-size: 9.5px;
  letter-spacing: var(--tracking-label);
  color: var(--muted);
  margin-bottom: 10px;
}
.tweaks__row {
  display: flex;
  gap: 6px;
}
.tweaks__row--wrap {
  flex-wrap: wrap;
}
.tweaks__row button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.tweaks__row button:hover {
  border-color: var(--ink);
}
.tweaks__row button.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tweaks__swatch {
  width: 10px;
  height: 10px;
  background: var(--swatch);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* ------------- DISPLAY FONT VARIANTS ------------- */
[data-display="serif"] .about__lead,
[data-display="serif"] .services__t,
[data-display="serif"] .footer__big,
[data-display="serif"] .intro__name {
  font-family: var(--font-serif);
}

[data-display="sans"] .about__lead,
[data-display="sans"] .services__t,
[data-display="sans"] .footer__big,
[data-display="sans"] .intro__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.03em;
}
[data-display="sans"] .intro__name-line:nth-child(2) {
  font-style: normal;
}
[data-display="sans"] .footer__big em {
  font-style: normal;
}

[data-display="mono"] .about__lead,
[data-display="mono"] .services__t,
[data-display="mono"] .footer__big,
[data-display="mono"] .intro__name {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-style: normal;
}
[data-display="mono"] .intro__name-line:nth-child(2) {
  font-style: normal;
}
[data-display="mono"] .footer__big em {
  font-style: normal;
}

/* =====================================================================
   LIGHTBOX · COLLAGE LAYOUT
   Editorial 2-page magazine spread on a paper background.
   Left page: intro paragraph → chapter number + kicker rule → BIG display word.
   Right page: numbered captions list → asymmetric image grid with one hero cell.
   Triggered by item.type === "collage".
   ===================================================================== */
[data-lightbox-layout="collage"] .lightbox {
  display: block !important;
  background: oklch(0.96 0.005 80);
  overflow: hidden;
  padding: 0;
}
[data-lightbox-layout="collage"] .lightbox__counter {
  color: oklch(0.35 0.015 40);
  z-index: 60;
}
[data-lightbox-layout="collage"] .lightbox__nav {
  display: none;
}
[data-lightbox-layout="collage"] .lightbox__close {
  z-index: 60;
  color: oklch(0.18 0.01 40);
  border-color: oklch(0.55 0.01 40);
  background: oklch(0.99 0.003 80);
}
[data-lightbox-layout="collage"] .lightbox__close:hover {
  background: oklch(0.18 0.01 40);
  color: oklch(0.96 0.005 80);
}

.lightbox__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  background: oklch(0.96 0.005 80);
  color: oklch(0.14 0.01 40);
  position: relative;
  overflow: hidden;
}
.lightbox__collage::before {
  /* gutter line between the two pages */
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  background: oklch(0.85 0.01 60);
}

.lightbox__collage-page {
  padding: clamp(40px, 5vw, 72px) clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

/* ---- LEFT PAGE ---- */
.lightbox__collage-page--left {
  justify-content: space-between;
  gap: 28px;
}
.lightbox__collage-intro {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.45;
  max-width: 36ch;
  color: oklch(0.18 0.01 40);
  margin: 0;
}
.lightbox__collage-chapter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0 10px;
  border-bottom: 1px solid oklch(0.78 0.01 60);
}
.lightbox__collage-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
  color: oklch(0.14 0.01 40);
  letter-spacing: -0.02em;
}
.lightbox__collage-rule {
  display: block;
  height: 1px;
  background: oklch(0.55 0.01 60);
}
.lightbox__collage-kicker {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  text-align: right;
  line-height: 1.3;
  max-width: 18ch;
}
.lightbox__collage-display {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 200px; /* fallback — JS overrides to fit width on one line */
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: oklch(0.1 0.01 40);
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  flex: 1;
  display: block;
  align-self: stretch;
  align-content: center;
}
.lightbox__collage-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.45 0.01 40);
  padding-top: 18px;
  border-top: 1px solid oklch(0.85 0.01 60);
  margin-top: auto;
}

/* ---- RIGHT PAGE ---- */
.lightbox__collage-page--right {
  gap: 22px;
}
.lightbox__collage-captions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: oklch(0.3 0.01 40);
  max-width: 32ch;
}
.lightbox__collage-captions li {
  display: flex;
  gap: 6px;
  line-height: 1.4;
}
.lightbox__collage-cap-num {
  color: oklch(0.45 0.01 40);
  flex-shrink: 0;
}

/* asymmetric grid: 3 cols × 2 rows; the .is-hero cell spans 2×2 */
.lightbox__collage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.lightbox__collage-cell {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: oklch(0.88 0.01 60);
  min-height: 0;
}
.lightbox__collage-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.02);
}
.lightbox__collage-cell figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 3px 6px;
  text-transform: uppercase;
}
.lightbox__collage-cell.is-hero {
  grid-column: span 2;
  grid-row: span 2;
}

/* When fewer than 4 cells, drop to 2 cols and let the hero shine */
.lightbox__collage-grid:has(.cell-3:last-child),
.lightbox__collage-grid:has(.cell-2:last-child),
.lightbox__collage-grid:has(.cell-1:last-child) {
  grid-template-columns: repeat(2, 1fr);
}

/* ---- responsive: stack on narrow screens ---- */
@media (max-width: 900px) {
  .lightbox__collage {
    grid-template-columns: 1fr;
  }
  .lightbox__collage::before {
    display: none;
  }
  .lightbox__collage-grid {
    min-height: 320px;
  }
}

/* =============================================================
   COLLAGE VARIANT 2 — MOSAIC: full-bleed asymmetric grid + card
   ============================================================= */
.lightbox__collage-mosaic {
  position: relative;
  width: 100%;
  height: 100vh;
  background: oklch(0.1 0.005 60);
  overflow: hidden;
}
.cmosaic__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 6px;
  padding: 6px;
}
.cmosaic__cell {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: oklch(0.18 0.005 60);
}
.cmosaic__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.1) contrast(1.04);
}
.cmosaic__cell figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: oklch(0.96 0.005 80);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 8px;
  backdrop-filter: blur(6px);
}
.cmosaic__cell figcaption span:first-child {
  color: var(--accent);
  font-weight: 600;
}
/* asymmetric placements */
.cmosaic__cell--0 {
  grid-column: 1 / span 5;
  grid-row: 1 / span 5;
}
.cmosaic__cell--1 {
  grid-column: 6 / span 4;
  grid-row: 1 / span 3;
}
.cmosaic__cell--2 {
  grid-column: 10 / span 3;
  grid-row: 1 / span 4;
}
.cmosaic__cell--3 {
  grid-column: 6 / span 4;
  grid-row: 4 / span 3;
}
.cmosaic__cell--4 {
  grid-column: 1 / span 4;
  grid-row: 6 / span 3;
}
.cmosaic__cell--5 {
  grid-column: 5 / span 5;
  grid-row: 7 / span 2;
}
.cmosaic__cell--6 {
  grid-column: 10 / span 3;
  grid-row: 5 / span 4;
}

.cmosaic__card {
  position: absolute;
  right: clamp(28px, 4vw, 60px);
  bottom: clamp(28px, 4vw, 60px);
  width: clamp(320px, 28vw, 440px);
  background: oklch(0.97 0.005 80);
  color: oklch(0.14 0.01 40);
  padding: 28px 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.cmosaic__card-kicker {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
  border-bottom: 1px solid oklch(0.78 0.01 60);
}
.cmosaic__card-kicker span:last-child {
  color: oklch(0.45 0.01 40);
}
.cmosaic__card-display {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(48px, 4.4vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: oklch(0.1 0.01 40);
  margin: 0;
  text-transform: uppercase;
}
.cmosaic__card-intro {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.5;
  color: oklch(0.22 0.01 40);
  margin: 0;
}
.cmosaic__card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.45 0.01 40);
  padding-top: 12px;
  border-top: 1px solid oklch(0.85 0.01 60);
  margin-top: auto;
}

/* =============================================================
   COLLAGE VARIANT 3 — STACK: scrapbook polaroids on tinted board
   ============================================================= */
.lightbox__collage-stack {
  position: relative;
  width: 100%;
  height: 100vh;
  background: radial-gradient(
    ellipse at 30% 20%,
    oklch(0.32 0.025 30) 0%,
    oklch(0.16 0.015 30) 70%
  );
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 0;
  color: oklch(0.95 0.005 60);
}
.cstack__head {
  padding: clamp(40px, 5vw, 64px) clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1px dashed oklch(0.5 0.01 40);
  background: oklch(0.13 0.012 30);
}
.cstack__head-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.cstack__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px oklch(0.13 0.012 30),
    0 0 0 5px var(--accent);
}
.cstack__display {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 5.6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: oklch(0.97 0.01 60);
  margin: 0;
  text-transform: none;
}
.cstack__intro {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: oklch(0.78 0.01 60);
  margin: 0;
  max-width: 38ch;
}
.cstack__head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.65 0.01 40);
  padding-top: 18px;
  border-top: 1px dashed oklch(0.4 0.01 40);
  margin-top: auto;
}
.cstack__board {
  position: relative;
  padding: 40px;
  overflow: hidden;
}
.cstack__polaroid {
  position: absolute;
  margin: 0;
  background: oklch(0.97 0.005 80);
  padding: 10px 10px 38px;
  box-shadow:
    0 20px 35px rgba(0, 0, 0, 0.45),
    0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translate(var(--ox, 0), var(--oy, 0)) rotate(var(--rot, 0));
  transition:
    transform 220ms ease,
    z-index 0s;
  width: 28%;
  aspect-ratio: 4 / 5;
}
.cstack__polaroid:hover {
  transform: translate(var(--ox, 0), calc(var(--oy, 0) - 8px)) rotate(0deg)
    scale(1.04);
  z-index: 50;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.cstack__photo {
  width: 100%;
  height: 100%;
  background: oklch(0.18 0.005 60);
  overflow: hidden;
}
.cstack__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.03);
}
.cstack__cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  display: flex;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: oklch(0.25 0.01 40);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cstack__cap span:first-child {
  color: var(--accent);
  font-weight: 600;
}
.cstack__tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 64px;
  height: 18px;
  background: rgba(220, 200, 140, 0.55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  border-left: 1px dashed rgba(255, 255, 255, 0.4);
  border-right: 1px dashed rgba(255, 255, 255, 0.4);
}
/* spread polaroids across the board — stable positions per index */
.cstack__polaroid--0 {
  top: 6%;
  left: 4%;
}
.cstack__polaroid--1 {
  top: 4%;
  left: 36%;
}
.cstack__polaroid--2 {
  top: 8%;
  left: 68%;
}
.cstack__polaroid--3 {
  top: 38%;
  left: 18%;
}
.cstack__polaroid--4 {
  top: 42%;
  left: 50%;
}
.cstack__polaroid--5 {
  top: 56%;
  left: 6%;
}
.cstack__polaroid--6 {
  top: 58%;
  left: 70%;
}

/* =============================================================
   COLLAGE VARIANT 4 — STRIP: contact-sheet filmstrip
   ============================================================= */
.lightbox__collage-strip {
  width: 100%;
  height: 100vh;
  background: oklch(0.13 0.005 60);
  color: oklch(0.95 0.005 80);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 3vw, 56px) clamp(28px, 4vw, 80px);
  gap: clamp(16px, 2vw, 28px);
  overflow: hidden;
}
.cstrip__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cstrip__head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.7 0.01 60);
}
.cstrip__brand {
  color: var(--accent);
  font-weight: 600;
}
.cstrip__divider {
  width: 1px;
  height: 14px;
  background: oklch(0.4 0.01 60);
}
.cstrip__spacer {
  flex: 1;
}
.cstrip__display {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(40px, 4.5vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: oklch(0.97 0.005 80);
  margin: 0;
  text-transform: uppercase;
}
.cstrip__intro {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.5;
  color: oklch(0.7 0.01 60);
  margin: 0;
  max-width: 60ch;
}
.cstrip__film {
  position: relative;
  background: oklch(0.06 0.005 60);
  display: grid;
  grid-template-rows: 18px 1fr 18px;
  border-radius: 2px;
  overflow: hidden;
  align-self: center;
  width: 100%;
  max-height: 70vh;
}
.cstrip__perf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
  padding: 0 8px;
  background: oklch(0.02 0.005 60);
}
.cstrip__perf span {
  width: 18px;
  height: 10px;
  background: oklch(0.13 0.005 60);
  border-radius: 2px;
  justify-self: center;
}
.cstrip__frames {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: oklch(0.4 0.01 60) transparent;
}
.cstrip__frame {
  position: relative;
  margin: 0;
  background: oklch(0.18 0.005 60);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  min-width: 0;
}
.cstrip__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.08) saturate(0.7);
}
.cstrip__frame-num {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.7);
  padding: 2px 5px;
  z-index: 2;
}
.cstrip__frame figcaption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: oklch(0.95 0.005 80);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cstrip__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.55 0.01 60);
  padding-top: 8px;
  border-top: 1px solid oklch(0.25 0.01 60);
}

/* =============================================================
   COLLAGE VARIANT 5 — ATLAS: archival index, specimen cards
   ============================================================= */
.lightbox__collage-atlas {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background: oklch(0.97 0.005 80);
  background-image:
    linear-gradient(oklch(0.88 0.01 60) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.88 0.01 60) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: -1px -1px;
  color: oklch(0.14 0.01 40);
  padding: clamp(36px, 4vw, 72px) clamp(36px, 5vw, 96px);
}
.catlas__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 2px solid oklch(0.14 0.01 40);
}
.catlas__head-l {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.catlas__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.catlas__rule {
  flex: 1;
  height: 1px;
  background: oklch(0.6 0.01 60);
  max-width: 80px;
}
.catlas__display {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(56px, 6.5vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: oklch(0.1 0.01 40);
  margin: 0;
  text-transform: uppercase;
}
.catlas__head-r {
  display: grid;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.3 0.01 40);
}
.catlas__meta-row {
  display: grid;
  grid-template-columns: 60px auto;
  gap: 16px;
  border-bottom: 1px dotted oklch(0.7 0.01 60);
  padding: 4px 0;
  min-width: 220px;
}
.catlas__meta-row span:first-child {
  color: oklch(0.5 0.01 40);
}
.catlas__meta-row span:last-child {
  color: oklch(0.14 0.01 40);
  font-weight: 600;
}
.catlas__intro {
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.55;
  color: oklch(0.22 0.01 40);
  margin: 22px 0 32px;
  max-width: 70ch;
  column-count: 2;
  column-gap: 36px;
}
.catlas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.catlas__card {
  margin: 0;
  background: oklch(0.99 0.003 80);
  border: 1px solid oklch(0.14 0.01 40);
  display: flex;
  flex-direction: column;
}
.catlas__card-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.96 0.005 80);
  background: oklch(0.14 0.01 40);
}
.catlas__card-tag span:first-child {
  color: var(--accent);
  font-weight: 600;
}
.catlas__card-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: oklch(0.85 0.01 60);
  border-bottom: 1px solid oklch(0.14 0.01 40);
}
.catlas__card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2) contrast(1.05);
}
.catlas__card-cap {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.catlas__card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.2;
  color: oklch(0.1 0.01 40);
}
.catlas__card-meta {
  display: flex;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.45 0.01 40);
}
.catlas__card-meta span:last-child {
  color: var(--accent);
}

/* =============================================================
   COLLAGE VARIANT 6 — GALLERY: art-gallery exhibition wall
   ============================================================= */
.lightbox__collage-gallery {
  width: 100%;
  height: 100vh;
  background: oklch(0.96 0.005 80);
  color: oklch(0.14 0.01 40);
  display: grid;
  grid-template-columns: 1fr minmax(320px, 380px);
  overflow: hidden;
}
.cgal__wall {
  position: relative;
  background: linear-gradient(
    180deg,
    oklch(0.93 0.005 80) 0%,
    oklch(0.9 0.005 80) 100%
  );
  padding: clamp(40px, 4vw, 72px);
  display: grid;
  grid-template-columns: 1fr minmax(140px, 180px);
  gap: 28px;
  border-right: 1px solid oklch(0.78 0.01 60);
  overflow: hidden;
}
.cgal__wall::before {
  content: "";
  position: absolute;
  inset: 0 0 14% 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.05));
  pointer-events: none;
}
.cgal__wall::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 14%;
  background: oklch(0.84 0.008 70);
  border-top: 1px solid oklch(0.72 0.01 60);
}
.cgal__hero {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  padding-top: clamp(20px, 4vh, 60px);
}
.cgal__hero-frame {
  background: oklch(0.99 0.003 80);
  padding: 14px;
  box-shadow:
    0 1px 0 oklch(0.78 0.01 60) inset,
    0 24px 40px rgba(0, 0, 0, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 80%;
  border: 1px solid oklch(0.78 0.01 60);
}
.cgal__hero-frame img {
  width: 100%;
  display: block;
  max-height: 60vh;
  object-fit: cover;
  filter: contrast(1.04);
}
.cgal__placard {
  margin-top: 22px;
  background: oklch(0.99 0.003 80);
  padding: 12px 18px;
  border: 1px solid oklch(0.62 0.01 40);
  text-align: center;
  min-width: 280px;
  max-width: 70%;
}
.cgal__placard-num {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 4px;
}
.cgal__placard-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.25;
  color: oklch(0.1 0.01 40);
}
.cgal__placard-meta {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: oklch(0.45 0.01 40);
  text-transform: uppercase;
  margin-top: 6px;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.cgal__plates {
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
  padding-top: clamp(20px, 4vh, 60px);
  padding-right: 8px;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: oklch(0.7 0.01 60) transparent;
  min-height: 0;
}
.cgal__plates::-webkit-scrollbar {
  width: 6px;
}
.cgal__plates::-webkit-scrollbar-track {
  background: transparent;
}
.cgal__plates::-webkit-scrollbar-thumb {
  background: oklch(0.78 0.01 60);
  border-radius: 3px;
}
.cgal__plate {
  margin: 0;
}
.cgal__plate-frame {
  background: oklch(0.99 0.003 80);
  padding: 6px;
  border: 1px solid oklch(0.78 0.01 60);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
.cgal__plate-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  filter: grayscale(0.1) contrast(1.04);
}
.cgal__plate figcaption {
  display: flex;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: oklch(0.4 0.01 40);
  text-transform: uppercase;
  margin-top: 6px;
}
.cgal__plate-num {
  color: var(--accent);
  font-weight: 600;
}

.cgal__header {
  padding: clamp(40px, 4vw, 64px) clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: oklch(0.97 0.005 80);
}
.cgal__header-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.cgal__header-rule {
  flex: 1;
  height: 1px;
  background: oklch(0.6 0.01 60);
  max-width: 80px;
}
.cgal__display {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(48px, 5vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: oklch(0.1 0.01 40);
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.05em 0;
}
.cgal__intro {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: oklch(0.22 0.01 40);
  margin: 0;
}
.cgal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.45 0.01 40);
  padding-top: 18px;
  border-top: 1px solid oklch(0.85 0.01 60);
  margin-top: auto;
}

/* =============================================================
   COLLAGE VARIANT 7 — REVIEW: 3-column photo-review with pull-quote
   ============================================================= */
.lightbox__collage-review {
  width: 100%;
  height: 100vh;
  background: oklch(0.97 0.005 80);
  color: oklch(0.14 0.01 40);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 3vw, 56px) clamp(40px, 5vw, 80px);
  gap: 24px;
  overflow: hidden;
}
.crev__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 2px solid oklch(0.14 0.01 40);
  padding-bottom: 16px;
}
.crev__head-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.crev__head-spacer {
  flex: 1;
}
.crev__head-kicker span:last-child {
  color: oklch(0.45 0.01 40);
}
.crev__display {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(56px, 6vw, 100px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: oklch(0.1 0.01 40);
  margin: 0;
  text-transform: uppercase;
}
.crev__byline {
  display: flex;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.4 0.01 40);
}
.crev__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 36px);
  min-height: 0;
  overflow: hidden;
}
.crev__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: hidden;
}
.crev__lead,
.crev__para {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: oklch(0.18 0.01 40);
  margin: 0;
  text-align: justify;
  hyphens: auto;
}
.crev__dropcap {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 56px;
  float: left;
  line-height: 0.85;
  margin: 4px 8px -2px 0;
  color: var(--accent);
}
.crev__photo {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.crev__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: grayscale(0.1) contrast(1.04);
}
.crev__photo--tall img {
  aspect-ratio: 3 / 4;
}
.crev__photo figcaption {
  display: flex;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.4 0.01 40);
  padding-top: 4px;
  border-top: 1px solid oklch(0.78 0.01 60);
}
.crev__photo figcaption span:first-child {
  color: var(--accent);
  font-weight: 600;
}
.crev__quote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.4vw, 24px);
  line-height: 1.25;
  color: oklch(0.14 0.01 40);
  padding: 14px 0;
  border-top: 1px solid oklch(0.14 0.01 40);
  border-bottom: 1px solid oklch(0.14 0.01 40);
  text-align: center;
  letter-spacing: -0.01em;
}
.crev__quote-mark {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}
.crev__foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.45 0.01 40);
  padding-top: 12px;
  border-top: 1px solid oklch(0.78 0.01 60);
}

/* =============================================================
   COLLAGE VARIANT 8 — PORTFOLIO: title page (1/3) + photo grid (2/3)
   ============================================================= */
.lightbox__collage-portfolio {
  width: 100%;
  height: 100vh;
  background: oklch(0.97 0.005 80);
  color: oklch(0.14 0.01 40);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 2fr;
  overflow: hidden;
}
.cport__title {
  padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: oklch(0.94 0.008 80);
  border-right: 1px solid oklch(0.78 0.01 60);
}
.cport__title-top,
.cport__title-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.45 0.01 40);
}
.cport__title-top {
  border-bottom: 1px solid oklch(0.78 0.01 60);
  padding-bottom: 14px;
}
.cport__title-top span:first-child {
  color: var(--accent);
  font-weight: 600;
}
.cport__title-foot {
  border-top: 1px solid oklch(0.78 0.01 60);
  padding-top: 14px;
  margin-top: auto;
}
.cport__display {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(64px, 7vw, 130px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: oklch(0.1 0.01 40);
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.05em 0;
}
.cport__kicker {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.cport__intro {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.5;
  color: oklch(0.22 0.01 40);
  margin: 0;
  max-width: 38ch;
}
.cport__index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.3 0.01 40);
}
.cport__index li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
}
.cport__index li span:first-child {
  color: var(--accent);
  font-weight: 600;
}
.cport__index-rule {
  height: 1px;
  background: oklch(0.78 0.01 60);
}
.cport__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  padding: clamp(20px, 2vw, 36px);
  min-height: 0;
}
.cport__cell {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: oklch(0.85 0.01 60);
  min-height: 0;
}
.cport__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.1) contrast(1.04);
}
.cport__cell figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.96 0.005 80);
  background: rgba(0, 0, 0, 0.55);
  padding: 3px 6px;
}
.cport__cell figcaption span:first-child {
  color: var(--accent);
}
.cport__cell--0 {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
}
.cport__cell--1 {
  grid-column: 3 / span 2;
  grid-row: 1 / span 1;
}
.cport__cell--2 {
  grid-column: 3 / span 1;
  grid-row: 2 / span 2;
}
.cport__cell--3 {
  grid-column: 4 / span 1;
  grid-row: 2 / span 1;
}
.cport__cell--4 {
  grid-column: 4 / span 1;
  grid-row: 3 / span 2;
}
.cport__cell--5 {
  grid-column: 1 / span 3;
  grid-row: 3 / span 2;
}

/* =============================================================
   COLLAGE VARIANT 9 — JOURNAL: text page + marginalia + staircase plates
   ============================================================= */
.lightbox__collage-journal {
  width: 100%;
  height: 100vh;
  background: oklch(0.96 0.005 80);
  color: oklch(0.14 0.01 40);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.cjour__page {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: clamp(40px, 4vw, 64px) clamp(28px, 3vw, 48px);
  gap: 28px;
  border-right: 1px solid oklch(0.78 0.01 60);
  background: oklch(0.97 0.003 80);
}
.cjour__margin {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.45 0.01 40);
  padding-right: 14px;
  border-right: 1px solid oklch(0.85 0.01 60);
  text-align: right;
}
.cjour__margin-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cjour__margin-block span:first-child {
  color: oklch(0.55 0.01 40);
}
.cjour__margin-block span:last-child {
  color: oklch(0.14 0.01 40);
}
.cjour__margin-block:first-child {
  color: var(--accent);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: flex-end;
  letter-spacing: 0.3em;
  font-weight: 600;
  margin-bottom: auto;
}
.cjour__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cjour__chapter {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.cjour__display {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 6vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: oklch(0.1 0.01 40);
  margin: 0;
}
.cjour__rule {
  height: 1px;
  width: 60px;
  background: oklch(0.14 0.01 40);
  margin: 6px 0;
}
.cjour__intro {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.6;
  color: oklch(0.18 0.01 40);
  margin: 0;
  text-align: justify;
  hyphens: auto;
}
.cjour__list {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid oklch(0.78 0.01 60);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.3 0.01 40);
}
.cjour__list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: baseline;
}
.cjour__list li span:first-child {
  color: var(--accent);
}
.cjour__list-loc {
  color: oklch(0.5 0.01 40);
}
.cjour__plates {
  position: relative;
  padding: clamp(40px, 4vw, 64px);
  overflow: hidden;
}
.cjour__plate {
  position: absolute;
  margin: 0;
  background: oklch(0.99 0.003 80);
  padding: 8px;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.16),
    0 2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cjour__plate-img {
  width: 100%;
  background: oklch(0.85 0.01 60);
  overflow: hidden;
}
.cjour__plate-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}
.cjour__plate figcaption {
  display: flex;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.4 0.01 40);
  padding-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cjour__plate figcaption span:first-child {
  color: var(--accent);
  font-weight: 600;
}
/* staircase positioning — descending plates */
.cjour__plate--0 {
  top: 4%;
  left: 6%;
  width: 46%;
  aspect-ratio: 4/3;
}
.cjour__plate--0 .cjour__plate-img {
  aspect-ratio: 4/3;
}
.cjour__plate--1 {
  top: 18%;
  left: 50%;
  width: 38%;
  aspect-ratio: 3/4;
}
.cjour__plate--1 .cjour__plate-img {
  aspect-ratio: 3/4;
}
.cjour__plate--2 {
  top: 50%;
  left: 8%;
  width: 32%;
  aspect-ratio: 1/1;
}
.cjour__plate--2 .cjour__plate-img {
  aspect-ratio: 1/1;
}
.cjour__plate--3 {
  top: 62%;
  left: 42%;
  width: 30%;
  aspect-ratio: 4/3;
}
.cjour__plate--3 .cjour__plate-img {
  aspect-ratio: 4/3;
}
.cjour__plate--4 {
  top: 70%;
  left: 74%;
  width: 22%;
  aspect-ratio: 3/4;
}
.cjour__plate--4 .cjour__plate-img {
  aspect-ratio: 3/4;
}

/* =============================================================
   COLLAGE VARIANT 10 — BROADSHEET: newspaper masthead + 4-col grid
   ============================================================= */
.lightbox__collage-broadsheet {
  width: 100%;
  height: 100vh;
  background: oklch(0.97 0.005 80);
  color: oklch(0.14 0.01 40);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: clamp(24px, 2.5vw, 40px) clamp(36px, 5vw, 80px);
  gap: 14px;
  overflow: hidden;
}
.cbs__masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 3px double oklch(0.14 0.01 40);
}
.cbs__masthead-l,
.cbs__masthead-r {
  display: flex;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.4 0.01 40);
}
.cbs__masthead-r {
  justify-content: flex-end;
}
.cbs__masthead-c {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0.08em;
  color: oklch(0.1 0.01 40);
  text-transform: uppercase;
  white-space: nowrap;
}
.cbs__heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid oklch(0.14 0.01 40);
  text-align: center;
  align-items: center;
}
.cbs__kicker {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.cbs__display {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(40px, 4.5vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: oklch(0.1 0.01 40);
  margin: 0;
  text-transform: uppercase;
}
.cbs__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  color: oklch(0.22 0.01 40);
  margin: 0;
  max-width: 60ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cbs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: 0;
  height: 100%;
}
.cbs__cell {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.cbs__cell-img {
  flex: 1 1 0;
  min-height: 0;
  background: oklch(0.85 0.01 60);
  overflow: hidden;
  border-bottom: 1px solid oklch(0.14 0.01 40);
}
.cbs__cell-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.18) contrast(1.06);
}
.cbs__cell-num {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  padding-top: 4px;
}
.cbs__cell-title {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.2;
  color: oklch(0.1 0.01 40);
  font-weight: 600;
}
.cbs__cell-loc {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: oklch(0.45 0.01 40);
  text-transform: uppercase;
}
.cbs__cell--0 {
  grid-column: span 2;
  grid-row: span 2;
}
.cbs__cell--0 .cbs__cell-title {
  font-size: 22px;
}
.cbs__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.45 0.01 40);
  padding-top: 10px;
  border-top: 1px solid oklch(0.78 0.01 60);
}
.cbs__foot-rule {
  flex: 1;
  height: 1px;
  background: oklch(0.78 0.01 60);
}

/* ---- collage variants — narrow screens ---- */
@media (max-width: 900px) {
  .lightbox__collage-mosaic .cmosaic__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(10, 1fr);
  }
  .cmosaic__cell--0 {
    grid-column: 1 / -1;
    grid-row: 1 / span 3;
  }
  .cmosaic__cell--1 {
    grid-column: 1 / span 3;
    grid-row: 4 / span 2;
  }
  .cmosaic__cell--2 {
    grid-column: 4 / span 3;
    grid-row: 4 / span 2;
  }
  .cmosaic__cell--3 {
    grid-column: 1 / span 3;
    grid-row: 6 / span 2;
  }
  .cmosaic__cell--4 {
    grid-column: 4 / span 3;
    grid-row: 6 / span 2;
  }
  .cmosaic__cell--5 {
    grid-column: 1 / span 6;
    grid-row: 8 / span 2;
  }
  .cmosaic__cell--6 {
    grid-column: 1 / span 6;
    grid-row: 10 / span 1;
  }
  .cmosaic__card {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
  .lightbox__collage-stack {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .cstack__head {
    border-right: none;
    border-bottom: 1px dashed oklch(0.5 0.01 40);
  }
  .catlas__intro {
    column-count: 1;
  }
  .catlas__grid {
    grid-template-columns: 1fr;
  }
  .catlas__head {
    grid-template-columns: 1fr;
  }
}

/* ------------- RESPONSIVE ------------- */
@media (max-width: 900px) {
  .nav__links {
    display: none !important;
  }
  .nav__social {
    display: none !important;
  }
  /* Override the social-layout grids so the nav is just mark + burger */
  [data-social] .nav,
  [data-social="inline"] .nav,
  [data-social="edge"] .nav,
  [data-social="stack"] .nav {
    display: flex;
    grid-template-columns: none;
    justify-content: space-between;
    align-items: center;
  }
  .nav__burger {
    display: inline-flex;
  }
  .nav__mobile {
    display: block;
  }
  .about__body {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .motion__grid {
    grid-template-columns: 1fr;
  }
  .services__row {
    grid-template-columns: 40px 1fr 40px;
  }
  .services__d {
    grid-column: 2;
  }
  .shop__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__cols {
    grid-template-columns: 1fr;
  }
  .cursor-preview {
    display: none;
  }
}

/* ============================================================
   <Img> wrapper — drop-in for <img>. The wrapper sizes the
   layout box (so we can pre-allocate space + show a spinner
   over it); the inner <img> fills the wrapper and inherits
   object-fit / filter / transition rules from existing
   per-context selectors (.tile img, .cstack__photo img, etc.)
   which still match because the <img> is a direct descendant.
   ============================================================ */
.img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  /* Transparent by default — callers like .tile, .shop__img,
     .motion__thumb already set their own bg. The lightbox stage
     and collage cells should bleed onto the dark backdrop. */
  background: transparent;
  /* aspect-ratio is set inline when caller supplies width/height/aspectRatio */
}
.img > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.img--fit-contain > img {
  object-fit: contain;
}
.img--fit-cover > img {
  object-fit: cover;
}
.img--fit-fill > img {
  object-fit: fill;
}
.img--loaded > img {
  opacity: 1;
}
/* Errored state — fallback SVG should render at full opacity immediately. */
.img--errored > img {
  opacity: 1;
  transition: none;
}

/* Slow-load spinner — only painted when .img--slow is on
   (set after slowMs of unresolved loading). */
.img__spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.img--slow .img__spinner {
  opacity: 1;
}
.img__spinner-ring {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.7);
  animation: img-spin 0.9s linear infinite;
}
/* Light-bg variants — wrapper bg is a light tone, so swap spinner colours. */
[data-bg="paper"] .img__spinner-ring,
[data-bg="bone"] .img__spinner-ring,
[data-bg="gallery"] .img__spinner-ring,
[data-bg="sand"] .img__spinner-ring,
[data-bg="olive"] .img__spinner-ring,
[data-bg="mat"] .img__spinner-ring {
  border-color: rgba(0, 0, 0, 0.12);
  border-top-color: rgba(0, 0, 0, 0.55);
}
@keyframes img-spin {
  to {
    transform: rotate(360deg);
  }
}
