/* ============================================
   JHJ // STYLES v3
   Curtain nav · Breathing sound toggle
   Warm palette · Film grain · Stripped clean
   
   Fixes: contrast, focus-visible, reduced-motion,
   spacing tokens, backdrop-filter fallback,
   pointer-events cleanup
   ============================================ */

/* --- FONT FACES --- */
@font-face { font-family: 'Switzer'; src: url('assets/fonts/switzer-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('assets/fonts/switzer-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('assets/fonts/switzer-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #080808;
  --text: #f0ece6;
  --text-muted: rgba(240, 236, 230, 0.7);
  --text-dim: rgba(240, 236, 230, 0.55);      /* Raised from 0.4 for AA contrast */
  --text-secondary: rgba(240, 236, 230, 0.65); /* New: functional secondary text */
  --accent: #c8a87c;
  --accent-glow: rgba(200, 168, 124, 0.15);
  --accent-soft: rgba(200, 168, 124, 0.5);
  --error: #b85450;
  --ui-border: rgba(240, 236, 230, 0.1);
  --ui-border-hover: rgba(240, 236, 230, 0.22);
  --ui-surface: rgba(240, 236, 230, 0.04);
  --font: 'Switzer', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease-out: cubic-bezier(0.2, 1, 0.3, 1);

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Type scale */
  --heading-xl: clamp(2.4rem, 10vw, 5vw);
  --heading-lg: clamp(1.4rem, 4vw, 2.5vw);
  --label: 14px;
  --body: 16px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- FOCUS --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- SKIP TO CONTENT --- */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-lg);
  z-index: 10000;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px var(--space-lg);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-md);
}

/* --- BASE --- */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  height: 100%;
  width: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: pageEnter 0.6s ease 0.15s forwards;
}

@keyframes pageEnter {
  to { opacity: 1; }
}

body.page-exit {
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  animation: none !important;
}

/* Streaming links */
.stream-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  pointer-events: auto;
}

.stream-link {
  color: var(--text-dim);
  transition: color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
}

.stream-link:hover {
  color: var(--text);
  transform: scale(1.15);
}

/* Gradient floor */
body::before {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0.5) 40%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

/* Film grain */
body::after {
  content: '';
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
textarea { font-family: inherit; resize: vertical; }

.brand-mark, .sound-toggle, .nav-trigger,
.curtain-link, .filter-btn, .smart-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

/* --- CANVAS --- */
#canvas1 {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

body.curtain-open #canvas1 { opacity: 0.25; }

/* =========================================
   BRAND MARK
   ========================================= */
.brand-mark {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 1001;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.4s ease, letter-spacing 0.4s var(--ease-out);
}

.brand-mark:hover {
  color: var(--text);
  letter-spacing: 5px;
}

/* =========================================
   SOUND TOGGLE
   ========================================= */
.sound-toggle {
  position: fixed;
  top: 22px;
  left: 80px;
  z-index: 1001;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ui-border-hover);
  background: var(--ui-surface);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s ease;
}

.sound-toggle:hover {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.sound-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sound-toggle::before {
  content: '';
  position: absolute;
  top: -5px; right: -5px; bottom: -5px; left: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  animation: breatheRing 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breatheRing {
  0%, 100% { opacity: 0; transform: scale(0.92); }
  50% { opacity: 0.5; transform: scale(1.08); }
}

.sound-toggle.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.sound-toggle.active::before {
  animation: none;
  opacity: 0.7;
  transform: scale(1);
  border-color: var(--accent);
}

.sound-toggle.active.streaming {
  box-shadow: 0 0 12px 3px rgba(200, 168, 124, 0.35);
}

.sound-toggle.active.streaming::before {
  animation: streamPulse 2s ease-in-out infinite;
  border-color: var(--accent);
  opacity: 1;
}

/* Warm glow when audio is actively streaming */
.sound-toggle.streaming {
  box-shadow: 0 0 12px 3px var(--accent-glow), 0 0 24px 6px rgba(200, 168, 124, 0.08);
}

.sound-toggle.streaming::before {
  animation: streamPulse 2s ease-in-out infinite;
  opacity: 1;
  border-color: var(--accent);
}

@keyframes streamPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.12); opacity: 1; }
}

.sound-toggle svg { width: 16px; height: 16px; }
.sound-toggle .sound-wave { opacity: 0; transition: opacity 0.3s ease; }
.sound-toggle .sound-off { transition: opacity 0.3s ease; }
.sound-toggle.active .sound-wave { opacity: 1; }
.sound-toggle.active .sound-off { opacity: 0; }

