/* Tayis Yıldızcı — site styles */
:root {
  --bg: #0f0c0a;
  --bg-2: #17120f;
  --surface: #1e1814;
  --line: #2f2620;
  --text: #f2ebe3;
  --muted: #b2a497;
  --accent: #e2803f;
  --accent-2: #c2462b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
/* Smooth scrolling is switched on after load, so links to a section (e.g. /#lessons) jump there instantly */
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #140d08; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #140d08; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(15, 12, 10, .88); backdrop-filter: blur(10px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font: 500 20px/1 var(--serif); text-decoration: none; letter-spacing: .01em; margin-right: auto; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 14px; letter-spacing: .04em; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a {
  font: 600 11px/1 var(--sans); letter-spacing: .08em; color: var(--muted); text-decoration: none;
  padding: 7px 10px; border-radius: 999px; transition: color .2s;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"] { background: var(--text); color: var(--bg); cursor: default; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; color: var(--text); padding: 0; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s, background .25s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; }
.bars::after { top: 7px; }
.menu-open .bars { background: transparent; }
.menu-open .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 14px/1 var(--sans); letter-spacing: .03em; text-decoration: none;
  padding: 15px 24px; border-radius: 999px; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #170d06; }
.btn-primary:hover { background: #f0955a; }
.btn-ghost { border: 1px solid rgba(242, 235, 227, .35); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,12,10,.92) 0%, rgba(15,12,10,.55) 38%, rgba(15,12,10,0) 65%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15,12,10,0) 35%);
}
.hero-content { position: relative; width: 100%; padding-bottom: clamp(56px, 11vh, 120px); padding-top: 120px; }
.eyebrow, .kicker {
  font: 600 12px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}
.hero-title {
  font: 400 clamp(56px, 11vw, 148px)/.92 var(--serif);
  font-variation-settings: "opsz" 144;
  letter-spacing: -.02em; margin: 0 0 24px;
}
.hero-sub { max-width: 30ch; font-size: clamp(17px, 1.6vw, 20px); color: #ddd2c6; margin: 0 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-credit { font-size: 11px; letter-spacing: .04em; color: rgba(242,235,227,.5); margin: 0; }
.hero-credit { position: absolute; right: var(--gutter); bottom: 18px; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-title {
  font: 400 clamp(32px, 4.4vw, 54px)/1.08 var(--serif);
  letter-spacing: -.01em; margin: 0 0 28px; max-width: 20ch;
}
.section-intro { max-width: 60ch; color: var(--muted); font-size: 18px; margin: 0 0 48px; }

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.about-photo { margin: 0; position: sticky; top: 100px; }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.about-photo figcaption { margin-top: 10px; }
.prose p { margin: 0 0 1.1em; color: #d6cbbf; }
.prose .lead { font: 400 clamp(21px, 2vw, 25px)/1.45 var(--serif); color: var(--text); }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts li { background: var(--bg); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.facts span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.facts strong { font-weight: 500; font-size: 15px; line-height: 1.4; }

/* Music */
.music { background: var(--bg-2); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.project-body { padding: 26px 28px 30px; }
.project h3 { font: 400 28px/1.15 var(--serif); margin: 0 0 10px; }
.project p { margin: 0; color: var(--muted); }
.project-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 2fr; }
.project-feature img { aspect-ratio: auto; height: 100%; min-height: 340px; }
.project-feature .project-body { align-self: center; padding: 40px; }
.project-feature h3 { font-size: clamp(34px, 4vw, 48px); }
.links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; }
.links a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; letter-spacing: .02em; }
.links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.players { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 28px; }
.players iframe { width: 100%; border: 0; border-radius: 12px; background: var(--surface); }

.credits { margin-top: 80px; }
.credits-title { font: 600 12px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.credit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.credit-list li { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr 32px; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.credit-name { font: 400 22px/1.3 var(--serif); }
.credit-role { color: var(--muted); }
.credit-list a { color: var(--accent); text-decoration: none; font-size: 18px; justify-self: end; }

/* Studio band */
.studio { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.studio > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.studio-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,12,10,.95) 0%, rgba(15,12,10,.75) 45%, rgba(15,12,10,.2) 100%); }
.studio-content { position: relative; width: 100%; padding-top: 80px; padding-bottom: 80px; }
.studio-content p:not(.kicker) { max-width: 46ch; color: #ddd2c6; font-size: 18px; margin: 0; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.video-btn, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; padding: 0; background: #000; cursor: pointer; }
.video-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .5s; }
.video-btn:hover img { opacity: 1; transform: scale(1.03); }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(15,12,10,.7); border: 1px solid rgba(242,235,227,.5); transition: background .2s; }
.play::after { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--text); }
.video-btn:hover .play { background: var(--accent); }
.yt-badge { position: absolute; right: 10px; bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 8px; border-radius: 999px; background: rgba(15,12,10,.75); color: var(--text); }
.video-title { margin: 14px 0 0; font-size: 15px; font-weight: 500; }
.video-title span { color: var(--muted); font-weight: 400; }

