/* ==========================================================================
   8m/s — Direction 01 "MONOLITH" — revision B
   Cold, wide and quiet. The artwork does the shouting.

   Type note: Bodoni Moda is a variable Didone. Left on `font-optical-sizing:
   auto` its hairlines thin out to nothing at display sizes, so the optical
   size is pinned low (opsz 12) and the weight raised to 500. Same face,
   readable strokes.
   ========================================================================== */

:root {
  --void:      #04060a;
  --abyss:     #080e15;
  --slate:     #101c26;
  --ice:       #8fc7dc;
  --ice-dim:   #5c8ba1;
  --frost:     #e8f1f5;
  --ash:       #90a5b1;
  --hair:      rgba(143, 199, 220, .2);
  --hair-soft: rgba(143, 199, 220, .1);

  --f-display: "Bodoni Moda", "Playfair Display", "Didot", Georgia, serif;
  --f-body:    "Barlow", "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --f-mono:    "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* viewport-fit=cover means the gutter has to clear the notch in landscape */
  --gut: max(clamp(1.25rem, 5vw, 5.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --rule: 1px solid var(--hair);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  overflow-x: clip;              /* clip, not hidden — keeps position:sticky working */
  overscroll-behavior-x: none;   /* stops the sideways rubber-band on a phone */
}

body {
  margin: 0;
  background: var(--void);
  color: var(--frost);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(.95rem, .9rem + .18vw, 1.06rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior-x: none;
  max-width: 100%;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 1px solid var(--ice); outline-offset: 4px; }
::selection { background: var(--ice); color: var(--void); }

/* --- shared type ------------------------------------------------------- */

.eyebrow {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0;
}

.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-variation-settings: "opsz" 12;
  text-transform: uppercase;
  letter-spacing: .045em;
  line-height: .96;
  margin: 0;
}

h2.display { font-size: clamp(2.2rem, 1.3rem + 4.2vw, 5.2rem); }
h3.display { font-size: clamp(1.35rem, 1rem + 1.5vw, 2.15rem); letter-spacing: .065em; }

.lede {
  font-size: clamp(1.02rem, .95rem + .4vw, 1.25rem);
  color: #c3d5de;
  max-width: 46ch;
  font-weight: 300;
}

/* --- nav --------------------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--gut);
  transition: background .45s var(--ease), backdrop-filter .45s var(--ease), border-color .45s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(4, 6, 10, .86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--hair-soft);
}
.nav__mark img { height: 26px; width: auto; opacity: .95; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav__links a {
  font-family: var(--f-mono);
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ash);
  transition: color .3s;
  padding: .4rem 0;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--frost); }
.nav__links a.is-key { color: var(--ice); }

.nav__toggle {
  display: none;
  background: none; border: 0; padding: .5rem; cursor: pointer;
  color: var(--frost);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  /* backdrop-filter would make .nav a containing block for the fixed menu */
  .nav.is-stuck { backdrop-filter: none; background: var(--void); }
  .nav__links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: 1.6rem;
    background: rgba(4, 6, 10, .98);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .5s var(--ease), visibility 0s .5s;
  }
  .nav__links a { font-size: .95rem; letter-spacing: .3em; }
  body.menu-open .nav__links { transform: none; visibility: visible; transition: transform .5s var(--ease); }
  .nav__toggle { display: block; position: relative; z-index: 2; }
}

/* --- hero: the gate ---------------------------------------------------- */
/* The artwork carries the band's own mark, so nothing is composited over it. */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__shutter {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 1;
  width: 100%;
  background: var(--void);
  will-change: transform;
}
/* full-width panels slid into place — animating left/right instead would
   force a layout on every frame of the opening */
.hero__shutter--l { transform: translate3d(calc(var(--slit-l, 50%) - 100%), 0, 0); }
.hero__shutter--r { transform: translate3d(var(--slit-r, 50%), 0, 0); }
.hero__shutter::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px;
  background: linear-gradient(to right, transparent, rgba(4,6,10,.95));
}
.hero__shutter--l::after { left: 100%; background: linear-gradient(to right, rgba(4,6,10,.95), transparent); }
.hero__shutter--r::after { right: 100%; }

