:root {
  --ink: #090704;
  --paper: #f2eee4;
  --gold: #d49527;
  --amber: #ffae22;
  --line: rgba(242, 238, 228, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--paper);
  background: radial-gradient(circle at 75% 8%, #251706 0, var(--ink) 28rem);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
button, input { font: inherit; }
a { color: inherit; }

#atmosphere { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .72; z-index: 0; }
.grain { position: fixed; inset: -50%; z-index: 20; pointer-events: none; opacity: .065; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E"); animation: grain .2s steps(2) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(2%,-3%)} 50%{transform:translate(-4%,2%)} 75%{transform:translate(3%,4%)} 100%{transform:translate(-2%,-2%)} }

.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 10; display: flex; justify-content: space-between; align-items: flex-start; padding: 28px 36px; mix-blend-mode: difference; }
.wordmark { display: flex; flex-direction: column; width: min-content; text-decoration: none; font-weight: 800; font-size: 13px; line-height: .82; letter-spacing: -.05em; }
.wordmark span:last-child { font-size: 8px; letter-spacing: .23em; margin-top: 6px; }
.header-actions { display: flex; align-items: center; gap: 32px; }
.header-meta { display: flex; gap: 34px; font-size: 9px; letter-spacing: .15em; }
.home-button { border: 1px solid rgba(242,238,228,.65); padding: 9px 12px 8px; text-decoration: none; font-size: 9px; letter-spacing: .16em; transition: background .25s, color .25s; }
.home-button span { color: var(--gold); font-size: 12px; }
.home-button:hover, .home-button:focus-visible { background: var(--paper); color: var(--ink); outline: none; }

main, footer { position: relative; z-index: 1; }
.hero { min-height: 100svh; position: relative; display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; padding: 115px 5vw 70px 8vw; }
.hero-copy { position: relative; z-index: 3; }
.eyebrow { font-size: 9px; letter-spacing: .25em; font-weight: 700; margin: 0 0 24px; }
h1 { margin: 0; font: 400 clamp(76px, 11vw, 172px)/.74 Georgia, 'Times New Roman', serif; letter-spacing: -.075em; display: flex; flex-direction: column; }
h1 em { color: var(--gold); font-weight: 300; line-height: .53; margin-left: .8em; }
.intro { margin: 60px 0 0; padding-left: 2px; font: italic 20px/1.45 Georgia, serif; color: #cfc6b4; }

.object-stage { min-height: 73vh; display: grid; place-items: center; perspective: 1300px; position: relative; cursor: crosshair; }
.cover-object { width: min(56vh, 40vw); aspect-ratio: 1; position: relative; transform-style: preserve-3d; transform: rotateX(4deg) rotateY(-10deg); transition: transform .14s ease-out; filter: drop-shadow(0 36px 55px rgba(0,0,0,.6)); z-index: 2; }
.cover-face { position: absolute; inset: 0; overflow: hidden; transform: translateZ(15px); background: #6d3c09; }
.cover-face img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cover-glare { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.2) 47%, transparent 62%); mix-blend-mode: screen; transform: translateX(-90%); transition: transform .6s ease; }
.object-stage:hover .cover-glare { transform: translateX(90%); }
.cover-edge { position: absolute; background: linear-gradient(90deg, #1b1107, #a16b17, #362006); transform-origin: center; }
.edge-right { right: -15px; top: 0; width: 30px; height: 100%; transform: rotateY(90deg); }
.edge-top { top: -15px; left: 0; height: 30px; width: 100%; transform: rotateX(90deg); }
.orbit { position: absolute; border: 1px solid rgba(218,153,40,.3); border-radius: 50%; transform: rotateX(67deg) rotateZ(-13deg); }
.orbit-one { width: min(69vh, 51vw); aspect-ratio: 1; animation: orbit 16s linear infinite; }
.orbit-two { width: min(78vh, 59vw); aspect-ratio: 1; border-color: rgba(255,255,255,.08); animation: orbit 24s linear reverse infinite; }
@keyframes orbit { to { transform: rotateX(67deg) rotateZ(347deg); } }
.drag-note { position: absolute; bottom: 1%; right: 7%; font-size: 8px; letter-spacing: .2em; color: #8b8173; writing-mode: vertical-rl; }
.scroll-cue { position: absolute; bottom: 33px; left: 36px; display: flex; align-items: center; gap: 12px; font-size: 8px; letter-spacing: .2em; }
.scroll-cue span { width: 43px; height: 1px; background: var(--paper); transform-origin: left; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scaleX(.35); opacity: .4; } }

.section-index { font-size: 9px; letter-spacing: .18em; color: #8c8171; border-top: 1px solid var(--line); padding-top: 14px; }
.player-section { min-height: 88vh; padding: 120px 8vw; display: grid; grid-template-columns: 1fr 4fr; gap: 5vw; align-items: start; background: linear-gradient(180deg, transparent, rgba(28,18,7,.58), transparent); }
.player-card { padding-top: 7vh; }
.player-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 78px; }
.player-heading h2 { margin: 0; font: 400 clamp(45px, 7vw, 104px)/.9 Georgia, serif; letter-spacing: -.055em; }
.player-heading .eyebrow { margin-bottom: 17px; color: var(--gold); }
.duration { font: italic 22px Georgia, serif; color: #9f9586; }
.wave-wrap { height: 190px; position: relative; border-block: 1px solid var(--line); }
#waveform { display: block; width: 100%; height: 100%; }
.seek { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.player-controls { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 24px; padding-top: 26px; }
.play { width: 68px; height: 68px; border: 1px solid #aaa08e; border-radius: 50%; background: transparent; color: white; display: grid; place-items: center; cursor: pointer; transition: .3s; }
.play:hover { background: var(--paper); color: var(--ink); transform: scale(1.06); }
.play-icon { display: block; width: 0; height: 0; border-block: 8px solid transparent; border-left: 13px solid currentColor; margin-left: 4px; }
.pause-icon { display: none; gap: 5px; }
.pause-icon i { display: block; width: 3px; height: 17px; background: currentColor; }
.play.is-playing .play-icon { display: none; }
.play.is-playing .pause-icon { display: flex; }
.mini-vinyl { width: 48px; height: 48px; border-radius: 50%; position: relative; overflow: hidden; flex: none; background: repeating-radial-gradient(circle, transparent 0 2px, rgba(255,255,255,.08) 2.5px 3px), url('/assets/tsar-set/tsar-set-cover.png') center/cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 8px 18px rgba(0,0,0,.45); animation: mini-spin 3.8s linear infinite; animation-play-state: paused; will-change: transform; transform: translateZ(0); }
.mini-vinyl::after { content: ''; position: absolute; inset: 38%; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px rgba(9,7,4,.72); }
.mini-vinyl span { position: absolute; inset: 49%; z-index: 1; border-radius: 50%; background: var(--ink); }
.audio-playing .mini-vinyl { animation-play-state: running; }
@keyframes mini-spin { to { transform: translateZ(0) rotate(360deg); } }
.time { display: flex; align-items: center; gap: 13px; font-size: 9px; letter-spacing: .12em; color: #a79e90; }
.time-line { height: 1px; flex: 1; background: var(--line); }
.sound { border: 0; color: var(--paper); background: transparent; height: 34px; display: flex; align-items: flex-end; gap: 3px; cursor: pointer; }
.sound span, .sound i { display: block; width: 2px; background: currentColor; }
.sound span { height: 6px; } .sound i:nth-child(2){height:11px}.sound i:nth-child(3){height:17px}.sound i:nth-child(4){height:24px}
.sound.is-muted { opacity: .35; }

.manifesto { min-height: 100vh; padding: 130px 8vw; display: grid; grid-template-columns: 1fr 2.1fr 1.9fr; gap: 5vw; align-items: center; overflow: hidden; }
.manifesto .section-index { align-self: start; margin-top: 0; }
.manifesto-copy h2 { margin: 0 0 52px; font: 400 clamp(54px, 7.5vw, 110px)/.88 Georgia, serif; letter-spacing: -.06em; }
.manifesto-copy h2 i { color: var(--gold); font-weight: 400; }
.body-copy { max-width: 420px; margin: 0; color: #a99f90; font: 16px/1.75 Arial, sans-serif; }
.artifact { position: relative; perspective: 1000px; min-height: 530px; display: grid; place-items: center; }
.artifact-disc { width: min(35vw, 470px); aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle at center, transparent 0 2px, rgba(255,255,255,.04) 3px 4px), radial-gradient(circle at 36% 28%, #edaa2d, #5c3508 28%, #100b06 55%, #b27613 78%, #0b0805); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 50px 90px #000; transform: rotateX(57deg) rotateZ(-18deg) translateZ(0); animation: disc 12s linear infinite; animation-play-state: paused; will-change: transform; display: grid; place-items: center; }
.audio-playing .artifact-disc { animation-play-state: running; }
.disc-label { width: 27%; aspect-ratio: 1; background: #ebe5d8; border-radius: 50%; color: #171009; display: grid; place-content: center; text-align: center; font: 17px/.8 Georgia, serif; letter-spacing: .16em; box-shadow: 0 0 20px rgba(0,0,0,.6); }
.disc-label span { font: 7px Arial, sans-serif; letter-spacing: .38em; }
@keyframes disc { to { transform: rotateX(57deg) rotateZ(342deg) translateZ(0); } }
.artifact-shadow { position: absolute; z-index: -1; width: 80%; height: 10%; bottom: 4%; background: #b67212; filter: blur(45px); opacity: .25; }

.closing { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 80px 5vw; background: radial-gradient(circle at 50% 60%, #4b2e09 0, #130d06 24%, var(--ink) 57%); }
.closing h2 { margin: 20px 0 48px; font: 400 clamp(63px, 11.5vw, 180px)/.66 Georgia, serif; letter-spacing: -.08em; }
.closing h2 span { font-style: italic; color: var(--gold); }
.return-link { text-decoration: none; border-bottom: 1px solid var(--paper); padding-bottom: 8px; font-size: 10px; letter-spacing: .2em; }
.return-link span { color: var(--gold); font-size: 15px; }
footer { min-height: 150px; border-top: 1px solid var(--line); margin: 0 36px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 8px; letter-spacing: .18em; }
footer p:last-child { text-align: right; }

@media (max-width: 800px) {
  .site-header { padding: 22px 20px; }
  .header-meta { display: none; }
  .header-actions { gap: 0; }
  .home-button { padding: 8px 10px 7px; }
  .hero { min-height: auto; display: flex; flex-direction: column; padding: 120px 20px 72px; align-items: stretch; }
  .hero-copy { position: relative; left: auto; top: auto; z-index: 4; }
  h1 { font-size: clamp(80px, 23vw, 126px); }
  .intro { margin-top: 32px; font-size: 16px; }
  .object-stage { width: 100%; min-height: 520px; margin-top: 44px; }
  .cover-object { width: min(78vw, 430px); }
  .orbit-one { width: min(92vw, 500px); }
  .orbit-two { display: none; }
  .drag-note { display: none; }
  .scroll-cue { position: relative; left: auto; bottom: auto; margin-top: 24px; }
  .player-section { min-height: auto; padding: 90px 20px 110px; grid-template-columns: 1fr; gap: 30px; content-visibility: auto; contain-intrinsic-size: 850px; }
  .player-card { padding-top: 10px; }
  .player-heading { margin-bottom: 50px; }
  .wave-wrap { height: 135px; }
  .player-controls { grid-template-columns: auto auto 1fr auto; gap: 14px; }
  .mini-vinyl { width: 42px; height: 42px; }
  .manifesto { min-height: auto; padding: 100px 20px; grid-template-columns: 1fr; gap: 55px; content-visibility: auto; contain-intrinsic-size: 950px; }
  .artifact { min-height: 380px; }
  .artifact-disc { width: 86vw; }
  .closing { min-height: 78svh; content-visibility: auto; contain-intrinsic-size: 760px; }
  .closing h2 { line-height: .75; }
  footer { margin: 0 20px; grid-template-columns: 1fr 1fr; }
  footer > p:first-of-type { display: none; }
  .grain { animation: none; opacity: .045; }
}

@media (max-width: 520px) {
  .site-header { padding: 18px 16px; }
  .hero { padding: 104px 16px 64px; }
  .eyebrow { letter-spacing: .2em; }
  h1 { font-size: clamp(76px, 25vw, 112px); }
  .object-stage { min-height: 430px; margin-top: 34px; }
  .cover-object { width: 80vw; }
  .player-section { padding-inline: 16px; }
  .player-heading { align-items: flex-start; gap: 16px; }
  .player-heading h2 { font-size: clamp(42px, 13vw, 62px); }
  .duration { font-size: 17px; padding-top: 34px; }
  .wave-wrap { height: 112px; }
  .player-controls { gap: 10px; }
  .play { width: 56px; height: 56px; }
  .mini-vinyl { width: 38px; height: 38px; }
  .time { gap: 7px; font-size: 8px; }
  .time-line { display: none; }
  .sound { padding-inline: 4px; }
  .manifesto { padding-inline: 16px; }
  .manifesto-copy h2 { font-size: clamp(52px, 17vw, 78px); margin-bottom: 38px; }
  .artifact { min-height: 320px; }
  .closing { padding-inline: 16px; }
  footer { min-height: 120px; margin-inline: 16px; }
}

@media (hover: none) and (pointer: coarse) {
  .cover-glare { display: none; }
  .cover-object { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}
