/* ---------- Tokens ---------- */
:root {
  --bg: #14130f;
  --bg-alt: #1b1a15;
  --line: #322f27;
  --ink: #ede7dd;
  --ink-dim: #9a9690;
  --accent: #e8a73c;

  --display: 'Fraunces', serif;
  --body: 'Work Sans', sans-serif;

  --edge: clamp(20px, 5vw, 64px);
  --maxw: 1400px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.005em;
}

/* subtle film-grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.035;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px var(--edge);
  background: linear-gradient(180deg, rgba(10,9,7,0.5) 0%, rgba(10,9,7,0.22) 65%, rgba(10,9,7,0) 100%);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav--hidden {
  transform: translateY(-100%);
  opacity: 0;
}

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

.nav__mark-icon {
  display: block;
  height: 92px;
  width: 92px;
  background-color: var(--ink);
  -webkit-mask-image: url("assets/images/logo-white.png");
  mask-image: url("assets/images/logo-white.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.nav__links {
  display: flex;
  gap: 44px;
}

.nav__links a {
  font-size: 20px;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.25s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible { opacity: 1; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__toggle span {
  display: block;
  height: 3px;
  background: var(--ink);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: var(--edge);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.nav-mobile.open {
  display: flex;
  transform: translateY(0);
}

.nav-mobile a {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  max-width: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero__image {
  position: absolute;
  inset: 0;
}

.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,19,15,0.15) 0%, rgba(20,19,15,0.35) 55%, rgba(20,19,15,0.92) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--edge) 90px;
  opacity: 0;
  animation: contentIn 1s ease 0.5s forwards;
}

@keyframes contentIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__name {
  font-size: clamp(56px, 12vw, 150px);
  line-height: 0.88;
  color: var(--ink);
}

.hero__role {
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 19px);
  color: var(--ink-dim);
  max-width: 32ch;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  right: var(--edge);
  z-index: 2;
  width: 1px;
  height: 46px;
  background: rgba(237,231,221,0.35);
}

.hero__scroll span {
  position: absolute;
  top: 0; left: -2.5px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---------- Section shared ---------- */
section { padding: 80px var(--edge); max-width: var(--maxw); margin: 0 auto; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
}

.section-head p {
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 34ch;
}

.section-head--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.section-head--stacked p { max-width: 44ch; }

/* ---------- Work masthead ---------- */
.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 28px;
}

.work-head__title {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.95;
}

.work-head__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 320px;
  padding-bottom: 6px;
}

.work-head__label {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-head__desc {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-dim);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
}

@media (max-width: 560px) {
  .work-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .work-head__meta {
    align-items: flex-start;
    max-width: none;
  }
}

/* ---------- Reel ---------- */
.reel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 44px 32px;
  margin-bottom: 0;
}

/* ---------- Sprocket-hole filmstrip bands ---------- */
.filmstrip-band {
  height: 26px;
  margin: 24px calc(var(--edge) * -1) 24px;
  background-color: var(--bg-alt);
  background-image: radial-gradient(circle, var(--bg) 0 6px, transparent 6.5px);
  background-size: 38px 26px;
  background-position: 19px center;
  background-repeat: repeat-x;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filmstrip-band--first {
  margin-top: 0;
}

.filmstrip-band--last {
  margin-bottom: 0;
}

.reel--secondary {
  margin-top: 72px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px 24px;
}

.reel__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  overflow: hidden;
}

.reel__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Unified custom player ---------- */
.vplayer {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.vplayer--fading-out {
  opacity: 0;
}

.reel__facade--entering {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.vplayer__frame {
  position: absolute;
  inset: 0;
}

.vplayer__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.vplayer__pause-mask {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.vplayer__pause-mask--visible {
  opacity: 1;
  pointer-events: auto;
}

.vplayer__pause-mask-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(237,231,221,0.4);
}

.vplayer__pause-mask-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--ink);
  margin-left: 3px;
}

.vplayer__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 60%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vplayer:hover .vplayer__controls,
.vplayer:focus-within .vplayer__controls {
  opacity: 1;
  transform: translateY(0);
}

.vplayer__top-mask {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 64px;
  z-index: 4;
  background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(30,20,9,0.6) 60%, transparent 100%);
  pointer-events: none;
}

.vplayer__bottom-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  z-index: 4;
  background: var(--bg-alt);
  pointer-events: none;
}

.vplayer__btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vplayer__btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.vplayer__time,
.vplayer__duration {
  flex-shrink: 0;
  font-family: var(--body);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
  min-width: 30px;
}

.vplayer__duration { text-align: right; }

.vplayer__scrubber {
  flex: 1;
  display: flex;
  align-items: center;
  height: 20px;
  cursor: pointer;
}

