/* ============================================================
   ROOFBOY — roofboy.com
   Palette: near-black grain + ROOF-helmet yellow (from the reel's
   Marvel-style 3D wordmark and the yellow ROOF helmet itself).
   Type: Anton for the 3D block wordmark, Bungee for section titles,
         Archivo for everything that has to be read.
   ============================================================ */

:root {
  /* thickness of the accent frame drawn on hover / focus / active states */
  --ring: 10px;
  --ink: #0c0c0e;
  --ink-2: #131316;
  --panel: #1a1a1f;
  --line: #2a2a31;
  --bone: #f2efe9;
  --muted: #8f8d95;
  --accent: #ffc71f;      /* ROOF helmet yellow */
  --accent-deep: #b8890a;
  --extrude: #17130a;     /* dark bevel behind 3D letters */
  /* Tomorrow: chamfered-corner block letters, echoing the reel's 3D wordmark */
  --display: "Tomorrow", "Archivo", sans-serif;
  --block: "Tomorrow", "Archivo", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

/* Tomorrow needs an explicit heavy weight */
.topbar__name, .btn, .ticker__track span, .section__index, .section__title,
.card__title, .release-player__bar, .mix__num, .bio__punch, .kontakt__value,
.stickyplayer__label {
  font-weight: 800;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
img[hidden] { display: none; }

a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1001;
  background: var(--accent); color: var(--ink); padding: .5rem 1rem;
}
.skip-link:focus { left: 0; }

/* ============ TOP BAR ============ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 1.2rem;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar__brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
}
.topbar__logo { height: 34px; width: auto; }
.topbar__name {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: .02em;
}
.topbar__name em { font-style: normal; color: var(--accent); }

/* small gap: the links now carry their own horizontal padding (see below),
   which supplies most of the visual spacing between them */
.topbar__nav { display: flex; align-items: center; gap: .1rem; }
.topbar__nav a {
  text-decoration: none;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone);
  /* every state carries the same padding and border box, so marking a link
     current only repaints it — it never resizes and reflows the whole nav */
  padding: .45rem .65rem;
  border-bottom: 2px solid transparent;
}
.topbar__nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* current-section marker: the yellow box (former Kontakt CTA style) */
.topbar__nav a.is-current {
  background: var(--accent);
  color: var(--ink);
}
.topbar__nav a.is-current:hover { color: var(--ink); background: var(--bone); }

.topbar__burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: .4rem;
}
.topbar__burger span { display: block; width: 26px; height: 3px; background: var(--bone); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: .95rem;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border: 2px solid var(--accent);
  letter-spacing: .02em;
}
.btn--solid { background: var(--accent); color: var(--ink); }
.btn--solid:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.btn--ghost { color: var(--bone); }
.btn--ghost:hover { background: var(--accent); color: var(--ink); }

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

.hero {
  min-height: calc(100vh - 60px); /* leave room for the sticky player */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255, 199, 31, .12), transparent 70%),
    var(--ink);
}

/* fullscreen reel behind the hero — muted loop, decorative only */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__video iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  /* always cover the viewport at 16:9 */
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  border: 0;
}
.hero__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(12, 12, 14, .55), rgba(12, 12, 14, .25) 45%, rgba(12, 12, 14, .9));
}
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem 3rem;
}

.hero__logo {
  width: min(160px, 34vw);
  filter: drop-shadow(0 0 40px rgba(255, 199, 31, .35)) drop-shadow(0 4px 24px rgba(0, 0, 0, .8));
}

/* Marvel-style 3D block wordmark — yellow face, dark extrude */
.hero__title {
  margin-top: .8rem;
  font-family: var(--block);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3.4rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: .01em;
  /* same two-tone split as the topbar logo: ROOF in bone, BOY in yellow */
  color: var(--bone);
  -webkit-text-stroke: 2px var(--extrude);
  text-shadow:
    2px 2px 0 var(--extrude),
    4px 4px 0 var(--extrude),
    6px 6px 0 var(--extrude),
    8px 8px 0 var(--extrude),
    10px 10px 0 var(--extrude),
    16px 22px 34px rgba(0, 0, 0, .65);
  user-select: none;
}
.hero__title em { font-style: inherit; color: var(--accent); }

