/* ═══════════════════════════════════════
   KRZYSZTOF KICIOR — Shared Stylesheet
   ═══════════════════════════════════════ */

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

:root {
  --ink:        #0e0d0b;
  --parchment:  #f5f0e8;
  --cream:      #faf7f2;
  --gold:       #b8924a;
  --gold-light: #d4aa6a;
  --gold-pale:  #e8d5b0;
  --muted:      #6b6455;
  --rule:       rgba(184,146,74,0.22);
  --dark:       #141310;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--parchment); }
::-webkit-scrollbar-thumb { background: var(--gold); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 500; }

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem;
  height: 72px;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(14,13,11,0.07); }
nav.nav-dark {
  background: rgba(14,13,11,0.92);
  border-bottom-color: rgba(184,146,74,.15);
}
nav.nav-dark .nav-links a { color: rgba(245,240,232,.55); }
nav.nav-dark .nav-links a:hover,
nav.nav-dark .nav-links a.active { color: var(--gold); }
nav.nav-dark .nav-logo { color: var(--parchment); }
nav.nav-dark .nav-langs a { color: rgba(245,240,232,.55); border-color: rgba(184,146,74,.2); }
nav.nav-dark .nav-langs a:hover,
nav.nav-dark .nav-langs a.active { color: var(--gold); border-color: var(--gold); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.nav-logo span { color: var(--gold); }

.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

.nav-langs {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
}
.nav-langs a {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: .28rem .55rem;
  border-radius: 2px;
  transition: all .2s;
}
.nav-langs a:hover { border-color: var(--gold); color: var(--gold); }
.nav-langs a.active { border-color: var(--gold); color: var(--gold); }

/* ─── HERO (Home) ─── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 0 4rem;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 50%, rgba(184,146,74,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(184,146,74,.05) 0%, transparent 60%);
}
.score-lines { position: absolute; inset: 0; pointer-events: none; }
.score-lines svg { width: 100%; height: 100%; opacity: .04; }
.hero-wave {
  position: absolute; right: 5%; top: 50%;
  transform: translateY(-50%);
  width: 45%; opacity: .13;
}
.hero-wave svg { width: 100%; }
.hero-content { position: relative; z-index: 2; max-width: 680px; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp .8s ease forwards .3s;
}
.hero-eyebrow-line { width: 48px; height: 1px; background: var(--gold); }
.hero-eyebrow span {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
}

h1.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 300; line-height: 1.05;
  color: var(--parchment); letter-spacing: -.01em;
  opacity: 0; animation: fadeUp .9s ease forwards .5s;
}
h1.hero-h1 em { font-style: italic; color: var(--gold-light); }

.hero-roles {
  display: flex; gap: 1.4rem; flex-wrap: wrap;
  margin-top: 2rem;
  opacity: 0; animation: fadeUp .8s ease forwards .75s;
}
.role-tag {
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(245,240,232,.5);
  border: 1px solid rgba(184,146,74,.3);
  padding: .35rem 1rem; border-radius: 2px;
}

.hero-desc {
  margin-top: 2.5rem; font-size: 1.05rem; line-height: 1.8;
  color: rgba(245,240,232,.62); max-width: 480px;
  opacity: 0; animation: fadeUp .8s ease forwards 1s;
}
.hero-cta {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  margin-top: 3rem;
  opacity: 0; animation: fadeUp .8s ease forwards 1.2s;
}
.hero-scroll {
  position: absolute; bottom: 3rem; left: 4rem;
  display: flex; align-items: center; gap: 1rem;
  color: rgba(245,240,232,.3);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; animation: fadeUp .8s ease forwards 1.5s;
}
.scroll-bar { width: 40px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.scroll-bar::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%; background: var(--gold);
  animation: slideRight 2.2s ease infinite 2s;
}

/* ─── PAGE HERO (Subpages) ─── */
.page-hero {
  position: relative;
  padding: 9rem 4rem 5rem;
  background: var(--ink);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(184,146,74,.07) 0%, transparent 70%);
}
.page-hero-score { position: absolute; inset: 0; pointer-events: none; opacity: .04; }
.page-hero-score svg { width: 100%; height: 100%; }
.page-hero-content { position: relative; z-index: 2; }
.page-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-eyebrow-line { width: 40px; height: 1px; background: var(--gold); }
.page-eyebrow span {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
}
h1.page-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300; line-height: 1.1;
  color: var(--parchment);
}
h1.page-title em { font-style: italic; color: var(--gold-light); }
.page-subtitle {
  margin-top: 1.2rem; font-size: 1rem; line-height: 1.75;
  color: rgba(245,240,232,.5); max-width: 540px;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block; font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); background: var(--gold);
  padding: .85rem 2.2rem; border-radius: 2px;
  transition: background .2s, transform .2s; font-weight: 400;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block; font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--parchment);
  border: 1px solid rgba(245,240,232,.25);
  padding: .85rem 2.2rem; border-radius: 2px;
  transition: border-color .2s, color .2s, transform .2s; font-weight: 400;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
  transition: gap .2s;
}
.btn-link::after { content: '→'; transition: transform .2s; }
.btn-link:hover { gap: .8rem; }
.btn-link:hover::after { transform: translateX(3px); }

