/* ============================================================
   unseen.co effects reproduction — shared styles
   tokens from DOM dump: bg #F1EDEB, ink #212121, mute #D6D6D6,
   hairline #E7E7E7, pill-text #FAF6F4
   1vw @1485 = 14.85px → everything in vw like the original
   ============================================================ */

:root {
  --paper: #f1edeb;
  --ink: #212121;
  --mute: #d6d6d6;
  --hairline: #e7e7e7;
  --pill-on: #faf6f4;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: "Playfair Display", "Saol Display", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  height: 100%;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }

/* ---------- WebGL canvas layer ---------- */
.gl {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

/* ---------- page-transition curtain ---------- */
.page-curtain {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 12000;
  pointer-events: none;
  transform: translateY(101%);
}
.page-curtain.is-anim { transition: transform 0.62s var(--ease-expo); }
.page-curtain.is-cover { transform: translateY(0); }

/* ---------- film grain over EVERYTHING (incl. DOM text) ---------- */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 9000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  animation: grainShift 0.6s steps(4) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-34px, 22px); }
  50%  { transform: translate(20px, -30px); }
  75%  { transform: translate(-14px, -12px); }
  100% { transform: translate(26px, 18px); }
}

/* ---------- custom cursor (7vw ring, z 11000) ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 7vw; height: 7vw;
  margin: -3.5vw 0 0 -3.5vw;
  z-index: 11000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.cursor__dot {
  width: clamp(22px, 2vw, 32px); height: clamp(22px, 2vw, 32px);
  border-radius: 50%;
  border: 1.5px solid rgba(33, 33, 33, 0.8);
  transition: transform 0.5s var(--ease-expo), border-color 0.3s;
}
.cursor.is-light .cursor__dot { border-color: rgba(255, 255, 255, 0.9); }
.cursor.is-hover .cursor__dot { transform: scale(1.8); }
.cursor.is-hidden .cursor__dot { transform: scale(0); }

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1vw 2vw;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35vw;
  font-size: clamp(17px, 1.55vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo b { font-weight: 500; }
.logo i { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(18px, 1.62vw, 27px); }
.logo sup { font-size: clamp(7px, 0.55vw, 10px); margin-left: 0.1vw; }

.nav { display: flex; align-items: center; }

/* per-char roll: sans row + serif row stacked, shift up on hover */
.nav-item {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0.15vw 0.75vw;
  font-size: clamp(13px, 1.2vw, 20px);
  line-height: 1.32;
}
.nav-item .roll { display: block; position: relative; }
.nav-item .roll span {
  display: inline-block;
  transition: transform 0.55s var(--ease-expo);
  transition-delay: calc(var(--i) * 22ms);
}
.nav-item .roll--serif {
  position: absolute;
  top: 100%; left: 0;
  padding-left: inherit;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.3vw, 21px);
  white-space: nowrap;
}
.nav-item:hover .roll span { transform: translateY(-100%); }

