/* stereosnap — project site (v4). Mobile-first: base = phone, min-width queries scale up. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #080808;
  --surface: #111010;
  --text: #d4d0cb;
  --muted: #6b6660;
  --line: rgba(240, 236, 230, 0.08);
  --white: #f0ece6;
  --accent: #c9bfb0;
  --font: 'DM Sans', -apple-system, 'Helvetica Neue', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 20px;
  --section-y: clamp(88px, 14vh, 220px);
  --text-statement: clamp(1.45rem, 1.05rem + 2.6vw, 3.6rem);
  --text-eyebrow: 11px;
}
@media (min-width: 700px) { :root { --gutter: clamp(32px, 5vw, 56px); } }

html { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: auto; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: 0; }
:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Gate ---------- */
.pw-gate {
  position: fixed; inset: 0; z-index: 100000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--gutter);
  transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1); clip-path: inset(0 0 0 0);
}
.pw-gate.dismissed { clip-path: inset(0 0 100% 0); pointer-events: none; }
.pw-gate__label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.pw-gate__input {
  width: min(340px, 80vw); background: transparent; border: none; border-bottom: 1px solid var(--muted);
  padding: 0.8rem 0; font: 1.1rem var(--font); color: var(--white); letter-spacing: 0.08em;
  outline: none; text-align: center; transition: border-color 0.3s; border-radius: 0;
}
.pw-gate__input::placeholder { color: rgba(107, 102, 96, 0.5); }
.pw-gate__input:focus { border-color: var(--white); }
.pw-gate__error { font-size: 0.75rem; color: #c47a6a; margin-top: 1rem; opacity: 0; transition: opacity 0.3s; }
.pw-gate__error.visible { opacity: 1; }
.pw-gate__submit {
  margin-top: 2rem; background: transparent; border: 1px solid var(--muted); color: var(--white);
  font: 0.75rem var(--font); letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.8rem 2.5rem; border-radius: 100px; cursor: pointer; transition: background 0.3s, border-color 0.3s;
}
.pw-gate__submit:hover { background: rgba(240, 236, 230, 0.06); border-color: var(--white); }

/* ---------- Atmosphere ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}
@media (min-width: 700px) { .grain { opacity: 0.035; } }

.preloader { position: fixed; inset: 0; z-index: 10001; background: var(--bg); display: grid; place-items: center; }
.preloader__text { overflow: hidden; padding: 0.1em 0.1em 0.18em; font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; color: var(--white); }
.preloader__text span { display: inline-block; transform: translateY(110%); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: calc(22px + env(safe-area-inset-top)) var(--gutter) 22px;
  display: flex; justify-content: space-between; align-items: center; mix-blend-mode: difference;
}
.nav__logo { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--white); transition: opacity 0.5s var(--ease); }
.at-hero .nav__logo { opacity: 0; pointer-events: none; }
.nav__toggle {
  background: none; border: 0; color: var(--white); font: 14px var(--font); letter-spacing: 0.02em;
  cursor: pointer; padding: 8px 0 8px 16px;
}
.nav__links { display: none; gap: 36px; list-style: none; }
.nav__links a { font-size: 14px; letter-spacing: 0.02em; color: var(--white); position: relative; padding-bottom: 2px; }
.nav__links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 760px) { .nav__links { display: flex; } .nav__toggle { display: none; } }

.menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 120px var(--gutter) calc(48px + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1); visibility: hidden;
}
.menu.open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu a { font-size: clamp(2.4rem, 12vw, 4rem); font-weight: 400; letter-spacing: -0.03em; color: var(--white); line-height: 1.1; }
.menu a:nth-child(even) { font-family: var(--serif); font-style: italic; color: var(--accent); }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: var(--text-eyebrow); letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  margin-bottom: clamp(28px, 5vh, 56px);
}
.statement { font-size: var(--text-statement); font-weight: 300; line-height: 1.3; letter-spacing: -0.015em; color: var(--white); max-width: 22ch; }
.statement--muted { color: var(--muted); margin-top: clamp(32px, 6vh, 72px); }
@media (min-width: 700px) { .statement { max-width: 26ch; } }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.1em 0.1em 0.14em; margin: -0.1em -0.1em -0.14em; }
.w > span { display: inline-block; transform: translateY(105%); }
.no-anim .w > span { transform: none; }

.cta {
  display: inline-flex; align-items: center; gap: 16px; padding: 14px 0; min-height: 44px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white);
  background: none; border: 0; font-family: var(--font); cursor: pointer;
}
.cta__line { width: 40px; height: 1px; background: var(--accent); transition: width 0.5s var(--ease); }
.cta__arrow { transition: transform 0.4s var(--ease); }
.cta:hover .cta__line { width: 72px; }
.cta:hover .cta__arrow { transform: translateX(6px); }

.media { position: relative; overflow: hidden; background: var(--surface); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }

.reveal { opacity: 0; transform: translateY(32px); }
.no-anim .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img, .hero__bg video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: brightness(0.6) contrast(1.08); }
.no-anim .hero__bg img, .no-anim .hero__bg video { transform: none; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(8, 8, 8, 0.35) 45%, rgba(8, 8, 8, 0.15) 100%); }
.hero__content { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) calc(clamp(40px, 9vh, 96px) + env(safe-area-inset-bottom)); }
.hero__kicker { font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--white); opacity: 0.75; margin-bottom: 18px; }
.hero__title { font-size: clamp(3.4rem, 17vw, 15rem); font-weight: 500; line-height: 0.85; letter-spacing: -0.055em; color: var(--white); margin-left: -0.04em; }
.hero__sub { margin-top: 22px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text); }
.hero__fade { opacity: 0; transform: translateY(16px); }
.no-anim .hero__fade { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee { padding: clamp(26px, 5vh, 52px) 0; overflow: hidden; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__item { flex-shrink: 0; white-space: nowrap; font-size: clamp(1rem, 2vw, 1.6rem); font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.marquee__item:nth-child(even) { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0.01em; color: var(--accent); font-size: clamp(1.15rem, 2.3vw, 1.9rem); }
.marquee__sep { display: inline-block; margin: 0 clamp(18px, 2.4vw, 36px); opacity: 0.35; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement / Bio ---------- */
.block { padding: var(--section-y) var(--gutter); }

/* ---------- Releases ---------- */
.releases__title { font-size: clamp(2rem, 1.2rem + 4vw, 4.6rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1; color: var(--white); margin-bottom: clamp(40px, 7vh, 88px); }
.releases__grid { display: grid; gap: 64px; }
@media (min-width: 760px) { .releases__grid { grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); } .release:nth-child(even) { margin-top: clamp(64px, 14vh, 180px); } }
.release { --accent: var(--r-accent, #c9bfb0); display: block; }
.release__media { aspect-ratio: 4 / 5; }
.release__media > img { transition: transform 1.4s var(--ease), filter 1s var(--ease); filter: brightness(0.88) saturate(0.92); }
.release__media > video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s var(--ease); }
.release:hover .release__media > img { transform: scale(1.04); filter: brightness(1) saturate(1); }
.release:hover .release__media > video { opacity: 1; }
.release__num { position: absolute; top: 16px; left: 16px; z-index: 2; font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; color: var(--white); mix-blend-mode: difference; }
.release__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 22px; }
.release__title { font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); font-weight: 400; letter-spacing: -0.025em; color: var(--white); }
.release__status { flex-shrink: 0; font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 100px; padding: 6px 12px; }