.hero__art {
  position: absolute; inset: 0; z-index: 0;
  background: url("assets/doc-cover.webp") center 24% / cover no-repeat;
  transform: scale(1.04);
  will-change: transform;
}
.hero__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(135% 88% at 50% 34%, transparent 0%, rgba(4,6,10,.08) 60%, rgba(4,6,10,.66) 100%),
    linear-gradient(to bottom, rgba(4,6,10,.46) 0%, transparent 18%, transparent 62%, rgba(4,6,10,.82) 90%, rgba(4,6,10,.97) 100%);
}
@media (max-width: 700px) {
  .hero__long { letter-spacing: .14em; text-indent: .14em; }
  /* dead centre sat the name on the sleeve's brightest cloud; a touch higher
     puts it against the darker band above it and clears the announcement */
  .hero__inner { transform: translateY(-6vh); }
  /* portrait viewport: crop from the height so the sleeve's own title
     never collides with the name below it */
  .hero__art { background-size: auto 122%; background-position: 50% 22%; }
}

.hero__inner {
  position: relative; z-index: 3;
  text-align: center;
  padding: 3rem var(--gut) clamp(2rem, 6vh, 4rem);
  display: grid; justify-items: center; gap: clamp(1.1rem, 3vh, 2rem);
  justify-self: center;
}
/* The band's name, set as type over the monolith. The sleeve inside the
   aperture already carries the brush mark, so nothing is composited over it. */
