/* ── FONTS ─────────────────────────────────────── */
/* Coolvetica Regular only (HANDOFF rule). One face covers every weight, so nothing ever
   falls back to the Heavy Compressed cut or a faux-bold. */
@font-face {
  font-family: 'Coolvetica';
  src: url('assets/fonts/Coolvetica_Rg.woff2') format('woff2'),
       url('assets/fonts/Coolvetica_Rg.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── RESET & TOKENS ──────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  --black:   #000000;
  --ink:     #080808;
  --surface: #111111;
  --card:    #181818;
  --line:    rgba(255,255,255,0.07);
  --line-md: rgba(255,255,255,0.13);
  --muted:   rgba(255,255,255,0.32);
  --silver:  rgba(255,255,255,0.58);
  --white:   #ffffff;
  --r-sm:    8px;
  --r-md:    14px;
  --r-lg:    20px;
  --r-xl:    28px;
  --r-full:  999px;
  --nav-h:   58px;
  --ease:    cubic-bezier(0.16,1,0.3,1);
  --ease-in: cubic-bezier(0.7,0,1,1);
}
html { scroll-behavior: auto; }
body {
  font-family: 'Coolvetica', -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ──────────────────────────────── */
#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: var(--r-full);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              background 0.25s, opacity 0.2s;
  mix-blend-mode: difference;
}
#cursor.hover {
  width: 36px; height: 36px;
}
#cursor.click {
  width: 22px; height: 22px;
  opacity: 0.7;
}
@media (hover:none) { #cursor { display:none; } body { cursor:auto; } }

/* ── PAGE TRANSITION WIPE ───────────────────────── */
#wipe {
  position: fixed; inset: 0;
  z-index: 8000;
  background: var(--black);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
#wipe.in {
  animation: wipeIn 0.38s var(--ease-in) forwards;
}
#wipe.out {
  transform-origin: top;
  animation: wipeOut 0.42s var(--ease) forwards;
}
@keyframes wipeIn  { to { transform: scaleY(1); border-radius:0; } }
@keyframes wipeOut { from { transform: scaleY(1); } to { transform: scaleY(0); border-radius:0 0 var(--r-xl) var(--r-xl); } }

/* ── INTRO ──────────────────────────────────────── */
#intro {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#intro.exit {
  animation: introExit 0.8s var(--ease) forwards;
  animation-delay: 0.05s;
  pointer-events: none;
}
@keyframes introExit {
  0%   { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0 round 0 0 20px 20px); }
}
.intro-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: hidden;
}
.intro-line {
  display: flex;
  overflow: hidden;
}
.intro-line { white-space: nowrap; }
.intro-char {
  display: inline-block;
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  transform: translateY(110%);
  opacity: 0;
}
.intro-char.drop {
  animation: charDrop 0.7s var(--ease) forwards;
}
@keyframes charDrop {
  to { transform: translateY(0); opacity: 1; }
}
.intro-underline {
  width: 0; height: 1px;
  background: var(--white);
  margin-top: 10px;
  opacity: 0.4;
  transition: width 0.9s var(--ease);
}
.intro-underline.grow { width: 100%; }

/* ── FLOATING NAV ───────────────────────────────── */
nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  height: 46px;
  width: calc(100% - 28px);
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(6,6,6,0.5);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--line-md);
  border-radius: var(--r-xl);
  transition: opacity 0.3s;
}
nav.hide { opacity: 0; pointer-events: none; }

.nav-logo {
  height: 20px; width: auto;
  cursor: none;
  opacity: 0.9;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 1; }

.nav-links {
  display: flex; list-style: none; gap: 2px;
}
.nav-links a {
  display: block; padding: 5px 13px;
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400; font-size: 0.84rem;
  letter-spacing: 0.02em;
  color: var(--silver);
  text-decoration: none;
  border-radius: var(--r-full);
  transition: color 0.2s, background 0.2s;
  cursor: none;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.1); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: none; padding: 5px;
  border-radius: var(--r-sm);
}
.nav-burger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--white); border-radius: var(--r-full);
  transition: all 0.35s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 3rem;
  gap: 0.2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 12vw, 5rem);
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color 0.2s;
  cursor: none;
}
.mobile-menu a:hover { color: var(--white); }

/* ── PAGES ──────────────────────────────────────── */
.page { display:none; }
.page.active { display:block; }
/* ID rules below (#page-home / #page-links use display:flex) outrank .page — keep inactive pages hidden */
#page-home:not(.active), #page-projects:not(.active), #page-links:not(.active), #page-about:not(.active) { display:none; }

/* ── HOME ───────────────────────────────────────── */
#page-home {
  position: relative;
  height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: flex-end;
}
.home-bg {
  position: absolute; inset: 0;
}
.home-bg video {
  width:100%; height:100%; object-fit: cover; opacity: 0.5;
}
.home-placeholder {
  width:100%; height:100%; background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.home-placeholder svg { opacity: 0.08; }
.home-placeholder p {
  font-size: 0.68rem; color: rgba(255,255,255,0.2);
  letter-spacing: 0.14em; font-weight: 400;
}
.home-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 35%, transparent 65%);
}

