/* ==========================================================================
   ARTIST LINKS — styles
   Dark / bone-white, grimy film look. Every animation is pure CSS.
   ========================================================================== */

/* ✎ EDIT: the whole look is driven by these variables */
:root {
  --bg: #050505;                       /* near-black */
  --ink: #f1eee8;                      /* bone white */
  --ink-dim: rgba(241, 238, 232, 0.55);
  --line: rgba(241, 238, 232, 0.2);

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 34rem;

  /* animation intensity knobs */
  --grain-opacity: 0.13;
  --ghost-opacity: 0.07;

  /* background photo: how strong it is, and how tall the area it covers
     (tied to screen width too, so phones aren't zoomed right into the face) */
  --hero-opacity: 0.8;
  --hero-h: min(88svh, 62rem, 110vw);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); overflow-x: clip; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ==========================================================================
   BACKGROUND SCENE
   ========================================================================== */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  animation: gate-weave 0.5s steps(2) infinite;   /* film wobbling in the projector gate */
}

/* slow, swirling haze / smoke */
.haze {
  position: absolute;
  width: 110vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 35% 40%, rgba(241, 238, 232, 0.09), transparent 70%),
    radial-gradient(closest-side at 65% 60%, rgba(241, 238, 232, 0.06), transparent 75%),
    radial-gradient(closest-side at 50% 50%, rgba(241, 238, 232, 0.03), transparent);
  will-change: transform;
}
.haze--a { top: -55vmax; left: -45vmax; animation: haze-a 46s ease-in-out infinite alternate; }
.haze--b { bottom: -60vmax; right: -50vmax; animation: haze-b 58s ease-in-out infinite alternate; }

@keyframes haze-a {
  0%   { transform: rotate(0deg)   scale(1)    translate(0, 0); }
  100% { transform: rotate(140deg) scale(1.25) translate(12vmax, 8vmax); }
}
@keyframes haze-b {
  0%   { transform: rotate(0deg)    scale(1.1) translate(0, 0); }
  100% { transform: rotate(-120deg) scale(0.9) translate(-10vmax, -14vmax); }
}

/* giant outlined name drifting sideways */
.ghost {
  position: absolute;
  top: 58%;
  left: 0;
  display: flex;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(9rem, 34vw, 28rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 238, 232, var(--ghost-opacity));
  transform: translate(0, -50%);
  animation: ghost-drift 90s linear infinite;
}
.ghost span { padding-right: 0.35em; }
@keyframes ghost-drift {
  to { transform: translate(-50%, -50%); }
}

.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(241, 238, 232, 0.025) 0 1px,
    transparent 1px 3px
  );
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.92) 100%);
}

@keyframes gate-weave {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(0.6px, -0.8px); }
  100% { transform: translate(-0.5px, 0.4px); }
}

/* ==========================================================================
   BACKGROUND PHOTO — big and dim, fading into the black at the bottom and
   both sides, with a very slow push-in. Scrolls away with the page.
   ========================================================================== */
.hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  width: min(100%, calc(var(--hero-h) * 16 / 9));   /* never wider than the photo */
  height: var(--hero-h);
  margin-inline: auto;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--hero-opacity);
  -webkit-mask-image:
    linear-gradient(to bottom, #000 38%, transparent 98%),
    linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to bottom, #000 38%, transparent 98%),
    linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
          mask-composite: intersect;
  animation: hero-in 2.4s ease-out both;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 0%;          /* keep the face in frame on narrow screens */
  filter: grayscale(1) contrast(1.15) brightness(0.85);
  transform-origin: 58% 25%;
  animation: hero-drift 34s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-in {
  from { opacity: 0; }
}
@keyframes hero-drift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.124) translate(-1.3%, 1.3%); }
}

/* ==========================================================================
   FILM OVERLAY (on top of the content, click-through)
   ========================================================================== */
.film {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}

