/* Jackson Luria — site styles
   White page, black accents, crimson only for small details.
   Fonts and their tokens live in fonts.css. */

:root {
  --paper: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #5d5b5b;
  --hair: #e7e4e4;
  --crimson: #b3122e;
  --night: #050505;
  --night-2: rgba(255, 255, 255, .62);
  --night-3: rgba(255, 255, 255, .38);
  --gutter: clamp(16px, 4vw, 48px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }

/* Crimson brush underline: one clean tapered stroke (a filled shape, so it stays crisp at any width),
   swept in from the left. Wrap a word in .scribble and put the svg inside it. */
.scribble { position: relative; white-space: nowrap; }
.scribble svg {
  position: absolute; left: -1%; bottom: -.02em; width: 102%; height: .3em; overflow: visible;
  clip-path: inset(-200% 100% -200% -10%); /* negative insets leave room for the glow */
  animation: draw .9s cubic-bezier(.65, 0, .35, 1) 1.25s forwards;
}
.scribble path { fill: var(--crimson); }
@keyframes draw { to { clip-path: inset(-200% -10% -200% -10%); } }

/* Entrance: text rises into place. Pure CSS, so it still shows if scripts fail. */
.reveal { animation: rise 1s var(--ease-out) var(--d, 0s) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ═════════ HERO ═════════ */
/* The hero scrolls away normally; as it leaves, its contents drift and fade (see --out in hero-reel.js). */
.hero {
  position: relative;
  height: 116svh;   /* a little taller than the screen so the whole reel fits before the white section */
  min-height: 700px;
  max-height: 1240px;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-inline: var(--gutter);
  padding-block: calc(max(20px, env(safe-area-inset-top)) + 64px) max(22px, env(safe-area-inset-bottom));
}
@media (max-width: 640px) { .hero { height: 100svh; min-height: 640px; } }   /* phones: the reel is a wide band, so one screen is enough */

.hero-glow, .hero-glow-boost {
  position: absolute;
  left: 50%; top: 62%;
  width: min(120vw, 1500px);
  aspect-ratio: 1.7;
  translate: -50% -50%;
  z-index: -1;
  pointer-events: none;
  will-change: transform, opacity;
}
/* Radial gradients are already soft, so no CSS blur filter (that was costly to repaint on phones). */
.hero-glow {
  background:
    radial-gradient(closest-side, rgba(255, 236, 228, .1), transparent 45%),
    radial-gradient(closest-side, rgba(179, 18, 46, .34), rgba(179, 18, 46, .1) 55%, rgba(179, 18, 46, .03) 80%, transparent);
  animation: breathe 9s ease-in-out infinite alternate, glow-in 2.2s var(--ease-out) both;
}
/* Brighter layer faded in by hero-reel.js when the reel spins or a frame is hovered. */
.hero-glow-boost {
  background:
    radial-gradient(closest-side, rgba(255, 236, 228, .08), transparent 45%),
    radial-gradient(closest-side, rgba(179, 18, 46, .26), rgba(179, 18, 46, .06) 60%, transparent);
  opacity: 0;
  scale: 1.04;
}
@keyframes breathe { to { transform: translate(2%, -3%) scale(1.06); } }
@keyframes glow-in { from { opacity: 0; } }

/* Scroll-out transition: the reel sinks a little slower than the page and the copy lifts away. */
.hero-reel { transform: translate3d(0, calc(var(--out, 0) * 90px), 0); opacity: calc(1 - var(--out, 0) * .85); }
.hero-copy { transform: translate3d(0, calc(var(--out, 0) * -50px), 0); opacity: calc(1 - var(--out, 0) * 1.4); filter: blur(calc(var(--out, 0) * 6px)); }
.hero-foot { opacity: calc(1 - var(--out, 0) * 2); }
.hero-glow { opacity: calc(1 - var(--out, 0) * .7); }

.hero-reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: pan-y;
  outline: none;
}
.hero-reel:focus-visible { box-shadow: inset 0 0 0 2px var(--crimson); }

.hero-copy, .hero-foot { position: relative; z-index: 1; pointer-events: none; }
.hero-foot a { pointer-events: auto; }

/* Fixed nav: white over dark sections, black over white ones (nav.js toggles .on-light). */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  color: #fff;
  transition: color .45s, background-color .45s, backdrop-filter .45s, box-shadow .45s;
}
.site-nav.solid-dark {
  background-color: rgba(5, 5, 5, .62);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.site-nav.on-light {
  color: var(--ink);
  background-color: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--hair);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: var(--f-script);
  font-size: clamp(30px, 2.8vw, 36px);
  line-height: 1;
  text-decoration: none;
  padding: 4px 8px 0;
  border-radius: 8px;
}
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: inherit;
  opacity: .82;
  transition: opacity .3s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: background-color .45s, color .45s;
}
.site-nav.on-light .nav-cta { background: var(--ink); color: #fff; }
.nav-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); }
@media (max-width: 640px) { .nav-links { display: none; } }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-menu { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: none; color: inherit; padding: 0; cursor: pointer; position: relative; }
.nav-menu span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
.nav-menu span:first-child { top: 18px; } .nav-menu span:last-child { top: 24px; }
.menu-open .nav-menu span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .nav-menu span:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (max-width: 640px) {
  .nav-menu { display: block; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
}
/* Full-screen phone menu */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--night); color: #fff; display: grid; align-content: end; padding: 110px var(--gutter) max(28px, env(safe-area-inset-bottom)); }
.menu[hidden] { display: none; }
.menu-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-links a { display: flex; align-items: baseline; gap: 14px; text-decoration: none; font-family: var(--f-wide); font-weight: 800; font-size: clamp(40px, 13vw, 64px); letter-spacing: -.05em; line-height: 1.05; text-transform: uppercase; }
.menu-links small { font-family: var(--f-body); font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--night-3); }
.menu-links li { animation: rise .7s var(--ease-out) both; }
.menu-links li:nth-child(2) { animation-delay: .05s; } .menu-links li:nth-child(3) { animation-delay: .1s; } .menu-links li:nth-child(4) { animation-delay: .15s; }
.menu-foot { margin: 34px 0 0; color: var(--night-2); font-size: 14px; }
.menu-foot a { text-decoration: none; }
.menu-open .site-nav { color: #fff; background-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .site-nav .nav-cta { background: #fff; color: var(--ink); }

.hero-copy { text-align: center; padding-top: clamp(20px, 4vh, 48px); }
.hero-eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--night-2);
}
.hero-title {
  margin: 0 auto;
  max-width: 18ch;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-title .script {
  font-family: var(--f-script);
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.12em;
  line-height: .8;
}

.hero-foot {
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 16px;
  font-size: 13px;
}
.hero-foot p { margin: 0; }
.hero-hint { font-family: var(--f-serif); font-style: italic; font-size: 16px; color: var(--night-2); }
.hero-services { justify-self: end; color: var(--night-3); letter-spacing: -.01em; }
.now-showing { display: grid; justify-items: center; gap: 2px; text-align: center; }
.ns-count { font-size: 11px; letter-spacing: .2em; color: var(--night-3); font-variant-numeric: tabular-nums; }
.ns-title {
  font-family: var(--f-wide);
  font-weight: 800;
  font-size: clamp(16px, 1.7vw, 22px);
  letter-spacing: -.03em;
  text-transform: uppercase;
  line-height: 1.1;
}
.ns-kind { font-family: var(--f-serif); font-style: italic; font-size: 16px; color: var(--night-2); }
.now-showing.swap .ns-title, .now-showing.swap .ns-kind { animation: swap .6s var(--ease-out); }
/* On wider screens the glass capsule shows the counter and the front project's title; the kind stays hidden to keep it compact. */
@media (min-width: 761px) {
  .now-showing .ns-kind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@keyframes swap { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
@media (max-width: 760px) {
  .hero-foot { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-services { display: none; }
  .hero-hint { order: 2; font-size: 14px; }
}

/* "spin me" — positioned by hero-reel.js at the centre of the ring */
.spin-hint { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; will-change: transform; opacity: calc(1 - var(--out, 0) * 2.5); }
.sh-inner {
  translate: -50% -50%;
  display: grid; justify-items: center; gap: 0;
  opacity: 0;
  transform: translateY(46px) scale(.55);
  filter: blur(8px);
}
.spin-hint.show .sh-inner { animation: hint-pop .9s cubic-bezier(.34, 1.56, .64, 1) forwards, hint-bob 3.2s ease-in-out .9s infinite; }
.spin-hint.hide .sh-inner { opacity: 1; filter: none; transform: none; animation: hint-sink .55s var(--ease-out) forwards; }
/* Between appearances it just melts away; comebacks are fainter so it never nags */
.spin-hint.rest .sh-inner { opacity: 1; filter: none; transform: none; animation: hint-melt .9s var(--ease-out) forwards; }
@keyframes hint-melt { to { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
.spin-hint.again { opacity: calc(.68 - var(--out, 0) * 2.5); }
@keyframes hint-pop { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes hint-bob { 0%, 100% { opacity: 1; transform: translateY(0); filter: blur(0); } 50% { opacity: 1; transform: translateY(-6px); filter: blur(0); } }
@keyframes hint-sink { to { opacity: 0; transform: translateY(40px) scale(.6); filter: blur(8px); } }
.sh-text {
  font-family: var(--f-script);
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 28px rgba(179, 18, 46, .85), 0 0 60px rgba(179, 18, 46, .5);
  white-space: nowrap;
}
.sh-arrow { width: clamp(110px, 11vw, 150px); height: auto; margin-top: -2px; overflow: visible; }
.sh-arrow path { stroke: var(--crimson); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(179, 18, 46, .6)); }
.sh-arc { stroke-dasharray: 170; stroke-dashoffset: 170; }
.sh-head { stroke-dasharray: 40; stroke-dashoffset: 40; }
.spin-hint.show .sh-arc { animation: draw .8s var(--ease-out) .45s forwards; }
.spin-hint.show .sh-head { animation: draw .35s var(--ease-out) 1.1s forwards; }

/* Visible only when WebGL is unavailable; otherwise kept for screen readers. */
.reel-fallback {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  list-style: none; margin: 0; padding: 0;
}
.no-webgl .reel-fallback {
  position: relative; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
  grid-row: 2; align-self: center; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.reel-fallback button {
  width: 100%; text-align: left; padding: 14px; border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px; background: rgba(255, 255, 255, .04); cursor: pointer; display: grid; gap: 2px;
}
.reel-fallback b { font-weight: 600; letter-spacing: -.02em; }
.reel-fallback i { font-family: var(--f-serif); color: var(--night-2); }

/* ═════════ Shared bits ═════════ */
.eyebrow { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--hair);
  text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: -.01em;
}

/* Scroll reveals: only hidden when JS is running, so the page is never blank without it. */
.js .rv { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease-out) var(--rd, 0s), transform .9s var(--ease-out) var(--rd, 0s), filter .9s var(--ease-out) var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; filter: none; }
.scribble.rv svg, .rv .scribble svg { animation-play-state: paused; }
.rv.in .scribble svg { animation-play-state: running; animation-delay: .5s; }

/* ═════════ The white sheet that slides over the hero ═════════ */
.sheet { position: relative; background: var(--paper); }

/* ═════════ SELECTED WORK ═════════ */
.work {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(80px, 13vh, 160px) var(--gutter) clamp(80px, 12vh, 140px);
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}
.work-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.work-heading { display: grid; gap: 14px; }
.work-title {
  margin: 0;
  font-family: var(--f-wide);
  font-weight: 800;
  font-size: clamp(44px, 8.4vw, 124px);
  letter-spacing: -.05em;
  line-height: .86;
  text-transform: uppercase;
}
.work-title em { font-family: var(--f-serif); font-weight: 400; font-style: italic; text-transform: none; letter-spacing: -.03em; }
.work-title sup {
  font-family: var(--f-body); font-weight: 500; font-size: .18em; letter-spacing: 0;
  vertical-align: top; position: relative; top: .5em; margin-left: .3em; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.work-title sup::before { content: "("; } .work-title sup::after { content: ")"; }
.work-intro { margin: 0; max-width: 36ch; justify-self: end; color: var(--ink-2); font-weight: 300; font-size: 16px; }
@media (max-width: 760px) { .work-head { grid-template-columns: minmax(0, 1fr); } .work-intro { justify-self: start; } }

.work-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.work-filters[hidden] { display: none; }
@media (max-width: 760px) {
  /* one swipeable row on phones, bleeding to the screen edges */
  .work-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .work-filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
}
.chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 9px 16px 10px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--paper);
  font-size: 14px; font-weight: 500; letter-spacing: -.01em; cursor: pointer;
  transition: background .35s, color .35s, border-color .35s;
}
.chip sup { font-size: 10px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: color .35s; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] sup { color: rgba(255, 255, 255, .6); }

.work-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 56px);
  align-items: start;
}
/* All work: an even three-up grid (two on tablets, one on phones) */
.work-grid-all { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(20px, 2.6vw, 36px); }
@media (max-width: 1000px) { .work-grid-all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work-grid-all .card-title { font-size: clamp(17px, 1.4vw, 20px); }
.work-all-toggle { display: flex; justify-content: center; }
.work-all-toggle[hidden] { display: none; }
.wa-btn { gap: 10px; padding: 14px 24px; font-size: 15px; cursor: pointer; }
.wa-btn sup { font-size: 10px; opacity: .6; margin-left: -4px; }
.wa-arrow { display: inline-block; transition: transform .5s var(--ease-out); }
.wa-btn:hover .wa-arrow { transform: translateX(4px); }

/* All work page (work.html) */
.work-page { padding-top: clamp(116px, 17vh, 190px); }
.work-page .work-filters { min-width: 0; }
.back-link {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: -12px;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color .3s;
}
.back-link:hover { color: var(--ink); }
.back-link span { transition: transform .4s var(--ease-out); }
.back-link:hover span { transform: translateX(-4px); }
.nav-links a[aria-current="page"] { opacity: 1; }
.contact-cta .contact-inner { gap: clamp(28px, 4vw, 44px); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-row .send { margin-left: 0; text-decoration: none; }
/* Featured piece: full width at the top of the grid, with its proof point on a glass badge */
.card.featured { grid-column: 1 / -1; }
.card.featured .card-media { aspect-ratio: 21 / 9; }
.card.featured .card-title { font-size: clamp(24px, 2.4vw, 34px); }
@media (max-width: 760px) { .card.featured .card-media { aspect-ratio: 16 / 10; } }
.card-badge {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05) 48%, rgba(255, 255, 255, .1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 30px -14px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
}
.card-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 10px var(--crimson); }
@media (max-width: 760px) {
  .work-grid, .work-grid-all { grid-template-columns: minmax(0, 1fr); gap: 52px; }
}

.card-link {
  display: grid; gap: 16px; width: 100%;
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--a), var(--b));
  isolation: isolate;
  color: #fff;
}
.card-media > img, .card-media > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out), opacity .5s;
}
.card-media > video { opacity: 0; }
/* Shorts: blurred backdrop + a 9:16 "phone" frame in the middle (object-fit crops the thumbnail's side bars) */
.card-media.vertical > .card-bg { filter: blur(22px) brightness(.55); transform: scale(1.25); }
.card-phone {
  position: absolute; left: 50%; top: 50%; height: 86%; aspect-ratio: 9 / 16; translate: -50% -50%;
  border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform 1.2s var(--ease-out);
}
.card-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.playing .card-phone { transform: scale(1.04); }
.card-media.vertical .card-zoom { display: none; }
.card.playing .card-media > video.ready { opacity: 1; }
.card-zoom { position: absolute; inset: 0; transition: transform 1.4s var(--ease-out); z-index: -1; background: inherit; }
.card.playing .card-zoom, .card.playing .card-media > img, .card.playing .card-media > video { transform: scale(1.045); }
.card-leak {
  position: absolute; inset: -20%;
  background: radial-gradient(40% 50% at 30% 60%, rgba(255, 205, 185, .22), transparent 70%);
  opacity: .35; transition: opacity .6s;
}
.card.playing .card-leak { opacity: 1; animation: leak 5s ease-in-out infinite alternate; }
@keyframes leak { 0% { transform: translate(-6%, 4%); } 100% { transform: translate(24%, -8%); } }
.card-grain {
  position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.card-num {
  position: absolute; left: 18px; bottom: 6px;
  font-family: var(--f-tall); font-size: clamp(72px, 10vw, 140px); line-height: .8;
  color: rgba(255, 255, 255, .14); letter-spacing: -.02em;
  transition: color .6s, transform 1.2s var(--ease-out);
}
.card.playing .card-num { color: rgba(255, 255, 255, .28); transform: translateY(-6px); }
.card-len, .card-tag {
  position: absolute; top: 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .02em; color: rgba(255, 255, 255, .8);
  font-variant-numeric: tabular-nums;
}
.card-len { right: 16px; }
.card-tag { left: 16px; display: inline-flex; align-items: center; gap: 7px; opacity: 0; transform: translateY(-4px); transition: opacity .4s, transform .4s var(--ease-out); }
.card-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 10px var(--crimson); }
.card.playing .card-tag { opacity: 1; transform: none; }
.card-progress { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 2px; background: rgba(255, 255, 255, .18); opacity: 0; transition: opacity .4s; }
.card-progress i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--crimson); }
.card.playing .card-progress { opacity: 1; }
.card.playing .card-progress i { animation: progress 9s linear infinite; }
@keyframes progress { to { transform: scaleX(1); } }