/* Ticker */
.home-ticker {
  position: relative; z-index: 2;
  overflow: hidden; padding: 0;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  opacity: 0; transition: opacity 0.8s var(--ease) 0.3s;
}
.home-ticker.show { opacity: 1; }
.ticker-track {
  display: flex; white-space: nowrap;
  animation: tickerRun 28s linear infinite;
}
@keyframes tickerRun { to { transform: translateX(-50%); } }
.ticker-item {
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400; font-size: 0.68rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.18em; padding: 0.6rem 1.6rem;
}
.ticker-dot { color: rgba(255,255,255,0.1); padding: 0.6rem 0; }

/* Hero name */
.home-hero {
  position: relative; z-index: 2;
  padding: 0 2.8rem 3.5rem;
}
.hero-row {
  overflow: hidden;
  display: block;
  white-space: nowrap;
  line-height: 1;
  padding-bottom: 0.06em;
}
.hero-word {
  display: inline-block;
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 9rem);
  letter-spacing: -0.03em;
  transform: translateY(105%) rotate(1.5deg);
  opacity: 0;
  will-change: transform, opacity;
}
.hero-word.reveal {
  animation: heroReveal 0.9s var(--ease) forwards;
}
.hero-word:nth-child(1) { animation-delay: 0s; }
.hero-word:nth-child(2) { animation-delay: 0.1s; }
@keyframes heroReveal {
  to { transform: translateY(0) rotate(0deg); opacity: 1; }
}