.menu-btn {
  width: 3.7vw; height: 3.7vw;
  margin-left: 0.6vw;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-btn::before {
  content: "";
  position: absolute;
  inset: 0.5vw;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.5s var(--ease-expo);
}
.menu-btn:hover::before { transform: scale(1.12); }
.menu-btn .dots {
  position: relative;
  display: flex;
  gap: 0.28vw;
}
.menu-btn .dots i {
  width: 0.3vw; height: 0.3vw;
  border-radius: 50%;
  background: var(--ink);
}

/* ---------- pill buttons (3-layer text clone hover) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(30px, 2.57vw, 42px);
  padding: 0 clamp(16px, 1.5vw, 26px);
  border-radius: 40px;
  font-size: clamp(12px, 1.05vw, 17px);
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}
.btn--fill { background: #fff; color: var(--ink); }
.btn--border { border: 1px solid rgba(255, 255, 255, 0.7); color: #fff; }
.btn__stack {
  display: block;
  overflow: hidden;
  height: 1.1em;
}
.btn__stack .btn__row {
  display: flex;
  align-items: center;
  gap: 0.55vw;
  height: 1.1em;
  transition: transform 0.6s var(--ease-expo);
}
.btn:hover .btn__row { transform: translateY(-100%); }
.btn svg { width: 0.62vw; height: 0.72vw; flex: none; }

/* ============================================================
   HOME
   ============================================================ */
.hero-ui {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  will-change: transform;
}
.hero-ui .btn { pointer-events: auto; }

.eyebrow {
  font-size: clamp(11px, 1.05vw, 17px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4vw;
  overflow: hidden;
}
.eyebrow i { font-family: var(--serif); font-style: italic; letter-spacing: 0.1em; }
.eyebrow .line { display: block; transform: translateY(110%); }

.title {
  text-align: center;
  line-height: 0.88;
  color: var(--ink);
}
.title .word {
  background: linear-gradient(155deg, #171513 25%, #3d3833 60%, #6e655c 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title .row { display: block; overflow: hidden; }
.title .word { display: inline-block; transform: translateY(112%); }
.title .row--serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 8.2vw;
  letter-spacing: -0.015em;
}
.title .row--sans {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 9vw;
  letter-spacing: -0.035em;
  margin-top: -1.4vw;
}

.hero-cta { margin-top: 2.4vw; opacity: 0; transition: opacity 0.8s ease 0.1s; }

.is-loaded .eyebrow .line,
.is-loaded .title .word {
  transform: translateY(0);
  transition: transform 1.3s var(--ease-expo);
  transition-delay: var(--d, 0s);
}
.is-loaded .hero-cta { opacity: 1; }

/* ---------------- court page ---------------- */
.court-ui {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
/* centered interactive hero on the court */
.court-hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 6vh;
  transition: opacity 0.6s ease, transform 0.6s var(--ease-expo);
}
.court-hero.is-hidden {
  opacity: 0;
  transform: translateY(-2vh);
}
.court-hero.is-hidden * { pointer-events: none !important; }
.court-hero .eyebrow,
.court-hero .hero-cta-court { pointer-events: auto; }
.title--court { text-align: center; line-height: 0.9; pointer-events: auto; }
.crow { display: block; white-space: nowrap; }
.crow--serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 6.6vw;
  letter-spacing: -0.015em;
}
.crow--sans {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 7.3vw;
  letter-spacing: -0.035em;
  margin-top: -1.1vw;
}
/* iridescent gradient per row (no transformed children inside → Safari-safe);
   the smear on hover is JS-driven: directional blur + skew from cursor velocity */
.title--court .crow {
  background: linear-gradient(155deg, #171513 25%, #3d3833 60%, #6e655c 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title--court { will-change: filter, transform; }
#heroEyebrow, #heroCta { will-change: transform; }
.hero-cta-court { margin-top: 2vw; }

.court-hint {
  position: absolute;
  bottom: 6vw;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ink);
  transition: opacity 0.6s ease;
  white-space: nowrap;
}
/* --- about chat: liquid-glass message thread (home, bottom-left) --- */
.court-chat {
  position: absolute;
  left: 2vw;
  bottom: 2vw;                 /* bottom-left corner is free — toggle moved to the right */
  max-width: 340px;
  pointer-events: none;        /* must never steal court clicks — sheen tracks via window listener */
  transition: opacity 0.6s ease;
}
.court-chat.is-hidden { opacity: 0; }
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;     /* earliest on top, new bubbles append below */
}
.chat-bubble {
  position: relative;
  max-width: min(300px, 26vw);
  padding: 10px 14px;
  border-radius: 16px;
  font-size: clamp(12px, 0.85vw, 14.5px);
  line-height: 1.55;
  color: #212121;
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.12));
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    0 6px 20px rgba(120, 60, 90, .16),      /* warm, scene-tinted drop shadow */
    inset 0 1px 0 rgba(255,255,255,.55);    /* specular top edge */
  overflow: hidden;                          /* Safari: clip backdrop to radius */
}
.chat-bubble:last-child { border-bottom-left-radius: 5px; }  /* tail on the newest */
/* gradient hairline border (the "glass rim") */
.chat-bubble::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.12) 45%, rgba(255,255,255,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
/* mouse-tracked sheen: a soft radial highlight that follows the cursor */
.chat-bubble::after {
  content: ""; position: absolute; inset: -40%; border-radius: inherit;
  background: radial-gradient(140px 140px at var(--shx, 30%) var(--shy, 20%),
              rgba(255,255,255,.35), transparent 60%);
  opacity: .55; pointer-events: none;
  transition: opacity .4s ease;
}
.chat-bubble i { font-family: var(--serif); font-style: italic; }
/* spring pop as each message replaces its typing indicator */
.chat-bubble.pop { animation: chatPop 0.42s cubic-bezier(.34,1.56,.64,1) both; transform-origin: bottom left; }
@keyframes chatPop {
  0%   { transform: scale(.86); opacity: 0; }
  60%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); }
}
/* typing indicator: small glass bubble, 3 bouncing dots (iMessage-style) */
.chat-typing {
  position: relative;
  display: flex; align-items: center; gap: 4px;
  min-width: 44px; min-height: 28px;
  padding: 8px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.12));
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 6px 20px rgba(120, 60, 90, .16), inset 0 1px 0 rgba(255,255,255,.55);
  overflow: hidden;
}
.chat-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(33,33,33,.5);
  animation: chatDot 1.1s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}
