/* Shared chrome for every page: nav, text roll, pill, full-screen menu, page wipe, visor footer.
   Palette: garden #22271D, cream #F2F0E7, stone #B9BBAA, ink #141511, ember #E8642C */
:root {
  --c-garden: #22271d; --c-garden-2: #2e3427; --c-cream: #f2f0e7; --c-stone: #b9bbaa; --c-ink: #141511; --c-ember: #e8642c;
  --f-sans: "Mona Sans", "Arial Black", Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --c-edge: clamp(16px, 2.6vw, 40px);
  --c-ease: cubic-bezier(.22, .8, .2, 1);
}
.serif { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.01em; text-transform: none; }
.sans { font-family: var(--f-sans); font-weight: 850; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.035em; }

/* Text roll on hover */
.roll { display: inline-flex; overflow: hidden; text-decoration: none; }
.roll span { position: relative; display: inline-block; transition: transform .45s var(--c-ease); }
.roll span::after { content: attr(data-t); position: absolute; left: 0; top: calc(100% + 1em); }
@media (hover: hover) { .roll:hover span { transform: translateY(calc(-100% - 1em)); } }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) var(--c-edge) 14px; color: var(--c-cream); transition: color .4s; pointer-events: none; font-family: var(--f-sans); }
.nav > * { pointer-events: auto; }
.nav.is-light { color: var(--c-ink); }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: .82; color: inherit; }
.logo__a { font: 400 1.55rem/.8 var(--f-serif); }
.logo__b { font: 850 1.3rem/.9 var(--f-sans); font-stretch: 115%; text-transform: uppercase; letter-spacing: -.03em; }
.nav__links { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-weight: 650; font-size: .9rem; text-transform: uppercase; letter-spacing: .01em; }
.nav__links a { color: inherit; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: .62em 1.1em; border-radius: 999px; background: var(--c-ember); color: var(--c-ink) !important; font-weight: 750; text-transform: uppercase; font-size: .85rem; letter-spacing: .01em; font-family: var(--f-sans); }
@media (max-width: 560px) { .nav__links a:not(.pill) { display: none; } }

/* Menu button: a small square, like a camera's function button */
.menu-btn { position: relative; width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--c-cream); color: var(--c-ink); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background-color .3s, transform .3s var(--c-ease); }
.nav.is-light .menu-btn { background: var(--c-ink); color: var(--c-cream); }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--c-ease), top .45s var(--c-ease); }
.menu-btn i:nth-child(1) { top: 16px; } .menu-btn i:nth-child(2) { top: 24px; }
.menu-open .menu-btn { background: var(--c-ember) !important; color: var(--c-ink) !important; }
.menu-open .menu-btn i:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { top: 20px; transform: rotate(-45deg); }
html.menu-open .nav, html.menu-open .nav.is-light { color: var(--c-cream); }
html.menu-open .nav .menu-btn { background: var(--c-ember); color: var(--c-ink); }

/* Full-screen menu */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--c-garden); color: var(--c-cream); display: grid; grid-template-columns: 1.3fr 1fr; gap: 4vw; padding: 16vh var(--c-edge) 6vh; clip-path: inset(0 0 100% 0 round 0 0 40px 40px); transition: clip-path .8s var(--c-ease); visibility: hidden; overflow: hidden; }
.menu-open .menu { clip-path: inset(0 0 0 0 round 0); visibility: visible; }
.menu canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.menu__list { position: relative; list-style: none; margin: 0; padding: 0; align-self: center; }
.menu__list li { overflow: hidden; }
.menu__list a { display: flex; align-items: baseline; gap: .25em; white-space: nowrap; text-decoration: none; color: inherit; font-size: clamp(2.6rem, 6.4vw, 6.4rem); line-height: .95; transform: translateY(105%); transition: transform .8s var(--c-ease), color .3s; }
.menu-open .menu__list a { transform: none; }
.menu__list li:nth-child(2) a { transition-delay: .05s; } .menu__list li:nth-child(3) a { transition-delay: .1s; } .menu__list li:nth-child(4) a { transition-delay: .15s; } .menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu__list a:hover, .menu__list a:focus-visible { color: var(--c-ember); }
.menu__list .serif { font-size: .95em; }
.menu__side { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.menu__peek { aspect-ratio: 4 / 3; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--c-garden-2); }
.menu__peek img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .9s var(--c-ease); }
.menu__peek img.is-swap { opacity: 0; transform: scale(1.06); }
.menu__note { font: 400 1.25rem/1.3 var(--f-serif); color: var(--c-stone); }
.menu__note a { color: var(--c-cream); }
@media (max-width: 760px) { .menu { grid-template-columns: 1fr; padding-top: 14vh; } .menu__side { display: none; } }

