/* ==========================================================================
   SHANKIN — editorial / analog studio
   Type: Archivo Black (stacked poster headline + floating custom totem logo)
         Libre Caslon Display (heads) · Newsreader (text) · Libre Franklin (UI)
   ========================================================================== */

:root {
  --ink: #0b0a09;
  --paper: #ece5d6;
  --paper-2: rgba(236, 229, 214, 0.72);
  --paper-3: rgba(236, 229, 214, 0.46);
  --rule: rgba(236, 229, 214, 0.18);
  --rule-2: rgba(236, 229, 214, 0.34);
  --accent: #a9c8ff;

  --f-mast: 'Archivo Black', 'Franklin Gothic Heavy', 'Impact', sans-serif;
  --f-disp: 'Libre Caslon Display', 'Didot', 'Times New Roman', serif;
  --f-text: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --f-label: 'Libre Franklin', 'Franklin Gothic Book', 'Helvetica Neue', sans-serif;

  --pad: clamp(18px, 3.8vw, 60px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  font-family: var(--f-text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  touch-action: pan-y;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--paper); color: var(--ink); }

#about, #works, #contact { scroll-margin-top: 108px; }

.label {
  font-family: var(--f-label);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

/* Hidden SoundCloud iframe: stays rendered offscreen so cross-origin audio plays immediately */
#sc-engine {
  position: fixed;
  left: -9999px;
  bottom: 0;
  width: 220px;
  height: 120px;
  opacity: 0.001;
  pointer-events: none;
  border: 0;
  z-index: -1;
}

#curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center;
  font-family: var(--f-text); font-style: italic; font-size: 15px; color: var(--paper-3);
  transition: opacity 1.4s var(--ease) .2s, visibility 0s linear 1.6s;
}
body.ready #curtain { opacity: 0; visibility: hidden; }

/* ==========================================================================
   LIQUID GLASS
   Base layer works everywhere; Chromium additionally gets true edge
   refraction + chromatic dispersion through an SVG displacement filter.
   ========================================================================== */
.lg {
  --r: 26px;
  --lx: 30%; --ly: 0%;
  position: relative;
  isolation: isolate;
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02) 46%, rgba(255, 255, 255, .045));
  -webkit-backdrop-filter: blur(16px) saturate(1.8) brightness(1.06);
  backdrop-filter: blur(16px) saturate(1.8) brightness(1.06);
  box-shadow:
    0 34px 70px -28px rgba(0, 0, 0, .75),
    0 10px 22px -10px rgba(0, 0, 0, .55);
}
.lg::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg,
      rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .22) 16%,
      rgba(255, 255, 255, .04) 42%, rgba(255, 255, 255, .03) 62%,
      rgba(255, 255, 255, .28) 88%, rgba(255, 255, 255, .55) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 2;
}
.lg::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background:
    radial-gradient(260px circle at var(--lx) var(--ly), rgba(255, 255, 255, .13), transparent 62%),
    radial-gradient(120% 60% at 50% 120%, rgba(169, 200, 255, .12), transparent 70%);
  box-shadow:
    inset 0 1.5px 1px -0.5px rgba(255, 255, 255, .55),
    inset 1.5px 0 1px -1px rgba(255, 255, 255, .25),
    inset 0 -10px 18px -12px rgba(255, 255, 255, .22),
    inset 0 0 0 .5px rgba(255, 255, 255, .08),
    inset 0 18px 30px -24px rgba(255, 255, 255, .28);
}
.lg > * { position: relative; z-index: 3; }

.orb { --r: 999px; display: grid; place-items: center; }

/* ==========================================================================
   PAGE ONE — full-bleed stacked poster masthead with floating custom logo (I)
   ========================================================================== */
#hero { position: relative; z-index: 1; height: calc(100vh + var(--steps, 5) * 46vh); }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; pointer-events: none; }
.hero-sticky a, .hero-sticky button { pointer-events: auto; }

