/* ============================================================
   JKRLZ.com — review build stylesheet
   Layout: a single editorial column with full-bleed bands.
   Light ivory page, one dark band (Music & Artists).
   Artwork carries the identity; type and motion support it.
   ============================================================ */
:root {
  --ivory: #EEEAE2;
  --ivory-2: #E4DFD4;      /* placeholder fills on light */
  --ink: #1C1B19;
  --ink-2: #2A2825;        /* placeholder fills on dark */
  --ink-3: #3E3B36;        /* body text on ivory */
  --rule: #C9C2B5;         /* hairlines on ivory */
  --rule-dark: #4A463F;    /* hairlines on ink */
  --muted: #5B5750;        /* eyebrows on ivory */
  --muted-dark: #B8B1A4;   /* eyebrows on ink */
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 4vw, 56px);
  --ease-out: cubic-bezier(.2, .8, .1, 1);
  --ease-soft: cubic-bezier(.2, .7, .2, 1);
  --glow: rgba(255,255,255,.75);
  --shadow: 28, 27, 25;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ivory: #1C1B19; --ivory-2: #2A2825;
  --ink: #EEEAE2;   --ink-2: #E4DFD4;  --ink-3: #C9C2B5;
  --rule: #4A463F;  --rule-dark: #C9C2B5;
  --muted: #B8B1A4; --muted-dark: #5B5750;
  --glow: rgba(255,255,255,.06);
  --shadow: 0, 0, 0;
  color-scheme: dark;
}
html.theme-fade, html.theme-fade * { transition: background-color .6s ease, color .6s ease, border-color .6s ease !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], #artists { scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 10px 14px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- type scale ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--muted);
}
.dark .eyebrow { color: var(--muted-dark); }
.display {
  margin: 0; font-weight: 900; font-stretch: 118%;
  font-size: clamp(40px, 6.5vw, 96px); line-height: .9; letter-spacing: -.035em;
  text-wrap: balance;
}
.display .line { display: block; overflow: hidden; }
.display .word { display: inline-block; }
.serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
}
.body-copy { margin: 0; color: var(--ink-3); max-width: 46ch; text-wrap: pretty; }
.dark .body-copy { color: var(--muted-dark); }