/* ─── SECTION BASICS ─── */
section.s-light { background: var(--cream); }
section.s-parchment { background: var(--parchment); }
section.s-dark { background: var(--ink); }

.s-wrap { padding: 6rem 4rem; }
.s-wrap-sm { padding: 4rem 4rem; }

.section-header {
  display: flex; align-items: baseline; gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.section-num { font-family: var(--serif); font-size: .85rem; color: var(--gold); letter-spacing: .1em; }
h2.section-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 400; line-height: 1.1;
}
h2.section-title em { font-style: italic; color: var(--gold); }
h2.section-title.light { color: var(--parchment); }
.section-rule { height: 1px; background: var(--rule); flex: 1; margin-bottom: .35rem; }
.section-rule.dark { background: rgba(184,146,74,.18); }

/* ─── HOME TEASERS ─── */
.home-teasers { padding: 5rem 4rem; background: var(--parchment); }
.teaser-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--rule); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.teaser-card { background: var(--parchment); padding: 3rem; transition: background .2s; }
.teaser-card:hover { background: #ece6d8; }
.teaser-label { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.teaser-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; line-height: 1.25; margin-bottom: 1rem; }
.teaser-card h3 em { font-style: italic; color: var(--gold); }
.teaser-card p { font-size: .9rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.5rem; }

/* ─── BIO ─── */
.bio-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 6rem; align-items: start; }
.portrait-frame { position: relative; padding-bottom: 120%; overflow: hidden; border-radius: 2px; }
.portrait-frame::before {
  content: ''; position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid var(--gold-pale); z-index: 0; border-radius: 2px;
}
.portrait-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #d4c5a9 0%, #c4b090 100%);
  display: flex; align-items: center; justify-content: center;
}
.portrait-placeholder svg { width: 60px; height: 60px; opacity: .3; color: #6b5c40; }
.portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-credit { margin-top: 1rem; font-size: .7rem; letter-spacing: .1em; color: var(--muted); text-align: right; }

.bio-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  margin-top: 2rem; border-radius: 2px; overflow: hidden;
}
.stat-item { padding: 1.2rem 1.5rem; background: var(--parchment); transition: background .2s; }
.stat-item:hover { background: #ece6d8; }
.stat-num { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--gold); line-height: 1; }
.stat-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }

.bio-text h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--gold); font-style: italic; margin-bottom: 1.5rem; }
.bio-text p { margin-bottom: 1.4rem; font-size: .98rem; line-height: 1.85; color: #3a3530; }

.bio-highlights { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0; }
.highlight-item { display: flex; align-items: baseline; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--rule); font-size: .87rem; }
.highlight-year { font-family: var(--serif); font-size: .8rem; color: var(--gold); min-width: 44px; letter-spacing: .04em; }
.highlight-text { color: #4a4540; }

/* ─── COMPOSITIONS ─── */
.comp-filter { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--rule); background: none;
  padding: .45rem 1.1rem; cursor: pointer; border-radius: 2px;
  transition: all .2s; font-family: var(--sans); font-weight: 400;
}
.filter-btn:hover, .filter-btn.active { background: var(--gold); border-color: var(--gold); color: #fff; }

.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.comp-card { background: var(--cream); padding: 2rem; transition: background .2s; }
.comp-card:hover { background: var(--parchment); }
.comp-year { font-family: var(--serif); font-size: .8rem; color: var(--gold); letter-spacing: .06em; margin-bottom: .4rem; }
.comp-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; line-height: 1.3; color: var(--ink); margin-bottom: .4rem; }
.comp-title em { font-style: italic; }
.comp-scoring { font-size: .8rem; color: var(--muted); line-height: 1.5; margin-bottom: .7rem; }
.comp-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.comp-tag { font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(184,146,74,.3); padding: .18rem .5rem; border-radius: 2px; }
.comp-tag.commissioned { background: rgba(184,146,74,.08); }
.comp-note { margin-top: .5rem; font-size: .76rem; color: var(--muted); font-style: italic; }