.hero__long {
  font-family: var(--f-display); font-weight: 500; font-variation-settings: "opsz" 12;
  text-transform: uppercase;
  font-size: clamp(1.5rem, .9rem + 3.4vw, 3.9rem);
  line-height: 1.18;
  letter-spacing: clamp(.16em, .42vw, .34em);
  text-indent: clamp(.16em, .42vw, .34em);   /* matches the tracking exactly */
  margin: 0; color: var(--frost);
  text-shadow: 0 2px 60px rgba(4, 6, 10, .98), 0 0 22px rgba(4, 6, 10, .9);
  opacity: 0; animation: rise 1s .5s var(--ease) forwards;
}
.hero .eyebrow {
  color: #b6ccd7; text-indent: .26em;
  text-shadow: 0 1px 26px rgba(4,6,10,.98), 0 0 8px rgba(4,6,10,.95);
  opacity: 0; animation: rise 1s .75s var(--ease) forwards;
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero__foot {
  position: absolute; inset: auto 0 0 0; z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem 1rem; flex-wrap: wrap;
  padding: 1.1rem var(--gut) calc(1.4rem + env(safe-area-inset-bottom));
  border-top: var(--rule);
  background: linear-gradient(to top, rgba(4,6,10,.85), transparent);
  font-family: var(--f-mono); font-size: clamp(.6rem, .5rem + .3vw, .68rem);
  letter-spacing: .18em;
  text-transform: uppercase; color: var(--ash);
  opacity: 0; animation: rise 1s 1.18s var(--ease) forwards;
}
/* one line, and the line itself is the way in: the announcement is the link */
.hero__foot { justify-content: center; text-align: center; }
.hero__foot a {
  color: var(--ice); display: inline-block; padding: .4rem 0;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.hero__foot a:hover, .hero__foot a:focus-visible { color: var(--frost); border-bottom-color: var(--ice-dim); }

/* --- section shell ----------------------------------------------------- */

.section { padding: clamp(4rem, 8vh, 8rem) var(--gut); position: relative; scroll-margin-top: 4.5rem; }

.section__head {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding-bottom: 1.2rem; margin-bottom: clamp(2rem, 5vh, 3.5rem);
  border-bottom: var(--rule);
}
.section__head .num {
  font-family: var(--f-mono); font-size: .68rem; color: var(--ice-dim);
  letter-spacing: .2em; align-self: flex-start; padding-top: .35rem;
}
.section__head h2 { flex: 1; }
.section__sub {
  display: block; margin-top: .7rem;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .3em; color: var(--ice-dim);
}

/* --- album feature ----------------------------------------------------- */

.feature {
  display: grid; gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.feature__art {
  position: relative; display: block;
  border: 1px solid var(--hair);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: 0 0 0 1px rgba(143, 199, 220, .06), 0 0 34px rgba(143, 199, 220, .05);
}
.feature__art:hover, .feature__art:focus-visible, .feature__art.is-flipped {
  border-color: var(--ice);
  box-shadow: 0 0 0 1px rgba(143, 199, 220, .34), 0 0 60px rgba(143, 199, 220, .2);
}
.feature__art { aspect-ratio: 1; overflow: hidden; background: var(--void); }
.feature__face {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .75s var(--ease), transform 1.1s var(--ease);
}
.feature__face--back { opacity: 0; transform: scale(1.04); }
.feature__art:hover .feature__face--front,
.feature__art:focus-visible .feature__face--front,
.feature__art.is-flipped .feature__face--front { opacity: 0; transform: scale(1.03); }
.feature__art:hover .feature__face--back,
.feature__art:focus-visible .feature__face--back,
.feature__art.is-flipped .feature__face--back { opacity: 1; transform: none; }

.feature__art figcaption {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem;
  background: linear-gradient(to top, rgba(4,6,10,.9), transparent);
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ash);
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.feature__art:hover figcaption,
.feature__art:focus-visible figcaption,
.feature__art.is-flipped figcaption { opacity: 1; transform: none; }
.feature__art figcaption b { color: var(--ice); font-weight: 400; }
@media (hover: none) {
  /* Nothing is written over the sleeve on a phone — it carries its own title
     on both faces, and the whole tile is a link. */
  .feature__art figcaption { display: none; }
  /* and the turn is a slow dissolve rather than a flip, since it happens on
     its own and should never catch the eye mid-sentence */
  .feature__face { transition: opacity 1.8s var(--ease), transform 2.6s var(--ease); }
}

.feature__body { display: grid; gap: 1.4rem; }
.feature__ctas { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
#socials .lede a { color: var(--frost); border-bottom: 1px solid rgba(143, 199, 220, .35); }
#socials .lede a:hover, #socials .lede a:focus-visible { border-bottom-color: var(--ice); }
.feature__meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ash);
}
.feature__meta b { display: block; color: var(--frost); font-weight: 400; margin-top: .3rem; }
.feature__meta a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(143, 199, 220, .35); transition: border-color .4s var(--ease); }
.feature__meta a:hover, .feature__meta a:focus-visible { border-bottom-color: var(--ice, #8fc7dc); }

/* --- the video: a dark frame that only becomes YouTube when played ------ */
.film { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); justify-items: center; text-align: center; }
.film__frame, .film__body { width: 100%; max-width: 1100px; }
.film__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border: 1px solid var(--hair-soft);
  box-shadow: 0 30px 80px -40px rgba(23, 60, 80, .9);
}
.film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film__play {
  position: absolute; inset: 0; width: 100%; padding: 0; border: 0;
  background: none; cursor: pointer; color: inherit;
}
.film__play:disabled { cursor: default; }
.film__poster {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.78);
  transform: scale(1.02);
  transition: filter .9s var(--ease), transform 1.4s var(--ease);
}
.film__play::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(4,6,10,.75) 100%),
              linear-gradient(to top, rgba(4,6,10,.7), transparent 45%);
}
.film__mark {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: clamp(64px, 8vw, 96px); aspect-ratio: 1; translate: -50% -50%;
  border: 1px solid rgba(143, 199, 220, .55); border-radius: 50%;
  background: rgba(4, 6, 10, .35);
  transition: border-color .5s var(--ease), background .5s var(--ease), scale .6s var(--ease);
}
.film__mark::before {
  content: ""; position: absolute; left: 54%; top: 50%; translate: -50% -50%;
  width: 26%; aspect-ratio: .87; background: var(--frost);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.film__cue {
  position: absolute; left: 50%; top: calc(50% + clamp(44px, 5.6vw, 66px)); z-index: 1;
  translate: -50% 0;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ash);
}
.film__play:not(:disabled):hover .film__poster,
.film__play:focus-visible .film__poster { filter: brightness(.95); transform: none; }
.film__play:not(:disabled):hover .film__mark,
.film__play:focus-visible .film__mark { border-color: var(--ice); background: rgba(23, 60, 80, .55); scale: 1.06; }
.film__play:focus-visible { outline: 1px solid var(--ice); outline-offset: -1px; }
.film__body { display: grid; gap: .9rem; justify-items: center; }
.film__line {
  margin: 0; font-family: var(--f-display); font-style: italic;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); line-height: 1.5; color: var(--ash);
}