/* ---------- gutters / bands ---------- */
.wrap {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(72px, 10vw, 140px); }
.dark { background: var(--ink); color: var(--ivory); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px));
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: #EEEAE2; mix-blend-mode: difference;   /* fixed light value: difference turns it dark on light ground and light on dark, in either theme */
}
@media (min-width: 760px) { .site-header { box-sizing: border-box; height: calc(74px + env(safe-area-inset-top, 0px)); } }
.site-header .brand { font-weight: 800; font-stretch: 125%; font-size: 14px; letter-spacing: .08em; }
/* dock: an ink pill of dim labels; a glossy lens slides to the hovered / active item and lights it up */
.site-nav.dock {
  position: fixed; z-index: 51; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 0; padding: 0 6px; height: 42px; border-radius: 999px;
  background: linear-gradient(180deg, #23211e, #121110); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px -12px rgba(0,0,0,.6);
  isolation: isolate;
}
.site-nav.dock a {
  position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 84px; height: 42px; padding: 0 12px; color: rgba(238,234,226,.42); font-size: 10.5px; letter-spacing: .12em;
  transition: color .35s var(--ease-soft);
}
.site-nav.dock a::before { content: attr(data-glyph); font-size: 13px; line-height: 1; letter-spacing: 0; transition: transform .5s var(--ease-soft), opacity .35s; }
.site-nav.dock a::after { content: none; }
.site-nav.dock a span { line-height: 1; }
.site-nav.dock a.is-lit { color: #EEEAE2; }   /* the dock is ink in both themes, so its light text is fixed, not var(--ivory) */
.site-nav.dock a.is-lit::before { transform: translateY(-1px) scale(1.15); }
.site-nav.dock a:focus-visible { outline: 2px solid #EEEAE2; outline-offset: -4px; border-radius: 12px; }
.dock-lens {
  position: absolute; z-index: 1; top: -8px; height: 58px; left: 0; width: 84px; border-radius: 18px;
  background: linear-gradient(180deg, #34312c 0%, #1C1B19 45%, #0e0d0c 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(255,255,255,.28), inset 0 10px 14px -8px rgba(255,255,255,.22), 0 10px 22px -8px rgba(0,0,0,.7);
  transform: translateX(var(--x, 0px)); opacity: 0;
  transition: transform .62s cubic-bezier(.3, 1.35, .35, 1), width .62s cubic-bezier(.3, 1.35, .35, 1), opacity .3s;
}
.dock-lens.is-on { opacity: 1; }
.dock-lens::before { content: ""; position: absolute; left: 14%; right: 14%; top: 3px; height: 7px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0)); }
.dock-lens::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 3px; height: 5px; border-radius: 999px; background: linear-gradient(0deg, rgba(255,255,255,.45), rgba(255,255,255,0)); }
.dark .site-nav.dock, :root[data-theme="dark"] .site-nav.dock { background: linear-gradient(180deg, #2b2925, #171614); }
@media (prefers-reduced-motion: reduce) { .dock-lens { transition: opacity .2s; } .site-nav.dock a::before { transition: none; } }
.header-tools { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.theme-toggle { background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; }
.theme-toggle[hidden] { display: none; }
.tt-track {
  position: relative; display: block; width: 46px; height: 24px; border-radius: 999px;
  border: 1px solid currentColor; opacity: .9;
  transition: opacity .3s;
}
.tt-knob {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  transition: transform .55s cubic-bezier(.34, 1.4, .64, 1), box-shadow .55s ease;
}
.tt-knob::after {   /* the moon bite: appears only in the dark position */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 70% 30%, var(--ivory) 0 38%, transparent 40%);
  opacity: 0; transition: opacity .4s ease .15s;
}
.theme-toggle[aria-pressed="true"] .tt-knob { transform: translateX(22px); }
.theme-toggle:hover .tt-knob { box-shadow: 0 0 14px 0 currentColor; }
.theme-toggle:active .tt-knob { transform: scale(.9) translateX(var(--tt-x, 0)); }
.theme-toggle[aria-pressed="true"]:active .tt-knob { --tt-x: 22px; }
.menu-btn {
  display: none; background: none; border: 0; cursor: pointer;
  letter-spacing: .14em; text-transform: uppercase; min-height: 44px; padding: 0 4px;
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--ink); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-weight: 900; font-stretch: 118%; font-size: clamp(40px, 12vw, 56px); line-height: 1.1; letter-spacing: -.03em; padding: 6px 0;
  opacity: 0; transform: translateY(18px);
  animation: menuIn .7s var(--ease-out) forwards;
}
.mobile-menu a:nth-child(2) { animation-delay: .06s } .mobile-menu a:nth-child(3) { animation-delay: .12s }
.mobile-menu a:nth-child(4) { animation-delay: .18s } .mobile-menu a:nth-child(5) { animation-delay: .24s }
.mobile-menu .eyebrow { margin-top: 32px; color: var(--muted-dark); }
@keyframes menuIn { to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: calc(88px + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(24px, 3vw, 40px);
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% 80%, var(--glow), transparent 70%);
}
/* Breath particles (sparkle.js): fixed behind the page from the hero through Selected Work */
.breath-field {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
}
.breath-field.is-on { opacity: 1; }
.breath-field.is-on.is-off { opacity: 0; transition-duration: .5s; }
.wordmark {
  position: relative; z-index: 2; margin: 0;
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(72px, 18vw, 340px); line-height: .84; letter-spacing: -.05em;
  text-align: center; user-select: none;
  padding: 0 clamp(12px, 2vw, 32px);
}
.wordmark .l { display: inline-block; overflow: hidden; vertical-align: bottom; }
.wordmark .l > span { display: inline-block; transform: translateY(110%); animation: letterIn 1.1s var(--ease-out) forwards; }
.wordmark .l:nth-child(1) > span { animation-delay: .05s } .wordmark .l:nth-child(2) > span { animation-delay: .12s }
.wordmark .l:nth-child(3) > span { animation-delay: .19s } .wordmark .l:nth-child(4) > span { animation-delay: .26s }
.wordmark .l:nth-child(5) > span { animation-delay: .33s }
@keyframes letterIn { to { transform: none; } }

/* desktop ring: the roster cards stand on a 3D carousel you can drag (desktop/tablet) */
.shelf {
  --card-w: clamp(108px, 10.5vw, 160px);
  --ring-r: calc(var(--card-w) * 2.35);                /* wide ring: all eight cards stay in view, back row small and dim */
  position: relative; z-index: 1;
  height: calc(var(--card-w) * 16 / 9 + 110px);
  perspective: 2200px; perspective-origin: 50% 30%;
  touch-action: pan-y; user-select: none; cursor: grab;
  outline-offset: 12px;
}
.shelf.is-dragging { cursor: grabbing; }
.ring {
  position: absolute; left: 50%; top: 24px; width: var(--card-w); height: calc(var(--card-w) * 16 / 9);
  margin-left: calc(var(--card-w) / -2);
  transform-style: preserve-3d; will-change: transform;
}
.shelf-card {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--a)) translateZ(var(--ring-r));
  opacity: 0; animation: cardIn 1.2s var(--ease-soft) forwards; animation-delay: calc(.5s + var(--i) * .08s);
}
.shelf-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: var(--ivory-2);
  box-shadow: 0 40px 80px -30px rgba(var(--shadow), .55);
  filter: brightness(var(--lum, 1));
  transition: filter .2s linear;
}
.shelf-card img.back { transform: rotateY(180deg); visibility: hidden; }   /* shown by JS when the card faces away, so it reads correctly from behind */
.shelf-card.is-back img:not(.back) { visibility: hidden; }
.shelf-card.is-back img.back { visibility: visible; }
.shelf-card::after {                                   /* floor reflection */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40%;
  background: var(--card-src) center top / 100% auto no-repeat;
  transform: scaleY(-1); transform-origin: top;
  opacity: .14; mask-image: linear-gradient(#000, transparent 70%); -webkit-mask-image: linear-gradient(#000, transparent 70%);
  pointer-events: none;
}
@keyframes cardIn { from { opacity: 0; transform: rotateY(var(--a)) translateZ(calc(var(--ring-r) * .4)) translateY(80px); } to { opacity: 1; transform: rotateY(var(--a)) translateZ(var(--ring-r)); } }
.ring-caption {
  position: absolute; left: 24px; bottom: 10px; pointer-events: none;
  display: flex; align-items: baseline; gap: 10px;
}
.ring-caption .n { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1; transition: opacity .25s; }
.ring-caption .l { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ring-caption.is-swapping .n { opacity: 0; }
.ring-hint { position: absolute; right: 24px; bottom: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; pointer-events: none; transition: opacity .5s; }
.ring-hint::before { content: "←"; } .ring-hint::after { content: "→"; }
.shelf.has-dragged .ring-hint { opacity: 0; }

/* mobile strip: a different composition, not a shrunk shelf */
.strip {
  display: none; gap: 12px; overflow-x: auto;
  padding: 24px max(20px, env(safe-area-inset-right, 0px)) 8px max(20px, env(safe-area-inset-left, 0px));
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip::-webkit-scrollbar { display: none; }
.strip figure { margin: 0; flex: 0 0 58vw; max-width: 300px; scroll-snap-align: center; }
.strip img {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ivory-2);
  box-shadow: 0 20px 40px -18px rgba(var(--shadow), .45);
  transition: transform .6s var(--ease-soft);
}
.strip-tap { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 2px; }
.strip-tap:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.strip figure.is-centre img { transform: translateY(-6px); }
.strip figcaption { display: flex; justify-content: space-between; padding-top: 8px; font-size: 12px; }
.strip figcaption span:last-child { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 10px; }

.hero-foot {
  position: relative; z-index: 5;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-top: clamp(20px, 3vw, 36px);
  opacity: 0; animation: fadeUp 1.2s var(--ease-soft) .6s forwards;
}
.hero-foot .lead { display: flex; flex-direction: column; gap: 18px; }
.hero-foot .serif { margin: 0; font-size: clamp(26px, 3vw, 44px); line-height: 1.05; }
.hero-foot .statement { font-size: 14px; max-width: 34ch; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px;
  border-radius: 999px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--ink); cursor: pointer;
  transition: transform .4s var(--ease-soft), background .3s, color .3s;
}
.btn-solid { background: var(--ink); color: var(--ivory); }
.btn-solid:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); transform: translateY(-2px); }
.dark .btn { border-color: var(--ivory); }
.dark .btn-solid { background: var(--ivory); color: var(--ink); }
.dark .btn-solid:hover { background: #fff; }

/* ---------- section headers ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head .count { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- selected work ---------- */
.work-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); }
.work-current, .scroll-cue, .work-index { display: none; }
.work-cur-title { font-size: clamp(18px, 1.5vw, 24px); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
@media (min-width: 1000px) {
  .work-layout { grid-template-columns: minmax(220px, 1fr) minmax(0, 560px) minmax(96px, 1fr); column-gap: clamp(32px, 4vw, 72px); align-items: start; }
  .work-side { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 28px; min-width: 0; }
  .work-side .section-head { margin-bottom: 0; flex-direction: column; align-items: flex-start; gap: 12px; }
  .work-current { display: flex; flex-direction: column; gap: 8px; min-height: 96px; padding-top: 20px; border-top: 1px solid var(--ink); }
  .work-current > * { transition: opacity .35s ease, transform .45s var(--ease-soft); }
  .work-current.is-swapping > * { opacity: 0; transform: translateY(8px); }
  .scroll-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; }
  .cue-line { display: inline-block; width: 40px; height: 1px; background: var(--muted); position: relative; overflow: hidden; }
  .cue-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); animation: cue 2.4s cubic-bezier(.7,0,.3,1) infinite; }
  @keyframes cue { 0% { transform: translateX(-100%) } 60%, 100% { transform: translateX(100%) } }

  .work-grid { display: flex; flex-direction: column; gap: clamp(64px, 9vh, 120px); padding-block: 8vh; }
  .work-grid .work { position: relative; width: 100%; }
  .work-grid .work .work-meta { display: none; }     /* the sticky column carries the caption on desktop */
  .work-grid .work .work-tag {
    position: absolute; right: -22px; top: 0; writing-mode: vertical-rl; transform-origin: top right;
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
  }
  .work-par { width: 100%; height: 100%; }
  @supports (animation-timeline: view()) {
    .work-grid .work-media .work-par { animation: workPar linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .work-grid .work-media { animation: workIn linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
  @keyframes workPar { from { transform: translateY(-5%) scale(1.1); } to { transform: translateY(5%) scale(1.1); } }
  @keyframes workIn { from { opacity: .3; transform: scale(.96); } to { opacity: 1; transform: none; } }
  .work-grid .work-media.is-contain .work-par, .work-grid .work-media.is-full .work-par { animation: none; }   /* roster card / group portrait are never cropped */

  .work-index {
    display: flex; flex-direction: column; gap: 10px; position: sticky; top: calc(96px + env(safe-area-inset-top, 0px));
    justify-self: end; align-items: flex-end;
  }
  .work-index button {
    width: 56px; aspect-ratio: 1; padding: 0; border: 0; cursor: pointer; background: var(--ivory-2); overflow: hidden;
    opacity: .45; transition: opacity .35s ease, transform .45s var(--ease-soft); position: relative;
  }
  .work-index button img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .work-index button.is-contain img { object-fit: contain; }
  .work-index button:hover, .work-index button:focus-visible { opacity: .85; }
  .work-index button[aria-current="true"] { opacity: 1; transform: translateX(-8px); }
  .work-index button[aria-current="true"]::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--ink); pointer-events: none; }
  .js .work-index:not(.is-in) button { opacity: 0; transform: translateX(28px); }
  .js .work-index.is-in button { animation: thumbIn .8s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms + .2s); }
  @keyframes thumbIn { from { opacity: 0; transform: translateX(28px); } to { opacity: .45; transform: none; } }
  .js .work-index.is-in button[aria-current="true"] { animation-name: thumbInActive; }
  @keyframes thumbInActive { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(-8px); } }
}
@media (prefers-reduced-motion: reduce) {
  .work-grid .work-media, .work-grid .work-media .work-par { animation: none !important; }
  .cue-line::after { animation: none !important; }
  .js .work-index:not(.is-in) button, .js .work-index.is-in button { animation: none !important; opacity: .45; transform: none; }
  .js .work-index button[aria-current="true"] { opacity: 1 !important; }
}