.hero__tag {
  margin-top: 1rem;
  font-weight: 800;
  letter-spacing: .3em;
  font-size: clamp(.65rem, 1.8vw, .95rem);
  color: var(--muted);
  text-transform: uppercase;
}

.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ TICKER ============ */
.ticker {
  overflow: hidden;
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-1.2deg) scale(1.02);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.ticker--footer { transform: rotate(0); background: var(--panel); color: var(--muted); border-color: var(--line); }

.ticker__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
}
.ticker__track span {
  font-family: var(--display);
  font-size: 1.15rem;
  padding: .45rem 0;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 28s linear infinite; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}

/* ============ SECTIONS ============ */
.section {
  padding: 5.5rem 1.2rem;
  max-width: 1180px;
  margin: 0 auto;
}

.section--alt {
  max-width: none;
  background:
    linear-gradient(rgba(255, 199, 31, .045), rgba(255, 199, 31, .045)),
    var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.section--panel {
  max-width: none;
  background: var(--ink-2);
}
.section--panel > * { max-width: 1180px; margin-left: auto; margin-right: auto; }

.section__head { margin-bottom: 2.6rem; position: relative; }

.section__index {
  font-family: var(--display);
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--line);
  position: absolute;
  right: 0;
  top: -1.2rem;
  user-select: none;
}
.section--alt .section__index { -webkit-text-stroke-color: rgba(242, 239, 233, .18); }

.section__title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.section__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 6px;
  background: var(--accent);
  margin-top: .7rem;
}

.section__sub {
  margin-top: 1rem;
  color: var(--muted);
  font-style: italic;
  max-width: 100%;
  /* even line lengths instead of a single orphan word on the last line */
  text-wrap: balance;
}

.section__more { margin-top: 2.4rem; text-align: center; }

/* ============ HERO SOUND TOGGLE ============ */
.hero__sound {
  position: absolute;
  z-index: 2;
  right: 1.2rem;
  bottom: 4.5rem;
  font-family: var(--body);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(12, 12, 14, .55);
  border: 1px solid rgba(242, 239, 233, .4);
  padding: .55rem .9rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.hero__sound:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .hero__sound { display: none; }
}

/* ============ STICKY PLAYER ============ */
body { padding-bottom: 60px; }

.stickyplayer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: flex;
  align-items: stretch;
  background: var(--ink);
  border-top: 2px solid var(--accent);
}
.stickyplayer__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 1rem;
  font-family: var(--display);
  font-size: .75rem;
  color: var(--bone);
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stickyplayer__label::before {
  content: "▶";
  color: var(--accent);
}
.stickyplayer__frame { flex: 1; }
.stickyplayer__frame iframe {
  width: 100%;
  height: 60px;
  border: 0;
  display: block;
}
@media (max-width: 600px) {
  .stickyplayer__label { display: none; }
}

/* ============ DATES ============ */
.dates { display: grid; }

.date-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem .2rem;
  border-bottom: 1px solid var(--line);
}
.date-row:first-child { border-top: 1px solid var(--line); }

.date-row__when {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent);
  text-transform: uppercase;
  line-height: 1.1;
}
.date-row__when em {
  display: block;
  font-style: normal;
  font-size: .7rem;
  color: var(--muted);
}

