:root {
  --black: #060606;
  --graphite: #141414;
  --ink: #171717;
  --muted: #66635e;
  --paper: #ebe8df;
  --paper-light: #f7f4ea;
  --line: rgba(18, 18, 18, 0.2);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--sans);
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.12), transparent 38%),
    var(--black);
  background-size: 32px 32px, 32px 32px, 100% 100%, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at center, transparent 25%, rgba(0,0,0,0.62) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 18% 30%, rgba(255,255,255,0.42) 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 78% 66%, rgba(0,0,0,0.36) 0 1px, transparent 1px 4px);
  background-size: 125px 125px, 150px 150px;
}


.audio-unlock-hint {
  position: fixed;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  z-index: 30;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(245,242,232,0.14);
  border-radius: 999px;
  color: rgba(245,242,232,0.9);
  background: rgba(12,12,12,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.34);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.audio-unlock-hint[hidden] {
  display: none;
}
.intro-active .stage,
.intro-active .ticker {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(8px);
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(84,84,84,0.22), transparent 34%),
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px),
    #030303;
  background-size: 100% 100%, 44px 44px, 44px 44px, auto;
  transition:
    opacity 900ms cubic-bezier(.2,.8,.2,1),
    filter 900ms cubic-bezier(.2,.8,.2,1),
    transform 900ms cubic-bezier(.2,.8,.2,1);
}

.intro-overlay.is-finished {
  opacity: 0;
  filter: blur(18px);
  transform: scale(1.055);
  pointer-events: none;
}

.intro-overlay::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,0.18), transparent 20%),
    radial-gradient(circle at 82% 84%, rgba(255,255,255,0.13), transparent 24%),
    radial-gradient(circle at center, transparent 28%, rgba(0,0,0,0.78) 100%);
  pointer-events: none;
}

.intro-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}


.dossier-start-button {
  position: relative;
  z-index: 8;
  min-width: min(360px, 78vw);
  min-height: clamp(58px, 8vh, 82px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(26px, 5vw, 54px);
  border: 1px solid rgba(245, 242, 232, 0.28);
  color: rgba(245, 242, 232, 0.94);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.025)),
    rgba(15, 15, 15, 0.82);
  box-shadow:
    5px 5px 0 rgba(245,242,232,0.08),
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -2px 0 rgba(0,0,0,0.45),
    0 22px 60px rgba(0,0,0,0.45);
  font-family: var(--serif);
  font-size: clamp(30px, 4.8vw, 58px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 360ms ease,
    filter 360ms ease;
}

.dossier-start-button:hover {
  transform: translate(2px, 2px);
  box-shadow:
    2px 2px 0 rgba(245,242,232,0.08),
    inset 0 2px 6px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 18px 46px rgba(0,0,0,0.38);
}

.dossier-start-button:active {
  transform: translate(4px, 4px);
}

.intro-overlay.is-running .dossier-start-button {
  opacity: 0;
  transform: scale(0.92);
  filter: blur(10px);
  pointer-events: none;
}

.intro-flash {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

.intro-overlay.shot-one .intro-flash,
.intro-overlay.shot-two .intro-flash,
.intro-overlay.shot-three .intro-flash {
  animation: none !important;
}

@keyframes introFlash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

.intro-content,
.intro-kicker,
.intro-hint,
.intro-start {
  display: none !important;
}

.splatter {
  position: absolute;
  z-index: 4;
  width: clamp(190px, 22vw, 360px);
  aspect-ratio: 1;
  opacity: 0;
  transform: scale(0.28) rotate(var(--rotate));
  filter: drop-shadow(0 0 24px rgba(150, 0, 0, 0.46));
  pointer-events: none;
  background: center / contain no-repeat url("../assets/splatter.png");
}

.splatter::before,
.splatter::after {
  display: none;
}

.splatter::after {
  inset: 5%;
  opacity: 0.48;
  transform: scale(1.08) rotate(-8deg);
  filter: blur(3px);
}

.splatter-one {
  top: 10%;
  left: 10%;
  --rotate: -18deg;
}

.splatter-two {
  top: 24%;
  right: 12%;
  --rotate: 12deg;
}

.splatter-three {
  left: 38%;
  bottom: 10%;
  --rotate: -4deg;
}

.intro-overlay.shot-one .splatter-one,
.intro-overlay.shot-two .splatter-two,
.intro-overlay.shot-three .splatter-three {
  animation: splatterIn 620ms cubic-bezier(.1,.8,.2,1) both;
}

@keyframes splatterIn {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(var(--rotate));
    filter: blur(6px) drop-shadow(0 0 0 rgba(115,0,0,0));
  }
  26% {
    opacity: 1;
    transform: scale(1.18) rotate(var(--rotate));
    filter: blur(0) drop-shadow(0 0 22px rgba(115,0,0,0.5));
  }
  100% {
    opacity: 0.92;
    transform: scale(1) rotate(var(--rotate));
  }
}

