/* =========================================
   Ben Cronin — Design System
   Clean lavender · Nate-style layout
   ========================================= */

/* --- Custom Properties --- */
:root {
  --bg: #EFE7F8;          /* light lavender */
  --bg-deep: #E4D8F3;
  --text: #2A1F3D;        /* deep aubergine */
  --violet: #6E3BC8;
  --gold: #E0A82E;        /* complement of lavender */
  --gold-soft: #F2C94C;
  --muted: #8A7BA8;
  --line: rgba(42, 31, 61, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-ui: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-bounce: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: none;
  color: inherit;
}

/* --- Custom Cursor (gold dot) --- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-bounce),
              height 0.3s var(--ease-bounce),
              background 0.3s,
              border 0.3s;
  box-shadow: 0 0 0 1px rgba(110, 59, 200, 0.18);
}
.cursor-dot.hover {
  width: 38px; height: 38px;
  background: transparent;
  border: 2px solid var(--gold);
}

/* --- Scribble Canvas --- */
#scribble-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* --- Top Bar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 5vw 1.25rem;
  background: var(--bg);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
}
.topnav {
  display: flex;
  gap: 2.25rem;
  margin-left: auto;
}
.topnav-link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.topnav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-bounce);
}
.topnav-link.active::after,
.topnav-link:hover::after { transform: scaleX(1); }

.dark-toggle {
  font-size: 1.05rem;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s var(--ease-bounce);
}
.dark-toggle:hover { transform: scale(1.15); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-bounce), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.75rem);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--violet); }

/* --- Page System --- */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 140px);
  padding: 0 5vw 6rem;
}
.page {
  display: none;
  animation: pageFade 0.4s var(--ease-smooth);
}
.page.active { display: block; }
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Cover Grid (Music + Projects) --- */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
  max-width: 1280px;
  margin: 1.5rem auto 0;
}
.cover-tile {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cover-art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-deep);
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(42, 31, 61, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-art img,
.cover-art video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-bounce);
}

.cover-fallback-text {
  display: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  text-align: center;
  padding: 1rem;
  color: var(--violet);
  line-height: 1.15;
}
.cover-art-fallback {
  background: linear-gradient(135deg, var(--bg-deep), #D6C5EC);
}
.cover-art-fallback .cover-fallback-text { display: block; }

.cover-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.1rem;
}
.cover-title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.cover-sub {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--muted);
}

/* --- Projects (Editorial list) --- */
.projects-list {
  max-width: 760px;
  margin: 1.5rem auto 0;
}
.project-entry {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}
.project-entry:first-child { padding-top: 0.5rem; }
.project-entry:last-child { border-bottom: none; }
.project-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.project-entry-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.01em;
}
.project-entry-meta {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
}
.project-entry-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.project-entry-body {
  font-size: 1rem;
  line-height: 1.75;
  max-width: 65ch;
}
.project-entry-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--violet);
  border-bottom: 1px solid currentColor;
}

/* --- Text Pages (Credits / About / Contact) --- */
.text-page {
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 1rem 0 2rem;
}
.text-page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.75rem;
}