.date-row__where strong {
  display: block;
  font-weight: 900;
  font-size: clamp(.95rem, 2.4vw, 1.2rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.date-row__where span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.date-row__status {
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: .35rem .7rem;
  white-space: nowrap;
}
.date-row__status--off {
  color: var(--muted);
  border-color: var(--line);
  text-decoration: line-through;
}

@media (max-width: 600px) {
  .date-row { grid-template-columns: 92px 1fr; }
  .date-row__status { display: none; }
}

/* ============ FILTERS ============ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.filter {
  font-family: var(--body);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone);
  background: none;
  border: 1px solid rgba(242, 239, 233, .35);
  padding: .5rem 1rem;
  cursor: pointer;
}
.filter:hover { border-color: var(--bone); }
.filter.is-active { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* ============ GRIDS / CARDS ============ */
.grid { display: grid; gap: 1rem; }
.grid--venues { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* venues, minimix, releases and the origin wall get more room than the 1180px base grid */
#minimix, #dates, #kontakt { max-width: none; }
#minimix > *,
#dates > *,
#kontakt > *,
#venues > *,
#releases > * {
  max-width: min(1560px, 96vw);
  margin-left: auto;
  margin-right: auto;
}

/* origin wall: edge to edge, the strip bleeds off both sides */
#biography > .origin-wall {
  max-width: none;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0 1.2rem;
}
/* origin wall: looping horizontal strip of category cards */
.catstrip {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;          /* the arrows below are the control */
  /* vertical padding leaves room for the hover lift + outline, which the
     horizontal clipping would otherwise cut off */
  margin: -16px -1.2rem -26px;    /* bleed to the section edges */
  padding: 16px 1.2rem 26px;
}
.catstrip::-webkit-scrollbar { display: none; }
.catstrip__track {
  display: flex;
  gap: 1rem;
  width: max-content;
}
.catstrip .card { width: 330px; flex: 0 0 auto; }
.catstrip .card img { aspect-ratio: auto; }

.catstrip__nav {
  display: flex;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.6rem;
}
.catstrip__nav button {
  width: 54px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--bone);
  background: none;
  border: 1px solid rgba(242, 239, 233, .35);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.catstrip__nav button:hover,
.catstrip__nav button:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

/* fire / extinguisher mark next to each section title */
.section__emo {
  display: inline-block;
  font-size: .82em;
  /* emoji glyphs sit low in their em box, so the flame hung below the caps
     baseline — lift it back onto the cap band */
  vertical-align: .13em;
  margin-left: .1em;
  /* emoji fonts ignore the display face; keep them off the text stroke too */
  -webkit-text-stroke: 0;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5));
}

/* ---------------- BOOKING FORM ---------------- */

