/* ==========================================================================
   JUDAH SUMRALL — stylesheet
   Black & white, Helvetica Neue. Change the variables below to restyle
   the whole site.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --paper-alt: #f4f4f4;   /* tiles, hover wash */
  --ink: #000000;
  --ink-soft: #595959;    /* secondary text, 7:1 on white */
  --line: #d6d6d6;

  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max: 1200px;
  --narrow: 860px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 11vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px;
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3.2vw, 40px) var(--gutter);
}

.brand { display: block; flex: none; }
.brand img { width: clamp(180px, 22vw, 280px); }

.site-nav { display: flex; gap: clamp(18px, 2.4vw, 32px); }

.site-nav a {
  position: relative;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .01em;
  text-decoration: none;
  padding: 10px 0;          /* 44px-ish tap target */
}

.site-nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 6px;
  height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-nav { gap: 0 15px; flex-wrap: wrap; }
  .site-nav a { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */

.caps {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.text-link {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding: 6px 0 2px;
  transition: opacity .2s;
}
.text-link:hover { opacity: .55; }

/* Emma Ogier–style centred title with a hairline under it */
.section-title {
  max-width: var(--narrow);
  margin: 0 auto clamp(28px, 4vw, 44px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  text-align: center;
  font-size: clamp(24px, 3vw, 32px);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section { padding: var(--section) var(--gutter) 0; }
.section:last-child { padding-bottom: var(--section); }
.narrow { max-width: var(--narrow); margin: 0 auto; }
.center { text-align: center; }

.empty-lead { font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.muted { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Home hero — film photo centred, one quiet line underneath
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(12px, 3vw, 40px) var(--gutter) 0;
}

.hero-photo { margin: 0; }
.hero-photo img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 300px);
  min-height: 380px;
  object-fit: contain;
}

.hero-copy { text-align: center; padding-bottom: 16px; }

.hero-title {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 800px) {
  .hero-photo img { width: 100%; max-height: none; min-height: 0; }
}

/* Home teasers */
.teaser { text-align: center; }
.teaser .op1 { width: min(100%, 520px); margin: 0 auto 28px; }
.teaser p { max-width: 52ch; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Page intro (interior pages)
   -------------------------------------------------------------------------- */

.page-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) var(--gutter) 0;
}

.page-title {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

.lede { font-size: 19px; color: var(--ink-soft); max-width: 58ch; }

/* --------------------------------------------------------------------------
   Music
   -------------------------------------------------------------------------- */

.releases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 48px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.release img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 14px; }
.release h3 { font-size: 20px; margin-bottom: 2px; }
.release .meta { color: var(--ink-soft); font-size: 15px; margin-bottom: 8px; }
.release .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* --------------------------------------------------------------------------
   Live
   -------------------------------------------------------------------------- */

.shows { max-width: var(--narrow); margin: 0 auto; }

.show {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.show-date { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; line-height: 1.25; }
.show-date span { display: block; font-size: 13px; color: var(--ink-soft); }
.show-where strong { display: block; font-size: 19px; }
.show-where span { color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font: 700 15px/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--ghost { background: var(--paper); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 560px) {
  .show { grid-template-columns: 70px 1fr; }
  .show .btn { grid-column: 2; justify-self: start; }
}

/* --------------------------------------------------------------------------
   Shop — Sounds for OP-1
   -------------------------------------------------------------------------- */

.shop-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  gap: 40px;
  align-items: end;
}
.shop-head .op1 { width: 100%; }

@media (max-width: 800px) {
  .shop-head { grid-template-columns: 1fr; }
  .shop-head .op1 { max-width: 420px; }
}

.placeholder {
  max-width: 560px;
  padding: 28px 0 0 24px;
}
.placeholder .dot { display: block; width: 8px; height: 8px; background: var(--ink); margin-bottom: 20px; }
.placeholder h2 { font-size: 22px; margin-bottom: 12px; }
.placeholder p { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   About / Contact split layouts
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}
.split-photo img { width: 100%; }

.prose { max-width: 60ch; font-size: 18px; }
.prose .sign { font-weight: 700; }

.contact-email {
  display: inline-block;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  margin-bottom: 48px;
  overflow-wrap: anywhere;
}
.contact-email:hover { opacity: .55; }

.contact-socials li { border-bottom: 1px solid var(--line); }
.contact-socials a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; font-size: 19px; font-weight: 700; text-decoration: none;
}
.contact-socials a span { transition: transform .2s var(--ease); }
.contact-socials a:hover span { transform: translateX(4px); }

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split-photo { max-width: 520px; }
  .split--photo-first .split-photo { order: -1; }
}

/* --------------------------------------------------------------------------
   Film — masonry grid + viewer
   -------------------------------------------------------------------------- */

.film-intro { text-align: center; color: var(--ink-soft); margin: -12px 0 clamp(28px, 4vw, 48px); }

.film-bar {
  max-width: 1600px;
  margin: 0 auto 12px;
  display: flex;
  justify-content: flex-end;
}
.sort { position: relative; }
.sort-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink);
  font: 700 14px/1 var(--font);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sort-btn:hover { background: var(--ink); color: var(--paper); }
