
:root {
  --ink: #0b0d10;
  --ink-raised: #14171c;
  --bone: #ece7dc;
  --fog: #8a8d90;
  --tide: #4d7f9c;
  --tide-dim: #2c4a5c;
  --rule: rgba(236, 231, 220, 0.12);
  --rule-strong: rgba(236, 231, 220, 0.22);

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .button-trail-left, .button-trail-right {
    animation-duration: 48s !important;
    animation-iteration-count: infinite !important;
  }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
input[type="range"] { accent-color: var(--tide); }

:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 3px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tide);
  margin-bottom: 14px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}
.section-intro { color: var(--fog); max-width: 52ch; margin-top: 14px; }

main.main-container { position: relative; }
section { padding: 120px 6vw; position: relative; }


body.has-custom-cursor, body.has-custom-cursor * { cursor: none !important; }

#custom-crosshair {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--tide);
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  user-select: none;
}

.cursor-trail {
  position: fixed;
  color: var(--bone);
  opacity: 0.7;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  animation: driftFade 2s var(--ease) forwards;
}

@keyframes driftFade {
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x, 0px)), calc(-50% - 40px));
  }
}

#lightning-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 5;
}



#landing-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 99999;
  cursor: pointer;
  text-align: center;
  padding: 24px;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}

#landing-overlay.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.entry-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--rule-strong);
}

.entry-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
  margin: 0 0 10px;
}

.entry-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  margin: 0 0 10px;
  animation: entryPulse 2.6s ease-in-out infinite;
}

@keyframes entryPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.entry-sub { color: var(--fog); margin: 0; font-size: 0.95rem; }


.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 6vw;
  background: linear-gradient(to bottom, rgba(11,13,16,0.9), transparent);
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.brand-mark span { color: var(--tide); margin-left: 6px; font-weight: 500; }

.topnav { display: flex; gap: 28px; }
.topnav a {
  font-size: 0.85rem;
  color: var(--fog);
  transition: color 0.25s var(--ease);
}
.topnav a:hover, .topnav a:focus-visible { color: var(--bone); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.5rem;
  color: var(--bone);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-toggle:hover, .nav-toggle:focus-visible { color: var(--tide); border-color: var(--tide); }
.nav-toggle:active { transform: scale(0.94); }

.discord-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.discord-cta:hover, .discord-cta:focus-visible {
  border-color: var(--tide);
  background: rgba(77, 127, 156, 0.1);
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; order: 3; }
  .discord-cta { order: 2; }

  .topnav {
    position: fixed;
    top: 68px;
    left: 6vw;
    right: 6vw;
    z-index: 499;
    flex-direction: column;
    gap: 4px;
    background: var(--ink-raised);
    border: 1px solid var(--rule-strong);
    border-radius: 8px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  .topnav.open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .topnav a { padding: 12px 10px; border-radius: 4px; }
  .topnav a:hover, .topnav a:focus-visible { background: rgba(236,231,220,0.05); }
}

/* ---------- toggleable sections (hidden until their nav link is clicked) --- */

.toggle-section { display: none; }
.toggle-section.section-visible { display: block; }


.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(0.3);
  mask-image: linear-gradient(to top, transparent 0%, black 55%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 55%);
}

.hero-grid { position: relative; max-width: 900px; }

.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 28px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tide);
  box-shadow: 0 0 0 0 rgba(77,127,156,0.6);
  animation: livePulse 2.4s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(77,127,156,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(77,127,156,0); }
  100% { box-shadow: 0 0 0 0 rgba(77,127,156,0); }
}

.hero-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35em 0.5em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
}

.hero-logo-link {
  display: inline-block;
}
.hero-logo-link img {
  height: clamp(140px, 20vw, 340px);
  width: auto;
  max-width: 90vw;
}

.hero-title-sub {
  display: block;
  width: 100%;
  color: var(--tide);
  font-size: 0.34em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-statement {
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--fog);
  margin: 32px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 3px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: var(--bone);
  color: var(--ink);
}
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--rule-strong);
  color: var(--bone);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--tide); transform: translateY(-2px); }