/* sender row: avatar + name + presence dot (iMessage foot) */
.chat-sender {
  display: flex; align-items: center; gap: 9px;
  margin-top: 10px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.chat-sender.in { opacity: 1; transform: none; }
.chat-avatar {
  position: relative;
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.12));
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 6px 20px rgba(120, 60, 90, .16), inset 0 1px 0 rgba(255,255,255,.55);
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-avatar .mono {   /* monogram fallback when avatar.webp is missing */
  font-family: var(--serif); font-style: italic;
  font-size: 17px; color: rgba(33,33,33,.82); letter-spacing: .02em;
}
.chat-name {
  display: flex; align-items: center; gap: 6px;
  font-size: clamp(12px, 0.82vw, 14px);
  color: rgba(33,33,33,.9);
}
.chat-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3ddc84;
  animation: chatPresence 2.4s ease-in-out infinite;
}
.chat-name em {
  font-style: normal;
  font-size: 0.85em;
  color: rgba(33,33,33,.5);
}
@keyframes chatPresence {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(61,220,132,.5); }
  50%      { transform: scale(1.35); box-shadow: 0 0 0 3px rgba(61,220,132,0); }
}
@media (max-width: 820px) {
  .court-chat { bottom: 92px; }   /* lift above the centered "pick up the racket" hint at narrow widths */
  .chat-bubble { max-width: 72vw; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-bubble.pop { animation: none; }
  .chat-typing span { animation: none; }
  .chat-dot { animation: none; }
  .chat-sender { transition: none; }
}
.court-hint .line { transform: none; }
.court-score {
  position: absolute;
  top: 7vw;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(12px, 1.05vw, 17px);
  letter-spacing: 0.18em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.court-score b { font-weight: 500; }
.court-verdict {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(13px, 1.2vw, 19px);
  font-weight: 600;
  letter-spacing: 0.42em;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.court-verdict.is-out { color: #8f8478; }
/* quiet one-liner on the ©2026 baseline — fine key caps + light labels */
.court-legend {
  position: absolute;
  bottom: 1.35vw;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(16px, 1.7vw, 30px);
  align-items: center;
  white-space: nowrap;
  font-size: clamp(8.5px, 0.6vw, 11px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.court-legend.on { opacity: 0.55; }
.court-legend .leg { display: flex; align-items: center; gap: 8px; }
.court-legend kbd {
  font: inherit;
  font-weight: 500;
  line-height: 1;
  padding: 3px 5px 2.5px 6px;   /* right trims the tracking tail — glyphs sit centred */
  min-width: 1em;
  text-align: center;
  border: 1px solid rgba(33, 33, 33, 0.34);
  border-radius: 4px;
}
.court-legend kbd + kbd { margin-left: -4px; }
.court-legend em { font-style: normal; opacity: 0.7; margin-left: 1px; }
.court-verdict.pop { animation: verdict-pop 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes verdict-pop {
  0%   { opacity: 0; transform: translate(-50%, -20%) scale(0.82); }
  12%  { opacity: 1; transform: translate(-50%, -50%) scale(1.14); }
  30%  { transform: translate(-50%, -54%) scale(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -95%) scale(0.98); }
}

/* ambient sound toggle — equalizer bars in the bottom-left corner */
.sound-toggle {
  position: fixed;
  right: 2vw;                  /* far bottom-right corner; ©2026 sits to its left */
  bottom: 1.8vw;
  z-index: 13000;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(33, 33, 33, 0.28);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.sound-toggle:hover { border-color: rgba(33, 33, 33, 0.6); background: rgba(255, 255, 255, 0.45); }
.sound-toggle .bars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}
.sound-toggle .bars i {
  width: 2px;
  height: 3px;                 /* flat = muted */
  background: var(--ink);
  border-radius: 1px;
  transition: height 0.3s ease;
}
.sound-toggle.is-on .bars i { animation: eq 1.1s ease-in-out infinite; }
.sound-toggle.is-on .bars i:nth-child(1) { animation-delay: 0s; }
.sound-toggle.is-on .bars i:nth-child(2) { animation-delay: 0.25s; }
.sound-toggle.is-on .bars i:nth-child(3) { animation-delay: 0.5s; }
.sound-toggle.is-on .bars i:nth-child(4) { animation-delay: 0.15s; }
@keyframes eq {
  0%, 100% { height: 3px; }
  50%      { height: 13px; }
}

/* fixed bottom marks */
.marks { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.marks > * { position: absolute; pointer-events: auto; }
.mark-sound {
  left: 1.4vw; bottom: 1.4vw;
  width: 3.7vw; height: 3.7vw;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mark-sound::before {
  content: ""; position: absolute; inset: 0.5vw; border-radius: 50%; background: #fff;
}
.mark-sound .bars { position: relative; display: flex; gap: 0.14vw; align-items: flex-end; height: 0.9vw; }
.mark-sound .bars i { width: 0.12vw; background: var(--ink); animation: eq 1s ease-in-out infinite alternate; }
.mark-sound .bars i:nth-child(1) { height: 0.5vw; animation-delay: 0s; }
.mark-sound .bars i:nth-child(2) { height: 0.9vw; animation-delay: 0.2s; }
.mark-sound .bars i:nth-child(3) { height: 0.35vw; animation-delay: 0.35s; }
.mark-sound .bars i:nth-child(4) { height: 0.7vw; animation-delay: 0.5s; }
@keyframes eq { to { transform: scaleY(0.3); } }

.mark-wrapped { left: 6vw; bottom: 1.75vw; }
.mark-world {
  left: 50%; bottom: 1.4vw;
  transform: translateX(-50%);
  width: 3.7vw; height: 3.7vw;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mark-world::before { content: ""; position: absolute; inset: 0.5vw; border-radius: 50%; background: #fff; }
.mark-world svg { position: relative; width: 1.45vw; height: 1.45vw; stroke: var(--ink); fill: none; stroke-width: 1; }
.mark-cr { right: calc(2vw + 56px); bottom: calc(1.8vw + 13px); color: #fff; font-size: clamp(11px, 1.05vw, 17px); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-page { background: #e9e7e4; }

/* white haze vignette + darkened corners, like the reference film look */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 45%, rgba(255,255,255,0) 68%, rgba(255,255,255,0.32) 100%),
    radial-gradient(160% 130% at 50% 50%, rgba(0,0,0,0) 74%, rgba(40,36,32,0.24) 100%);
}

/* blurred arches backdrop */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop .arch {
  position: absolute;
  bottom: -12vh;
  width: 16vw; height: 74vh;
  border-radius: 8vw 8vw 0 0;
  background: linear-gradient(#f8f6f4, #efece8);
  box-shadow: -2vw 0 4vw rgba(120, 112, 104, 0.35);
  filter: blur(18px);
  opacity: 0.9;
}
.backdrop .arch--l1 { left: -4vw; }
.backdrop .arch--l2 { left: 13vw; height: 58vh; width: 13vw; opacity: 0.4; }
.backdrop .arch--r1 { right: -4vw; }
.backdrop .arch--r2 { right: 13vw; height: 58vh; width: 13vw; opacity: 0.4; }
.backdrop::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(241, 237, 235, 0) 40%, rgba(226, 220, 216, 0.7) 100%);
}

.scroller {
  position: fixed;
  inset: 0;
  z-index: 10;
  will-change: transform;
}

/* pinned header: the cards fold away behind it */
.projects-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 8vw 0 0;
  text-align: center;
  z-index: 20;
  pointer-events: none;
}
.projects-head .filters { pointer-events: auto; }
.projects-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 4vw;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.filters {
  display: inline-flex;
  padding: 0.4vw;
  margin-top: 1vw;
  border-radius: 12.5vw;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.filter {
  display: flex;
  align-items: flex-start;
  padding: clamp(4px, 0.325vw, 6px) clamp(10px, 0.875vw, 15px);
  margin-right: 0.19vw;
  border: 1px solid var(--hairline);
  border-radius: 200px;
  background: #fff;
  font-size: clamp(10px, 0.8vw, 13px);
  line-height: 1;
  letter-spacing: -0.028em;
  transition: 0.4s ease-in-out;
}
.filter:last-child { margin-right: 0; }
.filter sup { font-size: clamp(8px, 0.625vw, 10px); line-height: 1; margin-left: 0.19vw; }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--pill-on); }
.filter:not(.is-active):hover { border-color: var(--ink); }

.grid {
  width: 73vw;               /* generous side air, unseen-style */
  margin: 0 auto;
  padding-top: max(24vw, 42vh); /* clears the pinned header AND starts below the fold line */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.card {
  width: 35vw;
  margin-bottom: 3.6vw;
  position: relative;
}
.card.is-filtered { display: none; }
.card__media {
  width: 100%;
  aspect-ratio: 1.9;
  /* actual pixels are drawn by WebGL plane synced to this rect */
  background: transparent;
}
.card__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1vw 0 0.9vw;
  border-bottom: 1px solid rgba(33, 33, 33, 0.35);
}
.card__name { font-size: clamp(12px, 1.05vw, 17px); line-height: 1.5; }
.card__cat { font-size: clamp(12px, 1.05vw, 17px); line-height: 1.5; color: rgba(33, 33, 33, 0.7); display: block; }
.card__arrow { font-size: clamp(12px, 1.1vw, 17px); transform: translate(0, 0); transition: transform 0.7s var(--ease-expo); }
.card:hover .card__arrow { transform: translate(0.4vw, 0.15vw); }

.spacer { height: 24vh; }

/* ============================================================
   CASE PAGE — unseen-style study: big title, quiet reading column
   ============================================================ */
/* the case page scrolls natively — override the global WebGL-page lock */
html:has(.case-page) { height: auto; }
.case-page { background: var(--paper, #e9e7e4); overflow: visible; height: auto; cursor: auto; }
.case-page a, .case-page button { cursor: pointer; }
.case {
  width: min(1160px, 86vw);
  margin: 0 auto;
  padding: clamp(120px, 12vw, 190px) 0 clamp(60px, 6vw, 110px);
  color: var(--ink);
}
.case .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo); }
.case .reveal.is-in { opacity: 1; transform: none; }

.case-back {
  display: inline-block;
  font-size: clamp(11px, 0.85vw, 14px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.6;
  margin-bottom: clamp(26px, 3vw, 48px);
  transition: opacity 0.3s ease;
}
.case-back:hover { opacity: 1; }

.case-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(44px, 7vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.case-tagline {
  max-width: 34em;
  margin-top: clamp(14px, 1.6vw, 26px);
  font-size: clamp(16px, 1.45vw, 23px);
  line-height: 1.45;
  color: rgba(33, 33, 33, 0.78);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4vw, 72px);
  margin: clamp(28px, 3.2vw, 54px) 0 clamp(28px, 3.2vw, 50px);
  padding-top: clamp(18px, 2vw, 30px);
  border-top: 1px solid rgba(33, 33, 33, 0.25);
}
.case-meta__item span {
  display: block;
  font-size: clamp(10px, 0.72vw, 12px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 6px;
}
.case-meta__item b { font-weight: 500; font-size: clamp(13px, 1.05vw, 17px); }

.case-hero { margin: 0 0 clamp(48px, 5.5vw, 90px); }
.case-hero img { width: 100%; height: clamp(300px, 52vw, 640px); object-fit: cover; display: block; }

.case-h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 42px);
  letter-spacing: -0.01em;
  margin: clamp(56px, 6vw, 100px) auto clamp(18px, 2vw, 30px);
  max-width: 720px;
}
.case-lead {
  max-width: 720px;
  margin: 0 auto clamp(22px, 2.4vw, 38px);
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.5;
}
.case-text {
  max-width: 720px;
  margin: 0 auto clamp(18px, 2vw, 30px);
  font-size: clamp(14.5px, 1.15vw, 18px);
  line-height: 1.7;
  color: rgba(33, 33, 33, 0.88);
}
.case-text b, .case-lead b { font-weight: 600; }

.case-quote {
  max-width: 720px;
  margin: clamp(30px, 3.4vw, 56px) auto;
  padding-left: clamp(18px, 2vw, 30px);
  border-left: 2px solid rgba(33, 33, 33, 0.7);
}
.case-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 27px);
  line-height: 1.45;
}
.case-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: clamp(11px, 0.85vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}

.case-stat { max-width: 720px; margin: clamp(26px, 3vw, 46px) auto; }
.case-stat b {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 76px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.case-stat span {
  display: block;
  margin-top: 8px;
  font-size: clamp(12px, 0.95vw, 15px);
  letter-spacing: 0.06em;
  color: rgba(33, 33, 33, 0.65);
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(20px, 2.6vw, 44px);
  margin: clamp(34px, 4vw, 64px) 0;
  padding: clamp(22px, 2.4vw, 38px) 0;
  border-top: 1px solid rgba(33, 33, 33, 0.25);
  border-bottom: 1px solid rgba(33, 33, 33, 0.25);
}
.case-stats .case-stat { margin: 0; }
.case-stats .case-stat b { font-size: clamp(30px, 3vw, 52px); }

.case-fig { margin: clamp(34px, 4vw, 64px) 0; }
.case-fig img { width: 100%; display: block; }
.case-fig figcaption {
  margin-top: 10px;
  font-size: clamp(11px, 0.85vw, 14px);
  letter-spacing: 0.05em;
  color: rgba(33, 33, 33, 0.55);
}
.case-fig.is-wide { width: min(1400px, 94vw); margin-left: calc(50% - min(700px, 47vw)); }
.case-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 34px);
  margin: clamp(34px, 4vw, 64px) 0;
}
.case-two .case-fig { margin: 0; }

.case-list { max-width: 720px; margin: 0 auto clamp(20px, 2.2vw, 34px); }
.case-list h3 {
  font-weight: 500;
  font-size: clamp(13px, 1vw, 16px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.case-list li {
  list-style: none;
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: clamp(13.5px, 1.05vw, 16.5px);
  line-height: 1.55;
  color: rgba(33, 33, 33, 0.85);
}
.case-list li::before { content: '·'; position: absolute; left: 4px; font-weight: 700; }
.case-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 56px);
  max-width: 900px;
  margin: clamp(26px, 3vw, 46px) auto;
}
.case-cols .case-list { margin: 0; max-width: none; }

.case-next {
  margin-top: clamp(70px, 8vw, 130px);
  padding-top: clamp(30px, 3.4vw, 54px);
  border-top: 1px solid rgba(33, 33, 33, 0.3);
  text-align: center;
}
.case-next__eyebrow {
  display: block;
  font-size: clamp(10px, 0.78vw, 13px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 14px;
}
.case-next__link {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 20px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.4s ease, letter-spacing 0.6s var(--ease-expo);
}
.case-next__link:hover { opacity: 0.72; letter-spacing: 0.01em; }
.case-next__link svg { width: clamp(18px, 2vw, 32px); height: auto; }
.case-next__all {
  display: inline-block;
  margin-top: 22px;
  font-size: clamp(11px, 0.85vw, 14px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  text-decoration: none;
}
.case-next__all:hover { opacity: 1; }

@media (max-width: 760px) {
  .nav-item, .logo { font-size: 3.4vw; }
  .court-intro { bottom: 18vw; max-width: 62vw; }
  .case-two, .case-cols { grid-template-columns: 1fr; }
  .title .row--serif { font-size: 13vw; }
  .title .row--sans { font-size: 14.5vw; }
  .eyebrow { font-size: 2.4vw; }
  .projects-title { font-size: 9vw; }
  .filter { font-size: 2.4vw; padding: 1vw 2.4vw; }
  .card { width: 100%; }
  .card__name, .card__cat { font-size: 3.4vw; }
  body { cursor: auto; }
  .cursor { display: none; }
}
