/* ═══════════════════════════════════════
   Buse Babadag — scrolling timeline feed
   ═══════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --bg-warm: #0e0c0a;
  --surface: #161412;
  --text: #f0ece8;
  --muted: #a8a098;
  --accent: #c9a87c;
  --line: rgba(255,255,255,0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

/* ─── PAGE LOADER ─── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity;
  transition: opacity 0.7s ease;
}
#page-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.96) 0%,
    rgba(10,10,10,0.84) 42%,
    rgba(10,10,10,0.9) 100%
  );
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  will-change: opacity;
  animation: loader-soften var(--intro-ms, 3200ms) linear forwards;
}
#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.skip-intro #page-loader {
  display: none;
}
.skip-intro .hero {
  opacity: 1;
  transform: none;
}
.loader-stage {
  width: 100vw;
  height: 40vh;
  overflow: visible;
  position: relative;
  z-index: 1;
}
#loader-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mobile-loader-dancer {
  display: none;
}
.mobile-loader-dancer::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 9rem;
  height: 9rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,124,0.36) 0%, rgba(201,168,124,0.1) 45%, rgba(201,168,124,0) 72%);
}
.mobile-loader-dancer img {
  position: relative;
  z-index: 1;
  width: 82px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(201,168,124,0.55));
  animation: mobile-pirouette 0.75s ease-in-out infinite;
}
.track-glow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 16;
  opacity: 0.16;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-line 3.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.track-core {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.88;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-line 3.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}
@keyframes mobile-pirouette {
  0%, 100% { transform: scaleX(1) translateY(0); }
  50% { transform: scaleX(-1) translateY(-2px); }
}
@keyframes loader-soften {
  from { opacity: 1; }
  to { opacity: 0.5; }
}
/* hero fades in behind the loader */
.hero {
  opacity: 0.02;
  transform: translateY(8px) scale(1.01);
  will-change: opacity, transform;
  transition:
    opacity calc(var(--intro-ms, 3200ms) - 140ms) linear,
    transform calc(var(--intro-ms, 3200ms) - 140ms) ease-out;
}
.hero.revealed {
  opacity: 1;
  transform: none;
}

/* ─── HERO ─── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0) 30%,
    rgba(10,10,10,0.55) 65%,
    rgba(10,10,10,0.92) 100%
  );
}

.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  padding: 1.6rem 2rem;
}

.top-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240,236,232,0.7);
  transition: color 0.2s;
}

.top-nav a:hover { color: var(--text); }

.hero-title {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2rem 1rem;
}

.hero-kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.hero-title h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.12em;
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 1rem 2rem 2rem;
}

.hero-credit {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 700px) {
  #page-loader::before {
    background: rgba(10,10,10,0.78);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: none;
    opacity: 1;
  }

  .loader-stage {
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #loader-svg {
    display: none;
  }

  .mobile-loader-dancer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 180px;
  }

  .mobile-loader-dancer::before {
    width: 6rem;
    height: 6rem;
    background: radial-gradient(circle, rgba(201,168,124,0.22) 0%, rgba(201,168,124,0.07) 45%, rgba(201,168,124,0) 72%);
  }

  .mobile-loader-dancer img {
    animation-duration: 0.65s;
    will-change: transform;
    filter: drop-shadow(0 0 8px rgba(201,168,124,0.42));
  }

  .hero,
  .hero.revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-cue {
    animation: none;
  }
}

/* ─── FEED ─── */

.feed {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@supports (content-visibility: auto) {
  .entry,
  .quote-band,
  .bleed-image,
  .gallery-band,
  .upcoming-band,
  .reveal {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
  }
}

/* ─── ENTRIES ─── */

.entry {
  position: relative;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

/* full-bleed tint strip behind image sections */
.entry-has-image::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: calc(-50vw + 50%);
  width: 100vw;
  background: var(--entry-tint, transparent);
  z-index: -1;
  pointer-events: none;
}

.entry-marker {
  margin-bottom: 1.5rem;
}

.entry-marker span {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(201,168,124,0.25);
  line-height: 1;
}

.entry-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 0.6rem;
}

.entry-deck {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 600px;
  margin-bottom: 2rem;
}

.entry-prose p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.3rem;
  font-size: 1rem;
}

.entry-prose em {
  color: var(--accent);
  font-style: italic;
}

.entry-prose strong {
  font-weight: 500;
}

/* entry media */
.entry-media {
  position: relative;
  margin: 1.5rem 0 2rem;
  overflow: hidden;
}

.entry-media--full img {
  aspect-ratio: auto;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  object-position: center;
}

.entry-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  transition: transform 0.5s ease;
}

.entry-has-image:hover .entry-media img {
  transform: scale(1.02);
}

/* columns layout for timeline entries */
.entry-columns {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}