/* ─── NEWS ─── */
.news-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2px; background: rgba(184,146,74,.1); border: 1px solid rgba(184,146,74,.1); border-radius: 2px; overflow: hidden; }
.news-card { background: var(--dark); padding: 2.5rem; transition: background .2s; }
.news-card:hover { background: #1c1a17; }
.news-date { font-family: var(--serif); font-size: .85rem; color: var(--gold); letter-spacing: .07em; margin-bottom: .8rem; }
.news-title { font-family: var(--serif); font-size: 1.15rem; color: var(--parchment); line-height: 1.4; margin-bottom: .65rem; }
.news-title em { font-style: italic; }
.news-body { font-size: .84rem; color: rgba(245,240,232,.48); line-height: 1.75; }
.news-venue { margin-top: 1rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(184,146,74,.65); border-top: 1px solid rgba(184,146,74,.13); padding-top: .7rem; }

.events-list { margin-top: 3rem; display: flex; flex-direction: column; gap: 0; }
.event-item { display: grid; grid-template-columns: 80px 1fr; gap: 2rem; align-items: center; padding: 1.4rem 0; border-bottom: 1px solid rgba(184,146,74,.13); transition: opacity .2s; }
.event-item:hover { opacity: .8; }
.event-date-block { text-align: center; }
.event-day { font-family: var(--serif); font-size: 2rem; font-weight: 300; color: var(--gold); line-height: 1; }
.event-month { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(245,240,232,.4); margin-top: .2rem; }
.event-year  { font-size: .6rem;  letter-spacing: .1em;  text-transform: uppercase; color: rgba(245,240,232,.25); margin-top: .15rem; }
.event-title { font-family: var(--serif); font-size: 1.05rem; color: var(--parchment); line-height: 1.35; margin-bottom: .3rem; }
.event-title em { font-style: italic; }
.event-venue { font-size: .78rem; color: rgba(245,240,232,.45); }

/* ─── FILM ─── */
.film-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.film-item { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 2rem; padding: 1.75rem 2rem; border-bottom: 1px solid var(--rule); background: var(--parchment); transition: background .2s; }
.film-item:last-child { border-bottom: none; }
.film-item:hover { background: #ece6d8; }
.film-year-big { font-family: var(--serif); font-size: 2.4rem; font-weight: 300; color: var(--gold-pale); line-height: 1; }
.film-title { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-bottom: .25rem; }
.film-role { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.film-badge { font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(184,146,74,.3); padding: .28rem .65rem; border-radius: 2px; white-space: nowrap; }

/* ─── RESEARCH ─── */
.research-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start; }
.research-text p { margin-bottom: 1.4rem; line-height: 1.85; color: #3a3530; font-size: .98rem; }
.research-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.research-tag { font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; background: rgba(184,146,74,.1); color: var(--gold); padding: .38rem .9rem; border-radius: 2px; border: 1px solid rgba(184,146,74,.25); }
.research-sidebar h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; margin-bottom: 1.5rem; color: var(--gold); font-style: italic; }
.pub-list { display: flex; flex-direction: column; gap: 1rem; }
.pub-item { padding: 1.25rem; background: var(--parchment); border-left: 2px solid var(--gold); border-radius: 0 2px 2px 0; }
.pub-title { font-size: .87rem; font-weight: 400; color: var(--ink); line-height: 1.5; margin-bottom: .3rem; }
.pub-journal { font-size: .74rem; color: var(--muted); font-style: italic; }
.inst-list { display: flex; flex-direction: column; gap: 0; }
.inst-item { font-size: .85rem; color: #4a4540; padding: .55rem 0; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: .75rem; }
.inst-item::before { content: '—'; color: var(--gold); font-family: var(--serif); }
.institutions { margin-top: 2.5rem; }
.institutions h3 { font-family: var(--serif); font-size: 1rem; color: var(--muted); margin-bottom: 1rem; letter-spacing: .05em; text-transform: uppercase; font-style: normal; font-weight: 400; }

/* ─── SOUND ENGINEERING ─── */
.sound-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.sound-card { padding: 2.5rem 2rem; border: 1px solid var(--rule); border-radius: 2px; background: var(--cream); transition: border-color .2s, transform .2s; }
.sound-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.sound-icon { width: 40px; height: 40px; margin-bottom: 1.5rem; color: var(--gold); }
.sound-card h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; margin-bottom: .7rem; }
.sound-card p { font-size: .85rem; color: var(--muted); line-height: 1.75; }

/* ─── CONTACT ─── */
.contact-intro { font-family: var(--serif); font-size: 1.45rem; font-style: italic; color: rgba(245,240,232,.58); max-width: 540px; margin: 0 auto 4rem; line-height: 1.6; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; max-width: 860px; margin: 0 auto; background: rgba(184,146,74,.1); border: 1px solid rgba(184,146,74,.1); border-radius: 2px; overflow: hidden; }
.contact-card { background: var(--dark); padding: 2.5rem 2rem; text-align: center; transition: background .2s; }
.contact-card:hover { background: #1c1a17; }
.contact-card svg { width: 26px; height: 26px; color: var(--gold); margin: 0 auto 1rem; display: block; }
.contact-card h4 { font-family: var(--serif); font-size: .85rem; color: rgba(245,240,232,.45); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .65rem; }
.contact-card a { color: var(--parchment); font-size: .88rem; transition: color .2s; }
.contact-card a:hover { color: var(--gold); }

/* ─── FOOTER ─── */
footer {
  background: #090807;
  padding: 2.5rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(184,146,74,.1);
}
.footer-logo { font-family: var(--serif); font-size: 1rem; color: rgba(245,240,232,.35); letter-spacing: .04em; }
.footer-logo span { color: var(--gold); }
.footer-copy { font-size: .7rem; color: rgba(245,240,232,.2); letter-spacing: .08em; }
.footer-social { display: flex; gap: 1.1rem; }
.footer-social a {
  width: 30px; height: 30px;
  border: 1px solid rgba(184,146,74,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,240,232,.35); font-size: .63rem; font-weight: 500;
  letter-spacing: .03em; transition: all .2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

/* ─── ACHIEVEMENTS LIST ─── */
.ach-list { display: flex; flex-direction: column; gap: 0; }
.ach-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 2rem;
  align-items: baseline; padding: 1.3rem 0;
  border-bottom: 1px solid rgba(184,146,74,.13);
  transition: opacity .2s;
}
.ach-item:hover { opacity: .8; }
.ach-year {
  font-family: var(--serif); font-size: .85rem;
  color: var(--gold); letter-spacing: .05em; line-height: 1.4;
  padding-top: .1rem;
}
.ach-title {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--parchment); line-height: 1.4;
  margin-bottom: .25rem;
}
.ach-title em { font-style: italic; }
.ach-venue { font-size: .78rem; color: rgba(245,240,232,.45); }
.ach-note  { font-size: .78rem; color: rgba(245,240,232,.3); font-style: italic; margin-top: .3rem; }

/* ─── DIVIDER ─── */
.ornament-divider { display: flex; align-items: center; gap: 1.5rem; margin: 3rem 0 0; }
.ornament-divider .line { flex: 1; height: 1px; background: var(--rule); }
.ornament-divider .glyph { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); opacity: .5; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }
@keyframes slideRight { from { left:-100%; } to { left:100%; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── HAMBURGER MENU ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 17px;
  background: none; border: none; cursor: pointer;
  padding: 0; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--parchment);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
nav:not(.nav-dark) .nav-hamburger span { background: var(--ink); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.75px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.75px) rotate(-45deg); }

/* ─── MOBILE DRAWER ─── */
.nav-drawer {
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(14,13,11,0.97);
  backdrop-filter: blur(20px);
  z-index: 98;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .28s ease, transform .28s ease;
}
.nav-drawer.open {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
}
.nav-drawer ul {
  list-style: none; text-align: center;
  width: 100%; max-width: 420px;
}
.nav-drawer ul li a {
  display: block; padding: 1.15rem 2rem;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 300;
  letter-spacing: .06em;
  color: rgba(245,240,232,.55);
  border-bottom: 1px solid rgba(184,146,74,.1);
  transition: color .2s, padding-left .2s;
}
.nav-drawer ul li:first-child a { border-top: 1px solid rgba(184,146,74,.1); }
.nav-drawer ul li a:hover,
.nav-drawer ul li a.active { color: var(--gold); padding-left: 2.6rem; }
.nav-drawer-langs {
  margin-top: 2.5rem;
  display: flex;
  gap: .5rem;
}
.nav-drawer-langs a {
  font-size: .73rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(245,240,232,.35);
  border: 1px solid rgba(184,146,74,.2); padding: .45rem 1rem; border-radius: 2px;
  transition: all .2s;
}
.nav-drawer-langs a:hover,
.nav-drawer-langs a.active { color: var(--gold); border-color: var(--gold); }
body.menu-open { overflow: hidden; }

/* ─── HOME — UPCOMING EVENTS ─── */
.upcoming-cta { margin-top: 3rem; }

/* Pusta lista wydarzeń */
.events-empty {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: rgba(245,240,232,.28);
  padding: 2.5rem 0;
  letter-spacing: .03em;
}

/* ─── HOME — PHOTO GALLERY ─── */
.gallery-section { }
.photo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--rule);
  aspect-ratio: 2 / 3;       /* portretowy format — zmień na 3/4 jeśli wolisz */
  display: flex;
  flex-direction: column;
}
.photo-frame:nth-child(2) { margin-top: 2.5rem; }
.photo-frame img {
  width: 100%;
  flex: 1;                   /* wypełnia całą ramkę po odjęciu figcaption */
  min-height: 0;
  object-fit: cover;
  object-position: var(--focus, 50% 30%);
  display: block;
  transition: transform .5s ease;
}
.photo-frame:hover img { transform: scale(1.03); }
.photo-placeholder {
  background: linear-gradient(145deg, #e8e0ce 0%, #d4c9ae 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1;
  gap: 1rem;
}
.photo-placeholder svg { width: 36px; height: 36px; color: rgba(107,100,85,.35); }
.photo-placeholder-text {
  font-size: .65rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(107,100,85,.5); text-align: center; line-height: 1.6;
}
.photo-frame figcaption {
  padding: .65rem 1rem;
  font-size: .68rem; letter-spacing: .1em;
  color: var(--muted); text-align: right;
  border-top: 1px solid var(--rule);
  background: var(--parchment);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  nav, .s-wrap, .s-wrap-sm, .page-hero { padding-left: 2.5rem; padding-right: 2.5rem; }
  .bio-grid { grid-template-columns: 1fr; gap: 3rem; }
  .bio-portrait { max-width: 340px; }
  .research-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sound-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 360px; }
  .home-teasers { padding-left: 2.5rem; padding-right: 2.5rem; }
  footer { padding-left: 2.5rem; padding-right: 2.5rem; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-frame:nth-child(3) { grid-column: span 2; aspect-ratio: 3 / 2; }
  .photo-frame:nth-child(3) img { object-position: var(--focus, 50% 30%); }
}
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  #hero, .page-hero, .s-wrap, .s-wrap-sm { padding-left: 1.5rem; padding-right: 1.5rem; }
  .home-teasers { padding-left: 1.5rem; padding-right: 1.5rem; }
  .teaser-grid { grid-template-columns: 1fr; }
  .hero-wave { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .sound-grid { grid-template-columns: 1fr; }
  .film-item { grid-template-columns: 60px 1fr; }
  .film-badge { display: none; }
  footer { padding: 2rem 1.5rem; flex-direction: column; gap: 1.5rem; text-align: center; }
  .hero-scroll { left: 1.5rem; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-frame:nth-child(2) { margin-top: 0; }
  .photo-frame:nth-child(3) { grid-column: auto; aspect-ratio: 2 / 3; }
}
