/* Sam Saljooghi — Black Field
   Colour and type tokens. Change them here and the whole site follows. */
:root {
  --ground: #0B0B0B;      /* page background */
  --black: #000000;       /* behind full-bleed images */
  --surface: #161616;     /* player bar */
  --rule: #2A2A2A;        /* hairline dividers */
  --ink: #E8E6E1;         /* primary text */
  --ink-muted: #9A9894;   /* secondary text, credits */
  --gutter: 40px;
  --section: 120px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #FFFFFF; }
h1, h2, h3, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Small uppercase label: nav, section names, credits */
.label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
}
.muted { color: var(--ink-muted); }
.credit {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.underline { border-bottom: 1px solid var(--ink); }

/* Full-bleed image helpers */
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrim { position: absolute; left: 0; right: 0; pointer-events: none; }
.scrim-top { top: 0; height: 180px; background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0)); }
.scrim-bottom { bottom: 0; height: 72%; background: linear-gradient(to top, rgba(11,11,11,0.96) 0%, rgba(11,11,11,0.74) 40%, rgba(11,11,11,0) 100%); }
.scrim-heavy { height: 80%; background: linear-gradient(to top, rgba(11,11,11,0.97) 0%, rgba(11,11,11,0.84) 42%, rgba(11,11,11,0) 100%); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 32px;
  padding: 28px var(--gutter);
}
.nav-links { display: flex; flex-wrap: wrap; gap: 0 36px; }
.nav-links a { padding: 14px 0; }
.brand { padding: 14px 0; }
.menu-toggle { display: none; }
.hero-foot { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 0 var(--gutter) 36px; }
.hero-actions { display: flex; justify-content: flex-end; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--ink);
}
.button:hover { background: var(--ink); color: var(--ground); }
.wordmark {
  font-size: clamp(52px, 10.6vw, 160px);
  line-height: 0.86;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

/* Intro statement */
.intro { padding: var(--section) var(--gutter); }
.intro p {
  max-width: 1120px;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* Selected work panels */
.section-head { padding: 32px var(--gutter); border-top: 1px solid var(--rule); }
.panel {
  position: relative;
  height: min(720px, 90vh);
  min-height: 480px;
  overflow: hidden;
  background: var(--black);
}
.panel + .panel { border-top: 1px solid var(--rule); }
.panel-text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--gutter);
}
.panel-title {
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.panel-text p { max-width: 640px; }
.panel-link { position: absolute; inset: 0; display: block; color: var(--ink); }
.panel-link:hover { color: var(--ink); }
.panel .cover { transition: transform 0.6s ease-out, filter 0.6s ease-out; }
.panel-link:hover .cover { transform: scale(1.02); filter: brightness(1.12); }
.panel-link:hover .panel-title,
.tile-link:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.panel-link:focus-visible { outline-offset: -6px; }

/* Listen */
.listen { padding: var(--section) var(--gutter); }
.listen > h2 { margin-bottom: 20px; }
.track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}
.track:last-child { border-bottom: 1px solid var(--rule); }
.play {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  background: transparent no-repeat center / 12px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M1 0 L12 7 L1 14 Z' fill='%23E8E6E1'/%3E%3C/svg%3E");
  cursor: pointer;
}
.track.is-playing .play {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M1 0 H4.5 V14 H1 Z M7.5 0 H11 V14 H7.5 Z' fill='%230B0B0B'/%3E%3C/svg%3E");
}
.track.is-unavailable .play { opacity: 0.35; cursor: default; }
.track-title {
  flex: 1 1 320px;
  min-width: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.track-credit { flex: 1 1 280px; }
.track-time { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }

/* About */
.about { display: flex; flex-wrap: wrap; align-items: stretch; border-top: 1px solid var(--rule); }
.about-image { position: relative; flex: 1 1 420px; min-width: 0; min-height: 720px; overflow: hidden; background: var(--black); }
.about-text {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: var(--gutter);
}
.bio { display: flex; flex-direction: column; gap: 24px; max-width: 620px; }
.bio p { color: var(--ink-muted); }
.bio .lead { color: var(--ink); font-size: 26px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.bio .available { color: var(--ink); }

/* Further work grid */
.further { display: flex; flex-direction: column; gap: 32px; padding: 32px var(--gutter) var(--section); border-top: 1px solid var(--rule); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; }
.tile-link { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.tile-link:hover { color: var(--ink); }
.tile img { transition: filter 0.4s ease-out; }
.tile-link:hover img { filter: brightness(1.15); }
.tile img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 8px; }
.tile h3 { font-size: 28px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.tile p { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }

/* Contact */
.contact { display: flex; flex-direction: column; gap: 56px; padding: var(--section) var(--gutter) 48px; border-top: 1px solid var(--rule); }
.email { font-size: clamp(26px, 6.2vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; font-size: 12px; }
.foot-row a { color: var(--ink-muted); }
.foot-row a:hover { color: var(--ink); }
.social { display: flex; flex-wrap: wrap; gap: 0 24px; }
.social a { padding: 12px 0; }

/* Player bar: appears once a track is playing */
.player {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  min-height: 72px;
  padding: 12px var(--gutter);
  background: var(--surface);
  border-top: 1px solid var(--rule);
}
.player[hidden] { display: none; }
.player-toggle {
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: var(--ink) no-repeat center / 12px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M1 0 H4.5 V14 H1 Z M7.5 0 H11 V14 H7.5 Z' fill='%230B0B0B'/%3E%3C/svg%3E");
  cursor: pointer;
}
.player.is-paused .player-toggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M1 0 L12 7 L1 14 Z' fill='%230B0B0B'/%3E%3C/svg%3E");
}
.player-meta { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.player-title { font-size: 15px; font-weight: 500; }
.player-note { font-size: 12px; letter-spacing: 0.04em; color: var(--ink-muted); }
.player-bar { flex: 2 1 240px; height: 24px; display: flex; align-items: center; cursor: pointer; position: relative; }
.player-bar::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--ink-muted); }
.player-fill { position: relative; height: 3px; width: 0; background: var(--ink); }
.player-time { font-size: 13px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }

/* Tablet */
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; --section: 72px; }
  .nav { padding: 16px var(--gutter); flex-wrap: nowrap; }

  /* Hamburger menu: phones only */
  .menu-toggle {
    position: relative;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--ink);
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
  }
  .menu-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .menu-icon { position: relative; display: block; width: 24px; height: 14px; }
  .menu-icon span {
    position: absolute; left: 0; right: 0; height: 1.5px;
    background: currentColor;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  }
  .menu-icon span:nth-child(1) { top: 0; }
  .menu-icon span:nth-child(2) { top: 6px; }
  .menu-icon span:nth-child(3) { top: 12px; }
  .nav.is-open .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .menu-icon span:nth-child(2) { opacity: 0; }
  .nav.is-open .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .brand { position: relative; z-index: 30; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 96px var(--gutter) 48px;
    background: var(--ground);
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a {
    padding: 8px 0;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  body.menu-open { overflow: hidden; }
  .hero-foot { padding-bottom: 24px; gap: 20px; }
  .about-image { min-height: 0; aspect-ratio: 4 / 5; flex-basis: 100%; }
  .about-text { padding: 32px var(--gutter) 48px; }
  .bio .lead { font-size: 22px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .track-credit { flex-basis: 100%; order: 3; }
  .track-title { flex-basis: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel .cover, .tile img { transition: none; }
  .panel-link:hover .cover { transform: none; }
}