/* timeline sidebar */
.entry-timeline {
  border-left: 1px solid rgba(201,168,124,0.3);
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.tl span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.tl p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

/* source links */
.entry-sources {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.entry-sources h3 {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.entry-sources a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

.entry-sources a:last-child { border-bottom: none; }
.entry-sources a:hover { border-color: var(--accent); }

.src-pub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.src-hed {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.25;
}

/* ─── QUOTE BANDS ─── */

.quote-band {
  padding: 5rem 1.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--text);
}

.quote-band cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── PIVOT QUOTE (America) ─── */
.quote-band--pivot {
  position: relative;
  max-width: none;
  padding: 8rem 2rem;
  margin: 3rem calc(-50vw + 50%);
  width: 100vw;
  background: var(--bg-warm);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-band--pivot blockquote {
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--accent);
  max-width: 820px;
  margin: 0 auto;
}

.quote-band--pivot cite {
  margin-top: 1.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

/* ─── FULL-BLEED IMAGE ─── */

.bleed-image {
  margin: 0 calc(-50vw + 50%);
  width: 100vw;
  position: relative;
}

.bleed-image img {
  width: 100%;
  max-height: 85vh;
  object-fit: cover;
}

.bleed-caption {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(240,236,232,0.65);
  text-transform: uppercase;
}

/* ─── UPCOMING PERFORMANCES ─── */

.upcoming-band {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.upcoming-grid {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 1.5rem;
}

.upcoming-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.8rem 2rem;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  transition: background 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}

a.upcoming-card:hover {
  background: rgba(201, 168, 124, 0.06);
  cursor: pointer;
}

.upcoming-card:not(a[href]):hover {
  cursor: default;
}

.upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  flex-shrink: 0;
}

.upcoming-month {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.upcoming-day {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
}

.upcoming-info {
  flex: 1;
  min-width: 0;
}

.upcoming-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.upcoming-detail {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.upcoming-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(240, 236, 232, 0.75);
}

.upcoming-badge {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(201, 168, 124, 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* ─── GALLERY BAND ─── */

.gallery-band {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
}

.band-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 2.5rem;
}

.gallery-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.col-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
}

.col-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: grayscale(20%);
}

.col-item:hover img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.col-item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1rem 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  opacity: 0;
  transition: opacity 0.3s;
}

.col-item:hover figcaption { opacity: 1; }

/* ─── REPERTOIRE GRID ─── */

.rep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.rep-grid h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.7rem;
}

.rep-grid ul {
  list-style: none;
  padding: 0;
}

.rep-grid li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.rep-grid li:last-child { border-bottom: none; }

/* ─── CONTACT BAND ─── */

.contact-band {
  text-align: center;
  padding: 5rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.contact-band p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ─── BUTTONS ─── */

.btn {
  display: inline-flex;
  align-items: center;
  height: 2.8rem;
  padding: 0 1.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 500;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover { transform: translateY(-1px); opacity: 0.9; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-outline:hover { border-color: var(--accent); }

/* ─── FOOTER ─── */

.site-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.site-footer p {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── REVEAL ─── */

.reveal, .entry, .quote-band, .bleed-image, .gallery-band, .upcoming-band {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 860px) {
  .entry-columns {
    grid-template-columns: 1fr;
  }

  .entry-timeline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
    border-left: none;
    border-top: 1px solid rgba(201,168,124,0.3);
    padding: 1.2rem 0 0;
    margin-top: 1rem;
  }

  .gallery-collage {
    grid-template-columns: repeat(2, 1fr);
  }

  .col-item figcaption { opacity: 1; }

  .rep-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bleed-image img {
    max-height: 60vh;
  }
}

@media (max-width: 600px) {
  .top-nav {
    gap: 1rem;
    padding: 1rem 0.8rem;
    font-size: 0.6rem;
  }

  .hero-title h1 {
    letter-spacing: 0.06em;
  }

  .hero-foot {
    padding: 1rem 1rem 1.5rem;
  }

  .feed {
    padding: 0 1rem;
  }

  .entry {
    padding: 3rem 0 2.5rem;
  }

  .entry-marker span {
    font-size: 2.5rem;
  }

  .entry-title {
    font-size: 1.6rem;
  }

  .entry-prose p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .quote-band {
    padding: 3rem 1rem;
  }

  .quote-band blockquote {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  }

  .gallery-collage {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }

  .gallery-band {
    padding: 3rem 0;
  }

  .band-title {
    padding: 0 1rem;
  }

  .contact-band {
    padding: 3rem 1rem;
  }

  .entry-sources a {
    font-size: 0.75rem;
  }

  .footer-links {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .site-footer {
    padding: 2rem 1rem;
  }

  .entry-media--full img {
    width: 100%;
  }

  .bleed-caption {
    position: static;
    padding: 0.6rem 1rem;
    display: block;
    background: var(--bg);
  }

  .upcoming-band {
    padding: 3rem 0;
  }

  .upcoming-card {
    flex-wrap: wrap;
    padding: 1.2rem 1rem;
    gap: 1rem;
  }

  .upcoming-badge {
    align-self: flex-start;
  }

  .upcoming-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .top-nav {
    gap: 0.7rem;
    font-size: 0.55rem;
  }

  .hero-kicker {
    font-size: 0.55rem;
  }

  .gallery-collage {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .col-item {
    aspect-ratio: 4/5;
  }

  .entry-marker span {
    font-size: 2rem;
  }
}
