/* ============ Yunus Altıkanat — site styles ============ */

:root {
  --bg: #151109;
  --bg-raised: #1d1810;
  --ink: #ede5d6;
  --muted: #a99a82;
  --accent: #d19c3f;
  --line: rgba(237, 229, 214, 0.14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }

::selection { background: rgba(209, 156, 63, 0.35); }

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.empty { color: var(--muted); font-size: 1.05rem; }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.8rem 2rem;
  border: 1px solid var(--accent);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  transition: background 0.3s, color 0.3s;
}

.btn:hover { background: var(--accent); color: #171207; }

.btn--small { margin-top: 0; padding: 0.55rem 1.4rem; font-size: 0.68rem; align-self: center; }

.link-arrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  transition: color 0.3s;
}

.link-arrow::after { content: ' →'; }
.link-arrow:hover { color: var(--accent); }

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--pad);
  background: rgba(21, 17, 9, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
}

.nav--overlay:not(.nav--solid) {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  padding: 2rem var(--pad);
}

.nav--hidden:not(.open) { transform: translateY(-100%); }

/* over the hero photo: bright links + soft shadow for readability */
.nav--overlay:not(.nav--solid) .nav__links a { color: var(--ink); }
.nav--overlay:not(.nav--solid) .nav__links a:hover { color: var(--accent); }
.nav--overlay:not(.nav--solid) .nav__brand,
.nav--overlay:not(.nav--solid) .nav__links a { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }

.nav { transition: background 0.4s, border-color 0.4s, padding 0.4s, transform 0.45s ease; }

.nav__brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.nav__links { display: flex; gap: 2.5rem; }

.nav__links a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  transition: color 0.3s;
  padding: 0.25rem 0;
}

.nav__links a:hover, .nav__links a.active { color: var(--ink); }

.nav__links a.active { border-bottom: 1px solid var(--accent); }

.nav__toggle { display: none; }

@media (max-width: 720px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 60;
  }
  .nav__toggle span {
    width: 26px; height: 1px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav.open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(21, 17, 9, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
  }
  .nav.open .nav__links { opacity: 1; pointer-events: auto; }
  .nav__links a { font-size: 0.95rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: -12% 0 0 0;   /* headroom for the parallax shift */
  background-size: cover;
  background-position: center 30%;
  animation: heroIn 2.4s ease-out both;
  will-change: transform;
}

.hero__content { will-change: transform, opacity; }

@keyframes heroIn {
  from { transform: scale(1.06); filter: brightness(0.6); }
  to   { transform: scale(1);    filter: brightness(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(21, 17, 9, 0.72) 0%, rgba(21, 17, 9, 0) 24%),
    linear-gradient(to top, rgba(21, 17, 9, 0.96) 0%, rgba(21, 17, 9, 0.35) 40%, rgba(21, 17, 9, 0.15) 100%);
}

.hero__content {
  position: relative;
  padding: 0 var(--pad) clamp(4rem, 12vh, 8rem);
}

.hero__kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: var(--accent);
  margin-bottom: 1.2rem;
  animation: fadeUp 1.2s 0.5s ease-out both;
}

.hero__name {
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  animation: fadeUp 1.2s 0.7s ease-out both;
}

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

/* phones: the landscape hero crops badly at 100svh — swap in a portrait shot */
@media (max-width: 640px) {
  .hero__image { background-image: url('/images/close-portrait.jpg') !important; background-position: center 20%; }
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  right: var(--pad);
  width: 1px;
  height: 70px;
  overflow: hidden;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 100%;
  background: var(--ink);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- sections ---------- */

.section { padding: clamp(4.5rem, 10vw, 8rem) var(--pad); }

.section__head { margin-bottom: 3rem; }

.section__head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }

.section__more { margin-top: 2.5rem; }

/* intro */

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.intro__figure img { aspect-ratio: 3 / 4; object-fit: cover; }

.intro__lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.5;
  font-weight: 400;
}

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

/* ---------- concerts ---------- */

.section--upcoming .concert-list,
.section--upcoming .section__head,
.section--upcoming .empty,
.section--upcoming .section__more { max-width: 1000px; margin-inline: auto; }

.section--upcoming .section__head { margin-bottom: 3rem; }
.section--upcoming .section__more { margin-top: 2.5rem; }

.concert {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1.5rem 2.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.concert-list > .concert:last-child { border-bottom: 1px solid var(--line); }

.concert__day {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}

.concert__month {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-top: 0.4rem;
}

.concert__title { font-size: 1.45rem; margin-bottom: 0.35rem; }

.concert__where { color: var(--muted); font-size: 0.92rem; }

.concert__program {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: pre-line;
  border-left: 1px solid var(--accent);
  padding-left: 1rem;
}

.concert--past { opacity: 0.6; }
.concert--past .concert__title { font-size: 1.15rem; }
.concert--past .concert__month { margin-top: 0.2rem; }

@media (max-width: 640px) {
  .concert { grid-template-columns: 1fr; gap: 0.6rem; }
  .concert__day { display: inline; font-size: 1.6rem; }
  .concert__month { display: inline; margin-left: 0.5rem; }
}

/* ---------- generic pages ---------- */

.page {
  padding: clamp(8rem, 16vh, 11rem) var(--pad) clamp(4rem, 8vw, 6rem);
  max-width: 1200px;
  margin: 0 auto;
}

.page__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.page__head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }

@media (max-width: 640px) {
  .page { padding-top: 7.5rem; }
  .intro__figure, .bio__figure { margin-inline: auto; }  /* center narrower figures */
}

/* about */

.bio {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) 7fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

/* figure.* specificity keeps these rules ahead of .curtain's position: relative —
   otherwise top: 7rem turns into a permanent visual offset over the text */
figure.bio__figure { position: sticky; top: 7rem; }

.bio__figure img { aspect-ratio: 3 / 4; object-fit: cover; }

.bio__text p { margin-bottom: 1.6rem; color: #d8cebd; }

@media (max-width: 820px) {
  .bio { grid-template-columns: 1fr; }
  figure.bio__figure { position: relative; top: auto; max-width: 420px; }
}

/* calendar page */

.cal-block { margin-bottom: clamp(3.5rem, 8vw, 6rem); }

.cal-block__title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* media */

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
  gap: 2.5rem;
  margin-bottom: clamp(3.5rem, 8vw, 6rem);
}

.video__frame {
  aspect-ratio: 16 / 9;
  background: var(--bg-raised);
}

.video__frame iframe { width: 100%; height: 100%; border: 0; }

.video figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery {
  columns: 3;
  column-gap: 1.2rem;
}

.gallery__item {
  display: block;
  margin-bottom: 1.2rem;
  overflow: hidden;
  break-inside: avoid;         /* never split a photo across two columns */
  -webkit-column-break-inside: avoid;
}

.gallery__item img {
  width: 100%;
  transition: transform 0.6s ease, opacity 0.4s;
}

.gallery__item:hover img { transform: scale(1.03); opacity: 0.9; }

@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 10, 5, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.lightbox[hidden] { display: none; }  /* explicit display would otherwise override the hidden attribute */

.lightbox__figure {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 100%;
  max-height: 100%;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  object-fit: contain;
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.lightbox__bar a {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.15rem;
  transition: color 0.3s;
}

.lightbox__bar a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .lightbox { padding: 1rem; }
  .lightbox img { max-height: calc(100vh - 7rem); }
  .lightbox__close { top: 0.5rem; right: 1rem; }
}

.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.8rem;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 2.4rem;
  font-weight: 200;
  cursor: pointer;
  line-height: 1;
}

/* contact */

.page--contact { text-align: left; }

.contact__note { color: var(--muted); max-width: 46ch; }

.contact__mail {
  display: inline-block;
  margin: 1.8rem 0 2.5rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
  transition: color 0.3s;
}

.contact__mail:hover { color: var(--accent); }

.contact__social { display: flex; gap: 2rem; }

.contact__social a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  transition: color 0.3s;
}

.contact__social a:hover { color: var(--accent); }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 3rem var(--pad) 3.5rem;
  margin-top: clamp(2rem, 6vw, 4rem);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.footer__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.footer__mail {
  font-family: var(--serif);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer__mail:hover { color: var(--accent); }

.footer__social { display: flex; gap: 1.5rem; }

.footer__social a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.3s;
}

.footer__social a:hover { color: var(--accent); }

.footer__col--meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  justify-content: flex-end;
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease var(--d, 0s), transform 0.9s ease var(--d, 0s);
}

.reveal.visible { opacity: 1; transform: none; }

/* curtain image reveal — panel slides up, image settles from a slight zoom */

.curtain { position: relative; overflow: hidden; }

.curtain::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--bg);
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.18, 1) 0.1s;
  z-index: 1;
}

.curtain img {
  transform: scale(1.14);
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.curtain.visible::after { transform: scaleY(0); }
.curtain.visible img { transform: scale(1); }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1.6rem 0;
  user-select: none;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee__track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--muted);
  white-space: nowrap;
}

.marquee__track i { color: var(--accent); font-style: normal; }

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- photo band (scroll-driven strip) ---------- */

.band {
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.band__track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  width: max-content;
  padding-left: var(--pad);
  will-change: transform;
}

.band__item { flex-shrink: 0; overflow: hidden; }

.band__item img {
  height: clamp(260px, 44vh, 420px);
  width: auto;
  transition: transform 0.6s ease;
}

.band__item--tall img { height: clamp(300px, 52vh, 500px); }

.band__item:hover img { transform: scale(1.03); }

.band__more { padding: 2.5rem var(--pad) 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