/* honeypot: off-screen rather than display:none, which some bots skip */
.booking__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.booking__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.booking__send[disabled] { opacity: .55; cursor: progress; }
.booking__status {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.booking__status.is-ok  { color: var(--accent); }
.booking__status.is-err { color: #ff6b52; }

/* ---------------- BLUR-UP IMAGE LOADING ---------------- */

/* Every photo starts as its own 16px placeholder, blown up and blurred, then
   the sharp file cross-fades in on top. `.lqip` is set by JS on the wrapper
   with the placeholder as its background; images without a generated
   placeholder still fade in from a soft blur so the behaviour is uniform. */
.lqip {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* the blur lives on a pseudo-element so scaling it can't bleed past the edges */
.lqip::before {
  content: "";
  position: absolute;
  inset: -6%;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(14px);
  transform: scale(1.04);
  transition: opacity .45s ease-out;
}
.lqip.is-loaded::before { opacity: 0; }

/* the sheet loads ~20 tiles at once, so keep its blur lighter and quicker */
.lightbox__cell img.blurup { filter: blur(7px); transition-duration: .3s; }

img.blurup {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.02);
  transition: opacity .5s ease-out, filter .55s ease-out, transform .55s ease-out;
}
img.blurup.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: none;
}
/* a failed image shouldn't stay invisible behind a permanent blur */
img.blurup.is-error { opacity: 1; filter: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .lqip::before, img.blurup { transition: none; }
  img.blurup { opacity: 1; filter: none; transform: none; }
}

/* ---------------- EXTINGUISHER (footer easter egg) ---------------- */

.exting {
  background: none;
  border: 0;
  padding: 0;
  margin-right: .6rem;
  width: 22px;
  vertical-align: -.75rem;
  cursor: pointer;
  transform-origin: 60% 90%;
  transition: transform .25s ease-out;
}
.exting svg { width: 100%; display: block; }
.exting__body  { fill: #d1361f; }
.exting__label { fill: var(--bone); }
.exting__dark  { fill: #14140f; }
.exting__hose  { stroke: #14140f; }
.exting:hover, .exting:focus-visible { transform: rotate(-18deg) scale(1.15); }
.exting.is-firing { transform: rotate(-38deg) scale(1.15); }

/* the CO2 blast it lets off */
.co2 {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(60% 70% at 12% 100%, rgba(255,255,255,.92), rgba(255,255,255,0) 60%),
    radial-gradient(45% 55% at 38% 100%, rgba(226,240,255,.8), rgba(255,255,255,0) 62%),
    radial-gradient(70% 60% at 70% 100%, rgba(255,255,255,.7), rgba(255,255,255,0) 65%);
}
.co2.is-on { animation: co2blast 1.5s ease-out forwards; }
@keyframes co2blast {
  0%   { opacity: 0;   transform: translateY(30%) scale(.7); }
  18%  { opacity: 1;   transform: translateY(0)   scale(1); }
  100% { opacity: 0;   transform: translateY(-22%) scale(1.5); }
}
@media (prefers-reduced-motion: reduce) {
  .exting, .co2.is-on { transition: none; animation: none; }
}
.grid--releases { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1200px) { .grid--releases { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .grid--releases { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .grid--releases { grid-template-columns: repeat(2, 1fr); } }

.card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--bone); /* buttons don't inherit text color */
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform .22s ease-out, box-shadow .22s ease-out, outline-color .15s;
  outline: var(--ring) solid transparent;
  outline-offset: 0;
}
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease-out;
}
/* Hover frame borrows the display face's look: a fat accent slab plus the same
   hard, unblurred extrude as the hero title — no soft glow. Drawn as shadows
   so the box never resizes. */
.card:hover, .card:focus-visible {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 var(--ring) var(--accent),
    calc(var(--ring) + 4px) calc(var(--ring) + 4px) 0 var(--extrude),
    0 18px 38px rgba(0, 0, 0, .5);
  border-color: var(--accent);
  z-index: 2;
}
.card:focus-visible {
  outline-color: var(--accent);
  border-color: var(--line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
}
.card:hover img, .card:focus-visible img { transform: scale(1.08); }

.card__meta {
  position: relative;
  z-index: 1;
  padding: .8rem .9rem;
  background: var(--panel);
  border-top: 2px solid var(--accent);
}
.card__title {
  font-family: var(--display);
  font-size: .92rem;
  line-height: 1.2;
}
.card__sub {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .15rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* releases: square covers */
.card--release img { aspect-ratio: 1 / 1; }
.card--release:hover img { transform: scale(1.03); }
.card--release.is-dead { cursor: default; }
.card--release.is-dead:hover { transform: none; outline-color: transparent; box-shadow: none; border-color: var(--line); }
.card--release.is-dead img { filter: grayscale(1) brightness(.6); }
.card__badge {
  position: absolute;
  z-index: 2;
  top: .6rem; left: -.4rem;
  background: var(--bone);
  color: var(--ink);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  transform: rotate(-4deg);
}
.card--release.is-playing { box-shadow: 0 0 0 var(--ring) var(--accent); }

/* ============ RELEASE PLAYER ============ */
.release-player {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--panel);
}
.release-player__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  font-family: var(--display);
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
}
.release-player__bar button {
  background: none; border: 0; color: var(--bone);
  font-size: 1rem; cursor: pointer; padding: .2rem .5rem;
}
.release-player__bar button:hover { color: var(--accent); }
.release-player__frame iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ============ MIXES ============ */
.mixes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .8rem;
}
@media (max-width: 1200px) { .mixes { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 820px)  { .mixes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .mixes { grid-template-columns: repeat(2, 1fr); } }
.mix {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0;
  width: 100%;
  text-align: left;
  color: var(--bone);
  font-family: var(--body);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, transform .22s ease-out, box-shadow .22s ease-out;
}
.mix:hover, .mix:focus-visible {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 var(--ring) var(--accent),
    calc(var(--ring) + 4px) calc(var(--ring) + 4px) 0 var(--extrude),
    0 18px 38px rgba(0, 0, 0, .5);
}
/* one accent frame, not a border and an outline stacked */
.mix.is-playing { border-color: var(--accent); box-shadow: 0 0 0 var(--ring) var(--accent); }
.mix__num {
  font-family: var(--display);
  color: var(--muted);
  font-size: .85rem;
}
.mix:hover .mix__num { color: var(--accent); }
.mix__title {
  font-weight: 900;
  font-size: .82rem;
  line-height: 1.22;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.mix__hint {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.mix:hover .mix__hint { color: var(--bone); }
.mix--open { border-color: var(--accent); }
.mix__art {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform .3s ease-out;
}
.mix:hover .mix__art, .mix:focus-visible .mix__art { transform: scale(1.05); }

.mix__play {
  position: absolute;
  top: calc(50% - 1.6rem);
  left: 50%;
  transform: translate(-50%, -50%) scale(.9);
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.3rem;
  padding-left: 4px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
}
.mix:hover .mix__play,
.mix:focus-visible .mix__play,
.mix.is-playing .mix__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.mix__meta {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: .1rem .45rem;
  padding: .55rem .6rem;
  background: var(--panel);
  border-top: 2px solid var(--accent);
}
.mix__meta .mix__len { grid-column: 2; margin-left: 0; }
.mix__len {
  font-style: normal;
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--muted);
  margin-left: .4rem;
}

/* ============ ORIGIN WALL (gallery inside the bio) ============ */
.origin-wall { margin: 3rem auto; }
.origin-wall__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--accent);
}
.origin-wall__sub {
  color: var(--muted);
  font-style: italic;
  font-size: .9rem;
  margin: .3rem 0 1.4rem;
}

/* ============ BIO — comic episodes ============ */
.bio__hook {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
  margin: 0 auto 3rem;
  max-width: 700px;
}

.episodes {
  display: grid;
  gap: 2.6rem;
  max-width: 860px;
  margin: 0 auto;
}

.episode {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.8rem;
  align-items: center;
}
.episode--flip .episode__pic { order: 2; }

.episode--tall { grid-template-columns: 300px 1fr; }
.episode--tall .episode__pic img { aspect-ratio: 9 / 16; }

.episode__pic { margin: 0; }
.episode__pic img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 5px solid var(--bone);
  transform: rotate(-2.5deg);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, .45);
}
.episode--flip .episode__pic img {
  transform: rotate(2.5deg);
  box-shadow: -8px 10px 0 rgba(0, 0, 0, .45);
}