.btn {
  display: inline-flex; align-items: center; gap: .9rem;
  /* Letter-spacing puts a trailing gap after the last glyph, so equal padding
     reads right-heavy. Half the tracking is moved from the right pad to the
     left. Done with padding rather than text-indent, which per spec does not
     apply to a flex container and is ignored in some browsers. */
  padding: .95rem calc(1.6rem - .12em) .95rem calc(1.6rem + .12em);
  border: 1px solid var(--ice-dim);
  color: var(--frost);
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .24em;
  text-transform: uppercase;
  transition: background .4s var(--ease), border-color .4s, color .4s;
  justify-self: start; background: none; cursor: pointer;
}
.btn:hover { background: var(--ice); border-color: var(--ice); color: var(--void); }

/* The one thing on the page we actually want pressed. It used to be the same
   hairline box as every other button with a pulse on it, and read as a label:
   the call is the only filled surface on the site, so it is unmistakably the
   thing to press. */
.btn--call {
  position: relative;
  background: var(--ice); border-color: var(--ice);
  color: var(--void); font-weight: 700;
  padding: 1.05rem calc(1.9rem - .12em) 1.05rem calc(1.9rem + .12em);
  box-shadow: 0 0 0 0 rgba(143, 199, 220, .35), 0 12px 34px rgba(143, 199, 220, .16);
  animation: callout 3.4s var(--ease) infinite;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.btn--call:hover, .btn--call:focus-visible {
  background: #b5e0ef; border-color: #b5e0ef; color: var(--void);
  box-shadow: 0 0 0 0 rgba(143, 199, 220, 0), 0 16px 44px rgba(143, 199, 220, .3);
  transform: translateY(-1px);
  animation: none;
}
.btn--call:active { transform: translateY(0); box-shadow: 0 0 0 0 rgba(143, 199, 220, 0), 0 6px 18px rgba(143, 199, 220, .2); }
.btn--call svg { width: .85em; height: .85em; flex: none; transition: transform .35s var(--ease); }
.btn--call:hover svg { transform: translate(2px, -2px); }
/* a slow breath of light, so the eye finds it without a word being added */
@keyframes callout {
  0%, 100% { box-shadow: 0 0 0 0 rgba(143, 199, 220, .35), 0 12px 34px rgba(143, 199, 220, .16); }
  50%      { box-shadow: 0 0 0 7px rgba(143, 199, 220, 0), 0 12px 40px rgba(143, 199, 220, .28); }
}
.btn--ghost { border-color: var(--hair); color: var(--ash); }
.btn--ghost:hover { background: none; border-color: var(--ice); color: var(--frost); }

/* --- discography as an index ------------------------------------------ */

.disco { position: relative; }
.disco__row {
  display: grid; align-items: center; gap: .4rem 1.5rem;
  grid-template-columns: 4.5rem 1fr auto;
  padding: clamp(1.05rem, 2.2vh, 1.75rem) 0;
  border-bottom: var(--rule);
}
.disco__row:first-child { border-top: var(--rule); }
.disco__year { font-family: var(--f-mono); font-size: .7rem; color: var(--ice-dim); letter-spacing: .14em; transition: color .4s; }
.disco__title { transition: transform .55s var(--ease), color .45s; }
.disco__row:hover .disco__title,
.disco__row:focus-visible .disco__title { transform: translateX(10px); color: var(--ice); }
.disco__row:hover .disco__year { color: var(--ice); }
.disco__type {
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ash); text-align: right;
}
.disco__row.is-new .disco__type { color: var(--ice); }
.disco__thumb { display: none; position: relative; isolation: isolate; }
/* the back catalogue arrives in the page's palette here too — the new record
   is the one sleeve shown as it really looks */
