/* ─────────────────────────────────────────────
   JACKAL STUDIO — v2 index layout
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: 'AlteHaasGrotesk';
  src: url('fonts/AlteHaasGroteskRegular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'AlteHaasGrotesk';
  src: url('fonts/AlteHaasGroteskBold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg:      #000;
  --text:    #fff;
  --muted:   #7a7a7a;
  --line:    #1f1f1f;
  --pad:     12px;
  --fs:      15px;
  --fs-sm:   11px;
  --ease:    0.2s ease;
}

html { font-size: var(--fs); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'AlteHaasGrotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.sm { display: none; }

/* ── HEADER (corners) ── */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  padding: var(--pad);
  pointer-events: none;
  mix-blend-mode: difference;
}
.top > * { pointer-events: auto; }
.top { text-transform: lowercase; }
.top__logo img {
  height: 56px;
  width: auto;
  margin-bottom: 6px;
  filter: brightness(0) invert(1)
          drop-shadow(0 0 4px rgba(255,255,255,0.9))
          drop-shadow(0 0 14px rgba(255,255,255,0.4));
}
/* light-up: flickers on, then gently comes into focus with the glow easing in (homepage only) */
.top__logo img { animation: logoPulse 1.6s ease-in-out infinite alternate; }   /* glow breathes on every page */
[data-page="work"] .top__logo img {
  opacity: 0;
  animation: lightUp 2.2s linear 0.1s forwards,
             logoPulse 1.6s ease-in-out 2.3s infinite alternate;               /* pulse starts once it's lit */
}
@keyframes logoPulse {                          /* settled glow ↔ brighter glow (one breath = 3.2s) */
  from { filter: brightness(0) invert(1) blur(0px) drop-shadow(0 0 4px rgba(255,255,255,0.9)) drop-shadow(0 0 14px rgba(255,255,255,0.4)); }
  to   { filter: brightness(0) invert(1) blur(0px) drop-shadow(0 0 7px rgba(255,255,255,1))   drop-shadow(0 0 24px rgba(255,255,255,0.65)); }
}
/* blur clears steadily the whole way; the flicker only plays with opacity early on.
   every step uses the same filter list so the browser blends between them smoothly */
@keyframes lightUp {
    0% { opacity: 0; filter: brightness(0) invert(1) blur(3.0px) drop-shadow(0 0 0px rgba(255,255,255,0)) drop-shadow(0 0 0px rgba(255,255,255,0)); }
    8% { opacity: 0.4; filter: brightness(0) invert(1) blur(2.75px) drop-shadow(0 0 0.5px rgba(255,255,255,0.1)) drop-shadow(0 0 2px rgba(255,255,255,0.05)); }
   13% { opacity: 0.06; filter: brightness(0) invert(1) blur(2.6px) drop-shadow(0 0 0.5px rgba(255,255,255,0.1)) drop-shadow(0 0 2px rgba(255,255,255,0.05)); }   /* flicker off */
   19% { opacity: 0.5; filter: brightness(0) invert(1) blur(2.45px) drop-shadow(0 0 1px rgba(255,255,255,0.2)) drop-shadow(0 0 4px rgba(255,255,255,0.1)); }
   23% { opacity: 0.18; filter: brightness(0) invert(1) blur(2.3px) drop-shadow(0 0 1px rgba(255,255,255,0.2)) drop-shadow(0 0 4px rgba(255,255,255,0.1)); }   /* stutter */
   30% { opacity: 0.65; filter: brightness(0) invert(1) blur(2.1px) drop-shadow(0 0 1.5px rgba(255,255,255,0.3)) drop-shadow(0 0 6px rgba(255,255,255,0.15)); }
   50% { opacity: 0.85; filter: brightness(0) invert(1) blur(1.4px) drop-shadow(0 0 2px rgba(255,255,255,0.45)) drop-shadow(0 0 8px rgba(255,255,255,0.2)); }
   75% { opacity: 1; filter: brightness(0) invert(1) blur(0.6px) drop-shadow(0 0 3px rgba(255,255,255,0.7)) drop-shadow(0 0 11px rgba(255,255,255,0.3)); }
  100% { opacity: 1; filter: brightness(0) invert(1) blur(0px) drop-shadow(0 0 4px rgba(255,255,255,0.9)) drop-shadow(0 0 14px rgba(255,255,255,0.4)); }
}
.top__nav a { transition: color var(--ease); }
.top__nav a:hover, .top__nav a.is-active { color: var(--muted); }
.top__right { text-align: right; }