.vplayer__scrubber-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 999px;
}

.vplayer__scrubber-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
}

.vplayer__scrubber-handle {
  position: absolute;
  left: 0%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
}

.vplayer__scrubber:hover .vplayer__scrubber-handle {
  transform: translate(-50%, -50%) scale(1);
}

.vplayer__quality {
  position: relative;
  flex-shrink: 0;
}

.vplayer__quality-btn {
  width: auto;
  padding: 0 6px;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  height: 20px;
}

.vplayer__quality-menu {
  display: none;
  position: absolute;
  bottom: 30px;
  right: 0;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  max-height: 160px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-width: 70px;
}

.vplayer__quality-menu.open {
  display: flex;
}

.vplayer__quality-option {
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--body);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.vplayer__quality-option:hover {
  background: rgba(255,255,255,0.08);
  color: var(--accent);
}

.vplayer__volume-group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vplayer__volume-slider {
  width: 50px;
  height: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

@media (max-width: 560px) {
  .vplayer__volume-group,
  .vplayer__quality {
    display: none;
  }
}

/* Clean click-to-play facade: no provider chrome/scrubber until clicked */
.reel__facade {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-color: var(--bg-alt);
}

.reel__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1);
  transition: transform 0.5s ease;
}

.reel__facade:hover .reel__thumb,
.reel__facade:focus-visible .reel__thumb {
  transform: scale(1.06);
}

.reel__facade::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20,19,15,0.18);
  transition: background 0.2s ease;
}

.reel__facade:hover::before,
.reel__facade:focus-visible::before {
  background: rgba(20,19,15,0.05);
}

.reel__play {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(237,231,221,0.55);
  background: rgba(20,19,15,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reel__facade:hover .reel__play,
.reel__facade:focus-visible .reel__play {
  transform: scale(1.08);
  border-color: var(--accent);
}

.reel__play svg { width: 16px; height: 16px; margin-left: 3px; fill: var(--ink); }

.reel__caption {
  padding-top: 16px;
  margin-top: 16px;
}

.reel__caption h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  min-height: 1.4em;
}

.reel__caption p {
  color: var(--ink-dim);
  font-size: 14px;
  margin: 4px 0 0;
  min-height: 1.4em;
}

/* ---------- Credits ---------- */
/* ---------- Credits ---------- */
.credits-section {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  max-width: calc(var(--maxw) - 2 * var(--edge));
  padding: 64px var(--edge);
  margin: 0 auto;
}

.credits-section .section-head {
  margin-bottom: 40px;
  padding-bottom: 16px;
}

.credits-section .section-head h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--ink);
  letter-spacing: 0.01em;
}