.release__media { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.release__media:disabled { cursor: default; }
.release__about {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end;
  padding: clamp(22px, 4vw, 40px);
  background: linear-gradient(to top, rgba(8, 8, 8, 0.92) 0%, rgba(8, 8, 8, 0.7) 45%, rgba(8, 8, 8, 0.25) 100%);
  opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.release__about-inner { display: grid; gap: 1em; transform: translateY(18px); transition: transform 0.8s var(--ease); }
.release__about p { font-size: clamp(15px, 0.9rem + 0.4vw, 18px); line-height: 1.6; color: var(--white); max-width: 40ch; }
.release.is-open .release__about { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease), visibility 0s; }
.release.is-open .release__about-inner { transform: none; }
.release.is-open .release__hint { opacity: 0; }
.release__media:not([data-release-toggle]) { cursor: default; }
/* Small label on the cover so people know there is something behind it. */
.release__hint {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 7px 12px; border-radius: 100px;
  background: rgba(8, 8, 8, 0.55); color: var(--white); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: opacity 0.4s var(--ease);
}
@media (hover: hover) {
  .release.has-about:hover .release__about { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease), visibility 0s; }
  .release.has-about:hover .release__about-inner { transform: none; }
  .release.has-about:hover .release__hint { opacity: 0; }
}
.release__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.release__links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 16px;
  border: 1px solid rgba(240, 236, 230, 0.12); border-radius: 100px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.release__links a:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); color: var(--white); }