/* =========================================
   NAV TRIGGER
   ========================================= */
.nav-trigger {
  position: fixed;
  top: 28px;
  right: 24px;
  z-index: 1001;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  padding: var(--space-xs) 0;
  transition: color 0.3s ease, letter-spacing 0.4s var(--ease-out);
}

.nav-trigger:hover {
  color: var(--text);
  letter-spacing: 4px;
}

/* =========================================
   CURTAIN NAV
   ========================================= */
.curtain {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.70);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  display: flex;
  align-items: center;
  padding: 0 8vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}

/* Fallback for no backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .curtain { background: rgba(8, 8, 8, 0.92); }
}

.curtain.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s;
}

body.curtain-open section h1,
body.curtain-open section h2,
body.curtain-open section p,
body.curtain-open .filter-console,
body.curtain-open .credits-list,
body.curtain-open .pr-hero-badge,
body.curtain-open .pr-tagline,
body.curtain-open .pr-features,
body.curtain-open .pr-notify-form,
body.curtain-open .pr-status,
body.curtain-open .smart-btn,
body.curtain-open .stream-links {
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  transform: none !important;
}

body:not(.curtain-open) section.in-view h1,
body:not(.curtain-open) section.in-view h2,
body:not(.curtain-open) section.in-view p {
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.curtain-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.curtain-link {
  display: block;
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 10px 0;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out), color 0.3s ease, letter-spacing 0.4s var(--ease-out);
  text-decoration: none;
}

.curtain-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.curtain.open .curtain-link,
.curtain.open .curtain-group {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(var(--i, 0) * 0.06s + 0.12s);
}

.curtain-link:hover {
  color: var(--text);
  letter-spacing: 3px;
}

.curtain-group {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.curtain-sub {
  max-height: 0;
  overflow: hidden;
  margin-left: var(--space-xs);
  transition: max-height 0.4s var(--ease-out), opacity 0.3s ease;
  opacity: 0;
}

.curtain-group.expanded .curtain-sub {
  max-height: 200px;
  opacity: 1;
  padding: var(--space-xs) 0 var(--space-sm);
}

.curtain-sub a {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 7px 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.curtain-sub a:hover {
  color: var(--accent);
}

/* =========================================
   SECTIONS
   ========================================= */
section {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 6vw;
  position: relative;
  z-index: 10;
  scroll-snap-align: center;
}

section::before { display: none; }

section.project-section { display: none; }
section.project-section.show { display: flex; }

/* Staggered text entrance */
section h2,
section h1,
section p,
.credits-list,
.smart-btn,
.pr-hero-badge,
.pr-features,
.preset-action,
.stream-links {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.in-view h2 {
  opacity: 1; transform: translateY(0); transition-delay: 0.3s;
}

section.in-view h1 {
  opacity: 1; transform: translateY(0); transition-delay: 0.45s;
}

section.in-view p {
  opacity: 1; transform: translateY(0); transition-delay: 0.6s;
}

section.in-view .credits-list,
section.in-view .smart-btn,
section.in-view .pr-hero-badge,
section.in-view .preset-action {
  opacity: 1; transform: translateY(0); transition-delay: 0.7s;
}

section.in-view .stream-links {
  opacity: 1; transform: translateY(0); transition-delay: 0.75s;
}

section.in-view .pr-features {
  opacity: 1; transform: translateY(0); transition-delay: 0.5s;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1 {
  font-size: var(--heading-xl);
  margin: 6px 0;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(8, 8, 8, 0.6);
}

h2 {
  font-family: var(--font-mono);
  font-size: var(--label);
  color: var(--text-muted);
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 500;
}

section p {
  max-width: 420px;
  font-size: var(--body);
  line-height: 1.75;
  color: rgba(240, 236, 230, 0.8);
  margin: 12px 0 0 0;
  padding: 0;
  background: none;
}

/* =========================================
   FILTER CONSOLE
   ========================================= */
.filter-console {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 900;
  display: flex;
  gap: 2px;
  align-items: center;
  background: rgba(12, 12, 10, 0.88);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--ui-border);
  border-radius: 40px;
  padding: var(--space-xs) 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out);
  pointer-events: none;
  max-width: calc(100vw - 24px);
}

/* Fallback for no backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .filter-console { background: rgba(12, 12, 10, 0.95); }
}

.filter-console::-webkit-scrollbar { display: none; }

.filter-console.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Scroll fade hint on mobile */
.filter-console::after {
  content: '';
  position: sticky;
  right: 0;
  flex-shrink: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(12, 12, 10, 0.88));
  pointer-events: none;
  display: none;
}