.card-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; }
.card-title { margin: 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; }
.card-year { margin: 0; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-kind { margin: 0; grid-column: 1 / -1; font-family: var(--f-serif); font-style: italic; font-size: 17px; color: var(--ink-2); }

.work-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--hair); }
.work-more p { margin: 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.035em; }

/* ═════════ ABOUT (scrapbook) ═════════ */
.about {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(90px, 14vh, 160px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(64px, 9vw, 120px);
}

/* Polaroid fan: the prints overlap in a gentle arc and spread apart when you hover the stack.
   --k is each print's place from the centre (-2…2) and --k2 its square, for the arc's dip. */
.about-fan {
  --w: clamp(150px, 18vw, 240px); --gap: calc(var(--w) * .6); --rot: 6.5deg; --drop: 12px;
  position: relative; justify-self: center; width: 100%; max-width: 1180px;
  height: calc(var(--w) * 1.5 + 56px);
}
.about-fan:hover, .about-fan:focus-within { --gap: calc(var(--w) * .88); --rot: 2.5deg; --drop: 4px; }
.about-fan .polaroid {
  position: absolute; left: 50%; top: 20px; width: var(--w); margin: 0; container-type: inline-size;
  translate: calc(-50% + var(--k) * var(--gap)) calc(var(--k2) * var(--drop));
  rotate: calc(var(--k) * var(--rot));
  z-index: calc(10 - var(--k2));
  transition: translate .8s cubic-bezier(.2, .8, .2, 1), rotate .8s cubic-bezier(.2, .8, .2, 1), scale .45s var(--ease-out), box-shadow .45s;
}
.about-fan .polaroid:hover {
  z-index: 20; scale: 1.07; rotate: 0deg;
  translate: calc(-50% + var(--k) * var(--gap)) -16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 34px 60px -22px rgba(0, 0, 0, .5);
}
.about-fan .polaroid figcaption { font-size: clamp(13px, 7.4cqi, 19px); }
.about-fan .stamp { position: absolute; z-index: 30; left: calc(50% + var(--w) * .26); top: 0; width: clamp(64px, 7vw, 92px); rotate: -12deg; pointer-events: none; transition: translate .8s cubic-bezier(.2, .8, .2, 1); }
/* Phones: a swipeable row instead of a fan */
@media (max-width: 640px) {
  .about-fan {
    --w: 64vw; width: auto; max-width: none; justify-self: stretch; height: auto; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; box-sizing: border-box;
    margin-inline: calc(var(--gutter) * -1); padding: 26px calc(50vw - var(--w) / 2) 30px; scrollbar-width: none;
  }
  .about-fan::-webkit-scrollbar { display: none; }
  .about-fan .polaroid, .about-fan .polaroid:hover { position: relative; left: auto; top: auto; flex: 0 0 var(--w); translate: none; rotate: calc(var(--k) * 1.5deg); scale: none; scroll-snap-align: center; z-index: auto; }
  .about-fan .stamp { left: auto; right: 10%; top: 6px; width: 64px; }
}

.polaroid {
  background: var(--paper);
  padding: 3% 3% 0; /* thin border so the photo does the talking */
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 14px 30px -14px rgba(0, 0, 0, .35);
}
.snap-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(150deg, var(--a), var(--b));
}
.snap-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.snap-photo::after {
  content: ""; position: absolute; inset: 0; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Black-and-white film print: grey tones, a little extra contrast and heavier grain */
.bw .snap-photo img { filter: grayscale(1) contrast(1.15) brightness(.96); }
.bw .snap-photo::after { opacity: .38; }
.ph-label { position: absolute; left: 8%; top: 7%; font-size: 9px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.polaroid figcaption {
  font-family: var(--f-script); font-size: clamp(12px, 2.7cqi, 18px); line-height: 1.1;
  text-align: center; padding: 5% 4% 6%; color: var(--ink);
}
/* Place name under a script caption: small spaced capitals, like a film-lab stamp (keeps Aston's swash capitals out) */
.polaroid figcaption .loc {
  display: block; margin-top: .45em;
  font-family: var(--f-body); font-weight: 500; font-size: max(7px, .48em); line-height: 1;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2);
}
.tape {
  position: absolute; z-index: 1; top: -3.5%; left: 50%; width: 42%; height: 9%;
  translate: -50% 0; rotate: var(--tr, 0deg);
  background: rgba(232, 224, 208, .78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  clip-path: polygon(2% 0, 98% 4%, 100% 50%, 97% 100%, 3% 96%, 0 50%);
}

.stamp svg { display: block; width: 100%; height: auto; }
.stamp { opacity: .9; }
.st-ring { fill: none; stroke: var(--crimson); stroke-width: 2.4; }
.st-text { font-family: var(--f-body); font-weight: 600; font-size: 9.5px; letter-spacing: 1.6px; fill: var(--crimson); }
.st-mid { font-family: var(--f-tall); font-size: 30px; fill: var(--crimson); }

.about-copy {
  display: grid; gap: 18px; align-content: start; justify-items: start;
  grid-template-columns: minmax(0, 1fr) min(36%, 400px); column-gap: clamp(32px, 5vw, 80px);
}
/* Portrait: a taped print standing next to the intro (under the title on phones) */
.about-portrait {
  grid-column: 2; grid-row: 1 / span 6; align-self: center; justify-self: stretch;
  position: relative; margin: 0; padding: 3.5%; background: var(--paper); rotate: 2deg;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 30px 60px -28px rgba(0, 0, 0, .45);
}
.about-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-portrait .tape { left: 50%; top: -14px; translate: -50% 0; }
@media (max-width: 640px) {
  .about-copy { grid-template-columns: minmax(0, 1fr); }
  .about-portrait { grid-column: 1; grid-row: 3; width: min(78%, 320px); justify-self: center; margin-block: 8px 18px; }
}
.about-title { margin: 0; padding-bottom: .3em; font-weight: 500; font-size: clamp(40px, 5.4vw, 78px); line-height: 1; letter-spacing: -.05em; }
.about-title .script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; font-size: 1.15em; }
.about-lede { margin: 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.4; letter-spacing: -.02em; max-width: 34ch; }
.about-body { margin: 0; color: var(--ink-2); font-weight: 300; max-width: 46ch; }
.about-facts { margin: 6px 0 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 460px; }
.about-facts div { padding-block: 12px; border-top: 1px solid var(--hair); display: grid; gap: 2px; }
.about-facts dt { font-size: 12px; color: var(--ink-2); }
.about-facts dd { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 19px; }
.about-facts .fact-wide { grid-column: 1 / -1; }
.pill.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ═════════ CONTACT + FOOTER (dark, mirrors the hero) ═════════ */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: #fff;
  border-radius: 28px 28px 0 0;
  padding: clamp(80px, 13vh, 150px) var(--gutter) max(24px, env(safe-area-inset-bottom));
}
.contact .eyebrow { color: var(--night-2); }
.contact-glow {
  position: absolute; left: 70%; top: 30%; z-index: -1; pointer-events: none;
  width: min(110vw, 1300px); aspect-ratio: 1.6; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(179, 18, 46, .28), rgba(179, 18, 46, .07) 60%, transparent);
}
.contact-inner { max-width: 1240px; margin: 0 auto; display: grid; gap: clamp(40px, 6vw, 72px); }
.contact-head { display: grid; gap: 14px; }
.contact-title {
  margin: 0;
  font-family: var(--f-wide); font-weight: 800;
  font-size: clamp(42px, 8vw, 118px); line-height: .9; letter-spacing: -.05em; text-transform: uppercase;
  padding-bottom: .12em;
}
.contact-title .script { font-family: var(--f-script); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1.05em; color: #fff; }

.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-side { display: grid; gap: 34px; }
.contact-lede { margin: 0; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.02em; line-height: 1.4; max-width: 30ch; color: rgba(255, 255, 255, .86); }
.socials-label { margin: 0 0 -18px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--night-3); }
.socials { list-style: none; margin: 0; padding: 0; display: grid; }
.socials a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 14px;
  padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, .14); text-decoration: none;
}
.socials li:last-child a { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.socials span { font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.04em; transition: transform .5s var(--ease-out); }
.socials i { font-family: var(--f-serif); font-size: 17px; color: var(--night-2); }
.socials b { font-weight: 400; font-size: 18px; transition: transform .5s var(--ease-out), color .3s; }
.socials a:hover span { transform: translateX(10px); }
.socials a:hover b { transform: translate(3px, -3px); color: var(--crimson); }

/* Form */
.contact-form { display: grid; gap: 30px; }
.contact-form[hidden], .cf-done[hidden] { display: none; }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .78); letter-spacing: -.01em; }
.field em, .field-chips legend em, .cf-more summary em { font-style: normal; font-weight: 400; color: var(--night-3); margin-left: 6px; }
/* step numbers: small glass coins */
.field > span b, .field-chips legend b {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%;
  font-size: 11px; font-weight: 600; color: #fff; vertical-align: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.field-err { min-height: 0; font-size: 13px; color: #ff6b81; }
.field-err:empty { display: none; }
.field input, .field textarea {
  width: 100%; min-width: 0;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .25); border-radius: 0;
  background: transparent; color: #fff;
  font: 400 18px/1.4 var(--f-body); letter-spacing: -.02em;
  padding: 8px 0 10px; outline: none; resize: vertical;
  transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .28); }