.sort-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s var(--ease); }
.sort-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sort-menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 5;
  min-width: 170px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .35);
  padding: 4px 0;
  animation: sort-in .16s var(--ease);
}
.sort-menu[hidden] { display: none; }
.sort-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 44px; padding: 0 14px;
  background: none; border: 0; text-align: left;
  font: 500 15px/1 var(--font); color: var(--ink);
  cursor: pointer;
}
.sort-menu button::before { content: ''; width: 7px; height: 7px; flex: none; }
.sort-menu button[aria-checked="true"] { font-weight: 700; }
.sort-menu button[aria-checked="true"]::before { background: var(--ink); }
.sort-menu button:hover, .sort-menu button:focus-visible { background: var(--paper-alt); outline: none; }
@keyframes sort-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sort-menu { animation: none; } }

.film-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 4px;
  max-width: 1600px;
  margin: 0 auto;
  align-items: start;
}
.film-grid.is-grouped { display: block; }
.film-group + .film-group { margin-top: clamp(28px, 4vw, 44px); }
.film-place {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 10px;
  font-size: 15px; text-transform: uppercase; letter-spacing: .08em;
}
.film-place span { font-size: 13px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
.film-group-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 4px;
  align-items: start;
}
.film-col { display: flex; flex-direction: column; gap: 4px; }

.film-item { margin: 0; }

.film-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-alt);
  cursor: zoom-in;
  touch-action: manipulation;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.film-tile img { width: 100%; height: 100%; object-fit: cover; }

@media (hover: hover) {
  .film-tile:hover {
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
    position: relative;
    z-index: 1;
  }
}
.film-tile:active { transform: scale(.985); }

/* Viewer: see-through, the page stays visible behind it but out of focus */
.viewer {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  color: var(--ink);
}
.viewer::backdrop {
  background: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .viewer::backdrop { background: rgba(255, 255, 255, .92); }
}
.viewer[open] { display: block; }
.viewer-open, .viewer-open body { overflow: hidden; }

.viewer-stage {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 56px clamp(12px, 7vw, 96px) 24px;
}
.viewer-inner {
  outline: none;
  margin: 0;
  display: flex; flex-direction: column; align-items: center;
  max-width: 100%; max-height: 100%;
}
.viewer-img {
  max-width: 100%;
  max-height: calc(100dvh - 130px);
  object-fit: contain;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5);
}
.viewer-inner figcaption {
  min-height: 1.4em;
  margin-top: 14px;
  max-width: 36ch;
  text-align: center;
  text-wrap: balance;
  font-size: 15px; font-weight: 700; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

.viewer-btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: none; border: 0; color: var(--ink);
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s;
}
.viewer-btn:hover { opacity: 1; }
.viewer-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.viewer-close { top: 6px; right: 6px; }
.viewer-prev, .viewer-next { top: 50%; transform: translateY(-50%); }
.viewer-prev { left: 4px; }
.viewer-next { right: 4px; }

@media (max-width: 640px) {
  .viewer-stage { padding: 56px 8px 72px; }
  .viewer-img { max-height: calc(100dvh - 190px); }
  .viewer-prev, .viewer-next { top: auto; bottom: 8px; transform: none; }
  .viewer-prev { left: calc(50% - 64px); }
  .viewer-next { right: calc(50% - 64px); }
}

@media (prefers-reduced-motion: reduce) {
  .film-tile, .film-tile:hover { transition: none; transform: none; }
}

/* --------------------------------------------------------------------------
   Shop — sample pack grid + pop-up
   -------------------------------------------------------------------------- */

