:root {
  --background: #0a0b0a;
  --foreground: #e6e4db;
  --paper: #c9c7bb;
  --muted: #777a70;
  --line: rgba(218, 219, 205, 0.18);
  --green: #9ba68f;
  --red: #a53b36;
  --card: #101210;
  --card-foreground: #e6e4db;
  --popover: #101210;
  --popover-foreground: #e6e4db;
  --primary: #d9d7cc;
  --primary-foreground: #111210;
  --secondary: #252720;
  --secondary-foreground: #e6e4db;
  --accent: #30342c;
  --accent-foreground: #f1efe6;
  --destructive: #a53b36;
  --border: rgba(218, 219, 205, 0.18);
  --input: rgba(218, 219, 205, 0.2);
  --ring: #9ba68f;
  --radius: 0.125rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--foreground);
  background: radial-gradient(circle at 50% 0%, rgba(118, 128, 106, 0.07), transparent 36rem), var(--background);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  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='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 17px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.wordmark { font-weight: 700; }
.wordmark span { color: var(--muted); font-weight: 400; }
.site-header nav { display: flex; gap: 28px; color: #aaa99e; }
.site-header nav a:hover { color: var(--green); }

.hero {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 50px 0 24px;
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
}

.dv-shell {
  padding: 9px 9px 0;
  border: 1px solid #44463f;
  background: #151714;
  box-shadow: 0 28px 80px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.025);
}

.dv-screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #171b17; }
.dv-screen video { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.58) contrast(1.08) brightness(.76) sepia(.12); }
.sound-toggle { position: absolute; right: 3.5%; bottom: 9%; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(233,235,218,.58); border-radius: 0; color: rgba(243,245,226,.94); background: rgba(8,10,8,.68); font-family: var(--font-geist-mono), monospace; font-size: clamp(8px, .9vw, 11px); letter-spacing: .08em; cursor: pointer; text-shadow: 1px 1px #000; }
.sound-toggle b { font: inherit; }
.sound-toggle:hover, .sound-toggle:focus-visible { color: #fff; background: rgba(36,40,32,.88); outline: 1px solid var(--green); outline-offset: 2px; }
.video-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(62,86,62,.09), transparent 45%, rgba(80,51,42,.08)); mix-blend-mode: color; }
.scanlines { position: absolute; inset: 0; opacity: .26; background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0,0,0,.45) 4px); }

.dv-overlay {
  position: absolute;
  inset: 3.5%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(243,245,226,.88);
  font-family: var(--font-geist-mono), monospace;
  font-size: clamp(9px, 1.25vw, 15px);
  letter-spacing: .08em;
  text-shadow: 1px 1px 2px #000;
}