.disco__row:not([data-plain]) .disco__thumb img { filter: grayscale(.72) brightness(1.03) contrast(1.06); }
.disco__row:not([data-plain]) .disco__thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--ice); mix-blend-mode: color; opacity: .34;
}


@media (max-width: 640px) {
  .disco__row { grid-template-columns: 4.6rem 1fr; column-gap: 1.1rem; }
  .disco__thumb { display: block; grid-row: 1 / -1; grid-column: 1; align-self: center; }
  .disco__thumb img {
    width: 100%; aspect-ratio: 1; object-fit: cover;
    border: 1px solid var(--hair-soft);
  }
  .disco__year { grid-column: 2; }
  .disco__title { grid-column: 2; font-size: 1.15rem; }
  .disco__type { grid-column: 2; text-align: left; }
  .disco__row { grid-template-rows: auto auto auto; }
}

/* the cover, following the pointer — never cropped, always fading */
.disco__preview {
  position: fixed; z-index: 20; pointer-events: none;
  width: clamp(230px, 21vw, 340px);
  left: 0; top: 0;
  opacity: 0;
  isolation: isolate;
  transition: opacity .42s var(--ease);
  will-change: transform, opacity;
}
/* every sleeve arrives in the page's own palette, whatever colour it was */
.disco__preview::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--ice); mix-blend-mode: color; opacity: .34;
  transition: opacity .45s var(--ease);
}
.disco__preview::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, transparent 38%, rgba(4, 6, 10, .3) 100%);
}
.disco__preview img {
  position: absolute; inset: 0;
  width: 100%; height: auto;
  border: 1px solid var(--hair);
  filter: grayscale(.72) brightness(1.03) contrast(1.06);
  transition: opacity .45s var(--ease), transform .55s var(--ease), filter .45s var(--ease);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .78);
  opacity: 0;
  transform: scale(.965);
}
.disco__preview img.is-front { opacity: 1; transform: none; position: relative; }
.disco__preview.is-on { opacity: 1; }
/* the record being announced is shown as it really looks */
.disco__preview.is-plain img { filter: none; }
.disco__preview.is-plain::after { opacity: 0; }
@media (max-width: 900px), (hover: none) { .disco__preview { display: none; } }

/* singles, as a footnote to the albums */
.singles {
  margin-top: clamp(2rem, 4vh, 3rem);
  padding-top: 1.4rem; border-top: var(--rule);
  display: grid; gap: .9rem;
}
.singles__list { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: 0; padding: 0; list-style: none; }
.singles__list li {
  font-family: var(--f-display); font-weight: 500; font-variation-settings: "opsz" 12;
  font-size: 1.02rem; letter-spacing: .03em; color: #cfe0e8;
}
.singles__list li span { font-family: var(--f-mono); font-size: .62rem; color: var(--ice-dim); letter-spacing: .12em; margin-left: .35rem; }
.singles__list a {
  /* the hover reaches well past the word: a padded box pulled back by the same
     margin, so the line keeps its spacing (touch and phone sizes set their own) */
  display: inline-block; padding: .8rem .7rem; margin: -.8rem -.7rem;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em;
  text-decoration-color: transparent;
  transition: color .35s, text-decoration-color .35s;
}
.singles__list a:hover, .singles__list a:focus-visible { color: var(--ice); text-decoration-color: currentColor; }
.singles__list li + li::before { content: "·"; color: var(--ice-dim); margin-right: .9rem; }