/* ── MAIN ── */
main { flex: 1; display: flex; flex-direction: column; padding: 0 var(--pad); }
.spacer { flex: 1; min-height: 32vh; }

/* ── INDEX TABLE ── */
.index { width: 100%; border-collapse: collapse; }
.index th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  padding-bottom: 4px;
}
.index td { padding: 1px 0; vertical-align: top; }
.index th:last-child, .index td:last-child { text-align: right; }
.index tbody tr { cursor: pointer; transition: color var(--ease); }
.index tbody:hover tr { color: var(--muted); }
.index tbody tr:hover { color: var(--text); }
.index .col-a { width: 26%; }
.index .col-b { width: 30%; }
.index .col-c { width: 24%; }
.index__empty { color: var(--muted); padding: 8px 0 0; }

/* black-space image trail (desktop) */
.trail { position: relative; isolation: isolate; }   /* keeps tiles stacked below the header text no matter how many spawn */
.trail__item {
  position: absolute;
  width: clamp(160px, 17vw, 260px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
  transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1), transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.trail__item.is-in { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .trail__item { display: none; } }

/* resting image (homepage): fades in when the cursor stops moving */
.rest {
  position: absolute;
  left: 50%;
  width: min(300px, 85vw);                       /* JS sets the exact width per image */
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8))     /* soft glow, like the logo's */
          drop-shadow(0 0 22px rgba(255,255,255,0.35));
  transition: opacity 0.3s ease;                /* quick out when the mouse moves */
}
.rest.is-on { opacity: 1; transition: opacity 0.9s ease; }   /* slow in when it rests */
@media (hover: none) { .rest { opacity: 1; } }
.rest.is-off { opacity: 0; transition: opacity 0.5s ease; }

/* phones: previews play on their own in the space above the list (see site.js) */
.reel { display: none; position: absolute; left: 50%; width: min(220px, 56vw); aspect-ratio: 3 / 4; transform: translate(-50%, -50%); pointer-events: none; }
.reel.is-live { pointer-events: auto; }
@media (hover: none) { .reel { display: block; } }
.reel__item { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.reel__item.is-on { opacity: 1; }
.reel__item video, .reel__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* several clips at once: the reel widens to fit them in a row (each a tall phone-video shape) */
.reel { transition: width 0.5s ease, aspect-ratio 0.5s ease; }
.reel.is-multi { width: min(92vw, calc(var(--n) * 150px)); aspect-ratio: calc(var(--n) * 9 + (var(--n) - 1) * 0.5) / 16; }
.reel__item.is-multi { display: flex; gap: 6px; }
.reel__item.is-multi video { flex: 1; min-width: 0; height: 100%; }
.index tbody.is-reel tr { color: var(--muted); transition: color 0.4s ease; }
.index tbody.is-reel tr.is-reel { color: var(--text); }

/* design page: one row of images sliding left forever, full-bleed, sitting just under the header */
.strip {
  margin: 104px calc(var(--pad) * -1) 0;          /* clears the fixed header; bleeds past the page padding */
  height: calc(100svh - 104px - 76px);              /* fills the screen down to the footer */
  min-height: 320px;
  overflow: hidden;
}
.strip__track { display: flex; height: 100%; width: max-content; }
.strip__track img { height: 100%; width: auto; max-width: none; flex: none; margin-right: 12px; }   /* tiny gap; a margin (not flex gap) so every copy of the set is the same width and the loop stays seamless */
.strip__track { will-change: transform; }     /* JS slides it; speed follows the mouse (see site.js) */
.strip { touch-action: pan-y; cursor: grab; user-select: none; }          /* sideways swipes move the strip, vertical ones scroll the page */
.strip.is-dragging { cursor: grabbing; }
.strip__track img { -webkit-user-drag: none; pointer-events: none; }
@media (max-width: 700px) { .strip { height: 62svh; } }
@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: hidden; }                 /* no auto-scroll, but you can still swipe it */
}

/* hover preview — follows the cursor (desktop) */
.preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  pointer-events: none;
  will-change: transform;
}
.preview__inner {
  width: 200px;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: top left;
  transition: opacity 0.26s cubic-bezier(0.32, 0.72, 0, 1), transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}
.preview.is-on .preview__inner { opacity: 1; transform: scale(1); }
.preview img, .preview video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
@media (hover: none) { .preview { display: none; } }

