/* Cillian Carroll — site styles */

@font-face { font-family: "Neue Haas Grotesk Display"; src: url("/fonts/NHaasGroteskDisp-45Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk Display"; src: url("/fonts/NHaasGroteskDisp-46LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk Display"; src: url("/fonts/NHaasGroteskDisp-55Roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk Display"; src: url("/fonts/NHaasGroteskDisp-56Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk Display"; src: url("/fonts/NHaasGroteskDisp-65Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk Display"; src: url("/fonts/NHaasGroteskDisp-66MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Neue Haas Grotesk Display"; src: url("/fonts/NHaasGroteskDisp-75Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --grey: #8c8c8c;
  --soft: #5e5e5e;
  --pill: #f1f1f0;
  --pill-hover: #e7e7e6;
  --line: rgba(0, 0, 0, 0.14);
  --frame: #f3f3f2;
  --accent: #ff5029;
  --on-accent: #0b0b0b;
  --pad: clamp(0.75rem, 1.1vw, 1.4rem);
  --gap: clamp(0.5rem, 0.8vw, 1rem);
  --radius-xl: clamp(0.25rem, 0.4vw, 0.45rem);
  --radius: clamp(0.18rem, 0.25vw, 0.3rem);
  --header-h: 3.6rem;
  --font: "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

[data-theme="dark"] {
  --bg: #0d0d0c; --ink: #f1f0ec; --grey: #85847f; --soft: #a8a7a1;
  --pill: #1c1c1b; --pill-hover: #282826; --line: rgba(255, 255, 255, 0.14); --frame: #191918;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0c; --ink: #f1f0ec; --grey: #85847f; --soft: #a8a7a1;
    --pill: #1c1c1b; --pill-hover: #282826; --line: rgba(255, 255, 255, 0.14); --frame: #191918;
    color-scheme: dark;
  }
}
html, body { transition: background-color .35s var(--ease), color .35s var(--ease); }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: clamp(13px, calc(8px + 0.42vw), 19px); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 1rem; line-height: 1.28; letter-spacing: 0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  animation: page-in .6s var(--ease) both;
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
a { color: inherit; text-decoration: none; }
img, video, iframe { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; font-size: inherit; }
b, strong { font-weight: 500; }
sup { font-size: .6em; vertical-align: top; position: relative; top: .1em; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.ico { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.16em; margin-right: .15em; }
.grey { color: var(--grey); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }

.display {
  font-weight: 400; font-size: clamp(2.3rem, 5.3vw, 7.4rem); line-height: 0.98; letter-spacing: -0.028em;
}
.inline-link { text-decoration: underline; text-decoration-thickness: max(.6px, .018em); text-underline-offset: .12em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color .3s var(--ease), color .3s var(--ease); }
.inline-link:hover { color: var(--accent); text-decoration-color: transparent; }
.small-head { font-weight: 500; font-size: 1rem; }

/* ---------------------------------------------------------------- header pills */
.site-header {
  position: sticky; top: 0; z-index: 50; padding: var(--pad) var(--pad) 0;
  pointer-events: none;
}
.pills {
  display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)) auto minmax(0, 1fr) auto; gap: var(--gap); pointer-events: auto;
}
.pill {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px;
  background: color-mix(in srgb, var(--pill) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  transition: background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
a.pill:hover, .pill--menu:hover { background: var(--pill-hover); }
.pill--small { padding: 0 1rem; justify-content: center; }
.pill--theme { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center;
  min-height: 2.75rem; width: 2.75rem; border-radius: 999px; background: color-mix(in srgb, var(--pill) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); transition: background .25s var(--ease); }
.pill--theme:hover { background: var(--pill-hover); }
.theme-dot { width: 1rem; height: 1rem; border-radius: 50%; border: 1.5px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 0 50%, transparent 50% 100%); transition: transform .5s var(--ease); }
[data-theme="dark"] .theme-dot { transform: rotate(180deg); }
.pill.is-active, .pill--name:active { background: var(--accent); color: var(--on-accent); }
.pill--name .pill__l { font-weight: 500; letter-spacing: 0.01em; }
.pill--name .pill__r { color: var(--soft); overflow: hidden; text-overflow: ellipsis; }
.pill__r .short { display: none; }
.pill--menu { padding: 0; }
.pill__btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 100%; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px;
}
.pill.is-active .pill__btn { color: var(--on-accent); }
.tri {
  width: 0; height: 0; border-left: .42em solid transparent; border-right: .42em solid transparent;
  border-top: .52em solid currentColor; opacity: .35; transition: transform .3s var(--ease), opacity .2s;
}
.pill--menu.is-open .tri { transform: rotate(180deg); opacity: .8; }

.dropdown {
  position: absolute; top: calc(100% + .4rem); left: 0; right: 0; z-index: 60;
  background: color-mix(in srgb, var(--pill) 94%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border-radius: .8rem; padding: .7rem; color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.pill--menu.is-open .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown--work { left: 0; right: auto; min-width: max(100%, 26rem); }
.index-list, .link-list { list-style: none; margin: 0; padding: 0; }
.index-list a, .link-list a {
  display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: baseline; gap: .5rem;
  padding: .55rem .6rem; border-radius: .45rem; transition: background .2s;
}
.link-list a { grid-template-columns: 1fr auto; }
.index-list a:hover, .link-list a:hover, .index-list a[aria-current] { background: var(--bg); }
.index-list .n, .index-list .y { color: var(--grey); }
.index-list .y { font-size: .9rem; }
.arr { color: var(--grey); }

/* ---------------------------------------------------------------- intro / facts */
.intro { padding: clamp(5rem, 14vw, 13rem) var(--pad) clamp(2.5rem, 5vw, 5rem); }
.intro__text { max-width: 19.5ch; }
.facts { padding: 0 var(--pad); color: var(--ink); font-size: 1rem; line-height: 1.3; }
.facts p { padding: .7rem 2rem 0 0; border-top: 1px solid var(--line); }
.facts a, .project__desc a, .entry a, .footer-meta a { text-decoration: underline; text-decoration-thickness: .6px; text-underline-offset: .18em; text-decoration-color: rgba(0,0,0,.3); transition: text-decoration-color .2s, color .2s; }
.facts a:hover, .project__desc a:hover, .footer-meta a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- work tiles */
.work { padding: clamp(5rem, 11vw, 10rem) var(--pad) 0; }
.section-head {
  display: flex; justify-content: space-between; padding: 0 0 .7rem; margin-bottom: var(--gap);
  border-bottom: 1px solid var(--line);
}
.tiles { display: flex; flex-direction: column; gap: calc(var(--gap) * 2.6); }
.tiles__row { display: flex; gap: var(--gap); align-items: flex-start; }
.tiles__row > .tile { flex: var(--ar) 1 0; min-width: 0; }
.tile { display: block; }
.tile .frame { border-radius: var(--radius-xl); }
.tile .frame > * { transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.tile:hover .frame > * { transform: scale(1.04); }
.tile__cap { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .5rem; padding: .7rem .4rem 0; align-items: baseline; }
.tile__cap .n, .tile__cap .m { color: var(--grey); }
.tile__cap .m { font-size: .9rem; }
.tile:hover .tile__cap .t { color: var(--accent); }

/* ---------------------------------------------------------------- frames / media */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--frame); width: 100%; isolation: isolate; }
.frame > img, .frame > video, .frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.frame > iframe.vimeo { pointer-events: none; }
.frame.is-cover > iframe.vimeo { width: 100%; height: 100%; }
.frame > img { opacity: 0; transition: opacity .6s var(--ease); }
.frame > img.is-loaded, .frame > img[data-loaded] { opacity: 1; }
.frame > video { opacity: 0; transition: opacity .5s var(--ease); }
.frame > video.is-ready, .frame > video[poster] { opacity: 1; }

/* ---------------------------------------------------------------- project */
.project { padding: calc(var(--gap) * 1.6) var(--pad) 0; }
.hero .frame { border-radius: var(--radius-xl); }
.hero { margin: 0; }
.counter { display: flex; justify-content: space-between; color: var(--grey); padding: .6rem .3rem 0; font-size: .9rem; }
.project__head {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap);
  padding: clamp(3rem, 7vw, 7rem) 0 clamp(4rem, 8vw, 8rem);
}
.project__title { max-width: 10ch; }
.project__details { max-width: 44rem; }
.small-head { display: block; margin-bottom: .8rem; }
.dl { margin: 0 0 clamp(2rem, 4vw, 3.4rem); border-top: 1px solid var(--line); }
.dl-row { display: grid; grid-template-columns: minmax(7rem, 1fr) 2fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.dl dt { color: var(--grey); }
.dl dd { margin: 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; }
.dl dd a { transition: color .2s; }
.dl dd a:hover { color: var(--accent); }
.project__desc { color: var(--soft); font-size: clamp(1.05rem, 1.25vw, 1.35rem); line-height: 1.32; letter-spacing: 0; }
.project__desc p + p { margin-top: 1em; }
.project__desc a { color: var(--ink); }

.gallery { display: flex; flex-direction: column; gap: var(--gap); }
.gallery .row { display: flex; gap: var(--gap); align-items: flex-start; }
.gallery .cell { min-width: 0; }
.gallery .frame > iframe.embed { pointer-events: auto; }

.next-project { padding: clamp(6rem, 12vw, 12rem) 0 clamp(2rem, 4vw, 4rem); border-bottom: 1px solid var(--line); }
.next-project .display { display: inline-block; transition: color .35s var(--ease); }
.next-project .display:hover { color: var(--accent); }
.next-arrow { display: inline-block; transition: transform .5s var(--ease); }
a:hover .next-arrow { transform: translateX(.25em); }

/* ---------------------------------------------------------------- information */
.info-grid { padding: 0 var(--pad); align-items: start; }
.info-grid .col { display: flex; flex-direction: column; gap: clamp(2rem, 3.5vw, 3.4rem); }
.headshot { border-radius: var(--radius-xl); }
.label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; padding-bottom: .55rem; margin-bottom: .9rem; border-bottom: 1px solid var(--line); }
.entry { display: flex; flex-direction: column; margin-bottom: 1.15rem; }
.entry .date { color: var(--grey); font-size: .92rem; margin-bottom: .1rem; }
.entry strong { font-weight: 500; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: .12rem 0; }
.plain a { transition: color .2s; }
.plain a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: clamp(7rem, 14vw, 14rem) var(--pad) 0; }
.footer-big a { transition: color .35s var(--ease); }
.footer-big a:hover { color: var(--accent); }
.footer-meta { padding: clamp(3rem, 6vw, 6rem) 0 1.1rem; color: var(--soft); font-size: .92rem; }
.footer-meta .to-top { justify-self: end; }

/* ---------------------------------------------------------------- cursor preview */
.cursor-preview {
  position: fixed; left: 0; top: 0; z-index: 80; width: 12rem; pointer-events: none;
  opacity: 0; transform: translate3d(-100px, -100px, 0) scale(.9); transition: opacity .2s, scale .3s var(--ease);
  border-radius: var(--radius); overflow: hidden; background: var(--frame); aspect-ratio: 4 / 5;
}
.cursor-preview img { width: 100%; height: 100%; object-fit: cover; }
.cursor-preview.is-on { opacity: 1; }

/* ---------------------------------------------------------------- miscellaneous swipe */
.page-swipe { overflow: hidden; height: 100svh; overscroll-behavior: none; }
.page-swipe .site-header { position: fixed; left: 0; right: 0; }
.swipe { position: fixed; inset: 0; overflow: hidden; user-select: none; -webkit-user-select: none; }
.swipe__info {
  position: absolute; z-index: 5; left: var(--pad); top: calc(var(--pad) + 2.75rem + 1.6rem);
  width: min(22rem, 34vw); font-size: .92rem; color: var(--soft);
}
.swipe__info .small-head { color: var(--ink); margin-bottom: .5rem; }
.swipe__info .grey { margin-left: .5rem; font-weight: 400; }
.swipe__count { position: absolute; z-index: 5; right: var(--pad); top: calc(var(--pad) + 2.75rem + 1.6rem); font-variant-numeric: tabular-nums; }
.swipe__hint { position: absolute; z-index: 5; right: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom)); color: var(--grey); font-size: .92rem; transition: opacity .6s; }
.swipe.has-moved .swipe__hint { opacity: 0; }
.swipe__bar { position: absolute; z-index: 5; left: var(--pad); bottom: calc(var(--pad) + env(safe-area-inset-bottom) + .45rem); width: min(16rem, 40vw); height: 1px; background: var(--line); }
.swipe__bar span { position: absolute; left: 0; top: -0.5px; height: 2px; background: var(--ink); width: 0; }
.swipe__stage { position: absolute; inset: 0; cursor: grab; touch-action: none; outline: none; }
.swipe__stage.is-dragging { cursor: grabbing; }
.swipe__item { position: absolute; left: 0; top: 0; will-change: transform, width, height; }
.swipe__frame { width: 100%; height: 100%; border-radius: calc(var(--radius) * .8); overflow: hidden; background: var(--frame); position: relative; }
.swipe__frame > img, .swipe__frame > video, .swipe__frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none; -webkit-user-drag: none; }
.swipe__item.is-focus .swipe__frame > iframe.embed--ig { pointer-events: auto; }
.swipe__item--instagram .swipe__frame { background: #fff; }
/* no-JS fallback: plain horizontal scroller */
.swipe:not(.is-live) .swipe__stage { display: flex; gap: 1rem; align-items: center; overflow-x: auto; padding: 0 var(--pad); touch-action: auto; }
.swipe:not(.is-live) .swipe__item { position: relative; height: 50vh; flex: none; }

/* ---------------------------------------------------------------- mixes */
.mixes { padding: 0 var(--pad); }
.mixes__stage { position: relative; height: clamp(340px, 60vh, 760px); cursor: grab; touch-action: pan-y; isolation: isolate; overflow: hidden; user-select: none; -webkit-user-select: none; margin-top: clamp(1rem, 3vh, 2.5rem); perspective: 2200px; perspective-origin: 50% 40%; }
.mix-card {
  position: absolute; left: 0; top: 0; width: var(--card, 180px); aspect-ratio: 1; padding: 0; border: 0; margin: 0;
  background: var(--frame); border-radius: var(--radius); overflow: hidden; cursor: pointer; transform-origin: 50% 100%;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), -18px 22px 40px -22px rgba(0,0,0,.35);
  transition: box-shadow .5s var(--ease);
  will-change: transform;
}
.mix-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mix-card.is-focus { filter: none; box-shadow: 0 1px 0 rgba(0,0,0,.04), -26px 34px 60px -24px rgba(0,0,0,.45); }
.mix-card__play {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%);
  border-top: 1.1rem solid transparent; border-bottom: 1.1rem solid transparent; border-left: 1.8rem solid #fff;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.25)); opacity: 0; transition: opacity .3s;
}
.mix-card.is-focus .mix-card__play { opacity: .95; }
.mix-card.is-playing .mix-card__play { border: 0; width: 1.3rem; height: 1.8rem; transform: translate(-50%, -50%);
  background: linear-gradient(90deg, #fff 0 38%, transparent 38% 62%, #fff 62% 100%); }
.mixes__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.2rem 0 .6rem; }
.mixes__label { display: flex; gap: .8rem; align-items: baseline; }
.mixes__label .small-head { margin: 0; display: inline; }
.mixes__label a:hover, .mixes__meta a:hover { color: var(--accent); }
.mixes__now { display: flex; align-items: center; gap: .9rem; }
.mixes__num { border: 1px solid var(--ink); border-radius: 999px; padding: .15rem .75rem; font-variant-numeric: tabular-nums; }
.mixes__titles { list-style: none; margin: 0; padding: 0; height: 3.9em; overflow: hidden; position: relative; min-width: 16rem; }
.mixes__titles li { height: 1.3em; line-height: 1.3em; white-space: nowrap; opacity: .22; transition: transform .5s var(--ease), opacity .4s; }
.mixes__titles li .n { color: var(--grey); margin-right: .3em; }
.mixes__titles li.is-current { opacity: 1; }
.mixes__meta { justify-self: end; display: flex; gap: 1.2rem; color: var(--soft); }
.mixes__player { max-width: 44rem; margin: .4rem auto calc(var(--pad) + env(safe-area-inset-bottom)); }
.mixes__player iframe { width: 100%; height: 20px; border: 0; display: block; }
@media (max-width: 760px) {
  .mixes__stage { height: 48vh; }
  .mixes__bar { grid-template-columns: 1fr; gap: .6rem; }
  .mixes__meta { justify-self: start; }
  .mixes__titles { min-width: 0; }
}

.mixes__stage.is-dragging { cursor: grabbing; }
.mix-card img { -webkit-user-drag: none; }
.mixes__rail { display: flex; justify-content: center; gap: .15rem; margin-top: .4rem; flex-wrap: wrap; }
.mixes__rail button { all: unset; cursor: pointer; padding: .35rem .45rem; font-size: .78rem; color: var(--grey);
  font-variant-numeric: tabular-nums; border-radius: 999px; transition: color .2s, background .2s; }
.mixes__rail button:hover { color: var(--ink); }
.mixes__rail button.is-on { color: var(--bg); background: var(--ink); }
.mixes__hint { text-align: center; color: var(--grey); font-size: .8rem; margin-top: .3rem; }
.mixes__titles li { cursor: pointer; }

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 60vh; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --header-h: 6.4rem; --radius-xl: 0.3rem; }
  html { font-size: 15px; }
  .pills { display: flex; flex-wrap: wrap; gap: .4rem; }
  .pills > .pill { flex: 1 1 auto; }
  .pills > .pill--small { flex: 0 0 auto; }
  .pill, .pill__btn { padding: 0 .8rem; }
  .pill--name { flex: 1 1 100%; }
  .pill__r .long { display: none; }
  .pill__r .short { display: inline; }
  .pill, .pill__btn { min-height: 2.6rem; padding: 0 1rem; }
  .pill--menu { padding: 0; }
  .dropdown--work { min-width: min(92vw, 26rem); }
  .dropdown--contact { left: auto; right: 0; min-width: 12rem; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
  .facts p { max-width: none; }
  .intro { padding-top: 4.5rem; }
  .display { font-size: clamp(2.3rem, 10.4vw, 4rem); line-height: 1; }
  .tiles { gap: 1.8rem; }
  .tiles__row { flex-direction: column; gap: 1.8rem; }
  .tiles__row > .tile { flex: none; width: 100%; }
  .tile__cap { grid-template-columns: 1.8rem 1fr; }
  .tile__cap .m { display: none; }
  .project__head { grid-template-columns: 1fr; gap: 2.4rem; }
  .gallery .row { flex-direction: column; }
  .gallery .cell { width: 100%; flex: none !important; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-meta { grid-template-columns: 1fr 1fr; }
  .swipe__info { width: calc(100vw - var(--pad) * 2 - 4rem); top: calc(var(--pad) + 5.6rem + 1.2rem); font-size: .86rem; }
  .swipe__info p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .swipe__count { top: calc(var(--pad) + 5.6rem + 1.2rem); }
  .cursor-preview { display: none; }
}
@media (hover: none) { .cursor-preview { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dropdown { white-space: normal; }
.index-list a { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }

/* menu pills: blur lives on a pseudo-element so the dropdown isn't trapped inside the pill
   (backdrop-filter on an ancestor makes it the containing block and kills the dropdown's own blur) */
.pill--menu { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pill--menu::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: color-mix(in srgb, var(--pill) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  transition: background .25s var(--ease); }
.pill--menu:hover { background: transparent; }
.pill--menu:hover::before { background: var(--pill-hover); }
.pill--menu.is-active { background: transparent; color: var(--on-accent); }
.pill--menu.is-active::before { background: var(--accent); }
.dropdown { background: var(--pill); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 40px rgba(0,0,0,.12); }
[data-theme="dark"] .dropdown { box-shadow: 0 10px 40px rgba(0,0,0,.5); }
@media (max-width: 760px) {
  .dropdown--work, .dropdown--contact { position: fixed; top: var(--dd-top, 7rem); left: var(--pad); right: var(--pad); min-width: 0; }
}

/* bio: a step smaller than the display size */
.intro__text--bio { font-size: clamp(2rem, 4.1vw, 5.6rem); line-height: 1.02; max-width: 17em; }
@media (max-width: 760px) { .intro__text--bio { font-size: clamp(1.9rem, 8.6vw, 3.2rem); } }

/* light stroke on media whose edges are white/near-white */
.frame.is-light > img, .frame.is-light > video { border-radius: inherit; }
.frame.is-light::after, .swipe__item.is-light .swipe__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.09); pointer-events: none; z-index: 2; }
[data-theme="dark"] .frame.is-light::after, [data-theme="dark"] .swipe__item.is-light .swipe__frame::after { box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .frame.is-light::after, :root:not([data-theme="light"]) .swipe__item.is-light .swipe__frame::after { box-shadow: none; } }

/* ---------------------------------------------------------------- misc views */
.swipe__frame { transform: rotate(var(--rot, 0deg)); transition: transform .7s var(--ease), box-shadow .4s var(--ease); }
.swipe[data-view="canvas"] .swipe__item:hover .swipe__frame,
.swipe[data-view="grid"] .swipe__item:hover .swipe__frame { transform: rotate(0deg) scale(1.03); }
.swipe[data-view="canvas"] .swipe__item:hover { z-index: 40 !important; }
.swipe[data-view="canvas"] .swipe__frame { box-shadow: 0 14px 40px rgba(0,0,0,.10); }
[data-theme="dark"] .swipe[data-view="canvas"] .swipe__frame { box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.swipe[data-view="grid"] .swipe__stage { cursor: default; }
.swipe[data-view="grid"] .swipe__item, .swipe[data-view="canvas"] .swipe__item { cursor: pointer; }
.swipe__info p { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.swipe:not([data-view="swipe"]) .swipe__info p { opacity: 0; transform: translateY(-4px); pointer-events: none; }
.swipe:not([data-view="swipe"]) .swipe__count { opacity: 0; }
.swipe__count { transition: opacity .4s; }
.swipe[data-view="canvas"] .swipe__bar { opacity: 0; }
.swipe__bar { transition: opacity .4s; }

.swipe__views {
  position: absolute; z-index: 20; left: 50%; bottom: calc(var(--pad) + env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; gap: .2rem; padding: .25rem; border-radius: 999px;
  background: color-mix(in srgb, var(--pill) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.swipe__views button {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .95rem; border-radius: 999px; font-size: .92rem; color: var(--soft);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.swipe__views button:hover { color: var(--ink); }
.swipe__views button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.swipe__views button:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.swipe__views .swipe__shuffle { max-width: 0; padding-left: 0 !important; padding-right: 0 !important; opacity: 0; overflow: hidden;
  transition: max-width .45s var(--ease), opacity .3s, padding .45s var(--ease) !important; }
.swipe[data-view="canvas"] .swipe__views .swipe__shuffle { max-width: 7rem; padding: .55rem .95rem !important; opacity: 1; color: var(--ink) !important; }
.vi { position: relative; width: .9rem; height: .7rem; flex: none; }
.vi--swipe { background: linear-gradient(currentColor 0 0) 0 50%/16% 55% no-repeat, linear-gradient(currentColor 0 0) 50% 50%/44% 100% no-repeat, linear-gradient(currentColor 0 0) 100% 50%/16% 55% no-repeat; }
.vi--grid { background:
  linear-gradient(currentColor 0 0) 0 0/45% 42% no-repeat, linear-gradient(currentColor 0 0) 100% 0/45% 42% no-repeat,
  linear-gradient(currentColor 0 0) 0 100%/45% 42% no-repeat, linear-gradient(currentColor 0 0) 100% 100%/45% 42% no-repeat; }
.vi--canvas { background:
  linear-gradient(currentColor 0 0) 0 10%/38% 45% no-repeat, linear-gradient(currentColor 0 0) 90% 0/34% 38% no-repeat,
  linear-gradient(currentColor 0 0) 55% 100%/42% 40% no-repeat; }
.swipe__hint { left: auto; }
@media (max-width: 760px) {
  .swipe__views { bottom: calc(var(--pad) + env(safe-area-inset-bottom) + 1.4rem); }
  .swipe__views button { padding: .5rem .75rem; font-size: .86rem; }
  .swipe__hint { display: none; }
  .swipe__bar { bottom: calc(var(--pad) + env(safe-area-inset-bottom)); width: calc(100vw - var(--pad) * 2); }
}

/* theme button: fixed circle at every size (mobile pill padding was squeezing the dot) */
.pills > .pill--theme { flex: 0 0 auto; width: 2.75rem; padding: 0; }
.theme-dot { flex: none; aspect-ratio: 1; }
@media (max-width: 760px) { .pills > .pill--theme { width: 2.6rem; min-height: 2.6rem; padding: 0; } }

/* mixes: fill the viewport — stack grows, bar + player sit on the bottom edge (no dead space) */
.page-mixes { min-height: 100svh; display: flex; flex-direction: column; }
.page-mixes .mixes { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.page-mixes .mixes__stage { flex: 1 1 auto; height: auto; min-height: 300px; max-height: none; }
.page-mixes .mixes__bar { padding-top: 1rem; border-top: 1px solid var(--line); margin-top: .8rem; }
.page-mixes .mixes__player { width: 100%; max-width: none; margin: .5rem 0 calc(var(--pad) + env(safe-area-inset-bottom)); }
@media (max-width: 760px) { .page-mixes .mixes__stage { min-height: 46svh; } }

.swipe__info, .swipe__count { z-index: 30; }
.swipe:not([data-view="swipe"]) .swipe__hint { opacity: 0; }

/* accent: hover state for the active pill keeps the orange */
a.pill.is-active:hover { background: var(--accent); filter: brightness(1.04); }
.pill--menu.is-active:hover::before { background: var(--accent); }

/* mixes: the page takes on the colour of the focused cover */
@property --mix-tint { syntax: '<color>'; inherits: true; initial-value: #888888; }
.page-mixes {
  --tint-amt: 16%;
  background-color: color-mix(in srgb, var(--mix-tint) var(--tint-amt), var(--bg));
  transition: --mix-tint 1.1s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
[data-theme="dark"] .page-mixes { --tint-amt: 20%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-mixes { --tint-amt: 20%; } }
.page-mixes { background-image: radial-gradient(ellipse 55% 50% at 50% 42%, color-mix(in srgb, var(--mix-tint) 34%, transparent), transparent 75%); background-attachment: fixed; }
.page-mixes .pill, .page-mixes .pill--menu::before, .page-mixes .pill--theme { background: color-mix(in srgb, var(--pill) 70%, transparent); }
.page-mixes .pill.is-active { background: var(--accent); }
.page-mixes .dropdown { background: var(--pill); }
.page-mixes .pill--menu { background: transparent; }
.page-mixes .pill--menu.is-active::before { background: var(--accent); }

/* ---------------------------------------------------------------- about (v2) */
.about { padding: 0 var(--pad); }
.about-hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding: clamp(3rem, 9vh, 7rem) 0 clamp(4rem, 10vw, 9rem); align-items: start;
}
.about-hero__photo { grid-column: 1 / span 2; }
.about-hero__photo .frame { border-radius: var(--radius-xl); }
.about-hero__text { grid-column: 5 / -1; display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3.6rem); }
.about-hero__text .intro__text--bio { font-size: clamp(2rem, 3.6vw, 4.9rem); max-width: 15em; }
.about-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; }
.about-facts > div { border-top: 1px solid var(--line); padding-top: .7rem; }
.about-facts dt { color: var(--grey); font-size: .86rem; margin-bottom: .3rem; }
.about-facts dd { margin: 0; line-height: 1.35; }
.about-facts a { text-decoration: underline; text-decoration-thickness: .6px; text-underline-offset: .18em; text-decoration-color: var(--line); transition: color .2s, text-decoration-color .2s; }
.about-facts a:hover { color: var(--accent); text-decoration-color: currentColor; }

.about-sec {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  border-top: 1px solid var(--ink); padding: 1rem 0 clamp(3.5rem, 7vw, 6.5rem);
}
.about-sec__head { grid-column: 1 / span 4; display: flex; gap: .9rem; align-items: baseline; align-self: start; position: sticky; top: calc(var(--pad) + 2.75rem + 1rem); }
.about-sec__head .n { color: var(--grey); font-variant-numeric: tabular-nums; font-size: .92rem; }
.about-sec__head h2 { margin: 0; font-weight: 400; font-size: clamp(1.4rem, 1.9vw, 2.3rem); letter-spacing: -0.015em; line-height: 1.05; }
.about-sec__body { grid-column: 5 / -1; }

.about-rows { list-style: none; margin: 0; padding: 0; }
.about-rows li + li .about-row { border-top: 1px solid var(--line); }
.about-row {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--gap);
  padding: .95rem 0; align-items: baseline; position: relative; transition: padding .35s var(--ease), color .2s;
}
.about-row .c-date { color: var(--grey); font-variant-numeric: tabular-nums; font-size: .92rem; }
.about-row .c-main { font-size: clamp(1.05rem, 1.25vw, 1.45rem); letter-spacing: -0.005em; line-height: 1.2; }
.about-row .c-sub { color: var(--soft); }
.about-row .arr { margin-left: .35em; color: var(--grey); transition: color .2s; }
a.about-row:hover .arr { color: var(--accent); }
.about-rows li:first-child .about-row { padding-top: 0; }
a.about-row:hover .c-main, .about-row:hover .c-main { color: var(--ink); }
.about-row::before {
  content: ""; position: absolute; left: -1.1rem; top: 50%; width: .45rem; height: .45rem; border-radius: 50%;
  background: var(--accent); transform: translateY(-50%) scale(0); transition: transform .35s var(--ease);
}
.about-row:hover::before { transform: translateY(-50%) scale(1); }
.about-rows li:first-child .about-row::before { top: calc(50% - .475rem); }
a.about-row:hover .c-main { color: var(--accent); }
.about-sec--features .about-row { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
.about-sec--features .c-date { display: none; }

.about-clients { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15em .45em;
  font-size: clamp(1.7rem, 3vw, 3.9rem); line-height: 1.08; letter-spacing: -0.025em; }
.about-clients li { transition: color .25s; }
.about-clients li:not(:last-child)::after { content: ","; color: var(--grey); }
.about-clients li:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .about-hero__photo { grid-column: 1 / span 3; }
  .about-hero__text { grid-column: 5 / -1; }
  .about-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
  .about-sec__head { grid-column: 1 / span 3; }
  .about-sec__body { grid-column: 4 / -1; }
}
@media (max-width: 760px) {
  .about-hero { grid-template-columns: 1fr; padding-top: 2rem; row-gap: 2rem; }
  .about-hero__photo, .about-hero__text { grid-column: 1 / -1; }
  .about-hero__photo { width: 44%; }
  .about-sec { grid-template-columns: 1fr; row-gap: 1.6rem; }
  .about-sec__head, .about-sec__body { grid-column: 1 / -1; position: static; }
  .about-row { grid-template-columns: 1fr; gap: .15rem; }
  .about-row::before { display: none; }
  .about-sec--features .about-row { grid-template-columns: 1fr; }
  .about-clients { font-size: clamp(1.6rem, 7.4vw, 2.4rem); }
}

/* misc: zoom dial — a ruler that slides under a fixed mark, like a lens ring */
.zoom { display: flex; align-items: center; gap: .1rem; margin-left: .25rem; padding-left: .45rem; border-left: 1px solid var(--line);
  max-width: 14rem; overflow: hidden; transition: max-width .45s var(--ease), opacity .3s, margin .45s var(--ease), padding .45s var(--ease); }
.swipe[data-view="swipe"] .zoom { max-width: 0; opacity: 0; margin-left: 0; padding-left: 0; border-left-color: transparent; pointer-events: none; }
.swipe__views .zoom__btn { padding: .4rem .55rem; font-size: 1.05rem; line-height: 1; color: var(--ink); }
.swipe__views .zoom__btn:hover { background: var(--pill-hover); }
.zoom__track { position: relative; width: 6.5rem; height: 1.9rem; cursor: ew-resize; touch-action: none; border-radius: 999px; outline: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.zoom__track:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ink); }
.zoom__ticks { position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 32px) calc(var(--z, .5) * -224px + 3.25rem) 50% / 32px 62% no-repeat repeat,
    repeating-linear-gradient(90deg, var(--grey) 0 1px, transparent 1px 8px) calc(var(--z, .5) * -224px + 3.25rem) 50% / 8px 34% no-repeat repeat;
  background-repeat: repeat-x; transition: background-position .12s linear; }
.zoom.is-turning .zoom__ticks { transition: none; }
.zoom__mark { position: absolute; left: 50%; top: 12%; bottom: 12%; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
@media (max-width: 760px) {
  .zoom__track { width: 4.5rem; }
  .swipe__views button { padding: .5rem .6rem; }
  .swipe__views .vi { display: none; }
}

.about-hero__text .intro__text--bio { margin-top: -0.12em; }
.swipe__info .small-head { transition: opacity .35s var(--ease); }
.swipe.is-scrolled .swipe__info .small-head { opacity: 0; }

/* mixes: audio-reactive aura (tiny canvas, scaled + blurred) */
.mixes__aura { position: fixed; inset: -12%; width: 124%; height: 124%; z-index: 0; pointer-events: none;
  filter: blur(48px) saturate(1.1); --aura-max: .42; opacity: calc(var(--aura-max) * (0.35 + var(--e, .12) * 0.9)); }
[data-theme="dark"] .mixes__aura { mix-blend-mode: screen; --aura-max: .8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mixes__aura { mix-blend-mode: screen; --aura-max: .8; } }
.page-mixes .site-header, .page-mixes main { position: relative; z-index: 1; }
.page-mixes .site-header { position: sticky; }
.page-mixes { background-image: none; }

/* misc: arrange-by-colour toggle */
.swipe__views .swipe__colour { margin-left: .2rem; }
.swipe__views .swipe__colour::before { content: ""; position: absolute; }
.vi--colour { position: relative; width: .95rem; height: .95rem; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.15); }
.vi--colour::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, #ff3b30, #ff9500, #ffcc00, #34c759, #00c7be, #007aff, #5856d6, #af52de, #ff2d55, #ff3b30); }
.vi--colour::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.7) 0, rgba(255,255,255,0) 45%),
              radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,.22) 100%); }
.swipe__views .swipe__colour:hover .vi--colour::before { animation: pinwheel .9s linear infinite; }
.swipe__views .swipe__colour[aria-pressed="true"] .vi--colour::before { animation: pinwheel .55s cubic-bezier(.3,.1,.2,1) 1; }
@media (prefers-reduced-motion: reduce) { .swipe__views .swipe__colour .vi--colour::before { animation: none !important; } }
.swipe__views .swipe__colour[aria-pressed="true"] { background: var(--pill-hover); color: var(--ink); }
@media (max-width: 760px) {
  .swipe__views .swipe__colour { font-size: 0; gap: 0; padding: .5rem .6rem; }
  .swipe__views .swipe__colour .vi--colour { display: block; width: .95rem; height: .95rem; }
}

/* about: no photo — statement leads, facts run full width */
.about-hero { align-items: start; }
.about-hero__text { grid-column: 1 / -1; }
.about-hero__text .intro__text--bio { font-size: clamp(2.2rem, 4.1vw, 5.6rem); max-width: 16em; }
.about-hero__text .about-facts { max-width: none; }
@media (max-width: 1100px) { .about-hero__text { grid-column: 1 / -1; } }

/* touch: comfortable tap targets */
@media (max-width: 760px), (hover: none) {
  .swipe__views .zoom__btn { min-width: 2.25rem; min-height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
  .mixes__rail { gap: .1rem .2rem; }
  .mixes__rail button { min-height: 2.25rem; min-width: 2.25rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 .35rem; font-size: .82rem; }
}
@media (max-width: 760px), (hover: none) { .mixes__label a, .mixes__meta a { display: inline-block; padding: .55rem 0; margin: -.55rem 0; } }

/* homepage: tighter rhythm, two facts */
.page-home .intro { padding: clamp(3.5rem, 9vw, 8rem) var(--pad) clamp(1.8rem, 3vw, 2.8rem); }
.page-home .work { padding-top: clamp(2.8rem, 5.5vw, 5rem); }
.facts--two p:first-child { grid-column: 1 / span 2; }
.facts--two p:last-child { grid-column: 3 / span 2; }
.about-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .page-home .intro { padding-top: 3rem; }
  .facts--two p:first-child, .facts--two p:last-child { grid-column: auto; }
  .about-facts { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- header v2: grouped, content-width pills */
@media (min-width: 761px) {
  .pills { display: flex; align-items: center; gap: var(--gap); }
  .pills > .pill--name { flex: 0 1 auto; justify-content: flex-start; gap: 1.4rem; margin-right: auto; min-width: 0; }
  .pills > .pill:not(.pill--name):not(.pill--theme) { flex: 0 0 auto; padding: 0 1.2rem; justify-content: center; }
  .pills > .pill--menu { padding: 0 !important; }
  .pills > .pill--menu .pill__btn { padding: 0 1.2rem; gap: .65rem; justify-content: center; }
  .dropdown--work, .dropdown--contact { left: auto; right: 0; }
  .dropdown--work { min-width: 26rem; }
}
.pill--name .pill__r { display: inline-block; max-width: 22rem; transition: max-width .55s var(--ease), opacity .35s var(--ease), margin .55s var(--ease); }
/* flex out on hover: the hovered pill breathes, its neighbours make room */
@media (hover: hover) and (min-width: 761px) {
  .pills > .pill:not(.pill--name):not(.pill--theme):not(.pill--menu),
  .pills > .pill--menu .pill__btn { transition: padding .5s var(--ease), background .25s var(--ease), color .25s var(--ease); }
  .pills > .pill:not(.pill--name):not(.pill--theme):not(.pill--menu):hover { padding: 0 2rem; }
  .pills > .pill--menu:hover .pill__btn, .pills > .pill--menu.is-open .pill__btn { padding: 0 2rem; }
  .pills > .pill--name:hover { padding-right: 1.9rem; }
  .pills > .pill--name { transition: padding .5s var(--ease), background .25s var(--ease); }
}
/* shrink on scroll */
.pill, .pill__btn, .pill--theme { transition-property: background, color, padding, min-height, width; }
html.is-scrolled .site-header { padding-top: calc(var(--pad) * .6); }
html.is-scrolled .pill, html.is-scrolled .pill__btn { min-height: 2.35rem; }
html.is-scrolled .pills > .pill--theme { min-height: 2.35rem; width: 2.35rem; }
html.is-scrolled .pill--name .pill__r { max-width: 0; opacity: 0; margin-left: -1.4rem; }
.site-header { transition: padding .45s var(--ease); }
@media (max-width: 760px) {
  html.is-scrolled .pill--name .pill__r { max-width: 6rem; opacity: 1; margin-left: 0; }
  html.is-scrolled .pill, html.is-scrolled .pill__btn, html.is-scrolled .pills > .pill--theme { min-height: 2.6rem; }
}

/* ---------------------------------------------------------------- mixes: custom player */
.page-mixes .mixes__player.mp {
  display: grid; grid-template-columns: auto minmax(0, 16rem) minmax(0, 1fr) auto; align-items: center; gap: 1.1rem;
  margin: .6rem 0 calc(var(--pad) + env(safe-area-inset-bottom)); padding: .45rem .9rem .45rem .45rem; border-radius: 999px;
  background: color-mix(in srgb, var(--pill) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
}
.mp__toggle { all: unset; box-sizing: border-box; cursor: pointer; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--ink); color: var(--bg); display: grid; place-items: center; transition: transform .3s var(--ease), background .25s; flex: none; }
.mp__toggle:hover { transform: scale(1.06); }
.mp__toggle:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.mp__icon { width: 0; height: 0; margin-left: .18rem; border-top: .42rem solid transparent; border-bottom: .42rem solid transparent; border-left: .68rem solid currentColor; }
.mp.is-playing .mp__icon { margin-left: 0; width: .62rem; height: .75rem; border: 0;
  background: linear-gradient(90deg, currentColor 0 34%, transparent 34% 66%, currentColor 66%); }
.mp__now { display: flex; gap: .55rem; align-items: baseline; min-width: 0; white-space: nowrap; }
.mp__n { color: var(--grey); font-variant-numeric: tabular-nums; }
.mp__t { overflow: hidden; text-overflow: ellipsis; }
.mp__bar { position: relative; height: 1.6rem; cursor: pointer; touch-action: none; display: flex; align-items: center; outline: none; }
.mp__track { position: relative; display: block; width: 100%; height: 2px; background: var(--line); border-radius: 2px; transition: height .25s var(--ease); }
.mp__bar:hover .mp__track, .mp.is-seeking .mp__track, .mp__bar:focus-visible .mp__track { height: 4px; }
.mp__fill { position: absolute; inset: 0; background: var(--ink); border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0); }
.mp__head { position: absolute; top: 50%; left: 0; width: .7rem; height: .7rem; margin: -.35rem 0 0 -.35rem; border-radius: 50%;
  background: var(--ink); transform: scale(0); transition: transform .25s var(--ease); }
.mp.is-playing .mp__head, .mp__bar:hover .mp__head, .mp.is-seeking .mp__head { transform: scale(1); }
.mp__time { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .92rem; }
/* SoundCloud's own widget stays loaded but out of sight; it only appears if the browser blocks our controls */
.mp__sc { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; left: 0; bottom: 0; }
.mp__note { grid-column: 1 / -1; margin: 0; color: var(--soft); font-size: .86rem; }
.mp.is-native { border-radius: var(--radius-xl); }
.mp.is-native .mp__sc { position: static; width: 100%; height: 20px; opacity: 1; pointer-events: auto; grid-column: 1 / -1; }
.mp.is-native .mp__bar, .mp.is-native .mp__time, .mp.is-native .mp__toggle { display: none; }
.page-mixes .mixes__player.mp { position: relative; }
@media (max-width: 760px) {
  .page-mixes .mixes__player.mp { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: .2rem; border-radius: 1.4rem; padding: .55rem .8rem .55rem .55rem; }
  .mp__bar { grid-column: 1 / -1; order: 5; height: 1.4rem; }
  .mp__now { grid-column: 2; }
}
.mp__idle { color: var(--soft); white-space: nowrap; }
.mp:not(.has-mix) .mp__now .mp__n, .mp:not(.has-mix) .mp__now .mp__t { display: none; }
.mp.has-mix .mp__idle { display: none; }
.mp.is-native { border-radius: calc(var(--radius-xl) * 2); padding: .6rem .8rem; }
.mp.is-native .mp__now { display: none; }

/* no orphans: balance big headlines, tidy rag on body copy */
.display, .intro__text, .project__title, .about-sec__head h2, .about-row .c-main { text-wrap: balance; }
p, dd, .project__desc, .about-facts dd { text-wrap: pretty; }
/* keep header dropdowns above the Mixes stage */
.page-mixes .site-header { z-index: 60; }

/* gallery: stacked cells + lone half-width pieces */
.gallery .cell--stack { display: flex; flex-direction: column; gap: var(--gap); }
.gallery .row--half-right { justify-content: flex-end; }
.gallery .row--half-left { justify-content: flex-start; }
@media (max-width: 760px) { .gallery .row--half-right .cell, .gallery .row--half-left .cell { width: 100%; } }

/* about: hover dot sits on the first line, not the middle of the row */
.about-row::before { top: calc(.95rem + clamp(1.05rem, 1.25vw, 1.45rem) * .62); transform: translateY(-50%) scale(0); }
.about-row:hover::before { transform: translateY(-50%) scale(1); }
.about-rows li:first-child .about-row::before { top: calc(clamp(1.05rem, 1.25vw, 1.45rem) * .62); }

/* about: skills */
.about-sec--skills .about-sec__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); gap: var(--gap); }
.about-skills__h { margin: 0 0 .8rem; font-weight: 400; font-size: .92rem; color: var(--grey); }
.about-skills__list { list-style: none; margin: 0; padding: 0; }
.about-skills__list li { padding: .5rem 0; border-top: 1px solid var(--line); font-size: clamp(1.05rem, 1.25vw, 1.45rem); line-height: 1.2; transition: color .2s, padding .35s var(--ease); }
.about-skills__list li:hover { color: var(--accent); padding-left: .35rem; }
.about-skills__col:last-child .about-skills__list li { font-size: 1rem; color: var(--soft); padding: .55rem 0; }
.about-skills__col:last-child .about-skills__list li:hover { color: var(--ink); }
@media (max-width: 760px) { .about-sec--skills .about-sec__body { grid-template-columns: 1fr; row-gap: 2rem; } }