.hero-sub {
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400; font-size: 0.78rem;
  color: var(--muted); letter-spacing: 0.12em;
  margin-top: 1.2rem;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.7s var(--ease) 0.55s, transform 0.7s var(--ease) 0.55s;
}
.hero-sub.reveal { opacity:1; transform: translateY(0); }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 3.5rem; right: 2.8rem;
  z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.65rem; color: var(--muted);
  letter-spacing: 0.12em;
  opacity: 0; transition: opacity 0.6s var(--ease) 0.9s;
}
.scroll-hint.reveal { opacity: 1; }
.view-work {
  text-decoration: none; color: var(--white);
  font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 10px 20px; border-radius: var(--r-full);
  border: 1px solid var(--line-md);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .25s, border-color .25s;
}
.view-work:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.vw-arrow { display:inline-block; transition: transform .3s var(--ease); }
.view-work:hover .vw-arrow { transform: translateX(4px); }
.scroll-arrow {
  display: flex; flex-direction: column; gap: 2px;
  animation: scrollBob 2s ease-in-out infinite;
}
.scroll-arrow span {
  display: block; width: 1px; height: 10px;
  background: var(--muted); border-radius: var(--r-full);
  transform-origin: top;
}
@keyframes scrollBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ── PROJECTS ───────────────────────────────────── */
#page-projects {
  padding-top: calc(var(--nav-h) + 30px);
  min-height: 100vh; padding-bottom: 8rem;
}
.proj-head {
  padding: 2rem 2.8rem 1.2rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.proj-head h2 {
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.025em; line-height: 1;
  opacity: 0; transform: translateY(14px) rotate(0.5deg);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.proj-head h2.in { opacity:1; transform: translateY(0) rotate(0); }
.proj-count {
  font-size: 0.68rem; color: var(--muted);
  letter-spacing: 0.07em; font-weight: 400;
  padding-bottom: 4px;
}

/* Filter pills */
.proj-filters {
  display: flex; gap: 6px;
  padding: 1.2rem 2.8rem;
  overflow-x: auto; scrollbar-width: none;
  flex-wrap: wrap;
}
.proj-filters::-webkit-scrollbar { display: none; }
.fpill {
  padding: 6px 16px;
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400; font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--line-md);
  border-radius: var(--r-full);
  background: transparent; cursor: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.fpill:hover { color: var(--white); border-color: rgba(255,255,255,0.28); }
.fpill.active {
  color: var(--white);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}

/* Masonry grid */
.proj-grid {
  padding: 0.5rem 2rem;
  columns: 3; column-gap: 8px;
}
@media (min-width: 1800px) { .proj-grid { columns: 4; } } /* TV / large desktop */
@media (max-width: 960px) { .proj-grid { columns: 2; } }
@media (max-width: 520px)  { .proj-grid { columns: 1; } }

.pcard {
  break-inside: avoid;
  margin-bottom: 8px;
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  cursor: none;
  opacity: 0;
  transform: translateY(28px) rotate(0.4deg);
  will-change: transform, opacity;
}
.pcard.in {
  animation: cardIn 0.65s var(--ease) forwards;
}
@keyframes cardIn {
  to { opacity:1; transform: translateY(0) rotate(0); }
}
.pcard:hover { z-index: 2; }
.pcard.in { transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.pcard.in:hover { border-color: rgba(255,255,255,0.18); box-shadow: 0 24px 60px rgba(0,0,0,0.55); }

.pcard[data-ratio="16:9"] .pthumb { aspect-ratio: 16/9; }
.pcard[data-ratio="9:16"] .pthumb { aspect-ratio: 9/16; }
.pcard[data-ratio="4:3"]  .pthumb { aspect-ratio: 4/3; }
.pcard[data-ratio="3:2"]  .pthumb { aspect-ratio: 3/2; }
.pcard[data-ratio="1:1"]  .pthumb { aspect-ratio: 1/1; }

.pthumb {
  width: 100%; overflow: hidden; position: relative;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.pthumb img {
  width:100%; height:100%; object-fit:cover; display:block;
  transition: transform 0.8s var(--ease), filter 0.4s;
}
.pcard:hover .pthumb img {
  transform: scale(1.06);
  filter: brightness(0.7);
}

/* Card overlay */
.pcard-overlay {
  position: absolute; inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.pcard:hover .pcard-overlay { opacity: 1; }
.play-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.8);
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), border-color 0.2s, background 0.2s;
}
.pcard:hover .play-ring {
  transform: translate(-50%,-50%) scale(1);
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}
.overlay-cat {
  font-size: 0.6rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45); margin-bottom: 0.2rem; font-weight: 400;
}
.overlay-title {
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400; font-size: 1rem;
  letter-spacing: -0.01em; color: var(--white); line-height: 1.1;
}
.pcard-foot {
  padding: 0.8rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
}
.pcard-foot-title {
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400; font-size: 0.82rem; color: var(--silver);
}
.pcard-foot-year {
  font-size: 0.68rem; color: var(--muted);
}

/* ── LIGHTBOX ───────────────────────────────────── */
.lb-backdrop {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lb-backdrop.open {
  display: flex;
  animation: lbIn 0.28s var(--ease);
}
@keyframes lbIn { from { opacity:0; } to { opacity:1; } }
.lb-inner {
  position: relative; width: 100%; max-width: 900px;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-md);
  transform: translateY(0) scale(1);
  animation: lbScale 0.35s var(--ease);
}
@keyframes lbScale {
  from { transform: translateY(16px) scale(0.97); opacity:0; }
  to   { transform: translateY(0)    scale(1);    opacity:1; }
}
/* Width is derived from the video's ratio (--ar = w/h, set in openLb) so the
   player always fits the viewport height WITHOUT distorting its shape.
   9rem ≈ backdrop padding + title bar. */
.lb-inner { max-width: min(900px, calc((100vh - 9rem) * var(--ar, 1.7778))); }
@supports (height: 100dvh) {
  .lb-inner { max-width: min(900px, calc((100dvh - 9rem) * var(--ar, 1.7778))); }
}
.lb-inner.portrait { max-width: min(440px, calc((100vh - 9rem) * var(--ar, 0.5625))); }
@supports (height: 100dvh) {
  .lb-inner.portrait { max-width: min(440px, calc((100dvh - 9rem) * var(--ar, 0.5625))); }
}
.lb-embed { width:100%; aspect-ratio:16/9; margin: 0 auto; }
/* Large desktop / TV: let landscape video breathe */
@media (min-width: 1800px) {
  .lb-inner:not(.portrait) { max-width: min(1280px, calc((100vh - 9rem) * var(--ar, 1.7778))); }
}
.lb-embed iframe { width:100%; height:100%; border:none; display:block; }
.lb-info {
  padding: 1rem 1.4rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
}
.lb-title {
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400; font-size: 1rem; letter-spacing: -0.01em;
}
.lb-close {
  font-family: 'Coolvetica', sans-serif;
  font-size: 0.72rem; cursor: none;
  background: none; border: 1px solid var(--line-md);
  color: var(--silver); padding: 5px 14px;
  border-radius: var(--r-full);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lb-close:hover { color:var(--white); border-color:rgba(255,255,255,0.28); background:rgba(255,255,255,0.07); }

/* ── LINKS ──────────────────────────────────────── */
#page-links {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 50px) 1.5rem 4rem;
}
.links-avatar {
  width: 72px; height: 72px; border-radius: var(--r-full);
  background: var(--card); border: 1px solid var(--line-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.links-name {
  font-family: 'Coolvetica', sans-serif; font-weight: 400;
  font-size: 1.5rem; letter-spacing: -0.015em; margin-bottom: 0.3rem;
}
.links-handle {
  font-size: 0.75rem; color: var(--muted);
  letter-spacing: 0.05em; margin-bottom: 2.5rem; font-weight: 400;
}
.links-list {
  width: 100%; max-width: 390px;
  display: flex; flex-direction: column; gap: 7px;
}
.litem {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--line-md);
  border-radius: var(--r-lg);
  color: var(--white); text-decoration: none;
  background: rgba(255,255,255,0.02);
  opacity: 0; transform: translateY(10px) rotate(0.2deg);
  transition: background 0.2s, border-color 0.2s,
              transform 0.25s var(--ease), box-shadow 0.25s;
  cursor: none;
}
.litem.in { animation: cardIn 0.5s var(--ease) forwards; }
.litem:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.litem-left {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Coolvetica', sans-serif;
  font-weight: 400; font-size: 0.88rem; letter-spacing: 0.02em;
}
.litem-left svg { opacity:0.45; flex-shrink:0; transition:opacity 0.2s; }
.litem:hover .litem-left svg { opacity:1; }
.litem-arrow { font-size: 0.75rem; color: var(--muted); transition: transform 0.2s var(--ease), color 0.2s; }
.litem:hover .litem-arrow { transform: translateX(3px); color: var(--silver); }

/* ── ABOUT ──────────────────────────────────────── */
#page-about {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 0 6rem;
}
.about-wrap {
  max-width: 1080px; margin: 0 auto; padding: 0 2.8rem;
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: 5rem; align-items: start;
}
.about-left { position: sticky; top: calc(var(--nav-h) + 30px); }
.about-name {
  font-family: 'Coolvetica', sans-serif; font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 2rem;
  white-space: nowrap;
  opacity: 0; transform: translateY(16px) rotate(0.3deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.about-name.in { opacity:1; transform: translateY(0) rotate(0); }
.about-photo {
  width: 100%; aspect-ratio: 3/4;
  border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line-md);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s var(--ease) 0.1s, transform 0.8s var(--ease) 0.1s;
}
.about-photo.in { opacity:1; transform: translateY(0); }
.about-photo img { width:100%; height:100%; object-fit:cover; border-radius: var(--r-xl); }
.about-photo svg { opacity:0.08; }
.about-right {}
.about-bio {
  font-family: 'Coolvetica', sans-serif; font-weight: 400;
  font-size: 0.97rem; line-height: 1.8;
  color: rgba(255,255,255,0.65); max-width: 52ch; margin-bottom: 3rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s var(--ease) 0.15s, transform 0.7s var(--ease) 0.15s;
}
.about-bio.in { opacity:1; transform: translateY(0); }
.about-section-label {
  font-size: 0.62rem; color: var(--muted);
  letter-spacing: 0.12em; margin-bottom: 0.8rem; font-weight: 400;
}
.about-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2.8rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--ease) 0.25s, transform 0.6s var(--ease) 0.25s;
}
.about-tags.in { opacity:1; transform:translateY(0); }
.about-tag {
  font-family: 'Coolvetica', sans-serif; font-weight: 400;
  font-size: 0.75rem; padding: 6px 15px;
  border: 1px solid var(--line-md); border-radius: var(--r-full);
  color: var(--silver); letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: none;
}
.about-tag:hover {
  border-color: rgba(255,255,255,0.28);
  color: var(--white); background: rgba(255,255,255,0.05);
}
.about-contacts {
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.6s var(--ease) 0.35s, transform 0.6s var(--ease) 0.35s;
}
.about-contacts.in { opacity:1; transform:translateY(0); }
.about-clink {
  display: inline-block;
  font-family: 'Coolvetica', sans-serif; font-weight: 400;
  font-size: 0.92rem; color: rgba(255,255,255,0.58);
  text-decoration: none; padding: 0.1rem 0;
  position: relative; width: fit-content; cursor: none;
}
.about-clink::after {
  content:''; position:absolute; left:0; bottom:-2px;
  width:0; height:1px; background:var(--white);
  transition: width 0.35s var(--ease);
}
.about-clink:hover { color: var(--white); }
.about-clink:hover::after { width:100%; }

