/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #F2EBDD;
  --parchment:#E6DCC8;
  --charcoal: #16150F;
  --ink:      #25231B;
  --warm-mid: #5F584E;
  --sage:     #7E9279;
  --dust:     #B68A74;
  --dust-deep:#9C6F58;
  --white:    #FBF8F1;
  --line:     #3B362C;
  --line-soft:rgba(59,54,44,0.16);

  --font-sans:  'Space Grotesk', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  /* layered paper tint — breaks the flat fill */
  background-image:
    radial-gradient(ellipse 70% 50% at 80% -5%, rgba(182,138,116,0.10), transparent 60%),
    radial-gradient(ellipse 60% 45% at 0% 105%, rgba(126,146,121,0.08), transparent 60%);
  background-attachment: fixed;
}

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

::selection { background: var(--dust); color: var(--white); }

/* ─── Paper grain — heavier, two layers for a worked surface ─── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.09;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
/* fine fibre grain layered on top */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.32' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: 320px 320px;
}

/* ─── Container ─── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* ─── Ornaments (reusable) ─── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--dust);
  margin: 0 auto;
}
.ornament-mark {
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  padding-left: 0.4em;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.is-stuck { border-bottom: 1px solid var(--line-soft); }

.nav-logo {
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--charcoal);
  border: 1px solid var(--line);
  padding: 0.28rem 0.55rem 0.22rem;
  line-height: 1;
}

.nav-cta {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-mid);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-cta:hover { color: var(--charcoal); border-color: var(--charcoal); }

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(59,54,44,0.025) 39px 40px),
    radial-gradient(ellipse 80% 60% at 50% 38%, #E9DCC6 0%, var(--cream) 70%);
}

.hero-glow {
  content: '';
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(182,138,116,0.20) 0%, transparent 68%);
  top: 8%; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dust-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.hero-title {
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.92;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04em;
}

.hero-title span { display: block; }

.hero-title em {
  color: var(--dust-deep);
  font-weight: 700;
}

.hero-rule {
  display: none;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: var(--warm-mid);
  max-width: 34ch;
}

.hero-scroll {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
}
.hero-scroll span.scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dust);
  writing-mode: vertical-rl;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, transparent, var(--dust));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ─── Buttons ─── */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8rem 2.1rem;
  border: 1px solid var(--charcoal);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: transparent;
  box-shadow: 4px 4px 0 var(--line-soft);
  transition: background 0.25s, color 0.25s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--charcoal);
  color: var(--cream);
  box-shadow: 0 0 0 var(--line-soft);
  transform: translate(2px, 2px);
}
.btn-light {
  border-color: var(--cream);
  color: var(--cream);
  box-shadow: 4px 4px 0 rgba(253,252,250,0.18);
}
.btn-light:hover {
  background: var(--cream);
  color: var(--charcoal);
  box-shadow: 0 0 0 transparent;
}

/* ─── Section shared ─── */
section { padding: 7rem 0; position: relative; }

/* section index in the margin */
.section-index {
  position: absolute;
  top: 2.4rem;
  left: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--dust);
  opacity: 0.8;
}

.overline {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dust-deep);
  margin-bottom: 2.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}

/* ─── Portrait ─── */
.portrait {
  background: var(--parchment);
  padding: 7rem 0;
}
.portrait .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.portrait-frame {
  position: relative;
  padding: 0.85rem;
  border: 1px solid var(--line);
}
.portrait-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, var(--dust) 0%, var(--dust-deep) 55%, #6f4d3c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.96);
  display: block;
}
.portrait-media.is-empty img { display: none; }
.portrait-tag {
  position: absolute;
  bottom: 0.85rem; left: 0.85rem;
  z-index: 3;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.3rem 0.6rem;
}
.portrait-body .overline { margin-bottom: 1.8rem; }
.portrait-name {
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--charcoal);
  margin-bottom: 1.4rem;
}
.portrait-name em { color: var(--dust-deep); }
.portrait-copy {
  font-size: 1.08rem;
  font-weight: 300;
  color: var(--warm-mid);
  line-height: 1.8;
  max-width: 42ch;
}
.portrait-meta {
  margin-top: 2rem;
  display: flex;
  gap: 2.4rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.4rem;
}
.portrait-meta div span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 0.4rem;
}
.portrait-meta div strong {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--charcoal);
}

/* ─── Manifeste ─── */
.manifeste {
  background: var(--charcoal);
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.manifeste::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.manifeste .container {
  max-width: 700px;
  z-index: 2;
}
.manifeste-label {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(182,138,116,0.7);
  margin-bottom: 2.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
}
.manifeste-verse {
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.7;
  color: var(--cream);
}
.manifeste-source {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(182,138,116,0.5);
  margin-top: 2.4rem;
  display: inline-block;
}

/* ─── Vidéos ─── */
.videos { background: var(--parchment); }
.videos .container { position: relative; }

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

.video-item {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  background: var(--charcoal);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: box-shadow 0.25s var(--ease-out);
}
.video-thumb:hover { box-shadow: 0 12px 36px rgba(22,21,15,0.18); }
.video-thumb:focus-visible { outline: 2px solid var(--dust); outline-offset: 3px; }

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.02) saturate(0.9);
  transition: transform 0.45s var(--ease-out), filter 0.3s;
}
.video-thumb:hover img { transform: scale(1.03); filter: contrast(1.04) saturate(1); }

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--cream);
  pointer-events: none;
  background: rgba(22,21,15,0.36);
  transition: background 0.25s;
  text-shadow: 0 2px 14px rgba(22,21,15,0.55);
}
.video-thumb:hover .video-play { background: rgba(22,21,15,0.18); }

