:root {
  --bg: #090908;
  --ink: #f4efe4;
  --muted: #9c968b;
  --red: #ff6048;
  --blue: #6ea7ff;
  --green: #64d198;
  --line: rgba(244, 239, 228, 0.075);
  --glow: rgba(255, 96, 72, 0.22);
  --scene-y: 0vh;
  --light-shift: 0vw;
  --light-rise: 0vh;
  --light-tilt: 0deg;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  font-family: "Bricolage Grotesque", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 24%, rgba(110, 167, 255, 0.14), transparent 26rem),
    radial-gradient(circle at 22% 82%, rgba(255, 96, 72, 0.12), transparent 24rem),
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 50% 50% / 72px 72px,
    linear-gradient(0deg, rgba(244, 239, 228, 0.03) 1px, transparent 1px) 50% 50% / 72px 72px,
    var(--bg);
  overscroll-behavior: none;
  touch-action: none;
}

.light-rig {
  position: fixed;
  inset: -20vh -18vw;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.light-rig span {
  position: absolute;
  display: block;
  width: clamp(18rem, 38vw, 44rem);
  height: clamp(3rem, 8vw, 7rem);
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.34;
  mix-blend-mode: screen;
  transform:
    translate3d(var(--light-shift), var(--light-rise), 0)
    rotate(calc(var(--light-tilt) + var(--beam-tilt)));
  transition: transform 900ms cubic-bezier(0.2, 1.1, 0.3, 1);
}

.light-rig span:nth-child(1) {
  --beam-tilt: -18deg;
  left: 8vw;
  top: 18vh;
  background: linear-gradient(90deg, transparent, rgba(255, 96, 72, 0.72), transparent);
}

.light-rig span:nth-child(2) {
  --beam-tilt: 24deg;
  right: 5vw;
  top: 25vh;
  background: linear-gradient(90deg, transparent, rgba(110, 167, 255, 0.68), transparent);
  transition-duration: 1200ms;
}

.light-rig span:nth-child(3) {
  --beam-tilt: 8deg;
  left: 30vw;
  bottom: 8vh;
  background: linear-gradient(90deg, transparent, rgba(100, 209, 152, 0.52), transparent);
  transition-duration: 1050ms;
}

.light-rig span:nth-child(4) {
  --beam-tilt: -35deg;
  right: 18vw;
  bottom: 24vh;
  background: linear-gradient(90deg, transparent, rgba(244, 239, 228, 0.26), transparent);
  transition-duration: 1400ms;
}

body.is-dragging,
body.is-dragging * {
  cursor: grabbing;
  user-select: none;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.socials {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.socials a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-2px);
  color: var(--red);
  outline: none;
}

.socials svg {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
}

.socials a:nth-child(2) svg {
  width: 2.1rem;
  height: 2.1rem;
}

.experience {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.scene-track {
  height: calc(var(--scene-count, 4) * 100vh);
  transform: translate3d(0, var(--scene-y), 0);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.scene {
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(5.4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem) clamp(5rem, 8vw, 6rem);
}

.hero-scene {
  place-items: center;
  padding-left: clamp(1.2rem, 10vw, 8rem);
}

.hero-stack {
  position: relative;
  z-index: 2;
  width: min(88rem, 100%);
}

.hero-scene::after {
  content: "";
  position: absolute;
  pointer-events: none;
  right: clamp(1rem, 8vw, 7rem);
  bottom: 13vh;
  width: clamp(10rem, 24vw, 18rem);
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255, 96, 72, 0.94), rgba(110, 167, 255, 0.42));
  filter: blur(34px);
  opacity: 0.62;
  transform: rotate(-12deg);
}

.section-ribbon {
  position: fixed;
  left: clamp(1rem, 5vw, 4rem);
  bottom: clamp(5.2rem, 9vh, 7rem);
  z-index: 5;
  pointer-events: none;
  --nav-base: clamp(1.05rem, 1.5vw, 1.45rem);
}

.section-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.56rem;
}

.section-nav-item {
  border: 0;
  padding: 0.08rem 0;
  background: transparent;
  color: rgba(244, 239, 228, 0.78);
  font-family: "Space Grotesk", "Bricolage Grotesque", "Inter", sans-serif;
  font-size: var(--nav-base);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: none;
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  display: inline-block;
  transform-origin: left center;
  transform: scale(1);
  will-change: transform;
  transition:
    color 180ms ease,
    transform 360ms cubic-bezier(0.2, 1, 0.2, 1),
    opacity 180ms ease,
    letter-spacing 220ms ease;
}

.section-nav-item:hover,
.section-nav-item:focus-visible {
  color: var(--ink);
  transform: scale(1.02);
  outline: none;
}