.credit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.credit-subhead {
  margin-bottom: 20px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.credit-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.credit-card {
  position: relative;
  background: transparent;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.credit-card:hover,
.credit-card:focus-visible {
  background: rgba(232,167,60,0.05);
}

.credit-card__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.05;
  color: var(--ink);
  transition: color 0.2s ease;
}

.credit-card:hover .credit-card__title,
.credit-card:focus-visible .credit-card__title { color: var(--accent); }

.credit-card__platform {
  flex-shrink: 0;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

@media (max-width: 780px) {
  .credit-columns { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .credit-card { flex-direction: column; align-items: flex-start; gap: 8px; }
}

.credits__imdb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.credits__imdb:hover,
.credits__imdb:focus-visible { border-color: var(--accent); }

.credits__imdb-badge {
  width: 34px;
  height: 17px;
  flex-shrink: 0;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

.about__mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  position: sticky;
  top: 100px;
  align-self: start;
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

/* tall portrait shot anchors the left column, full height */
.about__img--a {
  grid-column: 1;
  grid-row: 1 / 3;
  aspect-ratio: 2 / 3;
}

/* landscape event shot, top right */
.about__img--b {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: 4 / 3;
}

/* portrait profile shot, bottom right */
.about__img--c {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 3 / 4;
}

@media (max-width: 560px) {
  .about__mosaic {
    grid-template-columns: 1fr 1fr;
    position: static;
  }
  .about__img--a { grid-row: 1 / 3; }
}

.about__content h2 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 28px;
}

.about__content p {
  color: var(--ink-dim);
  font-size: 16px;
  max-width: 58ch;
  margin: 0 0 20px;
}

.about__content p:last-child { color: var(--ink); }

@media (max-width: 780px) {
  .about { grid-template-columns: 1fr; }
  .about__mosaic { position: static; }
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  max-width: none;
  padding: 0;
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
}

.contact__images { position: absolute; inset: 0; }
.contact__bg {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 15%;
  filter: grayscale(1) brightness(0.4);
}

.contact__content {
  position: relative;
  z-index: 2;
  padding: 60px var(--edge);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact__content h2 {
  font-size: clamp(34px, 6vw, 64px);
  margin-bottom: -8px;
}

.contact__email {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s ease;
}

.contact__email:hover,
.contact__email:focus-visible { opacity: 0.8; }

.contact__links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact__links a {
  font-size: 14px;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.contact__links a svg {
  width: 36px;
  height: 36px;
}

.contact__imdb-badge {
  width: 72px;
  height: 36px;
}

.contact__links a:hover,
.contact__links a:focus-visible {
  color: var(--ink);
  transform: scale(1.15);
  filter: brightness(1.3);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: var(--edge);
  top: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-bottom {
  position: fixed;
  right: var(--edge);
  bottom: 28px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.scroll-to-bottom:hover,
.scroll-to-bottom:focus-visible {
  opacity: 1;
  border-color: var(--accent);
}

.scroll-to-bottom.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--accent);
}

.back-to-top svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive edges ---------- */
@media (max-width: 560px) {
  section { padding: 80px var(--edge); }
  .hero__content { padding-bottom: 60px; }
}

/* ---------- Custom cursor: aperture iris + pointer tip ---------- */
.cursor {
  display: none;
}

@media (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor * {
    cursor: none !important;
  }

  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 54px;
    height: 54px;
    pointer-events: none;
    z-index: 300;
    will-change: transform;
  }

  .cursor__shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    opacity: 1;
    transition: opacity 0.2s ease;
  }

  .cursor--label .cursor__shape {
    opacity: 0;
  }

  .cursor__disc {
    position: absolute;
    left: 30px;
    top: 30px;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(20,19,15,0.55);
    border: 1px solid var(--accent);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.2s ease;
  }

  .cursor--label .cursor__disc {
    width: 78px;
    height: 78px;
    opacity: 1;
  }

  .cursor__tip {
    fill: var(--ink);
    opacity: 1;
    transition: opacity 0.2s ease;
  }

  .cursor--label .cursor__tip {
    opacity: 0;
  }

  .cursor__ring {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.3;
    transition: stroke 0.25s ease;
  }

  .cursor--hover .cursor__ring,
  .cursor--label .cursor__ring {
    stroke: var(--accent);
  }

  .cursor__clapper-base {
    fill: var(--bg-alt);
    stroke: var(--ink);
    stroke-width: 1.3;
  }

  .cursor__clapper-top {
    transform-origin: 15px 24px;
    transform: rotate(-12deg);
    transition: transform 0.25s ease;
  }

  .cursor__clapper-top rect {
    fill: var(--bg-alt);
    stroke: var(--ink);
    stroke-width: 1.3;
  }

  .cursor__clapper-stripe {
    stroke: var(--ink);
    stroke-width: 1.3;
  }

  .cursor--hover .cursor__clapper-top,
  .cursor--label .cursor__clapper-top {
    transform: rotate(0deg);
  }

  .cursor--hover .cursor__clapper-base,
  .cursor--hover .cursor__clapper-top rect,
  .cursor--hover .cursor__clapper-stripe,
  .cursor--label .cursor__clapper-base,
  .cursor--label .cursor__clapper-top rect,
  .cursor--label .cursor__clapper-stripe {
    stroke: var(--accent);
  }

  /* ---- Click reaction: snap shut, quick shake, impact lines ---- */
  .cursor--clap .cursor__clapper-top {
    transition: transform 0.08s ease-out;
    transform: rotate(0deg);
  }

  .cursor--clap .cursor__clapper {
    animation: clapperShake 0.3s ease;
  }

  @keyframes clapperShake {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-5deg); }
    45% { transform: rotate(4deg); }
    70% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
  }

  .cursor__impact-line {
    stroke: var(--accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    opacity: 0;
    transform-origin: 30px 24px;
  }

  .cursor--clap .cursor__impact-line {
    animation: impactBurst 0.35s ease-out;
  }

  @keyframes impactBurst {
    0% { opacity: 0; transform: scale(0.5); }
    35% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
  }

  @media (prefers-reduced-motion: reduce) {
    .cursor--clap .cursor__clapper,
    .cursor--clap .cursor__impact-line {
      animation: none;
    }
  }

  .cursor__label {
    position: absolute;
    left: 30px;
    top: 30px;
    transform: translate(-50%, -50%);
    opacity: 0;
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
    transition: opacity 0.2s ease;
  }

  .cursor--label .cursor__label {
    opacity: 1;
  }
}

/* ---------- Magnetic buttons ---------- */
.magnetic {
  transition: transform 0.15s ease-out;
}