/* --- shows ------------------------------------------------------------- */

.shows__row {
  display: grid; gap: .3rem 1.5rem;
  grid-template-columns: 7.5rem 1fr auto;
  align-items: center;
  padding: clamp(1rem, 2.2vh, 1.6rem) 0;
  border-bottom: var(--rule);
}
.shows__row:first-child { border-top: var(--rule); }
/* a show with tickets is one link, row-wide, and answers the pointer the way
   a record row does: the place lights up and steps in and "Tickets" gets its full rule */
a.shows__row .shows__city { transition: color .45s; }
/* the city and venue step in together: moving the city alone ran it into the venue */
a.shows__row .shows__where { transition: transform .55s var(--ease); }
a.shows__row:hover .shows__where,
a.shows__row:focus-visible .shows__where { transform: translateX(10px); }
a.shows__row .shows__date, a.shows__row .shows__venue { transition: color .4s; }
a.shows__row .shows__btn { transition: border-color .4s, color .4s; }
a.shows__row:hover .shows__city,
a.shows__row:focus-visible .shows__city { color: var(--ice); }
a.shows__row:hover .shows__venue,
a.shows__row:focus-visible .shows__venue { color: #c3d5de; }
a.shows__row:hover .shows__btn,
a.shows__row:focus-visible .shows__btn { border-color: var(--ice); color: var(--frost); }
.shows__date { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; color: var(--ice); }
.shows__where { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; }
.shows__city {
  font-family: var(--f-display); font-weight: 500; font-variation-settings: "opsz" 12;
  text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(1.05rem, .9rem + .6vw, 1.5rem);
}
.shows__venue { font-size: .86rem; color: var(--ash); }
.shows__cta { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; }
.shows__cta .shows__btn { color: var(--ice); border-bottom: 1px solid var(--hair); padding-bottom: .2rem; }
.shows__cta.is-out { color: var(--ash); }
/* placeholder rows: dashed, dimmed, nothing clickable, so nobody mistakes them for a tour */
.shows__note {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ice-dim); margin: 0 0 1.4rem;
}
.shows.is-tba .shows__row { border-bottom-style: dashed; opacity: .42; }
.shows.is-tba .shows__row:first-of-type { border-top: var(--rule); border-top-style: dashed; }
.shows.is-tba .shows__date, .shows.is-tba .shows__cta { color: var(--ash); }
@media (max-width: 640px) {
  .shows__row { grid-template-columns: 1fr auto; }
  .shows__date { grid-column: 1 / -1; }
}

/* --- band -------------------------------------------------------------- */

.band__photo { position: relative; margin-bottom: clamp(2.5rem, 6vh, 4rem); border: 1px solid var(--hair-soft); }
.band__photo img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; /* top: the heads sit high in band.webp */
  /* --reveal is set from scroll position, so this lands on a phone too */
  filter:
    grayscale(calc(1 - var(--reveal, 0) * .88))
    contrast(calc(1.12 - var(--reveal, 0) * .06))
    brightness(calc(.74 + var(--reveal, 0) * .24));
}
.band__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,6,10,.85), transparent 55%),
              linear-gradient(100deg, rgba(23,60,80,.32), transparent 60%);
  opacity: calc(1 - var(--reveal, 0) * .45);
}

.band__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .band__grid { grid-template-columns: 1.15fr 1fr; } }

.roster { list-style: none; margin: 0; padding: 0; }
.roster li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .85rem 0; border-bottom: var(--rule);
}
.roster li:first-child { border-top: var(--rule); }
.roster b {
  font-family: var(--f-display); font-weight: 500; font-variation-settings: "opsz" 12;
  text-transform: uppercase; letter-spacing: .08em; font-size: 1.08rem;
}
.roster span { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ash); text-align: right; }
@media (max-width: 560px) {
  /* the longer roles collide with the names at this width */
  .roster li { flex-direction: column; align-items: flex-start; gap: .3rem; }
  .roster span { text-align: left; }
}