/* Credits */
.credits-heading {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 2.5rem 0 0.85rem;
}
.credits-heading:first-of-type { margin-top: 0; }
.credits-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.credits-list li {
  display: grid;
  grid-template-columns: 1fr auto 4em;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.credits-list li span { color: var(--text); }
.credits-list li a {
  color: var(--violet);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.credits-list li a:hover { border-bottom-color: var(--violet); }
.credits-list li em {
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
}
.credits-list li time {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Press */
.press-page { max-width: 760px; }
.press-list {
  list-style: none;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}
.press-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.press-outlet {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}
.press-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  display: inline;
}
.press-headline:hover { border-bottom-color: var(--text); }
.press-meta {
  grid-column: 2;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
@media (max-width: 600px) {
  .press-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .press-meta { grid-column: 1; }
  .press-headline { font-size: 1.05rem; }
}

/* About */
.about-page {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
  max-width: 960px;
}
.about-photo {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-deep);
  transform: rotate(-1.5deg);
  transition: transform 0.4s var(--ease-bounce);
}
.about-photo:hover { transform: rotate(0) scale(1.01); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-prose p {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: var(--text);
}
.about-prose p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 1.25rem;
}
.about-prose a {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Contact */
.contact-page { text-align: center; padding-top: 4rem; }
.contact-email {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--violet);
  display: inline-block;
  transition: letter-spacing 0.3s var(--ease-bounce);
  border-bottom: 2px solid transparent;
}
.contact-email:hover {
  letter-spacing: 0.01em;
  border-bottom-color: var(--gold);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.social-link {
  color: var(--text);
  display: flex;
  padding: 0.5rem;
  transition: color 0.3s, transform 0.3s var(--ease-bounce);
}
.social-link:hover { color: var(--violet); transform: translateY(-3px); }

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-smooth),
              transform 0.7s var(--ease-bounce);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.cover-tile.reveal:nth-child(1) { transition-delay: 0s; }
.cover-tile.reveal:nth-child(2) { transition-delay: 0.06s; }
.cover-tile.reveal:nth-child(3) { transition-delay: 0.12s; }
.cover-tile.reveal:nth-child(4) { transition-delay: 0.18s; }
.cover-tile.reveal:nth-child(5) { transition-delay: 0.24s; }
.cover-tile.reveal:nth-child(6) { transition-delay: 0.30s; }

/* --- Info Tray --- */
.info-tray {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  display: flex;
  align-items: center;
}
.info-tray.open { pointer-events: auto; }
.info-tray::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(239, 231, 248, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s;
}
.info-tray.open::before { opacity: 1; }

.info-tray-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 1100px;
  max-height: 80vh;
  margin: 0 auto;
  padding: 0 4vw;
  opacity: 0;
  transition: opacity 0.3s 0.1s;
}
.info-tray.open .info-tray-inner { opacity: 1; }

.tray-card-preview {
  width: 320px;
  min-width: 320px;
  background: white;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  box-shadow: -4px 0 24px rgba(42, 31, 61, 0.08);
  transform: translateX(60px);
  opacity: 0;
  transition: transform 0.5s var(--ease-bounce), opacity 0.3s;
}
.info-tray.open .tray-card-preview { transform: translateX(0); opacity: 1; }
.tray-card-preview img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.tray-card-info { padding: 1rem 1.25rem; }
.tray-card-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.tray-card-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

.info-tray-content {
  position: relative;
  flex: 1;
  background: white;
  border-radius: 0 8px 8px 0;
  padding: 2.5rem 3rem;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  transform: translateX(-30px);
  opacity: 0;
  transition: transform 0.5s var(--ease-bounce) 0.1s, opacity 0.3s 0.15s;
}
.info-tray.open .info-tray-content { transform: translateX(0); opacity: 1; }

.info-tray-close {
  position: absolute;
  top: 14px; right: 18px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(42, 31, 61, 0.06);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s 0.2s, background 0.2s, transform 0.2s var(--ease-bounce);
}
.info-tray.open .info-tray-close { opacity: 1; }
.info-tray-close:hover { background: rgba(42, 31, 61, 0.12); transform: rotate(90deg); }

.tray-header { margin-bottom: 1.25rem; padding-right: 2.5rem; }
.tray-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
}
.tray-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin-top: 0.75rem;
  max-width: 640px;
}
.tray-subs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.tray-sub {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 100px;
  background: var(--bg-deep);
  color: var(--text);
  transition: background 0.2s, transform 0.2s var(--ease-bounce);
}
a.tray-sub { color: var(--violet); }
.tray-sub:hover { background: #D6C5EC; transform: translateY(-1px); }

.tray-credits { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.tray-credits-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet);
  width: 100%;
  margin-bottom: 0.25rem;
}
.tray-credit { font-family: var(--font-ui); font-size: 0.78rem; color: var(--muted); }
a.tray-credit { color: var(--violet); }
a.tray-credit:hover { opacity: 0.7; }

.tray-links { display: flex; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }
.tray-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--violet);
}
.tray-links a:hover { letter-spacing: 0.02em; }