.work-grid {
  display: grid; gap: clamp(24px, 3vw, 44px) clamp(16px, 2.5vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
}
.work { min-width: 0; }
.work-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
}
.work-media {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: var(--ratio, 1 / 1);
  background: var(--ivory-2); overflow: hidden;
}
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-soft); }
.work-media.is-contain img { object-fit: contain; }
.work-media img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-soft); }
.work-btn:hover .work-media.has-alt img.alt, .work-btn:focus-visible .work-media.has-alt img.alt { opacity: 1; }
.work-media.has-alt { position: relative; }
.dialog-media img.alt { display: none; }
@media (prefers-reduced-motion: reduce) { .work-media img.alt { transition: none; } }
.dialog-media.is-contain img { object-fit: contain; }
.work-btn:hover .work-media img, .work-btn:focus-visible .work-media img { transform: scale(1.03); }
.work-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--ink);
}
.work-meta h3 { margin: 0; font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.01em; }
.work-meta h3 { min-width: 0; }
.work-meta .kind { text-align: right; flex: 0 1 auto; }
.work-meta h3 { text-wrap: balance; }

/* development placeholder — never ships */
.placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(28,27,25,.06) 0 1px, transparent 1px 14px),
    var(--ivory-2);
  color: var(--muted); text-align: center; padding: 16px;
}
.dark .placeholder {
  background: repeating-linear-gradient(135deg, rgba(238,234,226,.07) 0 1px, transparent 1px 14px), var(--ink-2);
  color: var(--muted-dark);
}
.placeholder .serif { font-size: clamp(20px, 2.2vw, 30px); line-height: 1; }
.dev-tag {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px;
  background: var(--ink); color: var(--ivory); pointer-events: none;
}
.dark .dev-tag { background: var(--ivory); color: var(--ink); }