/* ── REVEAL UTILITY ─────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(16px) rotate(0.3deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity:1; transform:translateY(0) rotate(0); }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display:none; }
  .nav-burger { display:flex; }
  .home-hero { padding: 0 1.5rem 1.4rem; }
  .scroll-hint.view-work { position: relative; right: auto; bottom: auto;
    align-self: flex-start; margin: 0 1.5rem 2.6rem; z-index: 2; }
  .proj-head { padding: 1.5rem 1.5rem 1rem; }
  .proj-filters { padding: 1rem 1.5rem; }
  .proj-grid { padding: 0 1rem; }
  .about-wrap { grid-template-columns:1fr; gap:2.5rem; padding:0 1.5rem; }
  .about-left { position:static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:0.001ms !important;
    transition-duration:0.001ms !important;
  }
}

/* ════════════════════════════════════════════════
   v9 — FX layers, preview cards, lightbox details
   ════════════════════════════════════════════════ */

/* Pages sit above the background FX canvas */
.page { position: relative; z-index: 1; }

/* Background: dithered depth field (WebGL, low-res, upscaled crisp) */
#fx-bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  image-rendering: pixelated; image-rendering: crisp-edges;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
#fx-bg.on { opacity: 1; }
/* Blob-tracking overlay (2D canvas, above cards, below nav/lightbox) */
#fx-track {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 60; pointer-events: none;
}
/* Night-vision grain + scanlines (CSS only, transform-animated) */
#fx-grain {
  position: fixed; inset: 0; z-index: 59; pointer-events: none; overflow: hidden;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.028) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}
#fx-grain::before {
  content: ""; position: absolute; inset: -60%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.07;
  animation: grainShift 0.9s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0,0); } 20% { transform: translate(-7%,4%); } 40% { transform: translate(5%,-6%); }
  60% { transform: translate(-3%,8%); } 80% { transform: translate(8%,2%); } 100% { transform: translate(0,0); }
}

