:root {
  --bg: #080808;
  --bg-2: #101010;
  --shell: rgba(255, 255, 255, 0.035);
  --hair: rgba(255, 255, 255, 0.07);
  --hair-2: rgba(255, 255, 255, 0.14);
  --text: #f2f0eb;
  --muted: rgba(242, 240, 235, 0.58);
  --faint: rgba(242, 240, 235, 0.36);
  --accent: #e8653f;

  --display: "Clash Display", "General Sans", system-ui, sans-serif;
  --body: "General Sans", system-ui, sans-serif;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --spring-soft: cubic-bezier(0.22, 1.15, 0.36, 1);
  --frame: cubic-bezier(0.2, 0.9, 0.25, 1);

  --gutter: clamp(1rem, 3vw, 3rem);
  --r-shell: 1.5rem;
  --r-core: calc(var(--r-shell) - 0.375rem);
  --tabbar: 4.5rem;

  /* z scale: nav 20, app chrome 25, overlay 40, grain 50 */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(232, 101, 63, 0.6) var(--bg); }
/* Page scrollbar: slim accent thumb on the page colour (standard properties above; WebKit fallback for browsers without them) */
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; height: 10px; background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: rgba(232, 101, 63, 0.6); border: 3px solid var(--bg); border-radius: 999px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
}
html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; padding: 0 var(--gutter); }

.skip {
  position: fixed; top: 1rem; left: 1rem; z-index: 60;
  padding: 0.6rem 1rem; border-radius: 999px; background: var(--text); color: var(--bg);
  transform: translateY(-200%); transition: transform 0.4s var(--ease);
}
.skip:focus { transform: none; }

h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.4rem 0.4rem 0.4rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hair-2);
  font-weight: 500; font-size: 0.95rem; white-space: nowrap;
  transition: transform 0.5s var(--ease), background-color 0.5s var(--ease);
}
.pill:hover { background: rgba(255, 255, 255, 0.14); }
.pill:active { transform: scale(0.98); }
.pill__icon {
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  display: grid; place-items: center; font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  transition: transform 0.5s var(--ease);
}
.pill:hover .pill__icon { transform: translateX(2px) scale(1.06); }
.pill--light { background: var(--text); color: var(--bg); border-color: transparent; }
.pill--light:hover { background: #fff; }
.pill--light .pill__icon, .pill--small .pill__icon { background: var(--accent); color: var(--bg); }
.pill--small { padding: 0.25rem 0.25rem 0.25rem 1rem; font-size: 0.85rem; }
.pill--small .pill__icon { width: 1.9rem; height: 1.9rem; font-size: 0.75rem; }

.round {
  width: 3rem; height: 3rem; border-radius: 999px;
  display: grid; place-items: center; font-size: 1.15rem;
  border: 1px solid var(--hair-2);
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.round:hover { background: rgba(255, 255, 255, 0.08); }
.round:active { transform: scale(0.96); }
.round:disabled { opacity: 0.3; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--muted); font-weight: 500;
  transition: color 0.4s var(--ease);
}
.link-arrow:hover { color: var(--text); }
.link-arrow i { transition: transform 0.4s var(--ease); }
.link-arrow:hover i { transform: translateY(2px); }

/* ---------- Floating nav ---------- */
.nav {
  position: fixed; z-index: 20; top: 1rem; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 1.75rem;
  padding: 0.35rem 0.35rem 0.35rem 1.25rem;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.6);
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav__mark { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 1.5rem; font-size: 0.9rem; }
.nav__links a { color: var(--muted); transition: color 0.3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100dvh, 62rem);
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero__bg, .m-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--bg-2) 72% 40% / cover no-repeat;
  animation: hero-in 2.2s var(--ease-out) forwards;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.55) 40%, rgba(8, 8, 8, 0) 70%),
    linear-gradient(to top, var(--bg) 2%, rgba(8, 8, 8, 0) 45%);
}
/* Desktop: zoomed out past "cover" so more of the wide render shows. The image is drawn at 80% of the hero's height
   (never narrower than the viewport, so no side gaps), anchored to the top, with its top and bottom edges faded. */