.field input:focus, .field textarea:focus { border-bottom-color: #fff; }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--crimson); }
.field-chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.field-chips legend { padding: 0; margin-bottom: 14px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .78); letter-spacing: -.01em; }
.field-chips label { position: relative; }
.field-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.field-chips span {
  display: inline-block; padding: 11px 18px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  transition: background .3s, color .3s, border-color .3s; cursor: pointer;
}
.field-chips input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.field-chips input:focus-visible + span { outline: 2px solid var(--crimson); outline-offset: 3px; }
.form-foot { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
@media (max-width: 560px) { .form-foot .send { width: 100%; justify-content: center; } }
/* optional details, folded away */
.cf-more { border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.cf-more summary {
  list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 0; cursor: pointer;
  font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .85);
}
.cf-more summary::-webkit-details-marker { display: none; }
.cf-more .plus { position: relative; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); flex: none; }
.cf-more .plus::before, .cf-more .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: #fff; translate: -50% -50%; transition: rotate .35s var(--ease-out); }
.cf-more .plus::after { rotate: 90deg; }
.cf-more[open] .plus::after { rotate: 0deg; }
.cf-more-body { display: grid; gap: 26px; padding: 6px 0 24px; }
/* thank-you panel after sending */
.cf-done { display: grid; gap: 14px; justify-items: start; padding: 8px 0; outline: none; }
.cf-done-title { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.cf-done-body { margin: 0; max-width: 40ch; color: rgba(255, 255, 255, .78); }
.cf-done-body a { color: #fff; }
.form-status { margin: 0; font-size: 14px; color: var(--night-2); max-width: 40ch; }
.form-status.error { color: #ff6b81; }
.send {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border: 0; border-radius: 999px; background: #fff; color: var(--ink);
  font-size: 16px; font-weight: 600; letter-spacing: -.02em; cursor: pointer;
}
.send .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--crimson); }
.send[disabled] { opacity: .6; cursor: progress; }
.send.sent { background: var(--crimson); color: #fff; }
.send.sent .dot { background: #fff; }

/* Footer */
.footer { max-width: 1240px; margin: clamp(80px, 12vh, 140px) auto 0; display: grid; gap: 18px; }
.footer-sign {
  margin: 0; padding-bottom: .32em; /* room for the J's loop */ text-align: center; line-height: 1.1;
  font-family: var(--f-script); color: #fff; opacity: .92; white-space: nowrap;
  /* the script is about 8.6em wide, so size it to fit the row on one line */
  font-size: min(150px, calc((100vw - 2 * var(--gutter)) / 8.8));
}
.footer-row {
  display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px; color: var(--night-2);
}
.footer-row a { text-decoration: none; }
@media (max-width: 640px) { .footer-mid { display: none; } }

/* ═════════ Lightbox ═════════ */
/* The player always fits the screen: the video shrinks to leave room for the title, blurb and Close (--lb-meta). */
.lightbox { --lb-meta: 310px; position: fixed; inset: 0; z-index: 100; display: grid; place-items: safe center; padding: var(--gutter); overflow-y: auto; overscroll-behavior: contain; color: #fff; }
@media (max-width: 640px) { .lightbox { --lb-meta: 320px; } }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 5, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: fade .4s ease both; }
.lb-panel { position: relative; width: min(1100px, 100%); display: grid; gap: 18px; animation: pop .6s var(--ease-out) both; }
.lb-video { position: relative; aspect-ratio: 16 / 9; width: min(100%, calc((100svh - var(--lb-meta)) * 16 / 9)); margin-inline: auto; border-radius: 14px; overflow: hidden; background: #111; }
.lb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-video.vertical { aspect-ratio: 9 / 16; width: min(100%, calc((100svh - var(--lb-meta)) * 9 / 16)); }
.lb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }
.lb-placeholder span { font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: var(--night-2); }
.lb-meta { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.lb-kind { margin: 0 0 4px; font-family: var(--f-serif); font-style: italic; font-size: 17px; color: var(--night-2); }
.lb-blurb { margin: 10px 0 0; max-width: 52ch; font-size: 15px; line-height: 1.5; letter-spacing: -.01em; color: rgba(255, 255, 255, .72); }
.lb-title { margin: 0; font-family: var(--f-wide); font-weight: 800; font-size: clamp(24px, 4vw, 52px); letter-spacing: -.045em; line-height: .95; text-transform: uppercase; }
.lb-close { border: 1px solid rgba(255, 255, 255, .25); background: none; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 500; cursor: pointer; }
.lb-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.lb-cta { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 999px; padding: 11px 18px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lb-cta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--crimson); }
@media (max-width: 640px) { .lb-meta { flex-wrap: wrap; } .lb-actions { width: 100%; justify-content: flex-start; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* ═════════ Ethereal layer: soft glows, bevelled titles, light leaks, grain ═════════
   Kept deliberately faint. Glows are layered text-shadows (no blur filters to repaint),
   bevels are gradients clipped to the letters. */

/* Glowing words on black: a white bloom with a crimson haze (static: animated shadows were costly) */
.hero-title .script,
.contact-title .script {
  text-shadow: 0 0 .16em rgba(255, 255, 255, .6), 0 0 .9em rgba(179, 18, 46, .55);
}
.hero .scribble svg { filter: drop-shadow(0 0 3px rgba(179, 18, 46, .7)) drop-shadow(0 0 12px rgba(179, 18, 46, .4)); }

/* Anamorphic flare: a thin horizontal streak of light behind the hero headline */
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 58%; width: min(120vw, 1500px); height: 140px; translate: -50% -50%;
  background:
    radial-gradient(50% 3% at 50% 50%, rgba(255, 255, 255, .22), transparent),
    radial-gradient(42% 22% at 50% 50%, rgba(179, 18, 46, .16), transparent),
    radial-gradient(18% 40% at 50% 50%, rgba(255, 255, 255, .05), transparent);
}

/* Bevelled title on white: satin black lit from above, resting on a soft shadow */
.work-title {
  background: linear-gradient(180deg, #555 0%, #1a1a1a 32%, #000 62%, #262626 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .9)) drop-shadow(0 18px 24px rgba(0, 0, 0, .12));
}
.work-title em, .work-title sup { -webkit-text-fill-color: currentColor; }
/* Emphasised words on white: a faint crimson light bleeding through from behind */
.work-title em,
.about-title .script { text-shadow: 0 0 .35em rgba(179, 18, 46, .22), 0 0 1em rgba(179, 18, 46, .12); }

/* Bevelled title on black: bright white catching the light, falling to silver */
.contact-title {
  background: linear-gradient(180deg, #fff 0%, #fff 38%, #c9c9c9 72%, #8d8d8d 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-title .script { -webkit-text-fill-color: #fff; }

/* Signature: a soft halo, like light behind a title card */
.footer-sign { text-shadow: 0 0 .1em rgba(255, 255, 255, .35), 0 0 .3em rgba(179, 18, 46, .35); }

/* Light leaks drifting across the white sections, barely there */
.sheet { isolation: isolate; }
.sheet::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 30vw at 92% 4%, rgba(255, 196, 150, .14), transparent 70%),
    radial-gradient(34vw 26vw at 4% 30%, rgba(179, 18, 46, .05), transparent 70%),
    radial-gradient(38vw 30vw at 96% 62%, rgba(150, 175, 255, .07), transparent 70%),
    radial-gradient(36vw 28vw at 8% 88%, rgba(255, 196, 150, .1), transparent 70%);
}

/* Video glows: playing cards bloom, the player floats on light */
.card-media { transition: box-shadow .6s var(--ease-out); }
.card.playing .card-media { box-shadow: 0 30px 70px -28px rgba(179, 18, 46, .4), 0 0 0 1px rgba(255, 255, 255, .04); }
.lb-video { box-shadow: 0 0 90px rgba(255, 255, 255, .06), 0 30px 120px -20px rgba(179, 18, 46, .3); }

/* Film grain over everything, very faint */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: .045;
  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");
}

/* ═════════ Liquid Glass ═════════
   Two tints: clear glass over dark/video, frosted glass over white. Each piece gets bright rims,
   a soft inner glow and a specular sheen that follows the pointer (glass.js sets --gx/--gy).
   Backdrop blur is only used where there's imagery behind (nav capsule, reel counter, card tags);
   elsewhere the layered highlights carry the look without the repaint cost. */
.nav-cta, .nav-menu, .now-showing, .card-tag, .card-len, .lb-close, .field-chips span,
.chip, .board-btn, .pill:not(.dark) {
  position: relative; isolation: isolate;
}
.nav-cta::after, .nav-menu::after, .now-showing::after, .card-tag::after, .card-len::after, .lb-close::after,
.field-chips span::after, .chip::after, .board-btn::after, .pill:not(.dark)::after,
.site-nav.solid-dark .nav::after, .site-nav.on-light .nav::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(140px circle at var(--gx, 28%) var(--gy, -10%), rgba(255, 255, 255, .42), transparent 62%);
  opacity: .75; transition: opacity .4s;
}
:is(.nav-cta, .nav-menu, .lb-close, .field-chips span, .chip, .board-btn, .pill):hover::after { opacity: 1; }

/* Clear glass (on dark) */
.nav-menu, .now-showing, .card-tag, .card-len, .lb-close, .field-chips span,
.site-nav.solid-dark .nav, .site-nav:not(.on-light) .nav-cta {
  border: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .04) 48%, rgba(255, 255, 255, .09));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),        /* top rim catching the light */
    inset 0 -1px 0 rgba(255, 255, 255, .14),      /* soft lower rim */
    inset 0 0 0 1px rgba(255, 255, 255, .12),     /* the glass edge */
    inset 0 -10px 18px -12px rgba(255, 255, 255, .18),
    0 10px 30px -14px rgba(0, 0, 0, .7);
  color: #fff;
}
.site-nav:not(.on-light) .nav-cta { color: #fff; }

/* Frosted glass (on white) */
.chip, .board-btn, .pill:not(.dark), .site-nav.on-light .nav, .site-nav.on-light .nav-cta, .site-nav.on-light .nav-menu {
  border: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, .92), rgba(246, 245, 245, .66) 55%, rgba(255, 255, 255, .85));
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(0, 0, 0, .06),
    inset 0 0 0 1px rgba(0, 0, 0, .065),
    inset 0 -8px 14px -10px rgba(0, 0, 0, .1),
    0 8px 22px -12px rgba(0, 0, 0, .28);
}
.site-nav.on-light .nav-cta, .site-nav.on-light .nav-menu { color: var(--ink); }
.chip::after, .board-btn::after, .pill:not(.dark)::after, .site-nav.on-light .nav::after, .site-nav.on-light .nav-cta::after, .site-nav.on-light .nav-menu::after {
  background: radial-gradient(140px circle at var(--gx, 28%) var(--gy, -10%), rgba(255, 255, 255, 1), transparent 62%);
}
/* Selected states stay solid so the choice reads instantly */
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 22px -12px rgba(0, 0, 0, .5); }
.chip[aria-pressed="true"]::after { opacity: .25; }
.field-chips input:checked + span { background: #fff; color: var(--ink); box-shadow: inset 0 -6px 12px -8px rgba(0, 0, 0, .25), 0 8px 24px -12px rgba(255, 255, 255, .35); }

/* Real blur only where something sits behind the glass */
.card-tag, .card-len, .site-nav.solid-dark .nav, .site-nav.on-light .nav {
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
}

/* Nav: once you scroll, the bar lifts into a floating glass capsule */
.site-nav { transition: color .45s, padding .5s var(--ease-out); }
.site-nav.solid-dark, .site-nav.on-light {
  background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  padding-top: max(10px, env(safe-area-inset-top));
}
.nav { position: relative; isolation: isolate; border-radius: 999px; transition: background .45s, box-shadow .45s, padding .5s var(--ease-out); }
.site-nav.solid-dark .nav, .site-nav.on-light .nav { padding: 8px 8px 8px 24px; max-width: 1240px; margin-inline: auto; }
.site-nav.on-light .nav { background: linear-gradient(165deg, rgba(255, 255, 255, .62), rgba(250, 249, 249, .38) 55%, rgba(255, 255, 255, .58)); }
.site-nav.solid-dark .nav-logo, .site-nav.on-light .nav-logo { font-size: clamp(27px, 2.4vw, 31px); }
@media (max-width: 640px) {
  .site-nav.solid-dark, .site-nav.on-light { padding-inline: 10px; }
  .site-nav.solid-dark .nav, .site-nav.on-light .nav { padding: 5px 5px 5px 14px; gap: 8px; }
  .site-nav.solid-dark .nav-logo, .site-nav.on-light .nav-logo { font-size: 27px; padding-inline: 4px; }
  .site-nav.solid-dark .nav-menu, .site-nav.on-light .nav-menu { width: 40px; height: 40px; }
  .site-nav.solid-dark .nav-menu span, .site-nav.on-light .nav-menu span { left: 12px; right: 12px; }
  .site-nav.solid-dark .nav-menu span:first-child, .site-nav.on-light .nav-menu span:first-child { top: 16px; }
  .site-nav.solid-dark .nav-menu span:last-child, .site-nav.on-light .nav-menu span:last-child { top: 22px; }
}
.menu-open .site-nav .nav { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .site-nav .nav::after { display: none; }
.site-nav.solid-dark .nav { background: linear-gradient(160deg, rgba(40, 40, 40, .55), rgba(10, 10, 10, .45)); }

/* Reel counter: a glass capsule floating over the film (no backdrop blur: re-blurring the live 3D reel every frame stutters) */
.now-showing { padding: 9px 24px 11px; border-radius: 22px; min-width: 190px; width: max-content; max-width: 100%; justify-self: center; }
.now-showing .ns-title { font-size: clamp(13px, 1.1vw, 16px); white-space: nowrap; letter-spacing: -.02em; }
/* Card tags: small glass chips over the thumbnails */
.card-tag, .card-len { padding: 5px 10px; border-radius: 999px; top: 12px; }
.card-len:empty { display: none; }
.card-len { right: 12px; }
.card-tag { left: 12px; }
.nav-menu { border: 0; }

/* ═════════ Signature intro (intro.js) ═════════
   Plays inside the hero only: nav and page stay usable, and the reel glows dimly behind it. */
.intro-on .hero .reveal { animation-play-state: paused; }
.intro-on .nav-logo { opacity: 0; }
.nav-logo { transition: opacity .35s; }
.hero-reel { transition: opacity 1.2s var(--ease-out); }
.intro-on .hero-reel { opacity: .28; }
.intro {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: grid; place-content: center; justify-items: center; gap: clamp(14px, 2.4vw, 26px);
}
.intro-mark {
  width: clamp(200px, 30vw, 420px); height: auto; overflow: visible;
  translate: -7.5% 0;   /* the script's swashes overhang its em box to the right */
  transform-origin: 0 0;
}
.intro-ink { fill: #fff; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .28)) drop-shadow(0 0 42px rgba(179, 18, 46, .45)); }
.intro-tip { fill: #fff; opacity: 0; filter: drop-shadow(0 0 22px rgba(255, 70, 100, .95)) drop-shadow(0 0 60px rgba(179, 18, 46, .9)); transition: opacity .25s; }
.intro-tip.on { opacity: .9; }
.intro-slogan {
  margin: 0; font-size: clamp(11px, 1vw, 14px); font-weight: 500; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82); white-space: nowrap; padding-left: .42em;
}
.intro-slogan span { display: inline-block; white-space: pre; opacity: 0; filter: blur(6px); transform: translateY(6px); }
.intro.slogan-in .intro-slogan span { animation: slogan-in .7s var(--ease-out) calc(var(--i) * 28ms) forwards; }
@keyframes slogan-in { to { opacity: 1; filter: none; transform: none; } }
.intro.leaving .intro-slogan { opacity: 0; transform: translateY(8px); filter: blur(4px); transition: opacity .45s, transform .45s, filter .45s; }
.intro.skipped { opacity: 0; transition: opacity .25s; }

/* ═════════ Hover clips (ytloop.js) ═════════ */
.yt-loop { overflow: hidden; background: #000; opacity: 0; transition: opacity .5s var(--ease-out); pointer-events: none; }
.yt-loop.live { opacity: 1; }
.yt-loop iframe { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border: 0; pointer-events: none; }
/* on the reel: a layer that drifts with the reel as the hero scrolls away */
.reel-clips { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  transform: translate3d(0, calc(var(--out, 0) * 90px), 0); opacity: calc(1 - var(--out, 0) * .85); }
.reel-clips .yt-loop { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.reel-clips .yt-loop.vertical { border-radius: 14px; }
/* on work cards: fills the picture (or the 9:16 phone for Shorts), cropping like object-fit: cover */
.card-media > .yt-loop, .card-phone > .yt-loop { position: absolute; inset: 0; container-type: size; }
.card-media > .yt-loop iframe, .card-phone > .yt-loop iframe {
  width: calc(max(100cqw, 100cqh * 16 / 9) * 1.06); height: calc(max(100cqh, 100cqw * 9 / 16) * 1.06);
}
.card-phone > .yt-loop iframe { width: calc(max(100cqw, 100cqh * 9 / 16) * 1.06); height: calc(max(100cqh, 100cqw * 16 / 9) * 1.06); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-glow, .lb-backdrop, .spin-hint.show .sh-inner, .spin-hint.hide .sh-inner, .spin-hint.rest .sh-inner, .lb-panel, .now-showing.swap .ns-title, .now-showing.swap .ns-kind { animation: none; }
  .scribble svg { animation: none; clip-path: none; }
  .spin-hint.show .sh-arrow path { animation: none; stroke-dashoffset: 0; }
  .spin-hint.show .sh-inner { opacity: 1; transform: none; filter: none; }
  .spin-hint.hide .sh-inner, .spin-hint.rest .sh-inner { opacity: 0; }
  .js .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .card.playing .card-leak, .card.playing .card-progress i { animation: none; }
}

/* Anchor jumps land below the fixed nav, and glide unless reduced motion is on. */
section[id] { scroll-margin-top: 64px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }


/* Nav pieces never wrap; the logo shrinks a little on the narrowest phones. */
.nav-logo, .nav-cta { white-space: nowrap; }
@media (max-width: 380px) { .nav-logo { font-size: 22px; } .nav-cta .dot { display: none; } }