.tray-essay { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); }
.tray-essay h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.tray-credits-list { list-style: none; padding: 0; }
.tray-credits-list li {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.tray-credits-list li em {
  color: var(--violet);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
}

.tray-essay-newsletter p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.6rem 0;
  color: var(--text);
}
.tray-essay-newsletter .ts-track {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.tray-essay-newsletter .ts-track h6 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: var(--text);
}
.tray-essay-newsletter .ts-source {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.tray-essay-newsletter .ts-callout {
  margin: 1.6rem 0;
  padding: 0.9rem 1.1rem;
  background: rgba(224, 168, 46, 0.08);
  border-left: 3px solid var(--gold, #E0A82E);
  border-radius: 0 6px 6px 0;
}
.tray-essay-newsletter .ts-callout p { margin: 0; font-size: 0.9rem; }
.tray-essay-newsletter .ts-signoff {
  margin-top: 1.75rem;
  font-style: italic;
  color: var(--muted);
}

/* Mobile sheet */
.sheet-header { display: none; }

/* --- Footer --- */
.footer { padding: 2rem 5vw 3rem; text-align: center; }
.footer p { font-size: 0.85rem; color: var(--muted); }

/* --- Secret Section --- */
.secret-section {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(42, 31, 61, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-smooth);
  overflow-y: auto;
}
.secret-section.revealed { opacity: 1; pointer-events: auto; }
.secret-inner {
  max-width: 560px;
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  transform: translateY(20px);
  transition: transform 0.6s var(--ease-bounce);
}
.secret-section.revealed .secret-inner { transform: translateY(0); }
.secret-emoji { font-size: 3rem; display: block; margin-bottom: 1rem; }
.secret-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.secret-subtitle {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}
.secret-playlist-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.secret-tracklist {
  text-align: left;
  list-style: none;
  counter-reset: track;
  max-height: 50vh;
  overflow-y: auto;
}
.secret-tracklist li {
  counter-increment: track;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255,255,255,0.9);
}
.secret-tracklist li::before {
  content: counter(track, decimal-leading-zero);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  min-width: 22px;
}
.secret-tracklist li span {
  font-weight: 400;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  text-align: right;
}
.secret-close {
  margin-top: 2.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.secret-close:hover { color: white; border-color: rgba(255,255,255,0.4); }

/* --- Dark Mode (toggle) --- */
body:not(.light) {
  --bg: #1A1429;
  --bg-deep: #251B3A;
  --text: #EFE7F8;
  --muted: #8A7BA8;
  --line: rgba(239, 231, 248, 0.12);
}
body:not(.light) .topbar { background: var(--bg); }
body:not(.light) .cover-art { background: var(--bg-deep); box-shadow: 0 4px 18px rgba(0,0,0,0.3); }
body:not(.light) .info-tray-content,
body:not(.light) .tray-card-preview { background: #251B3A; }
body:not(.light) .info-tray-content { color: var(--text); }
body:not(.light) .info-tray::before { background: rgba(26, 20, 41, 0.7); }
body:not(.light) .info-tray-close { background: rgba(255,255,255,0.06); color: var(--text); }
body:not(.light) .tray-sub { background: rgba(239,231,248,0.06); color: var(--text); }
body:not(.light) .mobile-menu { background: var(--bg); }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
  .cover-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .about-page { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 320px; }
}

@media (max-width: 600px) {
  body { cursor: auto; }
  button { cursor: pointer; }
  .cursor-dot { display: none; }
  #scribble-canvas { display: none; }

  .topnav { display: none; }
  .hamburger { display: flex; }
  .topbar { padding: 1rem 5vw; }
  .wordmark { font-size: 1.2rem; }

  .page-wrap { padding: 0 5vw 4rem; }
  .cover-grid { grid-template-columns: 1fr; gap: 2rem; }

  .info-tray { align-items: flex-end; }
  .info-tray::before { background: rgba(0,0,0,0.55); backdrop-filter: none; }
  .info-tray-inner {
    flex-direction: column;
    width: 100%;
    max-height: 85vh;
    margin: 0;
    padding: 0;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    opacity: 1 !important;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1) !important;
  }
  .info-tray.open .info-tray-inner { transform: translateY(0); }
  .sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem 0.5rem;
    background: white;
    border-radius: 20px 20px 0 0;
  }
  body:not(.light) .sheet-header { background: #251B3A; }
  .sheet-handle { width: 36px; height: 4px; border-radius: 2px; background: rgba(128,128,128,0.25); }
  .sheet-close {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
  }
  .tray-card-preview { display: none; }
  .info-tray-content {
    flex: 1;
    width: 100%;
    border-radius: 0;
    border-left: none;
    padding: 1rem 1.5rem 2.5rem;
    transform: none !important;
    opacity: 1 !important;
  }
  .info-tray-close { display: none; }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor-dot { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
}