.video-thumb iframe,
.video-thumb > div[id^='yt-player-'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #1a1915;
  color: var(--dust, #b8a98a);
  cursor: pointer;
  transition: opacity 0.2s;
}
.video-fallback:hover { opacity: 0.85; }
.video-fallback-icon {
  font-size: 2.5rem;
  color: #fff;
  opacity: 0.85;
}
.video-fallback-text {
  font-family: var(--font-sans, sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8b99a;
}

.video-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}
.video-title em {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--dust-deep);
}

.lyrics-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, var(--white) 0%, rgba(230,220,200,0.3) 100%);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--charcoal);
  transition: all 0.3s var(--ease-out);
  outline: none;
  border-radius: 2px;
}
.lyrics-toggle:hover {
  background: linear-gradient(135deg, var(--parchment) 0%, rgba(230,220,200,0.6) 100%);
  border-color: var(--dust-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22,21,15,0.08);
}
.lyrics-toggle:focus-visible {
  outline: 2px solid var(--dust);
  outline-offset: 2px;
}
.lyrics-toggle.is-expanded {
  border-color: var(--dust-deep);
  background: linear-gradient(135deg, rgba(230,220,200,0.4) 0%, rgba(206,180,160,0.3) 100%);
}

.lyrics-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dust-deep);
}

.lyrics-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.3rem;
  color: var(--dust);
  transition: transform 0.3s var(--ease-out), color 0.3s;
}
.lyrics-toggle:hover .lyrics-icon {
  color: var(--dust-deep);
}
.lyrics-toggle.is-expanded .lyrics-icon {
  transform: rotate(45deg);
  color: var(--dust-deep);
}

.lyrics-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
  border: 1px solid var(--line-soft);
  border-top: none;
  background: linear-gradient(to bottom, var(--white) 0%, rgba(250,248,241,0.5) 100%);
}
.lyrics-content.is-expanded {
  max-height: 2000px;
}

.lyrics-section {
  padding: 1.4rem 1.2rem;
  border-bottom: 1px solid rgba(59,54,44,0.08);
}
.lyrics-section:last-child {
  border-bottom: none;
}

.lyrics-heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dust-deep);
  font-weight: 600;
  margin: 0 0 0.8rem 0;
  padding: 0;
}

.lyrics-content p {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.75;
  letter-spacing: 0.2px;
}

.lyrics-italic {
  color: var(--warm-mid);
  opacity: 0.85;
}

/* ─── Lyrics Modal/Sidebar ─── */
.lyrics-modal {
  position: fixed;
  right: 0;
  top: 0;
  width: 320px;
  height: 100vh;
  display: none;
  z-index: 200;
  font-family: var(--font-sans);
  align-items: stretch;
  justify-content: flex-end;
}
.lyrics-modal.is-open {
  display: flex;
}
.lyrics-modal.is-open .lyrics-modal-overlay {
  display: none;
}

.lyrics-modal-overlay {
  display: none;
}

.lyrics-modal-panel {
  background: var(--cream);
  border: none;
  border-radius: 0;
  border-left: 1px solid var(--line-soft);
  max-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  animation: slideInSidebar 0.4s var(--ease-out);
  position: relative;
}

@keyframes slideInSidebar {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.lyrics-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.lyrics-modal-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.lyrics-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--dust-deep);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, transform 0.2s;
  outline: none;
}
.lyrics-modal-close:hover {
  color: var(--charcoal);
  transform: scale(1.1);
}
.lyrics-modal-close:focus-visible {
  outline: 2px solid var(--dust);
  outline-offset: 2px;
}

.lyrics-modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 1rem;
  font-size: 0.9rem;
}

.lyrics-modal-body .lyrics-section {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(59,54,44,0.06);
}
.lyrics-modal-body .lyrics-section:last-child {
  border-bottom: none;
}

.lyrics-modal-body .lyrics-heading {
  margin: 0 0 0.8rem 0;
}

.lyrics-modal-body p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: 0.2px;
}

.lyrics-modal-body .lyrics-italic {
  color: var(--warm-mid);
  opacity: 0.85;
}

/* ─── Footer ─── */
.footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(182,138,116,0.2);
  padding: 2.6rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.05rem;
  color: rgba(253,252,250,0.6);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.footer-yt {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253,252,250,0.45);
  border-bottom: 1px solid rgba(182,138,116,0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-yt:hover { color: rgba(253,252,250,0.9); border-color: rgba(182,138,116,0.7); }

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(253,252,250,0.3);
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-line { animation: none; }
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .portrait .container { grid-template-columns: 1fr; gap: 2.4rem; }
  .portrait-frame { max-width: 420px; }
}

@media (max-width: 600px) {
  .videos-grid { grid-template-columns: 1fr; }
  .nav { padding: 1rem 1.4rem; }
  .container { padding: 0 1.4rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section-index { display: none; }
  .hero::after { inset: 0.7rem; }
}