/* ── FOOTER ── */
.foot {
  display: grid;
  grid-template-columns: 26% 30% 1fr;
  gap: 0;
  padding: 28px var(--pad) var(--pad);
  font-size: var(--fs-sm);
  line-height: 1.35;
}
.foot a:hover { color: var(--muted); }
.foot__social a { margin-right: 10px; }

/* ── PAGE TEXT (project / about / services / contact) ── */
.page { padding-top: 150px; }   /* clears the corner logo + menu */
.page__head {
  display: grid;
  grid-template-columns: 26% 30% 1fr;
  margin-bottom: 40px;
}
.page__head > :last-child { text-align: right; }
.page__head .label { color: var(--muted); display: block; }

.lede {
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 22em;
  margin-bottom: 18px;
}
.result { color: var(--muted); max-width: 40em; margin-bottom: 40px; }

.media { display: grid; gap: var(--pad); margin-bottom: 40px; }
.media video, .media img, .media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; background: #0a0a0a; }
/* reels: a compact row instead of full-width, so the phone recordings aren't blown up */
.media--reels { grid-template-columns: repeat(3, 1fr); max-width: 780px; }
.media--reels > * { aspect-ratio: 9 / 16; }
/* single video: its own shape, capped in height (no forced 16:9 crop) */
.media--single { justify-items: start; }
.media--single > video { width: auto; height: auto; max-width: 100%; max-height: 72vh; object-fit: contain; }
.media--single > iframe { aspect-ratio: 16 / 9; height: auto; max-width: 960px; }
.media a { display: block; }

.pager {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.pager a:hover { color: var(--muted); }

/* services list */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 26% 30% 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.row__num { color: var(--muted); }
.row__title { padding-right: 24px; }
.row__desc { color: var(--muted); max-width: 40em; }
.row__list { list-style: none; margin-top: 10px; }
.row__list li::before { content: "— "; color: var(--muted); }

/* about */
/* photo in the first column, text starting at the second — same grid as the homepage list */
.about { display: grid; grid-template-columns: 26% 1fr; align-items: start; }
.about__photo { width: calc(100% - 24px); aspect-ratio: 3 / 4; object-fit: cover; }
.about__text p { max-width: 34em; margin-bottom: 14px; }
.about__text p:first-child { margin-bottom: 18px; }

/* contact */
.header-img { margin-bottom: 32px; }
.header-img img { height: 100px; width: auto; max-width: 100%; }
.header-img--one-line img { height: 54px; }
.form { display: grid; grid-template-columns: 26% 1fr; row-gap: 0; }
.form label { color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line); }
.form input, .form textarea {
  font: inherit; color: var(--text); background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 14px 0; outline: none; resize: vertical;
}
.form input:focus, .form textarea:focus { border-bottom-color: var(--text); }
.form button {
  grid-column: 2; justify-self: start; margin-top: 18px;
  font: inherit; color: var(--text); background: none; border: 0; cursor: pointer;
}
.form button:hover { color: var(--muted); }
.form__ok { grid-column: 2; margin-top: 10px; color: var(--muted); display: none; }
.form__ok.is-on { display: block; }

/* design gallery (on design project pages) */
.media--gallery { grid-template-columns: repeat(2, 1fr); }