.dv-topline, .dv-bottomline, .dv-midline { display: flex; justify-content: space-between; }
.dv-midline { margin-top: auto; margin-bottom: 1.2rem; }
.rec { display: flex; align-items: center; gap: 8px; }
.rec i { width: .65em; height: .65em; border-radius: 50%; background: #d34038; box-shadow: 0 0 8px rgba(211,64,56,.6); animation: blink 1.25s steps(1) infinite; }

.dv-controls { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 3px; color: #777a70; font-family: var(--font-geist-mono), monospace; font-size: 8px; letter-spacing: .1em; }
.tracking { color: #9da194; }

.hero-copy { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 36px; padding: 38px 0 0; }
.eyebrow { grid-column: 1 / -1; margin: 0 0 16px; color: var(--green); font-family: var(--font-geist-mono), monospace; font-size: 9px; letter-spacing: .16em; }
.hero h1 { margin: 0; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(52px, 10vw, 126px); font-stretch: condensed; font-weight: 500; line-height: .8; letter-spacing: -.045em; }
.cn-title { margin: 16px 0 0; color: #b6b5ab; font-size: 16px; letter-spacing: .35em; }
.hero-line { grid-column: 2; grid-row: 2 / 4; max-width: 285px; margin: 0 0 2px; color: #aaa99f; font-size: 14px; line-height: 1.8; }

.scroll-marker { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 32vh; color: #5f6259; font-family: var(--font-geist-mono), monospace; font-size: 9px; letter-spacing: .18em; }
.scroll-marker span { font-size: 20px; animation: drift 2s ease-in-out infinite; }

.manifesto-section {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(320px, 680px);
  gap: clamp(40px, 9vw, 150px);
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 160px 0 210px;
  border-top: 1px solid var(--line);
}

.manifesto-index { color: #686b62; font-family: var(--font-geist-mono), monospace; font-size: 9px; letter-spacing: .12em; }
.manifesto-index > p { margin: 2px 0 48px; color: var(--green); }
.manifesto-index dl { display: grid; gap: 16px; margin: 0; }
.manifesto-index dl div { display: grid; grid-template-columns: 72px 1fr; padding-top: 10px; border-top: 1px solid var(--line); }
.manifesto-index dt { color: #555850; }
.manifesto-index dd { margin: 0; color: #8b8d84; }

.manifesto { position: relative; }
.subtitle-mark { display: inline-block; margin-bottom: 58px; padding: 7px 9px 6px; border: 1px solid #565950; color: #92958b; font-family: var(--font-geist-mono), monospace; font-size: 9px; letter-spacing: .14em; }
.manifesto p { margin: 0 0 50px; color: #c5c3ba; font-size: clamp(17px, 2vw, 23px); font-weight: 400; line-height: 2; letter-spacing: .06em; }
.manifesto p:nth-of-type(5), .manifesto p:nth-of-type(9) { margin-bottom: 92px; }
.manifesto .signoff { margin-top: 106px; margin-bottom: 0; color: #868980; font-size: 13px; letter-spacing: .12em; }

.archive-teaser { padding: 120px max(20px, calc((100vw - 1180px) / 2)) 160px; background: #c9c7bb; color: #171815; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding-bottom: 38px; border-bottom: 1px solid rgba(20,21,18,.45); }
.section-heading > div > p { margin: 0 0 15px; font-family: var(--font-geist-mono), monospace; font-size: 9px; letter-spacing: .15em; }
.section-heading h2 { margin: 0; font-size: clamp(50px, 8vw, 104px); font-weight: 500; line-height: .86; letter-spacing: -.07em; }
.section-heading > p { max-width: 330px; margin: 0 0 5px; color: #454741; font-size: 13px; line-height: 1.9; }

.featured-tapes { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: clamp(18px, 4vw, 52px); padding: 92px 2vw 105px; }
.mini-tape { position: relative; display: block; padding: 14px 14px 17px; border: 1px solid rgba(18,20,17,.55); background: #b7b5aa; box-shadow: 5px 7px 0 rgba(24,25,21,.14); transition: transform .25s ease, box-shadow .25s ease; }
.mini-tape:nth-child(1) { transform: rotate(-1.2deg); }
.mini-tape:nth-child(2) { margin-top: 62px; transform: rotate(.7deg); }
.mini-tape:nth-child(3) { margin-top: 18px; transform: rotate(-.4deg); }
.mini-tape:hover { transform: translateY(-6px) rotate(0); box-shadow: 8px 13px 0 rgba(24,25,21,.17); }
.mini-tape-green { background: #a6ab99; }
.mini-tape-paper { background: #d2d0c3; }
.mini-tape-red { background: #aa6c63; }
.tape-number { position: absolute; top: -29px; right: 1px; font-family: var(--font-geist-mono), monospace; font-size: 10px; }
.mini-frame { position: relative; aspect-ratio: 4/3; overflow: hidden; border: 5px solid #292b27; background: #20221f; }
.mini-frame::after { position: absolute; inset: 0; content: ""; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.28) 4px); }
.mini-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) saturate(.6) contrast(1.08); }
.mini-frame.focus-top img { object-position: 50% 6%; }
.mini-frame.focus-high img { object-position: 50% 18%; }
.tape-label { display: flex; justify-content: space-between; padding: 13px 2px 4px; font-family: var(--font-geist-mono), monospace; font-size: 9px; letter-spacing: .08em; }
.tape-label b { font-size: 11px; }
.play-mark { position: absolute; top: 26px; left: 27px; color: rgba(242,241,227,.88); font-family: var(--font-geist-mono), monospace; font-size: 8px; text-shadow: 1px 1px #000; }
.archive-link-row { display: flex; justify-content: flex-end; }
.archive-link { display: flex; justify-content: space-between; width: min(100%, 500px); padding: 17px 0; border-top: 1px solid rgba(20,21,18,.55); border-bottom: 1px solid rgba(20,21,18,.55); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: .08em; }
.archive-link b { font-weight: 500; }
.archive-link:hover b { color: #7d201d; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 42px max(20px, calc((100vw - 1180px) / 2)); color: #666960; font-family: var(--font-geist-mono), monospace; font-size: 8px; letter-spacing: .12em; }
.site-footer p { margin: 0; }
.site-footer p:nth-child(2) { text-align: center; }
.site-footer a { justify-self: end; color: #8e9187; }

.archive-page { min-height: 100vh; }
.archive-hero { display: flex; align-items: end; justify-content: space-between; gap: 60px; width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 108px 0 112px; }
.archive-hero h1 { margin: 0; font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(76px, 13vw, 168px); font-weight: 500; line-height: .71; letter-spacing: -.055em; }
.archive-hero-note { display: grid; gap: 20px; max-width: 320px; padding: 19px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.archive-hero-note p { margin: 0; color: #c1c0b6; font-size: 19px; letter-spacing: .24em; }
.archive-hero-note span { color: #777a71; font-size: 12px; line-height: 1.9; }

.tape-browser { padding: 0 max(20px, calc((100vw - 1180px) / 2)) 160px; }
.archive-toolbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; min-height: 72px; margin-bottom: 66px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(10,11,10,.94); }
.archive-toolbar > div:first-child { display: flex; gap: 22px; align-items: center; font-family: var(--font-geist-mono), monospace; font-size: 9px; letter-spacing: .12em; }
.archive-toolbar p { margin: 0; color: var(--green); }
.archive-toolbar span { color: #62655d; }
.year-filters { display: flex; gap: 4px; }
.year-filter { min-width: auto; height: 30px; padding: 0 11px; border: 1px solid transparent; border-radius: 0; color: #6f7269; background: transparent; font-family: var(--font-geist-mono), monospace; font-size: 9px; letter-spacing: .08em; cursor: pointer; }
.year-filter:hover { color: #d0cec4; background: #1c1e1a; }
.year-filter[data-active="true"] { border-color: #55584f; color: #dedcd2; background: #20231e; }

.tape-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 94px clamp(24px, 4vw, 58px); padding: 0 1.5vw; }
.tape-card { position: relative; display: flex; flex-direction: column; width: 100%; height: auto; min-height: 0; padding: 14px 14px 17px; border: 1px solid #44463f; border-radius: 0; background: #1d1f1b; color: #d1cfc6; font: inherit; white-space: normal; text-align: left; cursor: pointer; box-shadow: 8px 10px 0 rgba(0,0,0,.23); transition: transform .25s ease, border-color .25s ease; }
.tape-card:hover { border-color: #72766a; background: #252821; }
.tape-card-0 { transform: rotate(-.7deg); }
.tape-card-1 { margin-top: 42px; transform: rotate(.8deg); background: #24251f; }
.tape-card-2 { margin-top: 5px; transform: rotate(-.3deg); background: #262720; }
.tape-card-3 { margin-top: -22px; transform: rotate(.5deg); background: #1c201b; }
.tape-card:hover { transform: translateY(-5px) rotate(0); }
.cassette-spine { display: flex; align-items: center; gap: 7px; width: 100%; margin-bottom: 10px; font-family: var(--font-geist-mono), monospace; font-size: 7px; letter-spacing: .12em; }
.cassette-spine i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.archive-frame { position: relative; display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden; border: 5px solid #080a08; background: #111; }
.archive-frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) saturate(.52) contrast(1.18) brightness(.78); }
.archive-scanlines { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.36) 4px); }
.card-play, .card-date { position: absolute; top: 9px; color: rgba(235,237,221,.84); font-family: var(--font-geist-mono), monospace; font-size: 7px; letter-spacing: .08em; text-shadow: 1px 1px #000; }
.card-play { left: 9px; }
.card-date { right: 9px; }
.archive-label { display: flex; justify-content: space-between; align-items: end; width: 100%; padding: 14px 1px 4px; font-family: var(--font-geist-mono), monospace; }
.archive-label b { font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.archive-label > span { color: #777a70; font-size: 7px; letter-spacing: .05em; }
.tape-holes { display: flex; justify-content: space-between; width: 28%; margin: 10px auto 0; }
.tape-holes i { width: 13px; height: 13px; border: 3px solid #0b0c0a; border-radius: 50%; background: #393b34; }
.empty-archive { padding: 80px 0; text-align: center; color: #6c6f66; font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: .1em; }

.tape-modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 14px; background: rgba(0,0,0,.86); backdrop-filter: blur(5px); }
.tape-modal-backdrop[hidden] { display: none; }
.tape-dialog { position: relative; width: min(980px, 100%); max-width: 980px; gap: 0; padding: 10px; border: 1px solid #5b5e55; border-radius: 0; background: #10120f; box-shadow: 0 32px 100px rgba(0,0,0,.75); }
.dialog-close { position: absolute; z-index: 3; top: 17px; right: 17px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.36); border-radius: 0; background: rgba(0,0,0,.72); color: #e4e2d8; font: 24px/1 Arial, sans-serif; cursor: pointer; }
.dialog-close:hover, .dialog-close:focus-visible { background: #33362e; outline: 1px solid var(--green); outline-offset: 2px; }
.dialog-video-wrap { position: relative; background: #030403; }
.dialog-video-wrap video { display: block; width: 100%; max-height: 68vh; aspect-ratio: 4/3; object-fit: contain; }
.dialog-video-wrap::after { position: absolute; inset: 0; pointer-events: none; content: ""; background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.18) 4px); }
.dialog-rec { position: absolute; top: 17px; left: 17px; z-index: 1; display: flex; align-items: center; gap: 7px; color: #e3e3d5; font-family: var(--font-geist-mono), monospace; font-size: 8px; letter-spacing: .1em; text-shadow: 1px 1px #000; }
.dialog-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.dialog-meta { display: flex; justify-content: space-between; gap: 40px; padding: 24px 10px 14px; }
.dialog-title { margin: 0; color: #dedcd2; font-family: var(--font-geist-mono), monospace; font-size: 15px; font-weight: 500; letter-spacing: .08em; }
.dialog-description { margin: 8px 0 0; color: #6e7168; font-size: 10px; }
.dialog-meta dl { display: flex; gap: 35px; margin: 0; font-family: var(--font-geist-mono), monospace; font-size: 8px; }
.dialog-meta dl div { display: grid; gap: 7px; }
.dialog-meta dt { color: #5d6058; }
.dialog-meta dd { margin: 0; color: #a8aaa0; }
.archive-footer { border-top: 1px solid var(--line); }

@keyframes blink { 50% { opacity: .2; } }
@keyframes drift { 50% { transform: translateY(7px); } }

@media (max-width: 700px) {
  .site-header { width: calc(100% - 28px); padding-top: 18px; }
  .site-header nav { gap: 14px; }
  .site-header nav a:last-child, .wordmark span { display: none; }
  .hero { width: calc(100% - 28px); padding-top: 28px; }
  .dv-shell { padding: 5px 5px 0; }
  .dv-controls { height: 27px; }
  .hero-copy { display: block; padding-top: 30px; }
  .hero h1 { font-size: clamp(48px, 17vw, 78px); line-height: .84; }
  .hero-line { margin-top: 28px; }
  .scroll-marker { min-height: 25vh; }
  .manifesto-section { display: block; width: calc(100% - 28px); padding: 100px 0 125px; }
  .manifesto-index { margin-bottom: 92px; }
  .manifesto-index dl { max-width: 310px; }
  .manifesto { padding-left: 7vw; }
  .subtitle-mark { margin-bottom: 45px; }
  .manifesto p { margin-bottom: 40px; font-size: 16px; }
  .manifesto .signoff { margin-top: 80px; font-size: 11px; line-height: 2; }
  .archive-teaser { padding: 90px 14px 100px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 30px; }
  .featured-tapes { grid-template-columns: 1fr; gap: 72px; padding: 80px 8vw 90px; }
  .mini-tape:nth-child(n) { margin-top: 0; }
  .site-footer { grid-template-columns: 1fr auto; padding: 30px 14px; }
  .site-footer p:nth-child(2) { display: none; }
  .archive-hero { display: block; width: calc(100% - 28px); padding: 74px 0 80px; }
  .archive-hero-note { margin-top: 70px; }
  .tape-browser { padding: 0 14px 100px; }
  .archive-toolbar { position: relative; display: block; padding: 18px 0 15px; margin-bottom: 52px; }
  .archive-toolbar > div:first-child { justify-content: space-between; }
  .year-filters { margin-top: 17px; overflow-x: auto; }
  .year-filter { flex: 1; }
  .tape-grid { grid-template-columns: 1fr 1fr; gap: 68px 16px; padding: 0; }
  .tape-card { padding: 8px 8px 11px; }
  .tape-card:nth-child(n) { margin-top: 0; }
  .archive-label { display: grid; gap: 6px; padding-top: 10px; text-align: left; }
  .archive-label b { font-size: 10px; }
  .tape-holes { display: none; }
  .dialog-meta { display: block; }
  .dialog-meta dl { justify-content: space-between; gap: 10px; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec i, .scroll-marker span { animation: none; }
}