.hero__bg {
  background-color: transparent;
  background-size: auto max(80%, calc(100vw / 2.6));
  background-position: 72% 0%; /* anchored to the top so no empty band sits above the render */
  /* The fade is sized to the image itself (same box as the background), so both its edges melt into the page */
  --hero-h: max(80%, calc(100vw / 2.6));
  -webkit-mask: linear-gradient(to bottom, transparent 0%, #000 12%, #000 55%, transparent 100%) 0 0 / 100% var(--hero-h) no-repeat;
  mask: linear-gradient(to bottom, transparent 0%, #000 12%, #000 55%, transparent 100%) 0 0 / 100% var(--hero-h) no-repeat;
}
@keyframes hero-in { from { transform: scale(1.12); opacity: 0; } to { transform: scale(1.03); opacity: 1; } }

.hero__content { width: 100%; padding: 0 var(--gutter) clamp(1.5rem, 3vw, 2.5rem); }
.hero__intro {
  display: grid; justify-items: start; gap: 1.25rem;
  max-width: min(40rem, 100%);
  padding-bottom: clamp(1.5rem, 3.5vw, 3rem);
  opacity: 0; animation: fade-up 1s var(--ease-out) 0.8s forwards;
}
.hero__role { font-family: var(--display); font-size: clamp(1.3rem, 1.8vw, 1.85rem); font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.hero__lead {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.6rem, 2.5vw, 2.6rem); line-height: 1.08; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__lead .w--accent { color: var(--accent); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 0.5rem; }
.hero__name {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(3.5rem, 12.6vw, 18rem); line-height: 0.82; letter-spacing: -0.045em;
  display: flex; justify-content: space-between; gap: 0.15em;
  margin: clamp(0.75rem, 1.5vw, 1.25rem) 0 -0.1em -0.04em;
}
.mask { display: block; flex: none; overflow: hidden; padding: 0 0.04em 0.06em 0; }
.word {
  display: block; transform: translateY(105%);
  animation: rise 1.3s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--d) * 0.12s);
}
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.work, .crew, .about, .contact { padding: clamp(6rem, 11vw, 10rem) 0; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Work ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; border-bottom: 1px solid var(--hair); }
.tab {
  position: relative; padding: 0 0 1rem;
  font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  color: var(--faint); transition: color 0.4s var(--ease);
}
.tab sup { font-family: var(--body); font-size: 0.75rem; margin-left: 0.3rem; font-variant-numeric: tabular-nums; }
.tab:hover { color: var(--muted); }
.tab[aria-selected="true"] { color: var(--text); }
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 clamp(2rem, 4vw, 3rem); min-height: 2.4rem; }
/* Frosted glass chips. Layers inside the isolated row: glass (z -1), then the selection blob, then labels,
   which invert (difference) wherever the blob flows under them, so text stays readable and no outline shows through */
.chips, .m-chips { position: relative; isolation: isolate; }
.chip { position: relative; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.85rem; white-space: nowrap; color: var(--muted); transition: color 0.3s var(--ease); }
.chip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s var(--ease);
}
.chip > span { position: relative; mix-blend-mode: difference; }
.chip:hover, .chip[aria-pressed="true"] { color: var(--text); }
.chip:hover::before { background-color: rgba(255, 255, 255, 0.05); }
.blob { position: absolute; left: 0; top: 0; pointer-events: none; }
.blob__liquid { position: absolute; left: 0; top: 0; border-radius: 999px; }
.blob__pill { position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--text); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }

/* Justified rows: grow and basis both scale with --ar, so every card in a row shares one height */
.grid, .m-grid { display: flex; flex-wrap: wrap; align-items: flex-start; }
.grid {
  --row: clamp(14rem, 21vw, 24rem);
  gap: clamp(1.75rem, 2.4vw, 2.5rem) clamp(0.75rem, 1.2vw, 1.25rem);
}
.grid::after, .m-grid::after { content: ''; flex: 1e4 1 0; } /* keeps the last row at natural size */
.grid > .card, .m-grid > .card { flex: var(--ar) 1 calc(var(--ar) * var(--row)); max-width: 100%; }
.grid > .skeleton { flex: 1 1 var(--row); }
.grid > .state { flex-basis: 100%; }
.card {
  position: relative; text-align: left; width: 100%; min-width: 0;
  display: flex; flex-direction: column;
  transition: transform 0.6s var(--ease);
}
.card:active { transform: scale(0.985); }
.card__media {
  display: block; position: relative; overflow: hidden; border-radius: 1.1rem;
  aspect-ratio: var(--ar, 1); background: var(--bg-2);
}
.card__media img, .card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  transition: transform 1.1s var(--ease), opacity 0.7s var(--ease), scale 1.3s var(--ease-out), filter 0.6s var(--ease);
}
.card__media img { opacity: 0; scale: 1.06; }
.card__media img.is-loaded { opacity: 1; scale: 1; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media video { opacity: 0; }
.card__media video.is-playing { opacity: 1; }
.card__play {
  position: absolute; right: 0.75rem; top: 0.75rem; z-index: 1;
  width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center;
  background: rgba(8, 8, 8, 0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.75rem;
}
.card__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.85rem 0.15rem 0; }
.card__title { font-weight: 500; font-size: 0.98rem; line-height: 1.3; transition: color 0.35s var(--ease); }
.card:hover .card__title { color: var(--accent); }
.card__tag { color: var(--faint); font-size: 0.8rem; white-space: nowrap; }

.skeleton { border-radius: 1.1rem; background: var(--shell); aspect-ratio: 1 / 1.12; position: relative; overflow: hidden; }
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  transform: translateX(-100%); animation: shimmer 1.6s var(--ease) infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.state { grid-column: 1 / -1; padding: 4rem 0; color: var(--muted); display: grid; gap: 1.25rem; justify-items: start; }

/* ---------- Crew carousel ---------- */
.crew__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.25rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.crew__sub { color: var(--muted); max-width: 46ch; }
.crew__sub strong { color: var(--text); font-weight: 500; }
.crew__nav { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 0.5rem; }
.crew__viewport {
  overflow: hidden; cursor: grab; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.crew__viewport.is-dragging { cursor: grabbing; }
.crew__track { display: flex; gap: clamp(0.75rem, 1.2vw, 1.25rem); width: max-content; will-change: transform; padding: 0.5rem 0; }
.mate {
  flex: none; width: clamp(15rem, 19vw, 24rem); text-align: left;
  transition: transform 0.7s var(--ease);
  user-select: none; -webkit-user-drag: none;
}
.mate:hover { transform: translateY(-6px); }
.crew__track .mate { transition: transform 0.7s var(--ease), opacity 0.6s var(--ease); }
.crew__track:has(.mate:hover) .mate:not(:hover) { opacity: 0.4; }
.mate__img { display: block; position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 1.25rem; background: var(--bg-2); }
.mate__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); pointer-events: none; }
.mate:hover .mate__img img { transform: scale(1.05); }
.mate__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 8, 0.85), rgba(8, 8, 8, 0) 45%); }
.mate__cap { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1; }
.mate__name { display: block; font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1.05; letter-spacing: -0.02em; }
.mate__cta { margin-top: 0.4rem; color: var(--muted); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 0.35rem; transition: color 0.4s var(--ease); }
.mate:hover .mate__cta { color: var(--accent); }

