/* ============================================================
   Shane Dickens Music — one-page site
   Fixed hero + scrolling "veil" content panel
   ============================================================ */

/* Dosis — self-hosted from fonts/. Only Regular (400) and Medium (500) are
   available, so the styles below never ask for a heavier weight; that keeps
   the browser from faking bold. */
@font-face {
  font-family: "Dosis";
  src: url("../fonts/Dosis-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Dosis";
  src: url("../fonts/Dosis-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #ede4d1;            /* warm ivory accent — aged paper */
  --red-dark: #d6c9ab;
  --ink: #ede4d1;            /* primary type on the dark panel — creamy ivory */
  --ink-soft: rgba(237, 228, 209, 0.62);
  --paper: rgba(26, 25, 24, 0.94);      /* the veil — muted black, slightly translucent */
  --paper-alt: rgba(33, 31, 30, 0.96);
  --paper-solid: #1a1918;
  --line: rgba(237, 228, 209, 0.14);    /* hairline rules on the dark panel */
  --heading: "Dosis", sans-serif;
  --body: "Dosis", sans-serif;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: #111;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }

/* ===== Navigation ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.nav--solid {
  background: rgba(17, 15, 14, 0.92);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* The brand is one SVG whose path literally morphs between the piano
   strokes and the Dosis wordmark (driven by js/logo-morph.js). The box is
   sized for the full wordmark, so nothing reflows during the morph. */
.nav__morph {
  display: block;
  height: clamp(38px, 5.5vw, 48px);
  width: auto;
  overflow: visible;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
}

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav__links a {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 228, 209, 0.85);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.nav__links a:hover,
.nav__links a.active {
  color: #ede4d1;
  border-bottom-color: var(--red);
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ede4d1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(17, 15, 14, 0.97);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  .nav__links.open { max-height: 480px; }

  .nav__links a {
    width: 100%;
    text-align: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(237, 228, 209, 0.08);
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Fixed hero =====
   The hero is pinned to the viewport. The .veil panel below scrolls
   up and covers it — like a curtain being drawn over the image. */

.hero {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 37%;
  /* Warm grade — gentle, not Instagram */
  filter: sepia(0.06) saturate(1.05) contrast(1.02) brightness(0.99);
}

/* Narrow screens see only ~1/3 of the frame's width. Bias the crop so the
   bottom-left text lands on curtain while showing more of Shane, and lift
   the text block up so it clears his hands on the keys. */
@media (max-width: 720px) {
  .hero__img { object-position: 44% 30%; }
}

/* Quiet Film scrim — a soft vignette like a stage spot, a whisper at the
   top for the nav, and a deep centered seat at the bottom for the
   playbill text. Eased stops so nothing bands. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 130% 100% at 50% 38%,
      rgba(12, 9, 7, 0) 52%,
      rgba(12, 9, 7, 0.18) 78%,
      rgba(12, 9, 7, 0.42) 100%),
    linear-gradient(to bottom,
      rgba(12, 9, 7, 0.42) 0%,
      rgba(12, 9, 7, 0.10) 16%,
      rgba(12, 9, 7, 0.00) 30%),
    linear-gradient(to top,
      rgba(12, 9, 7, 0.85) 0%,
      rgba(12, 9, 7, 0.58) 16%,
      rgba(12, 9, 7, 0.30) 32%,
      rgba(12, 9, 7, 0.00) 50%);
  pointer-events: none;
}

/* WebGL canvas — photos rendered through the OGL/GLSL film shader.
   Each <img> stays in the DOM underneath as the no-WebGL fallback. */
.shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.shader-on img { visibility: hidden; }

/* One whisper of static grain: no animation, no crawl, soft-light so it
   never muddies the midtones. Texture, not noise. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-6px, 4px); }
  50%  { transform: translate(4px, -6px); }
  75%  { transform: translate(-4px, -4px); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bio__photo::before { animation: none; }
  .hero__text h1, .hero__sub, .hero__cta { animation: none; }
}

/* Playbill composition, bottom-left */
.hero__text {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 6vw, 5rem);
  bottom: clamp(2.4rem, 7vh, 4.5rem);
  max-width: min(92vw, 760px);
  text-align: left;
  color: #ede4d1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

/* Phones: lift the block up so the title clears Shane's hands on the keys.
   (Placed after the base rule so it wins — media queries add no specificity.) */
@media (max-width: 720px) {
  .hero__text { bottom: clamp(8rem, 23vh, 13rem); }
}

.hero__text h1 {
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.8vw, 5.4rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.04;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  animation: heroRise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}

.hero__sub {
  margin-top: 0.8rem;
  font-family: var(--heading);
  font-size: clamp(0.72rem, 1.15vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(237, 228, 209, 0.72);
  animation: heroRise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

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

.hero__cta {
  display: inline-block;
  margin-top: clamp(1.5rem, 3.4vh, 2.3rem);
  animation: heroRise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both;
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ede4d1;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border: 1.5px solid rgba(237, 228, 209, 0.7);
  border-radius: 999px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hero__cta:hover {
  background: #ede4d1;
  border-color: #ede4d1;
  color: #161514;
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  right: clamp(1.25rem, 5vw, 3rem);
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(237, 228, 209, 0.75);
  font-family: var(--heading);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(237, 228, 209, 0.6);
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* Full-viewport spacer so the page starts with the hero fully visible */
.hero-spacer {
  height: 100vh;
  height: 100svh;
}

/* ===== The veil ===== */

.veil {
  position: relative;
  z-index: 1;
  background: var(--paper);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

/* ===== Sections ===== */

.section {
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.25rem, 6vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.section--alt {
  max-width: none;
  background: var(--paper-alt);
}

.section--alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
  position: relative;
  padding-bottom: 0.75rem;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: var(--red);
  border-radius: 3px;
}

/* ===== Services ===== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.service {
  position: relative;               /* anchors the whole-card click overlay */
  display: flex;
  flex-direction: column;           /* lets the CTA pin to the bottom */
  background: rgba(237, 228, 209, 0.045);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  transition: background-color 0.25s ease, border-top-color 0.25s ease;
}

/* Feedforward: the card warms and its accent brightens, previewing that
   the whole tile is a link to the contact form. */
.service:hover,
.service:focus-within,
.service:active,
.service--lit { background: rgba(237, 228, 209, 0.075); border-top-color: #ede4d1; }

.service__name {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.service p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.service p.service__detail {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: italic;
}

/* Consistent primary-action signifier, reusing the site's accent language.
   margin-top:auto pins it to the bottom so CTAs align across cards. */
.service__cta {
  margin-top: auto;
  padding-top: 1.1rem;
  align-self: flex-start;
  font-family: var(--heading);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease;
}

.service__arrow { display: inline-block; transition: transform 0.2s ease; }

.service:hover .service__cta,
.service:focus-within .service__cta,
.service:active .service__cta,
.service--lit .service__cta { color: #ede4d1; }
.service:hover .service__arrow,
.service:focus-within .service__arrow,
.service:active .service__arrow,
.service--lit .service__arrow { transform: translateX(4px); }

/* The link's ::after covers the whole card, so the entire tile is the
   target (Fitts's law) while the accessible name stays concise. */
.service__cta::after { content: ""; position: absolute; inset: 0; }

.service__cta:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .service, .service__cta, .service__arrow { transition-duration: 1ms; }
  .service:hover .service__arrow { transform: none; }
}

/* ===== Bio ===== */

.bio {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.bio__lead {
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.bio__text p:not(.bio__lead) {
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.bio__photo {
  position: relative; /* anchors the film-shader canvas */
  overflow: hidden;   /* clips the grain tile's bleed/jitter (see ::before) */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18); /* survives overflow:hidden — it's the element's own shadow */
}

.bio__photo img {
  display: block;
  width: 100%;
  height: auto; /* keep the width/height attributes' reserved aspect, not a fixed pixel height */
}

/* Vintage film grain — the exact tile, opacity, blend, and jitter the
   hero wears (.hero::before). Replaced by the GLSL grain when WebGL is
   available, so it's hidden once the shader mounts. */
.bio__photo::before {
  content: "";
  position: absolute;
  inset: -12px;               /* bleed so the jitter never shows an edge */
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grainShift 0.9s steps(4) infinite;
}

/* The shader generates its own grain — turn off the CSS fallback grain */
.bio__photo.shader-on::before { display: none; }

/* Exact same scrim gradient the hero wears (.hero::after) — deepens
   toward the top and bottom so both photos read equally moody. Sits
   above the shader canvas, below nothing interactive. */
.bio__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(12, 8, 8, 0.55) 0%,
      rgba(12, 8, 8, 0.18) 28%,
      rgba(12, 8, 8, 0.22) 55%,
      rgba(12, 8, 8, 0.6) 100%
    );
  pointer-events: none;
}

@media (max-width: 820px) {
  .bio { grid-template-columns: 1fr; }
  .bio__photo { max-width: 420px; }
}

/* ===== Gallery ===== */

.gallery-wrap {
  position: relative;
}

.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem; /* room for the scrollbar */
}

.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-track { background: rgba(237, 228, 209, 0.07); }
.gallery::-webkit-scrollbar-thumb { background: rgba(237, 228, 209, 0.28); }

.gallery__item {
  position: relative;               /* anchors the zoom signifier */
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
  /* Fixed height, width follows each photo's own aspect ratio — so
     portrait and landscape shots both show uncropped, just at
     different widths. */
  height: clamp(300px, 52vh, 480px);
  max-width: 88vw;
  overflow: hidden;
  scroll-snap-align: start;
}

/* On narrow screens the desktop row height would push landscape shots
   past the width cap, letterboxing them at different visible heights.
   Keep the same design — one shared row height, aspect-driven widths —
   but size the row so even a 3:2 landscape fits the viewport uncropped. */
@media (max-width: 720px) {
  .gallery__item { height: clamp(180px, 56vw, 300px); }
  /* The rare ultra-wide shot still hits the width cap; a gentle
     center-crop keeps it at the shared row height. For every other
     tile the box already matches the photo's aspect, so cover ≡ contain. */
  .gallery .gallery__item img { object-fit: cover; }
}

/* ===== The tiles wear the hero/bio film treatment =====
   Vintage grain + a gentle vignette, overlay-blended onto each photo —
   the same warm, filmic world the hero and .bio__photo live in. Both
   ride in one layer (element opacity stays 1 so the vignette reads; the
   grain's own faintness is baked into the SVG's rect opacity). Static —
   no crawl (matches the shader's still grain) and no interactive light
   (that's the hero/bio shader's job only), so it's cheap across all 12
   tiles with zero WebGL contexts. Sits above the <img> (z-index 1). */
.gallery__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 82% 82% at 50% 46%,
      rgba(12, 8, 8, 0) 55%, rgba(12, 8, 8, 0.4) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.2'/%3E%3C/svg%3E");
  background-size: 100% 100%, 180px 180px;
  background-repeat: no-repeat, repeat;
  mix-blend-mode: overlay;
}

.gallery__item:focus { outline: none; }
.gallery__item:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(17, 15, 14, 0.65);
  color: #ede4d1;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.gallery-arrow:hover { background: rgba(17, 15, 14, 0.85); }
.gallery-arrow--prev { left: -8px; }
.gallery-arrow--next { right: -8px; }

@media (hover: none) {
  .gallery-arrow { display: none; } /* touch devices just swipe */
}

.gallery__item img {
  width: auto;
  height: 100%;
  object-fit: contain;
  /* Sepia whisper — the same 8% the hero/bio shader applies, so the tiles
     sit in the same warm film palette. */
  filter: sepia(0.08) saturate(1.02);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
  /* Keep the sepia whisper on hover; deliberately NO brightness bump —
     the "light on hover" is left to the hero/bio shader only. */
  filter: sepia(0.08) saturate(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .gallery__item img { transition-duration: 1ms; }
  .gallery__item:hover img,
  .gallery__item:focus-visible img { transform: none; }
}

/* ===== Lightbox ===== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 8, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: min(90vw, 1400px);
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(237, 228, 209, 0.8);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { color: #ede4d1; }

.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 3.5rem; }
.lightbox__next  { right: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 3.5rem; }

/* ===== Shows ===== */

.shows { list-style: none; }

.show {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.show:first-child { border-top: 1px solid var(--line); }

.show__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 76px;
  font-family: var(--heading);
  line-height: 1.1;
}

.show__month {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}

.show__day {
  font-size: 2rem;
  font-weight: 500;
}

.show__year {
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

.show__info { flex: 1; }

.show__venue {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.show__meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* The set time is its own line so it doesn't read as a trailing part of
   the street address. Small caps + letter-spacing mark it as a distinct
   time-of-day detail. */
.show__time {
  margin-top: 0.35rem;
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.show__tickets {
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  border: 1.5px solid var(--red);
  padding: 0.6rem 1.4rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.show__tickets:hover {
  background: var(--red);
  color: #161514;
}

@media (max-width: 560px) {
  .show { flex-wrap: wrap; }
  .show__tickets { margin-left: calc(76px + 1rem); }
}

/* ===== Venues ===== */

.venues__intro {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  max-width: 560px;
}

/* Fixed-height, vertically scrollable box holding the full venue list.
   The grid flows left-to-right, top-to-bottom, so vertical scroll works
   cleanly (unlike CSS multi-columns, which would overflow sideways). */
.venues-scroll {
  max-height: clamp(340px, 48vh, 460px);
  overflow-y: auto;
  padding-right: 0.75rem;
  -webkit-overflow-scrolling: touch;
  /* fade the top and bottom edges so cut-off rows hint at more content */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

/* Focusable so keyboard users can scroll the region with arrow keys. */
.venues-scroll:focus { outline: none; }
.venues-scroll:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.venues-scroll::-webkit-scrollbar { width: 6px; }
.venues-scroll::-webkit-scrollbar-track { background: rgba(237, 228, 209, 0.06); }
.venues-scroll::-webkit-scrollbar-thumb { background: rgba(237, 228, 209, 0.25); border-radius: 3px; }

.venues {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  column-gap: clamp(1.5rem, 4vw, 3rem);
  padding: 12px 0;
}

.venues li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(237, 228, 209, 0.09);
  font-size: 0.98rem;
}

.venue--more {
  grid-column: 1 / -1;      /* own full-width row so it always lands last */
  text-align: right;        /* pin it to the bottom of the right column */
  color: var(--ink-soft);
  font-style: italic;
  border-bottom-color: transparent !important;
}

/* ===== Videos ===== */

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.video-block { margin: 0; }

.video__caption {
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  transition: color 0.3s ease;
}

/* Visually-hidden, but read by assistive tech (loading status live region). */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* --- Thumbnail button: the entire 16:9 poster is one large target --- */
.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(237, 228, 209, 0.06);
  color: inherit;
  font: inherit;
  overflow: hidden;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

/* Poster: dimmed + sepia at rest so YouTube stills join the warm palette;
   lifts toward true colour on hover/focus (feedforward). */
.video-thumb__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(0.35) saturate(0.9) brightness(0.8) contrast(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}

/* Vignette scrim keeps the ivory badge legible over a bright still. */
.video-thumb__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%,
      rgba(10, 8, 8, 0.46) 0,
      rgba(10, 8, 8, 0.12) 40%,
      rgba(10, 8, 8, 0.30) 100%);
  transition: opacity 0.4s ease;
}

/* Static film grain, echoing the hero (no animation -> reduced-motion safe). */
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.10;
  mix-blend-mode: overlay;
}

/* Play badge = the SIGNIFIER. Translucent dark disc + ivory ring keeps the
   ivory glyph legible on ANY poster; always visible at rest (no hover needed). */
.video-thumb__badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(10, 8, 8, 0.42);
  border: 1.5px solid rgba(237, 228, 209, 0.7);   /* same ring as .hero__cta */
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
              background-color 0.3s ease, border-color 0.3s ease,
              box-shadow 0.35s ease;
}

.video-thumb__glyph {
  width: 42%;
  height: 42%;
  margin-left: 6%;                 /* optical centring of the triangle */
  fill: #ede4d1;
  transition: fill 0.3s ease;
}

/* "PLAY" feedforward label: hidden at rest, fades in on hover/focus. */
.video-thumb__hint {
  position: absolute;
  top: calc(50% + 44px);
  left: 50%;
  z-index: 2;
  transform: translate(-50%, 4px);
  font-family: var(--heading);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ede4d1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 600px) {
  .video-thumb__badge { width: 68px; height: 68px; }
  .video-thumb__hint  { top: calc(50% + 50px); font-size: 0.66rem; }
}

/* HOVER / FOCUS: the feedforward ("this will play") */
.video-thumb:hover  .video-thumb__poster,
.video-thumb:focus-visible .video-thumb__poster {
  transform: scale(1.05);
  filter: sepia(0.12) saturate(1) brightness(1.03) contrast(1.02);
}

.video-thumb:hover  .video-thumb__scrim,
.video-thumb:focus-visible .video-thumb__scrim { opacity: 0.7; }

/* Badge grows and inverts ivory<->dark — the same invert as .hero__cta. */
.video-thumb:hover  .video-thumb__badge,
.video-thumb:focus-visible .video-thumb__badge {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(237, 228, 209, 0.92);
  border-color: #ede4d1;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(237, 228, 209, 0.08);
}

.video-thumb:hover  .video-thumb__glyph,
.video-thumb:focus-visible .video-thumb__glyph { fill: #161514; }

.video-thumb:hover  .video-thumb__hint,
.video-thumb:focus-visible .video-thumb__hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Press feedback — matters most on touch, where there is no hover. */
.video-thumb:active .video-thumb__badge {
  transform: translate(-50%, -50%) scale(0.96);
}

/* Keyboard focus ring (the page had no focus style before). */
.video-thumb:focus { outline: none; }
.video-thumb:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Caption brightens with its tile — reads as one interactive unit. */
.video-block:hover .video__caption,
.video-block:focus-within .video__caption { color: var(--ink); }

/* Touch devices: keep the signifier fully lit at rest, badge >=44px. */
@media (hover: none) {
  .video-thumb__badge { width: 64px; height: 64px; }
  .video-thumb__poster {
    filter: sepia(0.28) saturate(0.95) brightness(0.86) contrast(1.02);
  }
}

/* ===== Video modal — extends the gallery .lightbox ===== */

.video-lightbox {
  opacity: 0;
  transition: opacity 0.28s ease;
}
.video-lightbox.is-open { opacity: 1; }

.lightbox__close:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Stage: 16:9, warm near-black (never pure black) so the frame is never a void. */
.video-lightbox__stage {
  position: relative;
  width: min(92vw, 1200px);
  aspect-ratio: 16 / 9;
  max-height: 86vh;
  background: #141312;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.video-lightbox.is-open .video-lightbox__stage { transform: scale(1); }

/* Poster continuity: the clip's own still shows instantly (handed off from the
   tile), crossfading out as the player fades in on the iframe's load event. */
.video-lightbox__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.video-lightbox iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.video-lightbox.is-ready iframe { opacity: 1; }
.video-lightbox.is-ready .video-lightbox__poster { opacity: 0; }

/* Loading state: ivory ring spinner + uppercase Dosis "LOADING". */
.video-lightbox__loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: rgba(10, 8, 8, 0.35);
  transition: opacity 0.26s ease;
}
.video-lightbox.is-ready .video-lightbox__loader {
  opacity: 0;
  pointer-events: none;
}

.video-lightbox__spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(237, 228, 209, 0.22);
  border-top-color: #ede4d1;
  animation: video-spin 0.8s linear infinite;
}
.video-lightbox__loading {
  font-family: var(--heading);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@keyframes video-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .video-thumb__poster,
  .video-thumb__badge,
  .video-thumb__hint,
  .video-thumb__scrim,
  .video__caption { transition-duration: 1ms; }

  .video-thumb:hover  .video-thumb__poster,
  .video-thumb:focus-visible .video-thumb__poster { transform: none; }

  .video-thumb:hover  .video-thumb__badge,
  .video-thumb:focus-visible .video-thumb__badge,
  .video-thumb:active .video-thumb__badge { transform: translate(-50%, -50%); }

  .video-lightbox,
  .video-lightbox__stage,
  .video-lightbox__poster,
  .video-lightbox iframe,
  .video-lightbox__loader { transition-duration: 1ms; }

  .video-lightbox__stage { transform: none; }
  .video-lightbox.is-open .video-lightbox__stage { transform: none; }
  .video-lightbox__spinner { animation: none; }   /* static "LOADING" carries status */
}

/* ===== Contact ===== */

.contact__intro {
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 560px;
}

.contact-form {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: rgba(237, 228, 209, 0.05);
  border: 1px solid rgba(237, 228, 209, 0.18);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(123, 164, 221, 0.18);
}

.contact-form__submit {
  align-self: flex-start;
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #161514;
  background: var(--red);
  border: none;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form__submit:hover { background: var(--red-dark); }

/* ===== Footer ===== */

.footer {
  background: #131211;
  border-top: 1px solid var(--line);
  color: rgba(237, 228, 209, 0.55);
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.contact-form__status {
  font-family: var(--heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  border-left: 3px solid var(--red);
  padding: 0.6rem 1rem;
  background: rgba(237, 228, 209, 0.05);
}

.contact-form__status--error { border-left-color: var(--red-dark); }