.packs-section { padding-top: clamp(40px, 6vw, 72px); }
.packs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
  max-width: var(--max);
  margin: 0 auto;
}
@media (max-width: 800px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pack-tile {
  display: block; width: 100%; padding: 0; border: 0;
  background: var(--paper-alt); cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pack-tile img { width: 100%; height: auto; aspect-ratio: 1; display: block; }
@media (hover: hover) {
  .pack-tile:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
}
.pack-tile:active { transform: scale(.985); }
.pack-label {
  display: flex; justify-content: space-between; gap: 8px;
  margin: 10px 0 0; font-size: 14px; font-weight: 700;
}
.pack-label span + span { color: var(--ink-soft); font-weight: 500; }

.bundle {
  max-width: var(--max);
  margin: 0 auto clamp(40px, 6vw, 72px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.bundle:empty { display: none; }
.bundle-art img { aspect-ratio: 16 / 9; }
.bundle-info { max-width: 620px; margin: clamp(22px, 3vw, 32px) auto 0; }
.bundle-name { font-size: clamp(32px, 4.5vw, 48px); margin: 0 0 8px; }
.bundle-meta { color: var(--ink-soft); margin: 0 0 16px; }
.bundle-desc { font-size: 17px; margin: 0 auto 24px; max-width: 52ch; }
.bundle-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.bundle-actions .pack-status { margin: 0; }

.pack-dialog {
  width: min(960px, calc(100vw - 32px));
  max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.5);
  overflow: auto;
}
.pack-dialog::backdrop {
  background: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pack-dialog::backdrop { background: rgba(255, 255, 255, .92); }
}
.pack-sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pack-art { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.pack-info { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; }
.pack-status {
  align-self: flex-start; margin: 0 0 14px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  border: 1px solid var(--ink); padding: 3px 8px;
}
.pack-status.is-live { background: var(--ink); color: var(--paper); }
.pack-name { font-size: clamp(30px, 4vw, 42px); margin: 0 0 6px; }
.pack-meta { color: var(--ink-soft); font-size: 15px; margin: 0 0 16px; }
.pack-desc { font-size: 16px; margin: 0 0 24px; }
.pack-info .kicker { margin-bottom: 10px; }
.pack-cta { margin-top: auto; padding-top: 26px; }
.pack-close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; color: var(--ink); cursor: pointer;
}
.pack-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 700px) {
  .pack-sheet { grid-template-columns: 1fr; }
  .pack-close { background: rgba(255,255,255,.85); }
}

.previews { display: flex; flex-wrap: wrap; gap: 8px; }
.preview {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink);
  font: 700 15px/1 var(--font); cursor: pointer;
  touch-action: manipulation;
  transition: background .15s, color .15s;
}
.preview:hover { background: var(--paper-alt); }
.preview svg { width: 12px; height: 12px; flex: none; fill: currentColor; }
.preview .i-stop { display: none; }
.preview[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.preview[aria-pressed="true"] .i-play { display: none; }
.preview[aria-pressed="true"] .i-stop { display: block; }
.preview::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--paper); transform-origin: left; transform: scaleX(var(--p, 0));
}
.preview[aria-pressed="false"]::after { display: none; }

/* --------------------------------------------------------------------------
   Mailing list sign-up
   -------------------------------------------------------------------------- */

.signup { width: 100%; max-width: 440px; margin: 28px auto 0; text-align: center; }
.signup-lede { margin: 0 0 10px; font-size: 15px; color: var(--ink-soft); }
.signup-row { display: flex; }
.signup input[type="email"] {
  flex: 1; min-width: 0;
  min-height: 48px; padding: 0 14px;
  border: 2px solid var(--ink); border-right: 0; border-radius: 0;
  background: var(--paper); color: var(--ink);
  font: 700 16px var(--font);             /* 16px stops iPhone zooming in */
  -webkit-appearance: none; appearance: none;
}
.signup input[type="email"]::placeholder { color: var(--ink-soft); font-weight: 700; opacity: 1; }
.signup input[type="email"]:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink); }
.signup button {
  min-height: 48px; padding: 0 18px;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper);
  font: 700 15px var(--font); cursor: pointer;
  transition: background .2s, color .2s;
}
.signup button:hover { background: var(--paper); color: var(--ink); }
.signup button:disabled { opacity: .6; cursor: progress; }
.signup.is-error input[type="email"] { box-shadow: inset 0 0 0 1px var(--ink); background: #fff4f4; }
.signup-msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; }
.signup-msg[data-kind="ok"] { font-weight: 700; }
.signup-msg[data-kind="error"] { color: #b00020; }
.signup-trap { position: absolute; left: -5000px; }

.signup--footer { margin: 0 auto 36px; }
.signup--hero { margin: 18px auto 0; }
.signup--hero .signup-msg:empty { min-height: 0; margin: 0; }

/* --------------------------------------------------------------------------
   Footer — Bon Iver–style evenly spaced links
   -------------------------------------------------------------------------- */

.site-footer {
  padding: clamp(64px, 9vw, 120px) var(--gutter) 28px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: 1040px;
  margin: 0 auto 28px;
}
.footer-links a {
  display: inline-block; padding: 10px 0;
  font-size: 15px; text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.fine { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 0; }

@media (max-width: 560px) {
  .footer-links { justify-content: center; gap: 0 22px; }
}

/* --------------------------------------------------------------------------
   Gentle reveal on scroll (skipped for reduced motion / no JS)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