.filter-btn {
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: var(--label);
  text-transform: uppercase;
  padding: var(--space-sm) 14px;
  letter-spacing: 1.5px;
  transition: color 0.3s ease, background 0.3s ease;
  white-space: nowrap;
  border-radius: 30px;
  cursor: pointer;
}

.filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filter-btn.active {
  color: var(--bg);
  background: var(--text-muted);
}

.filter-btn:hover:not(.active) { color: var(--text); }

.filter-divider {
  width: 1px;
  height: var(--space-md);
  background: var(--ui-border);
  flex-shrink: 0;
  margin: 0 var(--space-xs);
}

/* =========================================
   SMART BUTTON
   ========================================= */
.smart-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--ui-border-hover);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--label);
  letter-spacing: 2.5px;
  padding: 14px 36px;
  min-width: 200px;
  text-align: center;
  text-transform: uppercase;
  transition: all 0.4s ease;
  text-decoration: none;
}

.smart-btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.smart-btn[disabled],
.smart-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================
   SMART INPUT
   ========================================= */
.smart-input {
  width: 100%;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  color: var(--text);
  font-family: var(--font-mono);
  padding: 14px;
  margin-bottom: var(--space-sm);
  font-size: 14px;
  letter-spacing: 1.5px;
  outline: none;
  transition: border-color 0.4s ease, background 0.4s ease;
}