.intro-overlay.reveal-main .splatter {
  transition: opacity 520ms ease, transform 760ms cubic-bezier(.2,.8,.2,1), filter 760ms ease;
  opacity: 0;
  transform: scale(1.5) rotate(var(--rotate));
  filter: blur(14px) drop-shadow(0 0 30px rgba(160,0,0,0.32));
}

.ticker {
  position: fixed;
  left: 0;
  width: 100%;
  height: 38px;
  overflow: hidden;
  z-index: 5;
  display: flex;
  align-items: center;
  border-block: 1px solid rgba(255,255,255,0.09);
  background: rgba(7, 7, 7, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition:
    opacity 900ms cubic-bezier(.2,.8,.2,1),
    transform 900ms cubic-bezier(.2,.8,.2,1),
    filter 900ms cubic-bezier(.2,.8,.2,1);
}

.ticker.is-dragging {
  cursor: grabbing;
}

.ticker-top { top: 0; }
.ticker-bottom { bottom: 0; }

.ticker-track {
  display: flex;
  width: max-content;
  flex: 0 0 auto;
  align-items: center;
  color: rgba(245, 242, 232, 0.92);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.ticker-sequence {
  width: max-content;
  min-width: max-content;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  padding-inline: 18px;
}

.ticker-sequence span::after {
  content: " /";
  margin-left: 30px;
  opacity: 0.44;
}

.stage {
  position: relative;
  z-index: 1;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 50px 16px;
  transition:
    opacity 900ms cubic-bezier(.2,.8,.2,1),
    transform 900ms cubic-bezier(.2,.8,.2,1),
    filter 900ms cubic-bezier(.2,.8,.2,1);
}

.bio-panel {
  width: min(1080px, 94vw);
  height: min(760px, calc(100svh - 100px));
  display: grid;
  grid-template-rows: clamp(116px, 22vh, 185px) auto minmax(0, 1fr) auto auto;
  gap: clamp(10px, 1.5vh, 16px);
  padding: clamp(13px, 1.9vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.02)),
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.96), transparent 30%),
    linear-gradient(180deg, var(--paper-light), var(--paper));
  box-shadow:
    0 26px 70px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -2px 0 rgba(0,0,0,0.18);
  animation: panelIn 760ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.banner-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.24);
  border-radius: clamp(15px, 2vw, 23px);
  background: #101010;
  box-shadow:
    0 0 30px rgba(232, 218, 184, 0.18),
    0 0 70px rgba(232, 218, 184, 0.09),
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 46px rgba(232, 218, 184, 0.12),
    0 8px 22px rgba(0,0,0,0.2);
}

.banner-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at left center, rgba(232, 218, 184, 0.34), transparent 34%),
    radial-gradient(ellipse at right center, rgba(232, 218, 184, 0.26), transparent 34%),
    linear-gradient(90deg, rgba(232, 218, 184, 0.20), transparent 18%, transparent 82%, rgba(232, 218, 184, 0.20)),
    linear-gradient(180deg, rgba(232, 218, 184, 0.16), transparent 22%, transparent 78%, rgba(232, 218, 184, 0.13));
  mix-blend-mode: screen;
}

.banner-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.44), transparent 45%, rgba(0,0,0,0.24)),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 44%, rgba(0,0,0,0.18));
}

.banner-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: opacity 360ms ease, transform 6s ease;
}

.banner-frame img.is-changing {
  opacity: 0.16;
  transform: scale(1.035);
}

.panel-head,
.panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.identity-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(8px, 1.5vh, 16px);
  border-block: 1px solid var(--line);
}

.eyebrow,
.group-title {
  margin: 0;
  color: #343434;
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 0;
  max-width: 100%;
  color: #161616;
  font-family: var(--serif);
  font-size: clamp(52px, 10.4vw, 142px);
  line-height: 0.78;
  font-weight: 700;
  letter-spacing: -0.075em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

h1.is-blinking {
  animation: nameBlink 760ms steps(2, end) 1;
}

@keyframes nameBlink {
  0%, 100% {
    opacity: 1;
    filter: none;
    transform: translateX(0);
  }
  18% {
    opacity: 0.18;
    filter: blur(1px) contrast(1.4);
    transform: translateX(-1px);
  }
  36% {
    opacity: 1;
    filter: none;
    transform: translateX(1px);
  }
  54% {
    opacity: 0.28;
    filter: blur(0.6px) contrast(1.25);
    transform: translateX(0);
  }
  72% {
    opacity: 1;
    filter: none;
  }
}

.description {
  width: min(760px, 100%);
  margin: clamp(12px, 1.7vh, 22px) 0 0;
  color: #5d5b56;
  font-size: clamp(13px, 1.4vw, 18px);
  line-height: 1.52;
}

.link-area {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.5vh, 15px);
  align-content: end;
}

.link-group {
  min-width: 0;
}

