/* =============================================
      MusicaNossa — Portfolio
   ============================================ */

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

:root {
  --bg: #f5f5f0;
  --text: #0f0f0f;
  --muted: #909090;
  --border: rgba(0,0,0,0.1);
  --ph-bg: #e3e3de;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── UTILITY ──────────────────────────────────── */

.label-upper {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.sc-iframe-hidden {
  width: 1px; height: 1px;
  position: absolute; left: -9999px; top: -9999px;
  border: none;
}

/* ── SITE BRAND (fixed, every page) ───────────── */

.site-brand {
  position: fixed; top: 28px; right: 40px; z-index: 250;
  background: none; border: none; padding: 0;
  font: inherit;
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.1;
  color: var(--text);
  cursor: pointer; user-select: none;
}

/* ── FLOATING NAV ─────────────────────────────── */

#float-nav {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none; overflow: hidden;
}

.nav-word {
  position: absolute; left: 0; top: 0;
  background: none; border: none; outline: none;
  font-family: var(--font);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em; line-height: 1;
  color: rgba(15,15,15,0.06);
  cursor: pointer; pointer-events: all; user-select: none;
  padding: 0; white-space: nowrap;
  transition: color 0.6s ease, opacity 0.8s ease;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.nav-word:hover { color: rgba(15,15,15,0.82); }
.nav-word.active { color: rgba(15,15,15,0.88); }
.nav-word.inactive { color: rgba(15,15,15,0.22); }

body.scrolled .nav-word,
body.scrolled .record-el,
#float-nav.photo-active .nav-word,
#float-nav.music-active .nav-word,
#float-nav.album-active .nav-word,
#float-nav.photo-active .record-el,
#float-nav.album-active .record-el {
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}

/* ── VINYL RECORD ─────────────────────────────── */

.record-el {
  position: absolute; left: 0; top: 0;
  width: clamp(180px, 26vw, 340px);
  height: clamp(180px, 26vw, 340px);
  border-radius: 50%;
  cursor: grab; pointer-events: none; user-select: none;
  will-change: transform;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  opacity: 0; transition: opacity 0.8s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.32), 0 2px 10px rgba(0,0,0,0.18);
}
.record-el.visible { opacity: 1; pointer-events: all; }
.record-el.dragging { cursor: grabbing; }