/* --- contact / footer --------------------------------------------------- */

.social { display: flex; flex-wrap: wrap; gap: .6rem; }
.social a {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase;
  border: 1px solid var(--hair);
  padding: .95rem calc(1.5rem - .1em) .95rem calc(1.5rem + .1em);
  color: var(--ash);
  transition: border-color .35s, color .35s, background .35s;
}
.social a:hover { border-color: var(--ice); color: var(--frost); background: rgba(143,199,220,.06); }
.social a.is-key { border-color: var(--ice-dim); color: var(--frost); }

.foot {
  padding: 2.2rem var(--gut) 3rem;
  border-top: var(--rule);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  font-family: var(--f-mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: #5b6d78;
}

/* --- touch targets ------------------------------------------------------ */

@media (max-width: 700px) {
  /* not `#socials .rv` — that also matches .section__head, which centred the
     one section title on the site that is not centred, and 18px off true
     centre at that, because the heading's flex box starts after the 05 */
  #socials > .rv:not(.section__head) { justify-items: center; text-align: center; }
  .social { justify-content: center; }
  .records-cta { text-align: center; }
  .singles__list { justify-content: center; }
  .singles { justify-items: center; text-align: center; }
}

@media (hover: none) {
  .hero__foot a { padding: .8rem 0; }
  .singles__list a { display: inline-block; padding: .5rem 0; }
  .singles__list { gap: .1rem 1rem; }
  .nav__mark { padding: .6rem 0; }
  .nav__toggle { padding: .7rem .5rem; }
}

/* --- page transition ---------------------------------------------------- */

.veil {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: var(--void);
  opacity: 1;
  transition: opacity 1.35s var(--ease);
  /* failsafe: with JavaScript off, the veil still lifts on its own */
  animation: veil-failsafe 1.2s 3.5s forwards;
}
@keyframes veil-failsafe { to { opacity: 0; } }
body.is-loaded .veil { opacity: 0; animation: none; }
body.is-leaving .veil { opacity: 1; animation: none; transition-duration: .46s; }

/* --- reveal ------------------------------------------------------------ */

.rv { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .hero__long, .hero .eyebrow, .hero__foot { opacity: 1; }
}

/* --- thumbs, not cursors ------------------------------------------------ */
/* Everything tappable clears 44px on touch. Desktop keeps its tighter rhythm,
   which is why these sit behind (hover: none) rather than a width query. */
@media (hover: none) {
  .nav__toggle { padding: .8rem .5rem; margin-right: -.5rem; }
  /* These three carry an underline or sit in a tight row, so the target is
     grown with a transparent overlay rather than with padding — padding would
     drag the rule away from the word it belongs to. */
  .shows__cta .shows__btn, .sheet__close { position: relative; }
  /* the Tickets link is 19px of type once its padding was removed, so the
     overlay has to carry the whole 44 on its own */
  .shows__cta .shows__btn::after { content: ""; position: absolute; inset: -.85rem -.7rem; }
  .sheet__close::after { content: ""; position: absolute; inset: -.6rem -.6rem; }
  /* the singles wrap into rows, so this one grows by its own box and a wider
     row gap — an overlay here would reach into the line above it */
  .singles__list { gap: .9rem; }
  /* negative margins so the bigger box does not re-space the row, and a floor
     on the width because "i!i" is otherwise 17px of target */
  .singles__list a {
    display: inline-block; padding: .55rem .6rem; margin: 0 -.6rem;
    min-width: 2.5rem; text-align: center;
  }
}

/* --- the sleeve is a door ------------------------------------------------ */
/* A light travels the edge of the album art, so it reads as something to open
   rather than a picture. Carried over from the band's earlier site.

   Drawn as a real element inside the art rather than a pseudo-element around
   it: .feature__art is overflow:hidden so an outer ring is clipped, and an
   ::before pushed behind with a negative z-index turned out to hit-test but
   never paint. A conic gradient masked to a ring keeps it to the edge. */
@property --beam { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.feature__beam {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  padding: 2px;                     /* the thickness of the ring */
  background: conic-gradient(from var(--beam),
    transparent 0turn 0.62turn,
    rgba(150, 194, 226, .75) 0.74turn,
    #eaf4fc 0.80turn,
    rgba(150, 194, 226, .75) 0.86turn,
    transparent 0.98turn);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000, #000) content-box exclude, linear-gradient(#000, #000);
  animation: beam-spin 6s linear infinite;
}
.feature__art:hover .feature__beam,
.feature__art:focus-visible .feature__beam { animation-duration: 2.4s; }

@keyframes beam-spin { to { --beam: 1turn; } }

@media (prefers-reduced-motion: reduce) {
  /* a still edge rather than a travelling one — the affordance survives */
  .feature__beam {
    animation: none; background: rgba(150, 194, 226, .4);
  }
}

/* --- phone: the three blocks that read as accidents ---------------------- */
@media (max-width: 640px) {
  /* 1. The album's call sat flush left under centred text above it and a
     centred "Everything on Spotify" below — the odd one out on the page. */
  .feature__body { justify-items: center; text-align: center; }
  .feature__body .lede,
  .feature__body .display { text-align: center; }
  .feature__meta { justify-content: center; }
  /* .btn carries justify-self: start, which beats the parent's justify-items */
  .feature__body .btn { justify-self: center; }
  .feature__ctas { justify-content: center; }

  /* 2. The singles were a wrapped run separated by mid-dots: items of very
     different widths, one or two to a line, interpuncts starting lines. As
     rows with a rule they read the same way as the discography above them. */
  .singles__list { display: block; gap: 0; }
  .singles__list li {
    display: block; text-align: left;
    padding: .85rem 0; border-bottom: 1px solid var(--hair-soft);
  }
  .singles__list li + li::before { content: none; }
  .singles__list li span {
    display: block; margin: .3rem 0 0; letter-spacing: .16em;
  }
  /* the link, not the row, is the target — so it has to carry the height */
  .singles__list a { display: block; padding: .5rem 0; margin: 0; min-width: 0; text-align: left; }
  .singles__list li { padding: .35rem 0; }
  .singles { justify-items: stretch; text-align: left; }
  .singles .eyebrow { text-align: left; }

  /* 3. The socials were pills of six different widths wrapping two to a line.
     One cell size, one grid. */
  .social { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; }
  .social a {
    display: flex; align-items: center; justify-content: center;
    min-height: 48px; padding: .5rem .4rem; text-align: center;
  }
}

/* --- the mark does not need to be on screen three times ------------------ */
/* On the landing page the hero sets the band's name, and the sleeve behind it
   carries the mark. The nav mark only appears once you have scrolled past the
   hero — the Menu button and the links stay reachable throughout. */
body:not(.wall) .nav:not(.is-stuck) .nav__mark {
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}
body:not(.wall) .nav.is-stuck .nav__mark {
  opacity: .95;
  transition: opacity .5s var(--ease);
}

/* --- Bulgarian ----------------------------------------------------------- */
/* Bodoni Moda, Playfair and Barlow have no Cyrillic between them, so every
   Bulgarian title and lyric was falling through to whatever the device happened
   to have — the phone's UI font on iOS, something else on Android, and often
   two faces inside one string. EB Garamond covers both alphabets and already
   sets the wall's Bulgarian carvings, so it is the companion everywhere. */
[lang="bg"],
.singles__list a[lang="bg"],
.tracklist [lang="bg"],
.tracklist li > span[lang="bg"],
.sheet__title[lang="bg"],
.sheet__lyrics[lang="bg"] {
  font-family: "EB Garamond", "Bodoni Moda", Georgia, serif;
}
.sheet__lyrics[lang="bg"] { font-size: 1.02rem; line-height: 1.85; letter-spacing: .005em; }