/* Preview videos inside cards */
.pthumb .pvid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.pcard.playing .pvid { opacity: 1; }
.pcard.playing .play-ring { opacity: 0; }
.pcard.active .pthumb img { filter: brightness(0.85); }
.pcard.active .pcard-overlay { opacity: 1; }
.pcard.active { z-index: 3; }
.pcard.in.active { border-color: rgba(255,255,255,0.22); box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
/* keyboard focus: enlarge without the pointer tilt */
.pcard.in:focus-visible { outline: none; transform: scale(1.05); }
@media (hover:none) {
  .pcard .play-ring { display: none; }
  .pcard-overlay { background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 45%); }
}

/* Lightbox: scrollable so details fit under the player on any screen */
.lb-backdrop { overflow-y: auto; overscroll-behavior: contain; align-items: flex-start; }
.lb-backdrop.open { display: flex; }
.lb-inner { margin: auto; flex-shrink: 0; }
.lb-embed video { width: 100%; height: 100%; display: block; background: #000; }
.lb-details { padding: 0 1.4rem 1.5rem; }
.lb-details:empty { display: none; }
.lb-meta {
  font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; gap: 0 0.1rem; align-items: center;
  padding-top: 0.2rem;
}
.lb-dot { margin: 0 0.45rem; opacity: .6; }
.lb-role { margin-top: 0.9rem; font-size: 0.86rem; color: var(--white); }
.lb-role span {
  display: inline-block; margin-right: 0.6rem;
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.lb-desc { margin-top: 0.8rem; font-size: 0.86rem; line-height: 1.6; color: var(--silver); max-width: 62ch; }
.lb-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1rem; }
.lb-link {
  font-size: 0.74rem; color: var(--white); text-decoration: none;
  padding: 7px 14px; border-radius: var(--r-full);
  border: 1px solid var(--line-md); background: rgba(255,255,255,0.04);
  transition: background .2s, border-color .2s; cursor: none;
}
.lb-link:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); }
.lb-credits-label {
  margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.lb-credits {
  margin-top: 0.7rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.55rem 1.4rem;
}
.lb-credits div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lb-credits dt { font-size: 0.62rem; color: var(--muted); letter-spacing: 0.03em; }
.lb-credits dd { font-size: 0.8rem; color: var(--silver); overflow-wrap: anywhere; }
.lb-inner.portrait .lb-credits { grid-template-columns: 1fr; }
@media (max-width: 520px) {
  .lb-backdrop { padding: 1rem; }
  .lb-credits { grid-template-columns: 1fr 1fr; }
  .lb-details { padding: 0 1.1rem 1.3rem; }
}

.links-empty { color: var(--muted); font-size: 0.8rem; text-align: center; padding: 1rem 0; }
.about-photo img { width:100%; height:100%; object-fit:cover; border-radius: var(--r-xl); }

@media (prefers-reduced-motion: reduce) {
  #fx-grain::before { animation: none; }
  .pcard.in:focus-visible { transform: none; }
}

/* v10 — readable bio, avatar photo */
.about-bio { font-size: clamp(1rem, 0.35vw + 0.92rem, 1.14rem); line-height: 1.65; color: rgba(255,255,255,0.84); letter-spacing: 0.005em; max-width: 44ch; }
.links-avatar { overflow: hidden; }
.links-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--r-full); }
.about-photo img { object-position: 50% 60%; }

