:root {
  --background: #000000;
  --surface: #1a1a1a;
  --line: rgba(255,255,255,0.15);
  --text: #e2e2e2;
  --muted: #757575;
  --accent: #006bff;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #000000;
  letter-spacing: 0;
  font-family: Inter, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
.display { font-family: "Hanken Grotesk", Inter, sans-serif; }
.mono { font-family: "JetBrains Mono", monospace; }

main,
footer {
  position: relative;
  z-index: 2;
}

header { z-index: 50; }

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: var(--text);
  transform-origin: top;
}

.nav-link {
  position: relative;
  display: inline-flex;
  border: 0;
  padding-bottom: 6px;
  color: #9b9b9b;
  background: transparent;
  font: 600 12px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  cursor: pointer;
  appearance: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms ease;
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.music-toggle {
  min-width: 70px;
  text-align: left;
  transition: color 220ms ease, opacity 220ms ease;
}

.music-toggle[aria-pressed="true"] {
  color: var(--text);
}

.contact-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: auto;
  min-width: 0;
}

.contact-panel[hidden] {
  display: none;
}

.contact-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(9px);
}

.contact-inner {
  position: absolute;
  top: clamp(90px, 10vh, 118px);
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(38px, 5vh, 64px);
  z-index: 1;
  width: min(440px, 32vw);
  min-width: 360px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  padding: clamp(22px, 2.4vw, 34px);
  border-left: 1px solid rgba(226,226,226,0.16);
  border-right: 1px solid rgba(226,226,226,0.08);
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.48), rgba(0,0,0,0.9));
  background-size: 56px 56px, 56px 56px, auto;
  backdrop-filter: blur(14px);
  box-shadow: -28px 0 70px rgba(0,0,0,0.4);
}

.contact-close {
  position: absolute;
  top: clamp(18px, 2vw, 28px);
  right: clamp(18px, 2vw, 28px);
  z-index: 2;
  border: 1px solid rgba(226,226,226,0.58);
  padding: 10px 12px;
  color: #e2e2e2;
  background: transparent;
  font: 600 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease;
}

.contact-close:hover {
  background: #e2e2e2;
  color: #000000;
}

.contact-kicker,
.contact-label,
.contact-note {
  color: #757575;
  font: 600 11px/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.contact-title {
  margin-top: 16px;
  color: #e2e2e2;
  font-size: clamp(52px, 5.8vw, 84px);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: 0;
}

.contact-directory {
  align-self: end;
  display: grid;
  margin-top: 32px;
  border-top: 1px solid rgba(226,226,226,0.16);
}

.contact-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(226,226,226,0.16);
}

.contact-value {
  color: #e2e2e2;
  font: 500 16px/1.25 Inter, system-ui, sans-serif;
}

.contact-media {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 14px;
  align-items: end;
  padding-top: 20px;
}

.contact-photo,
.contact-qr {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(226,226,226,0.16);
  background: #0a0a0a;
}

.contact-photo {
  aspect-ratio: 4 / 5;
}

.contact-photo img,
.contact-qr img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.contact-qr {
  aspect-ratio: 1;
  padding: 8px;
  background: #ffffff;
}

.contact-qr img {
  object-fit: contain;
}

.contact-note {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  body {
    min-width: 0;
    -webkit-text-size-adjust: 100%;
  }

  header.fixed,
  .site-header {
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 14px;
    padding: 16px 18px 14px !important;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .header-left .display,
  .site-header .brand {
    max-width: calc(100vw - 132px);
    font-size: 18px !important;
    line-height: 1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .music-toggle {
    min-width: 74px;
    justify-content: flex-end;
    text-align: right;
  }

  header nav.hidden,
  .site-header nav.hidden {
    display: flex !important;
    width: 100%;
    gap: 22px !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  header nav.hidden::-webkit-scrollbar,
  .site-header nav.hidden::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: 0 0 auto;
    min-height: 22px;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }

  main,
  footer {
    min-width: 0;
  }

  .contact-inner {
    top: 118px;
    right: 12px;
    bottom: 16px;
    left: auto;
    width: min(392px, calc(100vw - 24px));
    min-width: 0;
    overflow: auto;
    padding: 18px;
    grid-template-rows: auto auto auto;
  }

  .contact-title {
    font-size: clamp(38px, 14vw, 58px);
  }

  .contact-directory {
    align-self: start;
    margin-top: 22px;
  }

  .contact-row {
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .contact-media {
    grid-template-columns: 1fr 0.88fr;
    gap: 10px;
    padding-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