/* Lessons */
.lessons { background: var(--bg-2); }
.lesson-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 56px; }
.lesson-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; background: var(--surface); position: relative; overflow: hidden; }
.lesson-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.lesson-card h3 { font: 400 34px/1.1 var(--serif); margin: 0 0 14px; }
.lesson-card p { margin: 0; color: var(--muted); }
.teaching { margin-bottom: 44px; }
.teach-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.teach-list li { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--accent); padding-left: 16px; }
.teach-list strong { font-weight: 500; }
.teach-list span { color: var(--muted); font-size: 15px; }

/* Timeline */
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; column-gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
.t-year { grid-row: span 2; color: var(--accent); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.timeline strong { font-weight: 500; }
.timeline li > span:last-child { color: var(--muted); font-size: 15px; }
.press { margin-top: 56px; }
.press-card { display: flex; flex-direction: column; gap: 6px; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, background .2s; }
.press-card:hover { border-color: var(--accent); background: var(--surface); }
.press-src { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.press-title { font: 400 italic 26px/1.25 var(--serif); }
.press-note { color: var(--accent); font-size: 14px; }

/* Gallery */
.gallery-sec { padding-top: 0; }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: transform .6s, filter .3s; filter: saturate(.9); }
.gallery a:hover img { transform: scale(1.025); filter: saturate(1.05); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--text); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 6, 5, .94); }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 2px; }
.lightbox figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); min-height: 1em; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--text); font: 300 44px/1 var(--sans); cursor: pointer; padding: 12px 18px; opacity: .75; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact { background: radial-gradient(ellipse at 50% 120%, rgba(226,128,63,.18), transparent 60%), var(--bg); border-top: 1px solid var(--line); }
.contact-inner { text-align: center; }
.contact-inner .section-intro { margin-left: auto; margin-right: auto; text-wrap: balance; }
.contact-title { font: 400 clamp(44px, 8vw, 104px)/1 var(--serif); letter-spacing: -.02em; margin: 0 0 24px; }
.contact-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.contact-links a { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, background .2s, transform .2s; }
.contact-links a:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }
.contact-links span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-links strong { font: 400 21px/1.3 var(--serif); overflow-wrap: anywhere; }
.contact-links em { font-style: normal; color: var(--accent); font-size: 13px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.credit { margin: 18px auto 0; text-align: center; font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.credit-link { font-weight: 600; }
.credit-link span { transition: color .2s; }
.credit-link:hover .credit-a { color: var(--text); }
.credit-link:hover .credit-b { color: #c9a84c; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .video-grid { gap: 18px; }
  .contact-links { grid-template-columns: 1fr 1fr; }
  .teach-list { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .site-header { background: rgba(15,12,10,.97); }
  .nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a:last-child { border-bottom: 0; }

  .about-grid, .timeline-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 460px; }
  .projects, .players, .lesson-cards { grid-template-columns: 1fr; }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature img { min-height: 0; aspect-ratio: 3 / 2; }
  .project-feature .project-body { padding: 26px 28px 30px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero-img { object-position: 42% 30%; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(15,12,10,.75) 45%, rgba(15,12,10,.15) 100%); }
  .hero-credit { bottom: auto; top: 76px; }
  .facts { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .credit-list li { grid-template-columns: 1fr 24px; gap: 4px 12px; }
  .credit-name { grid-column: 1; }
  .credit-role { grid-column: 1; grid-row: 2; font-size: 15px; }
  .credit-list a { grid-column: 2; grid-row: 1; }
  .timeline li { grid-template-columns: 96px 1fr; column-gap: 14px; }
  .lesson-card { padding: 28px 24px; }
  .studio-shade { background: rgba(15,12,10,.8); }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; }
}

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