.mast {
  position: absolute; top: 0; left: 0; right: 0;
  padding: clamp(16px, 2.2vh, 26px) 0 28px;
  display: flex; justify-content: center;
  background: linear-gradient(180deg, rgba(11, 10, 9, .84) 0%, rgba(11, 10, 9, .38) 58%, rgba(11, 10, 9, 0) 100%);
  opacity: 0; transform: translateY(-12px);
  transition: opacity 1.5s var(--ease) .35s, transform 1.5s var(--ease) .35s;
}
body.ready .mast { opacity: 1; transform: none; }

.mast-stack {
  --mast-sy: 0.70;
  --mast-ls: 0.145em;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.mast-layer {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-family: var(--f-mast);
  font-weight: 400;
  font-size: 14.8vw;
  line-height: calc(0.76 * var(--mast-sy));
  text-transform: uppercase;
  white-space: nowrap;
}

.mast-word {
  display: inline-block;
  letter-spacing: var(--mast-ls);
  transform: scaleY(var(--mast-sy));
  transform-origin: center center;
  background: var(--layer-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mast-word-last {
  letter-spacing: 0;
}

/* Custom brushstroke totem replacing "I" — preserves natural aspect ratio & floats */
.mast-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(0.92em * var(--mast-sy) * 0.608);
  height: calc(0.76em * var(--mast-sy));
  margin-left: -0.02em;
  margin-right: calc(var(--mast-ls) - 0.02em);
  position: relative;
  overflow: visible;
}

.mast-totem {
  display: block;
  width: calc(1.06em * var(--mast-sy) * 0.608);
  height: calc(1.06em * var(--mast-sy));
  flex: none;
  background: var(--layer-grad);
  -webkit-mask: url('https://www.shankin.work/assets/home/logo/shankin-black.png') center / contain no-repeat;
  mask: url('https://www.shankin.work/assets/home/logo/shankin-black.png') center / contain no-repeat;
  animation: totemFloat 3.6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
}

@keyframes totemFloat {
  0%, 100% { transform: translateY(-6.5%); }
  50% { transform: translateY(6.5%); }
}

/* Cascading poster stack: warm bone -> frosty pearl -> Saturn ice-blue -> deep orbital cobalt */
.mast-layer.l0 {
  --layer-grad: linear-gradient(180deg, #faf5eb 0%, #e7decd 72%, #cfc6b6 100%);
  --float-delay: 0s;
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .72));
}
.mast-layer.l1 {
  --layer-grad: linear-gradient(180deg, rgba(224, 234, 252, 0.58) 0%, rgba(182, 208, 255, 0.50) 100%);
  --float-delay: -0.14s;
  position: relative;
  z-index: 4;
  margin-top: calc(-0.56em * var(--mast-sy));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, #000 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, #000 100%);
}
.mast-layer.l2 {
  --layer-grad: linear-gradient(180deg, rgba(146, 186, 255, 0.38) 0%, rgba(108, 156, 246, 0.32) 100%);
  --float-delay: -0.28s;
  position: relative;
  z-index: 3;
  margin-top: calc(-0.57em * var(--mast-sy));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, #000 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.12) 0%, #000 100%);
}
.mast-layer.l3 {
  --layer-grad: linear-gradient(180deg, rgba(94, 142, 235, 0.23) 0%, rgba(68, 114, 212, 0.17) 100%);
  --float-delay: -0.42s;
  position: relative;
  z-index: 2;
  margin-top: calc(-0.58em * var(--mast-sy));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, #000 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, #000 100%);
}
.mast-layer.l4 {
  --layer-grad: linear-gradient(180deg, rgba(64, 106, 198, 0.12) 0%, rgba(42, 76, 156, 0.04) 100%);
  --float-delay: -0.56s;
  position: relative;
  z-index: 1;
  margin-top: calc(-0.59em * var(--mast-sy));
}

.colophon a { position: relative; transition: color .3s; }
.colophon a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.colophon a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Focused record card */
.hud {
  --r: 30px;
  position: absolute; left: var(--pad); bottom: clamp(22px, 4.8vh, 56px);
  width: min(356px, calc(100vw - 2 * var(--pad)));
  display: flex; align-items: flex-end; gap: 16px;
  padding: 20px 20px 20px 24px;
  pointer-events: auto;
  opacity: 0; transform: translateY(14px);
  transition: opacity 1.4s var(--ease) 1s, transform 1.4s var(--ease) 1s;
}
body.ready .hud { opacity: 1; transform: none; }
.hud .lg-body { flex: 1; min-width: 0; }
.hud-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--paper-3); padding-bottom: 11px; border-bottom: 1px solid var(--rule); }
.hud-mobile-idx { display: none; color: var(--paper-2); }
.hud-swap { padding: 13px 0 11px; transition: opacity .35s ease, transform .5s var(--ease), filter .35s; }
.hud-swap.out { opacity: 0; transform: translateY(6px); filter: blur(3px); }
.hud h2 { margin: 0; font-family: var(--f-disp); font-weight: 400; font-size: 30px; line-height: 1.04; letter-spacing: -.005em; }
.hud p { margin: 5px 0 0; font-style: italic; font-size: 15px; color: var(--paper-2); }
.hud-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--paper-3); }
.hud-status { display: inline-flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--paper-2); }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 8px rgba(110, 231, 183, 0.75);
  flex: none;
}
.hud-status.is-unreleased { color: var(--paper-3); }
.hud-status.is-unreleased .status-dot {
  background: rgba(236, 229, 214, 0.32);
  box-shadow: none;
}
.hud-ext {
  font-size: 9.5px;
  color: var(--paper);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color .3s, background .3s;
}
.hud-ext:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
}
.hud-ext[hidden] { display: none; }