/* ---------- About / contact ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.about__bio { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em; text-wrap: pretty; max-width: 40ch; }
.about__label { margin: clamp(3rem, 6vw, 4.5rem) 0 1.25rem; font-size: 0.9rem; font-weight: 500; color: var(--faint); }
.toolbox { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.toolbox li { padding: 0.55rem 1.05rem; border-radius: 999px; border: 1px solid var(--hair-2); font-size: 0.9rem; }
/* Skills: big counting percentage, glowing accent bar with a bead riding its end (echoes the video timeline) */
.skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1.75rem clamp(2rem, 4vw, 3.5rem); }
.skills li { display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 0.7rem; }
.skills__name { font-size: 0.95rem; color: var(--muted); padding-bottom: 0.2rem; transition: color 0.4s var(--ease); }
.skills__pct { font-size: 0.8rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.skills__pct b {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1; letter-spacing: -0.03em; color: var(--text); margin-right: 0.1rem;
}
.skills__bar { grid-column: 1 / -1; position: relative; height: 2px; border-radius: 2px; background: var(--hair-2); }
.skills__bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, rgba(232, 101, 63, 0.35), var(--accent));
  box-shadow: 0 0 14px rgba(232, 101, 63, 0.45);
  transition: width 1.4s var(--ease-out) calc(var(--i, 0) * 90ms);
}
.skills__bar i::after {
  content: ""; position: absolute; right: -4.5px; top: 50%; width: 9px; height: 9px; border-radius: 999px;
  background: var(--accent); translate: 0 -50%;
  box-shadow: 0 0 0 4px rgba(232, 101, 63, 0.16), 0 0 16px rgba(232, 101, 63, 0.7);
  transition: scale 0.45s var(--spring), box-shadow 0.45s var(--ease);
}
.skills.is-in .skills__bar i { width: calc(var(--p) * 100%); }
.skills li:hover .skills__name { color: var(--text); }
.skills li:hover .skills__bar i::after { scale: 1.35; box-shadow: 0 0 0 6px rgba(232, 101, 63, 0.2), 0 0 22px rgba(232, 101, 63, 0.85); }

.contact { border-top: 1px solid var(--hair); }
.contact__sub { color: var(--muted); font-size: 1.05rem; }
.contact__title { margin-top: 1rem; font-size: clamp(3rem, 10vw, 12rem); line-height: 0.9; letter-spacing: -0.045em; font-weight: 600; }
.contact__mail {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: inline-flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem);
  font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 3.4vw, 3rem); letter-spacing: -0.02em;
  border-bottom: 1px solid var(--hair-2); padding-bottom: 0.5rem;
  transition: border-color 0.5s var(--ease);
  overflow-wrap: anywhere;
}
.contact__mail:hover { border-color: var(--accent); }
.contact__mail-icon {
  flex: none; width: clamp(2.5rem, 4vw, 3.5rem); height: clamp(2.5rem, 4vw, 3.5rem); border-radius: 999px;
  display: grid; place-items: center; background: var(--accent); color: var(--bg); font-size: 1.1em;
  transition: transform 0.5s var(--ease);
}
.contact__mail:hover .contact__mail-icon { transform: translate(3px, -3px) scale(1.05); }
.socials { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: 2.5rem; }
.socials a { color: var(--muted); transition: color 0.3s var(--ease); }
.socials a:hover { color: var(--text); }

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: 2rem; padding-bottom: 2.25rem; border-top: 1px solid var(--hair);
  color: var(--faint); font-size: 0.9rem;
}