/* Page wipe: an ember panel then a garden panel sweep up between pages */
.wipe { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.wipe i { position: absolute; inset: 0; transform: translateY(100%); }
.wipe i:nth-child(1) { background: var(--c-ember); }
.wipe i:nth-child(2) { background: var(--c-garden); }
.wipe b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; color: var(--c-cream); font: 400 clamp(2rem, 5vw, 4rem)/1 var(--f-serif); white-space: nowrap; }
html.wipe-out .wipe i { animation: wipeIn .6s var(--c-ease) forwards; }
html.wipe-out .wipe i:nth-child(2) { animation-delay: .1s; }
html.wipe-out .wipe b { animation: fadeIn .3s .45s forwards; }
html.wipe-in .wipe i { transform: none; animation: wipeAway .75s .1s var(--c-ease) forwards; }
html.wipe-in .wipe i:nth-child(1) { animation-delay: .2s; }
html.wipe-in .wipe b { opacity: 1; animation: fadeOut .25s forwards; }
@keyframes wipeIn { to { transform: none; } }
@keyframes wipeAway { to { transform: translateY(-100%); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

/* Visor footer */
.vfoot { background: var(--c-ember); padding: clamp(14px, 2vw, 26px); font-family: var(--f-sans); }
.visor { position: relative; background: var(--c-garden); color: var(--c-cream); border-radius: clamp(28px, 6vw, 100px) clamp(28px, 6vw, 100px) 28px 28px; padding: clamp(70px, 12vh, 140px) var(--c-edge) clamp(30px, 5vh, 60px); text-align: center; overflow: hidden; }
.visor__title { position: relative; display: inline-block; margin: 0; font-size: clamp(3rem, 8vw, 9rem); line-height: .85; }
.visor__title .serif { color: var(--c-ember); }
.visor__cols { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 24px; align-items: center; margin: clamp(40px, 8vh, 80px) 0; }
.visor__cols > div:not(.visor__photo) { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; text-transform: uppercase; font-size: 1.05rem; }
.visor__cols a { color: inherit; }
.visor__h { margin: 0 0 6px; font: 400 1.05rem/1 var(--f-serif); text-transform: none; color: var(--c-stone); }
.visor__photo { border-radius: 999px; overflow: hidden; aspect-ratio: 16 / 9; }
.visor__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vfoot__bar { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 16px 8px 4px; color: var(--c-ink); font-weight: 700; font-size: .78rem; text-transform: uppercase; }
@media (max-width: 760px) { .visor__cols { grid-template-columns: 1fr 1fr; } .visor__photo { grid-column: 1 / -1; order: -1; } }

/* Hand-drawn scribble that draws itself */
.scribble { position: absolute; pointer-events: none; overflow: visible; }
.scribble path { fill: none; stroke: var(--c-ember); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--c-ease); }
.scribble.is-drawn path { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .menu, .menu__list a, .wipe i { transition: none !important; animation: none !important; }
  .scribble path { stroke-dashoffset: 0; transition: none; }
}

/* The menu bar spans the full width but is mostly empty: let clicks pass through the empty parts,
   so links scrolled up beneath it (like "All albums") never get swallowed by an invisible bar */
.nav { pointer-events: none; }
.nav a, .nav button, .nav .nav__links, .nav .logo { pointer-events: auto; }
