/* ============================================
   FONTS
   ============================================ */
@font-face {
  font-family: 'PP Rader';
  src: url('fonts/PPRader-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Rader';
  src: url('fonts/PPRader-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SC Mozart';
  src: url('fonts/SCMozartUnlicensedTrial-Reg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --color-bg-body: #2E160B;
  --color-section-bg: #EFEDE5;
  --color-eggshell: #F9F8F5;
  --color-soft-linen: #EFEDE5;
  --color-oatmilk: #E2DCCE;
  --color-text: #000000;
  --color-text-muted: rgba(0, 0, 0, 0.6);

  --font-display: 'PP Rader', Georgia, serif;
  --font-body: 'SC Mozart', Georgia, serif;

  --radius-section: 32px;
  --radius-image: 16px;
  --radius-pill: 25px;

  --gap-sections: 4px;
  --content-max-width: 1240px;
  --nav-btn-size: 50px;
  --nav-gap: 8px;
  --nav-pad: 8px;
  --content-left-padding: 132px;
  --padding-section-y: 64px;
  --padding-section-x: 32px;
}


/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg-body);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.2;
  overflow-x: hidden;
}

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


/* ============================================
   TYPOGRAPHY
   ============================================ */
.t-hero { font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1.1; }
.t-h1 { font-family: var(--font-display); font-weight: 400; font-size: 64px; line-height: 1.1; text-transform: uppercase; }
.t-h2 { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.1; }
.t-body { font-family: var(--font-body); font-weight: 400; font-size: 24px; line-height: 1.2; }
.t-caption { font-family: var(--font-display); font-weight: 400; font-size: 16px; line-height: 1.2; color: var(--color-text-muted); }
.t-label { font-family: var(--font-display); font-weight: 500; font-size: 16px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.t-chrono-label { font-family: var(--font-display); font-weight: 400; font-size: 17px; line-height: 1.2; }
.t-sources-label { font-family: var(--font-display); font-weight: 400; font-size: 16px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em; }


/* ============================================
   SECTIONS — desktop: min-height 100vh
   ============================================ */
.section { background: var(--color-section-bg); width: 100%; margin-bottom: var(--gap-sections); }
.section__inner { max-width: var(--content-max-width); margin: 0 auto; padding: var(--padding-section-y) var(--padding-section-x); padding-left: var(--content-left-padding); }
.section--hero { min-height: 50vh; border-radius: 0 0 var(--radius-section) var(--radius-section); display: flex; align-items: center; }
.section--hero .section__inner { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; padding-top: 32px; padding-bottom: 48px; }
.section--rounded { border-radius: var(--radius-section); min-height: 100vh; }
.section--fullwidth-image { border-radius: var(--radius-section); overflow: hidden; padding: 0; height: 70vh; min-height: 500px; max-height: 1025px; }
.section--fullwidth-image img { width: 100%; height: 100%; object-fit: cover; }


/* ============================================
   LAYOUT
   ============================================ */
.columns { display: flex; gap: 32px; align-items: flex-start; }
.col { flex: 1; min-width: 0; }
.content-block { display: flex; flex-direction: column; gap: 32px; }
.content-block__text { display: flex; flex-direction: column; gap: 32px; }
.content-block__heading { margin-bottom: 32px; }

.captioned-image { display: flex; flex-direction: column; }
.captioned-image img { border-radius: var(--radius-image); width: 100%; object-fit: cover; }
.captioned-image__caption { margin-top: 2px; }


/* ============================================
   SOURCE LINKS
   ============================================ */
.sources { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.sources__title { margin-bottom: 4px; }
.source-link { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: rgba(255,255,255,0.5); border-radius: 999px; color: var(--color-text); font-family: var(--font-body); font-size: 24px; font-weight: 400; transition: background 0.2s; }
.source-link:hover { background: rgba(255,255,255,0.8); }
.source-link__arrow { margin-left: auto; opacity: 0.4; transition: transform 0.2s; }
.source-link:hover .source-link__arrow { transform: translateX(4px); }


/* ============================================
   FOOTER
   ============================================ */
.footer { width: 100%; }
.footer { position:relative; z-index:100; background:var(--color-bg-body); }
.footer__inner { max-width: var(--content-max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 16px var(--content-left-padding); color: var(--color-section-bg); }
.footer__credit { opacity:0.35; transition:opacity 0.3s ease; }
.footer__credit:hover { opacity:1; }
.footer__credit a { color:inherit; text-decoration:none; }
sup { font-size:0.65em; vertical-align:baseline; position:relative; top:-0.4em; line-height:0; }
.footer__text { font-family: var(--font-display); font-size: 17px; font-weight: 400; }


/* ============================================
   NAVIGATION — DESKTOP
   ============================================ */
.nav {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 100;
}

.nav__bg-svg { display: none; }

.nav__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--nav-gap);
  padding: var(--nav-pad);
  z-index: 1;
            background: var(--color-eggshell);
            border-radius: 33px;
            width: 66px;
            overflow: visible;
        }

.nav__logo {
  height: var(--nav-btn-size);
  width: var(--nav-btn-size);
  background: var(--color-soft-linen);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  overflow: hidden;
  cursor: pointer;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  position: relative;
}
.nav.is-open .nav__wrapper, .nav.has-hover .nav__wrapper { width: auto; }

        .nav.is-open .nav__logo { width: auto; padding: 0 32px; justify-content: flex-start; }
.nav__logo-full { display: none; }
.nav.is-open .nav__logo-acronym { display: none; }
.nav.is-open .nav__logo-full { display: block; }

.nav__burger {
  height: var(--nav-btn-size);
  width: var(--nav-btn-size);
  background: transparent;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav__burger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--color-text);
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav__burger.is-close span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav__burger.is-close span:nth-child(2) { opacity: 0; }
.nav__burger.is-close span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ---- Nav items ---- */
.nav__item { position: relative; }

.nav__item-btn {
            box-shadow: 0 0 0 8px var(--color-eggshell);
  background: var(--color-section-bg);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 21px;
  padding: 0 21px;
  overflow: hidden;
  height: var(--nav-btn-size);
  width: var(--nav-btn-size);
  min-width: var(--nav-btn-size);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              min-width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  text-align: left;
  position: relative;
}

.nav__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.nav__item:not(.is-current-page) .nav__dot { background: transparent; }
.nav__item.is-current-page .nav__dot { background: var(--color-oatmilk); }
.nav__item.is-current-page .nav__dot.is-active { background: var(--color-text); }

.nav__label {
  font-family: var(--font-display);
  font-weight: 500; font-size: 25px; line-height: 1.1;
  white-space: nowrap; text-transform: uppercase;
  color: var(--color-text);
}

/* Hover: expand with min-width to avoid flash */
.nav__item-btn:hover {
            width: fit-content;
            min-width: 140px;
            box-shadow: 0 0 0 8px var(--color-eggshell);
        }

.nav.is-open .nav__item-btn {
            width: auto;
            min-width: 200px;
        }

/* Active page: vertically expanded */
.nav__item.is-current-page .nav__item-btn {
  height: auto;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 21px;
  gap: 0;
}

.nav__item-primary { display: flex; align-items: center; gap: 21px; width: 100%; }

.nav__item-subs { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }

.nav__sub {
  display: flex; align-items: center; gap: 21px;
  cursor: pointer; text-decoration: none;
  color: var(--color-text); padding: 2px 0;
}

.nav__sub-label {
  font-family: var(--font-display);
  font-weight: 500; font-size: 25px; line-height: 1.1;
  white-space: nowrap; transition: opacity 0.2s;
}
.nav__sub:hover .nav__sub-label { opacity: 0.6; }

/* Fallback bg container */
/* nav bg panel removed */



/* ============================================
   MOBILE NAVIGATION — 3 states
   ============================================ */
.mob { display: none; }

@media (max-width: 768px) {
  .mob {
    display: block;
    position: fixed;
    top: 16px; left: 16px; right: 16px;
    z-index: 200;
    background: var(--color-eggshell);
    border-radius: 33px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }

  .mob.is-hidden { transform: translateY(-100%); }

  /* ---- Top bar ---- */
  .mob__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    min-height: 56px;
  }

  .mob__logo {
    height: 40px;
    background: none;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .mob__logo svg path { fill: var(--color-text); }


  .mob__burger {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none; background: var(--color-soft-linen);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 5px;
    cursor: pointer; flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .mob__burger span {
    display: block; width: 18px; height: 1.5px;
    background: var(--color-text);
    transition: all 0.3s ease;
    transform-origin: center;
  }
  .mob__burger.is-close span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .mob__burger.is-close span:nth-child(2) { opacity: 0; }
  .mob__burger.is-close span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

  /* ---- Sub-sections (current page) ---- */
  .mob__subs {
    padding: 0 8px 8px;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding-bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease;
    opacity: 1;
  }
  .mob__subs.is-collapsed {
    max-height: 0;
    padding-bottom: 0;
    opacity: 0;
  }

  .mob__subs-inner {
    background: var(--color-section-bg);
    border-radius: 25px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
  }

  .mob__sub-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 0;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500; font-size: 20px;
    opacity: 1;
  }

  .mob__sub-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-text);
    flex-shrink: 0;
  }

  /* ---- Full menu (all pages) ---- */
  .mob__menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease,
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 8px;
  }
  .mob__menu.is-open {
    max-height: 700px;
    opacity: 1;
    padding: 0 8px 8px;
  }

  .mob__menu-inner {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mob__menu-link {
    display: block;
    padding: 16px;
    border-radius: 50px;
    background-color: var(--color-section-bg);
    font-family: var(--font-display);
    font-weight: 500; font-size: 20px;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.2s;
  }
  .mob__menu-link:active { opacity: 0.5; }

  /* ---- Content push via hero padding ---- */
}