.release__links svg { width: 14px; height: 14px; opacity: 0.75; }

/* ---------- Feature (full-bleed band) ---------- */
.feature { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.feature__bg { position: absolute; inset: 0; }
.feature__bg img, .feature__bg video { width: 100%; height: 115%; object-fit: cover; filter: brightness(0.5) contrast(1.08) saturate(0.95); }
.feature__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 8, 0.85) 0%, rgba(8, 8, 8, 0.25) 60%, rgba(8, 8, 8, 0.4) 100%); }
.feature__content { position: relative; z-index: 2; width: 100%; padding: var(--section-y) var(--gutter); }
.feature .statement { max-width: 20ch; }
.feature .cta { margin-top: clamp(32px, 6vh, 64px); }
@media (min-width: 900px) {
  .feature { align-items: center; }
  .feature__bg::after { background: linear-gradient(to right, rgba(8, 8, 8, 0.75) 0%, rgba(8, 8, 8, 0.2) 55%, rgba(8, 8, 8, 0.05) 100%); }
  .feature--right .feature__content { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
  .feature--right .feature__bg::after { background: linear-gradient(to left, rgba(8, 8, 8, 0.75) 0%, rgba(8, 8, 8, 0.2) 55%, rgba(8, 8, 8, 0.05) 100%); }
  .feature--right .eyebrow { flex-direction: row-reverse; }
}

/* ---------- Gallery ---------- */
.gallery { padding: var(--section-y) 0; overflow: hidden; }
.gallery .eyebrow { padding: 0 var(--gutter); }
.gallery__track {
  display: flex; align-items: center; gap: 10px; padding: 0 var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex-shrink: 0; scroll-snap-align: center; width: 78vw; }
.gallery__item--landscape { width: 88vw; }
.gallery__item .media { aspect-ratio: 3 / 4; }
.gallery__item--landscape .media { aspect-ratio: 3 / 2; }
.gallery__item--square .media { aspect-ratio: 1; }
.gallery__item img { transition: transform 1.2s var(--ease), filter 1s var(--ease); filter: brightness(0.86) saturate(0.92); }
.gallery__item:hover img { transform: scale(1.04); filter: none; }
.gallery__count { padding: 18px var(--gutter) 0; font-size: 11px; letter-spacing: 0.25em; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .gallery__track { overflow: visible; width: max-content; gap: clamp(12px, 1.5vw, 22px); scroll-snap-type: none; }
  .gallery__item { width: clamp(300px, 30vw, 460px); }
  .gallery__item--landscape { width: clamp(460px, 46vw, 700px); }
  .gallery__item--square { width: clamp(340px, 34vw, 520px); }
  .gallery__count { display: none; }
}

/* Three images or fewer: a composed grid instead of a scrolling strip. */
@media (min-width: 900px) {
  .gallery--grid .gallery__track { width: auto; display: grid; grid-template-columns: 1fr 1.35fr 1fr; align-items: center; }
  .gallery--grid .gallery__item { width: auto; }
}

/* ---------- Film ---------- */
.film { position: relative; height: 88svh; min-height: 480px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.film__bg { position: absolute; inset: 0; }
.film__bg img, .film__bg video { width: 100%; height: 115%; object-fit: cover; filter: brightness(0.5) contrast(1.08); }
.film__content { position: relative; z-index: 2; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.film__content .eyebrow { margin-bottom: 20px; }
.film__title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(3rem, 1.6rem + 8vw, 9rem); line-height: 0.95; letter-spacing: -0.02em; color: var(--white); }
.film__play {
  margin-top: clamp(28px, 5vh, 56px); display: inline-flex; align-items: center; gap: 14px; min-height: 48px;
  padding: 10px 26px 10px 10px; border-radius: 100px; border: 1px solid rgba(240, 236, 230, 0.25);
  background: rgba(8, 8, 8, 0.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--white); font: 12px var(--font); letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.film__play:hover { background: rgba(240, 236, 230, 0.12); border-color: var(--white); }
.film__play-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.film__play-icon svg { width: 12px; height: 12px; margin-left: 2px; fill: var(--bg); }

.player { position: fixed; inset: 0; z-index: 100001; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: rgba(8, 8, 8, 0.96); padding: 0; }
.player[open] { display: flex; align-items: center; justify-content: center; }
.player::backdrop { background: transparent; }
.player video { width: min(100%, 1400px); max-height: 100svh; height: auto; background: #000; }
.player__close {
  position: absolute; top: calc(16px + env(safe-area-inset-top)); right: var(--gutter); z-index: 2; min-height: 44px; padding: 0 4px;
  background: none; border: 0; color: var(--white); font: 11px var(--font); letter-spacing: 0.25em; text-transform: uppercase; cursor: pointer;
}

/* ---------- Triptych ---------- */
.triptych { display: grid; grid-template-columns: 1fr 1fr; }
.triptych .media { aspect-ratio: 3 / 4; }
/* Phones: two columns; an odd last tile is dropped so the grid stays even. */
.triptych .media:last-child:nth-child(odd) { display: none; }
@media (min-width: 900px) { .triptych { grid-template-columns: repeat(var(--n, 3), 1fr); } .triptych .media:last-child:nth-child(odd) { display: block; } }

/* ---------- Album ---------- */
.album { display: grid; gap: 40px; align-items: start; }
.album__title { white-space: nowrap; font-size: clamp(3.6rem, 1.6rem + 11vw, 11rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.85; color: var(--white); }
.album__title em { font-weight: 400; }
.album__text { margin-top: 28px; max-width: 38ch; font-size: 16px; line-height: 1.65; color: var(--muted); }
.album .media { aspect-ratio: 1; }
@media (min-width: 900px) { .album { grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); } }

/* ---------- Listen ---------- */
.listen { text-align: center; }
.listen__title { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 5rem); font-weight: 500; letter-spacing: -0.045em; color: var(--white); margin-bottom: 40px; }
.listen__sub { font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--muted); margin-bottom: 48px; }
.listen__links { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.listen__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 300px; min-height: 48px;
  padding: 14px 28px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 100px;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.listen__link:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.listen__link svg { width: 16px; height: 16px; opacity: 0.6; }
@media (min-width: 700px) { .listen__links { flex-direction: row; flex-wrap: wrap; justify-content: center; } .listen__link { width: auto; } }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-top: 0; }
.contact .listen__title { margin-bottom: 16px; }
.contact__note { font-size: 16px; line-height: 1.6; color: var(--muted); margin-bottom: 28px; }
.contact__link { display: inline-block; font-size: clamp(1.3rem, 1rem + 1.6vw, 2.2rem); letter-spacing: -0.02em; color: var(--white); word-break: break-word; transition: color 0.4s var(--ease); }
.contact__link:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  padding: 36px var(--gutter) calc(36px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 24px; align-items: center;
}
.footer p { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.footer__socials { display: flex; gap: 8px; }
.footer__socials a { color: var(--muted); transition: color 0.3s; display: grid; place-items: center; width: 44px; height: 44px; }
.footer__socials a:hover { color: var(--white); }
.footer__socials svg { width: 18px; height: 18px; }
@media (min-width: 700px) { .footer { flex-direction: row; justify-content: space-between; } }

/* ---------- Preview helpers (back office) ---------- */
.is-hidden-section { outline: 1px dashed rgba(240, 236, 230, 0.3); opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Touch screens have no hover: the release loop fades in once it is playing in view. */
@media (hover: none) { .release__media > video.is-playing { opacity: 1; } }