.play { width: 56px; height: 56px; flex: none; color: var(--paper); transition: transform .5s var(--ease); }
.play:hover { transform: scale(1.06); }
.play:active { transform: scale(.96); }
.play svg, .np-btn svg { width: 20px; height: 20px; fill: currentColor; }
.i-pause { display: none; }
.is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }

.enter {
  position: absolute; left: 50%; bottom: clamp(20px, 4.4vh, 50px); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; color: var(--paper-2);
  opacity: 0; transition: opacity 1.4s var(--ease) 1.3s, color .3s;
}
body.ready .enter { opacity: 1; }
.enter .orb { width: 52px; height: 52px; color: var(--paper); }
.enter .orb svg { width: 21px; height: 21px; animation: nudge 2.6s var(--ease) infinite; }
.enter:hover { color: var(--paper); }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

.index {
  position: absolute; right: var(--pad); bottom: clamp(22px, 4.8vh, 56px);
  display: grid; justify-items: end; gap: 12px; text-align: right;
  opacity: 0; transition: opacity 1.4s var(--ease) 1.2s;
}
body.ready .index { opacity: 1; }
.index-hint { color: var(--paper-3); line-height: 1.7; font-size: 9.5px; }
.index-count { font-family: var(--f-disp); display: flex; align-items: baseline; gap: 8px; }
.index-count b { font-weight: 400; font-size: 52px; line-height: .9; }
.index-count span { font-size: 16px; color: var(--paper-3); }
.index-count i { font-style: normal; }
.index-track { width: 132px; height: 1px; background: var(--rule-2); position: relative; }
.index-track i { position: absolute; left: 0; top: -0.5px; height: 2px; width: 0; background: var(--paper); }

/* ==========================================================================
   ROUNDED LIQUID GLASS NAVIGATION BAR (Page 2)
   ========================================================================== */
.bar {
  --r: 999px;
  position: fixed;
  top: clamp(12px, 2vh, 20px);
  left: var(--pad);
  right: var(--pad);
  max-width: 1480px;
  margin: 0 auto;
  z-index: 25;
  transform: translateY(calc(-100% - 32px));
  opacity: 0;
  pointer-events: none;
  transition: transform .75s var(--ease), opacity .55s var(--ease);
}
.bar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
}
.bar-name {
  font-family: var(--f-mast);
  font-size: 19px;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--paper);
}
.bar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  transition: opacity .3s;
}
.bar-logo:hover { opacity: 0.85; }
.bar-totem {
  display: block;
  width: 19px;
  height: 31px;
  background: linear-gradient(180deg, #faf5eb 0%, #dcd4c3 100%);
  -webkit-mask: url('https://www.shankin.work/assets/home/logo/shankin-black.png') center / contain no-repeat;
  mask: url('https://www.shankin.work/assets/home/logo/shankin-black.png') center / contain no-repeat;
  animation: totemFloatBar 3.4s ease-in-out infinite;
  will-change: transform;
}
@keyframes totemFloatBar {
  0%, 100% { transform: translateY(-2.5px); }
  50% { transform: translateY(2.5px); }
}

/* ==========================================================================
   PAGE TWO — philosophy, multi-row sliding tag wall, contact & works
   ========================================================================== */
#notes { position: relative; z-index: 2; min-height: 100vh; padding: 15vh var(--pad) 0; }
#notes::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 10, 9, 0) 0, rgba(11, 10, 9, .58) 28vh),
    linear-gradient(90deg, rgba(11, 10, 9, .88) 0%, rgba(11, 10, 9, .72) 38%, rgba(11, 10, 9, .18) 68%, rgba(11, 10, 9, .04) 100%);
}
.notes-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6.5vw, 116px); max-width: 1480px; margin: 0 auto; align-items: start;
}