.section-nav-item.is-active {
  color: var(--ink);
  opacity: 1;
  transform: scale(var(--nav-active-scale, 1.28));
  letter-spacing: -0.06em;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p,
figure {
  margin: 0;
}

h1,
h2 {
  font-family: "Space Grotesk", "Bricolage Grotesque", "Inter", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  display: grid;
  max-width: 8ch;
  font-size: clamp(5.4rem, 19vw, 18rem);
  line-height: 0.7;
  text-shadow: 0 0 4rem var(--glow);
}

h1[role="button"] {
  cursor: pointer;
}

h1[role="button"]:focus-visible {
  outline: none;
  text-shadow:
    0 0 4rem var(--glow),
    0 0 1.2rem rgba(244, 239, 228, 0.28);
}

h1 span:last-child {
  margin-left: clamp(2.4rem, 14vw, 13rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: none;
}

h2 {
  font-size: clamp(2.6rem, 7.2vw, 7rem);
  line-height: 0.9;
}

.section-subtitle {
  max-width: min(28rem, 78vw);
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
}

.scene-label {
  position: absolute;
  left: clamp(1rem, 5vw, 4rem);
  top: clamp(5.2rem, 9vh, 7rem);
  z-index: 120;
}

.deck {
  position: relative;
  width: min(100vw, 88rem);
  height: min(82vh, 56rem);
  margin-top: 0;
  display: grid;
  place-items: center;
  perspective: 1200px;
  touch-action: none;
  isolation: isolate;
}

.work-scene:not(.is-current) .deck {
  visibility: hidden;
  pointer-events: none;
}

.poster-deck,
.so-help-me-god-deck {
  --art-w: clamp(14rem, min(18.75vw, 33.333vh), 30rem);
}

.album-deck {
  --art-w: clamp(16rem, 30vw, 32rem);
}

.art-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--art-w) * var(--art-scale, 1));
  max-width: 84vw;
  transform:
    translate3d(calc(-50% + var(--x)), calc(-50% + var(--y)), var(--z))
    rotateY(var(--rotate))
    rotateZ(var(--tilt))
    scale(var(--scale));
  opacity: var(--opacity);
  filter: blur(var(--blur)) brightness(var(--brightness));
  z-index: var(--z-index);
  transition: none;
  will-change: transform, filter, opacity;
  backface-visibility: hidden;
}

.is-ready .art-card {
  transition:
    transform 110ms ease-out,
    filter 110ms ease,
    opacity 110ms ease;
}

.art-card.is-active {
  pointer-events: auto;
}

.art-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.art-origin {
  color: var(--muted);
  display: inline-grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.art-origin:hover,
.art-origin:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.art-origin svg,
.download-artwork svg {
  width: 1.15rem;
  height: 1.15rem;
}

.download-artwork {
  display: inline-grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  color: var(--muted);
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.download-artwork:hover,
.download-artwork:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.art-card img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--art-aspect, auto);
  display: block;
  object-fit: contain;
  box-shadow:
    0 2.2rem 5.6rem rgba(0, 0, 0, 0.62),
    0 0 3rem rgba(244, 239, 228, 0.09);
}

figcaption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

figcaption strong {
  color: var(--ink);
  flex: 1 1 auto;
  font-weight: 800;
  min-width: 0;
}

figcaption strong[role="button"],
.art-dimensions[role="button"] {
  cursor: pointer;
}

figcaption strong[role="button"]:focus-visible,
.art-dimensions[role="button"]:focus-visible {
  color: var(--ink);
  outline: none;
}