/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --content-left-padding: 24px;
    --padding-section-x: 24px;
    --padding-section-y: 32px;
    --radius-section: 16px;
  }
  .t-hero { font-size: 32px; }
  .t-h1 { font-size: 28px; }
  .t-h2 { font-size: 24px; }
  .t-body { font-size: 18px; }
  .t-chrono-label { font-size: 14px; }
  .source-link { font-size: 18px; }

  /* Hide desktop nav */
  .nav { display: none!important; }

  /* Hide old inline mobile-nav */
  .mobile-nav { display: none!important; }

  .columns { flex-direction: column; }
  .section--hero { min-height: auto; transition: padding-top 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
  .section--hero .section__inner { min-height: auto; padding-top: 32px; padding-bottom: 16px; }
  .section--rounded { min-height: auto; }
  .section--fullwidth-image { height: 260px; min-height: 200px; }
  .chrono-row { flex-direction: column; gap: 4px; }
  .chrono-cell--period, .chrono-cell--dates { width: 100%; }
  .chrono-cell--dates { opacity: 0.6; }
  .chrono-cell--desc { margin-top: 8px; }
  .footer { position:relative; z-index:100; background:var(--color-bg-body); }
.footer__inner { padding: 16px 24px; }
}

@media (min-width: 769px) {
  .mob { display: none!important; }
  .mobile-nav { display: none; }
}

  /* per-item outline */
  .nav__item-btn { position: relative; }
  .nav__item-btn::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius-pill); /* border removed */ transition: border-color 0.2s ease; pointer-events: none; }
  .nav__item-btn:hover::before { /* border removed */ }
  .nav__logo { position: relative; }
  .nav__logo::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius-pill); border: 2px solid transparent; transition: border-color 0.2s ease; pointer-events: none; }
  .nav__logo:hover::before { border-color: rgba(0,0,0,0.18); }

/* ============================================
   INFO BLOCKS (about, musée)
   ============================================ */
.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px 32px; margin-bottom:48px; }
.info-block {}
.info-block__label { margin-bottom:12px; }
.info-block__content { font-family:var(--font-body); font-size:24px; line-height:1.4; }
.info-block__content a { text-decoration:underline; text-underline-offset:3px; }

/* ============================================
   COLLAB LIST & LABELS (shared)
   ============================================ */
.collab-list { display:flex; flex-wrap:wrap; gap:16px 24px; }
.collab-list__item { font-family:var(--font-body); font-size:24px; line-height:1.4; }
.sub-section-label { font-family:var(--font-display); font-weight:500; font-size:16px; text-transform:uppercase; letter-spacing:0.04em; color:var(--color-text-muted); margin-bottom:12px; }