.scroll-cue {
  position: absolute;
  right: 6vw;
  bottom: 40px;
  width: 1px;
  height: 60px;
  background: var(--rule-strong);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute;
  top: -60px;
  width: 100%;
  height: 60px;
  background: var(--tide);
  animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { top: -60px; }
  60% { top: 60px; }
  100% { top: 60px; }
}

@media (max-width: 640px) {
  .scroll-cue { display: none; }
}


.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-grid h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.25;
}

.about-body p {
  color: var(--fog);
  max-width: 56ch;
}
.about-body p + p { margin-top: 18px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.about-stats dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 8px;
}
.about-stats dd { font-size: 0.95rem; font-weight: 500; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}


.roster-signal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 72px;
  border: 1px solid var(--rule);
  background: var(--rule);
}
.roster-signal > div { background: var(--ink); padding: 20px 22px; }
.signal-value { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--bone); }
.signal-label { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fog); }
.founding-roster { margin-bottom: 72px; }
.roster-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.roster-subhead .section-label { margin: 0; }
.roster-subhead h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }

.day1-container {
  display: flex;
  flex-direction: column;
}

.wckd-member {
  display: grid;
  grid-template-columns: 56px auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.day1-container .wckd-member:last-child { border-bottom: 1px solid var(--rule); }

.member-index {
  font-family: var(--font-mono);
  color: var(--fog);
  font-size: 0.85rem;
}

.member-fallback-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fog);
  text-transform: lowercase;
}

.wckd-member:hover { background: rgba(236,231,220,0.03); }
.day1-container:has(.wckd-member:hover) .wckd-member:not(:hover) { opacity: 0.5; }

.avatar-container {
  position: relative;
  width: 52px;
  height: 52px;
  cursor: pointer;
}

.avatar-container:focus-visible {
  outline: 2px solid var(--tide);
  outline-offset: 5px;
}

.avatar-container img.avatar,
.avatar-wrapper img.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule-strong);
}

.avatar-decoration {
  position: absolute;
  top: -6px; left: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  pointer-events: none;
}