/* ---------------------------------------------------------------- colour palettes */
:root[data-palette="green"]  { --pb: #12330d; --pi: #72ff4f; }
:root[data-palette="yellow"] { --pb: #36300a; --pi: #ffff55; }
:root[data-palette="pink"]   { --pb: #33042a; --pi: #ee33aa; }
:root[data-palette="orange"] { --pb: #2a201f; --pi: #e0662d; }
:root[data-palette] {
  color-scheme: dark;
  --bg: var(--pb);
  --ink: var(--pi);
  --soft: color-mix(in srgb, var(--pi) 74%, var(--pb));
  --grey: color-mix(in srgb, var(--pi) 52%, var(--pb));
  --pill: color-mix(in srgb, var(--pi) 11%, var(--pb));
  --pill-hover: color-mix(in srgb, var(--pi) 19%, var(--pb));
  --line: color-mix(in srgb, var(--pi) 24%, transparent);
  --frame: color-mix(in srgb, var(--pi) 7%, var(--pb));
  --accent: color-mix(in srgb, var(--pi) 70%, #ffffff);
  --on-accent: var(--pb);
}
/* active pill: solid palette colour with the dark tone as text */
:root[data-palette] .pill.is-active, :root[data-palette] .pill--menu.is-active::before { background: var(--pi); }
:root[data-palette] .pill.is-active, :root[data-palette] .pill.is-active .pill__btn, :root[data-palette] .pill--menu.is-active { color: var(--pb); }
/* everything the dark theme adjusts, palettes adjust too */
:root[data-palette] .dropdown { box-shadow: 0 10px 40px rgba(0,0,0,.45); }
:root[data-palette] .frame.is-light::after, :root[data-palette] .swipe__item.is-light .swipe__frame::after { box-shadow: none; }
:root[data-palette] .swipe[data-view="canvas"] .swipe__frame { box-shadow: 0 14px 40px rgba(0,0,0,.4); }
:root[data-palette] .page-mixes { --tint-amt: 18%; }
:root[data-palette] .mixes__aura { mix-blend-mode: screen; --aura-max: .7; }
:root[data-palette] .theme-dot { transform: none; }
:root[data-palette] ::selection { background: var(--pi); color: var(--pb); }
:root[data-palette] .facts a, :root[data-palette] .entry a, :root[data-palette] .footer-meta a { text-decoration-color: var(--line); }

/* the palette button: a tiny version of the swatches — dark tile, bright bar */
.pill--palette { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto;
  min-height: 2.75rem; width: 2.75rem; border-radius: 999px; background: color-mix(in srgb, var(--pill) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); transition: background .25s var(--ease), min-height .45s var(--ease), width .45s var(--ease); }
.pill--palette:hover { background: var(--pill-hover); }
.pill--palette:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.swatch { position: relative; width: 1.15rem; height: 1.15rem; border-radius: 50%; overflow: hidden;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.15); }
.swatch::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 20deg, #ff3b30, #ff9500, #ffcc00, #34c759, #00c7be, #007aff, #5856d6, #af52de, #ff2d55, #ff3b30); }
.swatch::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.7) 0, rgba(255,255,255,0) 45%),
              radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,.22) 100%); }
.pill--palette:hover .swatch::before { animation: pinwheel .9s linear infinite; }
.pill--palette.is-spinning .swatch::before { animation: pinwheel .55s cubic-bezier(.3,.1,.2,1) 1; }
@keyframes pinwheel { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pill--palette:hover .swatch::before, .pill--palette.is-spinning .swatch::before { animation: none; } }
html.is-scrolled .pill--palette { min-height: 2.35rem; width: 2.35rem; }
@media (max-width: 760px) { .pill--palette { min-height: 2.6rem; width: 2.6rem; } html.is-scrolled .pill--palette { min-height: 2.6rem; width: 2.6rem; } }