.group-title {
  margin-bottom: 8px;
  letter-spacing: 0.28em;
}

.button-row {
  display: grid;
  gap: 10px;
}

.project-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.archive-button {
  min-height: clamp(42px, 6.2vh, 58px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(30,30,30,0.23);
  color: #1b1b1b;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.52), rgba(0,0,0,0.025)),
    #ebe7dd;
  box-shadow:
    4px 4px 0 rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.86),
    inset 0 -2px 0 rgba(0,0,0,0.09);
  font-family: var(--serif);
  font-size: clamp(18px, 2.3vw, 31px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.archive-button:hover {
  transform: translate(2px, 2px);
  background-color: #dedacf;
  box-shadow:
    1px 1px 0 rgba(0,0,0,0.24),
    inset 0 2px 4px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.62);
}

.archive-button:active {
  transform: translate(3px, 3px);
}

.panel-foot {
  padding-top: 2px;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.audio-control {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
  transform: translateY(7px);
}

.audio-label,
.volume-control span,
.track-file span,
.audio-button {
  color: var(--muted);
  font-size: clamp(10px, 1vw, 12px);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.track-file input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.track-file,
.audio-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(30,30,30,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.52), rgba(0,0,0,0.025)),
    #ebe7dd;
  box-shadow:
    3px 3px 0 rgba(0,0,0,0.13),
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -2px 0 rgba(0,0,0,0.07);
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.track-file:hover,
.audio-button:hover {
  transform: translate(1px, 1px);
  box-shadow:
    1px 1px 0 rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(0,0,0,0.08);
}

.audio-button {
  font-family: var(--sans);
}

.volume-control {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.volume-control input[type="range"] {
  width: 100%;
  height: 18px;
  accent-color: #1c1c1c;
  cursor: pointer;
  transform: translateY(3px);
}

.volume-control input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(0,0,0,0.28);
  border-radius: 999px;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  border: 1px solid rgba(0,0,0,0.35);
  border-radius: 50%;
  background: #f0ece1;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}

.volume-control input[type="range"]::-moz-range-track {
  height: 3px;
  background: rgba(0,0,0,0.28);
  border-radius: 999px;
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0,0,0,0.35);
  border-radius: 50%;
  background: #f0ece1;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.18);
}

@media (max-width: 720px) {
  .ticker { height: 34px; }

  .ticker-track {
    font-size: 15px;
  }

  .ticker-sequence {
    gap: 22px;
  }

  .stage { padding: 44px 10px; }

  .bio-panel {
    width: 94vw;
    height: calc(100svh - 88px);
    grid-template-rows: 92px auto minmax(0, 1fr) auto auto;
    gap: 9px;
    padding: 11px;
    border-radius: 22px;
  }

  .panel-head,
  .panel-foot {
    letter-spacing: 0.12em;
  }

  .panel-head span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(42px, 16vw, 82px);
    letter-spacing: -0.08em;
  }

  .description {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.4;
  }

  .project-row,
  .social-row {
    grid-template-columns: 1fr;
  }

  .archive-button {
    min-height: 37px;
    font-size: 19px;
  }

  .audio-control {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .audio-label {
    display: none;
  }

  .track-file,
  .audio-button {
    min-height: 30px;
    padding-inline: 9px;
  }

  .volume-control {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    gap: 8px;
  }
}

@media (max-height: 670px) {
  .bio-panel {
    grid-template-rows: 74px auto minmax(0, 1fr) auto auto;
  }

  .description {
    display: none;
  }

  .identity-block {
    padding-block: 7px;
  }

  .archive-button {
    min-height: 35px;
    font-size: clamp(16px, 2vw, 24px);
  }
}

@media (max-height: 540px) {
  .panel-head,
  .group-title {
    display: none;
  }

  .bio-panel {
    grid-template-rows: 62px minmax(0, 1fr) auto;
  }
}


@media (max-height: 540px) {
  .audio-control {
    display: grid;
    grid-template-columns: auto auto minmax(120px, 1fr);
    gap: 8px;
  }

  .audio-label {
    display: none;
  }

  .track-file,
  .audio-button {
    min-height: 28px;
    padding-inline: 8px;
  }
}

@media (max-width: 720px) {
  .splatter {
    width: clamp(150px, 38vw, 240px);
  }
}

@media (max-width: 720px) {
  .dossier-start-button {
    min-width: min(300px, 82vw);
    min-height: 58px;
    font-size: clamp(28px, 10vw, 44px);
  }
}


.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 35;
  transform: translate(-50%, 12px);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid rgba(245, 242, 232, 0.20);
  border-radius: 999px;
  color: rgba(245, 242, 232, 0.94);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02)),
    rgba(9, 9, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.36),
    inset 0 1px 0 rgba(255,255,255,0.12);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.copy-toast[hidden] {
  display: none;
}

button.archive-button {
  border-radius: 0;
  cursor: pointer;
}