.bio {
  max-width: 540px;
  position: sticky;
  top: 108px;
}

.philosophy {
  margin: 0;
  font-family: var(--f-disp);
  font-weight: 400;
  font-size: clamp(30px, 3.15vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.philosophy em {
  font-style: italic;
  color: var(--paper-2);
}

/* Multi-row infinite horizontal sliding tag wall */
.tag-wall {
  margin: 36px 0;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 11px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}

.tag-row {
  display: flex;
  overflow: hidden;
}
.tag-row:hover .tag-track {
  animation-play-state: paused;
}

.tag-track {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px;
  width: max-content;
  will-change: transform;
}
.tag-row.dir-left .tag-track {
  animation: slideLeft var(--dur, 34s) linear infinite;
}
.tag-row.dir-right .tag-track {
  animation: slideRight var(--dur, 38s) linear infinite;
}

@keyframes slideLeft {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes slideRight {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 17px;
  border-radius: 999px;
  font-family: var(--f-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
  user-select: none;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.tag:hover { transform: translateY(-1px); }

.pill-ink {
  background: rgba(236, 229, 214, 0.90);
  color: var(--ink);
  border: 1px solid rgba(236, 229, 214, 0.95);
}
.pill-glass {
  background: rgba(255, 255, 255, 0.045);
  color: var(--paper);
  border: 1px solid rgba(236, 229, 214, 0.22);
}
.pill-glass:hover {
  border-color: rgba(236, 229, 214, 0.48);
  background: rgba(255, 255, 255, 0.085);
}
.pill-mist {
  background: rgba(169, 200, 255, 0.065);
  color: rgba(226, 236, 255, 0.88);
  border: 1px solid rgba(169, 200, 255, 0.24);
}
.pill-mist:hover {
  border-color: rgba(169, 200, 255, 0.5);
  background: rgba(169, 200, 255, 0.12);
}

.contact { margin-top: 4px; }
.contact > .label { color: var(--paper-3); margin: 0 0 8px; }
.mail {
  font-family: var(--f-disp); font-size: clamp(26px, 2.5vw, 38px); letter-spacing: -.005em;
  display: inline-flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule-2); padding-bottom: 6px; transition: border-color .3s;
}
.mail:hover { border-color: var(--paper); }
.mail-hint { color: var(--paper-3); font-size: 9.5px; transition: color .3s; }
.mail:hover .mail-hint { color: var(--paper); }

/* Social icons row (from shankin.work) */
.social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-2);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--rule-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .4s var(--ease);
}
.social-btn svg {
  width: 19px;
  height: 19px;
}
.social-btn-xhs svg {
  width: 22px;
  height: 22px;
}
.social-btn:hover {
  color: var(--paper);
  border-color: rgba(236, 229, 214, 0.65);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

/* Works — the glass slab */
.works-col { position: sticky; top: 108px; }
.works { --r: 34px; padding: 28px 32px 16px; }
.works-head { display: flex; justify-content: space-between; color: var(--paper-2); padding-bottom: 16px; border-bottom: 1px solid var(--rule-2); }
.works-list { list-style: none; margin: 0; padding: 0; }
.work { border-bottom: 1px solid var(--rule); }
.work:last-child { border-bottom: 0; }
.work-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 22px; align-items: center;
  padding: 18px 0; cursor: pointer; width: 100%; text-align: left;
}
.work-art { position: relative; width: 84px; height: 84px; }
.work-art img {
  position: relative; z-index: 2; width: 100%; height: 100%; display: block; border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .8), 0 0 0 .5px rgba(255, 255, 255, .12);
  transition: transform .6s var(--ease);
}
.work-disc {
  position: absolute; z-index: 1; top: 4%; left: 4%; width: 92%; height: 92%; border-radius: 50%;
  background:
    radial-gradient(circle, var(--lbl, #333) 0 17%, #050505 17.5% 19%, transparent 19.5%),
    repeating-radial-gradient(circle, #0c0c0d 0 1px, #161617 1.5px 2px),
    #0b0b0c;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .6);
  transition: transform .7s var(--ease);
}
.work:hover .work-disc, .work.is-playing .work-disc { transform: translateX(34%) rotate(40deg); }
.work.is-playing .work-disc { animation: spin 1.8s linear infinite; transform: translateX(34%); }
@keyframes spin { to { transform: translateX(34%) rotate(360deg); } }
.work-body { min-width: 0; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--paper-3); font-size: 9.5px; }
.badge-released {
  display: inline-flex; align-items: center; gap: 5px;
  color: #a7f3d0;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, 0.35);
  background: rgba(16, 185, 129, 0.10);
  font-size: 9px;
}
.badge-released i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 6px rgba(110, 231, 183, 0.8);
}
.badge-link {
  display: inline-flex; align-items: center;
  color: var(--paper-2);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 9px;
  transition: color .3s, border-color .3s, background .3s;
}
.badge-link:hover {
  color: var(--paper);
  border-color: var(--paper);
  background: rgba(255, 255, 255, 0.11);
}
.work h3 { margin: 6px 0 2px; font-family: var(--f-disp); font-weight: 400; font-size: 26px; line-height: 1.06; transition: transform .5s var(--ease); }
.work:hover h3 { transform: translateX(4px); }
.work-by { margin: 0; font-style: italic; font-size: 14.5px; color: var(--paper-2); }
.work-side { display: flex; align-items: center; justify-content: flex-end; }
.work-play {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--rule-2); transition: background .3s, color .3s, border-color .3s;
}
.work-play svg { width: 13px; height: 13px; fill: currentColor; }
.work-play:hover, .work.is-playing .work-play { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.colophon {
  display: flex; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  max-width: 1480px; margin: 14vh auto 0; padding: 18px 0 28px;
  border-top: 1px solid var(--rule-2); color: var(--paper-3);
}
.colophon a:hover { color: var(--paper); }

/* Now playing */
.np {
  --r: 999px;
  position: fixed; z-index: 30; left: 50%; bottom: 20px;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 140%); transition: transform .8s var(--ease);
}
.np.show { transform: translate(-50%, 0); }
.np .lg-body { display: flex; align-items: center; gap: 14px; padding: 9px 9px 9px 10px; }
.np-disc {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, var(--lbl, #7d8cff) 0 22%, #050505 23% 26%, transparent 27%),
              repeating-radial-gradient(circle, #0c0c0d 0 1px, #19191a 1.5px 2px);
  animation: spin2 1.8s linear infinite;
}
@keyframes spin2 { to { transform: rotate(360deg); } }
.np-text { display: grid; line-height: 1.15; padding-right: 8px; min-width: 0; }
.np-text b { font-family: var(--f-disp); font-weight: 400; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-text i { font-style: normal; color: var(--paper-3); font-size: 9px; }
.np-btn { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.np-btn svg { width: 14px; height: 14px; }

.toast {
  position: fixed; z-index: 60; top: 22px; left: 50%; transform: translate(-50%, -12px);
  padding: 9px 16px; background: var(--paper); color: var(--ink); opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .5s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   TABLET ADAPTATION (641px — 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .mast { padding: 16px 0 24px; }
  .mast-stack {
    --mast-sy: 0.88;
    --mast-ls: 0.13em;
  }
  .mast-layer { font-size: 15.2vw; }
  .mast-layer.l1 { margin-top: calc(-0.46em * var(--mast-sy)); }
  .mast-layer.l2 { margin-top: calc(-0.47em * var(--mast-sy)); }
  .mast-layer.l3 { margin-top: calc(-0.48em * var(--mast-sy)); }
  .mast-layer.l4 { margin-top: calc(-0.49em * var(--mast-sy)); }

  .hud {
    width: 288px;
    padding: 16px 16px 16px 20px;
    gap: 12px;
    --r: 26px;
  }
  .hud h2 { font-size: 25px; }
  .hud p { font-size: 14px; }
  .play { width: 48px; height: 48px; }

  .enter .orb { width: 48px; height: 48px; }
  .index-hint { display: none; }
  .index-count b { font-size: 42px; }
  .index-track { width: 100px; }

  #notes { padding-top: 13vh; }
  #notes::before {
    background: linear-gradient(180deg, rgba(11, 10, 9, 0) 0, rgba(11, 10, 9, .78) 20vh, rgba(11, 10, 9, .86) 100%);
  }
  .notes-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 52px;
  }
  .bio { max-width: 100%; position: relative; top: 0; }
  .works-col { position: relative; top: 0; }
  .works { padding: 26px 28px 14px; }
}

/* ==========================================================================
   MOBILE ADAPTATION (<= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .label { font-size: 9.5px; letter-spacing: .14em; }

  .bar { top: 10px; }
  .bar-inner { padding: 8px 18px; }
  .bar-name { font-size: 16px; letter-spacing: 0.1em; }
  .bar-logo { width: 28px; height: 28px; }
  .bar-totem { width: 16px; height: 26px; }

  .mast { padding: 14px 0 18px; }
  .mast-stack {
    --mast-sy: 0.96;
    --mast-ls: 0.12em;
  }
  .mast-layer { font-size: 15.4vw; }
  .mast-layer.l1 { margin-top: calc(-0.42em * var(--mast-sy)); }
  .mast-layer.l2 { margin-top: calc(-0.43em * var(--mast-sy)); }
  .mast-layer.l3 { margin-top: calc(-0.44em * var(--mast-sy)); }
  .mast-layer.l4 { margin-top: calc(-0.45em * var(--mast-sy)); }

  .hud {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: 82px;
    padding: 14px 15px 14px 18px;
    gap: 12px;
    --r: 22px;
  }
  .hud-top { padding-bottom: 8px; }
  .hud-mobile-idx { display: inline; }
  .hud-swap { padding: 10px 0 8px; }
  .hud h2 { font-size: 22px; }
  .hud p { font-size: 13.5px; margin-top: 3px; }
  .hud-year { font-size: 14px; }
  .play { width: 46px; height: 46px; }
  .play svg { width: 17px; height: 17px; }

  .enter {
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .enter .orb { width: 38px; height: 38px; }
  .enter .orb svg { width: 17px; height: 17px; }
  .index { display: none; }

  #notes { padding: 12vh 16px 0; }
  .notes-grid { gap: 44px; }
  .philosophy { font-size: clamp(26px, 7.6vw, 36px); line-height: 1.18; }

  .tag-wall { margin: 28px 0; padding: 18px 0; gap: 9px; }
  .tag { padding: 6px 14px; font-size: 10.5px; }

  .mail { font-size: clamp(22px, 6.4vw, 30px); }
  .social-icons { gap: 10px; margin-top: 20px; }
  .social-btn { width: 40px; height: 40px; }
  .social-btn svg { width: 18px; height: 18px; }

  .works { --r: 24px; padding: 20px 16px 10px; }
  .works-head { padding-bottom: 12px; }
  .work-row { grid-template-columns: 60px 1fr auto; gap: 14px; padding: 14px 0; }
  .work-art { width: 60px; height: 60px; }
  .work:hover .work-disc, .work.is-playing .work-disc { transform: translateX(26%) rotate(40deg); }
  @keyframes spin { to { transform: translateX(26%) rotate(360deg); } }
  .work h3 { font-size: 20px; }
  .work-by { font-size: 13px; }
  .work-year { font-size: 14px; }
  .work-play { width: 34px; height: 34px; }
  .work-note p { margin: 0 0 14px 0; font-size: 13.5px; }

  .colophon { margin-top: 10vh; padding: 16px 0 24px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