.smart-input:focus {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.smart-input::placeholder {
  color: var(--text-dim);
  letter-spacing: 2px;
}

/* =========================================
   CREDITS LIST (About page)
   ========================================= */
.credits-list { margin-top: 36px; }

.credits-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.credits-names {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.9;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

/* =========================================
   PLUGIN ROULETTE PAGE
   ========================================= */
.pr-hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  padding: 5px 14px;
  margin-bottom: 14px;
  opacity: 0.8;
}

.pr-tagline {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.75;
  margin: 14px 0 0 0;
  border: none;
  background: none;
  padding: 0;
}

.pr-description {
  max-width: 500px;
  font-size: var(--body);
  line-height: 1.8;
  color: var(--text-secondary);
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

.pr-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
  width: 100%;
  max-width: 600px;
}

.pr-feature-card {
  border: 1px solid var(--ui-border);
  padding: 20px;
  background: rgba(12, 12, 11, 0.82);
  transition: border-color 0.4s ease, background 0.4s ease;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}

.pr-feature-card:hover {
  border-color: var(--ui-border-hover);
  background: rgba(12, 12, 11, 0.88);
}

.pr-feature-card h3 {
  font-family: var(--font-mono);
  font-size: var(--label);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.pr-feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  max-width: none;
  flex: 1;
}

.pr-feature-card .preset-action {
  margin-top: var(--space-xl);
}

.pr-status {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 3px;
  opacity: 0.25;
  text-transform: uppercase;
}

/* =========================================
   PRESETS PAGE
   ========================================= */
.preset-description {
  max-width: 520px;
}

.install-path {
  font-size: 0.8em;
  color: var(--text-dim);
}

.preset-action {
  margin-top: var(--space-xl);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   REDUCED MOTION
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  body {
    animation: none;
    opacity: 1;
  }

  body.page-exit {
    transition: none !important;
  }

  section h1, section h2, section p,
  .credits-list, .smart-btn, .pr-hero-badge,
  .pr-features, .preset-action, .stream-links {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sound-toggle::before { animation: none; opacity: 0; }
  .sound-toggle.active.streaming::before { animation: none; }
  .sound-toggle.active.streaming { box-shadow: 0 0 8px 2px rgba(200, 168, 124, 0.35); }
  .sound-toggle.streaming::before { animation: none; opacity: 0.8; }
  .sound-toggle.streaming { box-shadow: 0 0 12px 3px var(--accent-glow); }

  .curtain-link, .curtain-group {
    opacity: 1;
    transform: none;
    transition: color 0.2s ease;
  }

  #canvas1 { display: none; }

  body::after { display: none; } /* film grain */
}

/* =========================================
   TABLET (640px+)
   ========================================= */
@media (min-width: 640px) {
  .brand-mark { top: 28px; left: 30px; font-size: 16px; letter-spacing: 5px; }
  .sound-toggle { top: 28px; left: 100px; }
  .nav-trigger { top: 30px; right: 30px; font-size: 16px; }
  section { padding: 0 8vw 100px; }
  h1 { font-size: clamp(2.8rem, 8vw, 5vw); }
  h2 { font-size: 14px; letter-spacing: 5px; }
  section p { font-size: 16px; max-width: 460px; }

  .curtain { padding: 0 10vw; }
  .curtain-link { font-size: 32px; padding: 10px 0; }

  .filter-console { max-width: calc(100vw - 40px); }
  .filter-btn { padding: var(--space-sm) 18px; font-size: var(--label); }
  .pr-features { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   DESKTOP (1024px+)
   ========================================= */
@media (min-width: 1024px) {
  .brand-mark { top: 30px; left: 40px; font-size: 16px; letter-spacing: 5px; }
  .brand-mark:hover { letter-spacing: 6px; }
  .sound-toggle { top: 30px; left: 110px; }
  .nav-trigger { top: 32px; right: 40px; font-size: 16px; letter-spacing: 4px; }
  .nav-trigger:hover { letter-spacing: 5px; }

  .curtain { padding: 0 12vw; }
  .curtain-link { font-size: 40px; padding: 10px 0; letter-spacing: 2px; }
  .curtain-link:hover { letter-spacing: 6px; }
  .curtain-sub a { font-size: 14px; letter-spacing: 3px; padding: var(--space-sm) 0; }

  section { padding: 0 15vw 120px; }
  h1 { font-size: 5vw; }
  h2 { font-size: 14px; letter-spacing: 6px; }
  section p { font-size: 16px; max-width: 440px; }

  .filter-console { bottom: 36px; }
  .pr-features { grid-template-columns: 1fr 1fr; gap: var(--space-md); }

  /* Show scroll fade hint only on smaller viewports */
  .filter-console::after { display: none; }
}

@media (max-width: 639px) {
  .filter-console::after { display: block; }
  .filter-btn { padding: var(--space-sm) 10px; font-size: 14px; letter-spacing: 1px; }
}

@media (min-width: 1440px) {
  .pr-features { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================
   SCROLL HINT (Work page hero)
   ========================================= */
.scroll-hint {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  animation: scrollHintIn 0.8s ease 1.2s forwards;
  transition: opacity 0.4s ease;
}

.scroll-hint.hidden { opacity: 0 !important; }

.scroll-hint::after {
  content: '';
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--text-dim) 0%, transparent 100%);
  animation: scrollHintLine 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollHintIn {
  to { opacity: 0.7; }
}

@keyframes scrollHintLine {
  0% { transform: scaleY(0.3); opacity: 0.3; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; opacity: 0.7; }
  .scroll-hint::after { animation: none; }
}

/* Hide scroll hint when filter console is visible (scrolled past hero) */
body:has(.filter-console.visible) .scroll-hint { opacity: 0; }

/* =========================================
   ABOUT - credits groups
   ========================================= */
.credits-group { margin-bottom: 14px; }
.credits-group:last-child { margin-bottom: 0; }

.credits-group .credits-label {
  margin-bottom: 6px;
}

.credits-group-names {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* =========================================
   PR PAGE - meta row (below hero)
   ========================================= */
.pr-meta {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.in-view .pr-meta {
  opacity: 1; transform: translateY(0); transition-delay: 0.65s;
}

.pr-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pr-meta-label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pr-meta-value {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--accent);
}

/* =========================================
   PRESET HERO (shared with other landing pages)
   ========================================= */
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 18px;
  max-width: 460px;
  line-height: 1.7;
}

/* =========================================
   UPLOADS PAGE
   ========================================= */
.upload-zone {
  border: 2px dashed var(--ui-border-hover);
  padding: 48px 32px;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
  max-width: 560px;
  width: 100%;
  margin-top: 24px;
}

.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.upload-zone.has-files {
  border-color: var(--text-dim);
  border-style: solid;
}

.upload-label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  pointer-events: none;
}

.upload-sublabel {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 8px;
  pointer-events: none;
}

.file-list {
  margin-top: 16px;
  text-align: left;
  max-width: 560px;
  width: 100%;
}

.file-item {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--ui-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-item .file-size {
  color: var(--text-dim);
  font-size: 14px;
}

.file-item .file-remove {
  color: var(--text-dim);
  cursor: pointer;
  padding: 0 4px;
  font-size: 16px;
  transition: color 0.2s ease;
}

.file-item .file-remove:hover { color: var(--error); }

.email-field {
  margin-top: 24px;
  max-width: 560px;
  width: 100%;
}

.upload-progress {
  margin-top: 16px;
  max-width: 560px;
  width: 100%;
  display: none;
}

.progress-bar {
  height: 3px;
  background: var(--ui-border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 1px;
}

.upload-result {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1px;
  max-width: 560px;
}

.upload-result.success { color: var(--accent); }
.upload-result.error { color: var(--error); }