.episode__tag {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: .3rem .7rem;
  transform: rotate(-1.5deg);
  margin-bottom: .8rem;
}

.episode__body p {
  font-size: 1rem;
  line-height: 1.7;
}
.episode__body strong { color: var(--bone); }
.episode__body em { color: var(--muted); }

.bio__punch {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3.5vw, 1.9rem);
  line-height: 1.25;
  color: var(--accent);
  text-align: center;
  text-transform: uppercase;
  margin: 3.2rem auto 0;
  max-width: 700px;
}

@media (max-width: 640px) {
  .episode, .episode--tall { grid-template-columns: 1fr; }
  .episode--flip .episode__pic { order: 0; }
  .episode__pic { max-width: 240px; margin: 0 auto; }
}

/* ============ KONTAKT ============ */
.section--kontakt { text-align: center; padding-bottom: 7rem; }
.section--kontakt .section__title::after { margin-left: auto; margin-right: auto; }
.section--kontakt .section__sub { margin-left: auto; margin-right: auto; }
.section--kontakt .section__index { right: auto; left: 0; }

/* two columns on wide screens: direct contacts | booking form */
/* the booking form is now the whole section — centred, full width */
.kontakt-cols {
  text-align: left;
  max-width: 1180px;
  margin: 0 auto;
}

.kontakt {
  display: grid;
  gap: 1rem;
}
.kontakt__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.2rem 1.5rem;
  transition: border-color .2s, background .2s;
}
.kontakt__item:hover { border-color: var(--accent); background: var(--ink-2); }
.kontakt__label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.kontakt__value {
  font-family: var(--display);
  font-size: clamp(1rem, 3.4vw, 1.5rem);
  word-break: break-all;
}