.discord-activity {
  position: absolute;
  left: 76px;
  top: 50%;
  transform: translateY(-50%) translateY(6px);
  width: min(340px, 78vw);
  background: var(--ink-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 20;
  pointer-events: none;
}

.avatar-container:hover .discord-activity,
.avatar-container:focus-within .discord-activity {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateY(0);
}

.discord-profile .profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.discord-activity .profile-avatar { width: 40px; height: 40px; border-radius: 50%; }
.profile-username { font-weight: 600; font-size: 0.9rem; }
.profile-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.status-indicator { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.online .status-indicator, .profile-status.online .status-indicator { background: #4fb286; }
.idle .status-indicator, .profile-status.idle .status-indicator { background: #d9a441; }
.dnd .status-indicator, .profile-status.dnd .status-indicator { background: #c65b5b; }
.offline .status-indicator, .profile-status.offline .status-indicator { background: #5c6266; }
.profile-status.online { color: #4fb286; }
.profile-status.idle { color: #d9a441; }
.profile-status.dnd { color: #c65b5b; }
.profile-status.offline { color: #5c6266; }

.no-activity { color: var(--fog); font-size: 0.8rem; margin-top: 12px; }

.spotify-activity, .custom-status, .activity-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.spotify-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--fog);
  margin-bottom: 8px;
}
.spotify-icon { color: #4fb286; font-size: 1rem; }
.spotify-content { display: flex; gap: 12px; }
.album-art { width: 46px; height: 46px; border-radius: 3px; object-fit: cover; }
.spotify-info { min-width: 0; }
.song-title, .song-artist, .song-album {
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.song-title { font-weight: 600; }
.song-artist, .song-album { color: var(--fog); }
.spotify-progress {
  margin-top: 10px;
  height: 2px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.spotify-progress-bar { height: 100%; background: var(--tide); }

.custom-status { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.status-emoji-img { width: 16px; height: 16px; }

.activity-item { display: flex; gap: 10px; }
.activity-icon { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.activity-name { font-size: 0.82rem; font-weight: 600; }
.activity-detail, .activity-state {
  font-size: 0.76rem;
  color: var(--fog);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-time {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--tide);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .discord-activity { position: static; opacity: 1; visibility: visible; transform: none; width: 100%; margin-top: 16px; display: none; }
  .wckd-member:hover .discord-activity, .wckd-member:focus-within .discord-activity { display: block; }
  .wckd-member { grid-template-columns: 32px auto 1fr; }
  .roster-signal { grid-template-columns: 1fr; margin-bottom: 52px; }
  .roster-signal > div { padding: 16px 18px; }
  .founding-roster { margin-bottom: 52px; }
  .roster-subhead { display: block; }
  .roster-subhead h3 { margin-top: 8px; }
}


.videos-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-raised);
  border: 1px solid var(--rule);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.video-featured figcaption {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: baseline;
}

.video-index {
  font-family: var(--font-mono);
  color: var(--tide);
  font-size: 0.8rem;
}
.video-title { font-weight: 500; }

.video-list { display: flex; flex-direction: column; gap: 28px; }
.video-list-meta { display: flex; gap: 12px; margin-top: 12px; align-items: baseline; }

@media (max-width: 880px) {
  .videos-grid { grid-template-columns: 1fr; }
}


.members-rails { display: flex; flex-direction: column; gap: 24px; width: 100%; overflow: hidden; }

.button-trail-left, .button-trail-right {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-right: 14px; /* equals gap, makes the -50% loop seamless */
}
.button-trail-left { animation: moveLeft 48s linear infinite; }
.button-trail-right { animation: moveRight 48s linear infinite; }
.button-trail-left:hover, .button-trail-right:hover { animation-play-state: paused; }

@keyframes moveLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes moveRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }


.trail-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--rule);
  border-radius: 40px;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: border-color 0.25s var(--ease);
}
.trail-btn:hover, .trail-btn:focus-visible { border-color: var(--tide); }

.trail-btn .avatar-wrapper { position: relative; width: 28px; height: 28px; flex-shrink: 0; }
.trail-btn img:not(.avatar-decoration) { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.trail-btn .status {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  position: relative;
  top: 1px;
}
.trail-btn .status.online { background: #4fb286; }
.trail-btn .status.idle { background: #d9a441; }
.trail-btn .status.dnd { background: #c65b5b; }
.trail-btn .status.offline { background: #5c6266; }

.presence-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 220px;
  background: var(--ink-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 30;
  white-space: normal;
  font-size: 0.78rem;
}
.trail-btn:hover .presence-popup, .trail-btn:focus-visible .presence-popup {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.presence-popup .activity-type { font-weight: 600; margin-bottom: 4px; }
.presence-popup .activity-info, .presence-popup .activity-state { color: var(--fog); }
.presence-popup .activity-time { color: var(--tide); margin-top: 6px; }

@media (max-width: 640px) {
  .members-rails { gap: 14px; overflow: hidden; margin-right: -6vw; }
  .button-trail-left, .button-trail-right { gap: 8px; padding-right: 8px; animation-duration: 64s; }
  .trail-btn { padding: 8px 12px 8px 8px; font-size: 0.75rem; }
  .presence-popup { position: fixed; left: 6vw; right: 6vw; bottom: 92px; top: auto; width: auto; }
  .video-list { gap: 22px; }
  .videos-grid { gap: 32px; }
}


.discord-widgets-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  max-width: 900px;
}

.discord-widget {
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-raised);
  transition: border-color 0.25s var(--ease);
}
.discord-widget:hover { border-color: var(--tide-dim); }

.discord-banner {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--tide-dim);
}

.server-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid var(--ink-raised);
  margin: -40px 0 0 28px;
  object-fit: cover;
  background: var(--ink);
}

.server-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 18px 28px 6px; }
.online-members {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fog);
  margin: 0 28px 24px;
}

.join-server-btn {
  display: block;
  margin: 0 28px 28px;
  padding: 14px;
  text-align: center;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.join-server-btn:hover, .join-server-btn:focus-visible {
  border-color: var(--tide);
  background: rgba(77,127,156,0.1);
}

/* ---------- tilt effect (hero orca mark) ---------- */

.tilt-effect { display: inline-block; transition: transform 0.4s var(--ease); }
.tilt-effect:hover { transform: rotate(-4deg) scale(1.05); }


.site-footer {
  padding: 64px 6vw 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-brand span { color: var(--tide); }
.footer-note { color: var(--fog); font-size: 0.8rem; margin: 0; }
.footer-link { font-size: 0.85rem; color: var(--tide); }
.footer-link:hover { text-decoration: underline; }


.music-player {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: rgba(20, 23, 28, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  z-index: 400;
  padding: 14px 16px 16px;
  transition: width 0.3s var(--ease), padding 0.3s var(--ease), border-radius 0.3s var(--ease);
}

.player-collapse-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--fog);
  border-radius: 50%;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.player-collapse-toggle:hover, .player-collapse-toggle:focus-visible {
  color: var(--bone);
  background: rgba(236, 231, 220, 0.08);
}

.player-container { display: flex; flex-direction: column; gap: 10px; }

.player-top { display: flex; align-items: center; gap: 10px; padding-right: 18px; }
.track-artwork { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--ink); }
.track-artwork img { width: 100%; height: 100%; object-fit: cover; }
.track-details { min-width: 0; flex: 1; }
#track-title { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#track-artist { font-size: 0.7rem; color: var(--fog); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.control-btn { font-size: 0.95rem; color: var(--fog); transition: color 0.2s var(--ease); flex-shrink: 0; }
.control-btn:hover, .control-btn:focus-visible, .control-btn.active { color: var(--bone); }
.control-btn--main { font-size: 1.35rem; color: var(--bone); }
.control-btn.active { color: var(--tide); }

.progress-container { display: flex; align-items: center; gap: 8px; }
#current-time, #duration {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--fog);
  min-width: 26px;
}
.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--rule-strong);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
#progress { height: 100%; width: 0%; background: var(--tide); border-radius: 2px; }

.player-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.player-controls { display: flex; align-items: center; gap: 12px; }
.music-toggle { font-size: 0.95rem; color: var(--fog); transition: color 0.2s var(--ease); }
.music-toggle:hover, .music-toggle:focus-visible { color: var(--bone); }
.volume-control { display: flex; align-items: center; gap: 6px; }
.volume-slider-container { width: 56px; }
#volume-slider {
  width: 100%;
  height: 3px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--rule-strong);
  border-radius: 2px;
}
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bone);
  cursor: pointer;
}

.music-player.collapsed {
  width: auto;
  border-radius: 40px;
  padding: 8px 40px 8px 8px;
}
.music-player.collapsed .progress-container,
.music-player.collapsed .player-bottom {
  display: none;
}
.music-player.collapsed .player-top { padding-right: 0; }
.music-player.collapsed .track-details { max-width: 130px; }

@media (max-width: 480px) {
  .music-player { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .music-player.collapsed .track-details { max-width: 44vw; }
  .player-bottom { flex-wrap: wrap; }
  .volume-control { margin-left: auto; }
}


@media (pointer: coarse) {
  * { cursor: auto !important; }
  #custom-crosshair, .cursor-trail { display: none !important; }
}


@media (max-width: 640px) {
  section { padding: 72px 6vw; }
  .hero { padding-bottom: 60px; }
  .hero-statement { font-size: 1rem; max-width: 34ch; }
  .hero-logo-link img { height: min(48vw, 220px); }
  .section-head { margin-bottom: 34px; }
  .section-head h2 { font-size: clamp(1.65rem, 8vw, 2.2rem); }
  .topbar { padding: 16px 6vw; }
  .brand-mark { font-size: 0.78rem; }
  .brand-mark span { display: block; margin: 2px 0 0; font-size: 0.6rem; }
  .discord-cta { padding: 8px 10px; font-size: 0.75rem; }
  .topnav { top: 62px; }
}