/* ---------- listen: device player (reference: neumorphic phone players) ---------- */
.listen {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
@media (min-width: 900px) { .listen { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); align-items: start; } }
.device {
  --dev-bg: var(--ivory); --dev-fg: var(--ink); --dev-mute: var(--muted); --dev-rule: var(--rule);
  position: relative; background: var(--dev-bg); color: var(--dev-fg);
  border-radius: 36px; padding: 28px 28px 24px; max-width: 420px; width: 100%;
  box-shadow: 0 60px 100px -40px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.5);
}
.device .eyebrow { color: var(--dev-mute); }
.dev-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 12px; }
.dev-switch { display: inline-flex; border: 1px solid var(--dev-rule); border-radius: 999px; padding: 2px; }
.dev-src { border: 0; background: none; color: var(--dev-mute); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; cursor: pointer; min-height: 28px; }
.dev-src[aria-pressed="true"] { background: var(--dev-fg); color: var(--dev-bg); }
.dev-links { display: flex; gap: 18px; flex-wrap: wrap; }
.device.is-apple .dev-play, .device.is-apple .dev-bar, .device.is-apple .dev-time { opacity: .35; pointer-events: none; }
.device.is-apple .dev-embed iframe { height: 175px; }
.device.is-apple.is-album .dev-embed iframe { height: 450px; }
a.link-btn { display: inline-block; text-decoration: none; line-height: 44px; }
.dev-artist { margin: 0 0 6px; }
.dev-title { margin: 0; font-weight: 900; font-stretch: 118%; font-size: clamp(26px, 2.4vw, 34px); line-height: .95; letter-spacing: -.03em; text-wrap: balance; min-height: 2em; }
.disc-wrap { position: relative; width: min(100%, 260px); aspect-ratio: 1; margin: 28px auto 20px; }
.arc { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.arc circle { fill: none; stroke-width: 2; }
.arc-bg { stroke: var(--dev-rule); }
.arc-fg { stroke: var(--dev-fg); stroke-dasharray: 892; stroke-dashoffset: 892; stroke-linecap: round; transition: stroke-dashoffset .3s linear; }
.disc {
  position: absolute; inset: 14px; border-radius: 50%; overflow: hidden;
  background: var(--ivory-2);
  box-shadow: 0 24px 40px -20px rgba(0,0,0,.55), inset 0 0 0 10px rgba(0,0,0,.06), inset 0 0 0 11px rgba(255,255,255,.25);
}
.disc-img { position: absolute; inset: 0; background: var(--ivory-2) center/cover no-repeat; }
.disc-hole { position: absolute; left: 50%; top: 50%; width: 14%; height: 14%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--dev-bg); box-shadow: inset 0 2px 6px rgba(0,0,0,.35), 0 0 0 3px rgba(0,0,0,.08); }
.disc.is-spinning .disc-img { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dev-time { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; color: var(--dev-mute); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.dev-bar { position: relative; height: 24px; cursor: pointer; }
.dev-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--dev-rule); border-radius: 2px; }
.dev-fill { position: absolute; left: 0; top: 11px; height: 2px; width: 0; background: var(--dev-fg); border-radius: 2px; }
.dev-knob { position: absolute; top: 5px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--dev-fg); transform: translateX(-50%); box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.dev-bar:focus-visible { outline-offset: 2px; }
.dev-ctrls { display: flex; justify-content: center; align-items: center; gap: 26px; margin-top: 22px; }
.dev-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--dev-bg); color: var(--dev-fg);
  box-shadow: 0 10px 20px -8px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(0,0,0,.08);
  transition: transform .25s var(--ease-soft), box-shadow .25s;
}
.dev-btn:hover { transform: translateY(-1px); }
.dev-btn:active { transform: translateY(1px); box-shadow: 0 4px 10px -6px rgba(0,0,0,.45), inset 0 2px 6px rgba(0,0,0,.18); }
.dev-btn svg { width: 20px; height: 20px; fill: currentColor; }
.dev-play { width: 64px; height: 64px; background: var(--dev-fg); color: var(--dev-bg); }
.dev-play .i-pause { display: none; }
.dev-play[aria-pressed="true"] .i-play { display: none; }
.dev-play[aria-pressed="true"] .i-pause { display: block; }
.dev-play[data-state="loading"] { opacity: .6; }
.dev-play[disabled] { opacity: .35; cursor: default; }
.dev-status { margin: 16px 0 0; text-align: center; min-height: 1.2em; }
.dev-embed { margin-top: 18px; border-radius: 14px; overflow: hidden; min-height: 0; }
.dev-embed iframe { display: block; width: 100%; height: 80px; border: 0; }
.dev-embed[hidden] { display: none; }
.dev-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid var(--dev-rule); padding-bottom: 2px; }
.dev-open:hover { color: var(--dev-mute); }
.dev-open[hidden] { display: none; }   /* .dev-open sets display, so [hidden] needs its own rule or a missing Apple link shows as a dead button */
.listen-list ol { list-style: none; margin: 0; padding: 0; }
.listen-list li { border-bottom: 1px solid #2F2D29; }
.listen-row {
  display: grid; grid-template-columns: 44px 56px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  width: 100%; padding: 12px 0; background: none; border: 0; cursor: pointer; text-align: left; color: inherit;
}
.listen-row .no { font-size: 12px; letter-spacing: .1em; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.listen-row .thumb { width: 56px; aspect-ratio: 1; background: var(--ink-2); overflow: hidden; }
.listen-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listen-row .thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted-dark); font-family: var(--font-serif); font-style: italic; font-size: 11px; }
.listen-row .t { font-weight: 600; font-size: 15px; min-width: 0; }
.listen-row .a { display: block; font-size: 12px; color: var(--muted-dark); letter-spacing: .06em; }
.listen-row .dur { font-size: 12px; color: var(--muted-dark); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.listen-row:hover .t, .listen-row:focus-visible .t { text-decoration: underline; text-underline-offset: 3px; }
.listen-row[aria-current="true"] .no { color: var(--ivory); }
.listen-row[aria-current="true"] .no::before { content: "▶ "; font-size: 9px; }
.dark .listen-list .catalog-head { border-color: var(--rule-dark); }
@media (max-width: 480px) { .listen-row { grid-template-columns: 32px 48px minmax(0,1fr); } .listen-row .dur { display: none; } .device { padding: 24px 20px 20px; } }
@media (prefers-reduced-motion: reduce) { .disc.is-spinning .disc-img { animation: none; } .arc-fg { transition: none; } }

/* ---------- music & artists (dark) ---------- */
.music { position: relative; overflow: clip; }
.music .section-head { align-items: end; }
.music .section-head .body-copy { justify-self: end; }

/* wipe: the light→dark boundary sweeps in with a fine spectral edge */
.wipe {
  position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(238,234,226,.55) 50%, transparent);
  opacity: 0;
}
.music.is-in .wipe { animation: wipe 1.4s var(--ease-soft) forwards; }
@keyframes wipe {
  0%   { opacity: 0; transform: translateX(-60%) scaleX(.4); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(60%) scaleX(.4); }
}
.music::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 160px; pointer-events: none;
  background: var(--ivory); transform-origin: top; transform: scaleY(1);
}
.music.is-in::before { animation: curtain 1.1s var(--ease-out) forwards; }
@keyframes curtain { to { transform: scaleY(0); } }