/* ---------- Overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(8, 8, 8, 0.96);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transform: scale(0.94);
  transition: opacity 0.4s var(--ease), transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.overlay.is-open { opacity: 1; transform: none; }
.overlay__close { position: fixed; top: 1rem; right: 1rem; z-index: 3; background: rgba(16, 16, 16, 0.8); }
.overlay__body { min-height: 100%; }

/* Project viewer: everything fits one screen */
.viewer {
  height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(19rem, 24vw, 26rem);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1rem, 2vw, 1.5rem) var(--gutter);
}
.stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; min-height: 0; }
.stage__frame {
  position: relative; flex: none; width: 100%; height: 60vh; max-width: 100%;
  border-radius: 1.25rem; background: var(--bg-2); overflow: hidden;
  transition: width 0.7s var(--frame), height 0.7s var(--frame);
}
.rail {
  height: 100%; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.slide { flex: none; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.slide > img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.stage__arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  background: rgba(8, 8, 8, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stage__arrow--prev { left: 1rem; }
.stage__arrow--next { right: 1rem; }
.stage__count {
  position: absolute; left: 1rem; top: 1rem; z-index: 2;
  padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-variant-numeric: tabular-nums;
  background: rgba(8, 8, 8, 0.55); color: var(--muted);
}
.thumbs { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; flex: none; max-width: 100%; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  flex: none; width: 4.5rem; height: 4.5rem; border-radius: 0.75rem; overflow: hidden;
  border: 1.5px solid transparent; opacity: 0.5; position: relative; background: var(--bg-2);
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.1rem; background: rgba(8, 8, 8, 0.35); }
.thumb:hover { opacity: 0.85; }
.thumb.is-active { opacity: 1; border-color: var(--text); }

.viewer__info { align-self: center; display: grid; gap: 1.25rem; max-height: 100%; overflow-y: auto; padding: 3.5rem 0.25rem 1rem 0; scrollbar-width: none; }
.viewer__kicker { color: var(--faint); font-size: 0.9rem; }
.viewer__title { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1; letter-spacing: -0.03em; }
.viewer__desc { color: var(--muted); }
.viewer__sw { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.viewer__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
/* Timelapse: dark glass twin of the Instagram pill, play icon in the accent circle */
.viewer__tl { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.viewer__tl .pill__icon { background: var(--accent); color: var(--bg); font-size: 0.8rem; }
.viewer__sw li { padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--hair-2); font-size: 0.8rem; color: var(--muted); }
.viewer__pager { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hair); color: var(--faint); font-size: 0.85rem; }

/* Full-screen image, opened by tapping a project image */
.slide[data-full] { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 45; display: grid; place-items: center;
  background: #000; cursor: zoom-out; opacity: 0; transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 100vw; max-height: 100dvh; object-fit: contain; scale: 0.96; transition: scale 0.45s var(--ease-out); }
.lightbox.is-open img { scale: 1; }
.lightbox__close { position: fixed; top: calc(env(safe-area-inset-top) + 0.75rem); right: 0.75rem; background: rgba(16, 16, 16, 0.8); }

/* Video player, Instagram-style gestures */
.player { position: relative; width: 100%; align-self: stretch; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; touch-action: pan-x pan-y; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: none; }
.player__flash, .player__badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.9);
  pointer-events: none; opacity: 0; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.player__flash { width: 4.5rem; height: 4.5rem; border-radius: 999px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(8, 8, 8, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.player__flash.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.player__badge { top: 1.25rem; transform: translate(-50%, 0); padding: 0.35rem 0.9rem; border-radius: 999px; background: rgba(8, 8, 8, 0.65); font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 0.4rem; }
.player__badge.is-on { opacity: 1; }
/* Tiny round glass controls in the corner; each icon morphs into its pair on toggle */
.player__ctl { position: absolute; right: 0.75rem; bottom: 0.9rem; z-index: 2; display: flex; gap: 0.4rem; }
.player__btn {
  width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center; font-size: 0.95rem;
  color: var(--text); background: rgba(8, 8, 8, 0.42); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
  opacity: 0.8; transition: opacity 0.35s var(--ease), background-color 0.35s var(--ease), transform 0.45s var(--spring);
}
.player__btn:hover { opacity: 1; background: rgba(8, 8, 8, 0.62); }
.player__btn:active { transform: scale(0.86); transition-duration: 0.12s; }
.player__btn i { grid-area: 1 / 1; transition: opacity 0.25s var(--ease), transform 0.45s var(--spring); }
.player__btn i:last-child, .player__btn[aria-pressed="true"] i:first-child { opacity: 0; transform: scale(0.5); }
.player__btn[aria-pressed="true"] i:last-child { opacity: 1; transform: none; }
.player:fullscreen { background: #000; }
.player:-webkit-full-screen { background: #000; }
.player__line {
  position: absolute; left: 0; bottom: 0; z-index: 1; width: 100%; height: 3px;
  background: var(--accent); pointer-events: none; transform: scaleX(0); transform-origin: left;
}
/* Liquid bead riding the line, and the invisible hit strip that drags it */
/* Bead layer sits over the frame but outside its clipping: clipped at the sides, free to spill past the bottom edge */
.stage { position: relative; }
.stage__bead { position: absolute; z-index: 2; pointer-events: none; clip-path: inset(-24px 0); transition: opacity 0.3s var(--ease); }
.stage:not(:has(.slide.is-active .player)) .stage__bead { opacity: 0; }
.player__liquid { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--accent); }
.bead-host { position: absolute; inset: 0; }
.player__thumb { position: absolute; left: 0; top: 0; border-radius: 999px; }
.has-liquid .player__liquid { display: none; }
.player__scrub { position: absolute; left: 0; right: 0; bottom: 0; height: 1.75rem; z-index: 1; cursor: pointer; touch-action: none; }
.player__scrub:focus-visible { outline-offset: -4px; }

/* Crew story: crew rail on the left, render stays put, only the text scrolls */
.story {
  height: 100dvh;
  display: grid; grid-template-columns: minmax(13rem, 16rem) minmax(16rem, 27vw) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding: clamp(1rem, 2vw, 1.5rem) var(--gutter);
}
.story__aside { min-height: 0; border-radius: 1.25rem; overflow: hidden; background: var(--bg-2); }
.story__aside img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.story__col { position: relative; min-height: 0; }
.story__scroll {
  height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 4.75rem 1.5rem 4rem 0.75rem; /* clears the close button, now that the text column sits on the right */
  scrollbar-width: none; /* replaced by .story__bar */
}
.story__scroll::-webkit-scrollbar { display: none; }
/* Custom scrollbar: hairline track, glowing accent thumb that brightens while scrolling and widens on hover/drag */
.story__bar { position: absolute; top: 4.75rem; bottom: 1.5rem; right: 0; width: 14px; cursor: pointer; touch-action: none; }
.story__bar::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--hair-2); }
.story__bar i {
  position: absolute; top: 0; left: 50%; width: 3px; translate: -50% 0; border-radius: 3px;
  background: linear-gradient(var(--accent), rgba(232, 101, 63, 0.7));
  box-shadow: 0 0 10px rgba(232, 101, 63, 0.35);
  opacity: 0.55; transition: opacity 0.4s var(--ease), width 0.35s var(--spring), box-shadow 0.4s var(--ease);
}
.story__bar.is-active i, .story__bar:hover i, .story__bar.is-drag i { opacity: 1; box-shadow: 0 0 16px rgba(232, 101, 63, 0.6); }
.story__bar:hover i, .story__bar.is-drag i { width: 6px; }
.story__scroll:focus-visible { outline-offset: -2px; }
.story__main { max-width: 46rem; margin: 0 auto; }
.story__kicker { color: var(--faint); margin-bottom: 0.75rem; }
.story__title { font-family: var(--display); font-weight: 500; font-size: clamp(2.5rem, 4.6vw, 4.5rem); line-height: 0.95; letter-spacing: -0.035em; margin-bottom: 2rem; }
.story__body {
  --pt-xl: 1.35rem; --pt-2xl: 1.6rem; --pt-3xl: 1.95rem; --pt-4xl: 2.35rem; --pt-5xl: 2.85rem; --pt-6xl: 3.5rem;
  font-size: 1.08rem; line-height: 1.75; color: rgba(242, 240, 235, 0.82);
}
.story__body > * + * { margin-top: 1.25rem; }
.story__body strong { color: var(--text); font-weight: 600; }
.story__body h3 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin-top: 2.5rem; color: var(--text); }
.story__body blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 2px solid var(--accent); font-family: var(--display); font-size: 1.5rem; color: var(--text); }
.pt-hand { line-height: 1.35; color: var(--text); letter-spacing: 0.01em; }
.pt-img { width: var(--w, 100%); margin-inline: auto; }
.pt-img img, .pt-row img { width: 100%; height: auto; border-radius: 0.9rem; }
.pt-img.is-sticker img { border-radius: 0; }
.pt-row { display: grid; }
.story__foot {
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.story__rail { order: -1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 4.75rem 0 0.5rem; display: flex; flex-direction: column; gap: 1rem; }
.story__rail::-webkit-scrollbar { display: none; }
.story__rail-label { color: var(--faint); font-size: 0.85rem; }
.crewlist { display: grid; gap: 0.25rem; }
.crewlist button {
  position: relative; isolation: isolate; width: 100%; display: flex; align-items: center; gap: 0.75rem; padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  border-radius: 0.9rem; color: var(--muted); font-weight: 500; text-align: left;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.crewlist button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.crewlist button[aria-current="true"] { color: var(--text); }
/* The current pick's highlight is its own element so the view transition can glide it to the next name */
.crewlist__pick { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(255, 255, 255, 0.08); view-transition-name: crew-pick; }

/* Crew switch view transition */
.story__aside { view-transition-name: crew-render; }
.story__col { view-transition-name: crew-text; } /* the clipped column, so off-screen text never shows mid-swap */
.story__rail { view-transition-name: crew-rail; }
::view-transition-old(root), ::view-transition-new(root),
::view-transition-old(crew-rail), ::view-transition-new(crew-rail) { animation: none; }
::view-transition-group(crew-pick) { animation-duration: 0.55s; animation-timing-function: var(--spring-soft); }
::view-transition-group(crew-render), ::view-transition-group(crew-text) { animation-duration: 0.8s; animation-timing-function: var(--ease-out); }
::view-transition-old(crew-render) { animation: vt-out 0.4s var(--ease) both; }
::view-transition-new(crew-render) { animation: vt-render-in 0.85s var(--ease-out) both; }
::view-transition-old(crew-text) { animation: vt-text-out 0.35s var(--ease) both; }
::view-transition-new(crew-text) { animation: vt-text-in 0.75s var(--ease-out) 0.1s both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-render-in { from { opacity: 0; transform: scale(1.06); filter: blur(12px); } }
@keyframes vt-text-out { to { opacity: 0; transform: translateY(-14px); filter: blur(6px); } }
@keyframes vt-text-in { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } }
.crewlist__img { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 0.7rem; overflow: hidden; background: var(--bg-2); }
.crewlist__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.crewlist button[aria-current="true"] .crewlist__img { outline: 1.5px solid var(--accent); outline-offset: 2px; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(2.5rem); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.grid .card {
  opacity: 0; transform: translateY(2.25rem) scale(0.97);
  transition: opacity 0.8s var(--ease-out), transform 1.1s var(--spring-soft);
  transition-delay: calc(var(--k, 0) * 70ms);
}
.grid .card.is-in { opacity: 1; transform: none; }
.grid .card.is-in:active { transform: scale(0.985); transition-delay: 0s; transition-duration: 0.15s; }

/* Section titles wipe up into place */
h2[data-reveal], [data-reveal] h2 { clip-path: inset(0 0 100% 0); }
h2[data-reveal] { transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease), clip-path 1.2s var(--ease); }
[data-reveal] h2 { transition: clip-path 1.2s var(--ease) 0.1s; }
h2[data-reveal].in, [data-reveal].in h2 { clip-path: inset(-25% -5% -30% -5%); }

/* Hero: the render drifts and dims, the intro lifts away as you scroll past */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { view-timeline: --hero block; }
    .hero__bg {
      animation: hero-in 2.2s var(--ease-out) forwards, hero-drift linear both;
      animation-timeline: auto, --hero;
      animation-range: normal, exit 0% exit 100%;
    }
    .hero__content { animation: hero-lift linear both; animation-timeline: --hero; animation-range: exit 0% exit 85%; }
  }
}
@keyframes hero-drift { to { scale: 1.14; translate: 0 8%; filter: brightness(0.45); } }
@keyframes hero-lift { to { translate: 0 -16%; opacity: 0; } }
@keyframes card-in { from { opacity: 0; transform: translateY(1.5rem); } }
@keyframes card-pop { from { opacity: 0; transform: translateY(1rem) scale(0.94); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Desktop / tablet breakpoints ---------- */
@media (max-width: 1200px) and (min-width: 901px) {
  .story { grid-template-columns: minmax(15rem, 32vw) minmax(0, 1fr); }
  .story__rail { display: none; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .viewer { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .viewer__info { padding-top: 0; }
  .story { height: auto; display: block; padding: 4.5rem var(--gutter) 3rem; }
  .story__aside { width: min(100%, 24rem); aspect-ratio: 9 / 16; max-height: 62dvh; margin: 0 auto 2rem; }
  .story__col { position: static; }
  .story__scroll { height: auto; overflow: visible; padding: 0; }
  .story__bar { display: none; }
  .story__rail { padding: 2.5rem 0 0; overflow: visible; }
  .crewlist { grid-auto-flow: column; grid-auto-columns: 5.5rem; overflow-x: auto; scrollbar-width: none; gap: 0.5rem; }
  .crewlist button { flex-direction: column; text-align: center; font-size: 0.75rem; gap: 0.4rem; padding: 0.4rem; }
  .crewlist__img { width: 4rem; height: 4rem; }
}

/* ===================== Phone app ===================== */
.app { display: none; }

@media (max-width: 767px) {
  html, body { height: 100%; overflow: hidden; }
  .desk { display: none; }
  .app {
    display: block; position: fixed; inset: 0;
    height: 100dvh; background: var(--bg);
  }
  .app__top {
    position: absolute; z-index: 25; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: calc(env(safe-area-inset-top) + 0.75rem) 1rem 0.75rem;
    background: linear-gradient(to bottom, rgba(8, 8, 8, 0.85), rgba(8, 8, 8, 0)) border-box; /* padding-box origin repeats the dark top into the border as a 1px line */
    border-bottom: 1px solid transparent;
    pointer-events: none;
    transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease);
  }
  .app__top.is-solid {
    background: rgba(12, 12, 12, 0.78); border-bottom-color: var(--hair);
    backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  }
  .app__title {
    position: absolute; left: 50%; top: calc(env(safe-area-inset-top) + 0.75rem); height: 2.4rem;
    display: flex; align-items: center; transform: translateX(-50%);
    font-family: var(--display); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em;
    opacity: 0; pointer-events: none;
  }
  .app__top > * { pointer-events: auto; }
  .app__top .nav__mark { font-size: 1.1rem; line-height: 2.4rem; }

  .pager {
    height: 100%; display: flex; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain;
  }
  .pager::-webkit-scrollbar { display: none; }
  .page {
    flex: none; width: 100vw; height: 100%; overflow-y: auto; overflow-x: hidden;
    scroll-snap-align: start; scroll-snap-stop: always;
    overscroll-behavior-y: none;
    padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 1.5rem);
    transform-origin: center 45%;
  }
  /* Depth while swiping, driven by the pager's own scroll on the compositor so it never lags the finger */
  @supports (animation-timeline: view()) {
    .page { animation: page-depth linear both; animation-timeline: view(inline); }
  }

  .tabbar {
    position: absolute; z-index: 25; left: 0.75rem; right: 0.75rem;
    bottom: calc(env(safe-area-inset-bottom) + 0.75rem);
    height: var(--tabbar);
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    border-radius: 1.5rem; padding: 0.35rem;
    background: rgba(16, 16, 16, 0.72); border: 1px solid var(--hair);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px -10px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  }
  .tabbar__pill {
    position: absolute; top: 0.35rem; bottom: 0.35rem; left: 0.35rem;
    width: calc((100% - 0.7rem) / var(--n, 4)); border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateX(calc(var(--i, 0) * 100%)); pointer-events: none;
  }
  .tabbar button {
    position: relative; z-index: 1;
    display: grid; place-items: center; align-content: center; gap: 0.1rem;
    border-radius: 1.15rem; color: var(--faint); font-size: 0.6rem; font-weight: 500; white-space: nowrap;
    transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
  }
  .tabbar i { font-size: 1.3rem; transition: transform 0.5s var(--spring), color 0.3s var(--ease); }
  .tabbar button.is-active { color: var(--text); }
  .tabbar button.is-active i { color: var(--accent); transform: translateY(-1px) scale(1.12); }
  .tabbar button:active i { transform: scale(0.82); transition-duration: 0.12s; }

  /* Home */
  .page--home { padding-bottom: 0; overflow: hidden; }
  .m-hero { position: relative; height: 100%; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
  .m-hero__bg { background-position: 83% 40%; } /* centres Zoro, who sits ~77% across the wide render */
  .m-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg) 18%, rgba(8, 8, 8, 0.6) 50%, rgba(8, 8, 8, 0.1) 80%); }
  .m-hero__content { width: 100%; padding: 0 1.25rem calc(var(--tabbar) + env(safe-area-inset-bottom) + 2rem); }
  .m-hero__role { font-family: var(--display); font-size: 1.3rem; color: var(--muted); font-weight: 500; animation: fade-up 0.8s var(--ease-out) 0.15s both; }
  .m-hero__line { animation: fade-up 0.9s var(--ease-out) 0.55s both; }
  .m-hero__ctas { animation: fade-up 0.9s var(--ease-out) 0.7s both; }
  .m-hero__name {
    font-family: var(--display); font-weight: 600; text-transform: uppercase;
    font-size: clamp(3.5rem, 21vw, 7rem); line-height: 0.84; letter-spacing: -0.045em;
    display: grid; margin: 0.4rem 0 1.25rem -0.04em;
  }
  .m-hero__line { font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.02em; max-width: 22ch; }
  .m-hero__line .w--accent { color: var(--accent); }
  .m-hero__ctas { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }

  /* Work */
  .m-title {
    font-size: 2.6rem; transform-origin: left bottom;
    opacity: calc(1 - var(--t, 0)); transform: scale(calc(1 - var(--t, 0) * 0.06));
  }
  .m-title sup { font-family: var(--body); font-size: 0.8rem; font-weight: 500; color: var(--faint); margin-left: 0.35rem; vertical-align: super; letter-spacing: 0; }
  .page--cat .m-title { padding: calc(env(safe-area-inset-top) + 4.25rem) 1rem 0.75rem; }
  .m-sticky {
    position: sticky; top: calc(env(safe-area-inset-top) + 3.9rem); z-index: 2;
    padding: 0.5rem 1rem 0.75rem;
    background: var(--bg);
  }
  .m-sticky::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1.25rem; background: linear-gradient(var(--bg), rgba(8, 8, 8, 0)); pointer-events: none; }
  .m-chips { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; margin: 0.75rem -1rem 0; padding: 0 1rem; }
  .m-chips::-webkit-scrollbar { display: none; }
  .m-chips .chip:active::before { background-color: rgba(255, 255, 255, 0.08); }
  .m-chips .chip { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
  .m-grid { --row: 44vw; gap: 1.25rem 0.6rem; padding: 0.25rem 0.75rem 0; }
  .m-grid .card { animation: card-pop 0.75s var(--spring) both; animation-delay: calc(var(--n, 0) * 40ms); transition: transform 0.5s var(--spring); }
  .m-grid .card:active { transform: scale(0.96); transition-duration: 0.15s; }
  .m-grid .card__media { border-radius: 0.85rem; }
  .m-grid .card__cap { padding: 0.55rem 0.1rem 0; display: block; }
  .m-grid .card__title { font-family: var(--body); font-size: 0.82rem; letter-spacing: 0; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-grid .card__tag { font-size: 0.7rem; }
  .m-grid .card__play { width: 1.8rem; height: 1.8rem; right: 0.5rem; top: 0.5rem; font-size: 0.7rem; }

  /* Crew reels */
  .page--crew { padding-bottom: 0; overflow: hidden; }
  .m-reels { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior-y: none; }
  .m-reels::-webkit-scrollbar { display: none; }
  .reel-card { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; display: flex; align-items: flex-end; width: 100%; text-align: left; }
  .reel-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.1); transition: transform 1.6s var(--ease-out); }
  .reel-card.is-active img { transform: scale(1); }
  .reel-card__cap > * { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--spring); }
  .reel-card.is-active .reel-card__cap > * { opacity: 1; transform: none; }
  .reel-card.is-active .reel-card__cap > :nth-child(2) { transition-delay: 0.08s; }
  .reel-card.is-active .reel-card__cap > :nth-child(3) { transition-delay: 0.16s; }
  .reel-card .pill:active { transform: scale(0.96); }
  .reel-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 12%, rgba(8, 8, 8, 0) 55%); }
  .reel-card__cap { position: relative; z-index: 1; padding: 0 1.25rem calc(var(--tabbar) + env(safe-area-inset-bottom) + 1.75rem); width: 100%; }
  .reel-card__kicker { display: block; color: var(--muted); font-size: 0.85rem; }
  .reel-card__name { display: block; font-family: var(--display); font-weight: 600; font-size: 2.6rem; line-height: 0.95; letter-spacing: -0.03em; margin: 0.25rem 0 1rem; }
  .reel-card__hint { position: absolute; z-index: 1; right: 1.25rem; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 2rem); color: var(--muted); font-size: 0.8rem; display: flex; align-items: center; gap: 0.3rem; }
  .reel-card__hint i { animation: nudge-up 1.6s var(--ease) infinite; }
  @keyframes nudge-up { 50% { transform: translateY(-4px); } }

  /* About */
  .m-about { padding: calc(env(safe-area-inset-top) + 4.5rem) 1.25rem 1rem; }
  .m-about h2 { font-size: 2.6rem; }
  .m-about .m-title { padding: 0; }
  .m-mail, .m-socials a { transition: transform 0.45s var(--spring); }
  .m-mail:active, .m-socials a:active { transform: scale(0.97); transition-duration: 0.12s; }
  .m-about__bio { margin-top: 1.25rem; font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; }
  .m-about .about__label { margin-top: 2.5rem; }
  .m-about__contact { margin-top: 3.5rem; font-size: 2.6rem !important; }
  .m-about .contact__sub { margin-top: 0.75rem; font-size: 0.95rem; }
  .m-mail {
    margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1rem 1.1rem; border-radius: 1.1rem; background: var(--accent); color: var(--bg);
    font-weight: 600; font-size: 0.98rem; overflow-wrap: anywhere;
  }
  .m-mail i { font-size: 1.25rem; flex: none; }
  .m-socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.75rem; }
  .m-socials a { display: block; text-align: center; padding: 0.9rem 0.5rem; border-radius: 1rem; border: 1px solid var(--hair-2); font-weight: 500; }
  .m-copy { margin-top: 2rem; color: var(--faint); font-size: 0.8rem; }

  /* Overlay on phones */
  .overlay__close { top: calc(env(safe-area-inset-top) + 0.75rem); right: 0.75rem; width: 2.6rem; height: 2.6rem; }
  .viewer { height: auto; min-height: 100dvh; display: block; padding: 0; }
  .stage__frame { border-radius: 0; background: #000; transition: height 0.5s var(--frame); }
  .stage__arrow, .thumbs { display: none; }
  .stage__count { top: calc(env(safe-area-inset-top) + 0.9rem); }
  .dots { display: flex; justify-content: center; gap: 0.35rem; padding: 0.75rem 0 0; }
  .dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); transition: background-color 0.3s var(--ease), transform 0.3s var(--ease); }
  .dots span.is-active { background: var(--text); transform: scale(1.3); }
  .viewer__info { padding: 1.25rem 1.25rem calc(env(safe-area-inset-bottom) + 2rem); overflow: visible; max-height: none; }
  .viewer__title { font-size: 2.1rem; }
  .story { padding: calc(env(safe-area-inset-top) + 4rem) 1.25rem 3rem; }
  .story__body { font-size: 1rem; --pt-xl: 1.2rem; --pt-2xl: 1.35rem; --pt-3xl: 1.6rem; --pt-4xl: 1.9rem; --pt-5xl: 2.2rem; --pt-6xl: 2.6rem; }
}
@media (min-width: 768px) {
  .dots { display: none; }
  /* Desktop crossfades items in place so the frame can resize to each one */
  .rail { position: relative; display: block; overflow: hidden; }
  .slide { position: absolute; inset: 0; opacity: 0; scale: 1.02; pointer-events: none; transition: opacity 0.55s var(--ease), scale 0.9s var(--frame); }
  .slide.is-active { opacity: 1; scale: 1; pointer-events: auto; }
}

@keyframes page-depth {
  0%, 100% { transform: scale(0.93); opacity: 0.45; border-radius: 2.25rem; }
  50% { transform: none; opacity: 1; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-new(crew-render), ::view-transition-new(crew-text) { animation-name: fade-in; }
  .page { animation: none; }
  .hero__bg, .m-hero__bg { animation: fade-in 0.8s ease both; }
  .word { animation: none; transform: none; }
  [data-reveal] { transform: none; filter: none; }
  .overlay { transform: none !important; }
  .reel-card img, .reel-card__cap > * { transform: none !important; }
  .grid .card { transform: none !important; }
  .m-grid .card { animation-name: fade-in; }
  .card__media img, .slide { scale: 1 !important; }
  .skeleton::after, .reel-card__hint i { animation: none; }
}