/* ============ BOOKING FORM ============ */
.booking {
  margin: 0;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.8rem;
}
.booking__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
}
.booking__sub {
  color: var(--muted);
  font-size: .9rem;
  font-style: italic;
  margin: .4rem 0 1.4rem;
}
.booking__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) { .booking__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .booking__grid { grid-template-columns: 1fr; } }

.booking__field { display: flex; flex-direction: column; gap: .35rem; }
.booking__field--full { grid-column: 1 / -1; }
.booking__field span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.booking__field span em {
  font-style: normal;
  color: var(--muted);
  letter-spacing: .1em;
}
.booking__field input,
.booking__field select,
.booking__field textarea {
  font-family: var(--body);
  font-size: .95rem;
  color: var(--bone);
  background: var(--ink);
  border: 1px solid var(--line);
  padding: .7rem .8rem;
  border-radius: 0;
}
.booking__field input:focus,
.booking__field select:focus,
.booking__field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.booking__field input[type="date"] { color-scheme: dark; }
.booking__send { margin-top: 1.2rem; border: 2px solid var(--accent); cursor: pointer; }

@media (max-width: 600px) {
  .booking__grid { grid-template-columns: 1fr; }
  .booking { padding: 1.2rem; }
}

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); }
.footer__line {
  text-align: center;
  padding: 1.6rem 1rem 2rem;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 8, 10, .96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox__stage {
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
}
.lightbox__caption { width: 100%; }
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(86vh - 3rem);
  object-fit: contain;
  border: 1px solid var(--line);
  background: #000;
}
/* contact sheet: photos at a glance — sized to fill the viewport height */
.lightbox__sheet {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  /* Width is derived so the whole grid fits inside max-height, gutters
     included: 4 rows of 4:3 cells + 3 gaps. Without the gap terms the sheet
     overflowed by a few px and raised a scrollbar on both axes (setting
     overflow on one axis makes the other compute to auto). */
  width: min(84vw, calc((86vh - 3rem - 18px) * 1.667 + 24px));
  max-height: calc(86vh - 3rem);
  overflow: auto;
  scrollbar-width: none;            /* the arrows and paging are the control */
}
.lightbox__sheet::-webkit-scrollbar { display: none; }
.lightbox__cell {
  padding: 0;
  border: 1px solid var(--line);
  background: #000;
  cursor: pointer;
}
.lightbox__cell img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.lightbox__cell:hover, .lightbox__cell:focus-visible {
  outline: var(--ring) solid var(--accent);
  outline-offset: calc(var(--ring) * -1);   /* inset, so tiles don't overlap */
}
/* portrait sheets (galleries): 5×2 vertical cells → overall ratio ~1.875 */
/* 2 rows of 3:4 cells + 1 gap */
.lightbox__sheet--portrait { width: min(84vw, calc((86vh - 3rem - 6px) * 1.875 + 24px)); }
.lightbox__sheet--portrait .lightbox__cell img { aspect-ratio: 3 / 4; }

@media (max-width: 700px) {
  .lightbox__sheet { grid-template-columns: repeat(4, 1fr); }
  .lightbox__sheet--portrait { grid-template-columns: repeat(3, 1fr); }
}

.lightbox__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.lightbox__caption span:first-child { color: var(--bone); }

.lightbox__close,
.lightbox__nav {
  position: fixed;
  z-index: 1001;
  background: none;
  border: 1px solid var(--line);
  color: var(--bone);
  cursor: pointer;
  font-size: 1.3rem;
  width: 52px; height: 52px;
  display: grid; place-items: center;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .topbar__nav {
    position: fixed;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 2px solid var(--accent);
    display: none;
  }
  .topbar__nav.is-open { display: flex; }
  .topbar__nav a {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
  }
  .topbar__burger { display: flex; }
  .section { padding: 3.8rem 1rem; }
  .mix { grid-template-columns: auto 1fr; }
  .mix__hint { display: none; }
  .lightbox__nav--prev { left: .3rem; }
  .lightbox__nav--next { right: .3rem; }
  .lightbox__close { top: .5rem; right: .5rem; }
}