.record-vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  will-change: transform;
  background:
    radial-gradient(circle at 50% 50%, #080808 0%, #0c0c0c 3.9%, transparent 4.1%),
    repeating-radial-gradient(circle at 50% 50%, #171515 0px, #1f1c1c 1.5px, #191717 1.5px, #232020 3.2px, #171515 3.2px, #1e1b1b 4.8px);
}

/* ── TONEARM ──────────────────────────────────── */

.tonearm-el {
  position: absolute; left: 61%; top: 28%;
  width: 65%; overflow: visible; z-index: 3;
  cursor: pointer; pointer-events: all;
}

.tonearm-el svg {
  width: 100%; height: auto; display: block;
  transform-box: view-box;
  transform-origin: 71.4% 48.6%;
  transform: rotate(55deg);
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── SCROLL ARROW ─────────────────────────────── */

.scroll-arrow {
  position: fixed; bottom: 32px; right: 60px; z-index: 200;
  cursor: pointer; color: var(--muted);
  background: none; border: none; outline: none;
  padding: 0; font: inherit;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
}
.scroll-arrow.visible { opacity: 0.6; pointer-events: all; }
.scroll-arrow.bobbing { animation: arrow-bob 2.4s ease-in-out 1; }
.scroll-arrow:hover { opacity: 0.8; }

@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ── PAGES ────────────────────────────────────── */

.page { display: none; }
.page.active { display: block; }

/* Hero is a 100vh spacer under the floating nav. Its title is
   redundant with the active nav word, so it stays hidden until
   the user scrolls (body.scrolled). */
.page-hero {
  height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 60px 64px;
  pointer-events: none; position: relative; z-index: 200;
}

.hero-name {
  font-size: clamp(1.6rem, 3.2vw, 2.8rem);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.1;
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: 0.82rem; color: var(--muted);
  letter-spacing: 0.05em; font-weight: 400;
}

.hero-name, .hero-tagline {
  opacity: 0; pointer-events: none; cursor: pointer;
  transition: opacity 0.5s ease;
}
body.scrolled .hero-name,
body.scrolled .hero-tagline { opacity: 1; pointer-events: all; }

/* Shared page content container (sits above the floating nav) */
.page-body {
  max-width: 860px; margin: 0 auto;
  padding: 0 60px 140px;
  position: relative; z-index: 201; background: var(--bg);
}
.page-body--wide { max-width: none; padding: 0 4px 140px; }

/* ── SOBRE ────────────────────────────────────── */

.resume-section { padding: 36px 0; border-top: 1px solid var(--border); }
.resume-section:first-child { border-top: none; padding-top: 0; }

.resume-text { font-size: 0.9rem; line-height: 1.82; color: var(--text); }
.resume-text p { margin-bottom: 10px; }
.resume-text p:last-child { margin-bottom: 0; }

/* ── MUSIC ARCHIVE ────────────────────────────── */

.music-list { display: flex; flex-direction: column; }

.music-entry {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 0 28px; align-items: center;
  width: 100%; padding: 26px 0;
  background: none; border: none; border-top: 1px solid var(--border);
  font: inherit; color: var(--text); text-align: left;
  cursor: pointer; transition: background 0.15s;
}
.music-entry:hover { background: rgba(0,0,0,0.015); }
.music-entry.active .me-title { font-weight: 600; }
.music-entry.unavailable { cursor: default; }
.music-entry.unavailable:hover { background: none; }
.music-entry.unavailable .me-title { color: var(--muted); }

.me-num { font-size: 0.66rem; color: var(--muted); letter-spacing: 0.07em; }
.me-title { font-size: 0.95rem; font-weight: 500; }
.me-meta { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

/* ── TABS (generic: .tab-bar > .tab[data-tab], .tab-panel[data-panel]) */

.tab-bar {
  display: flex; justify-content: center; gap: 0;
  padding: 0 56px; margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.tab {
  background: none; border: none; outline: none;
  font-family: var(--font);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); cursor: pointer;
  padding: 12px 20px 10px; position: relative;
  transition: color 0.25s;
}

.tab::after {
  content: ''; position: absolute;
  bottom: -1px; left: 20px; right: 20px;
  height: 1.5px; background: var(--text);
  transform: scaleX(0); transition: transform 0.3s ease;
}

.tab:hover, .tab.active { color: var(--text); }
.tab.active::after { transform: scaleX(1); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── CINE ─────────────────────────────────────── */

.film-tab-intro {
  font-size: 0.88rem; color: var(--muted); line-height: 1.75;
  margin-bottom: 28px; max-width: 480px; padding: 0 56px;
}

.film-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }

.fi {
  overflow: hidden; aspect-ratio: 4/3;
  background: var(--ph-bg); cursor: pointer; position: relative;
}
.fi.tall { grid-row: span 2; aspect-ratio: unset; }

.fi img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(100%); transition: opacity 0.35s, filter 0.35s;
}
.fi:hover img { opacity: 0.8; }

.ph {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; letter-spacing: 0.12em;
  color: #b8b8b2; background: var(--ph-bg); transition: background 0.2s;
}
.fi:hover .ph { background: #d8d8d2; }

.film-projects { padding: 0 56px; display: flex; flex-direction: column; gap: 56px; }

.film-project {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 36px; align-items: start;
}

.fp-media { overflow: hidden; border-radius: 3px; }

.fp-video-ph {
  aspect-ratio: 16/9; background: var(--ph-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; letter-spacing: 0.12em;
  color: #b8b8b2; transition: background 0.2s; cursor: pointer;
}
.fp-video-ph:hover { background: #d8d8d2; }

.fp-info { padding-top: 4px; }
.fp-title { font-size: 1.05rem; font-weight: 500; margin-bottom: 4px; }
.fp-role { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.fp-desc { font-size: 0.87rem; line-height: 1.75; color: #555; margin-bottom: 12px; }
.fp-meta { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }

.bm-featured { padding: 0 56px 28px; }
.bm-video { aspect-ratio: 21/9; max-height: 340px; font-size: 0.72rem; }

/* CV sheet (Filmmaking tab) */
.cv-sheet { max-width: 860px; margin: 0 auto; padding: 0 56px; }

.cv-block {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 0 48px; padding: 48px 0;
  border-top: 1px solid var(--border);
}

.cv-label { padding-top: 4px; }

.cv-text p {
  font-size: 0.95rem; line-height: 1.82;
  color: var(--text); margin-bottom: 14px;
}
.cv-text p:last-child { margin-bottom: 0; }
.cv-text em { font-style: italic; }

.cv-entries { display: flex; flex-direction: column; gap: 30px; }

.cv-entry { display: flex; flex-direction: column; gap: 3px; }
.cv-entry-title { font-size: 0.95rem; font-weight: 500; }
.cv-entry-role { font-size: 0.87rem; color: var(--muted); }
.cv-entry-meta { font-size: 0.77rem; color: var(--muted); letter-spacing: 0.02em; }

.skills-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0 32px; }

.skill-col-title { margin-bottom: 14px; }

.skill-col ul { list-style: none; }
.skill-col ul li { font-size: 0.87rem; line-height: 1.95; color: var(--text); }

.cv-contact-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.cv-contact-links a {
  font-size: 0.9rem; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: border-color 0.2s;
}
.cv-contact-links a:hover { border-color: var(--text); }

/* ── SC PLAYER ────────────────────────────────── */

.sc-player {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  width: 230px;
  background: rgba(12,12,10,0.88); color: #f0ede6;
  border-radius: 10px; padding: 13px 16px 11px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(10px);
  transition: opacity 2s ease, transform 2s ease;
  pointer-events: none;
}
.sc-player.visible {
  opacity: 1; transform: translateY(0);
  pointer-events: all;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sc-track-name {
  font-size: 0.71rem; font-weight: 500; line-height: 1.35;
  margin-bottom: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0.9;
}

.sc-progress-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }

#sc-elapsed { font-size: 10px; opacity: 0.5; white-space: nowrap; }

.sc-progress-wrap {
  flex: 1; height: 2px;
  background: rgba(255,255,255,0.18); border-radius: 1px; cursor: pointer;
}

#sc-progress-bar {
  height: 100%; background: rgba(255,255,255,0.65);
  width: 0%; border-radius: 1px; transition: width 1s linear;
}

.sc-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }

.sc-btn {
  background: none; border: none; color: rgba(240,237,230,0.6);
  cursor: pointer; padding: 10px; border-radius: 4px;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s;
}
.sc-btn:hover { color: #f0ede6; }
.sc-btn svg { width: 14px; height: 14px; }

.sc-btn-main {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.09); color: #f0ede6;
}
.sc-btn-main:hover { background: rgba(255,255,255,0.15); }
.sc-btn-main svg { width: 15px; height: 15px; }

.sc-close {
  position: absolute; top: 7px; right: 9px;
  background: none; border: none;
  color: rgba(240,237,230,0.35);
  font-size: 0.8rem; line-height: 1; padding: 3px 5px;
  cursor: pointer; transition: color 0.15s; font-family: var(--font);
}
.sc-close:hover { color: rgba(240,237,230,0.85); }

/* ── LIGHTBOX ─────────────────────────────────── */

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1001;
  background: rgba(8,8,8,0.96);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }

#lb-img { max-width: 90vw; max-height: 90vh; object-fit: contain; filter: grayscale(100%); }

.lb-close {
  position: absolute; top: 22px; right: 30px;
  font-size: 2.2rem; color: #fff;
  background: none; border: none; cursor: pointer; line-height: 1;
  font-family: var(--font); font-weight: 300;
  opacity: 0.7; transition: opacity 0.2s;
  min-width: 44px; min-height: 44px;
}
.lb-close:hover { opacity: 1; }

/* ── NAV PULLDOWN (top-left; brand owns top-right) */

.nav-pulldown {
  position: fixed; top: 24px; left: 24px; z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.nav-pulldown.visible { opacity: 1; pointer-events: all; }

.pulldown-toggle {
  width: 32px; height: 32px;
  background: transparent; border: none; border-radius: 6px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text); opacity: 0.7; transition: opacity 0.2s;
}
.pulldown-toggle:hover { opacity: 0.85; }
.pulldown-toggle svg { width: 18px; height: 18px; }

.pulldown-menu {
  position: absolute; top: 40px; left: 0;
  background: rgba(245,245,240,0.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 10px; padding: 8px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: none; flex-direction: column; min-width: 120px;
}
.pulldown-menu.open { display: flex; }

.pulldown-menu button {
  background: none; border: none;
  font-family: var(--font); font-size: 0.85rem; font-weight: 500;
  color: var(--text); padding: 10px 20px;
  cursor: pointer; text-align: left; transition: background 0.15s;
}
.pulldown-menu button:hover { background: rgba(15,15,15,0.06); }

/* ── PHOTO TABS ───────────────────────────────── */

.photo-tabs {
  position: fixed; top: 24px; left: 50%;
  transform: translateX(-50%); z-index: 250;
  display: flex; gap: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.photo-tabs.visible { opacity: 1; pointer-events: all; }

.photo-tab-group { position: relative; }

.photo-tab {
  background: none; border: none;
  font-family: var(--font); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: lowercase;
  color: var(--muted); cursor: pointer;
  padding: 8px 14px; display: flex; align-items: center; gap: 6px;
  transition: color 0.25s, background 0.25s; border-radius: 6px;
}
.photo-tab:hover { color: var(--text); }
.photo-tab.active { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.dropdown-arrow { width: 10px; height: 10px; transition: transform 0.3s; }
.photo-tab.dropdown-open .dropdown-arrow { transform: rotate(180deg); }

.photo-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 4px;
  background: rgba(245,245,240,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 6px; padding: 6px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: none; flex-direction: column; min-width: 110px;
}
.photo-dropdown.open { display: flex; }

.photo-filter {
  background: none; border: none;
  font-family: var(--font); font-size: 0.75rem;
  color: var(--muted); padding: 7px 16px;
  cursor: pointer; text-align: left;
  transition: color 0.15s, background 0.15s;
}
.photo-filter:hover { background: rgba(15,15,15,0.04); color: var(--text); }
.photo-filter.active { color: var(--text); font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }

/* ── FLOATING IMAGES ──────────────────────────── */

.photo-float-container {
  contain: layout style paint;
  position: fixed; inset: 0; z-index: 150;
  pointer-events: none; overflow: hidden;
}

.float-img {
  position: absolute; left: 0; top: 0;
  pointer-events: all; cursor: pointer;
  border-radius: 3px; overflow: hidden;
  will-change: transform;
  transition: width 0.5s ease, height 0.5s ease, opacity 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.float-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(100%); transition: filter 0.4s;
}
.float-img:hover img { filter: grayscale(0%); }

.float-img.enlarged {
  position: fixed; z-index: 170;
  box-shadow: 0 12px 60px rgba(0,0,0,0.4);
  border-radius: 6px; transform: none !important; will-change: auto;
}
.float-img.enlarged img { object-fit: cover; filter: grayscale(0%); image-rendering: high-quality; }

.photo-float-container.has-enlarged .float-img:not(.enlarged) {
  opacity: 0.2; pointer-events: none; will-change: auto;
}

/* ── RECORD ARCHIVE (floating covers) ─────────── */
/* Square covers that flip to the reverse side when enlarged. Physics/size match the old photos. */

.photo-tabs[hidden] { display: none; }

.float-img.record { overflow: visible; box-shadow: none; background: none; perspective: 900px; }
.float-img.record.enlarged { box-shadow: none; }

.record-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Only records with a back image flip (.has-back on the card; <button> cover on the record page). */
.float-img.has-back.enlarged .record-inner,
.album-cover.flipped .record-inner { transform: rotateY(180deg); }

.record-face {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 3px; background: #d6d6d0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.record-back { transform: rotateY(180deg); background: #c6c6c0; }
.float-img.enlarged .record-face { box-shadow: 0 12px 60px rgba(0,0,0,0.3); border-radius: 4px; }
.record-face img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Details beside an enlarged cover (left of it; above it on narrow screens). Positioned by photo.js. */
.record-info {
  position: fixed; z-index: 170; pointer-events: none;
  opacity: 0; transition: opacity 0.35s ease;
}
.record-info.visible { opacity: 1; transition-delay: 0.15s; }
.ri-num { margin-bottom: 8px; }
.ri-title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.ri-artist { font-size: 0.9rem; color: var(--muted); margin: 4px 0 18px; }
.ri-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.ri-facts dt { margin-bottom: 2px; }
.ri-facts dd { font-size: 0.82rem; }
.record-info.stacked .ri-title { font-size: 1.05rem; }
.record-info.stacked .ri-artist { margin-bottom: 10px; }
.record-info.stacked .ri-facts { grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }

.record-hint {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 14px;
  text-align: center; font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.float-img.enlarged .record-hint { opacity: 1; transition-delay: 0.35s; }

.me-artist { color: var(--muted); font-weight: 400; margin-left: 8px; }

/* ── RECORD PAGE (#album/<id>) ────────────────── */

.page-body.album-page { padding-top: 112px; min-height: 100vh; }

.album-back {
  background: none; border: none; padding: 0; margin-bottom: 40px;
  font: inherit; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; transition: color 0.2s;
}
.album-back:hover { color: var(--text); }

.album {
  display: grid; grid-template-columns: 1fr minmax(200px, 300px); grid-template-areas: "meta cover";
  gap: 0 48px; align-items: start;
}
.album-meta { grid-area: meta; }

.album-cover {
  grid-area: cover; width: 100%; aspect-ratio: 1; padding: 0; border: none; background: none;
  perspective: 1200px; cursor: pointer;
}
.album-cover--static { cursor: default; }

.album-kicker { margin-bottom: 10px; }
.album-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }
.album-artist { font-size: 1rem; color: var(--muted); margin-bottom: 28px; }

.album-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 18px 24px; }
.album-facts dt { margin-bottom: 4px; }
.album-facts dd { font-size: 0.9rem; }

.album-section { grid-column: 1 / -1; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); }
.album-section h2 { margin-bottom: 14px; }
.album-section audio { width: 100%; }
.album-empty { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.album-article p:not(.album-empty) { font-size: 0.98rem; line-height: 1.8; max-width: 68ch; margin: 0 0 1.1em; }

.tracklist { list-style: none; margin: 0; padding: 0; columns: 2 280px; column-gap: 48px; }
.tracklist li { display: flex; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; break-inside: avoid; }
.tr-pos { flex: 0 0 2.2em; color: var(--muted); font-size: 0.8rem; padding-top: 1px; }
.tr-title { flex: 1; }
.tr-dur { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

/* ── CINE AUTH OVERLAY ────────────────────────── */

.cine-login-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.cine-login-inner { text-align: center; max-width: 280px; }
.cine-login-inner p { font-size: 0.82rem; color: var(--muted); margin-bottom: 24px; letter-spacing: 0.05em; }
.cine-login-inner input {
  display: block; width: 100%; padding: 10px 12px; margin-bottom: 10px;
  border: 1px solid var(--border); border-radius: 4px;
  background: transparent; font-family: var(--font); font-size: 0.88rem;
  color: var(--text); outline: none;
}
.cine-login-inner input[type="password"] { margin-bottom: 16px; }
.cine-submit {
  padding: 9px 28px; border: 1px solid var(--text); border-radius: 4px;
  background: transparent; font-family: var(--font);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.cine-error { margin-top: 14px; font-size: 0.75rem; color: #c44; opacity: 0; transition: opacity 0.3s; }

/* ── RESPONSIVE ───────────────────────────────── */

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2,1fr); row-gap: 32px; }
  .film-grid { grid-template-columns: repeat(2,1fr); }
  .fi.tall { grid-row: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 680px) {
  .site-brand { top: 20px; right: 20px; font-size: 1.35rem; }
  .nav-pulldown { top: 16px; left: 16px; }
  .photo-tabs { top: 58px; gap: 8px; } /* below the brand so they don't collide on narrow screens */
  .page-hero { padding: 0 24px 48px; }
  .page-body { padding: 0 24px 80px; }
  .page-body--wide { padding: 0 3px 80px; }
  .tab-bar { padding: 0 21px; }
  .tab { padding: 10px 14px 8px; font-size: 0.65rem; }
  .film-tab-intro, .film-projects, .cv-sheet { padding: 0 21px; }
  .film-project { grid-template-columns: 1fr; gap: 16px; }
  .bm-featured { padding: 0 21px 20px; }
  .cv-block { grid-template-columns: 1fr; gap: 10px 0; }
  .nav-word { font-size: clamp(2.8rem, 15vw, 5rem); }
  .record-el { width: clamp(140px, 40vw, 220px); height: clamp(140px, 40vw, 220px); }
  .sc-player { width: 200px; bottom: 16px; right: 16px; }
  .page-body.album-page { padding-top: 88px; }
  .album { grid-template-columns: 1fr; grid-template-areas: "cover" "meta"; gap: 28px 0; }
  .album-cover { max-width: 280px; }
  .scroll-arrow { right: 24px; bottom: 24px; }
}

@media (max-width: 420px) {
  .film-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .music-entry { grid-template-columns: 32px 1fr auto; gap: 0 16px; }
  .me-artist { display: block; margin: 2px 0 0; }
}

/* ── ACCESSIBILITY ────────────────────────────── */

.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--text); color: var(--bg);
  padding: 12px 20px; z-index: 9999;
  font-size: 14px; font-family: var(--font);
  text-decoration: none; border-radius: 0 0 4px 0;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

*:focus { outline: none; }
*:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.sc-player *:focus-visible,
.sc-btn:focus-visible,
.sc-btn-main:focus-visible {
  outline: 2px solid rgba(240, 237, 230, 0.9); outline-offset: 3px;
}

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