/* ── MOBILE ── */
@media (max-width: 720px) {
  :root { --fs: 14px; }
  .top__logo img { height: 42px; }
  .top { position: absolute; }                    /* scrolls away on phones instead of sitting on the text */
  .page { padding-top: 124px; }
  .index .hide-sm { display: none; }
  .lg { display: none; }
  .sm { display: inline; }
  .index .col-a { width: 46%; }
  [data-page="work"] .index td:nth-child(2), [data-page="work"] .index th:nth-child(2) { text-align: right; }
  [data-page="work"] .index .col-a { width: auto; }
  [data-page="work"] .index td:nth-child(2) { white-space: nowrap; padding-left: 12px; }   /* project sits on the right edge when it's the last column */
  .foot { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .page__head { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .page__head > :last-child { text-align: left; }
  .media--gallery { grid-template-columns: 1fr 1fr; }
  .row, .about, .form { grid-template-columns: 1fr; }
  .row__num { margin-bottom: 4px; }
  .about__photo { width: 60%; margin-bottom: 18px; }
  .pager { gap: 16px; }
  .pager > :nth-child(2) { display: none; }      /* drop "Index" on phones: prev/next need the room */
  .pager > :last-child { text-align: right; }
  .form label { border-bottom: 0; padding-bottom: 0; }
  .form button, .form__ok { grid-column: 1; }
}


/* ── SERVICES: flip-book of photographed pages ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svc {
  --ratio: 0.821;                                            /* page width / height of the photos */
  --pw: min(calc((100svh - 225px) * var(--ratio)), 46vw, 640px);   /* as big as the screen allows, so the page text stays readable */
  --ph: calc(var(--pw) / var(--ratio));
  --turn: 1s cubic-bezier(0.645, 0.045, 0.355, 1);
  padding-top: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.book-wrap { width: calc(var(--pw) * 2); height: var(--ph); cursor: pointer; touch-action: pan-y; user-select: none; }
.book { position: relative; width: 100%; height: 100%; transition: transform var(--turn); }
.book.at-start { transform: translateX(-25%); }            /* closed: the cover sits in the middle */
.book.at-end   { transform: translateX(25%); }
.leaf {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: perspective(2600px) rotateY(0deg);
  transition: transform var(--turn);
}
.leaf.is-flipped { transform: perspective(2600px) rotateY(-180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face--back { transform: rotateY(180deg); }
.face__in { position: absolute; inset: 0; }
.face__in img { width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
/* the page darkens a little as it lifts and turns */
.face::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 70%);
}
.face--back::after { background: linear-gradient(270deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 70%); }
.leaf.is-turning .face::after { animation: pageShade var(--turn); }
@keyframes pageShade { 50% { opacity: 1; } }

/* controls under the book */
.book-nav { display: flex; gap: 28px; align-items: center; margin-top: 22px; text-transform: lowercase; }
.book-nav button { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 4px 0; transition: color var(--ease); }
.book-nav button:hover, .book-nav__cta:hover { color: var(--muted); }
.book-nav button:disabled { color: var(--line); cursor: default; }
.book-nav [hidden] { display: none; }
.book-nav__count { color: var(--muted); min-width: 5.5em; text-align: center; }
.book-hint { color: var(--muted); font-size: var(--fs-sm); margin-top: 6px; }

/* phones: one page at a time, turned over in place from its left edge (no sliding) */
.mbook { display: none; position: relative; width: var(--pw); height: var(--ph); cursor: pointer; touch-action: pan-y; user-select: none; }
.mpage {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: perspective(2200px) rotateY(0deg);
  transition: transform var(--turn);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.mpage.is-turned { transform: perspective(2200px) rotateY(-180deg); }
.mpage img { width: 100%; height: 100%; object-fit: fill; pointer-events: none; display: block; }
.mpage::after {                                           /* the page darkens as it lifts */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 75%);
}
.mpage.is-turning::after { animation: pageShade var(--turn); }
@media (max-width: 760px) {
  .svc { --pw: min(calc(100vw - 36px), calc((100svh - 230px) * var(--ratio))); padding-top: 112px; }
  .book-wrap { display: none; }
  .mbook { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .svc { --turn: 0.01s linear; }
}


/* ── STYLING: editorial grid + full-size viewer ── */
[data-page="styling"] .top { position: absolute; }     /* logo + menu scroll away instead of sitting over the photos */
.ed { padding-top: 150px; padding-bottom: 20px; }
.ed__grid { display: flex; gap: 12px; align-items: flex-start; max-width: 1440px; margin: 0 auto; }
.ed__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ed__tile { display: block; padding: 0; border: 0; background: #0d0d0d; cursor: zoom-in; }
.ed__tile img, .ed__tile video { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--ease); }
.ed__tile:hover img, .ed__tile:hover video { opacity: 0.85; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.94);
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lb.is-on { opacity: 1; }
.lb[hidden] { display: none; }
.lb__stage { height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.lb__stage img, .lb__stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; transition: color var(--ease); }
.lb button:hover { color: var(--muted); }
.lb__prev, .lb__next { height: 100%; font-size: 20px; }
.lb__close { position: absolute; top: var(--pad); right: var(--pad); text-transform: lowercase; }
@media (max-width: 760px) {
  .ed { padding-top: 120px; }
  .ed__grid, .ed__col { gap: 6px; }
  .lb { grid-template-columns: 40px 1fr 40px; }
}


/* ── MUSIC ── */
[data-page="music"] .top { position: absolute; }        /* logo + menu scroll away, like Styling */
.music { width: 100%; max-width: 1440px; margin: 0 auto; }
.music__block { margin-bottom: 56px; }
.music__label { font-weight: 400; color: var(--muted); text-transform: lowercase; font-size: inherit; margin-bottom: 12px; }
.music__videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.music__videos iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #0d0d0d; }
@media (max-width: 760px) {
  .music__videos { grid-template-columns: 1fr; }
  .music__block { margin-bottom: 40px; }
}


/* ── MUSIC: turntable + record shelf ── */
.deck { position: relative; }
.deck__player { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; }   /* SoundCloud runs hidden */
.deck__player.is-fallback { position: static; width: 100%; max-width: 980px; height: 450px; opacity: 1; pointer-events: auto; }

.tt { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 36px; }
/* the turntable is a real photo; only the record label is swapped for the cover art and spun.
   On a real spinning record the grooves and reflections look still, so the photo stays put. */
.tt__plinth { position: relative; aspect-ratio: 4 / 3; cursor: pointer; user-select: none; }
.tt__photo { display: block; width: 100%; height: 100%; border-radius: 6px; box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.tt__label, .tt__gloss {
  position: absolute;
  left: 38.983%;                                         /* centre of the label in the photo */
  top: 50.489%;
  width: 22.9%;                                          /* label diameter (22.58%) plus a hair to cover its edge */
  aspect-ratio: 1;
  border-radius: 50%;
  translate: -50% -50%;
}
.tt__label {
  background: #d9d6cf center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.08);
  animation: spin 1.8s linear infinite;                  /* 33⅓ rpm */
  animation-play-state: paused;                          /* stops where it is */
  transition: transform 0.26s ease, opacity 0.26s ease;
}
.tt.is-playing .tt__label { animation-play-state: running; }
.tt__label.is-swapping { transform: scale(0.88); opacity: 0; }
@keyframes spin { to { rotate: 360deg; } }
.tt__gloss {                                             /* the room light on the paper label; doesn't turn */
  pointer-events: none;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.14), transparent 55%), radial-gradient(circle, transparent 62%, rgba(0,0,0,0.22) 100%);
}
.tt__spindle { position: absolute; left: 38.983%; top: 50.489%; width: 2.167%; translate: -50% -50%; pointer-events: none; }
/* tonearm, cut out of the photo; pivots where the tube leaves its housing */
.tt__arm {
  position: absolute;
  left: 72.583%;
  top: 28.944%;
  width: 17.333%;
  pointer-events: none;                                 /* only the grip below catches the pointer */
  transform-origin: 69.71% 0.17%;
  rotate: var(--arm, 0deg);
  transition: rotate 1.2s cubic-bezier(0.45, 0, 0.2, 1);
  filter: drop-shadow(5px 9px 5px rgba(0, 0, 0, 0.35));
}
.tt__arm img { display: block; width: 100%; }
/* the grab handle: the headshell + finger lift at the end of the arm */
.tt__grip { position: absolute; left: -6%; right: -6%; top: 70%; bottom: -3%; pointer-events: auto; cursor: grab; touch-action: none; border-radius: 40%; }
.tt.is-holding .tt__grip { cursor: grabbing; }
.tt.is-holding .tt__arm { transition: none; filter: drop-shadow(9px 16px 8px rgba(0, 0, 0, 0.4)); }   /* lifted: follows your hand, shadow drops further */
.tt__clip { position: absolute; left: 81.792%; top: 36.389%; width: 4.375%; pointer-events: none; }   /* arm-rest clip stays put, on top of the arm */

.tt__now { min-width: 0; }
.tt__kicker { color: var(--muted); text-transform: lowercase; margin-bottom: 6px; }
.tt__title { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 18px; }
/* progress line: thin to look at, with a taller invisible strip to grab; a dot shows where you are */
.tt__bar { position: relative; height: 1px; background: var(--line); margin-bottom: 14px; max-width: 520px; cursor: pointer; touch-action: none; }
.tt__bar::before { content: ''; position: absolute; inset: -10px 0; }
.tt__bar span { position: relative; display: block; height: 100%; width: 0; background: var(--text); }
.tt__bar span::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.tt__bar:hover span::after, .tt__bar.is-scrubbing span::after, .tt__bar:focus-visible span::after { opacity: 1; }
.tt__bar:hover, .tt__bar.is-scrubbing { background: #3a3a3a; }
.tt__ctrls { display: flex; gap: 22px; text-transform: lowercase; }
.tt__ctrls button { background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 0; transition: color var(--ease); }
.tt__ctrls button:hover { color: var(--muted); }

/* the shelf: sleeves stand face-out, overlapping; hover lifts one, the playing one is pulled out */
.shelf { position: relative; }
.shelf__row { display: flex; align-items: flex-end; padding: 46px 8px 0; overflow-x: auto; scrollbar-width: none; }
.shelf__row::-webkit-scrollbar { display: none; }
.shelf__wait { color: var(--muted); padding-bottom: 12px; }
.shelf__ledge { height: 10px; background: linear-gradient(#2a2a2a, #111); border-top: 1px solid #3a3a3a; box-shadow: 0 8px 18px rgba(0,0,0,0.6); }
.sleeve {
  position: relative;
  flex: none;
  width: clamp(120px, 13vw, 180px);
  aspect-ratio: 1;
  margin-left: calc(clamp(120px, 13vw, 180px) * -0.42);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 1;
  transform: rotate(calc((var(--i) - 2) * 0.4deg));     /* not quite lined up, like real records */
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), margin 0.35s ease;
}
.sleeve:first-child { margin-left: 0; }
.sleeve__art {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #222 center / cover no-repeat;
  box-shadow: -6px 0 14px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.sleeve__disc {                                         /* the record peeking out of the top of the sleeve */
  position: absolute;
  left: 6%;
  right: 6%;
  top: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 1;
  background: radial-gradient(circle, #8a2a24 0 16%, #111 16.5% 100%), repeating-radial-gradient(circle, #111 0 1px, #1b1b1b 1px 2px);
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.sleeve__name {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 3;
  font-size: var(--fs-sm);
  text-align: left;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sleeve:hover, .sleeve:focus-visible { transform: translateY(-16px); z-index: 5; margin-right: 26px; }
.sleeve:hover .sleeve__disc { transform: translateY(-18%); }
.sleeve:hover .sleeve__name { opacity: 1; }
.sleeve.is-out { transform: translateY(-30px); z-index: 4; margin-right: 26px; }
.sleeve.is-out .sleeve__disc { opacity: 0; }            /* its record is on the turntable */
.sleeve.is-out .sleeve__art { outline: 1px solid var(--text); outline-offset: 3px; }
.shelf { padding-bottom: 28px; }

@media (max-width: 760px) {
  .tt { grid-template-columns: 1fr; gap: 20px; }
  .sleeve { width: 112px; margin-left: -46px; }
}


/* Styling: the Instagram grid under the main one */
.ig { max-width: 1440px; margin: 72px auto 0; }
.ig__head { display: inline-block; margin-bottom: 14px; color: var(--text); text-transform: lowercase; transition: color var(--ease); }
.ig__head:hover { color: var(--muted); }
.ig__head::after {                                   /* thin arrow drawn as a shape, so phones don't swap in an emoji */
  content: '';
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-left: 0.35em;
  background-color: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 12.5 12.5 3.5M5.5 3.5h7v7' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 12.5 12.5 3.5M5.5 3.5h7v7' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 760px) { .ig { margin-top: 48px; } }

.tt__profile { margin: 26px 0 0; }               /* small SoundCloud link under the turntable controls */

/* ── site-wide music: the hidden SoundCloud player + the mini player shown on other pages ── */
.sc-player { position: fixed; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; }
.mini {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 7px 16px 7px 7px;
  border: 1px solid #2a2a2a;
  border-radius: 40px;
  background: rgba(10, 10, 10, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.mini[hidden] { display: none; }
.mini__go { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.mini__disc {                                           /* a tiny record with the mix's cover on the label */
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #101010 0 1px, #1c1c1c 1px 2px);
  animation: spin 1.8s linear infinite;
  animation-play-state: paused;
}
.mini.is-playing .mini__disc { animation-play-state: running; }
.mini__label { position: absolute; inset: 30%; border-radius: 50%; background: #8a2a24 center / cover no-repeat; }
.mini__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mini__kicker { font-size: var(--fs-sm); color: var(--muted); text-transform: lowercase; }
.mini__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__go:hover .mini__title { color: var(--muted); }
.mini__toggle { flex: none; padding: 0; background: none; border: 0; color: var(--text); font: inherit; text-transform: lowercase; cursor: pointer; }
.mini__toggle:hover { color: var(--muted); }
body.has-mini .foot { padding-bottom: 76px; }            /* keep the footer clear of the mini player */
@media (max-width: 760px) {
  .mini { left: 12px; right: 12px; max-width: none; justify-content: space-between; }
}