/* animated film grain */
.grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: var(--grain-opacity);
  animation: grain 0.9s steps(6) infinite;
  will-change: transform;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  17%  { transform: translate(-7%, 4%); }
  33%  { transform: translate(5%, -9%); }
  50%  { transform: translate(-3%, 11%); }
  67%  { transform: translate(9%, 2%); }
  83%  { transform: translate(-10%, -6%); }
  100% { transform: translate(3%, 7%); }
}

/* dust specks that pop in and out.
   Each layer tiles larger than a phone screen, so specks land in scattered spots
   instead of a visible grid; every step teleports them somewhere new. */
.dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 1.5px, transparent 2.3px),
    radial-gradient(ellipse 5px 1px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(ellipse 1px 6px, rgba(255, 255, 255, 0.5), transparent);
  background-size: 613px 787px, 911px 563px, 1237px 1013px, 479px 1171px, 1543px 677px, 733px 941px;
  animation: dust 2.6s steps(1, end) infinite;
}
@keyframes dust {
  0%   { opacity: 0.75; background-position: 13px 47px,  420px 200px, 960px 310px, 300px 90px,  700px 520px, 150px 640px; }
  12%  { opacity: 0; }
  25%  { opacity: 0.6;  background-position: 201px 509px, 33px 377px,  171px 822px, 90px 400px,  1210px 60px, 590px 120px; }
  37%  { opacity: 0; }
  50%  { opacity: 0.85; background-position: 497px 180px, 610px 41px,  712px 101px, 412px 933px, 330px 410px, 40px 300px; }
  62%  { opacity: 0.15; }
  75%  { opacity: 0.6;  background-position: 280px 630px, 850px 310px, 399px 577px, 41px 220px,  980px 250px, 470px 880px; }
  87%  { opacity: 0; }
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

/* ---------- page column ---------- */
.page {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
  padding: 0 0 calc(2.5rem + env(safe-area-inset-bottom));
}

/* ---------- profile ---------- */
/* pushed down so the name lands just under the face in the background photo */
.profile {
  text-align: center;
  padding-top: calc(var(--hero-h) * 0.42 + 2.1rem);
}

/* name: relaxed editorial italic, with an occasional glitch-slice */
.name {
  position: relative;
  margin: 0 0 0.24em;   /* room for descenders (g, y, j) */
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.325rem, 19.6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-shadow: 0 0 28px rgba(241, 238, 232, 0.18);
}
.name::before,
.name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.name::before { animation: glitch-a 7s steps(1, end) infinite; }
.name::after  { animation: glitch-b 7s steps(1, end) infinite; color: rgba(241, 238, 232, 0.55); }

@keyframes glitch-a {
  0%    { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  90%   { opacity: 1; transform: translate(-4px, 0);  clip-path: inset(18% 0 58% 0); }
  91%   { transform: translate(5px, 0);  clip-path: inset(60% 0 14% 0); }
  92.5% { transform: translate(-2px, 0); clip-path: inset(38% 0 40% 0); }
  94%   { opacity: 0; }
}
@keyframes glitch-b {
  0%    { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  90.5% { opacity: 1; transform: translate(6px, 1px);  clip-path: inset(72% 0 6% 0); }
  92%   { transform: translate(-5px, 0); clip-path: inset(8% 0 76% 0); }
  93.5% { opacity: 0; }
}

.quote {
  margin: 0.9rem auto 0;
  max-width: 26ch;
  font: italic 500 1.2rem/1.35 var(--font-serif);
  color: rgba(241, 238, 232, 0.8);
}

/* ---------- featured release ---------- */
.release {
  position: relative;
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  gap: 1rem;
  align-items: center;
  margin: 2.5rem 0 1.25rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(241, 238, 232, 0.07), rgba(241, 238, 232, 0.01) 60%);
  text-decoration: none;
  transition: border-color 0.3s, background-color 0.3s;
}
.release:hover { border-color: var(--ink); background-color: rgba(241, 238, 232, 0.03); }

.release__art { overflow: hidden; aspect-ratio: 1; }
.release__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.release:hover .release__art img { transform: scale(1.07); }

.release__body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.kicker {
  font: 700 0.6rem/1 var(--font-mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.release__title {
  margin: 0.35rem 0 0.75rem;
  font: italic 600 clamp(1.6rem, 7vw, 2rem)/1 var(--font-serif);
  overflow-wrap: anywhere;
}
.release__cta {
  font: 700 0.66rem/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
}
.release__cta span { display: inline-block; transition: transform 0.3s; }
.release:hover .release__cta span { transform: translateX(4px); }

/* spinning "OUT NOW" stamp */
.badge {
  position: absolute;
  top: -2.1rem;
  right: -0.6rem;
  width: 5rem;
  height: 5rem;
  overflow: visible;
  animation: spin 16s linear infinite;
}
.badge circle { fill: var(--bg); stroke: var(--line); }
.badge text {
  font: 700 8.6px var(--font-mono);
  letter-spacing: 1px;
  fill: var(--ink);
}
.badge .badge__star { font-size: 14px; text-anchor: middle; dominant-baseline: central; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- links ---------- */
.links { display: grid; gap: 0.6rem; }

.link {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.6);
  font: 700 0.85rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s;
}
/* white wipe on hover */
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
}
.link:hover,
.link:focus-visible { color: var(--bg); border-color: var(--ink); }
.link:hover::before,
.link:focus-visible::before { transform: scaleX(1); }

.link__no { font-weight: 400; font-size: 0.66rem; color: var(--ink-dim); transition: color 0.3s; }
.link:hover .link__no,
.link:focus-visible .link__no { color: inherit; }

.link__label { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.link:hover .link__label { animation: jolt 0.32s steps(3, end) 1; }
@keyframes jolt {
  0%   { transform: translate(2px, 0); }
  33%  { transform: translate(-2px, 1px); }
  66%  { transform: translate(1px, -1px); }
  100% { transform: none; }
}

.link__arrow { transition: transform 0.3s; }
.link:hover .link__arrow { transform: translate(3px, -3px); }

.tag {
  font: 700 0.55rem/1 var(--font-mono);
  font-style: normal;
  letter-spacing: 0.16em;
  padding: 0.3rem 0.4rem;
  background: var(--ink);
  color: var(--bg);
  animation: tag-blink 2.4s steps(1, end) infinite;
}
@keyframes tag-blink { 50% { opacity: 0.35; } }
.link:hover .tag { background: var(--bg); color: var(--ink); animation: none; }

/* ---------- socials ---------- */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.4rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  font: 400 0.66rem/1 var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.socials a {
  display: inline-block;
  padding: 0.6rem 0 0.35rem;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.socials a:hover,
.socials a:focus-visible { color: var(--ink); border-color: currentColor; }

/* ---------- footer ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font: 400 0.58rem/1.6 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- 404 page bits ---------- */
.lost {
  min-height: 80svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1rem;
}
.lost .name { font-size: clamp(6rem, 30vw, 10rem); }
.lost .link { justify-self: center; grid-template-columns: auto auto; margin-top: 1rem; }

/* ==========================================================================
   ENTRANCE — content "develops" in like an overexposed photo
   ========================================================================== */
.reveal {
  animation: develop 1.4s cubic-bezier(0.2, 0.65, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 85ms + 150ms);
}
@keyframes develop {
  0%   { opacity: 0; transform: translateY(14px); filter: blur(6px) brightness(2.6) contrast(0.6); }
  60%  { opacity: 1; filter: blur(0) brightness(1.3) contrast(1.1); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (hover: none) {
  /* no sticky hover glitch on phones */
  .link:hover .link__label { animation: none; }
}

/* respect people who turn motion off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .dust { display: none; }
}
