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

:root {
  --fg: #222;
  --fg-light: #777;
  --fg-muted: #aaa;
  --bg: #fff;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'Karla', sans-serif;
  --pad: clamp(20px, 4vw, 60px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* NAV */
nav {
  padding: 40px var(--pad) 12px;
  display: flex; justify-content: center; align-items: baseline;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 700px;
  margin: 0 auto;
}

.nav-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 1rem; font-weight: 300; color: var(--fg-light); transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { width: 20px; height: 1px; background: var(--fg); transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 3px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -3px); }

/* PAGE CONTENT */
.page-content {
  padding: 40px var(--pad) 60px;
  max-width: 700px;
  margin: 0 auto;
}

.page-content.wide {
  max-width: 100%;
}

.section-nav-title {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted); margin-bottom: 48px;
}

/* FRONT */
.front {
  min-height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px var(--pad) 20px;
}

.front-image {
  width: 100%;
  max-width: 800px;
}

.front-image img { width: 100%; height: auto; display: block; }

.front-image .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--fg-muted); letter-spacing: 0.08em; text-transform: uppercase;
}

/* ABOUT */
.about-body { max-width: 560px; margin: 0 auto; text-align: center; }
.about-body p { font-size: 1rem; line-height: 1.85; color: var(--fg-light); margin-bottom: 18px; }
.about-body p strong { color: var(--fg); font-weight: 400; }

/* WORKS */
.works-list { max-width: 640px; margin: 0 auto; }

.work-entry { padding: 36px 0; border-bottom: 1px solid #eee; }
.work-entry:first-child { border-top: 1px solid #eee; }

.work-artist { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
.work-role {
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--fg-muted); margin-bottom: 12px;
}
.work-desc { font-size: 0.95rem; line-height: 1.75; color: var(--fg-light); }

.work-images {
  display: flex; gap: 8px; margin-top: 20px;
}
.work-images img {
  height: 120px; width: auto; object-fit: cover;
  transition: opacity 0.2s;
}
.work-images img:hover { opacity: 0.7; }

/* LISTEN */
.listen-project { margin: 0 auto 80px auto; }
.listen-project:last-child { margin-bottom: 0; }

.project-header { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; }
.project-logo { height: 72px; width: auto; }
.project-name { font-family: var(--serif); font-size: 1.3rem; }

.project-desc {
  font-size: 0.9rem; color: var(--fg-light); line-height: 1.7;
  max-width: 520px; margin-bottom: 24px;
}

.listen-link {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid var(--fg); padding-bottom: 2px;
  transition: opacity 0.2s;
}
.listen-link:hover { opacity: 0.5; }

.project-links {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.project-links a {
  font-size: 0.82rem; color: var(--fg-light);
  text-decoration: none; padding-bottom: 2px;
  transition: color 0.2s;
}
.project-links a:hover { color: var(--fg); text-decoration: underline; }

.track-list { max-width: 640px; margin: 0 auto; }

.track {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border-bottom: 1px solid #eee; cursor: pointer; transition: padding-left 0.2s;
}
.track:first-child { border-top: 1px solid #eee; }
.track:hover { padding-left: 8px; }

.track-title { font-family: var(--serif); font-size: 1.05rem; }
.track-detail { font-size: 0.78rem; color: var(--fg-muted); margin-top: 2px; }

.track-play {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ccc;
  display: flex; align-items: center; justify-content: center;
  background: none; cursor: pointer; transition: border-color 0.2s, background 0.2s; flex-shrink: 0;
}
.track-play:hover { border-color: var(--fg); background: var(--fg); }
.track-play:hover svg { fill: #fff; }
.track-play svg { width: 10px; height: 10px; fill: var(--fg); margin-left: 1px; transition: fill 0.2s; }

/* PLAYER BAR */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--fg); color: #fff;
  padding: 14px var(--pad); display: flex; align-items: center; gap: 16px;
  transform: translateY(100%); transition: transform 0.35s ease; z-index: 200;
}
.player-bar.visible { transform: translateY(0); }
.player-bar .p-name { font-family: var(--serif); font-size: 0.9rem; white-space: nowrap; }
.player-bar .p-progress-wrap { flex: 1; height: 2px; background: rgba(255,255,255,0.2); border-radius: 1px; cursor: pointer; }
.player-bar .p-progress { height: 100%; background: #fff; border-radius: 1px; width: 0%; }
.player-bar .p-time { font-size: 0.72rem; opacity: 0.5; font-variant-numeric: tabular-nums; }
.player-bar .p-close {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 1.1rem; opacity: 0.5; transition: opacity 0.2s; padding: 2px 6px;
}
.player-bar .p-close:hover { opacity: 1; }

/* FIELD RECORDINGS */
.field-intro {
  font-size: 0.95rem; line-height: 1.8; color: var(--fg-light);
  max-width: 520px; margin-bottom: 40px;
}

.field-track {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid #eee; cursor: pointer; transition: padding-left 0.2s;
}
.field-track:first-child { border-top: 1px solid #eee; }
.field-track:hover { padding-left: 8px; }

.field-track-title { font-family: var(--serif); font-size: 1rem; }
.field-track-meta { font-size: 0.75rem; color: var(--fg-muted); margin-top: 2px; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.g-cell {
  aspect-ratio: 1; overflow: hidden; background: #f2f2f0; cursor: pointer; position: relative;
}
.g-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.g-cell:hover img { transform: scale(1.03); }
.g-cell .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--fg-muted); letter-spacing: 0.06em;
}

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px); z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 24px; right: var(--pad);
  background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--fg);
}

/* CONTACT */
.contact-body { max-width: 480px; margin: 0 auto; text-align: center; }
.contact-body p { font-size: 0.95rem; line-height: 1.8; color: var(--fg-light); margin-bottom: 28px; }
.contact-body .email-link {
  font-family: var(--serif); font-size: 1.25rem;
  border-bottom: 1px solid var(--fg); padding-bottom: 2px; transition: opacity 0.2s;
}
.contact-body .email-link:hover { opacity: 0.5; }

.contact-form { margin-top: 48px; display: grid; gap: 20px; max-width: 400px; }
.contact-form label {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-muted); display: block; margin-bottom: 6px;
}
.contact-form input, .contact-form textarea {
  width: 100%; font-family: var(--sans); font-size: 0.9rem; font-weight: 300;
  padding: 10px 0; border: none; border-bottom: 1px solid #ddd;
  background: transparent; color: var(--fg); outline: none; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--fg); }
.contact-form textarea { resize: vertical; min-height: 80px; }
.contact-form button {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 14px 36px; border: 1px solid var(--fg);
  background: none; color: var(--fg); cursor: pointer;
  transition: background 0.2s, color 0.2s; justify-self: start; font-weight: 300;
}
.contact-form button:hover { background: var(--fg); color: var(--bg); }

/* FOOTER */
footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 12px var(--pad) 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--fg-muted);
  background: var(--bg);
  z-index: 50;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--fg-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }

/* FADE */
.fade { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade.in { opacity: 1; transform: translateY(0); }

/* MOBILE */
@media (max-width: 720px) {
  .hamburger { display: flex; }
  nav { justify-content: space-between; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: 260px;
    background: var(--bg); flex-direction: column; padding: 90px 32px; gap: 24px;
    transform: translateX(100%); transition: transform 0.3s ease;
    box-shadow: -2px 0 16px rgba(0,0,0,0.04);
    z-index: 200;
  }
  .nav-links.open { transform: translateX(0); }
  .hamburger { z-index: 300; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .project-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}
