/* menni media — shared styles for every page (tokens, nav, menu, cursor, footer, lightbox) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --tan:    #F0ECE4;
  --tan2:   #E8E2D8;
  --tan3:   #D6CFC3;
  --black:  #0C0C0A;
  --ink2:   #161614;
  --red:    #E03A10;
  --red-dim: rgba(224,58,16,0.12);
  --muted:  #6E685E;              /* readable on tan (≈5:1) */
  --muted-dark: rgba(240,236,228,.62); /* readable on black */
  --serif:  'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --ease:   cubic-bezier(.16,1,.3,1);
  --nav-h:  76px;
}

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--sans);
  background: var(--tan);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--red); color: var(--tan); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Film-grain overlay */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9990; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' 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;
}

/* ─── CUSTOM CURSOR (mouse/trackpad only) ─────────────────── */
#cursor, #cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
  body.has-cursor input, body.has-cursor textarea, body.has-cursor select { cursor: text; }
  body.has-cursor select { cursor: pointer; }
  #cursor, #cursor-ring {
    /* Top-most layer so it stays visible over the gallery viewer and video player */
    display: block; position: fixed; left: 0; top: 0; pointer-events: none; z-index: 2147483000;
    border-radius: 50%; opacity: 0; mix-blend-mode: difference; will-change: transform;
    transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s;
  }
  #cursor { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--tan); }
  #cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(240,236,228,.7); }
  body.cursor-on #cursor, body.cursor-on #cursor-ring { opacity: 1; }
  body.cursor-text #cursor, body.cursor-text #cursor-ring { opacity: 0; }
  body.hovering #cursor { width: 0; height: 0; margin: 0; }
  body.hovering #cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--tan); border-color: var(--tan); }
  body.cursor-label #cursor-ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--tan); }
  #cursor-ring::after {
    content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font: 600 .62rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--black);
    opacity: 0; transition: opacity .2s;
  }
  body.cursor-label #cursor-ring::after { opacity: 1; }
}

/* ─── NAV ──────────────────────────────────────────────────── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 4vw;
  background: rgba(240,236,228,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12,12,10,0.07);
  transition: background .4s, border-color .4s, color .4s;
}
/* Over the dark hero the bar is clear with light text; it turns solid once you scroll. */
nav.site-nav.on-dark { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--tan); }
.nav-logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: inherit; white-space: nowrap; }
.nav-logo-main { font-size: 1.1rem; font-weight: 800; letter-spacing: 0.02em; }
.nav-logo-main span { color: var(--red); }
.nav-logo-sub { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: .6; margin-top: 3px; }
.nav-links { display: flex; gap: 2.4rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; opacity: 0.65; transition: opacity .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--red);
  transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta {
  background: var(--red); color: var(--tan) !important; opacity: 1 !important; white-space: nowrap;
  padding: .7rem 1.3rem; border-radius: 100px; transition: transform .2s, box-shadow .2s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(224,58,16,0.35); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: none; background: none; color: inherit; position: relative; z-index: 2;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 27px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile full-screen menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 490; background: var(--black); color: var(--tan);
  display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 2rem) 8vw 3rem;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); visibility: hidden;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
body.menu-open nav.site-nav { background: transparent; border-color: transparent; color: var(--tan); backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open { overflow: hidden; }
.mobile-menu ul { list-style: none; }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 1rem; font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 4rem);
  line-height: 1.15; text-decoration: none; padding: .2rem 0;
}
.mobile-menu li a small { font-family: var(--sans); font-size: .7rem; letter-spacing: .16em; color: var(--red); }
.mobile-menu .mm-foot { margin-top: 3rem; display: flex; flex-direction: column; gap: .6rem; font-size: .95rem; color: var(--muted-dark); }
.mobile-menu .mm-foot a { text-decoration: none; }

@media (max-width: 860px) {
  .nav-links li:not(.keep) { display: none; }
  .nav-toggle { display: block; }
  .nav-links { gap: .5rem; }
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .7rem; white-space: nowrap;
  font: 600 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 1.8rem; border-radius: 100px; border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.btn-red { background: var(--red); color: var(--tan); }
.btn-red:hover { box-shadow: 0 10px 30px rgba(224,58,16,.35); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(240,236,228,.45); color: var(--tan); }
.btn-ghost:hover { background: var(--tan); color: var(--black); }
.btn-dark { background: var(--black); color: var(--tan); }
.btn-dark:hover { background: var(--red); }
.btn .play { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--tan); display: inline-flex; align-items: center; justify-content: center; }
.btn .play svg { width: .55rem; height: .55rem; fill: var(--black); margin-left: 2px; }

/* ─── SECTION COMMONS ──────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 1.4rem;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.reveal-title { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; }
.reveal-title em { font-style: italic; color: var(--red); }
/* padding + matching negative margin gives descenders room inside the mask without changing line spacing */
.reveal-title .rtl { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.reveal-title .rti { display: block; transform: translateY(105%); transition: transform .9s var(--ease); }
.reveal-title.visible .rti { transform: translateY(0); }
.reveal-title .rtl:nth-child(2) .rti { transition-delay: .08s; }
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.fade-up.visible { opacity: 1; transform: none; }

/* ─── LIGHTBOX (video player) ─────────────────────────────── */
#vlb {
  position: fixed; inset: 0; z-index: 9000; background: rgba(8,8,7,.94);
  display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
#vlb.open { opacity: 1; visibility: visible; }
#vlb video { max-width: 100%; max-height: 84vh; background: #000; }
#vlb .vlb-meta { position: absolute; left: 4vw; bottom: 3vh; color: var(--tan); }
#vlb .vlb-cat { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .3rem; }
#vlb .vlb-title { font-family: var(--serif); font-size: 1.6rem; }
#vlb .vlb-close {
  position: absolute; top: 2.5vh; right: 3vw; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(240,236,228,.3); background: none; color: var(--tan); font-size: 1.1rem;
}
#vlb .vlb-close:hover { background: var(--tan); color: var(--black); }

/* ─── FOOTER ───────────────────────────────────────────────── */
footer.site-footer { background: var(--black); color: var(--tan); padding: 5rem 4vw 2.5rem; border-top: 2px solid var(--red); }
.sf-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(240,236,228,.1); }
.sf-brand .f-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; }
.sf-brand .f-logo span { color: var(--red); }
.sf-brand p { margin-top: 1rem; color: var(--muted-dark); line-height: 1.7; max-width: 340px; font-size: .95rem; }
.sf-col h4 { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); font-weight: 500; margin-bottom: 1rem; }
.sf-col ul { list-style: none; display: flex; flex-direction: column; gap: .2rem; }
.sf-col a { display: inline-block; padding: .35rem 0; text-decoration: none; color: var(--muted-dark); font-size: .95rem; transition: color .2s; }
.sf-col a:hover { color: var(--tan); }
.sf-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 2rem; font-size: .8rem; color: rgba(240,236,228,.45); }
@media (max-width: 760px) { .sf-top { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .fade-up { opacity: 1; transform: none; }
  .reveal-title .rti { transform: none; }
}