.file-extension {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.art-dimensions {
  flex: 0 1 auto;
  font-size: 0.76rem;
  line-height: 1.15;
  max-width: 68%;
  min-width: 0;
  overflow-wrap: normal;
  text-align: right;
}

@media (prefers-reduced-motion: reduce) {
  .scene-track,
  .art-card,
  .socials a {
    transition-duration: 1ms;
  }
}


@media (max-width: 720px) {
  :root {
    --app-height: 100svh;
    --mobile-header-space: clamp(9.4rem, 40vw, 10.3rem);
    --mobile-nav-space: calc(3rem + env(safe-area-inset-bottom));
    --mobile-content-top: var(--mobile-header-space);
    --mobile-content-bottom: var(--mobile-nav-space);
  }

  html,
  body,
  .experience,
  .scene {
    height: var(--app-height);
  }

  body {
    touch-action: pan-y;
    background:
      radial-gradient(circle at 82% 18%, rgba(110, 167, 255, 0.14), transparent 18rem),
      radial-gradient(circle at 14% 84%, rgba(255, 96, 72, 0.13), transparent 18rem),
      linear-gradient(90deg, var(--line) 1px, transparent 1px) 50% 50% / 48px 48px,
      linear-gradient(0deg, rgba(244, 239, 228, 0.03) 1px, transparent 1px) 50% 50% / 48px 48px,
      var(--bg);
  }

  .light-rig {
    display: none;
  }

  .scene-track {
    height: calc(var(--scene-count, 4) * var(--app-height));
  }

  .experience,
  .scene-track,
  .scene,
  .deck {
    touch-action: none;
  }

  .scene {
    padding: var(--mobile-content-top) 0 var(--mobile-content-bottom);
    place-items: center;
  }

  .hero-scene {
    padding: max(4.5rem, calc(env(safe-area-inset-top) + 3.4rem)) 1rem calc(6.4rem + env(safe-area-inset-bottom));
  }

  .hero-stack {
    width: min(100%, 24rem);
  }

  .hero-scene::after {
    right: -2rem;
    bottom: 18vh;
    width: clamp(8rem, 44vw, 14rem);
    filter: blur(28px);
    opacity: 0.52;
  }

  .eyebrow {
    margin-bottom: 0.48rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  h1,
  h2,
  .section-nav-item,
  .section-nav-item.is-active {
    letter-spacing: 0;
  }

  h1 {
    font-size: clamp(4.4rem, 27vw, 7.1rem);
    line-height: 0.74;
  }

  h1 span:last-child {
    margin-left: clamp(2.1rem, 20vw, 4.7rem);
    -webkit-text-stroke-width: 1.35px;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.25rem);
    line-height: 0.92;
  }

  .socials {
    gap: 0.7rem;
    margin-top: 0.95rem;
  }

  .socials a {
    width: 2.75rem;
    height: 2.75rem;
  }

  .socials svg,
  .socials a:nth-child(2) svg {
    width: 1.65rem;
    height: 1.65rem;
  }

  .section-ribbon {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.65rem 0.85rem calc(0.78rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(9, 9, 8, 0.9) 34%, rgba(9, 9, 8, 0.98));
    --nav-base: 0.82rem;
  }

  .section-nav {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    pointer-events: auto;
    touch-action: pan-x;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.1rem 0 0.18rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-nav-item,
  .section-nav-item.is-active {
    flex: 0 0 auto;
    max-width: 9.5rem;
    padding: 0.18rem 0;
    font-size: clamp(0.72rem, 3.5vw, 0.9rem);
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: none;
  }

  .section-nav-item.is-active {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.34rem;
  }

  .scene-label {
    top: max(1rem, env(safe-area-inset-top));
    left: 0.95rem;
    right: 0.95rem;
  }

  .section-subtitle {
    max-width: min(24rem, 92vw);
    margin-top: 0.48rem;
    font-size: 0.82rem;
    line-height: 1.28;
  }

  .deck {
    width: 100vw;
    height: calc(var(--app-height) - var(--mobile-content-top) - var(--mobile-content-bottom));
    margin-top: 0;
    justify-self: center;
  }

  .poster-deck,
  .so-help-me-god-deck {
    --art-w: clamp(11rem, min(65vw, 35svh), 18rem);
  }

  .album-deck {
    --art-w: clamp(12rem, min(68vw, 36svh), 19rem);
  }

  .poster-deck .art-card,
  .so-help-me-god-deck .art-card,
  .album-deck .art-card {
    min-width: 10rem;
    width: calc(var(--art-w) * max(var(--art-scale, 1), 0.9));
    max-width: 78vw;
  }

  .art-card {
    contain: layout style;
    filter: none !important;
    will-change: transform, opacity;
  }

  .is-ready .art-card {
    transition:
      transform 80ms ease-out,
      opacity 80ms ease;
  }

  .art-card img {
    box-shadow:
      0 1.2rem 2.8rem rgba(0, 0, 0, 0.48),
      0 0 1.25rem rgba(244, 239, 228, 0.06);
  }

  .art-card:not(.is-active) .art-toolbar,
  .art-card:not(.is-active) figcaption {
    opacity: 0;
  }

  .art-toolbar {
    gap: 0.65rem;
    margin-bottom: 0.45rem;
  }

  .art-origin,
  .download-artwork {
    width: 2rem;
    height: 2rem;
  }

  .art-origin svg,
  .download-artwork svg {
    width: 1.18rem;
    height: 1.18rem;
  }

  figcaption {
    gap: 0.6rem;
    margin-top: 0.62rem;
    font-size: 0.8rem;
    line-height: 1.12;
  }

  figcaption strong {
    flex: 1 1 48%;
    overflow-wrap: anywhere;
  }

  .file-extension {
    font-size: 0.66rem;
  }

  .art-dimensions {
    max-width: 52%;
    font-size: 0.62rem;
    line-height: 1.16;
  }
}

@media (max-width: 380px) {
  :root {
    --mobile-header-space: clamp(9rem, 40vw, 9.5rem);
  }

  .scene {
    padding-top: var(--mobile-content-top);
  }

  .section-subtitle {
    font-size: 0.76rem;
  }

  .art-card {
    top: 50%;
  }

  figcaption {
    font-size: 0.74rem;
  }

  .art-dimensions {
    font-size: 0.58rem;
  }
}