/* Readability over the FX background: soft dark halo behind text blocks */
.about-right, #page-links { position: relative; }
.about-right::before, #page-links::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,0.78), rgba(0,0,0,0.5) 55%, rgba(0,0,0,0));
}
.about-right::before { inset: -3rem -4rem; }
#page-links { overflow: hidden; justify-content: flex-start; }
#page-links::before { display: none; }
.links-top { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - var(--nav-h) - 60px); justify-content: center; padding-bottom: 3rem; }
.links-top::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 50%; width: min(760px, 100%); height: 90%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(0,0,0,0.78), rgba(0,0,0,0.5) 55%, rgba(0,0,0,0)); }
.about-bio, .links-name, .links-handle, .links-empty { text-shadow: 0 0 14px #000, 0 0 3px #000; }
.litem { background: rgba(0,0,0,0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ── CONTACT (under Links) ───────────────────────── */
.contact {
  width: 100%; max-width: 1040px; margin: 2rem auto 0;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border: 1px solid var(--line-md); border-radius: var(--r-xl);
  background: rgba(8,8,8,0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.contact-head h2 {
  font-family: 'Coolvetica', sans-serif; font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.025em; line-height: 1.02;
}
.contact-head p { margin-top: 0.6rem; color: var(--silver); font-size: 0.95rem; max-width: 46ch; line-height: 1.55; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(1.4rem, 4vw, 3.2rem); margin-top: 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.3rem; }
.ci-label { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.ci-value { font-family: 'Coolvetica', sans-serif; font-size: 1.05rem; color: var(--white); line-height: 1.35; overflow-wrap: anywhere; }
.ci-value a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); transition: border-color .2s; cursor: none; }
.ci-value a:hover { border-color: #fff; }
.ci-sub { font-size: 0.82rem; color: var(--silver); margin-top: 0.15rem; }
.ci-copy {
  margin-top: 0.55rem; font-family: 'Coolvetica', sans-serif; font-size: 0.7rem; color: var(--silver);
  background: transparent; border: 1px solid var(--line-md); border-radius: var(--r-full); padding: 4px 12px; cursor: none;
}
.ci-copy:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field span { font-size: 0.66rem; letter-spacing: 0.06em; color: var(--muted); }
.cf-field input, .cf-field textarea {
  width: 100%; font: inherit; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; font-size: 16px; /* 16px stops iOS zoom */
  color: var(--white); background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-md); border-radius: var(--r-md);
  padding: 12px 14px; outline: none; cursor: none; resize: vertical;
  transition: border-color .2s, background .2s;
}
.cf-field textarea { min-height: 140px; line-height: 1.5; }
.cf-field input:focus, .cf-field textarea:focus { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.05); }
.cf-field input.bad, .cf-field textarea.bad { border-color: rgba(255,140,140,0.7); }
.cf-honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.cf-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.cf-send {
  font-family: 'Coolvetica', sans-serif; font-size: 0.9rem; color: #000; background: #fff;
  border: 0; border-radius: var(--r-full); padding: 12px 22px; cursor: none;
  transition: transform .25s var(--ease), opacity .2s;
}
.cf-send:hover { transform: translateY(-1px); }
.cf-send[disabled] { opacity: .55; pointer-events: none; }
.cf-status { font-size: 0.82rem; color: var(--silver); line-height: 1.45; }
.cf-status a { color: #fff; }
@media (hover:none) { .cf-field input, .cf-field textarea, .cf-send, .ci-copy, .ci-value a { cursor: auto; } }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; }
  .contact { border-radius: var(--r-lg); }
}

/* ── v12 ─────────────────────────────────────────── */
/* Hero name: the row clips the slide-up reveal, so give it room for the "j" descender.
   The font-size lives on the row so the padding is measured in the name's own em. */
.hero-row { font-size: clamp(2.6rem, 10vw, 9rem); padding-bottom: 0.24em; margin-bottom: -0.18em; }
.hero-word { font-size: 1em; transform: translateY(135%) rotate(1.5deg); }
/* Contact button in caps */
.cf-send { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; padding: 13px 24px; }
/* Home reel (auto-built from project previews): two stacked videos that crossfade */
.home-bg video { position: absolute; inset: 0; transition: opacity 0.9s ease; }
.home-bg video.off { opacity: 0 !important; }

/* ── v13 — own player, full-video hover with sound ───────────────── */
/* Projects header: sound toggle */
.proj-tools { display: flex; align-items: center; gap: 12px; }
.snd {
  display: inline-flex; align-items: center; gap: 8px; cursor: none;
  font-family: 'Coolvetica', sans-serif; font-size: 0.72rem; letter-spacing: 0.02em; color: var(--silver);
  background: rgba(0,0,0,0.5); border: 1px solid var(--line-md); border-radius: var(--r-full); padding: 6px 13px 6px 10px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: color .2s, border-color .2s, background .2s;
}
.snd:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.snd-ico { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.snd-ico::before, .snd-ico::after { content: ""; width: 2px; border-radius: 2px; background: currentColor; }
.snd-ico { position: relative; width: 14px; }
.snd-ico::before { height: 6px; box-shadow: 4px -3px 0 0 currentColor, 8px 0 0 0 currentColor; animation: eq 1.1s ease-in-out infinite; }
.snd-ico::after { display: none; }
@keyframes eq { 0%,100% { height: 5px; } 50% { height: 11px; } }
.snd.off .snd-ico::before { animation: none; height: 2px; box-shadow: 4px 0 0 0 currentColor, 8px 0 0 0 currentColor; }
.snd.wait { color: #fff; border-color: rgba(255,255,255,0.35); }
@media (prefers-reduced-motion: reduce) { .snd-ico::before { animation: none; } }

/* Card: full video + thin progress line + muted hint */
.pthumb .pvid { background: #000; }
.pprog { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.18); overflow: hidden; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 2; }
.pprog i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.pcard.playing .pprog { opacity: 1; }
.pmute { position: absolute; top: 10px; left: 10px; z-index: 2; pointer-events: none; font-size: 0.6rem; letter-spacing: 0.04em; color: #fff; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--r-full); padding: 4px 9px; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.pcard.playing.muted .pmute { opacity: 1; transform: none; }
.pcard.playing .pcard-overlay { background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 35%); }

/* Player page (lightbox) — film-page layout: video, then title, then details */
.lb-backdrop { background: rgba(0,0,0,0.96); padding: clamp(3.6rem, 7vh, 5rem) clamp(1rem, 4vw, 3rem) 2.5rem; }
.lb-inner { background: transparent; border: 0; border-radius: 0; overflow: visible; max-width: min(1100px, calc((100vh - 13rem) * var(--ar, 1.7778))); }
@supports (height: 100dvh) { .lb-inner { max-width: min(1100px, calc((100dvh - 13rem) * var(--ar, 1.7778))); } }
.lb-inner.portrait { max-width: min(460px, calc((100vh - 13rem) * var(--ar, 0.5625))); }
@supports (height: 100dvh) { .lb-inner.portrait { max-width: min(460px, calc((100dvh - 13rem) * var(--ar, 0.5625))); } }
@media (min-width: 1800px) { .lb-inner:not(.portrait) { max-width: min(1500px, calc((100vh - 13rem) * var(--ar, 1.7778))); } }
.lb-embed { border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: 0 30px 90px rgba(0,0,0,0.6); }
.lb-x { position: fixed; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: var(--r-full); display: grid; place-items: center; color: var(--silver); background: rgba(255,255,255,0.06); border: 1px solid var(--line-md); cursor: none; transition: color .2s, background .2s, transform .3s var(--ease); }
.lb-x:hover { color: #fff; background: rgba(255,255,255,0.12); transform: rotate(90deg); }
.lb-head { padding: 1.4rem 0.2rem 0; }
.lb-kicker { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lb-head .lb-title { display: block; margin-top: 0.35rem; font-family: 'Coolvetica', sans-serif; font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.lb-details { padding: 0.9rem 0.2rem 0; }
.lb-row { margin-top: 0.45rem; font-size: 0.88rem; color: #fff; }
.lb-row span { display: inline-block; min-width: 5.2rem; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lb-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 2rem; padding: 1.2rem 0.2rem 0; border-top: 1px solid var(--line); }
.lb-nav:empty { display: none; }
.lb-step { display: flex; flex-direction: column; gap: 3px; max-width: 48%; text-align: left; cursor: none; background: none; border: 0; color: var(--silver); font-family: 'Coolvetica', sans-serif; font-size: 0.95rem; transition: color .2s; }
.lb-step span { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lb-step.next { text-align: right; align-items: flex-end; margin-left: auto; }
.lb-step:hover { color: #fff; }

/* The player itself */
.vp { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; border-radius: inherit; user-select: none; -webkit-user-select: none; }
.vp-v { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; cursor: none; }
.vp:fullscreen { border-radius: 0; }
.vp:fullscreen .vp-v { object-fit: contain; }
.vp-big { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: var(--r-full); display: grid; place-items: center; color: #fff; background: rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: none; transition: opacity .3s, transform .3s var(--ease); }
.vp-big svg { width: 26px; height: 26px; margin-left: 3px; }
.vp-big:hover { transform: scale(1.06); background: rgba(255,255,255,0.12); }
.vp:not(.paused) .vp-big { opacity: 0; transform: scale(0.85); pointer-events: none; }
.vp-spin { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.18); border-top-color: #fff; opacity: 0; pointer-events: none; animation: spin .8s linear infinite; transition: opacity .2s; }
.vp.loading:not(.paused) .vp-spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.vp-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-full); background: rgba(10,10,10,0.55); border: 1px solid rgba(255,255,255,0.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: opacity .35s, transform .35s var(--ease); }
.vp.idle:not(.paused):not(.scrub) .vp-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.vp.idle:not(.paused) .vp-v { cursor: none; }
.vp-btn { flex: none; width: 30px; height: 30px; border-radius: var(--r-full); display: grid; place-items: center; color: #fff; background: none; border: 0; cursor: none; opacity: 0.85; transition: opacity .2s, background .2s; }
.vp-btn:hover { opacity: 1; background: rgba(255,255,255,0.1); }
.vp-t { flex: none; font-size: 0.7rem; color: rgba(255,255,255,0.75); font-variant-numeric: tabular-nums; min-width: 2.4em; text-align: center; }
.vp-track { position: relative; flex: 1; height: 22px; cursor: none; touch-action: none; outline: none; }
.vp-track::before, .vp-buf, .vp-fill { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; transform-origin: 0 50%; }
.vp-track::before { background: rgba(255,255,255,0.18); }
.vp-buf { background: rgba(255,255,255,0.3); transform: scaleX(0); }
.vp-fill { background: #fff; transform: scaleX(0); }
.vp-knob { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .2s var(--ease); }
.vp-track:hover .vp-knob, .vp.scrub .vp-knob, .vp-track:focus-visible .vp-knob { transform: scale(1); }
.vp-track:hover::before, .vp-track:hover .vp-buf, .vp-track:hover .vp-fill { height: 5px; margin-top: -2.5px; }
.lb-inner.portrait .vp-t.vp-dur { display: none; }
@media (hover:none) {
  .vp-bar { left: 8px; right: 8px; bottom: 8px; gap: 6px; padding: 6px 8px; }
  .vp-btn, .vp-big, .vp-track, .vp-v, .lb-x, .lb-step, .snd { cursor: auto; }
  .vp-knob { transform: scale(1); }
}
@media (max-width: 520px) {
  .lb-backdrop { padding: 4rem 0.8rem 2rem; }
  .lb-nav { flex-direction: column; }
  .lb-step, .lb-step.next { max-width: 100%; }
}
.vp:fullscreen .vp-v, .vp:fullscreen .vp-btn, .vp:fullscreen .vp-big, .vp:fullscreen .vp-track { cursor: default; }
.vp.idle:not(.paused):fullscreen .vp-v { cursor: none; }
/* Row-ordered masonry (main.js → layoutGrid) */
.proj-grid { columns: auto !important; display: flex; align-items: flex-start; gap: 8px; }
.pcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
/* Landscape phones: let the player use the height */
@media (max-height: 520px) and (orientation: landscape) {
  .lb-backdrop { padding: 3.2rem 1rem 1.5rem; }
  .lb-inner { max-width: min(1100px, calc((100dvh - 4.5rem) * var(--ar, 1.7778))); }
  .lb-inner.portrait { max-width: calc((100dvh - 4.5rem) * var(--ar, 0.5625)); }
  .lb-x { top: 8px; right: 8px; }
}

/* ── v14 — About: statement + drifting strip (after mshaffuan.com/about) ───────── */
#page-about { padding: calc(var(--nav-h) + 48px) 0 5rem; overflow-x: hidden; }
.ab-hero { padding: 0 clamp(1.25rem, 3vw, 2.8rem); max-width: 1500px; }
.ab-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--silver); margin-bottom: clamp(1rem, 2.4vh, 1.8rem); text-shadow: 0 0 6px #000, 0 0 2px #000; }
.ab-meta span:first-child { text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.ab-statement {
  font-family: 'Coolvetica', sans-serif; font-weight: 400; color: #fff;
  font-size: clamp(1.75rem, 3.5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.025em;
  max-width: 21em; text-wrap: balance;
  text-shadow: 0 0 12px rgba(0,0,0,0.7), 0 0 2px rgba(0,0,0,0.6);
}
.ab-hero { position: relative; }
.ab-hero::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: -6%; top: -30%; width: min(1300px, 112%); height: 160%;
  background: radial-gradient(closest-side, rgba(0,0,0,0.82), rgba(0,0,0,0.55) 60%, rgba(0,0,0,0)); }
.ab-strip { margin-top: clamp(3rem, 12vh, 9rem); overflow: hidden; position: relative; }
.ab-track { display: flex; width: max-content; animation: abDrift var(--dur, 48s) linear infinite; will-change: transform; }
.ab-strip:hover .ab-track { animation-play-state: paused; }
.ab-set { display: flex; align-items: flex-start; gap: clamp(10px, 1.1vw, 16px); padding-right: clamp(10px, 1.1vw, 16px); }
@keyframes abDrift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.ab-tile { margin: 0; overflow: hidden; border-radius: var(--r-lg); background: #0a0a0a; flex: none; }
.ab-tile img, .ab-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* varied heights + offsets, like a contact strip */
.ab-tile.t0 { height: clamp(220px, 40vh, 420px); margin-top: 2vh; }
.ab-tile.t1 { height: clamp(180px, 31vh, 330px); margin-top: 6vh; }
.ab-tile.t2 { height: clamp(230px, 43vh, 450px); margin-top: 0; }
.ab-tile.t3 { height: clamp(160px, 27vh, 290px); margin-top: 9vh; }
.ab-tile.t4 { height: clamp(200px, 36vh, 380px); margin-top: 3vh; }
.ab-contact { padding: clamp(3rem, 9vh, 6rem) clamp(1.25rem, 3vw, 2.8rem) 0; }
.ab-contact .about-contacts { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .ab-tile.t0 { height: 230px; margin-top: 8px; } .ab-tile.t1 { height: 190px; margin-top: 30px; }
  .ab-tile.t2 { height: 250px; margin-top: 0; } .ab-tile.t3 { height: 170px; margin-top: 44px; }
  .ab-tile.t4 { height: 210px; margin-top: 16px; }
  .ab-meta { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-track { animation: none; }
  .ab-strip { overflow-x: auto; }
}

/* ── v15 — year dropdown (replaces the works counter) ── */
.ydrop { position: relative; }
.ydrop-btn { display: inline-flex; align-items: center; gap: 8px; cursor: none; font-family: 'Coolvetica', sans-serif; font-size: 0.72rem; letter-spacing: 0.02em;
  color: var(--silver); background: rgba(0,0,0,0.5); border: 1px solid var(--line-md); border-radius: var(--r-full); padding: 6px 12px 6px 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: color .2s, border-color .2s, background .2s; }
.ydrop-btn:hover, .ydrop.open .ydrop-btn, .ydrop-btn.on { color: #fff; border-color: rgba(255,255,255,0.3); }
.ydrop-btn.on { background: rgba(255,255,255,0.09); }
.ydrop-btn svg { transition: transform .25s var(--ease); }
.ydrop.open .ydrop-btn svg { transform: rotate(180deg); }
.ydrop-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 128px; list-style: none; padding: 5px; margin: 0;
  background: rgba(12,12,12,0.92); border: 1px solid var(--line-md); border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: ydIn .18s var(--ease); }
@keyframes ydIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ydrop-list li { padding: 8px 12px; border-radius: 10px; font-size: 0.78rem; color: var(--silver); cursor: none; outline: none; }
.ydrop-list li:hover, .ydrop-list li:focus { background: rgba(255,255,255,0.08); color: #fff; }
.ydrop-list li[aria-selected="true"] { color: #fff; }
.ydrop-list li[aria-selected="true"]::after { content: " ✓"; opacity: .6; }
.proj-empty { width: 100%; padding: 4rem 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
@media (hover:none) { .ydrop-btn, .ydrop-list li { cursor: auto; } }