.releases {
  scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right, 0px)) 12px max(var(--gutter), env(safe-area-inset-left, 0px));
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.releases::-webkit-scrollbar { display: none; }
.release { flex: 0 0 clamp(220px, 24vw, 320px); scroll-snap-align: start; min-width: 0; }
/* From tablet up the six featured covers fit the viewport as one row — nothing is clipped. */
@media (min-width: 900px) {
  .releases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
  .release { flex: none; }
}
@media (min-width: 760px) and (max-width: 899px) {
  .releases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; row-gap: 32px; }
  .release { flex: none; }
}
.cover { position: relative; width: 100%; aspect-ratio: 1; background: var(--ink-2); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.release-meta { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.release-meta h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.release-meta .artists { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.release-meta .label { font-size: 12px; color: var(--muted-dark); }
.release-links { display: flex; gap: 14px; padding-top: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.release-links a { border-bottom: 1px solid var(--rule-dark); padding-bottom: 2px; }
.release-links a:hover { color: var(--muted-dark); }
.play {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--rule-dark); border-radius: 999px; background: none; cursor: pointer;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.play[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.play[data-state="loading"] { opacity: .6; }
.play[data-state="error"] { border-color: #b25555; color: #e6a3a3; }

.catalog { padding-top: clamp(48px, 6vw, 80px); }
.catalog-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule-dark); padding-bottom: 12px;
}
.catalog-head h3 { margin: 0; }
.link-btn {
  background: none; border: 0; border-bottom: 1px solid var(--rule-dark); cursor: pointer; min-height: 44px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 0;
}
.link-btn:hover { color: var(--muted-dark); }
.catalog ol { list-style: none; margin: 0; padding: 0; }
.catalog li {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) auto; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid #2F2D29; font-size: 15px;
}
.catalog li .t { font-weight: 600; min-width: 0; }
.catalog li .a { color: var(--muted-dark); font-size: 13px; min-width: 0; }
.catalog li time { color: var(--muted-dark); font-size: 12px; letter-spacing: .08em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.catalog li[hidden] { display: none; }
.catalog .sub { margin: 40px 0 0; border-bottom: 1px solid var(--rule-dark); padding-bottom: 12px; }
.catalog .upcoming .t { color: #D9D3C7; }
.catalog li.has-thumb { grid-template-columns: 44px minmax(0, 2fr) minmax(0, 1.4fr) auto; }
.row-thumb { width: 44px; aspect-ratio: 1; overflow: hidden; background: var(--ink-2); } .row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 759px) { .catalog li.has-thumb { grid-template-columns: 44px minmax(0, 1fr) auto; } }

.roster { padding-top: clamp(64px, 8vw, 112px); }
.roster-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.roster-head h3 { margin: 0; font-size: clamp(30px, 3.6vw, 56px); line-height: 1; }
.roster-grid {
  display: grid; gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.artist { margin: 0; min-width: 0; }
.artist .frame { width: 100%; aspect-ratio: 9 / 16; background: var(--ink-2); overflow: hidden; }
.artist img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-soft); }
.artist:hover img { transform: scale(1.04); }
.artist figcaption {
  display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
  padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--rule-dark);
}
.artist figcaption .n { font-size: 15px; font-weight: 600; }
.artist figcaption .lb { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); white-space: nowrap; }
@media (max-width: 480px) {
  .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
a.n { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .3s ease; }
a.n:hover, a.n:focus-visible { text-decoration-color: currentColor; }

/* ---------- YouTube channel network ---------- */
.channels { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(16px, 2vw, 24px); }
.channel-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.channel-grid li { background: var(--ink); min-width: 0; }
.channel { display: flex; align-items: center; gap: 14px; padding: 16px; min-height: 44px; transition: background-color .3s ease; }
.channel:hover, .channel:focus-visible { background: var(--ink-2); }
.channel img { width: 52px; height: 52px; border-radius: 50%; flex: none; object-fit: cover; background: var(--ink-2); }
.ch-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ch-name { font-weight: 600; font-size: 15px; }
.ch-handle { font-size: 12px; color: var(--muted-dark); }
.ch-line { font-size: 12px; opacity: .8; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.looks-page { margin-top: 16px; }

/* ---------- what we create ---------- */
.typeline { margin: 20px 0 0; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.1; color: var(--ink-3); min-height: 1.2em; }
.typed { color: var(--ink); }
.caret { display: inline-block; width: 2px; height: .95em; background: var(--ink); vertical-align: -.12em; margin-left: 3px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }
.js [data-reveal][style*="--i"] { transition-delay: calc(var(--i) * 70ms); }

.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  border-top: 1px solid var(--ink);
}
.service {
  padding: clamp(24px, 3vw, 40px) clamp(0px, 2vw, 28px) clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.service h3 { margin: 0; font-size: clamp(30px, 3.2vw, 48px); line-height: 1; }
.service p { max-width: 38ch; }
.initiative {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; align-items: baseline;
  margin-top: clamp(40px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--rule);
}
.initiative .text { display: flex; flex-direction: column; gap: 10px; grid-column: span 2; min-width: 0; }
.initiative h3 { margin: 0; font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.01em; text-wrap: pretty; }
.initiative a { border-bottom: 1px solid var(--ink); }
@media (max-width: 640px) { .initiative .text { grid-column: auto; } }

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--ink); padding-block: clamp(96px, 14vw, 200px) clamp(40px, 5vw, 64px); }
.contact .display { font-size: clamp(36px, 7vw, 120px); line-height: .92; max-width: 16ch; }
.contact-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: clamp(32px, 4vw, 56px); }
.email {
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px;
  background: var(--ink); color: var(--ivory); border-radius: 999px;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  user-select: all;
}
.email:hover { background: var(--ink-3); }
.copy-btn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: none; cursor: pointer;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.copy-btn:hover { background: var(--ink); color: var(--ivory); }
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(80px, 12vw, 160px); padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ---------- view transitions ---------- */
.vt-hero { view-transition-name: work-hero; }
::view-transition-group(work-hero) { animation-duration: .75s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(work-hero), ::view-transition-new(work-hero) { height: 100%; object-fit: cover; }
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-old(root) { z-index: 1; }
html.vt-theme::view-transition-new(root) { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- dialog ---------- */
.work-dialog {
  border: 0; padding: 0; background: var(--ivory); color: var(--ink);
  width: min(920px, calc(100% - 32px)); max-height: 90vh; max-height: 90dvh;
  margin: auto;
}
.work-dialog::backdrop { background: rgba(28, 27, 25, .72); }
.work-dialog[open] { animation: dlgIn .5s var(--ease-out); }
html.vt-work .work-dialog[open] { animation: none; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }
.dialog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.dialog-media { position: relative; aspect-ratio: var(--ratio, 1 / 1); background: var(--ivory-2); overflow: hidden; min-height: 240px; max-width: 100%; }
.dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.dialog-body { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dialog-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.close-btn {
  background: none; border: 1px solid var(--ink); border-radius: 999px; width: 44px; height: 44px; font-size: 18px; cursor: pointer; flex: 0 0 auto;
}
.close-btn:hover { background: var(--ink); color: var(--ivory); }
.dialog-body h2 { margin: 0; font-weight: 900; font-stretch: 118%; font-size: clamp(28px, 3.4vw, 48px); line-height: .95; letter-spacing: -.03em; }
.tracklist { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.tracklist li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.tracklist li span:first-child { color: var(--muted); font-size: 12px; letter-spacing: .1em; min-width: 2ch; font-variant-numeric: tabular-nums; }

/* ---------- route veil: a single charcoal panel with a soft curved edge rises, holds the
   wordmark for a beat, then lifts away while the new section settles into place ---------- */
.route-veil {
  position: fixed; left: -4vw; right: -4vw; top: -22vh; bottom: -22vh; z-index: 80; pointer-events: none;
  display: none; background: var(--ink);
  border-radius: 50% 50% 50% 50% / 9vh 9vh 9vh 9vh;
  transform: translateY(125%);
  will-change: transform;
}
.route-veil .mark {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; color: var(--ivory);
  font-weight: 800; font-stretch: 125%; font-size: clamp(14px, 1.2vw, 18px); letter-spacing: .32em; text-indent: .32em;
  opacity: 0;
}
.route-veil.is-on { display: block; animation: veil 1.15s cubic-bezier(.76, 0, .24, 1) forwards; }
.route-veil.is-on .mark { animation: veilMark 1.15s ease forwards; }
@keyframes veil {
  0%   { transform: translateY(125%); }
  42%  { transform: translateY(0); }
  58%  { transform: translateY(0); }
  100% { transform: translateY(-125%); }
}
@keyframes veilMark {
  0%, 30% { opacity: 0; letter-spacing: .5em; }
  45%, 56% { opacity: 1; letter-spacing: .32em; }
  68%, 100% { opacity: 0; }
}
/* the page itself dips out and settles back in, so the cut never feels abrupt */
main { transform-origin: 50% 40%; }
main.is-leaving { transition: opacity .45s ease, transform .5s cubic-bezier(.76, 0, .24, 1), filter .45s ease; opacity: .55; transform: scale(.985); filter: blur(3px); }
main.is-entering { opacity: .55; transform: scale(1.012); filter: blur(3px); }
main.is-settled { transition: opacity .6s ease, transform .75s cubic-bezier(.2, .8, .2, 1), filter .5s ease; opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .route-veil.is-on { display: none !important; }
  main.is-leaving, main.is-entering, main.is-settled { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- artist gallery dialog ---------- */
.artist-dialog { border: 0; padding: 0; background: var(--ink); color: var(--ivory); width: min(1080px, calc(100% - 32px)); max-height: 92vh; max-height: 92dvh; margin: auto; }
.artist-dialog::backdrop { background: rgba(28,27,25,.82); }
/* entrance moves but never hides: if an animation stalls the gallery is still fully visible */
.artist-dialog[open] { animation: adIn .5s var(--ease-out); }
.artist-dialog.no-enter[open] { animation: none; }
@keyframes adIn { from { transform: translateY(16px) scale(.985); } to { transform: none; } }
.looks-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .looks-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.looks-stage { position: relative; display: grid; place-items: center; background: var(--ink-2); min-height: 320px; }
.looks-frame { position: relative; width: 100%; height: min(78vh, 760px); min-height: 320px; overflow: hidden; }
.looks-frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.looks-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule-dark); background: rgba(28,27,25,.55); color: var(--ivory); cursor: pointer; display: grid; place-items: center; }
.looks-nav svg { width: 22px; height: 22px; } .looks-nav:hover { background: var(--ivory); color: var(--ink); }
.looks-prev { left: 12px; } .looks-next { right: 12px; }
.looks-nav[disabled] { opacity: .3; cursor: default; }
.looks-side { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.looks-side .eyebrow { color: var(--muted-dark); }
.looks-side .close-btn { border-color: var(--ivory); color: var(--ivory); } .looks-side .close-btn:hover { background: var(--ivory); color: var(--ink); }
.looks-side h2 { margin: 0; font-weight: 900; font-stretch: 118%; font-size: clamp(30px, 3.4vw, 48px); line-height: .95; letter-spacing: -.03em; }
.looks-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.looks-thumbs button { padding: 0; border: 1px solid transparent; background: var(--ink-2); aspect-ratio: 9 / 16; overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .25s; }
.looks-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.looks-thumbs button[aria-selected="true"] { opacity: 1; border-color: var(--ivory); }
.looks-thumbs button:hover { opacity: .85; }
.looks-note { color: var(--muted-dark); font-size: 13px; }
.artist .frame { cursor: pointer; }
.artist-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.artist-btn:hover img { transform: scale(1.04); }
.shelf-card { cursor: pointer; }
.shelf-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- review build ribbon ---------- */
.review-note {
  position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 40;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--ivory); padding: 6px 10px; opacity: .85;
}

/* ---------- reveal (JS-only; content visible without JS) ---------- */
.js [data-reveal].is-hidden { opacity: 0; transform: translateY(24px); }
.js [data-reveal].is-hidden .word { transform: translateY(110%); }
.js [data-reveal] { transition: opacity .9s ease, transform .9s var(--ease-soft); }
.js [data-reveal] .word { transition: transform 1s var(--ease-out); }
.js [data-reveal] .line:nth-child(2) .word { transition-delay: .08s; }

/* ---------- responsive ---------- */
@media (max-width: 759px) {
  .site-nav, .site-nav.dock { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .shelf { display: none; }
  .strip { display: flex; }
  .hero { min-height: auto; }
  .hero-foot .statement { max-width: none; }
  .catalog li { grid-template-columns: minmax(0, 1fr) auto; }
  .catalog li .a { grid-column: 1 / -1; order: 3; }
  .wordmark { font-size: clamp(60px, 17.5vw, 200px); white-space: nowrap; letter-spacing: -.055em; }
}

/* ---------- reduced motion: nothing decorative moves ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wordmark .l > span, .hero-foot, .mobile-menu a, .work-dialog[open] { animation: none !important; opacity: 1 !important; transform: none !important; }
  .shelf-card { animation: none !important; opacity: 1 !important; }
  .music.is-in .wipe, .music.is-in::before { animation: none !important; }
  .music::before { display: none; }
  .js [data-reveal], .js [data-reveal] .word { transition: none !important; }
  .js [data-reveal].is-hidden { opacity: 1; transform: none; }
  .js [data-reveal].is-hidden .word { transform: none; }
  .btn, .work-media img, .artist img, .strip img { transition: none !important; }
}

/* ---------- intro: the studio's memories scatter across the screen, spin into a vortex and settle as a globe ---------- */
.intro { display: none; }
html.intro-on { overflow: hidden; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 120; background: var(--ink); color: var(--ivory); will-change: transform; contain: strict; }
html.intro-on .intro.is-exit { animation: introExit 1s cubic-bezier(.76, 0, .24, 1) forwards; }
/* dreamy exit: the panel softens, brightens and dissolves instead of sliding away */
html.intro-on .intro.is-dream { animation: introDream 2.3s cubic-bezier(.2, .7, .2, 1) forwards; pointer-events: none; }
.intro-bloom { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 46%, rgba(238,234,226,.95) 0%, rgba(238,234,226,.55) 22%, rgba(238,234,226,0) 62%); }
.intro.is-dream .intro-bloom { animation: introBloom 2.3s cubic-bezier(.2, .7, .2, 1) forwards; }
.intro.is-dream .intro-foot { animation: introFootOut .6s ease forwards; }
html.intro-release.intro-dream main, html.intro-release.intro-dream .site-header { animation: dreamIn 2.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes introDream { 0% { opacity: 1; filter: blur(0); transform: scale(1); } 40% { opacity: 1; filter: blur(6px); } 100% { opacity: 0; filter: blur(24px); transform: scale(1.07); } }
@keyframes introBloom { 0% { opacity: 0; transform: scale(.6); } 55% { opacity: 1; } 100% { opacity: 1; transform: scale(2.2); } }
@keyframes introFootOut { to { opacity: 0; transform: translateY(14px); } }
@keyframes dreamIn { 0% { opacity: .35; filter: blur(16px) saturate(.8); transform: scale(.985); } 60% { filter: blur(3px) saturate(1); } 100% { opacity: 1; filter: blur(0); transform: none; } }
html.intro-on .intro.is-skip { animation: introExit .55s cubic-bezier(.76, 0, .24, 1) forwards; }
html.intro-on:not(.intro-release) .wordmark .l > span, html.intro-on:not(.intro-release) .shelf-card { animation-play-state: paused; }
.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.intro-on .intro-canvas { touch-action: none; }
/* magnet + ideas: gathered words suggest something new, each suggestion in its own colour */
.intro { --idea-1: #EDB54E; --idea-2: #FF7E5F; --idea-3: #62D6C6; }
:root[data-theme="dark"] .intro { --idea-1: #9A6400; --idea-2: #C23D1C; --idea-3: #0B7D70; }
.intro-ideas { position: absolute; left: 0; top: 0; z-index: 2; display: grid; gap: 12px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 80%, transparent); box-shadow: 0 10px 40px rgba(0,0,0,.25); width: max-content; max-width: min(360px, calc(100vw - 24px)); pointer-events: none; opacity: 0; transition: opacity .4s ease; will-change: transform, opacity; }
.intro-ideas.is-on { opacity: 1; }
.intro-idea { margin: 0; display: grid; gap: 4px; padding-left: 12px; border-left: 2px solid var(--c); color: var(--c); text-shadow: 0 0 10px var(--ink), 0 0 3px var(--ink); opacity: 0; transform: translateY(6px); filter: blur(4px); animation: ideaIn .6s var(--ease-out) var(--d, 0ms) forwards; }
.intro-idea-k { font: 600 10px/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.intro-idea-t { font-family: var(--font-serif); font-size: clamp(16px, 1.7vw, 21px); line-height: 1.2; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
@keyframes ideaIn { to { opacity: 1; transform: none; filter: blur(0); } }
.intro-hint { position: absolute; left: 0; right: 0; top: clamp(18px, 4vh, 44px); margin: 0; text-align: center; color: inherit; opacity: 0; transition: opacity .8s var(--ease-out) .6s; pointer-events: none; }
.intro-hint.is-on { opacity: .6; }
.intro-hint.is-on.is-used { opacity: 0; transition-delay: 0s; }
.intro.is-dream .intro-ideas, .intro.is-skip .intro-ideas { opacity: 0; }
@media (max-width: 759px) { .intro-idea-t { font-size: 15px; } .intro-ideas { gap: 9px; padding: 12px 14px; max-width: min(300px, calc(100vw - 24px)); } }
.intro-foot { position: absolute; left: 0; right: 0; bottom: clamp(44px, 10vh, 110px); display: grid; justify-items: center; gap: 18px; padding: 0 24px; }
.intro-line { margin: 0; white-space: nowrap; font-size: clamp(17px, 2.2vw, 26px); opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.intro-line.is-on { opacity: 1; transform: none; }
.intro-enter { opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease-out) .25s, transform .8s var(--ease-out) .25s; min-width: 150px; justify-content: center; padding: 0 30px; }
.intro-enter.is-on { opacity: 1; transform: none; }
.intro-enter:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; }
.intro-skip { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); background: none; border: 1px solid rgba(238,234,226,.35); color: inherit; padding: 8px 14px; border-radius: 999px; cursor: pointer; opacity: 0; animation: introLine .5s ease .9s forwards; }
.intro-skip:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@keyframes introLine { to { opacity: 1; transform: none; } }
@keyframes introExit { to { transform: translateY(-110%); } }
@media (prefers-reduced-motion: reduce) { .intro, html.intro-on .intro { display: none !important; } html.intro-on { overflow: auto; } html.intro-on .wordmark .l > span, html.intro-on .shelf-card { animation-play-state: running; } }

/* ---------- goo buttons: glossy ink pills; near a fine pointer, ink strands reach out and snap back ---------- */
.btn-solid, .copy-btn.is-goo {
  background: linear-gradient(180deg, #3a3834 0%, #1C1B19 38%, #0e0d0c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -2px 4px rgba(0,0,0,.45), 0 10px 24px -8px rgba(0,0,0,.55);
  position: relative; overflow: hidden; border-color: #0e0d0c;
}
.btn-solid::before, .copy-btn.is-goo::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 3px; height: 38%; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0)); pointer-events: none;
}
.btn-solid, .copy-btn.is-goo, .copy-btn.is-goo:hover { color: #EEEAE2; }   /* ink pill: light text in either theme */
.btn-solid:hover, .copy-btn.is-goo:hover { background: linear-gradient(180deg, #46433e 0%, #23211e 38%, #121110 100%); }
/* light pill on dark ground: dark sections, and every pill in the dark theme */
.dark .btn-solid, :root[data-theme="dark"] .btn-solid, :root[data-theme="dark"] .copy-btn.is-goo { background: linear-gradient(180deg, #fff 0%, #EEEAE2 40%, #d8d2c5 100%); border-color: #d8d2c5; color: #1C1B19; box-shadow: inset 0 1px 0 #fff, inset 0 -2px 4px rgba(0,0,0,.12), 0 10px 24px -8px rgba(0,0,0,.35); }
:root[data-theme="dark"] .btn-solid:hover, :root[data-theme="dark"] .copy-btn.is-goo:hover, .dark .btn-solid:hover { background: linear-gradient(180deg, #fff 0%, #f4f1ea 40%, #e2ddd2 100%); color: #1C1B19; }
.dark .btn-solid::before, :root[data-theme="dark"] .btn-solid::before, :root[data-theme="dark"] .copy-btn.is-goo::before { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0)); }
.goo-layer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; display: none; }
html.intro-on .goo-layer { z-index: 130; }                 /* above the intro panel so the Enter pill can reach for the cursor */
.goo-layer.is-ivory path { stroke: #EEEAE2; } .goo-layer.is-ivory circle { fill: #EEEAE2; }
.goo-layer.is-on { display: block; }
.goo-layer path { fill: none; stroke: var(--ink); stroke-linecap: round; }
.goo-layer circle { fill: var(--ink); }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .goo-layer { display: none !important; } }
